dori-pdp-widget 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ function e(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?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 i,o,a={exports:{}},s={};function l(){if(i)return s;i=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:i,ref:void 0!==n?n:null,props:r}}return s.Fragment=t,s.jsx=n,s.jsxs=n,s}function c(){return o||(o=1,a.exports=l()),a.exports}var u,d,f=c(),p={exports:{}},h={};function g(){if(u)return h;u=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=y.prototype=new b;x.constructor=y,g(x,v.prototype),x.isPureReactComponent=!0;var k=Array.isArray,w={H:null,A:null,T:null,S:null,V:null},S=Object.prototype.hasOwnProperty;function _(t,n,r,i,o,a){return r=a.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:a}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var P=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function R(){}function z(n,r,i,o,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,c,u=!1;if(null===n)u=!0;else switch(s){case"bigint":case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0;break;case d:return z((u=n._init)(n._payload),r,i,o,a)}}if(u)return a=a(n),u=""===o?"."+E(n,0):o,k(a)?(i="",null!=u&&(i=u.replace(P,"$&/")+"/"),z(a,r,i,"",function(e){return e})):null!=a&&(C(a)&&(l=a,c=i+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+u,a=_(l.type,c,void 0,0,0,l.props)),r.push(a)),1;u=0;var p,h=""===o?".":o+":";if(k(n))for(var g=0;g<n.length;g++)u+=z(o=n[g],r,i,s=h+E(o,g),a);else if("function"==typeof(g=null===(p=n)||"object"!=typeof p?null:"function"==typeof(p=f&&p[f]||p["@@iterator"])?p:null))for(n=g.call(n),g=0;!(o=n.next()).done;)u+=z(o=o.value,r,i,s=h+E(o,g++),a);else if("object"===s){if("function"==typeof n.then)return z(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(R,R):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,i,o,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return u}function T(e,t,n){if(null==e)return e;var r=[],i=0;return z(e,r,"","",function(e){return t.call(n,e,i++)}),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)};function F(){}return h.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},h.Component=v,h.Fragment=n,h.Profiler=i,h.PureComponent=y,h.StrictMode=r,h.Suspense=l,h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,h.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},h.cache=function(e){return function(){return e.apply(null,arguments)}},h.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key;if(null!=t)for(o in t.ref,void 0!==t.key&&(i=""+t.key),t)!S.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return _(e.type,i,void 0,0,0,r)},h.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},h.createElement=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)S.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===i[r]&&(i[r]=a[r]);return _(e,o,void 0,0,0,i)},h.createRef=function(){return{current:null}},h.forwardRef=function(e){return{$$typeof:s,render:e}},h.isValidElement=C,h.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},h.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},h.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(F,O)}catch(o){O(o)}finally{w.T=t}},h.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},h.use=function(e){return w.H.use(e)},h.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},h.useCallback=function(e,t){return w.H.useCallback(e,t)},h.useContext=function(e){return w.H.useContext(e)},h.useDebugValue=function(){},h.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},h.useEffect=function(e,t,n){var r=w.H;if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},h.useId=function(){return w.H.useId()},h.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},h.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},h.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},h.useMemo=function(e,t){return w.H.useMemo(e,t)},h.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},h.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},h.useRef=function(e){return w.H.useRef(e)},h.useState=function(e){return w.H.useState(e)},h.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},h.useTransition=function(){return w.H.useTransition()},h.version="19.1.1",h}function m(){return d||(d=1,p.exports=g()),p.exports}var v=m();const b=n(v),y=e({__proto__:null,default:b},[v]);var x,k,w={exports:{}},S={},_={exports:{}},C={};function P(){return x||(x=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var i=n(c);null!==i;){if(null===i.callback)r(c);else{if(!(i.startTime<=e))break;r(c),i.sortIndex=i.expirationTime,t(l,i)}i=n(c)}}function k(e){if(g=!1,x(e),!h)if(null!==n(l))h=!0,S||(S=!0,w());else{var t=n(c);null!==t&&I(k,t.startTime-e)}}var w,S=!1,_=-1,C=5,P=-1;function E(){return!(!m&&e.unstable_now()-P<C)}function R(){if(m=!1,S){var t=e.unstable_now();P=t;var i=!0;try{e:{h=!1,g&&(g=!1,b(_),_=-1),p=!0;var o=f;try{t:{for(x(t),d=n(l);null!==d&&!(d.expirationTime>t&&E());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,x(t),i=!0;break t}d===n(l)&&r(l),x(t)}else r(l);d=n(l)}if(null!==d)i=!0;else{var u=n(c);null!==u&&I(k,u.startTime-t),i=!1}}break e}finally{d=null,f=o,p=!1}i=void 0}}finally{i?w():S=!1}}}if("function"==typeof y)w=function(){y(R)};else if("undefined"!=typeof MessageChannel){var z=new MessageChannel,T=z.port2;z.port1.onmessage=R,w=function(){T.postMessage(null)}}else w=function(){v(R,0)};function I(t,n){_=v(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||(C=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(){m=!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,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,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 r={id:u++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(c,r),null===n(l)&&r===n(c)&&(g?(b(_),_=-1):g=!0,I(k,o-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,S||(S=!0,w()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(C)),C}function E(){return k||(k=1,_.exports=P()),_.exports}var R,z,T,I,O={exports:{}},F={};function A(){if(R)return F;R=1;var e=m();function t(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 n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal"),o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return F.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,F.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},F.flushSync=function(e){var t=o.T,n=r.p;try{if(o.T=null,r.p=2,e)return e()}finally{o.T=t,r.p=n,r.d.f()}},F.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,r.d.C(e,t))},F.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},F.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,i=a(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:o,fetchPriority:s}):"script"===n&&r.d.X(e,{crossOrigin:i,integrity:o,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},F.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},F.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,i=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},F.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},F.requestFormReset=function(e){r.d.r(e)},F.unstable_batchedUpdates=function(e,t){return e(t)},F.useFormState=function(e,t,n){return o.H.useFormState(e,t,n)},F.useFormStatus=function(){return o.H.useHostTransitionStatus()},F.version="19.1.1",F}function M(){return z||(z=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),O.exports=A()),O.exports}function N(){if(T)return S;T=1;var e=E(),t=m(),n=M();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(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function a(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function s(e){if(o(e)!==e)throw Error(r(188))}function l(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=l(e)))return t;e=e.sibling}return null}var c=Object.assign,u=Symbol.for("react.element"),d=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.consumer"),y=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var O=Symbol.for("react.client.reference");function F(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===O?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"Fragment";case g:return"Profiler";case h:return"StrictMode";case k:return"Suspense";case w:return"SuspenseList";case P:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case f:return"Portal";case y:return(e.displayName||"Context")+".Provider";case b:return(e._context.displayName||"Context")+".Consumer";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return F(e(t))}catch(n){}}return null}var A=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L={pending:!1,data:null,method:null,action:null},j=[],$=-1;function B(e){return{current:e}}function W(e){0>$||(e.current=j[$],j[$]=null,$--)}function V(e,t){$++,j[$]=e.current,e.current=t}var H=B(null),U=B(null),q=B(null),G=B(null);function Y(e,t){switch(V(q,t),V(U,e),V(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ad(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=sd(t=ad(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(H),V(H,e)}function X(){W(H),W(U),W(q)}function K(e){null!==e.memoizedState&&V(G,e);var t=H.current,n=sd(t,e.type);t!==n&&(V(U,e),V(H,n))}function Q(e){U.current===e&&(W(H),W(U)),G.current===e&&(W(G),Kd._currentValue=L)}var Z=Object.prototype.hasOwnProperty,J=e.unstable_scheduleCallback,ee=e.unstable_cancelCallback,te=e.unstable_shouldYield,ne=e.unstable_requestPaint,re=e.unstable_now,ie=e.unstable_getCurrentPriorityLevel,oe=e.unstable_ImmediatePriority,ae=e.unstable_UserBlockingPriority,se=e.unstable_NormalPriority,le=e.unstable_LowPriority,ce=e.unstable_IdlePriority,ue=e.log,de=e.unstable_setDisableYieldValue,fe=null,pe=null;function he(e){if("function"==typeof ue&&de(e),pe&&"function"==typeof pe.setStrictMode)try{pe.setStrictMode(fe,e)}catch(t){}}var ge=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(me(e)/ve|0)|0},me=Math.log,ve=Math.LN2,be=256,ye=4194304;function xe(e){var t=42&e;if(0!==t)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:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ke(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~o)?i=xe(r):0!==(a&=s)?i=xe(a):n||0!==(n=s&~e)&&(i=xe(n)):0!==(s=r&~o)?i=xe(s):0!==a?i=xe(a):n||0!==(n=r&~e)&&(i=xe(n)),0===i?0:0!==t&&t!==i&&0===(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&4194048&n)?t:i}function we(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Se(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;default:return-1}}function _e(){var e=be;return!(4194048&(be<<=1))&&(be=256),e}function Ce(){var e=ye;return!(62914560&(ye<<=1))&&(ye=4194304),e}function Pe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ee(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Re(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ge(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function ze(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ge(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Te(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 Ie(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Oe(){var e=D.p;return 0!==e?e:void 0===(e=window.event)?32:ff(e.type)}var Fe=Math.random().toString(36).slice(2),Ae="__reactFiber$"+Fe,Me="__reactProps$"+Fe,Ne="__reactContainer$"+Fe,De="__reactEvents$"+Fe,Le="__reactListeners$"+Fe,je="__reactHandles$"+Fe,$e="__reactResources$"+Fe,Be="__reactMarker$"+Fe;function We(e){delete e[Ae],delete e[Me],delete e[De],delete e[Le],delete e[je]}function Ve(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ne]||n[Ae]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kd(e);null!==e;){if(n=e[Ae])return n;e=kd(e)}return t}n=(e=n).parentNode}return null}function He(e){if(e=e[Ae]||e[Ne]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Ue(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function qe(e){var t=e[$e];return t||(t=e[$e]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ge(e){e[Be]=!0}var Ye=new Set,Xe={};function Ke(e,t){Qe(e,t),Qe(e+"Capture",t)}function Qe(e,t){for(Xe[e]=t,e=0;e<t.length;e++)Ye.add(t[e])}var Ze,Je,et=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]*$"),tt={},nt={};function rt(e,t,n){if(i=t,Z.call(nt,i)||!Z.call(tt,i)&&(et.test(i)?nt[i]=!0:(tt[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function it(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ot(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function at(e){if(void 0===Ze)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ze=t&&t[1]||"",Je=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ze+e+Je}var st=!1;function lt(e,t){if(!e||st)return"";st=!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()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.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 o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==c[i]){var u="\n"+l[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{st=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?at(n):""}function ct(e){switch(e.tag){case 26:case 27:case 5:return at(e.type);case 16:return at("Lazy");case 13:return at("Suspense");case 19:return at("SuspenseList");case 0:case 15:return lt(e.type,!1);case 11:return lt(e.type.render,!1);case 1:return lt(e.type,!0);case 31:return at("Activity");default:return""}}function ut(e){try{var t="";do{t+=ct(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){e._valueTracker||(e._valueTracker=function(e){var t=ft(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function gt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var mt=/[\n"\\]/g;function vt(e){return e.replace(mt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function bt(e,t,n,r,i,o,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?xt(e,a,dt(t)):null!=n?xt(e,a,dt(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+dt(s):e.removeAttribute("name")}function yt(e,t,n,r,i,o,a,s){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a)}function xt(e,t,n){"number"===t&&gt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(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=""+dt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function wt(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,i){if(null==t){if(null!=i){if(null!=n)throw Error(r(92));if(A(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(i=e.textContent)===n&&""!==i&&null!==i&&(e.value=i)}function _t(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ct=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 Pt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Ct.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Et(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var i in n)!n.hasOwnProperty(i)||null!=t&&t.hasOwnProperty(i)||(0===i.indexOf("--")?e.setProperty(i,""):"float"===i?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&n[o]!==i&&Pt(e,o,i)}else for(var a in t)t.hasOwnProperty(a)&&Pt(e,a,t[a])}function Rt(e){if(-1===e.indexOf("-"))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 zt=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"],["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"]]),Tt=/^[\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 It(e){return Tt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ot=null;function Ft(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var At=null,Mt=null;function Nt(e){var t=He(e);if(t&&(e=t.stateNode)){var n=e[Me]||null;e:switch(e=t.stateNode,t.type){case"input":if(bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[Me]||null;if(!o)throw Error(r(90));bt(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(i=n[t]).form===e.form&&ht(i)}break e;case"textarea":wt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var Dt=!1;function Lt(e,t,n){if(Dt)return e(t,n);Dt=!0;try{return e(t)}finally{if(Dt=!1,(null!==At||null!==Mt)&&(Vc(),At&&(t=At,e=Mt,Mt=At=null,Nt(t),e)))for(t=0;t<e.length;t++)Nt(e[t])}}function jt(e,t){var n=e.stateNode;if(null===n)return null;var i=n[Me]||null;if(null===i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var $t=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Bt=!1;if($t)try{var Wt={};Object.defineProperty(Wt,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",Wt,Wt),window.removeEventListener("test",Wt,Wt)}catch(Nf){Bt=!1}var Vt=null,Ht=null,Ut=null;function qt(){if(Ut)return Ut;var e,t,n=Ht,r=n.length,i="value"in Vt?Vt.value:Vt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Ut=i.slice(e,1<t?1-t:void 0)}function Gt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Xt(){return!1}function Kt(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Yt:Xt,this.isPropagationStopped=Xt,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var Qt,Zt,Jt,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Kt(en),nn=c({},en,{view:0,detail:0}),rn=Kt(nn),on=c({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jt&&(Jt&&"mousemove"===e.type?(Qt=e.screenX-Jt.screenX,Zt=e.screenY-Jt.screenY):Zt=Qt=0,Jt=e),Qt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),an=Kt(on),sn=Kt(c({},on,{dataTransfer:0})),ln=Kt(c({},nn,{relatedTarget:0})),cn=Kt(c({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),un=Kt(c({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),dn=Kt(c({},en,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={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"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function mn(){return gn}var vn=Kt(c({},nn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mn,charCode:function(e){return"keypress"===e.type?Gt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),bn=Kt(c({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),yn=Kt(c({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mn})),xn=Kt(c({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Kt(c({},on,{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})),wn=Kt(c({},en,{newState:0,oldState:0})),Sn=[9,13,27,32],_n=$t&&"CompositionEvent"in window,Cn=null;$t&&"documentMode"in document&&(Cn=document.documentMode);var Pn=$t&&"TextEvent"in window&&!Cn,En=$t&&(!_n||Cn&&8<Cn&&11>=Cn),Rn=String.fromCharCode(32),zn=!1;function Tn(e,t){switch(e){case"keyup":return-1!==Sn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function In(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var On=!1,Fn={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 An(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Mn(e,t,n,r){At?Mt?Mt.push(r):Mt=[r]:At=r,0<(t=qu(t,"onChange")).length&&(n=new tn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nn=null,Dn=null;function Ln(e){Lu(e,0)}function jn(e){if(ht(Ue(e)))return e}function $n(e,t){if("change"===e)return t}var Bn=!1;if($t){var Wn;if($t){var Vn="oninput"in document;if(!Vn){var Hn=document.createElement("div");Hn.setAttribute("oninput","return;"),Vn="function"==typeof Hn.oninput}Wn=Vn}else Wn=!1;Bn=Wn&&(!document.documentMode||9<document.documentMode)}function Un(){Nn&&(Nn.detachEvent("onpropertychange",qn),Dn=Nn=null)}function qn(e){if("value"===e.propertyName&&jn(Dn)){var t=[];Mn(t,Dn,e,Ft(e)),Lt(Ln,t)}}function Gn(e,t,n){"focusin"===e?(Un(),Dn=n,(Nn=t).attachEvent("onpropertychange",qn)):"focusout"===e&&Un()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return jn(Dn)}function Xn(e,t){if("click"===e)return jn(t)}function Kn(e,t){if("input"===e||"change"===e)return jn(t)}var Qn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Qn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===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(!Z.call(t,i)||!Qn(e[i],t[i]))return!1}return!0}function Jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var n,r=Jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Jn(r)}}function tr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nr(e){for(var t=gt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=gt((e=t.contentWindow).document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ir=$t&&"documentMode"in document&&11>=document.documentMode,or=null,ar=null,sr=null,lr=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;lr||null==or||or!==gt(r)||(r="selectionStart"in(r=or)&&rr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sr&&Zn(sr,r)||(sr=r,0<(r=qu(ar,"onSelect")).length&&(t=new tn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=or)))}function ur(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:ur("Animation","AnimationEnd"),animationiteration:ur("Animation","AnimationIteration"),animationstart:ur("Animation","AnimationStart"),transitionrun:ur("Transition","TransitionRun"),transitionstart:ur("Transition","TransitionStart"),transitioncancel:ur("Transition","TransitionCancel"),transitionend:ur("Transition","TransitionEnd")},fr={},pr={};function hr(e){if(fr[e])return fr[e];if(!dr[e])return e;var t,n=dr[e];for(t in n)if(n.hasOwnProperty(t)&&t in pr)return fr[e]=n[t];return e}$t&&(pr=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);var gr=hr("animationend"),mr=hr("animationiteration"),vr=hr("animationstart"),br=hr("transitionrun"),yr=hr("transitionstart"),xr=hr("transitioncancel"),kr=hr("transitionend"),wr=new Map,Sr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _r(e,t){wr.set(e,t),Ke(t,[e])}Sr.push("scrollEnd");var Cr=new WeakMap;function Pr(e,t){if("object"==typeof e&&null!==e){var n=Cr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ut(t)},Cr.set(e,t),t)}return{value:e,source:t,stack:ut(t)}}var Er=[],Rr=0,zr=0;function Tr(){for(var e=Rr,t=zr=Rr=0;t<e;){var n=Er[t];Er[t++]=null;var r=Er[t];Er[t++]=null;var i=Er[t];Er[t++]=null;var o=Er[t];if(Er[t++]=null,null!==r&&null!==i){var a=r.pending;null===a?i.next=i:(i.next=a.next,a.next=i),r.pending=i}0!==o&&Ar(n,i,o)}}function Ir(e,t,n,r){Er[Rr++]=e,Er[Rr++]=t,Er[Rr++]=n,Er[Rr++]=r,zr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Or(e,t,n,r){return Ir(e,t,n,r),Mr(e)}function Fr(e,t){return Ir(e,null,null,t),Mr(e)}function Ar(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==t&&(i=31-ge(n),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=536870912|n),o):null}function Mr(e){if(50<Ac)throw Ac=0,Mc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Nr={};function Dr(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 Lr(e,t,n,r){return new Dr(e,t,n,r)}function jr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $r(e,t){var n=e.alternate;return null===n?((n=Lr(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?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 Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Wr(e,t,n,i,o,a){var s=0;if(i=e,"function"==typeof e)jr(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,H.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case P:return(e=Lr(31,n,t,o)).elementType=P,e.lanes=a,e;case p:return Vr(n.children,o,a,t);case h:s=8,o|=24;break;case g:return(e=Lr(12,n,t,2|o)).elementType=g,e.lanes=a,e;case k:return(e=Lr(13,n,t,o)).elementType=k,e.lanes=a,e;case w:return(e=Lr(19,n,t,o)).elementType=w,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:case y:s=10;break e;case b:s=9;break e;case x:s=11;break e;case _:s=14;break e;case C:s=16,i=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),i=null}return(t=Lr(s,n,t,o)).elementType=e,t.type=i,t.lanes=a,t}function Vr(e,t,n,r){return(e=Lr(7,e,r,t)).lanes=n,e}function Hr(e,t,n){return(e=Lr(6,e,null,t)).lanes=n,e}function Ur(e,t,n){return(t=Lr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qr=[],Gr=0,Yr=null,Xr=0,Kr=[],Qr=0,Zr=null,Jr=1,ei="";function ti(e,t){qr[Gr++]=Xr,qr[Gr++]=Yr,Yr=e,Xr=t}function ni(e,t,n){Kr[Qr++]=Jr,Kr[Qr++]=ei,Kr[Qr++]=Zr,Zr=e;var r=Jr;e=ei;var i=32-ge(r)-1;r&=~(1<<i),n+=1;var o=32-ge(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Jr=1<<32-ge(t)+i|n<<i|r,ei=o+e}else Jr=1<<o|n<<i|r,ei=e}function ri(e){null!==e.return&&(ti(e,1),ni(e,1,0))}function ii(e){for(;e===Yr;)Yr=qr[--Gr],qr[Gr]=null,Xr=qr[--Gr],qr[Gr]=null;for(;e===Zr;)Zr=Kr[--Qr],Kr[Qr]=null,ei=Kr[--Qr],Kr[Qr]=null,Jr=Kr[--Qr],Kr[Qr]=null}var oi=null,ai=null,si=!1,li=null,ci=!1,ui=Error(r(519));function di(e){throw vi(Pr(Error(r(418,"")),e)),ui}function fi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ae]=e,t[Me]=r,n){case"dialog":ju("cancel",t),ju("close",t);break;case"iframe":case"object":case"embed":ju("load",t);break;case"video":case"audio":for(n=0;n<Nu.length;n++)ju(Nu[n],t);break;case"source":ju("error",t);break;case"img":case"image":case"link":ju("error",t),ju("load",t);break;case"details":ju("toggle",t);break;case"input":ju("invalid",t),yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),pt(t);break;case"select":ju("invalid",t);break;case"textarea":ju("invalid",t),St(t,r.value,r.defaultValue,r.children),pt(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Zu(t.textContent,n)?(null!=r.popover&&(ju("beforetoggle",t),ju("toggle",t)),null!=r.onScroll&&ju("scroll",t),null!=r.onScrollEnd&&ju("scrollend",t),null!=r.onClick&&(t.onclick=Ju),t=!0):t=!1,t||di(e)}function pi(e){for(oi=e.return;oi;)switch(oi.tag){case 5:case 13:return void(ci=!1);case 27:case 3:return void(ci=!0);default:oi=oi.return}}function hi(e){if(e!==oi)return!1;if(!si)return pi(e),si=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||ld(e.type,e.memoizedProps)),t=!t),t&&ai&&di(e),pi(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){ai=yd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}ai=null}}else 27===n?(n=ai,gd(e.type)?(e=xd,xd=null,ai=e):ai=n):ai=oi?yd(e.stateNode.nextSibling):null;return!0}function gi(){ai=oi=null,si=!1}function mi(){var e=li;return null!==e&&(null===kc?kc=e:kc.push.apply(kc,e),li=null),e}function vi(e){null===li?li=[e]:li.push(e)}var bi=B(null),yi=null,xi=null;function ki(e,t,n){V(bi,t._currentValue),t._currentValue=n}function wi(e){e._currentValue=bi.current,W(bi)}function Si(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _i(e,t,n,i){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var a=o.dependencies;if(null!==a){var s=o.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=o;for(var c=0;c<t.length;c++)if(l.context===t[c]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Si(a.return,n,e),i||(s=null);break e}a=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(r(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),Si(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function Ci(e,t,n,i){e=null;for(var o=t,a=!1;null!==o;){if(!a)if(524288&o.flags)a=!0;else if(262144&o.flags)break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=o.type;Qn(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===G.current){if(null===(s=o.alternate))throw Error(r(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(Kd):e=[Kd])}o=o.return}null!==e&&_i(t,e,n,i),t.flags|=262144}function Pi(e){for(e=e.firstContext;null!==e;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ei(e){yi=e,xi=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Ri(e){return Ti(yi,e)}function zi(e,t){return null===yi&&Ei(e),Ti(e,t)}function Ti(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===xi){if(null===e)throw Error(r(308));xi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xi=xi.next=t;return n}var Ii="undefined"!=typeof AbortController?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()})}},Oi=e.unstable_scheduleCallback,Fi=e.unstable_NormalPriority,Ai={$$typeof:y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mi(){return{controller:new Ii,data:new Map,refCount:0}}function Ni(e){e.refCount--,0===e.refCount&&Oi(Fi,function(){e.controller.abort()})}var Di=null,Li=0,ji=0,$i=null;function Bi(){if(0===--Li&&null!==Di){null!==$i&&($i.status="fulfilled");var e=Di;Di=null,ji=0,$i=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Wi=N.S;N.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Di){var n=Di=[];Li=0,ji=Iu(),$i={status:"pending",value:void 0,then:function(e){n.push(e)}}}Li++,t.then(Bi,Bi)}(0,t),null!==Wi&&Wi(e,t)};var Vi=B(null);function Hi(){var e=Vi.current;return null!==e?e:oc.pooledCache}function Ui(e,t){V(Vi,null===t?Vi.current:t.pool)}function qi(){var e=Hi();return null===e?null:{parent:Ai._currentValue,pool:e}}var Gi=Error(r(460)),Yi=Error(r(474)),Xi=Error(r(542)),Ki={then:function(){}};function Qi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Zi(){}function Ji(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Zi,Zi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw no(e=t.reason),e;default:if("string"==typeof t.status)t.then(Zi,Zi);else{if(null!==(e=oc)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw no(e=t.reason),e}throw eo=t,Gi}}var eo=null;function to(){if(null===eo)throw Error(r(459));var e=eo;return eo=null,e}function no(e){if(e===Gi||e===Xi)throw Error(r(483))}var ro=!1;function io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oo(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 ao(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function so(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ic){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Mr(e),Ar(e,null,n),t}return Ir(e,r,t,n),Mr(e)}function lo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ze(e,n)}}function co(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var uo=!1;function fo(){if(uo&&null!==$i)throw $i}function po(e,t,n,r){uo=!1;var i=e.updateQueue;ro=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var d=e.alternate;null!==d&&(s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l)}if(null!==o){var f=i.baseState;for(a=0,d=u=l=null,s=o;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(sc&p)===p:(r&p)===p){0!==p&&p===ji&&(uo=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;p=t;var v=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){f=g.call(v,f,p);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(v,f,p):g))break e;f=c({},f,p);break e;case 2:ro=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=h,l=f):d=d.next=h,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===d&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,null===o&&(i.shared.lanes=0),gc|=a,e.lanes=a,e.memoizedState=f}}function ho(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function go(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)ho(n[e],t)}var mo=B(null),vo=B(0);function bo(e,t){V(vo,e=pc),V(mo,t),pc=e|t.baseLanes}function yo(){V(vo,pc),V(mo,mo.current)}function xo(){pc=vo.current,W(mo),W(vo)}var ko=0,wo=null,So=null,_o=null,Co=!1,Po=!1,Eo=!1,Ro=0,zo=0,To=null,Io=0;function Oo(){throw Error(r(321))}function Fo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function Ao(e,t,n,r,i,o){return ko=o,wo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=null===e||null===e.memoizedState?Ya:Xa,Eo=!1,o=n(r,i),Eo=!1,Po&&(o=No(t,n,r,i)),Mo(e),o}function Mo(e){N.H=Ga;var t=null!==So&&null!==So.next;if(ko=0,_o=So=wo=null,Co=!1,zo=0,To=null,t)throw Error(r(300));null===e||zs||null!==(e=e.dependencies)&&Pi(e)&&(zs=!0)}function No(e,t,n,i){wo=e;var o=0;do{if(Po&&(To=null),zo=0,Po=!1,25<=o)throw Error(r(301));if(o+=1,_o=So=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}N.H=Ka,a=t(n,i)}while(Po);return a}function Do(){var e=N.H,t=e.useState()[0];return t="function"==typeof t.then?Vo(t):t,e=e.useState()[0],(null!==So?So.memoizedState:null)!==e&&(wo.flags|=1024),t}function Lo(){var e=0!==Ro;return Ro=0,e}function jo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function $o(e){if(Co){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Co=!1}ko=0,_o=So=wo=null,Po=!1,zo=Ro=0,To=null}function Bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===_o?wo.memoizedState=_o=e:_o=_o.next=e,_o}function Wo(){if(null===So){var e=wo.alternate;e=null!==e?e.memoizedState:null}else e=So.next;var t=null===_o?wo.memoizedState:_o.next;if(null!==t)_o=t,So=e;else{if(null===e){if(null===wo.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(So=e).memoizedState,baseState:So.baseState,baseQueue:So.baseQueue,queue:So.queue,next:null},null===_o?wo.memoizedState=_o=e:_o=_o.next=e}return _o}function Vo(e){var t=zo;return zo+=1,null===To&&(To=[]),e=Ji(To,e,t),t=wo,null===(null===_o?t.memoizedState:_o.next)&&(t=t.alternate,N.H=null===t||null===t.memoizedState?Ya:Xa),e}function Ho(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Vo(e);if(e.$$typeof===y)return Ri(e)}throw Error(r(438,String(e)))}function Uo(e){var t=null,n=wo.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=wo.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},wo.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=R;return t.index++,n}function qo(e,t){return"function"==typeof t?t(e):t}function Go(e){return Yo(Wo(),So,e)}function Yo(e,t,n){var i=e.queue;if(null===i)throw Error(r(311));i.lastRenderedReducer=n;var o=e.baseQueue,a=i.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}t.baseQueue=o=a,i.pending=null}if(a=e.baseState,null===o)e.memoizedState=a;else{var l=s=null,c=null,u=t=o.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(sc&f)===f:(ko&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ji&&(d=!0);else{if((ko&p)===p){u=u.next,p===ji&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=a):c=c.next=f,wo.lanes|=p,gc|=p}f=u.action,Eo&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=a):c=c.next=p,wo.lanes|=f,gc|=f;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!Qn(a,e.memoizedState)&&(zs=!0,d&&null!==(n=$i)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=c,i.lastRenderedState=a}return null===o&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Xo(e){var t=Wo(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);Qn(a,t.memoizedState)||(zs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function Ko(e,t,n){var i=wo,o=Wo(),a=si;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!Qn((So||o).memoizedState,n);if(s&&(o.memoizedState=n,zs=!0),o=o.queue,ya(2048,8,Jo.bind(null,i,o,e),[e]),o.getSnapshot!==t||s||null!==_o&&1&_o.memoizedState.tag){if(i.flags|=2048,ma(9,{destroy:void 0,resource:void 0},Zo.bind(null,i,o,n,t),null),null===oc)throw Error(r(349));a||124&ko||Qo(i,t,n)}return n}function Qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=wo.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},wo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Zo(e,t,n,r){t.value=n,t.getSnapshot=r,ea(t)&&ta(e)}function Jo(e,t,n){return n(function(){ea(t)&&ta(e)})}function ea(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch(r){return!0}}function ta(e){var t=Fr(e,2);null!==t&&Lc(t,0,2)}function na(e){var t=Bo();if("function"==typeof e){var n=e;if(e=n(),Eo){he(!0);try{n()}finally{he(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},t}function ra(e,t,n,r){return e.baseState=n,Yo(e,So,"function"==typeof r?r:qo)}function ia(e,t,n,i,o){if(Ha(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==N.T?n(!0):a.isTransition=!1,i(a),null===(n=t.pending)?(a.next=t.pending=a,oa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function oa(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=N.T,a={};N.T=a;try{var s=n(i,r),l=N.S;null!==l&&l(a,s),aa(e,t,s)}catch(c){la(e,t,c)}finally{N.T=o}}else try{aa(e,t,o=n(i,r))}catch(u){la(e,t,u)}}function aa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){sa(e,t,n)},function(n){return la(e,t,n)}):sa(e,t,n)}function sa(e,t,n){t.status="fulfilled",t.value=n,ca(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,oa(e,n)))}function la(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ca(t),t=t.next}while(t!==r)}e.action=null}function ca(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ua(e,t){return t}function da(e,t){if(si){var n=oc.formState;if(null!==n){e:{var r=wo;if(si){if(ai){t:{for(var i=ai,o=ci;8!==i.nodeType;){if(!o){i=null;break t}if(null===(i=yd(i.nextSibling))){i=null;break t}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){ai=yd(i.nextSibling),r="F!"===i.data;break e}}di(r)}r=!1}r&&(t=n[0])}}return(n=Bo()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:t},n.queue=r,n=Ba.bind(null,wo,r),r.dispatch=n,r=na(!1),o=Va.bind(null,wo,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=Bo()).queue=i,n=ia.bind(null,wo,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function fa(e){return pa(Wo(),So,e)}function pa(e,t,n){if(t=Yo(e,t,ua)[0],e=Go(qo)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Vo(t)}catch(a){if(a===Gi)throw Xi;throw a}else r=t;var i=(t=Wo()).queue,o=i.dispatch;return n!==t.memoizedState&&(wo.flags|=2048,ma(9,{destroy:void 0,resource:void 0},ha.bind(null,i,n),null)),[r,o,e]}function ha(e,t){e.action=t}function ga(e){var t=Wo(),n=So;if(null!==n)return pa(t,n,e);Wo(),t=t.memoizedState;var r=(n=Wo()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ma(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=wo.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},wo.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function va(){return Wo().memoizedState}function ba(e,t,n,r){var i=Bo();r=void 0===r?null:r,wo.flags|=e,i.memoizedState=ma(1|t,{destroy:void 0,resource:void 0},n,r)}function ya(e,t,n,r){var i=Wo();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==So&&null!==r&&Fo(r,So.memoizedState.deps)?i.memoizedState=ma(t,o,n,r):(wo.flags|=e,i.memoizedState=ma(1|t,o,n,r))}function xa(e,t){ba(8390656,8,e,t)}function ka(e,t){ya(2048,8,e,t)}function wa(e,t){return ya(4,2,e,t)}function Sa(e,t){return ya(4,4,e,t)}function _a(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ca(e,t,n){n=null!=n?n.concat([e]):null,ya(4,4,_a.bind(null,t,e),n)}function Pa(){}function Ea(e,t){var n=Wo();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Fo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ra(e,t){var n=Wo();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Fo(t,r[1]))return r[0];if(r=e(),Eo){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r}function za(e,t,n){return void 0===n||1073741824&ko?e.memoizedState=t:(e.memoizedState=n,e=Dc(),wo.lanes|=e,gc|=e,n)}function Ta(e,t,n,r){return Qn(n,t)?n:null!==mo.current?(e=za(e,n,r),Qn(e,t)||(zs=!0),e):42&ko?(e=Dc(),wo.lanes|=e,gc|=e,t):(zs=!0,e.memoizedState=n)}function Ia(e,t,n,r,i){var o=D.p;D.p=0!==o&&8>o?o:8;var a,s,l,c=N.T,u={};N.T=u,Va(e,!1,t,n);try{var d=i(),f=N.S;null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?Wa(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Nc()):Wa(e,t,r,Nc())}catch(p){Wa(e,t,{then:function(){},status:"rejected",reason:p},Nc())}finally{D.p=o,N.T=c}}function Oa(){}function Fa(e,t,n,i){if(5!==e.tag)throw Error(r(476));var o=Aa(e).queue;Ia(e,o,t,L,null===n?Oa:function(){return Ma(e),n(i)})}function Aa(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:L},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Ma(e){Wa(e,Aa(e).next.queue,{},Nc())}function Na(){return Ri(Kd)}function Da(){return Wo().memoizedState}function La(){return Wo().memoizedState}function ja(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Nc(),r=so(t,e=ao(n),n);return null!==r&&(Lc(r,0,n),lo(r,t,n)),t={cache:Mi()},void(e.payload=t)}t=t.return}}function $a(e,t,n){var r=Nc();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ha(e)?Ua(t,n):null!==(n=Or(e,t,n,r))&&(Lc(n,0,r),qa(n,t,r))}function Ba(e,t,n){Wa(e,t,n,Nc())}function Wa(e,t,n,r){var i={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ha(e))Ua(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Qn(s,a))return Ir(e,t,i,0),null===oc&&Tr(),!1}catch(l){}if(null!==(n=Or(e,t,i,r)))return Lc(n,0,r),qa(n,t,r),!0}return!1}function Va(e,t,n,i){if(i={lane:2,revertLane:Iu(),action:i,hasEagerState:!1,eagerState:null,next:null},Ha(e)){if(t)throw Error(r(479))}else null!==(t=Or(e,n,i,2))&&Lc(t,0,2)}function Ha(e){var t=e.alternate;return e===wo||null!==t&&t===wo}function Ua(e,t){Po=Co=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qa(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ze(e,n)}}var Ga={readContext:Ri,use:Ho,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useLayoutEffect:Oo,useInsertionEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useSyncExternalStore:Oo,useId:Oo,useHostTransitionStatus:Oo,useFormState:Oo,useActionState:Oo,useOptimistic:Oo,useMemoCache:Oo,useCacheRefresh:Oo},Ya={readContext:Ri,use:Ho,useCallback:function(e,t){return Bo().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:xa,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,ba(4194308,4,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4194308,4,e,t)},useInsertionEffect:function(e,t){ba(4,2,e,t)},useMemo:function(e,t){var n=Bo();t=void 0===t?null:t;var r=e();if(Eo){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Bo();if(void 0!==n){var i=n(t);if(Eo){he(!0);try{n(t)}finally{he(!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=$a.bind(null,wo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Bo().memoizedState=e},useState:function(e){var t=(e=na(e)).queue,n=Ba.bind(null,wo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Pa,useDeferredValue:function(e,t){return za(Bo(),e,t)},useTransition:function(){var e=na(!1);return e=Ia.bind(null,wo,e.queue,!0,!1),Bo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=wo,o=Bo();if(si){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===oc)throw Error(r(349));124&sc||Qo(i,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,xa(Jo.bind(null,i,a,e),[e]),i.flags|=2048,ma(9,{destroy:void 0,resource:void 0},Zo.bind(null,i,a,n,t),null),n},useId:function(){var e=Bo(),t=oc.identifierPrefix;if(si){var n=ei;t="«"+t+"R"+(n=(Jr&~(1<<32-ge(Jr)-1)).toString(32)+n),0<(n=Ro++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Io++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Na,useFormState:da,useActionState:da,useOptimistic:function(e){var t=Bo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Va.bind(null,wo,!0,n),n.dispatch=t,[e,t]},useMemoCache:Uo,useCacheRefresh:function(){return Bo().memoizedState=ja.bind(null,wo)}},Xa={readContext:Ri,use:Ho,useCallback:Ea,useContext:Ri,useEffect:ka,useImperativeHandle:Ca,useInsertionEffect:wa,useLayoutEffect:Sa,useMemo:Ra,useReducer:Go,useRef:va,useState:function(){return Go(qo)},useDebugValue:Pa,useDeferredValue:function(e,t){return Ta(Wo(),So.memoizedState,e,t)},useTransition:function(){var e=Go(qo)[0],t=Wo().memoizedState;return["boolean"==typeof e?e:Vo(e),t]},useSyncExternalStore:Ko,useId:Da,useHostTransitionStatus:Na,useFormState:fa,useActionState:fa,useOptimistic:function(e,t){return ra(Wo(),0,e,t)},useMemoCache:Uo,useCacheRefresh:La},Ka={readContext:Ri,use:Ho,useCallback:Ea,useContext:Ri,useEffect:ka,useImperativeHandle:Ca,useInsertionEffect:wa,useLayoutEffect:Sa,useMemo:Ra,useReducer:Xo,useRef:va,useState:function(){return Xo(qo)},useDebugValue:Pa,useDeferredValue:function(e,t){var n=Wo();return null===So?za(n,e,t):Ta(n,So.memoizedState,e,t)},useTransition:function(){var e=Xo(qo)[0],t=Wo().memoizedState;return["boolean"==typeof e?e:Vo(e),t]},useSyncExternalStore:Ko,useId:Da,useHostTransitionStatus:Na,useFormState:ga,useActionState:ga,useOptimistic:function(e,t){var n=Wo();return null!==So?ra(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Uo,useCacheRefresh:La},Qa=null,Za=0;function Ja(e){var t=Za;return Za+=1,null===Qa&&(Qa=[]),Ji(Qa,e,t)}function es(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ts(e,t){if(t.$$typeof===u)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ns(e){return(0,e._init)(e._payload)}function rs(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=$r(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===p?h(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===C&&ns(i)===t.type)?(es(t=o(t,n.props),n),t.return=e,t):(es(t=Wr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ur(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function h(e,t,n,r,i){return null===t||7!==t.tag?((t=Vr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function g(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Hr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case d:return es(n=Wr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case f:return(t=Ur(t,e.mode,n)).return=e,t;case C:return g(e,t=(0,t._init)(t._payload),n)}if(A(t)||I(t))return(t=Vr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return g(e,Ja(t),n);if(t.$$typeof===y)return g(e,zi(e,t),n);ts(e,t)}return null}function m(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case d:return n.key===i?c(e,t,n,r):null;case f:return n.key===i?u(e,t,n,r):null;case C:return m(e,t,n=(i=n._init)(n._payload),r)}if(A(n)||I(n))return null!==i?null:h(e,t,n,r,null);if("function"==typeof n.then)return m(e,t,Ja(n),r);if(n.$$typeof===y)return m(e,t,zi(e,n),r);ts(e,n)}return null}function v(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case d:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case f:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case C:return v(e,t,n,r=(0,r._init)(r._payload),i)}if(A(r)||I(r))return h(t,e=e.get(n)||null,r,i,null);if("function"==typeof r.then)return v(e,t,n,Ja(r),i);if(r.$$typeof===y)return v(e,t,n,zi(t,r),i);ts(t,r)}return null}function b(l,c,u,h){if("object"==typeof u&&null!==u&&u.type===p&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case d:e:{for(var x=u.key;null!==c;){if(c.key===x){if((x=u.type)===p){if(7===c.tag){n(l,c.sibling),(h=o(c,u.props.children)).return=l,l=h;break e}}else if(c.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===C&&ns(x)===c.type){n(l,c.sibling),es(h=o(c,u.props),u),h.return=l,l=h;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===p?((h=Vr(u.props.children,l.mode,h,u.key)).return=l,l=h):(es(h=Wr(u.type,u.key,u.props,null,l.mode,h),u),h.return=l,l=h)}return s(l);case f:e:{for(x=u.key;null!==c;){if(c.key===x){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(h=o(c,u.children||[])).return=l,l=h;break e}n(l,c);break}t(l,c),c=c.sibling}(h=Ur(u,l.mode,h)).return=l,l=h}return s(l);case C:return b(l,c,u=(x=u._init)(u._payload),h)}if(A(u))return function(r,o,s,l){for(var c=null,u=null,d=o,f=o=0,p=null;null!==d&&f<s.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var h=m(r,d,s[f],l);if(null===h){null===d&&(d=p);break}e&&d&&null===h.alternate&&t(r,d),o=a(h,o,f),null===u?c=h:u.sibling=h,u=h,d=p}if(f===s.length)return n(r,d),si&&ti(r,f),c;if(null===d){for(;f<s.length;f++)null!==(d=g(r,s[f],l))&&(o=a(d,o,f),null===u?c=d:u.sibling=d,u=d);return si&&ti(r,f),c}for(d=i(d);f<s.length;f++)null!==(p=v(d,r,f,s[f],l))&&(e&&null!==p.alternate&&d.delete(null===p.key?f:p.key),o=a(p,o,f),null===u?c=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return t(r,e)}),si&&ti(r,f),c}(l,c,u,h);if(I(u)){if("function"!=typeof(x=I(u)))throw Error(r(150));return function(o,s,l,c){if(null==l)throw Error(r(151));for(var u=null,d=null,f=s,p=s=0,h=null,b=l.next();null!==f&&!b.done;p++,b=l.next()){f.index>p?(h=f,f=null):h=f.sibling;var y=m(o,f,b.value,c);if(null===y){null===f&&(f=h);break}e&&f&&null===y.alternate&&t(o,f),s=a(y,s,p),null===d?u=y:d.sibling=y,d=y,f=h}if(b.done)return n(o,f),si&&ti(o,p),u;if(null===f){for(;!b.done;p++,b=l.next())null!==(b=g(o,b.value,c))&&(s=a(b,s,p),null===d?u=b:d.sibling=b,d=b);return si&&ti(o,p),u}for(f=i(f);!b.done;p++,b=l.next())null!==(b=v(f,o,p,b.value,c))&&(e&&null!==b.alternate&&f.delete(null===b.key?p:b.key),s=a(b,s,p),null===d?u=b:d.sibling=b,d=b);return e&&f.forEach(function(e){return t(o,e)}),si&&ti(o,p),u}(l,c,u=x.call(u),h)}if("function"==typeof u.then)return b(l,c,Ja(u),h);if(u.$$typeof===y)return b(l,c,zi(l,u),h);ts(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(h=o(c,u)).return=l,l=h):(n(l,c),(h=Hr(u,l.mode,h)).return=l,l=h),s(l)):n(l,c)}return function(e,t,n,r){try{Za=0;var i=b(e,t,n,r);return Qa=null,i}catch(a){if(a===Gi||a===Xi)throw a;var o=Lr(29,a,null,e.mode);return o.lanes=r,o.return=e,o}}}var is=rs(!0),os=rs(!1),as=B(null),ss=null;function ls(e){var t=e.alternate;V(fs,1&fs.current),V(as,e),null===ss&&(null===t||null!==mo.current||null!==t.memoizedState)&&(ss=e)}function cs(e){if(22===e.tag){if(V(fs,fs.current),V(as,e),null===ss){var t=e.alternate;null!==t&&null!==t.memoizedState&&(ss=e)}}else us()}function us(){V(fs,fs.current),V(as,as.current)}function ds(e){W(as),ss===e&&(ss=null),W(fs)}var fs=B(0);function ps(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||bd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function hs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var gs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Nc(),i=ao(r);i.payload=t,null!=n&&(i.callback=n),null!==(t=so(e,i,r))&&(Lc(t,0,r),lo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Nc(),i=ao(r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=so(e,i,r))&&(Lc(t,0,r),lo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nc(),r=ao(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=so(e,r,n))&&(Lc(t,0,n),lo(t,e,n))}};function ms(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&Zn(n,r)&&Zn(i,o))}function vs(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&gs.enqueueReplaceState(t,t.state,null)}function bs(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=c({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}var ys="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)};function xs(e){ys(e)}function ks(e){}function ws(e){ys(e)}function Ss(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function _s(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Cs(e,t,n){return(n=ao(n)).tag=3,n.payload={element:null},n.callback=function(){Ss(e,t)},n}function Ps(e){return(e=ao(e)).tag=3,e}function Es(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"==typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){_s(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){_s(t,n,r),"function"!=typeof i&&(null===Pc?Pc=new Set([this]):Pc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Rs=Error(r(461)),zs=!1;function Ts(e,t,n,r){t.child=null===e?os(t,null,n,r):is(t,e.child,n,r)}function Is(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Ei(t),r=Ao(e,t,n,a,o,i),s=Lo(),null===e||zs?(si&&s&&ri(t),t.flags|=1,Ts(e,t,r,i),t.child):(jo(e,t,i),Qs(e,t,i))}function Os(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||jr(o)||void 0!==o.defaultProps||null!==n.compare?((e=Wr(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Fs(e,t,o,r,i))}if(o=e.child,!Zs(e,i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(a,r)&&e.ref===t.ref)return Qs(e,t,i)}return t.flags|=1,(e=$r(o,r)).ref=t.ref,e.return=t,t.child=e}function Fs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Zn(o,r)&&e.ref===t.ref){if(zs=!1,t.pendingProps=r=o,!Zs(e,i))return t.lanes=e.lanes,Qs(e,t,i);131072&e.flags&&(zs=!0)}}return Ds(e,t,n,r,i)}function As(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==o?o.baseLanes|n:n,null!==e){for(i=t.child=e.child,o=0;null!==i;)o=o|i.lanes|i.childLanes,i=i.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Ms(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Ms(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ui(0,null!==o?o.cachePool:null),null!==o?bo(t,o):yo(),cs(t)}else null!==o?(Ui(0,o.cachePool),bo(t,o),us(),t.memoizedState=null):(null!==e&&Ui(0,null),yo(),us());return Ts(e,t,i,n),t.child}function Ms(e,t,n,r){var i=Hi();return i=null===i?null:{parent:Ai._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Ui(0,null),yo(),cs(t),null!==e&&Ci(e,t,r,!0),null}function Ns(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ds(e,t,n,r,i){return Ei(t),n=Ao(e,t,n,r,void 0,i),r=Lo(),null===e||zs?(si&&r&&ri(t),t.flags|=1,Ts(e,t,n,i),t.child):(jo(e,t,i),Qs(e,t,i))}function Ls(e,t,n,r,i,o){return Ei(t),t.updateQueue=null,n=No(t,r,n,i),Mo(e),r=Lo(),null===e||zs?(si&&r&&ri(t),t.flags|=1,Ts(e,t,n,o),t.child):(jo(e,t,o),Qs(e,t,o))}function js(e,t,n,r,i){if(Ei(t),null===t.stateNode){var o=Nr,a=n.contextType;"object"==typeof a&&null!==a&&(o=Ri(a)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=gs,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},io(t),a=n.contextType,o.context="object"==typeof a&&null!==a?Ri(a):Nr,o.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(hs(t,n,a,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(a=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),a!==o.state&&gs.enqueueReplaceState(o,o.state,null),po(t,r,o,i),fo(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var s=t.memoizedProps,l=bs(n,s);o.props=l;var c=o.context,u=n.contextType;a=Nr,"object"==typeof u&&null!==u&&(a=Ri(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s||c!==a)&&vs(t,o,r,a),ro=!1;var f=t.memoizedState;o.state=f,po(t,r,o,i),fo(),c=t.memoizedState,s||f!==c||ro?("function"==typeof d&&(hs(t,n,d,r),c=t.memoizedState),(l=ro||ms(t,n,l,r,f,c,a))?(u||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=a,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,oo(e,t),u=bs(n,a=t.memoizedProps),o.props=u,d=t.pendingProps,f=o.context,c=n.contextType,l=Nr,"object"==typeof c&&null!==c&&(l=Ri(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==d||f!==l)&&vs(t,o,r,l),ro=!1,f=t.memoizedState,o.state=f,po(t,r,o,i),fo();var p=t.memoizedState;a!==d||f!==p||ro||null!==e&&null!==e.dependencies&&Pi(e.dependencies)?("function"==typeof s&&(hs(t,n,s,r),p=t.memoizedState),(u=ro||ms(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&Pi(e.dependencies))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Ns(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=is(t,e.child,null,i),t.child=is(t,null,n,i)):Ts(e,t,n,i),t.memoizedState=o.state,e=t.child):e=Qs(e,t,i),e}function $s(e,t,n,r){return gi(),t.flags|=256,Ts(e,t,n,r),t.child}var Bs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ws(e){return{baseLanes:e,cachePool:qi()}}function Vs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=bc),e}function Hs(e,t,n){var i,o=t.pendingProps,a=!1,s=!!(128&t.flags);if((i=s)||(i=(null===e||null!==e.memoizedState)&&!!(2&fs.current)),i&&(a=!0,t.flags&=-129),i=!!(32&t.flags),t.flags&=-33,null===e){if(si){if(a?ls(t):us(),si){var l,c=ai;if(l=c){e:{for(l=c,c=ci;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=yd(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Zr?{id:Jr,overflow:ei}:null,retryLane:536870912,hydrationErrors:null},(l=Lr(18,null,null,0)).stateNode=c,l.return=t,t.child=l,oi=t,ai=null,l=!0):l=!1}l||di(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return bd(c)?t.lanes=32:t.lanes=536870912,null;ds(t)}return c=o.children,o=o.fallback,a?(us(),c=qs({mode:"hidden",children:c},a=t.mode),o=Vr(o,a,n,null),c.return=t,o.return=t,c.sibling=o,t.child=c,(a=t.child).memoizedState=Ws(n),a.childLanes=Vs(e,i,n),t.memoizedState=Bs,o):(ls(t),Us(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(s)256&t.flags?(ls(t),t.flags&=-257,t=Gs(e,t,n)):null!==t.memoizedState?(us(),t.child=e.child,t.flags|=128,t=null):(us(),a=o.fallback,c=t.mode,o=qs({mode:"visible",children:o.children},c),(a=Vr(a,c,n,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,is(t,e.child,null,n),(o=t.child).memoizedState=Ws(n),o.childLanes=Vs(e,i,n),t.memoizedState=Bs,t=a);else if(ls(t),bd(c)){if(i=c.nextSibling&&c.nextSibling.dataset)var u=i.dgst;i=u,(o=Error(r(419))).stack="",o.digest=i,vi({value:o,source:null,stack:null}),t=Gs(e,t,n)}else if(zs||Ci(e,t,n,!1),i=0!==(n&e.childLanes),zs||i){if(null!==(i=oc)&&0!==(o=0!==((o=42&(o=n&-n)?1:Te(o))&(i.suspendedLanes|n))?0:o)&&o!==l.retryLane)throw l.retryLane=o,Fr(e,o),Lc(i,0,o),Rs;"$?"===c.data||Xc(),t=Gs(e,t,n)}else"$?"===c.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ai=yd(c.nextSibling),oi=t,si=!0,li=null,ci=!1,null!==e&&(Kr[Qr++]=Jr,Kr[Qr++]=ei,Kr[Qr++]=Zr,Jr=e.id,ei=e.overflow,Zr=t),(t=Us(t,o.children)).flags|=4096);return t}return a?(us(),a=o.fallback,c=t.mode,u=(l=e.child).sibling,(o=$r(l,{mode:"hidden",children:o.children})).subtreeFlags=65011712&l.subtreeFlags,null!==u?a=$r(u,a):(a=Vr(a,c,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,null===(c=e.child.memoizedState)?c=Ws(n):(null!==(l=c.cachePool)?(u=Ai._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=qi(),c={baseLanes:c.baseLanes|n,cachePool:l}),a.memoizedState=c,a.childLanes=Vs(e,i,n),t.memoizedState=Bs,o):(ls(t),e=(n=e.child).sibling,(n=$r(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(i=t.deletions)?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function Us(e,t){return(t=qs({mode:"visible",children:t},e.mode)).return=e,e.child=t}function qs(e,t){return(e=Lr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Gs(e,t,n){return is(t,e.child,null,n),(e=Us(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ys(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Si(e.return,t,n)}function Xs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ks(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ts(e,t,r.children,n),2&(r=fs.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ys(e,n,t);else if(19===e.tag)Ys(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(V(fs,r),i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ps(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ps(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xs(t,!0,n,null,o);break;case"together":Xs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),gc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ci(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=$r(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$r(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zs(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Pi(e))}function Js(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)zs=!0;else{if(!(Zs(e,n)||128&t.flags))return zs=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),ki(0,Ai,e.memoizedState.cache),gi();break;case 27:case 5:K(t);break;case 4:Y(t,t.stateNode.containerInfo);break;case 10:ki(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(ls(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Hs(e,t,n):(ls(t),null!==(e=Qs(e,t,n))?e.sibling:null);ls(t);break;case 19:var i=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ci(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return Ks(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(fs,fs.current),r)break;return null;case 22:case 23:return t.lanes=0,As(e,t,n);case 24:ki(0,Ai,e.memoizedState.cache)}return Qs(e,t,n)}(e,t,n);zs=!!(131072&e.flags)}else zs=!1,si&&1048576&t.flags&&ni(t,Xr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,o=i._init;if(i=o(i._payload),t.type=i,"function"!=typeof i){if(null!=i){if((o=i.$$typeof)===x){t.tag=11,t=Is(null,t,i,e,n);break e}if(o===_){t.tag=14,t=Os(null,t,i,e,n);break e}}throw t=F(i)||i,Error(r(306,t,""))}jr(i)?(e=bs(i,e),t.tag=1,t=js(null,t,i,e,n)):(t.tag=0,t=Ds(null,t,i,e,n))}return t;case 0:return Ds(e,t,t.type,t.pendingProps,n);case 1:return js(e,t,i=t.type,o=bs(i,t.pendingProps),n);case 3:e:{if(Y(t,t.stateNode.containerInfo),null===e)throw Error(r(387));i=t.pendingProps;var a=t.memoizedState;o=a.element,oo(e,t),po(t,i,null,n);var s=t.memoizedState;if(i=s.cache,ki(0,Ai,i),i!==a.cache&&_i(t,[Ai],n,!0),fo(),i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=$s(e,t,i,n);break e}if(i!==o){vi(o=Pr(Error(r(424)),t)),t=$s(e,t,i,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ai=yd(e.firstChild),oi=t,si=!0,li=null,ci=!0,n=os(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(gi(),i===o){t=Qs(e,t,n);break e}Ts(e,t,i,n)}t=t.child}return t;case 26:return Ns(e,t),null===e?(n=Td(t.type,null,t.pendingProps,null))?t.memoizedState=n:si||(n=t.type,e=t.pendingProps,(i=od(q.current).createElement(n))[Ae]=t,i[Me]=e,nd(i,n,e),Ge(i),t.stateNode=i):t.memoizedState=Td(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return K(t),null===e&&si&&(i=t.stateNode=wd(t.type,t.pendingProps,q.current),oi=t,ci=!0,o=ai,gd(t.type)?(xd=o,ai=yd(i.firstChild)):ai=o),Ts(e,t,t.pendingProps.children,n),Ns(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&si&&((o=i=ai)&&(null!==(i=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Be])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=yd(e.nextSibling)))break}return null}(i,t.type,t.pendingProps,ci))?(t.stateNode=i,oi=t,ai=yd(i.firstChild),ci=!1,o=!0):o=!1),o||di(t)),K(t),o=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,i=a.children,ld(o,a)?i=null:null!==s&&ld(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=Ao(e,t,Do,null,null,n),Kd._currentValue=o),Ns(e,t),Ts(e,t,i,n),t.child;case 6:return null===e&&si&&((e=n=ai)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=yd(e.nextSibling)))return null}return e}(n,t.pendingProps,ci))?(t.stateNode=n,oi=t,ai=null,e=!0):e=!1),e||di(t)),null;case 13:return Hs(e,t,n);case 4:return Y(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=is(t,null,i,n):Ts(e,t,i,n),t.child;case 11:return Is(e,t,t.type,t.pendingProps,n);case 7:return Ts(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ts(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,ki(0,t.type,i.value),Ts(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,Ei(t),i=i(o=Ri(o)),t.flags|=1,Ts(e,t,i,n),t.child;case 14:return Os(e,t,t.type,t.pendingProps,n);case 15:return Fs(e,t,t.type,t.pendingProps,n);case 19:return Ks(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},null===e?((n=qs(i,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=$r(e.child,i)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return As(e,t,n);case 24:return Ei(t),i=Ri(Ai),null===e?(null===(o=Hi())&&(o=oc,a=Mi(),o.pooledCache=a,a.refCount++,null!==a&&(o.pooledCacheLanes|=n),o=a),t.memoizedState={parent:i,cache:o},io(t),ki(0,Ai,o)):(0!==(e.lanes&n)&&(oo(e,t),po(t,null,null,n),fo()),o=e.memoizedState,a=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),ki(0,Ai,i)):(i=a.cache,ki(0,Ai,i),i!==o.cache&&_i(t,[Ai],n,!0))),Ts(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function el(e){e.flags|=4}function tl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Vd(t)){if(null!==(t=as.current)&&((4194048&sc)===sc?null!==ss:(62914560&sc)!==sc&&!(536870912&sc)||t!==ss))throw eo=Ki,Yi;e.flags|=8192}}function nl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ce():536870912,e.lanes|=t,yc|=t)}function rl(e,t){if(!si)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function il(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)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 ol(e,t,n){var i=t.pendingProps;switch(ii(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return il(t),null;case 3:return n=t.stateNode,i=null,null!==e&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),wi(Ai),X(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(hi(t)?el(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,mi())),il(t),null;case 26:return n=t.memoizedState,null===e?(el(t),null!==n?(il(t),tl(t,n)):(il(t),t.flags&=-16777217)):n?n!==e.memoizedState?(el(t),il(t),tl(t,n)):(il(t),t.flags&=-16777217):(e.memoizedProps!==i&&el(t),il(t),t.flags&=-16777217),null;case 27:Q(t),n=q.current;var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if(!i){if(null===t.stateNode)throw Error(r(166));return il(t),null}e=H.current,hi(t)?fi(t):(e=wd(o,i,n),t.stateNode=e,el(t))}return il(t),null;case 5:if(Q(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if(!i){if(null===t.stateNode)throw Error(r(166));return il(t),null}if(e=H.current,hi(t))fi(t);else{switch(o=od(q.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof i.is?o.createElement("select",{is:i.is}):o.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e="string"==typeof i.is?o.createElement(n,{is:i.is}):o.createElement(n)}}e[Ae]=t,e[Me]=i;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(nd(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&el(t)}}return il(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if("string"!=typeof i&&null===t.stateNode)throw Error(r(166));if(e=q.current,hi(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,null!==(o=oi))switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Ae]=t,(e=!!(e.nodeValue===n||null!==i&&!0===i.suppressHydrationWarning||Zu(e.nodeValue,n)))||di(t)}else(e=od(e).createTextNode(i))[Ae]=t,t.stateNode=e}return il(t),null;case 13:if(i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=hi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!o)throw Error(r(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(r(317));o[Ae]=t}else gi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;il(t),o=!1}else o=mi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(ds(t),t):(ds(t),null)}if(ds(t),128&t.flags)return t.lanes=n,t;if(n=null!==i,e=null!==e&&null!==e.memoizedState,n){o=null,null!==(i=t.child).alternate&&null!==i.alternate.memoizedState&&null!==i.alternate.memoizedState.cachePool&&(o=i.alternate.memoizedState.cachePool.pool);var a=null;null!==i.memoizedState&&null!==i.memoizedState.cachePool&&(a=i.memoizedState.cachePool.pool),a!==o&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),nl(t,t.updateQueue),il(t),null;case 4:return X(),null===e&&Wu(t.stateNode.containerInfo),il(t),null;case 10:return wi(t.type),il(t),null;case 19:if(W(fs),null===(o=t.memoizedState))return il(t),null;if(i=!!(128&t.flags),null===(a=o.rendering))if(i)rl(o,!1);else{if(0!==hc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=ps(e))){for(t.flags|=128,rl(o,!1),e=a.updateQueue,t.updateQueue=e,nl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return V(fs,1&fs.current|2),t.child}e=e.sibling}null!==o.tail&&re()>_c&&(t.flags|=128,i=!0,rl(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ps(a))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,nl(t,e),rl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!si)return il(t),null}else 2*re()-o.renderingStartTime>_c&&536870912!==n&&(t.flags|=128,i=!0,rl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=re(),t.sibling=null,e=fs.current,V(fs,i?1&e|2:1&e),t):(il(t),null);case 22:case 23:return ds(t),xo(),i=null!==t.memoizedState,null!==e?null!==e.memoizedState!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?!!(536870912&n)&&!(128&t.flags)&&(il(t),6&t.subtreeFlags&&(t.flags|=8192)):il(t),null!==(n=t.updateQueue)&&nl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),i=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),null!==e&&W(Vi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wi(Ai),il(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function al(e,t){switch(ii(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return wi(Ai),X(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Q(t),null;case 13:if(ds(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));gi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return W(fs),null;case 4:return X(),null;case 10:return wi(t.type),null;case 22:case 23:return ds(t),xo(),null!==e&&W(Vi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return wi(Ai),null;default:return null}}function sl(e,t){switch(ii(t),t.tag){case 3:wi(Ai),X();break;case 26:case 27:case 5:Q(t);break;case 4:X();break;case 13:ds(t);break;case 19:W(fs);break;case 10:wi(t.type);break;case 22:case 23:ds(t),xo(),null!==e&&W(Vi);break;case 24:wi(Ai)}}function ll(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(s){fu(t,t.return,s)}}function cl(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,i=t;var l=n,c=s;try{c()}catch(u){fu(i,l,u)}}}r=r.next}while(r!==o)}}catch(u){fu(t,t.return,u)}}function ul(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{go(t,n)}catch(r){fu(e,e.return,r)}}}function dl(e,t,n){n.props=bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){fu(e,t,r)}}function fl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(i){fu(e,t,i)}}function pl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(i){fu(e,t,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(o){fu(e,t,o)}else n.current=null}function hl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){fu(e,e.return,i)}}function gl(e,t,n){try{var i=e.stateNode;!function(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:i.hasOwnProperty(h)||ed(e,t,h,null,i,f)}}for(var p in i){var h=i[p];if(f=n[p],i.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":o=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&ed(e,t,p,h,i,f)}}return void bt(e,s,l,c,u,d,a,o);case"select":for(a in h=s=l=p=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":h=c;default:i.hasOwnProperty(a)||ed(e,t,a,null,i,c)}for(o in i)if(a=i[o],c=n[o],i.hasOwnProperty(o)&&(null!=a||null!=c))switch(o){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==c&&ed(e,t,o,a,i,c)}return t=l,n=s,i=h,void(null!=p?kt(e,!!n,p,!1):!!i!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!i.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ed(e,t,l,null,i,o)}for(s in i)if(o=i[s],a=n[s],i.hasOwnProperty(s)&&(null!=o||null!=a))switch(s){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(r(91));break;default:o!==a&&ed(e,t,s,o,i,a)}return void wt(e,p,h);case"option":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!i.hasOwnProperty(g)&&("selected"===g?e.selected=!1:ed(e,t,g,null,i,p));for(c in i)p=i[c],h=n[c],!i.hasOwnProperty(c)||p===h||null==p&&null==h||("selected"===c?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:ed(e,t,c,p,i,h));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 m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!i.hasOwnProperty(m)&&ed(e,t,m,null,i,p);for(u in i)if(p=i[u],h=n[u],i.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:ed(e,t,u,p,i,h)}return;default:if(Rt(t)){for(var v in n)p=n[v],n.hasOwnProperty(v)&&void 0!==p&&!i.hasOwnProperty(v)&&td(e,t,v,void 0,i,p);for(d in i)p=i[d],h=n[d],!i.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||td(e,t,d,p,i,h);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!i.hasOwnProperty(b)&&ed(e,t,b,null,i,p);for(f in i)p=i[f],h=n[f],!i.hasOwnProperty(f)||p===h||null==p&&null==h||ed(e,t,f,p,i,h)}(i,e.type,n,t),i[Me]=t}catch(o){fu(e,e.return,o)}}function ml(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&gd(e.type)||4===e.tag}function vl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ml(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&gd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function bl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Ju));else if(4!==r&&(27===r&&gd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(bl(e,t,n),e=e.sibling;null!==e;)bl(e,t,n),e=e.sibling}function yl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&gd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(yl(e,t,n),e=e.sibling;null!==e;)yl(e,t,n),e=e.sibling}function xl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);nd(t,r,n),t[Ae]=e,t[Me]=n}catch(o){fu(e,e.return,o)}}var kl=!1,wl=!1,Sl=!1,_l="function"==typeof WeakSet?WeakSet:Set,Cl=null;function Pl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:jl(e,n),4&r&&ll(5,n);break;case 1:if(jl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){fu(n,n.return,a)}else{var i=bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){fu(n,n.return,s)}}64&r&&ul(n),512&r&&fl(n,n.return);break;case 3:if(jl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{go(e,t)}catch(a){fu(n,n.return,a)}}break;case 27:null===t&&4&r&&xl(n);case 26:case 5:jl(e,n),null===t&&4&r&&hl(n),512&r&&fl(n,n.return);break;case 12:jl(e,n);break;case 13:jl(e,n),4&r&&Ol(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=mu.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||kl)){t=null!==t&&null!==t.memoizedState||wl,i=kl;var o=wl;kl=r,(wl=t)&&!o?Bl(e,n,!!(8772&n.subtreeFlags)):jl(e,n),kl=i,wl=o}break;case 30:break;default:jl(e,n)}}function El(e){var t=e.alternate;null!==t&&(e.alternate=null,El(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&We(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 Rl=null,zl=!1;function Tl(e,t,n){for(n=n.child;null!==n;)Il(e,t,n),n=n.sibling}function Il(e,t,n){if(pe&&"function"==typeof pe.onCommitFiberUnmount)try{pe.onCommitFiberUnmount(fe,n)}catch(o){}switch(n.tag){case 26:wl||pl(n,t),Tl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:wl||pl(n,t);var r=Rl,i=zl;gd(n.type)&&(Rl=n.stateNode,zl=!1),Tl(e,t,n),Sd(n.stateNode),Rl=r,zl=i;break;case 5:wl||pl(n,t);case 6:if(r=Rl,i=zl,Rl=null,Tl(e,t,n),zl=i,null!==(Rl=r))if(zl)try{(9===Rl.nodeType?Rl.body:"HTML"===Rl.nodeName?Rl.ownerDocument.body:Rl).removeChild(n.stateNode)}catch(a){fu(n,t,a)}else try{Rl.removeChild(n.stateNode)}catch(a){fu(n,t,a)}break;case 18:null!==Rl&&(zl?(md(9===(e=Rl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Tf(e)):md(Rl,n.stateNode));break;case 4:r=Rl,i=zl,Rl=n.stateNode.containerInfo,zl=!0,Tl(e,t,n),Rl=r,zl=i;break;case 0:case 11:case 14:case 15:wl||cl(2,n,t),wl||cl(4,n,t),Tl(e,t,n);break;case 1:wl||(pl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&dl(n,t,r)),Tl(e,t,n);break;case 21:Tl(e,t,n);break;case 22:wl=(r=wl)||null!==n.memoizedState,Tl(e,t,n),wl=r;break;default:Tl(e,t,n)}}function Ol(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Tf(e)}catch(n){fu(t,t.return,n)}}function Fl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new _l),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new _l),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){var r=vu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function Al(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var o=n[i],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(gd(l.type)){Rl=l.stateNode,zl=!1;break e}break;case 5:Rl=l.stateNode,zl=!1;break e;case 3:case 4:Rl=l.stateNode.containerInfo,zl=!0;break e}l=l.return}if(null===Rl)throw Error(r(160));Il(a,s,o),Rl=null,zl=!1,null!==(a=o.alternate)&&(a.return=null),o.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Nl(t,e),t=t.sibling}var Ml=null;function Nl(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Al(t,e),Dl(e),4&i&&(cl(3,e,e.return),ll(3,e),cl(5,e,e.return));break;case 1:Al(t,e),Dl(e),512&i&&(wl||null===n||pl(n,n.return)),64&i&&kl&&null!==(e=e.updateQueue)&&null!==(i=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?i:n.concat(i));break;case 26:var o=Ml;if(Al(t,e),Dl(e),512&i&&(wl||null===n||pl(n,n.return)),4&i){var a=null!==n?n.memoizedState:null;if(i=e.memoizedState,null===n)if(null===i)if(null===e.stateNode){e:{i=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":(!(a=o.getElementsByTagName("title")[0])||a[Be]||a[Ae]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=o.createElement(i),o.head.insertBefore(a,o.querySelector("head > title"))),nd(a,i,n),a[Ae]=e,Ge(a),i=a;break e;case"link":var s=Bd("link","href",o).get(i+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}nd(a=o.createElement(i),i,n),o.head.appendChild(a);break;case"meta":if(s=Bd("meta","content",o).get(i+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}nd(a=o.createElement(i),i,n),o.head.appendChild(a);break;default:throw Error(r(468,i))}a[Ae]=e,Ge(a),i=a}e.stateNode=i}else Wd(o,e.type,e.stateNode);else e.stateNode=Nd(o,i,e.memoizedProps);else a!==i?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===i?Wd(o,e.type,e.stateNode):Nd(o,i,e.memoizedProps)):null===i&&null!==e.stateNode&&gl(e,e.memoizedProps,n.memoizedProps)}break;case 27:Al(t,e),Dl(e),512&i&&(wl||null===n||pl(n,n.return)),null!==n&&4&i&&gl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Al(t,e),Dl(e),512&i&&(wl||null===n||pl(n,n.return)),32&e.flags){o=e.stateNode;try{_t(o,"")}catch(h){fu(e,e.return,h)}}4&i&&null!=e.stateNode&&gl(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&i&&(Sl=!0);break;case 6:if(Al(t,e),Dl(e),4&i){if(null===e.stateNode)throw Error(r(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(h){fu(e,e.return,h)}}break;case 3:if($d=null,o=Ml,Ml=Pd(t.containerInfo),Al(t,e),Ml=o,Dl(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Tf(t.containerInfo)}catch(h){fu(e,e.return,h)}Sl&&(Sl=!1,Ll(e));break;case 4:i=Ml,Ml=Pd(e.stateNode.containerInfo),Al(t,e),Dl(e),Ml=i;break;case 12:default:Al(t,e),Dl(e);break;case 13:Al(t,e),Dl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Sc=re()),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Fl(e,i));break;case 22:o=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=kl,d=wl;if(kl=u||o,wl=d||c,Al(t,e),wl=d,kl=u,Dl(e),8192&i)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||c||kl||wl||$l(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,o)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(h){fu(c,c.return,h)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=o?"":c.memoizedProps}catch(h){fu(c,c.return,h)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&i&&null!==(i=e.updateQueue)&&null!==(n=i.retryQueue)&&(i.retryQueue=null,Fl(e,n));break;case 19:Al(t,e),Dl(e),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Fl(e,i));case 30:case 21:}}function Dl(e){var t=e.flags;if(2&t){try{for(var n,i=e.return;null!==i;){if(ml(i)){n=i;break}i=i.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode;yl(e,vl(e),o);break;case 5:var a=n.stateNode;32&n.flags&&(_t(a,""),n.flags&=-33),yl(e,vl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;bl(e,vl(e),s);break;default:throw Error(r(161))}}catch(l){fu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ll(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ll(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function jl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Pl(e,t.alternate,t),t=t.sibling}function $l(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cl(4,t,t.return),$l(t);break;case 1:pl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&dl(t,t.return,n),$l(t);break;case 27:Sd(t.stateNode);case 26:case 5:pl(t,t.return),$l(t);break;case 22:null===t.memoizedState&&$l(t);break;default:$l(t)}e=e.sibling}}function Bl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Bl(i,o,n),ll(4,o);break;case 1:if(Bl(i,o,n),"function"==typeof(i=(r=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(c){fu(r,r.return,c)}if(null!==(i=(r=o).updateQueue)){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)ho(l[i],s)}catch(c){fu(r,r.return,c)}}n&&64&a&&ul(o),fl(o,o.return);break;case 27:xl(o);case 26:case 5:Bl(i,o,n),n&&null===r&&4&a&&hl(o),fl(o,o.return);break;case 12:Bl(i,o,n);break;case 13:Bl(i,o,n),n&&4&a&&Ol(i,o);break;case 22:null===o.memoizedState&&Bl(i,o,n),fl(o,o.return);break;case 30:break;default:Bl(i,o,n)}t=t.sibling}}function Wl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ni(n))}function Vl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ni(e))}function Hl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Ul(e,t,n,r),t=t.sibling}function Ul(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Hl(e,t,n,r),2048&i&&ll(9,t);break;case 1:case 13:default:Hl(e,t,n,r);break;case 3:Hl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ni(e)));break;case 12:if(2048&i){Hl(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,s=o.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){fu(t,t.return,l)}}else Hl(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,null!==t.memoizedState?2&o._visibility?Hl(e,t,n,r):Gl(e,t):2&o._visibility?Hl(e,t,n,r):(o._visibility|=2,ql(e,t,n,r,!!(10256&t.subtreeFlags))),2048&i&&Wl(a,t);break;case 24:Hl(e,t,n,r),2048&i&&Vl(t.alternate,t)}}function ql(e,t,n,r,i){for(i=i&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var o=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:ql(o,a,s,l,i),ll(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?ql(o,a,s,l,i):Gl(o,a):(u._visibility|=2,ql(o,a,s,l,i)),i&&2048&c&&Wl(a.alternate,a);break;case 24:ql(o,a,s,l,i),i&&2048&c&&Vl(a.alternate,a);break;default:ql(o,a,s,l,i)}t=t.sibling}}function Gl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Gl(n,r),2048&i&&Wl(r.alternate,r);break;case 24:Gl(n,r),2048&i&&Vl(r.alternate,r);break;default:Gl(n,r)}t=t.sibling}}var Yl=8192;function Xl(e){if(e.subtreeFlags&Yl)for(e=e.child;null!==e;)Kl(e),e=e.sibling}function Kl(e){switch(e.tag){case 26:Xl(e),e.flags&Yl&&null!==e.memoizedState&&function(e,t,n){if(null===Hd)throw Error(r(475));var i=Hd;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var o=Id(n.href),a=e.querySelector(Od(o));if(a)return null!==(e=a._p)&&"object"==typeof e&&"function"==typeof e.then&&(i.count++,i=qd.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=a,void Ge(a);a=e.ownerDocument||e,n=Fd(n),(o=_d.get(o))&&Ld(n,o),Ge(a=a.createElement("link"));var s=a;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),nd(a,"link",n),t.instance=a}null===i.stylesheets&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(i.count++,t=qd.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}(Ml,e.memoizedState,e.memoizedProps);break;case 5:default:Xl(e);break;case 3:case 4:var t=Ml;Ml=Pd(e.stateNode.containerInfo),Xl(e),Ml=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Yl,Yl=16777216,Xl(e),Yl=t):Xl(e))}}function Ql(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Zl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Cl=r,tc(r,e)}Ql(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Jl(e),e=e.sibling}function Jl(e){switch(e.tag){case 0:case 11:case 15:Zl(e),2048&e.flags&&cl(9,e,e.return);break;case 3:case 12:default:Zl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,ec(e)):Zl(e)}}function ec(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Cl=r,tc(r,e)}Ql(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:cl(8,t,t.return),ec(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,ec(t));break;default:ec(t)}e=e.sibling}}function tc(e,t){for(;null!==Cl;){var n=Cl;switch(n.tag){case 0:case 11:case 15:cl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ni(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Cl=r;else e:for(n=e;null!==Cl;){var i=(r=Cl).sibling,o=r.return;if(El(r),r===n){Cl=null;break e}if(null!==i){i.return=o,Cl=i;break e}Cl=o}}}var nc={getCacheForType:function(e){var t=Ri(Ai),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},rc="function"==typeof WeakMap?WeakMap:Map,ic=0,oc=null,ac=null,sc=0,lc=0,cc=null,uc=!1,dc=!1,fc=!1,pc=0,hc=0,gc=0,mc=0,vc=0,bc=0,yc=0,xc=null,kc=null,wc=!1,Sc=0,_c=1/0,Cc=null,Pc=null,Ec=0,Rc=null,zc=null,Tc=0,Ic=0,Oc=null,Fc=null,Ac=0,Mc=null;function Nc(){return 2&ic&&0!==sc?sc&-sc:null!==N.T?0!==ji?ji:Iu():Oe()}function Dc(){0===bc&&(bc=536870912&sc&&!si?536870912:_e());var e=as.current;return null!==e&&(e.flags|=32),bc}function Lc(e,t,n){(e!==oc||2!==lc&&9!==lc)&&null===e.cancelPendingCommit||(Uc(e,0),Wc(e,sc,bc,!1)),Ee(e,n),2&ic&&e===oc||(e===oc&&(!(2&ic)&&(mc|=n),4===hc&&Wc(e,sc,bc,!1)),_u(e))}function jc(e,t,n){if(6&ic)throw Error(r(327));for(var i=!n&&!(124&t)&&0===(t&e.expiredLanes)||we(e,t),o=i?function(e,t){var n=ic;ic|=2;var i=Gc(),o=Yc();oc!==e||sc!==t?(Cc=null,_c=re()+500,Uc(e,t)):dc=we(e,t);e:for(;;)try{if(0!==lc&&null!==ac){t=ac;var a=cc;t:switch(lc){case 1:lc=0,cc=null,tu(e,t,a,1);break;case 2:case 9:if(Qi(a)){lc=0,cc=null,eu(t);break}t=function(){2!==lc&&9!==lc||oc!==e||(lc=7),_u(e)},a.then(t,t);break e;case 3:lc=7;break e;case 4:lc=5;break e;case 7:Qi(a)?(lc=0,cc=null,eu(t)):(lc=0,cc=null,tu(e,t,a,7));break;case 5:var s=null;switch(ac.tag){case 26:s=ac.memoizedState;case 5:case 27:var l=ac;if(!s||Vd(s)){lc=0,cc=null;var c=l.sibling;if(null!==c)ac=c;else{var u=l.return;null!==u?(ac=u,nu(u)):ac=null}break t}}lc=0,cc=null,tu(e,t,a,5);break;case 6:lc=0,cc=null,tu(e,t,a,6);break;case 8:Hc(),hc=6;break e;default:throw Error(r(462))}}Zc();break}catch(d){qc(e,d)}return xi=yi=null,N.H=i,N.A=o,ic=n,null!==ac?0:(oc=null,sc=0,Tr(),hc)}(e,t):Kc(e,t,!0),a=i;;){if(0===o){dc&&!i&&Wc(e,t,0,!1);break}if(n=e.current.alternate,!a||Bc(n)){if(2===o){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=xc;var c=l.current.memoizedState.isDehydrated;if(c&&(Uc(l,s).flags|=256),2!==(s=Kc(l,s,!1))){if(fc&&!c){l.errorRecoveryDisabledLanes|=a,mc|=a,o=4;break e}a=kc,kc=o,null!==a&&(null===kc?kc=a:kc.push.apply(kc,a))}o=s}if(a=!1,2!==o)continue}}if(1===o){Uc(e,0),Wc(e,t,0,!0);break}e:{switch(i=e,a=o){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Wc(i,t,bc,!uc);break e;case 2:kc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(o=Sc+300-re())){if(Wc(i,t,bc,!uc),0!==ke(i,0,!0))break e;i.timeoutHandle=ud($c.bind(null,i,n,kc,Cc,wc,t,bc,mc,yc,uc,a,2,-0,0),o)}else $c(i,n,kc,Cc,wc,t,bc,mc,yc,uc,a,0,-0,0)}break}o=Kc(e,t,!1),a=!1}_u(e)}function $c(e,t,n,i,o,a,s,l,c,u,d,f,p,h){if(e.timeoutHandle=-1,(8192&(f=t.subtreeFlags)||!(16785408&~f))&&(Hd={stylesheets:null,count:0,unsuspend:Ud},Kl(t),null!==(f=function(){if(null===Hd)throw Error(r(475));var e=Hd;return e.stylesheets&&0===e.count&&Yd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Yd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=f(iu.bind(null,e,t,a,n,i,o,s,l,c,d,1,p,h)),void Wc(e,a,s,!u);iu(e,t,a,n,i,o,s,l,c)}function Bc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Qn(o(),i))return!1}catch(a){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wc(e,t,n,r){t&=~vc,t&=~mc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-ge(i),a=1<<o;r[o]=-1,i&=~a}0!==n&&Re(e,n,t)}function Vc(){return!!(6&ic)||(Cu(0),!1)}function Hc(){if(null!==ac){if(0===lc)var e=ac.return;else xi=yi=null,$o(e=ac),Qa=null,Za=0,e=ac;for(;null!==e;)sl(e.alternate,e),e=e.return;ac=null}}function Uc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,dd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Hc(),oc=e,ac=n=$r(e.current,null),sc=t,lc=0,cc=null,uc=!1,dc=we(e,t),fc=!1,yc=bc=vc=mc=gc=hc=0,kc=xc=null,wc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-ge(r),o=1<<i;t|=e[i],r&=~o}return pc=t,Tr(),n}function qc(e,t){wo=null,N.H=Ga,t===Gi||t===Xi?(t=to(),lc=3):t===Yi?(t=to(),lc=4):lc=t===Rs?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,cc=t,null===ac&&(hc=1,Ss(e,Pr(t,e.current)))}function Gc(){var e=N.H;return N.H=Ga,null===e?Ga:e}function Yc(){var e=N.A;return N.A=nc,e}function Xc(){hc=4,uc||(4194048&sc)!==sc&&null!==as.current||(dc=!0),!(134217727&gc)&&!(134217727&mc)||null===oc||Wc(oc,sc,bc,!1)}function Kc(e,t,n){var r=ic;ic|=2;var i=Gc(),o=Yc();oc===e&&sc===t||(Cc=null,Uc(e,t)),t=!1;var a=hc;e:for(;;)try{if(0!==lc&&null!==ac){var s=ac,l=cc;switch(lc){case 8:Hc(),a=6;break e;case 3:case 2:case 9:case 6:null===as.current&&(t=!0);var c=lc;if(lc=0,cc=null,tu(e,s,l,c),n&&dc){a=0;break e}break;default:c=lc,lc=0,cc=null,tu(e,s,l,c)}}Qc(),a=hc;break}catch(u){qc(e,u)}return t&&e.shellSuspendCounter++,xi=yi=null,ic=r,N.H=i,N.A=o,null===ac&&(oc=null,sc=0,Tr()),a}function Qc(){for(;null!==ac;)Jc(ac)}function Zc(){for(;null!==ac&&!te();)Jc(ac)}function Jc(e){var t=Js(e.alternate,e,pc);e.memoizedProps=e.pendingProps,null===t?nu(e):ac=t}function eu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ls(n,t,t.pendingProps,t.type,void 0,sc);break;case 11:t=Ls(n,t,t.pendingProps,t.type.render,t.ref,sc);break;case 5:$o(t);default:sl(n,t),t=Js(n,t=ac=Br(t,pc),pc)}e.memoizedProps=e.pendingProps,null===t?nu(e):ac=t}function tu(e,t,n,i){xi=yi=null,$o(t),Qa=null,Za=0;var o=t.return;try{if(function(e,t,n,i,o){if(n.flags|=32768,null!==i&&"object"==typeof i&&"function"==typeof i.then){if(null!==(t=n.alternate)&&Ci(t,n,o,!0),null!==(n=as.current)){switch(n.tag){case 13:return null===ss?Xc():null===n.alternate&&0===hc&&(hc=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===Ki?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([i]):t.add(i),pu(e,i,o)),!1;case 22:return n.flags|=65536,i===Ki?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([i]):n.add(i),pu(e,i,o)),!1}throw Error(r(435,n.tag))}return pu(e,i,o),Xc(),!1}if(si)return null!==(t=as.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==ui&&vi(Pr(e=Error(r(422),{cause:i}),n))):(i!==ui&&vi(Pr(t=Error(r(423),{cause:i}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,i=Pr(i,n),co(e,o=Cs(e.stateNode,i,o)),4!==hc&&(hc=2)),!1;var a=Error(r(520),{cause:i});if(a=Pr(a,n),null===xc?xc=[a]:xc.push(a),4!==hc&&(hc=2),null===t)return!0;i=Pr(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,co(n,e=Cs(n.stateNode,i,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Pc&&Pc.has(a))))return n.flags|=65536,o&=-o,n.lanes|=o,Es(o=Ps(o),e,n,i),co(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,sc))return hc=1,Ss(e,Pr(n,e.current)),void(ac=null)}catch(a){if(null!==o)throw ac=o,a;return hc=1,Ss(e,Pr(n,e.current)),void(ac=null)}32768&t.flags?(si||1===i?e=!0:dc||536870912&sc?e=!1:(uc=e=!0,(2===i||9===i||3===i||6===i)&&null!==(i=as.current)&&13===i.tag&&(i.flags|=16384)),ru(t,e)):nu(t)}function nu(e){var t=e;do{if(32768&t.flags)return void ru(t,uc);e=t.return;var n=ol(t.alternate,t,pc);if(null!==n)return void(ac=n);if(null!==(t=t.sibling))return void(ac=t);ac=t=e}while(null!==t);0===hc&&(hc=5)}function ru(e,t){do{var n=al(e.alternate,e);if(null!==n)return n.flags&=32767,void(ac=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(ac=e);ac=e=n}while(null!==e);hc=6,ac=null}function iu(e,t,n,i,o,a,s,l,c){e.cancelPendingCommit=null;do{cu()}while(0!==Ec);if(6&ic)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,i,o){var a=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,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-ge(n),d=1<<u;s[u]=0,l[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Re(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(a&~t))}(e,n,a|=zr,s,l,c),e===oc&&(ac=oc=null,sc=0),zc=t,Rc=e,Tc=n,Ic=a,Oc=o,Fc=i,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,J(se,function(){return uu(),null})):(e.callbackNode=null,e.callbackPriority=0),i=!!(13878&t.flags),13878&t.subtreeFlags||i){i=N.T,N.T=null,o=D.p,D.p=2,s=ic,ic|=4;try{!function(e,t){if(e=e.containerInfo,rd=of,rr(e=nr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;e:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==i&&3!==f.nodeType||(c=s+i),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break e;if(p===n&&++u===o&&(l=s),p===a&&++d===i&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(id={focusedElem:e,selectionRange:n},of=!1,Cl=t;null!==Cl;)if(e=(t=Cl).child,1024&t.subtreeFlags&&null!==e)e.return=t,Cl=e;else for(;null!==Cl;){switch(a=(t=Cl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,o=a.memoizedProps,a=a.memoizedState,i=n.stateNode;try{var g=bs(n.type,o);e=i.getSnapshotBeforeUpdate(g,a),i.__reactInternalSnapshotBeforeUpdate=e}catch(m){fu(n,n.return,m)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))vd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Cl=e;break}Cl=t.return}}(e,t)}finally{ic=s,D.p=o,N.T=i}}Ec=1,ou(),au(),su()}}function ou(){if(1===Ec){Ec=0;var e=Rc,t=zc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=N.T,N.T=null;var r=D.p;D.p=2;var i=ic;ic|=4;try{Nl(t,e);var o=id,a=nr(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&tr(s.ownerDocument.documentElement,s)){if(null!==l&&rr(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,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(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!p.extend&&g>m&&(a=m,m=g,g=a);var v=er(s,g),b=er(s,m);if(v&&b&&(1!==p.rangeCount||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var y=d.createRange();y.setStart(v.node,v.offset),p.removeAllRanges(),g>m?(p.addRange(y),p.extend(b.node,b.offset)):(y.setEnd(b.node,b.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var x=d[s];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}of=!!rd,id=rd=null}finally{ic=i,D.p=r,N.T=n}}e.current=t,Ec=2}}function au(){if(2===Ec){Ec=0;var e=Rc,t=zc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=N.T,N.T=null;var r=D.p;D.p=2;var i=ic;ic|=4;try{Pl(e,t.alternate,t)}finally{ic=i,D.p=r,N.T=n}}Ec=3}}function su(){if(4===Ec||3===Ec){Ec=0,ne();var e=Rc,t=zc,n=Tc,r=Fc;10256&t.subtreeFlags||10256&t.flags?Ec=5:(Ec=0,zc=Rc=null,lu(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Pc=null),Ie(n),t=t.stateNode,pe&&"function"==typeof pe.onCommitFiberRoot)try{pe.onCommitFiberRoot(fe,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=N.T,i=D.p,D.p=2,N.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];o(s.value,{componentStack:s.stack})}}finally{N.T=t,D.p=i}}3&Tc&&cu(),_u(e),i=e.pendingLanes,4194090&n&&42&i?e===Mc?Ac++:(Ac=0,Mc=e):Ac=0,Cu(0)}}function lu(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Ni(t))}function cu(e){return ou(),au(),su(),uu()}function uu(){if(5!==Ec)return!1;var e=Rc,t=Ic;Ic=0;var n=Ie(Tc),i=N.T,o=D.p;try{D.p=32>n?32:n,N.T=null,n=Oc,Oc=null;var a=Rc,s=Tc;if(Ec=0,zc=Rc=null,Tc=0,6&ic)throw Error(r(331));var l=ic;if(ic|=4,Jl(a.current),Ul(a,a.current,s,n),ic=l,Cu(0),pe&&"function"==typeof pe.onPostCommitFiberRoot)try{pe.onPostCommitFiberRoot(fe,a)}catch(c){}return!0}finally{D.p=o,N.T=i,lu(e,t)}}function du(e,t,n){t=Pr(n,t),null!==(e=so(e,t=Cs(e.stateNode,t,2),2))&&(Ee(e,2),_u(e))}function fu(e,t,n){if(3===e.tag)du(e,e,n);else for(;null!==t;){if(3===t.tag){du(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Pc||!Pc.has(r))){e=Pr(n,e),null!==(r=so(t,n=Ps(2),2))&&(Es(n,r,t,e),Ee(r,2),_u(r));break}}t=t.return}}function pu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new rc;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(fc=!0,i.add(n),e=hu.bind(null,e,t,n),t.then(e,e))}function hu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,oc===e&&(sc&n)===n&&(4===hc||3===hc&&(62914560&sc)===sc&&300>re()-Sc?!(2&ic)&&Uc(e,0):vc|=n,yc===sc&&(yc=0)),_u(e)}function gu(e,t){0===t&&(t=Ce()),null!==(e=Fr(e,t))&&(Ee(e,t),_u(e))}function mu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),gu(e,n)}function vu(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==i&&i.delete(t),gu(e,n)}var bu=null,yu=null,xu=!1,ku=!1,wu=!1,Su=0;function _u(e){e!==yu&&null===e.next&&(null===yu?bu=yu=e:yu=yu.next=e),ku=!0,xu||(xu=!0,pd(function(){6&ic?J(oe,Pu):Eu()}))}function Cu(e,t){if(!wu&&ku){wu=!0;do{for(var n=!1,r=bu;null!==r;){if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-ge(42|e)+1)-1,o=201326741&(o&=i&~(a&~s))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,Tu(r,o))}else o=sc,!(3&(o=ke(r,r===oc?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||we(r,o)||(n=!0,Tu(r,o));r=r.next}}while(n);wu=!1}}function Pu(){Eu()}function Eu(){ku=xu=!1;var e,t=0;0!==Su&&(((e=window.event)&&"popstate"===e.type?e!==cd&&(cd=e,!0):(cd=null,!1))&&(t=Su),Su=0);for(var n=re(),r=null,i=bu;null!==i;){var o=i.next,a=Ru(i,n);0===a?(i.next=null,null===r?bu=o:r.next=o,null===o&&(yu=r)):(r=i,(0!==t||3&a)&&(ku=!0)),i=o}Cu(t)}function Ru(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var a=31-ge(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=Se(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(n=sc,n=ke(e,e===(t=oc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===lc||9===lc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||we(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ee(r),Ie(n)){case 2:case 8:n=ae;break;case 32:default:n=se;break;case 268435456:n=ce}return r=zu.bind(null,e),n=J(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ee(r),e.callbackPriority=2,e.callbackNode=null,2}function zu(e,t){if(0!==Ec&&5!==Ec)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cu()&&e.callbackNode!==n)return null;var r=sc;return 0===(r=ke(e,e===oc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(jc(e,r,t),Ru(e,re()),null!=e.callbackNode&&e.callbackNode===n?zu.bind(null,e):null)}function Tu(e,t){if(cu())return null;jc(e,t,!0)}function Iu(){return 0===Su&&(Su=_e()),Su}function Ou(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:It(""+e)}function Fu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Au=0;Au<Sr.length;Au++){var Mu=Sr[Au];_r(Mu.toLowerCase(),"on"+(Mu[0].toUpperCase()+Mu.slice(1)))}_r(gr,"onAnimationEnd"),_r(mr,"onAnimationIteration"),_r(vr,"onAnimationStart"),_r("dblclick","onDoubleClick"),_r("focusin","onFocus"),_r("focusout","onBlur"),_r(br,"onTransitionRun"),_r(yr,"onTransitionStart"),_r(xr,"onTransitionCancel"),_r(kr,"onTransitionEnd"),Qe("onMouseEnter",["mouseout","mouseover"]),Qe("onMouseLeave",["mouseout","mouseover"]),Qe("onPointerEnter",["pointerout","pointerover"]),Qe("onPointerLeave",["pointerout","pointerover"]),Ke("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ke("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ke("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ke("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nu="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(" "),Du=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nu));function Lu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=c;try{o(i)}catch(u){ys(u)}i.currentTarget=null,o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=c;try{o(i)}catch(u){ys(u)}i.currentTarget=null,o=l}}}}function ju(e,t){var n=t[De];void 0===n&&(n=t[De]=new Set);var r=e+"__bubble";n.has(r)||(Vu(t,e,2,!1),n.add(r))}function $u(e,t,n){var r=0;t&&(r|=4),Vu(n,e,r,t)}var Bu="_reactListening"+Math.random().toString(36).slice(2);function Wu(e){if(!e[Bu]){e[Bu]=!0,Ye.forEach(function(t){"selectionchange"!==t&&(Du.has(t)||$u(t,!1,e),$u(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Bu]||(t[Bu]=!0,$u("selectionchange",!1,t))}}function Vu(e,t,n,r){switch(ff(t)){case 2:var i=af;break;case 8:i=sf;break;default:i=lf}n=i.bind(null,t,n,e),i=void 0,!Bt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hu(e,t,n,r,i){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===i)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===i)return;s=s.return}for(;null!==l;){if(null===(s=Ve(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=a=s;continue e}l=l.parentNode}}r=r.return}Lt(function(){var r=a,i=Ft(n),s=[];e:{var l=wr.get(e);if(void 0!==l){var c=tn,u=e;switch(e){case"keypress":if(0===Gt(n))break e;case"keydown":case"keyup":c=vn;break;case"focusin":u="focus",c=ln;break;case"focusout":u="blur",c=ln;break;case"beforeblur":case"afterblur":c=ln;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=an;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=yn;break;case gr:case mr:case vr:c=cn;break;case kr:c=xn;break;case"scroll":case"scrollend":c=rn;break;case"wheel":c=kn;break;case"copy":case"cut":case"paste":c=un;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=bn;break;case"toggle":case"beforetoggle":c=wn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=jt(g,p))&&d.push(Uu(g,m,h)),f)break;g=g.return}0<d.length&&(l=new c(l,u,null,n,i),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Ot||!(u=n.relatedTarget||n.fromElement)||!Ve(u)&&!u[Ne])&&(c||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Ve(u):null)&&(f=o(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=an,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=bn,m="onPointerLeave",p="onPointerEnter",g="pointer"),f=null==c?l:Ue(c),h=null==u?l:Ue(u),(l=new d(m,g+"leave",c,n,i)).target=f,l.relatedTarget=h,m=null,Ve(i)===r&&((d=new d(p,g+"enter",u,n,i)).target=h,d.relatedTarget=f,m=d),f=m,c&&u)e:{for(p=u,g=0,h=d=c;h;h=Gu(h))g++;for(h=0,m=p;m;m=Gu(m))h++;for(;0<g-h;)d=Gu(d),g--;for(;0<h-g;)p=Gu(p),h--;for(;g--;){if(d===p||null!==p&&d===p.alternate)break e;d=Gu(d),p=Gu(p)}d=null}else d=null;null!==c&&Yu(s,l,c,d,!1),null!==u&&null!==f&&Yu(s,f,u,d,!0)}if("select"===(c=(l=r?Ue(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var v=$n;else if(An(l))if(Bn)v=Kn;else{v=Yn;var b=Gn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Rt(r.elementType)&&(v=$n):v=Xn;switch(v&&(v=v(e,r))?Mn(s,v,n,i):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&xt(l,"number",l.value)),b=r?Ue(r):window,e){case"focusin":(An(b)||"true"===b.contentEditable)&&(or=b,ar=r,sr=null);break;case"focusout":sr=ar=or=null;break;case"mousedown":lr=!0;break;case"contextmenu":case"mouseup":case"dragend":lr=!1,cr(s,n,i);break;case"selectionchange":if(ir)break;case"keydown":case"keyup":cr(s,n,i)}var y;if(_n)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else On?Tn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(En&&"ko"!==n.locale&&(On||"onCompositionStart"!==x?"onCompositionEnd"===x&&On&&(y=qt()):(Ht="value"in(Vt=i)?Vt.value:Vt.textContent,On=!0)),0<(b=qu(r,x)).length&&(x=new dn(x,e,null,n,i),s.push({event:x,listeners:b}),(y||null!==(y=In(n)))&&(x.data=y))),(y=Pn?function(e,t){switch(e){case"compositionend":return In(t);case"keypress":return 32!==t.which?null:(zn=!0,Rn);case"textInput":return(e=t.data)===Rn&&zn?null:e;default:return null}}(e,n):function(e,t){if(On)return"compositionend"===e||!_n&&Tn(e,t)?(e=qt(),Ut=Ht=Vt=null,On=!1,e):null;switch(e){case"paste":default: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 En&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(x=qu(r,"onBeforeInput")).length&&(b=new dn("onBeforeInput","beforeinput",null,n,i),s.push({event:b,listeners:x}),b.data=y),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var o=Ou((i[Me]||null).action),a=r.submitter;a&&null!==(t=(t=a[Me]||null)?Ou(t.formAction):a.getAttribute("formAction"))&&(o=t,a=null);var s=new tn("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Su){var e=a?Fu(i,a):new FormData(i);Fa(n,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(s.preventDefault(),e=a?Fu(i,a):new FormData(i),Fa(n,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(s,e,r,n,i)}Lu(s,t)})}function Uu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qu(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=jt(e,n))&&r.unshift(Uu(e,i,o)),null!=(i=jt(e,t))&&r.push(Uu(e,i,o))),3===e.tag)return r;e=e.return}return[]}function Gu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Yu(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,i?null!=(c=jt(n,o))&&a.unshift(Uu(n,c,l)):i||null!=(c=jt(n,o))&&a.push(Uu(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xu=/\r\n?/g,Ku=/\u0000|\uFFFD/g;function Qu(e){return("string"==typeof e?e:""+e).replace(Xu,"\n").replace(Ku,"")}function Zu(e,t){return t=Qu(t),Qu(e)===t}function Ju(){}function ed(e,t,n,i,o,a){switch(n){case"children":"string"==typeof i?"body"===t||"textarea"===t&&""===i||_t(e,i):("number"==typeof i||"bigint"==typeof i)&&"body"!==t&&_t(e,""+i);break;case"className":it(e,"class",i);break;case"tabIndex":it(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":it(e,n,i);break;case"style":Et(e,i,a);break;case"data":if("object"!==t){it(e,"data",i);break}case"src":case"href":if(""===i&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==i||"function"==typeof i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(n);break}i=It(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if("function"==typeof i){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("function"==typeof a&&("formAction"===n?("input"!==t&&ed(e,t,"name",o.name,o,null),ed(e,t,"formEncType",o.formEncType,o,null),ed(e,t,"formMethod",o.formMethod,o,null),ed(e,t,"formTarget",o.formTarget,o,null)):(ed(e,t,"encType",o.encType,o,null),ed(e,t,"method",o.method,o,null),ed(e,t,"target",o.target,o,null))),null==i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(n);break}i=It(""+i),e.setAttribute(n,i);break;case"onClick":null!=i&&(e.onclick=Ju);break;case"onScroll":null!=i&&ju("scroll",e);break;case"onScrollEnd":null!=i&&ju("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(r(61));if(null!=(n=i.__html)){if(null!=o.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"muted":e.muted=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==i||"function"==typeof i||"boolean"==typeof i||"symbol"==typeof i){e.removeAttribute("xlink:href");break}n=It(""+i),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":null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===i?e.setAttribute(n,""):!1!==i&&null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":null==i||"function"==typeof i||"symbol"==typeof i||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":ju("beforetoggle",e),ju("toggle",e),rt(e,"popover",i);break;case"xlinkActuate":ot(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ot(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ot(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ot(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ot(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ot(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ot(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ot(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ot(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":rt(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&rt(e,n=zt.get(n)||n,i)}}function td(e,t,n,i,o,a){switch(n){case"style":Et(e,i,a);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(r(61));if(null!=(n=i.__html)){if(null!=o.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof i?_t(e,i):("number"==typeof i||"bigint"==typeof i)&&_t(e,""+i);break;case"onScroll":null!=i&&ju("scroll",e);break;case"onScrollEnd":null!=i&&ju("scrollend",e);break;case"onClick":null!=i&&(e.onclick=Ju);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Xe.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(a=null!=(a=e[Me]||null)?a[n]:null)&&e.removeEventListener(t,a,o),"function"!=typeof i)?n in e?e[n]=i:!0===i?e.setAttribute(n,""):rt(e,n,i):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,o)))}}function nd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ju("error",e),ju("load",e);var i,o=!1,a=!1;for(i in n)if(n.hasOwnProperty(i)){var s=n[i];if(null!=s)switch(i){case"src":o=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,i,s,n,null)}}return a&&ed(e,t,"srcSet",n.srcSet,n,null),void(o&&ed(e,t,"src",n.src,n,null));case"input":ju("invalid",e);var l=i=s=a=null,c=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":a=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":i=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:ed(e,t,o,d,n,null)}}return yt(e,i,l,c,u,s,a,!1),void pt(e);case"select":for(a in ju("invalid",e),o=s=i=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":i=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:ed(e,t,a,l,n,null)}return t=i,n=s,e.multiple=!!o,void(null!=t?kt(e,!!o,t,!1):null!=n&&kt(e,!!o,n,!0));case"textarea":for(s in ju("invalid",e),i=a=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":a=l;break;case"children":i=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:ed(e,t,s,l,n,null)}return St(e,o,a,i),void pt(e);case"option":for(c in n)n.hasOwnProperty(c)&&null!=(o=n[c])&&("selected"===c?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:ed(e,t,c,o,n,null));return;case"dialog":ju("beforetoggle",e),ju("toggle",e),ju("cancel",e),ju("close",e);break;case"iframe":case"object":ju("load",e);break;case"video":case"audio":for(o=0;o<Nu.length;o++)ju(Nu[o],e);break;case"image":ju("error",e),ju("load",e);break;case"details":ju("toggle",e);break;case"embed":case"source":case"link":ju("error",e),ju("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)&&null!=(o=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,u,o,n,null)}return;default:if(Rt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(o=n[d])&&td(e,t,d,o,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(o=n[l])&&ed(e,t,l,o,n,null)}var rd=null,id=null;function od(e){return 9===e.nodeType?e:e.ownerDocument}function ad(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 sd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function ld(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cd=null,ud="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,fd="function"==typeof Promise?Promise:void 0,pd="function"==typeof queueMicrotask?queueMicrotask:void 0!==fd?function(e){return fd.resolve(null).then(e).catch(hd)}:ud;function hd(e){setTimeout(function(){throw e})}function gd(e){return"head"===e}function md(e,t){var n=t,r=0,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0<r&&8>r){n=r;var a=e.ownerDocument;if(1&n&&Sd(a.documentElement),2&n&&Sd(a.body),4&n)for(Sd(n=a.head),a=n.firstChild;a;){var s=a.nextSibling,l=a.nodeName;a[Be]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===a.rel.toLowerCase()||n.removeChild(a),a=s}}if(0===i)return e.removeChild(o),void Tf(t);i--}else"$"===n||"$?"===n||"$!"===n?i++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);Tf(t)}function vd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":vd(n),We(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function bd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function yd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var xd=null;function kd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function wd(e,t,n){switch(t=od(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);We(e)}var _d=new Map,Cd=new Set;function Pd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Ed=D.d;D.d={f:function(){var e=Ed.f(),t=Vc();return e||t},r:function(e){var t=He(e);null!==t&&5===t.tag&&"form"===t.type?Ma(t):Ed.r(e)},D:function(e){Ed.D(e),zd("dns-prefetch",e,null)},C:function(e,t){Ed.C(e,t),zd("preconnect",e,t)},L:function(e,t,n){Ed.L(e,t,n);var r=Rd;if(r&&e&&t){var i='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(i+='[imagesizes="'+vt(n.imageSizes)+'"]')):i+='[href="'+vt(e)+'"]';var o=i;switch(t){case"style":o=Id(e);break;case"script":o=Ad(e)}_d.has(o)||(e=c({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),_d.set(o,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(Od(o))||"script"===t&&r.querySelector(Md(o))||(nd(t=r.createElement("link"),"link",e),Ge(t),r.head.appendChild(t)))}},m:function(e,t){Ed.m(e,t);var n=Rd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Ad(e)}if(!_d.has(o)&&(e=c({rel:"modulepreload",href:e},t),_d.set(o,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Md(o)))return}nd(r=n.createElement("link"),"link",e),Ge(r),n.head.appendChild(r)}}},X:function(e,t){Ed.X(e,t);var n=Rd;if(n&&e){var r=qe(n).hoistableScripts,i=Ad(e),o=r.get(i);o||((o=n.querySelector(Md(i)))||(e=c({src:e,async:!0},t),(t=_d.get(i))&&jd(e,t),Ge(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}},S:function(e,t,n){Ed.S(e,t,n);var r=Rd;if(r&&e){var i=qe(r).hoistableStyles,o=Id(e);t=t||"default";var a=i.get(o);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Od(o)))s.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},n),(n=_d.get(o))&&Ld(e,n);var l=a=r.createElement("link");Ge(l),nd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Dd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}},M:function(e,t){Ed.M(e,t);var n=Rd;if(n&&e){var r=qe(n).hoistableScripts,i=Ad(e),o=r.get(i);o||((o=n.querySelector(Md(i)))||(e=c({src:e,async:!0,type:"module"},t),(t=_d.get(i))&&jd(e,t),Ge(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}};var Rd="undefined"==typeof document?null:document;function zd(e,t,n){var r=Rd;if(r&&"string"==typeof t&&t){var i=vt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof n&&(i+='[crossorigin="'+n+'"]'),Cd.has(i)||(Cd.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(nd(t=r.createElement("link"),"link",e),Ge(t),r.head.appendChild(t)))}}function Td(e,t,n,i){var o,a,s,l,c=(c=q.current)?Pd(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Id(n.href),(i=(n=qe(c).hoistableStyles).get(t))||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Id(n.href);var u=qe(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Od(e)))&&!u._p&&(d.instance=u,d.state.loading=5),_d.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},_d.set(e,n),u||(o=c,a=e,s=n,l=d.state,o.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=o.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),nd(a,"link",s),Ge(a),o.head.appendChild(a))))),t&&null===i)throw Error(r(528,""));return d}if(t&&null!==i)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Ad(n),(i=(n=qe(c).hoistableScripts).get(t))||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Id(e){return'href="'+vt(e)+'"'}function Od(e){return'link[rel="stylesheet"]['+e+"]"}function Fd(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function Ad(e){return'[src="'+vt(e)+'"]'}function Md(e){return"script[async]"+e}function Nd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(i)return t.instance=i,Ge(i),i;var o=c({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ge(i=(e.ownerDocument||e).createElement("style")),nd(i,"style",o),Dd(i,n.precedence,e),t.instance=i;case"stylesheet":o=Id(n.href);var a=e.querySelector(Od(o));if(a)return t.state.loading|=4,t.instance=a,Ge(a),a;i=Fd(n),(o=_d.get(o))&&Ld(i,o),Ge(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),nd(a,"link",i),t.state.loading|=4,Dd(a,n.precedence,e),t.instance=a;case"script":return a=Ad(n.src),(o=e.querySelector(Md(a)))?(t.instance=o,Ge(o),o):(i=n,(o=_d.get(a))&&jd(i=c({},n),o),Ge(o=(e=e.ownerDocument||e).createElement("script")),nd(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(i=t.instance,t.state.loading|=4,Dd(i,n.precedence,e));return t.instance}function Dd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Ld(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function jd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var $d=null;function Bd(e,t,n){if(null===$d){var r=new Map,i=$d=new Map;i.set(n,r)}else(r=(i=$d).get(n))||(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 o=n[i];if(!(o[Be]||o[Ae]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var a=o.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function Wd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Vd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Hd=null;function Ud(){}function qd(){if(this.count--,0===this.count)if(this.stylesheets)Yd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Gd=null;function Yd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Gd=new Map,t.forEach(Xd,e),Gd=null,qd.call(e))}function Xd(e,t){if(!(4&t.state.loading)){var n=Gd.get(e);if(n)var r=n.get(null);else{n=new Map,Gd.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(i=t.instance).getAttribute("data-precedence"),(o=n.get(a)||r)===r&&n.set(null,i),n.set(a,i),this.count++,r=qd.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var Kd={$$typeof:y,Provider:null,Consumer:null,_currentValue:L,_currentValue2:L,_threadCount:0};function Qd(e,t,n,r,i,o,a,s){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=Pe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pe(0),this.hiddenUpdates=Pe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Zd(e,t,n,r,i,o,a,s,l,c,u,d){return e=new Qd(e,t,n,a,s,l,c,d),t=1,!0===o&&(t|=24),o=Lr(3,null,null,t),e.current=o,o.stateNode=e,(t=Mi()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},io(o),e}function Jd(e){return e?e=Nr:Nr}function ef(e,t,n,r,i,o){i=Jd(i),null===r.context?r.context=i:r.pendingContext=i,(r=ao(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=so(e,r,t))&&(Lc(n,0,t),lo(n,e,t))}function tf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nf(e,t){tf(e,t),(e=e.alternate)&&tf(e,t)}function rf(e){if(13===e.tag){var t=Fr(e,67108864);null!==t&&Lc(t,0,67108864),nf(e,67108864)}}var of=!0;function af(e,t,n,r){var i=N.T;N.T=null;var o=D.p;try{D.p=2,lf(e,t,n,r)}finally{D.p=o,N.T=i}}function sf(e,t,n,r){var i=N.T;N.T=null;var o=D.p;try{D.p=8,lf(e,t,n,r)}finally{D.p=o,N.T=i}}function lf(e,t,n,r){if(of){var i=cf(r);if(null===i)Hu(e,t,r,uf,n),kf(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return hf=wf(hf,e,t,n,r,i),!0;case"dragenter":return gf=wf(gf,e,t,n,r,i),!0;case"mouseover":return mf=wf(mf,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return vf.set(o,wf(vf.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,bf.set(o,wf(bf.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(kf(e,r),4&t&&-1<xf.indexOf(e)){for(;null!==i;){var o=He(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var a=xe(o.pendingLanes);if(0!==a){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-ge(a);s.entanglements[1]|=l,a&=~l}_u(o),!(6&ic)&&(_c=re()+500,Cu(0))}}break;case 13:null!==(s=Fr(o,2))&&Lc(s,0,2),Vc(),nf(o,2)}if(null===(o=cf(r))&&Hu(e,t,r,uf,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hu(e,t,r,null,n)}}function cf(e){return df(e=Ft(e))}var uf=null;function df(e){if(uf=null,null!==(e=Ve(e))){var t=o(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uf=e,null}function ff(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"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ie()){case oe:return 2;case ae:return 8;case se:case le:return 32;case ce:return 268435456;default:return 32}default:return 32}}var pf=!1,hf=null,gf=null,mf=null,vf=new Map,bf=new Map,yf=[],xf="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 kf(e,t){switch(e){case"focusin":case"focusout":hf=null;break;case"dragenter":case"dragleave":gf=null;break;case"mouseover":case"mouseout":mf=null;break;case"pointerover":case"pointerout":vf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bf.delete(t.pointerId)}}function wf(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=He(t))&&rf(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Sf(e){var t=Ve(e.target);if(null!==t){var n=o(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void function(e){var t=D.p;try{return D.p=e,function(){if(13===n.tag){var e=Nc();e=Te(e);var t=Fr(n,e);null!==t&&Lc(t,0,e),nf(n,e)}}()}finally{D.p=t}}(e.priority)}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function _f(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=cf(e.nativeEvent);if(null!==n)return null!==(t=He(n))&&rf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ot=r,n.target.dispatchEvent(r),Ot=null,t.shift()}return!0}function Cf(e,t,n){_f(e)&&n.delete(t)}function Pf(){pf=!1,null!==hf&&_f(hf)&&(hf=null),null!==gf&&_f(gf)&&(gf=null),null!==mf&&_f(mf)&&(mf=null),vf.forEach(Cf),bf.forEach(Cf)}function Ef(t,n){t.blockedOn===n&&(t.blockedOn=null,pf||(pf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Pf)))}var Rf=null;function zf(t){Rf!==t&&(Rf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Rf===t&&(Rf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],i=t[e+2];if("function"!=typeof r){if(null===df(r||n))continue;break}var o=He(n);null!==o&&(t.splice(e,3),e-=3,Fa(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Tf(e){function t(t){return Ef(t,e)}null!==hf&&Ef(hf,e),null!==gf&&Ef(gf,e),null!==mf&&Ef(mf,e),vf.forEach(t),bf.forEach(t);for(var n=0;n<yf.length;n++){var r=yf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<yf.length&&null===(n=yf[0]).blockedOn;)Sf(n),null===n.blockedOn&&yf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[Me]||null;if("function"==typeof o)a||zf(n);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[Me]||null)s=a.formAction;else if(null!==df(i))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),zf(n)}}}function If(e){this._internalRoot=e}function Of(e){this._internalRoot=e}Of.prototype.render=If.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));ef(t.current,Nc(),e,t,null,null)},Of.prototype.unmount=If.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ef(e.current,2,null,e,null,null),Vc(),t[Ne]=null}},Of.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yf.length&&0!==t&&t<yf[n].priority;n++);yf.splice(n,0,e),0===n&&Sf(e)}};var Ff=t.version;if("19.1.1"!==Ff)throw Error(r(527,Ff,"19.1.1"));D.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=o(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(null===a)break;var l=a.alternate;if(null===l){if(null!==(i=a.return)){n=i;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===n)return s(a),e;if(l===i)return s(a),t;l=l.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=l;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,i=l;break}if(u===i){c=!0,i=a,n=l;break}u=u.sibling}if(!c){for(u=l.child;u;){if(u===n){c=!0,n=l,i=a;break}if(u===i){c=!0,i=l,n=a;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?l(e):null)?null:e.stateNode};var Af={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Mf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mf.isDisabled&&Mf.supportsFiber)try{fe=Mf.inject(Af),pe=Mf}catch(Df){}}return S.createRoot=function(e,t){if(!i(e))throw Error(r(299));var n=!1,o="",a=xs,s=ks,l=ws;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Zd(e,1,!1,null,0,n,o,a,s,l,0,null),e[Ne]=t.current,Wu(e),new If(t)},S.hydrateRoot=function(e,t,n){if(!i(e))throw Error(r(299));var o=!1,a="",s=xs,l=ks,c=ws,u=null;return null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Zd(e,1,!0,t,0,o,a,s,l,c,0,u)).context=Jd(null),n=t.current,(a=ao(o=Te(o=Nc()))).callback=null,so(n,a,o),n=o,t.current.lanes=n,Ee(t,n),_u(t),e[Ne]=t.current,Wu(e),new Of(t)},S.version="19.1.1",S}function D(){return I||(I=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),w.exports=N()),w.exports}const L=n(D());function j(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var $=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,B=j(function(e){return $.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),W=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),V="-ms-",H="-moz-",U="-webkit-",q="comm",G="rule",Y="decl",X="@keyframes",K=Math.abs,Q=String.fromCharCode,Z=Object.assign;function J(e){return e.trim()}function ee(e,t,n){return e.replace(t,n)}function te(e,t){return e.indexOf(t)}function ne(e,t){return 0|e.charCodeAt(t)}function re(e,t,n){return e.slice(t,n)}function ie(e){return e.length}function oe(e){return e.length}function ae(e,t){return t.push(e),e}var se=1,le=1,ce=0,ue=0,de=0,fe="";function pe(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:se,column:le,length:a,return:""}}function he(e,t){return Z(pe("",null,null,"",null,null,0),e,{length:-e.length},t)}function ge(){return de=ue>0?ne(fe,--ue):0,le--,10===de&&(le=1,se--),de}function me(){return de=ue<ce?ne(fe,ue++):0,le++,10===de&&(le=1,se++),de}function ve(){return ne(fe,ue)}function be(){return ue}function ye(e,t){return re(fe,e,t)}function xe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ke(e){return se=le=1,ce=ie(fe=e),ue=0,[]}function we(e){return fe="",e}function Se(e){return J(ye(ue-1,Pe(91===e?e+2:40===e?e+1:e)))}function _e(e){for(;(de=ve())&&de<33;)me();return xe(e)>2||xe(de)>3?"":" "}function Ce(e,t){for(;--t&&me()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return ye(e,be()+(t<6&&32==ve()&&32==me()))}function Pe(e){for(;me();)switch(de){case e:return ue;case 34:case 39:34!==e&&39!==e&&Pe(de);break;case 40:41===e&&Pe(e);break;case 92:me()}return ue}function Ee(e,t){for(;me()&&e+de!==57&&(e+de!==84||47!==ve()););return"/*"+ye(t,ue-1)+"*"+Q(47===e?e:me())}function Re(e){for(;!xe(ve());)me();return ye(e,ue)}function ze(e){return we(Te("",null,null,null,[""],e=ke(e),0,[0],e))}function Te(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,b=0,y="",x=i,k=o,w=r,S=y;m;)switch(h=b,b=me()){case 40:if(108!=h&&58==ne(S,d-1)){-1!=te(S+=ee(Se(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=Se(b);break;case 9:case 10:case 13:case 32:S+=_e(h);break;case 92:S+=Ce(be()-1,7);continue;case 47:switch(ve()){case 42:case 47:ae(Oe(Ee(me(),be()),t,n),l);break;default:S+="/"}break;case 123*g:s[c++]=ie(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(S=ee(S,/\f/g,"")),p>0&&ie(S)-d&&ae(p>32?Fe(S+";",r,n,d-1):Fe(ee(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(ae(w=Ie(S,t,n,c,u,i,s,y,x=[],k=[],d),o),123===b)if(0===u)Te(S,t,w,w,x,o,d,s,k);else switch(99===f&&110===ne(S,3)?100:f){case 100:case 108:case 109:case 115:Te(e,w,w,r&&ae(Ie(e,w,w,0,0,i,s,y,i,x=[],d),k),i,k,d,s,r?x:k);break;default:Te(S,w,w,w,[""],k,0,s,k)}}c=u=p=0,g=v=1,y=S="",d=a;break;case 58:d=1+ie(S),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==ge())continue;switch(S+=Q(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(ie(S)-1)*v,v=1;break;case 64:45===ve()&&(S+=Se(me())),f=ve(),u=d=ie(y=S+=Re(be())),b++;break;case 45:45===h&&2==ie(S)&&(g=0)}}return o}function Ie(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],p=oe(f),h=0,g=0,m=0;h<r;++h)for(var v=0,b=re(e,d+1,d=K(g=a[h])),y=e;v<p;++v)(y=J(g>0?f[v]+" "+b:ee(b,/&\f/g,f[v])))&&(l[m++]=y);return pe(e,t,n,0===i?G:s,l,c,u)}function Oe(e,t,n){return pe(e,t,n,q,Q(de),re(e,2,-2),0)}function Fe(e,t,n,r){return pe(e,t,n,Y,re(e,0,r),re(e,r+1,-1),r)}function Ae(e,t){for(var n="",r=oe(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Me(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Y:return e.return=e.return||e.value;case q:return"";case X:return e.return=e.value+"{"+Ae(e.children,r)+"}";case G:e.value=e.props.join(",")}return ie(n=Ae(e.children,r))?e.return=e.value+"{"+n+"}":""}var Ne=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},De=function(e,t,n){for(var r=0,i=0;r=i,i=ve(),38===r&&12===i&&(t[n]=1),!xe(i);)me();return ye(e,ue)},Le=new WeakMap,je=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Le.get(n))&&!r){Le.set(e,!0);for(var i=[],o=function(e,t){return we(function(e,t){var n=-1,r=44;do{switch(xe(r)){case 0:38===r&&12===ve()&&(t[n]=1),e[n]+=De(ue-1,t,n);break;case 2:e[n]+=Se(r);break;case 4:if(44===r){e[++n]=58===ve()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Q(r)}}while(r=me());return e}(ke(e),t))}(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},$e=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Be(e,t){switch(function(e,t){return 45^ne(e,0)?(((t<<2^ne(e,0))<<2^ne(e,1))<<2^ne(e,2))<<2^ne(e,3):0}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+H+e+V+e+e;case 6828:case 4268:return U+e+V+e+e;case 6165:return U+e+V+"flex-"+e+e;case 5187:return U+e+ee(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+V+"flex-$1$2")+e;case 5443:return U+e+V+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return U+e+V+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+V+ee(e,"shrink","negative")+e;case 5292:return U+e+V+ee(e,"basis","preferred-size")+e;case 6060:return U+"box-"+ee(e,"-grow","")+U+e+V+ee(e,"grow","positive")+e;case 4554:return U+ee(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+V+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ie(e)-1-t>6)switch(ne(e,t+1)){case 109:if(45!==ne(e,t+4))break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+H+(108==ne(e,t+3)?"$3":"$2-$3"))+e;case 115:return~te(e,"stretch")?Be(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ne(e,t+1))break;case 6444:switch(ne(e,ie(e)-3-(~te(e,"!important")&&10))){case 107:return ee(e,":",":"+U)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===ne(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+V+"$2box$3")+e}break;case 5936:switch(ne(e,t+11)){case 114:return U+e+V+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+V+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+V+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+V+e+e}return e}var We=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=Be(e.value,e.length);break;case X:return Ae([he(e,{value:ee(e.value,"@","@"+U)})],r);case G:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ae([he(e,{props:[ee(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ae([he(e,{props:[ee(t,/:(plac\w+)/,":"+U+"input-$1")]}),he(e,{props:[ee(t,/:(plac\w+)/,":-moz-$1")]}),he(e,{props:[ee(t,/:(plac\w+)/,V+"input-$1")]})],r)}return""})}}],Ve=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||We,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,f=[Me,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[je,$e].concat(o,f),u=oe(c),function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,Ae(ze(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new W({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};const He=Object.freeze(Object.defineProperty({__proto__:null,default:Ve},Symbol.toStringTag,{value:"Module"}));function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ue.apply(null,arguments)}var qe,Ge,Ye,Xe,Ke={exports:{}},Qe={};function Ze(){if(qe)return Qe;qe=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return y(e)===c}return Qe.AsyncMode=l,Qe.ConcurrentMode=c,Qe.ContextConsumer=s,Qe.ContextProvider=a,Qe.Element=t,Qe.ForwardRef=u,Qe.Fragment=r,Qe.Lazy=h,Qe.Memo=p,Qe.Portal=n,Qe.Profiler=o,Qe.StrictMode=i,Qe.Suspense=d,Qe.isAsyncMode=function(e){return x(e)||y(e)===l},Qe.isConcurrentMode=x,Qe.isContextConsumer=function(e){return y(e)===s},Qe.isContextProvider=function(e){return y(e)===a},Qe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Qe.isForwardRef=function(e){return y(e)===u},Qe.isFragment=function(e){return y(e)===r},Qe.isLazy=function(e){return y(e)===h},Qe.isMemo=function(e){return y(e)===p},Qe.isPortal=function(e){return y(e)===n},Qe.isProfiler=function(e){return y(e)===o},Qe.isStrictMode=function(e){return y(e)===i},Qe.isSuspense=function(e){return y(e)===d},Qe.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Qe.typeOf=y,Qe}function Je(){return Ge||(Ge=1,Ke.exports=Ze()),Ke.exports}function et(){if(Xe)return Ye;Xe=1;var e=Je(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(n){return e.isMemo(n)?r:i[n.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return Ye=function e(t,r,i){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,i)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=o(t),g=o(r),m=0;m<p.length;++m){var v=p[m];if(!(n[v]||i&&i[v]||g&&g[v]||h&&h[v])){var b=c(r,v);try{a(t,v,b)}catch(y){}}}}return t}}const tt=n(et());function nt(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var rt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},it=function(e,t,n){rt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},ot={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},at=/[A-Z]|^ms/g,st=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lt=function(e){return 45===e.charCodeAt(1)},ct=function(e){return null!=e&&"boolean"!=typeof e},ut=j(function(e){return lt(e)?e:e.replace(at,"-$&").toLowerCase()}),dt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(st,function(e,t,n){return pt={name:t,styles:n,next:pt},t})}return 1===ot[e]||lt(e)||"number"!=typeof t||0===t?t:t+"px"};function ft(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return pt={name:i.name,styles:i.styles,next:pt},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)pt={name:a.name,styles:a.styles,next:pt},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ft(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":ct(s)&&(r+=ut(o)+":"+dt(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ft(e,t,a);switch(o){case"animation":case"animationName":r+=ut(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ct(a[c])&&(r+=ut(o)+":"+dt(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=pt,l=n(e);return pt=s,ft(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var pt,ht=/label:\s*([^\s;{]+)\s*(;|$)/g;function gt(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";pt=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=ft(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=ft(n,t,e[a]),r&&(i+=o[a]);ht.lastIndex=0;for(var s,l="";null!==(s=ht.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:pt}}var mt,vt,bt=!!y.useInsertionEffect&&y.useInsertionEffect,yt=bt||function(e){return e()},xt=bt||v.useLayoutEffect,kt=v.createContext("undefined"!=typeof HTMLElement?Ve({key:"css"}):null),wt=kt.Provider,St=function(e){return v.forwardRef(function(t,n){var r=v.useContext(kt);return e(t,r,n)})},_t=v.createContext({}),Ct=Ne(function(e){return Ne(function(t){return function(e,t){return"function"==typeof t?t(e):Ue({},e,t)}(e,t)})}),Pt={}.hasOwnProperty,Et="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Rt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rt(t,n,r),yt(function(){return it(t,n,r)}),null},zt=St(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Et],o=[r],a="";"string"==typeof e.className?a=nt(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=gt(o,void 0,v.useContext(_t));a+=t.key+"-"+s.name;var l={};for(var c in e)Pt.call(e,c)&&"css"!==c&&c!==Et&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(Rt,{cache:t,serialized:s,isStringTag:"string"==typeof i}),v.createElement(i,l))}),Tt=zt,It=function(e,t){var n=arguments;if(null==t||!Pt.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Tt,i[1]=function(e,t){var n={};for(var r in t)Pt.call(t,r)&&(n[r]=t[r]);return n[Et]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return v.createElement.apply(null,i)};mt=It||(It={}),vt||(vt=mt.JSX||(mt.JSX={}));var Ot=St(function(e,t){var n=gt([e.styles],void 0,v.useContext(_t)),r=v.useRef();return xt(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}},[t]),xt(function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&it(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}},[t,n.name]),null});function Ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return gt(t)}var At=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i},Mt=function(e){var t=e.cache,n=e.serializedArr;return yt(function(){for(var e=0;e<n.length;e++)it(t,n[e],!1)}),null},Nt=St(function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=gt(r,t.registered);return n.push(o),rt(t,o,!1),t.key+"-"+o.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(e,t,n){var r=[],i=nt(e,r,n);return r.length<2?n:i+t(r)}(t.registered,r,At(n))},theme:v.useContext(_t)},o=e.children(i);return v.createElement(v.Fragment,null,v.createElement(Mt,{cache:t,serializedArr:n}),o)});const Dt=Object.freeze(Object.defineProperty({__proto__:null,CacheProvider:wt,ClassNames:Nt,Global:Ot,ThemeContext:_t,ThemeProvider:function(e){var t=v.useContext(_t);return e.theme!==t&&(t=Ct(t)(e.theme)),v.createElement(_t.Provider,{value:t},e.children)},__unsafe_useEmotionCache:function(){return v.useContext(kt)},get createElement(){return It},css:Ft,get jsx(){return It},keyframes:function(){var e=Ft.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},useTheme:function(){return v.useContext(_t)},withEmotionCache:St,withTheme:function(e){var t=e.displayName||e.name||"Component",n=v.forwardRef(function(t,n){var r=v.useContext(_t);return v.createElement(e,Ue({theme:r,ref:n},t))});return n.displayName="WithTheme("+t+")",tt(n,e)}},Symbol.toStringTag,{value:"Module"}));function Lt(...e){return function(...t){e.forEach(e=>e?.(...t))}}const jt=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),$t=/^on[A-Z]/;function Bt(...e){let t={};for(let n of e){for(let e in t)$t.test(e)&&"function"==typeof t[e]&&"function"==typeof n[e]?t[e]=Lt(t[e],n[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==n[e]?n[e]:t[e]:Object.assign({},t[e]??{},n[e]??{}):jt(t[e],n[e]);for(let e in n)void 0===t[e]&&(t[e]=n[e])}return t}function Wt(e){const t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}const Vt=(...e)=>e.filter(Boolean).map(e=>e.trim()).join(" "),Ht=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),Ut=e=>"string"==typeof e,qt=e=>"function"==typeof e,Gt=(...e)=>{const t=e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([]));return Array.from(t)};function Yt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:a}=e,s=v.createContext(a);return s.displayName=t,[s.Provider,function e(){const t=v.useContext(s);if(!t&&n){const t=new Error(o??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}const[Xt,Kt]=Yt({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function Qt(e){const{value:t,children:n}=e;return f.jsxs(Xt,{value:t,children:[!t._config.disableLayers&&f.jsx(Ot,{styles:t.layers.atRule}),f.jsx(Ot,{styles:t._global}),n]})}const Zt=(e,t)=>((e,t)=>{const n={},r={},i=Object.keys(e);for(const o of i)t(o)?r[o]=e[o]:n[o]=e[o];return[r,n]})(e,qt(t)?t:e=>t.includes(e)),Jt=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function en(e){return"string"==typeof e&&Jt.has(e)}var tn;const nn=(tn=B).default||tn,rn=e=>"theme"!==e;let on="undefined"!=typeof document;const an=({cache:e,serialized:t,isStringTag:n})=>{rt(e,t,n);const r=yt(()=>it(e,t,n));if(!on&&void 0!==r){let n=t.name,i=t.next;for(;void 0!==i;)n=Vt(n,i.name),i=i.next;return f.jsx("style",{"data-emotion":Vt(e.key,n),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},sn={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},ln=((e,t={},n={})=>{if(r=sn,i=e,Object.prototype.hasOwnProperty.call(r,i)){n.forwardProps||(n.forwardProps=[]);const t=sn[e];n.forwardProps=Gt([...n.forwardProps,...t])}var r,i;const o=e.__emotion_real===e,a=o&&e.__emotion_base||e;let s,l;void 0!==n&&(s=n.label,l=n.target);let c=[];const u=St((r,i,s)=>{const{cva:u,isValidProperty:d}=Kt(),p=t.__cva__?t:u(t),h=dn(e.__emotion_cva,p);var g;!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=(g=n.forwardProps,(e,t)=>!!g.includes(e)||!t?.includes(e)&&!d(e)));const m=((e,t,n)=>{let r;if(t){const n=t.shouldForwardProp;r=e.__emotion_forwardProp&&n?t=>e.__emotion_forwardProp(t)&&n(t):n}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r})(e,n,o)||((t,n)=>{const r="string"==typeof e&&e.charCodeAt(0)>96?nn:rn,i=!n?.includes(t)&&!d(t);return r(t)&&i}),b=v.useMemo(()=>Object.assign({},n.defaultProps,Wt(r)),[r]),{props:y,styles:x}=function(e,t,n){const{css:r,isValidProperty:i}=Kt(),{children:o,...a}=e,s=v.useMemo(()=>{const[e,r]=Zt(a,e=>n(e,t.variantKeys)),[o,s]=Zt(r,t.variantKeys),[l,c]=Zt(s,i);return{forwardedProps:e,variantProps:o,styleProps:l,elementProps:c}},[t.variantKeys,n,a,i]),{css:l,...c}=s.styleProps,u=v.useMemo(()=>{const e={...s.variantProps};return t.variantKeys.includes("colorPalette")||(e.colorPalette=a.colorPalette),t.variantKeys.includes("orientation")||(e.orientation=a.orientation),t(e)},[t,s.variantProps,a.colorPalette,a.orientation]);return{styles:v.useMemo(()=>{return r(u,...(e=l,(Array.isArray(e)?e:[e]).filter(Boolean).flat()),c);var e},[r,u,l,c]),props:{...s.forwardedProps,...s.elementProps,children:o}}}(b,h,m);let k="",w=[x],S=y;if(null==y.theme){S={};for(let e in y)S[e]=y[e];S.theme=v.useContext(_t)}"string"==typeof y.className?k=nt(i.registered,w,y.className):null!=y.className&&(k=Vt(k,y.className));const _=gt(c.concat(w),i.registered,S);_.styles&&(k=Vt(k,`${i.key}-${_.name}`)),void 0!==l&&(k=Vt(k,l));const C=!m("as");let P=C&&y.as||a,E={};for(let e in y)if(!C||"as"!==e){if(en(e)){E[e.replace("html","").toLowerCase()]=y[e];continue}m(e)&&(E[e]=y[e])}let R=k.trim();R?E.className=R:Reflect.deleteProperty(E,"className"),E.ref=s;const z=n.forwardAsChild||n.forwardProps?.includes("asChild");if(y.asChild&&!z){const e=v.isValidElement(y.children)?v.Children.only(y.children):v.Children.toArray(y.children).find(v.isValidElement);if(!e)throw new Error("[chakra-ui > factory] No valid child found");P=e.type,E.children=null,Reflect.deleteProperty(E,"asChild"),E=Bt(E,e.props),E.ref=function(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}(s,function(e){const t=v.version;return Ut(t)?t.startsWith("18.")?e?.ref:e?.props?.ref:e?.ref}(e))}return E.as&&z?(E.as=void 0,f.jsxs(v.Fragment,{children:[f.jsx(an,{cache:i,serialized:_,isStringTag:"string"==typeof P}),f.jsx(P,{asChild:!0,...E,children:f.jsx(y.as,{children:E.children})})]})):f.jsxs(v.Fragment,{children:[f.jsx(an,{cache:i,serialized:_,isStringTag:"string"==typeof P}),f.jsx(P,{...E})]})});return u.displayName=void 0!==s?s:`chakra(${"string"==typeof a?a:a.displayName||a.name||"Component"})`,u.__emotion_real=u,u.__emotion_base=a,u.__emotion_forwardProp=n.shouldForwardProp,u.__emotion_cva=t,Object.defineProperty(u,"toString",{value:()=>`.${l}`}),u}).bind(),cn=new Map,un=new Proxy(ln,{apply:(e,t,n)=>ln(...n),get:(e,t)=>(cn.has(t)||cn.set(t,ln(t)),cn.get(t))}),dn=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),fn=un("div");fn.displayName="Box";var pn="undefined"!=typeof window?window:void 0,hn="undefined"!=typeof globalThis?globalThis:pn,gn=Array.prototype,mn=gn.forEach,vn=gn.indexOf,bn=null==hn?void 0:hn.navigator,yn=null==hn?void 0:hn.document,xn=null==hn?void 0:hn.location,kn=null==hn?void 0:hn.fetch,wn=null!=hn&&hn.XMLHttpRequest&&"withCredentials"in new hn.XMLHttpRequest?hn.XMLHttpRequest:void 0,Sn=null==hn?void 0:hn.AbortController,_n=null==bn?void 0:bn.userAgent,Cn=null!=pn?pn:{},Pn={DEBUG:!1,LIB_VERSION:"1.283.0"};function En(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function Rn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){En(o,r,i,a,s,"next",e)}function s(e){En(o,r,i,a,s,"throw",e)}a(void 0)})}}function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zn.apply(null,arguments)}function Tn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var In=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],On=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var n=e.toLowerCase();return In.concat(t).some(e=>{var t=e.toLowerCase();return-1!==n.indexOf(t)})},Fn=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function An(e,t){return-1!==e.indexOf(t)}var Mn=function(e){return e.trim()},Nn=function(e){return e.replace(/^\$/,"")},Dn=Array.isArray,Ln=Object.prototype,jn=Ln.hasOwnProperty,$n=Ln.toString,Bn=Dn||function(e){return"[object Array]"===$n.call(e)},Wn=e=>"function"==typeof e,Vn=e=>e===Object(e)&&!Bn(e),Hn=e=>{if(Vn(e)){for(var t in e)if(jn.call(e,t))return!1;return!0}return!1},Un=e=>void 0===e,qn=e=>"[object String]"==$n.call(e),Gn=e=>qn(e)&&0===e.trim().length,Yn=e=>null===e,Xn=e=>Un(e)||Yn(e),Kn=e=>"[object Number]"==$n.call(e),Qn=e=>"[object Boolean]"===$n.call(e),Zn=e=>An(Fn,e);function Jn(e){return null===e||"object"!=typeof e}function er(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function tr(e){return!Un(Event)&&function(e,t){try{return e instanceof t}catch(n){return!1}}(e,Event)}var nr=[!0,"true",1,"1","yes"],rr=e=>An(nr,e),ir=[!1,"false",0,"0","no"];function or(e,t,n,r,i){return t>n&&(r.warn("min cannot be greater than max."),t=n),Kn(e)?e>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):e<t?(r.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+i),or(i||n,t,n,r))}class ar{constructor(e){this.t={},this.i=e.i,this.o=or(e.bucketSize,0,100,e.h),this.m=or(e.refillRate,0,this.o,e.h),this.S=or(e.refillInterval,0,864e5,e.h)}$(e,t){var n=t-e.lastAccess,r=Math.floor(n/this.S);if(r>0){var i=r*this.m;e.tokens=Math.min(e.tokens+i,this.o),e.lastAccess=e.lastAccess+r*this.S}}consumeRateLimit(e){var t,n=Date.now(),r=String(e),i=this.t[r];return i?this.$(i,n):(i={tokens:this.o,lastAccess:n},this.t[r]=i),0===i.tokens||(i.tokens--,0===i.tokens&&(null==(t=this.i)||t.call(this,e)),0===i.tokens)}stop(){this.t={}}}var sr,lr,cr,ur=e=>e instanceof Error;function dr(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return cr&&n.length===lr||(lr=n.length,cr=n.reduce((n,r)=>{sr||(sr={});var i=sr[r];if(i)n[i[0]]=i[1];else for(var o=e(r),a=o.length-1;a>=0;a--){var s=o[a],l=null==s?void 0:s.filename,c=t[r];if(l&&c){n[l]=c,sr[r]=[l,c];break}}return n},{})),cr}}var fr="?";function pr(e,t,n,r){var i={platform:"web:javascript",filename:e,function:"<anonymous>"===t?fr:t,in_app:!0};return Un(n)||(i.lineno=n),Un(r)||(i.colno=r),i}var hr=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:fr,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},gr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,mr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vr=/\((\S*)(?::(\d+))(?::(\d+))\)/,br=e=>{var t=gr.exec(e);if(t){var[,n,r,i]=t;return pr(n,fr,+r,+i)}var o=mr.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){var a=vr.exec(o[2]);a&&(o[2]=a[1],o[3]=a[2],o[4]=a[3])}var[s,l]=hr(o[1]||fr,o[2]);return pr(l,s,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},yr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,kr=e=>{var t=yr.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=xr.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||fr;return[i,r]=hr(i,r),pr(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},wr=/\(error: (.*)\)/;class Sr{constructor(e,t,n){void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=[]),this.coercers=e,this.modifiers=n,this.stackParser=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){void 0===n&&(n=0);for(var r=[],i=e.split("\n"),o=n;o<i.length;o++){var a=i[o];if(!(a.length>1024)){var s=wr.test(a)?a.replace(wr,"$1"):a;if(!s.match(/\S*Error: /)){for(var l of t){var c=l(s);if(c){r.push(c);break}}if(r.length>=50)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return t.reverse(),t.slice(0,50).map(e=>{return zn({},e,{filename:e.filename||(n=t,n[n.length-1]||{}).filename,function:e.function||fr});var n})}(r)}}(...t)}buildFromUnknown(e,t){void 0===t&&(t={});var n=t&&t.mechanism||{handled:!0,type:"generic"},r=this.buildCoercingContext(n,t,0).apply(e),i=this.buildParsingContext(),o=this.parseStacktrace(r,i);return{$exception_list:this.convertToExceptionList(o,n),$exception_level:"error"}}modifyFrames(e){var t=this;return Rn(function*(){for(var n of e)n.stacktrace&&n.stacktrace.frames&&Bn(n.stacktrace.frames)&&(n.stacktrace.frames=yield t.applyModifiers(n.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var n,r;return null!=e.cause&&(n=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(r=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?1:0),t.chunkIdMap)),zn({},e,{cause:n,stack:r})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var n of this.coercers)if(n.match(e))return n.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return Rn(function*(){var n=e;for(var r of t.modifiers)n=yield r(n);return n})()}convertToExceptionList(e,t){var n,r,i,o={type:e.type,value:e.value,mechanism:{type:null!==(n=t.type)&&void 0!==n?n:"generic",handled:null===(r=t.handled)||void 0===r||r,synthetic:null!==(i=e.synthetic)&&void 0!==i&&i}};e.stack&&(o.stacktrace={type:"raw",frames:e.stack});var a=[o];return null!=e.cause&&a.push(...this.convertToExceptionList(e.cause,zn({},t,{handled:!0}))),a}buildParsingContext(){return{chunkIdMap:dr(this.stackParser)}}buildCoercingContext(e,t,n){void 0===n&&(n=0);var r=(n,r)=>{if(r<=4){var i=this.buildCoercingContext(e,t,r);return this.applyCoercers(n,i)}};return zn({},t,{syntheticException:0==n?t.syntheticException:void 0,mechanism:e,apply:e=>r(e,n),next:e=>r(e,n+1)})}}class _r{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var n=qn(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:n?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return er(e,"DOMException")}isDOMError(e){return er(e,"DOMError")}}class Cr{match(e){return e instanceof Error}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var n=e.message;return n.error&&"string"==typeof n.error.message?String(n.error.message):String(n)}getStack(e){return e.stacktrace||e.stack||void 0}}class Pr{constructor(){}match(e){return er(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var n;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}}var Er=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Rr{match(e){return"string"==typeof e}coerce(e,t){var n,[r,i]=this.getInfos(e);return{type:null!=r?r:"Error",value:null!=i?i:e,stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}getInfos(e){var t="Error",n=e,r=e.match(Er);return r&&(t=r[1],n=r[2]),[t,n]}}var zr=["fatal","error","warning","log","info","debug"];function Tr(e,t){void 0===t&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:i.slice(0,t)+"..."}return""}class Ir{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var n,r=this.getErrorPropertyFromObject(e);return r?t.apply(r):{type:this.getType(e),value:this.getValue(e),stack:null==(n=t.syntheticException)?void 0:n.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return tr(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var n=this.getObjectClassName(e);return(n&&"Object"!==n?"'"+n+"'":"Object")+" captured as exception with keys: "+Tr(e)}isSeverityLevel(e){return qn(e)&&!Gn(e)&&zr.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];if(ur(n))return n}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(n){return}}}class Or{match(e){return tr(e)}coerce(e,t){var n,r=e.constructor.name;return{type:r,value:r+" captured as exception with keys: "+Tr(e),stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}}class Fr{match(e){return Jn(e)}coerce(e,t){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}}class Ar{match(e){return er(e,"PromiseRejectionEvent")}coerce(e,t){var n,r=this.getUnhandledRejectionReason(e);return Jn(r)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r),stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}:t.apply(r)}getUnhandledRejectionReason(e){if(Jn(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}}var Mr=e=>{var t={k:function(t){if(pn&&(Pn.DEBUG||Cn.POSTHOG_DEBUG)&&!Un(pn.console)&&pn.console){for(var n=("__rrweb_original__"in pn.console[t]?pn.console[t].__rrweb_original__:pn.console[t]),r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];n(e,...i)}},info:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.k("log",...n)},warn:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.k("warn",...n)},error:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.k("error",...n)},critical:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},uninitializedWarning:e=>{t.error("You must initialize PostHog before calling "+e)},createLogger:t=>Mr(e+" "+t)};return t},Nr=Mr("[PostHog.js]"),Dr=Nr.createLogger,Lr=Dr("[ExternalScriptsLoader]"),jr=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return Lr.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=null==yn?void 0:yn.querySelectorAll("script");if(r)for(var i,o=function(){if(r[a].src===t){var e=r[a];return e.__posthog_loading_callback_fired?{v:n()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,n(void 0,t)}),e.onerror=e=>n(e),{v:void 0})}},a=0;a<r.length;a++)if(i=o())return i.v;var s=()=>{if(!yn)return n("document not found");var r=yn.createElement("script");if(r.type="text/javascript",r.crossOrigin="anonymous",r.src=t,r.onload=e=>{r.__posthog_loading_callback_fired=!0,n(void 0,e)},r.onerror=e=>n(e),e.config.prepare_external_dependency_script&&(r=e.config.prepare_external_dependency_script(r)),!r)return n("prepare_external_dependency_script returned null");var i,o=yn.querySelectorAll("body > script");o.length>0?null==(i=o[0].parentNode)||i.insertBefore(r,o[0]):yn.body.appendChild(r)};null!=yn&&yn.body?s():null==yn||yn.addEventListener("DOMContentLoaded",s)};Cn.__PosthogExtensions__=Cn.__PosthogExtensions__||{},Cn.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{var r="/static/"+t+".js?v="+e.version;if("remote-config"===t&&(r="/array/"+e.config.token+"/config.js"),"toolbar"===t){var i=3e5;r=r+"&t="+Math.floor(Date.now()/i)*i}var o=e.requestRouter.endpointFor("assets",r);jr(e,o,n)},Cn.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var r=e.requestRouter.endpointFor("api",t);jr(e,r,n)};var $r={};function Br(e,t,n){if(Bn(e))if(mn&&e.forEach===mn)e.forEach(t,n);else if("length"in e&&e.length===+e.length)for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r)===$r)return}function Wr(e,t,n){if(!Xn(e)){if(Bn(e))return Br(e,t,n);if((e=>e instanceof FormData)(e)){for(var r of e.entries())if(t.call(n,r[1],r[0])===$r)return}else for(var i in e)if(jn.call(e,i)&&t.call(n,e[i],i)===$r)return}}var Vr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Br(n,function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}),e},Hr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Br(n,function(t){Br(t,function(t){e.push(t)})}),e};function Ur(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var qr=function(e){try{return e()}catch(t){return}},Gr=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}catch(i){Nr.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Nr.critical(i)}}},Yr=function(e){var t={};return Wr(e,function(e,n){(qn(e)&&e.length>0||Kn(e))&&(t[n]=e)}),t},Xr=["herokuapp.com","vercel.app","netlify.app"];function Kr(e){var t=null==e?void 0:e.hostname;if(!qn(t))return!1;var n=t.split(".").slice(-2).join(".");for(var r of Xr)if(n===r)return!1;return!0}function Qr(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function Zr(e,t,n,r){var{capture:i=!1,passive:o=!0}=null!=r?r:{};null==e||e.addEventListener(t,n,{capture:i,passive:o})}var Jr="$people_distinct_id",ei="__alias",ti="__timers",ni="$autocapture_disabled_server_side",ri="$heatmaps_enabled_server_side",ii="$exception_capture_enabled_server_side",oi="$error_tracking_suppression_rules",ai="$error_tracking_capture_extension_exceptions",si="$web_vitals_enabled_server_side",li="$dead_clicks_enabled_server_side",ci="$web_vitals_allowed_metrics",ui="$session_recording_remote_config",di="$sesid",fi="$session_is_sampled",pi="$enabled_feature_flags",hi="$early_access_features",gi="$feature_flag_details",mi="$stored_person_properties",vi="$stored_group_properties",bi="$surveys",yi="$surveys_activated",xi="$flag_call_reported",ki="$user_state",wi="$client_session_props",Si="$capture_rate_limit",_i="$initial_campaign_params",Ci="$initial_referrer_info",Pi="$initial_person_info",Ei="$epp",Ri="__POSTHOG_TOOLBAR__",zi="$posthog_cookieless",Ti=[Jr,ei,"__cmpns",ti,"$session_recording_enabled_server_side",ri,di,pi,oi,ki,hi,gi,vi,mi,bi,xi,wi,Si,_i,Ci,Ei,Pi];function Ii(e){return e instanceof Element&&(e.id===Ri||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function Oi(e){return!!e&&1===e.nodeType}function Fi(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Ai(e){return!!e&&3===e.nodeType}function Mi(e){return!!e&&11===e.nodeType}function Ni(e){return e?Mn(e).split(/\s+/):[]}function Di(e){var t=null==pn?void 0:pn.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function Li(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Ni(t)}function ji(e){return Xn(e)?null:Mn(e).split(/(\s+)/).filter(e=>no(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function $i(e){var t="";return Yi(e)&&!Xi(e)&&e.childNodes&&e.childNodes.length&&Wr(e.childNodes,function(e){var n;Ai(e)&&e.textContent&&(t+=null!==(n=ji(e.textContent))&&void 0!==n?n:"")}),Mn(t)}function Bi(e){return Un(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var Wi=["a","button","form","input","select","textarea","label"];function Vi(e,t){if(Un(t))return!0;var n,r=function(e){if(t.some(t=>e.matches(t)))return{v:!0}};for(var i of e)if(n=r(i))return n.v;return!1}function Hi(e){var t=e.parentNode;return!(!t||!Oi(t))&&t}var Ui=[".ph-no-rageclick",".ph-no-capture"],qi=e=>!e||Fi(e,"html")||!Oi(e),Gi=(e,t)=>{if(!pn||qi(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],i=e;i.parentNode&&!Fi(i,"body");)if(Mi(i.parentNode))r.push(i.parentNode.host),i=i.parentNode.host;else{var o=Hi(i);if(!o)break;if(t||Wi.indexOf(o.tagName.toLowerCase())>-1)n=!0;else{var a=pn.getComputedStyle(o);a&&"pointer"===a.getPropertyValue("cursor")&&(n=!0)}r.push(o),i=o}return{parentIsUsefulElement:n,targetElementList:r}};function Yi(e){for(var t=e;t.parentNode&&!Fi(t,"body");t=t.parentNode){var n=Li(t);if(An(n,"ph-sensitive")||An(n,"ph-no-capture"))return!1}if(An(Li(e),"ph-include"))return!0;var r=e.type||"";if(qn(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!qn(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function Xi(e){return!!(Fi(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Fi(e,"select")||Fi(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var Ki="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Qi=new RegExp("^(?:"+Ki+")$"),Zi=new RegExp(Ki),Ji="\\d{3}-?\\d{2}-?\\d{4}",eo=new RegExp("^("+Ji+")$"),to=new RegExp("("+Ji+")");function no(e,t){if(void 0===t&&(t=!0),Xn(e))return!1;if(qn(e)){if(e=Mn(e),(t?Qi:Zi).test((e||"").replace(/[- ]/g,"")))return!1;if((t?eo:to).test(e))return!1}return!0}function ro(e){var t=$i(e);return no(t=(t+" "+io(e)).trim())?t:""}function io(e){var t="";return e&&e.childNodes&&e.childNodes.length&&Wr(e.childNodes,function(e){var n;if(e&&"span"===(null==(n=e.tagName)?void 0:n.toLowerCase()))try{var r=$i(e);t=(t+" "+r).trim(),e.childNodes&&e.childNodes.length&&(t=(t+" "+io(e)).trim())}catch(i){Nr.error("[AutoCapture]",i)}}),t}function oo(e){return e.map(e=>{var t,n,r={text:null==(t=e.$el_text)?void 0:t.slice(0,400),tag_name:e.tag_name,href:null==(n=e.attr__href)?void 0:n.slice(0,2048),attr_class:so(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return Ur(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,n]=e;return r.attributes[t]=n}),r}).map(e=>{var t,n,r="";if(e.tag_name&&(r+=e.tag_name),e.attr_class)for(var i of(e.attr_class.sort(),e.attr_class))r+="."+i.replace(/"/g,"");var o=zn({},e.text?{text:e.text}:{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(n=e.nth_of_type)&&void 0!==n?n:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),a={};return Ur(o).sort((e,t)=>{var[n]=e,[r]=t;return n.localeCompare(r)}).forEach(e=>{var[t,n]=e;return a[ao(t.toString())]=ao(n.toString())}),(r+=":")+Ur(a).map(e=>{var[t,n]=e;return t+'="'+n+'"'}).join("")}).join(";")}function ao(e){return e.replace(/"|\\"/g,'\\"')}function so(e){var t=e.attr__class;return t?Bn(t)?t:Ni(t):void 0}class lo{constructor(){this.clicks=[]}isRageClick(e,t,n){var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(e-r.x)+Math.abs(t-r.y)<30&&n-r.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}var co,uo="$copy_autocapture",fo=((co={}).GZipJS="gzip-js",co.Base64="base64",co),po=e=>{var t=null==yn?void 0:yn.createElement("a");return Un(t)?null:(t.href=e,t)},ho=function(e,t){for(var n,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;i<r.length;i++){var o=r[i].split("=");if(o[0]===t){n=o;break}}if(!Bn(n)||n.length<2)return"";var a=n[1];try{a=decodeURIComponent(a)}catch(s){Nr.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},go=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split("#"),i=r[0]||"",o=r[1],a=i.split("?"),s=a[1],l=a[0],c=(s||"").split("&"),u=[],d=0;d<c.length;d++){var f=c[d].split("=");Bn(f)&&(t.includes(f[0])?u.push(f[0]+"="+n):u.push(c[d]))}var p=l;return null!=s&&(p+="?"+u.join("&")),null!=o&&(p+="#"+o),p},mo=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},vo=Dr("[AutoCapture]");function bo(e,t){return t.length>e?t.slice(0,e)+"...":t}function yo(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!Oi(t));return t}class xo{constructor(e){this.P=!1,this.T=null,this.rageclicks=new lo,this.R=!1,this.instance=e,this.I=null}get C(){var e,t,n=Vn(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=null==(e=n.url_allowlist)?void 0:e.map(e=>new RegExp(e)),n.url_ignorelist=null==(t=n.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),n}O(){if(this.isBrowserSupported()){if(pn&&yn){var e=e=>{e=e||(null==pn?void 0:pn.event);try{this.F(e)}catch(co){vo.error("Failed to capture event",co)}};if(Zr(yn,"submit",e,{capture:!0}),Zr(yn,"change",e,{capture:!0}),Zr(yn,"click",e,{capture:!0}),this.C.capture_copied_text){var t=e=>{e=e||(null==pn?void 0:pn.event),this.F(e,uo)};Zr(yn,"copy",t,{capture:!0}),Zr(yn,"cut",t,{capture:!0})}}}else vo.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.O(),this.P=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.R=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[ni]:!!e.autocapture_opt_out}),this.T=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.I=e}getElementSelectors(e){var t,n=[];return null==(t=this.I)||t.forEach(t=>{var r=null==yn?void 0:yn.querySelectorAll(t);null==r||r.forEach(r=>{e===r&&n.push(t)})}),n}get isEnabled(){var e,t,n=null==(e=this.instance.persistence)?void 0:e.props[ni],r=this.T;if(Yn(r)&&!Qn(n)&&!this.instance.M())return!1;var i=null!==(t=this.T)&&void 0!==t?t:!!n;return!!this.instance.config.autocapture&&!i}F(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var n,r=Bi(e);Ai(r)&&(r=r.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(n=this.rageclicks)&&n.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&function(e,t){if(!pn||qi(e))return!1;var n,r;if(!1===(n=Qn(t)?!!t&&Ui:null!==(r=null==t?void 0:t.css_selector_ignorelist)&&void 0!==r?r:Ui))return!1;var{targetElementList:i}=Gi(e,!1);return!Vi(i,n)}(r,this.instance.config.rageclick)&&this.F(e,"$rageclick");var i=t===uo;if(r&&function(e,t,n,r,i){var o,a,s,l;if(void 0===n&&(n=void 0),!pn||qi(e))return!1;if(null!=(o=n)&&o.url_allowlist&&!Di(n.url_allowlist))return!1;if(null!=(a=n)&&a.url_ignorelist&&Di(n.url_ignorelist))return!1;if(null!=(s=n)&&s.dom_event_allowlist){var c=n.dom_event_allowlist;if(c&&!c.some(e=>t.type===e))return!1}var{parentIsUsefulElement:u,targetElementList:d}=Gi(e,r);if(!function(e,t){var n=null==t?void 0:t.element_allowlist;if(Un(n))return!0;var r,i=function(e){if(n.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var o of e)if(r=i(o))return r.v;return!1}(d,n))return!1;if(!Vi(d,null==(l=n)?void 0:l.css_selector_allowlist))return!1;var f=pn.getComputedStyle(e);if(f&&"pointer"===f.getPropertyValue("cursor")&&"click"===t.type)return!0;var p=e.tagName.toLowerCase();switch(p){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return u?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(Wi.indexOf(p)>-1||"true"===e.getAttribute("contenteditable"))}}(r,e,this.C,i,i?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:a}=function(e,t){for(var n,r,{e:i,maskAllElementAttributes:o,maskAllText:a,elementAttributeIgnoreList:s,elementsChainAsString:l}=t,c=[e],u=e;u.parentNode&&!Fi(u,"body");)Mi(u.parentNode)?(c.push(u.parentNode.host),u=u.parentNode.host):(c.push(u.parentNode),u=u.parentNode);var d,f=[],p={},h=!1,g=!1;if(Wr(c,e=>{var t=Yi(e);"a"===e.tagName.toLowerCase()&&(h=e.getAttribute("href"),h=t&&h&&no(h)&&h),An(Li(e),"ph-no-capture")&&(g=!0),f.push(function(e,t,n,r){var i=e.tagName.toLowerCase(),o={tag_name:i};Wi.indexOf(i)>-1&&!n&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?o.$el_text=bo(1024,ro(e)):o.$el_text=bo(1024,$i(e)));var a=Li(e);a.length>0&&(o.classes=a.filter(function(e){return""!==e})),Wr(e.attributes,function(n){var i;if((!Xi(e)||-1!==["name","id","class","aria-label"].indexOf(n.name))&&(null==r||!r.includes(n.name))&&!t&&no(n.value)&&(i=n.name,!qn(i)||"_ngcontent"!==i.substring(0,10)&&"_nghost"!==i.substring(0,7))){var a=n.value;"class"===n.name&&(a=Ni(a).join(" ")),o["attr__"+n.name]=bo(1024,a)}});for(var s=1,l=1,c=e;c=yo(c);)s++,c.tagName===e.tagName&&l++;return o.nth_child=s,o.nth_of_type=l,o}(e,o,a,s));var n=function(e){if(!Yi(e))return{};var t={};return Wr(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var n=e.name.replace("data-ph-capture-attribute-",""),r=e.value;n&&r&&no(r)&&(t[n]=r)}}),t}(e);Vr(p,n)}),g)return{props:{},explicitNoCapture:g};if(a||("a"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase()?f[0].$el_text=ro(e):f[0].$el_text=$i(e)),h){var m,v;f[0].attr__href=h;var b=null==(m=po(h))?void 0:m.host,y=null==pn||null==(v=pn.location)?void 0:v.host;b&&y&&b!==y&&(d=h)}return{props:Vr({$event_type:i.type,$ce_version:1},l?{}:{$elements:f},{$elements_chain:oo(f)},null!=(n=f[0])&&n.$el_text?{$el_text:null==(r=f[0])?void 0:r.$el_text}:{},d&&"click"===i.type?{$external_click_url:d}:{},p)}}(r,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.C.element_attribute_ignorelist,elementsChainAsString:this.R});if(a)return!1;var s=this.getElementSelectors(r);if(s&&s.length>0&&(o.$element_selectors=s),t===uo){var l,c=ji(null==pn||null==(l=pn.getSelection())?void 0:l.toString()),u=e.type||"clipboard";if(!c)return!1;o.$selected_content=c,o.$copy_type=u}return this.instance.capture(t,o),!0}}}isBrowserSupported(){return Wn(null==yn?void 0:yn.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Kn(e)&&isFinite(e)&&Math.floor(e)===e});var ko="0123456789abcdef";class wo{constructor(e){if(this.bytes=e,16!==e.length)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,t,n,r){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||e<0||t<0||n<0||r<0||e>0xffffffffffff||t>4095||n>1073741823||r>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/Math.pow(2,40),i[1]=e/Math.pow(2,32),i[2]=e/Math.pow(2,24),i[3]=e/Math.pow(2,16),i[4]=e/Math.pow(2,8),i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|n>>>24,i[9]=n>>>16,i[10]=n>>>8,i[11]=n,i[12]=r>>>24,i[13]=r>>>16,i[14]=r>>>8,i[15]=r,new wo(i)}toString(){for(var e="",t=0;t<this.bytes.length;t++)e=e+ko.charAt(this.bytes[t]>>>4)+ko.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new wo(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;t<16;t++){var n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}class So{constructor(){this.A=0,this.D=0,this.j=new Po}generate(){var e=this.generateOrAbort();if(Un(e)){this.A=0;var t=this.generateOrAbort();if(Un(t))throw new Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.A)this.A=e,this.L();else{if(!(e+1e4>this.A))return;this.D++,this.D>4398046511103&&(this.A++,this.L())}return wo.fromFieldsV7(this.A,Math.trunc(this.D/Math.pow(2,30)),this.D&Math.pow(2,30)-1,this.j.nextUint32())}L(){this.D=1024*this.j.nextUint32()+(1023&this.j.nextUint32())}}var _o,Co=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};pn&&!Un(pn.crypto)&&crypto.getRandomValues&&(Co=e=>crypto.getRandomValues(e));class Po{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(Co(this.N),this.U=0),this.N[this.U++]}}var Eo=()=>Ro().toString(),Ro=()=>(_o||(_o=new So)).generate(),zo="",To=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Io={H:()=>!!yn,B:function(e){Nr.error("cookieStore error: "+e)},q:function(e){if(yn){try{for(var t=e+"=",n=yn.cookie.split(";").filter(e=>e.length),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(o){}return null}},W:function(e){var t;try{t=JSON.parse(Io.q(e))||{}}catch(n){}return t},G:function(e,t,n,r,i){if(yn)try{var o="",a="",s=function(e,t){if(t){var n=function(e,t){if(void 0===t&&(t=yn),zo)return zo;if(!t)return"";if(["localhost","127.0.0.1"].includes(e))return"";for(var n=e.split("."),r=Math.min(n.length,8),i="dmn_chk_"+Eo();!zo&&r--;){var o=n.slice(r).join("."),a=i+"=1;domain=."+o+";path=/";t.cookie=a+";max-age=3",t.cookie.includes(i)&&(t.cookie=a+";max-age=0",zo=o)}return zo}(e);if(!n){var r=(i=e.match(To))?i[0]:"";r!==n&&Nr.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}var i;return""}(yn.location.hostname,r);if(n){var l=new Date;l.setTime(l.getTime()+24*n*60*60*1e3),o="; expires="+l.toUTCString()}i&&(a="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+o+"; SameSite=Lax; path=/"+s+a;return c.length>3686.4&&Nr.warn("cookieStore warning: large cookie, len="+c.length),yn.cookie=c,c}catch(u){return}},V:function(e,t){if(null!=yn&&yn.cookie)try{Io.G(e,"",-1,t)}catch(n){return}}},Oo=null,Fo={H:function(){if(!Yn(Oo))return Oo;var e=!0;if(Un(pn))e=!1;else try{var t="__mplssupport__";Fo.G(t,"xyz"),'"xyz"'!==Fo.q(t)&&(e=!1),Fo.V(t)}catch(co){e=!1}return e||Nr.error("localStorage unsupported; falling back to cookie store"),Oo=e,e},B:function(e){Nr.error("localStorage error: "+e)},q:function(e){try{return null==pn?void 0:pn.localStorage.getItem(e)}catch(co){Fo.B(co)}return null},W:function(e){try{return JSON.parse(Fo.q(e))||{}}catch(t){}return null},G:function(e,t){try{null==pn||pn.localStorage.setItem(e,JSON.stringify(t))}catch(co){Fo.B(co)}},V:function(e){try{null==pn||pn.localStorage.removeItem(e)}catch(co){Fo.B(co)}}},Ao=["distinct_id",di,fi,Ei,Pi],Mo=zn({},Fo,{W:function(e){try{var t={};try{t=Io.W(e)||{}}catch(r){}var n=Vr(t,JSON.parse(Fo.q(e)||"{}"));return Fo.G(e,n),n}catch(r){}return null},G:function(e,t,n,r,i,o){try{Fo.G(e,t,void 0,void 0,o);var a={};Ao.forEach(e=>{t[e]&&(a[e]=t[e])}),Object.keys(a).length&&Io.G(e,a,n,r,i,o)}catch(s){Fo.B(s)}},V:function(e,t){try{null==pn||pn.localStorage.removeItem(e),Io.V(e,t)}catch(co){Fo.B(co)}}}),No={},Do={H:function(){return!0},B:function(e){Nr.error("memoryStorage error: "+e)},q:function(e){return No[e]||null},W:function(e){return No[e]||null},G:function(e,t){No[e]=t},V:function(e){delete No[e]}},Lo=null,jo={H:function(){if(!Yn(Lo))return Lo;if(Lo=!0,Un(pn))Lo=!1;else try{var e="__support__";jo.G(e,"xyz"),'"xyz"'!==jo.q(e)&&(Lo=!1),jo.V(e)}catch(co){Lo=!1}return Lo},B:function(e){Nr.error("sessionStorage error: ",e)},q:function(e){try{return null==pn?void 0:pn.sessionStorage.getItem(e)}catch(co){jo.B(co)}return null},W:function(e){try{return JSON.parse(jo.q(e))||null}catch(t){}return null},G:function(e,t){try{null==pn||pn.sessionStorage.setItem(e,JSON.stringify(t))}catch(co){jo.B(co)}},V:function(e){try{null==pn||pn.sessionStorage.removeItem(e)}catch(co){jo.B(co)}}},$o=function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e}({});class Bo{constructor(e){this._instance=e}get C(){return this._instance.config}get consent(){return this.J()?$o.DENIED:this.K}isOptedOut(){return"always"===this.C.cookieless_mode||this.consent===$o.DENIED||this.consent===$o.PENDING&&(this.C.opt_out_capturing_by_default||"on_reject"===this.C.cookieless_mode)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===$o.DENIED}optInOut(e){this.Y.G(this.X,e?1:0,this.C.cookie_expiration,this.C.cross_subdomain_cookie,this.C.secure_cookie)}reset(){this.Y.V(this.X,this.C.cross_subdomain_cookie)}get X(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:n}=this._instance.config;return n||(t?t+e:"__ph_opt_in_out_"+e)}get K(){var e=this.Y.q(this.X);return rr(e)?$o.GRANTED:An(ir,e)?$o.DENIED:$o.PENDING}get Y(){if(!this.Z){var e=this.C.opt_out_capturing_persistence_type;this.Z="localStorage"===e?Fo:Io;var t="localStorage"===e?Io:Fo;t.q(this.X)&&(this.Z.q(this.X)||this.optInOut(rr(t.q(this.X))),t.V(this.X,this.C.cross_subdomain_cookie))}return this.Z}J(){return!!this.C.respect_dnt&&!!Qr([null==bn?void 0:bn.doNotTrack,null==bn?void 0:bn.msDoNotTrack,Cn.doNotTrack],e=>rr(e))}}var Wo=Dr("[Dead Clicks]"),Vo=()=>!0,Ho=e=>{var t,n=!(null==(t=e.instance.persistence)||!t.get_property(li)),r=e.instance.config.capture_dead_clicks;return Qn(r)?r:n};class Uo{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(e,t,n){this.instance=e,this.isEnabled=t,this.onCapture=n,this.startIfEnabled()}onRemoteConfig(e){this.instance.persistence&&this.instance.persistence.register({[li]:null==e?void 0:e.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it(()=>{this.et()})}it(e){var t,n;null!=(t=Cn.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(n=Cn.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?Wo.error("failed to load script",t):e()})}et(){var e;if(yn){if(!this.tt&&null!=(e=Cn.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=Vn(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.tt=Cn.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.tt.start(yn),Wo.info("starting...")}}else Wo.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,Wo.info("stopping..."))}}var qo=Dr("[ExceptionAutocapture]");class Go{constructor(e){var t,n,r;this.rt=()=>{var e;if(pn&&this.isEnabled&&null!=(e=Cn.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=Cn.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,n=Cn.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,r=Cn.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.C.capture_unhandled_errors&&(this.st=t(this.captureException.bind(this))),!this.nt&&this.C.capture_unhandled_rejections&&(this.nt=n(this.captureException.bind(this))),!this.ot&&this.C.capture_console_errors&&(this.ot=r(this.captureException.bind(this)))}catch(co){qo.error("failed to start",co),this.lt()}}},this._instance=e,this.ut=!(null==(t=this._instance.persistence)||!t.props[ii]),this.C=this.ht(),this.dt=new ar({refillRate:null!==(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)&&void 0!==n?n:1,bucketSize:null!==(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)&&void 0!==r?r:10,refillInterval:1e4,h:qo}),this.startIfEnabled()}ht(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Vn(e)?t=zn({},t,e):(Un(e)?this.ut:e)&&(t=zn({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.C.capture_console_errors||this.C.capture_unhandled_errors||this.C.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(qo.info("enabled"),this.it(this.rt))}it(e){var t,n;null!=(t=Cn.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(n=Cn.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return qo.error("failed to load script",t);e()})}lt(){var e,t,n;null==(e=this.st)||e.call(this),this.st=void 0,null==(t=this.nt)||t.call(this),this.nt=void 0,null==(n=this.ot)||n.call(this),this.ot=void 0}onRemoteConfig(e){var t=e.autocaptureExceptions;this.ut=!!t||!1,this.C=this.ht(),this._instance.persistence&&this._instance.persistence.register({[ii]:this.ut}),this.startIfEnabled()}captureException(e){var t,n,r=null!==(t=null==e||null==(n=e.$exception_list)||null==(n=n[0])?void 0:n.type)&&void 0!==t?t:"Exception";this.dt.consumeRateLimit(r)?qo.info("Skipping exception capture because of client rate limiting.",{exception:r}):this._instance.exceptions.sendExceptionEvent(e)}}function Yo(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],i=n(r);return Wn(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=r}}catch(o){return()=>{}}}class Xo{constructor(e){var t;this._instance=e,this.vt=(null==pn||null==(t=pn.location)?void 0:t.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(Nr.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ct&&this.ct(),this.ct=void 0,Nr.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(pn&&pn.history){var n=this;null!=(e=pn.history.pushState)&&e.__posthog_wrapped__||Yo(pn.history,"pushState",e=>function(t,r,i){e.call(this,t,r,i),n.ft("pushState")}),null!=(t=pn.history.replaceState)&&t.__posthog_wrapped__||Yo(pn.history,"replaceState",e=>function(t,r,i){e.call(this,t,r,i),n.ft("replaceState")}),this.gt()}}ft(e){try{var t,n=null==pn||null==(t=pn.location)?void 0:t.pathname;if(!n)return;n!==this.vt&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:e}),this.vt=n}catch(co){Nr.error("Error capturing "+e+" pageview",co)}}gt(){if(!this.ct){var e=()=>{this.ft("popstate")};Zr(pn,"popstate",e),this.ct=()=>{pn&&pn.removeEventListener("popstate",e)}}}}var Ko=Dr("[SegmentIntegration]"),Qo="posthog-js";function Zo(e,t){var{organization:n,projectId:r,prefix:i,severityAllowList:o=["error"],sendExceptionsToPostHog:a=!0}=void 0===t?{}:t;return t=>{var s,l,c,u,d;if("*"!==o&&!o.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var f=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=f,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var p=(null==(s=t.exception)?void 0:s.values)||[],h=p.map(e=>zn({},e,{stacktrace:e.stacktrace?zn({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>zn({},e,{platform:"web:javascript"}))}):void 0})),g={$exception_message:(null==(l=p[0])?void 0:l.value)||t.message,$exception_type:null==(c=p[0])?void 0:c.type,$exception_level:t.level,$exception_list:h,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(u=p[0])?void 0:u.value)||t.message,$sentry_exception_type:null==(d=p[0])?void 0:d.type,$sentry_tags:t.tags};return n&&r&&(g.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+t.event_id),a&&e.exceptions.sendExceptionEvent(g),t}}class Jo{constructor(e,t,n,r,i,o){this.name=Qo,this.setupOnce=function(a){a(Zo(e,{organization:t,projectId:n,prefix:r,severityAllowList:i,sendExceptionsToPostHog:null==o||o}))}}}var ea=null!=pn&&pn.location?mo(pn.location.hash,"__posthog")||mo(location.hash,"state"):null,ta="_postHogToolbarParams",na=Dr("[Toolbar]"),ra=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(ra||{});class ia{constructor(e){this.instance=e}_t(e){Cn.ph_toolbar_state=e}yt(){var e;return null!==(e=Cn.ph_toolbar_state)&&void 0!==e?e:ra.UNINITIALIZED}maybeLoadToolbar(e,t,n){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),!pn||!yn)return!1;e=null!=e?e:pn.location,n=null!=n?n:pn.history;try{if(!t){try{pn.localStorage.setItem("test","test"),pn.localStorage.removeItem("test")}catch(co){return!1}t=null==pn?void 0:pn.localStorage}var r,i=ea||mo(e.hash,"__posthog")||mo(e.hash,"state"),o=i?qr(()=>JSON.parse(atob(decodeURIComponent(i))))||qr(()=>JSON.parse(decodeURIComponent(i))):null;return o&&"ph_authorize"===o.action?((r=o).source="url",r&&Object.keys(r).length>0&&(o.desiredHash?e.hash=o.desiredHash:n?n.replaceState(n.state,"",e.pathname+e.search):e.hash="")):((r=JSON.parse(t.getItem(ta)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch(co){return!1}}bt(e){var t=Cn.ph_load_toolbar||Cn.ph_load_editor;!Xn(t)&&Wn(t)?t(e,this.instance):na.warn("No toolbar load function found")}loadToolbar(e){var t=!(null==yn||!yn.getElementById(Ri));if(!pn||t)return!1;var n="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,r=zn({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(pn.localStorage.setItem(ta,JSON.stringify(zn({},r,{source:void 0}))),this.yt()===ra.LOADED)this.bt(r);else if(this.yt()===ra.UNINITIALIZED){var i;this._t(ra.LOADING),null==(i=Cn.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return na.error("[Toolbar] Failed to load",e),void this._t(ra.UNINITIALIZED);this._t(ra.LOADED),this.bt(r)}),Zr(pn,"turbolinks:load",()=>{this._t(ra.UNINITIALIZED),this.loadToolbar(r)})}return!0}wt(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}var oa=Dr("[TracingHeaders]");class aa{constructor(e){this.xt=void 0,this.St=void 0,this.rt=()=>{var e,t;Un(this.xt)&&(null==(e=Cn.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),Un(this.St)&&(null==(t=Cn.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)||t._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}it(e){var t,n;null!=(t=Cn.__PosthogExtensions__)&&t.tracingHeadersPatchFns&&e(),null==(n=Cn.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return oa.error("failed to load script",t);e()})}startIfEnabledOrStop(){var e,t;this._instance.config.__add_tracing_headers?this.it(this.rt):(null==(e=this.xt)||e.call(this),null==(t=this.St)||t.call(this),this.xt=void 0,this.St=void 0)}}var sa="Mobile",la="iOS",ca="Android",ua="Tablet",da=ca+" "+ua,fa="iPad",pa="Apple",ha=pa+" Watch",ga="Safari",ma="BlackBerry",va="Samsung",ba=va+"Browser",ya=va+" Internet",xa="Chrome",ka=xa+" OS",wa=xa+" "+la,Sa="Internet Explorer",_a=Sa+" "+sa,Ca="Opera",Pa=Ca+" Mini",Ea="Edge",Ra="Microsoft "+Ea,za="Firefox",Ta=za+" "+la,Ia="Nintendo",Oa="PlayStation",Fa="Xbox",Aa=ca+" "+sa,Ma=sa+" "+ga,Na="Windows",Da=Na+" Phone",La="Nokia",ja="Ouya",$a="Generic",Ba=$a+" "+sa.toLowerCase(),Wa=$a+" "+ua.toLowerCase(),Va="Konqueror",Ha="(\\d+(\\.\\d+)?)",Ua=new RegExp("Version/"+Ha),qa=new RegExp(Fa,"i"),Ga=new RegExp(Oa+" \\w+","i"),Ya=new RegExp(Ia+" \\w+","i"),Xa=new RegExp(ma+"|PlayBook|BB10","i"),Ka={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Qa=function(e,t){return t=t||"",An(e," OPR/")&&An(e,"Mini")?Pa:An(e," OPR/")?Ca:Xa.test(e)?ma:An(e,"IE"+sa)||An(e,"WPDesktop")?_a:An(e,ba)?ya:An(e,Ea)||An(e,"Edg/")?Ra:An(e,"FBIOS")?"Facebook "+sa:An(e,"UCWEB")||An(e,"UCBrowser")?"UC Browser":An(e,"CriOS")?wa:An(e,"CrMo")||An(e,xa)?xa:An(e,ca)&&An(e,ga)?Aa:An(e,"FxiOS")?Ta:An(e.toLowerCase(),Va.toLowerCase())?Va:((e,t)=>{return t&&An(t,pa)||An(n=e,ga)&&!An(n,xa)&&!An(n,ca);var n})(e,t)?An(e,sa)?Ma:ga:An(e,za)?za:An(e,"MSIE")||An(e,"Trident/")?Sa:An(e,"Gecko")?za:""},Za={[_a]:[new RegExp("rv:"+Ha)],[Ra]:[new RegExp(Ea+"?\\/"+Ha)],[xa]:[new RegExp("("+xa+"|CrMo)\\/"+Ha)],[wa]:[new RegExp("CriOS\\/"+Ha)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Ha)],[ga]:[Ua],[Ma]:[Ua],[Ca]:[new RegExp("(Opera|OPR)\\/"+Ha)],[za]:[new RegExp(za+"\\/"+Ha)],[Ta]:[new RegExp("FxiOS\\/"+Ha)],[Va]:[new RegExp("Konqueror[:/]?"+Ha,"i")],[ma]:[new RegExp(ma+" "+Ha),Ua],[Aa]:[new RegExp("android\\s"+Ha,"i")],[ya]:[new RegExp(ba+"\\/"+Ha)],[Sa]:[new RegExp("(rv:|MSIE )"+Ha)],Mozilla:[new RegExp("rv:"+Ha)]},Ja=function(e,t){var n=Qa(e,t),r=Za[n];if(Un(r))return null;for(var i=0;i<r.length;i++){var o=r[i],a=e.match(o);if(a)return parseFloat(a[a.length-2])}return null},es=[[new RegExp(Fa+"; "+Fa+" (.*?)[);]","i"),e=>[Fa,e&&e[1]||""]],[new RegExp(Ia,"i"),[Ia,""]],[new RegExp(Oa,"i"),[Oa,""]],[Xa,[ma,""]],[new RegExp(Na,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Da,""];if(new RegExp(sa).test(t)&&!/IEMobile\b/.test(t))return[Na+" "+sa,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=n[1],i=Ka[r]||"";return/arm/i.test(t)&&(i="RT"),[Na,i]}return[Na,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[la,t.join(".")]}return[la,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=Un(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+ca+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+ca+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[ca,t.join(".")]}return[ca,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[ka,""]],[/Linux|debian/i,["Linux",""]]],ts=function(e){return Ya.test(e)?Ia:Ga.test(e)?Oa:qa.test(e)?Fa:new RegExp(ja,"i").test(e)?ja:new RegExp("("+Da+"|WPDesktop)","i").test(e)?Da:/iPad/.test(e)?fa:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?ha:Xa.test(e)?ma:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(La,"i").test(e)?La:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(sa).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?ca:da:ca:new RegExp("(pda|"+sa+")","i").test(e)?Ba:new RegExp(ua,"i").test(e)&&!new RegExp(ua+" pc","i").test(e)?Wa:""},ns="https?://(.*)",rs=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],is=Hr(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],rs),os="<masked>",as=["li_fat_id"];function ss(e,t,n){if(!yn)return{};var r,i=t?Hr([],rs,n||[]):[],o=ls(go(yn.URL,i,os),e),a=(r={},Wr(as,function(e){var t=Io.q(e);r[e]=t||null}),r);return Vr(a,o)}function ls(e,t){var n=is.concat(t||[]),r={};return Wr(n,function(t){var n=ho(e,t);r[t]=n||null}),r}function cs(e){var t,n=(t=e)?0===t.search(ns+"google.([^/?]*)")?"google":0===t.search(ns+"bing.com")?"bing":0===t.search(ns+"yahoo.com")?"yahoo":0===t.search(ns+"duckduckgo.com")?"duckduckgo":null:null,r="yahoo"!=n?"q":"p",i={};if(!Yn(n)){i.$search_engine=n;var o=yn?ho(yn.referrer,r):"";o.length&&(i.ph_keyword=o)}return i}function us(){return navigator.language||navigator.userLanguage}function ds(){return(null==yn?void 0:yn.referrer)||"$direct"}function fs(e,t){var n=e?Hr([],rs,t||[]):[],r=null==xn?void 0:xn.href.substring(0,1e3);return{r:ds().substring(0,1e3),u:r?go(r,n,os):void 0}}function ps(e){var t,{r:n,u:r}=e,i={$referrer:n,$referring_domain:null==n?void 0:"$direct"==n?"$direct":null==(t=po(n))?void 0:t.host};if(r){i.$current_url=r;var o=po(r);i.$host=null==o?void 0:o.host,i.$pathname=null==o?void 0:o.pathname;var a=ls(r);Vr(i,a)}if(n){var s=cs(n);Vr(i,s)}return i}function hs(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(co){return}}function gs(){try{return(new Date).getTimezoneOffset()}catch(co){return}}var ms=Dr("[Web Vitals]"),vs=9e5;class bs{constructor(e){var t;this.Et=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.$t=()=>{clearTimeout(this.kt),0!==this.N.metrics.length&&(this._instance.capture("$web_vitals",this.N.metrics.reduce((e,t)=>zn({},e,{["$web_vitals_"+t.name+"_event"]:zn({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Pt=e=>{var t,n=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0);if(Un(n))ms.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var r=this.Tt();Un(r)||(Xn(null==e?void 0:e.name)||Xn(null==e?void 0:e.value)?ms.error("Invalid metric received",e):this.Rt&&e.value>=this.Rt?ms.error("Ignoring metric with value >= "+this.Rt,e):(this.N.url!==r&&(this.$t(),this.kt=setTimeout(this.$t,this.flushToCaptureTimeoutMs)),Un(this.N.url)&&(this.N.url=r),this.N.firstMetricTimestamp=Un(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.N.metrics.push(zn({},e,{$current_url:r,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.$t()))}},this.rt=()=>{var e,t,n,r,i=Cn.__PosthogExtensions__;Un(i)||Un(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),e&&t&&n&&r?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.Pt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.Pt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this.Pt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&r(this.Pt.bind(this)),this.P=!0):ms.error("web vitals callbacks not loaded - not starting")},this._instance=e,this.Et=!(null==(t=this._instance.persistence)||!t.props[si]),this.startIfEnabled()}get allowedMetrics(){var e,t,n=Vn(this._instance.config.capture_performance)?null==(e=this._instance.config.capture_performance)?void 0:e.web_vitals_allowed_metrics:void 0;return Un(n)?(null==(t=this._instance.persistence)?void 0:t.props[ci])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(Vn(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Rt(){var e=Vn(this._instance.config.capture_performance)&&Kn(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:vs;return 0<e&&e<=6e4?vs:e}get isEnabled(){var e=null==xn?void 0:xn.protocol;if("http:"!==e&&"https:"!==e)return ms.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Vn(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:Qn(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return Qn(t)?t:this.Et}startIfEnabled(){this.isEnabled&&!this.P&&(ms.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(e){var t=Vn(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=Vn(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[si]:t}),this._instance.persistence.register({[ci]:n})),this.Et=t,this.startIfEnabled()}it(e){var t,n;null!=(t=Cn.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks&&e(),null==(n=Cn.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"web-vitals",t=>{t?ms.error("failed to load script",t):e()})}Tt(){var e=pn?pn.location.href:void 0;if(e){var t=this._instance.config.mask_personal_data_properties,n=this._instance.config.custom_personal_data_properties,r=t?Hr([],rs,n||[]):[];return go(e,r,os)}ms.error("Could not determine current URL")}}var ys=Dr("[Heatmaps]");function xs(e){return Vn(e)&&"clientX"in e&&"clientY"in e&&Kn(e.clientX)&&Kn(e.clientY)}class ks{constructor(e){var t;this.rageclicks=new lo,this.Et=!1,this.P=!1,this.It=null,this.instance=e,this.Et=!(null==(t=this.instance.persistence)||!t.props[ri])}get flushIntervalMilliseconds(){var e=5e3;return Vn(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Un(this.instance.config.capture_heatmaps)?Un(this.instance.config.enable_heatmaps)?this.Et:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.P)return;ys.info("starting..."),this.Ct(),this.Ot()}else{var e;clearInterval(null!==(e=this.It)&&void 0!==e?e:void 0),this.Ft(),this.getAndClearBuffer()}}onRemoteConfig(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[ri]:t}),this.Et=t,this.startIfEnabled()}getAndClearBuffer(){var e=this.N;return this.N=void 0,e}Mt(e){this.At(e.originalEvent,"deadclick")}Ot(){this.It&&clearInterval(this.It),this.It="visible"===(null==yn?void 0:yn.visibilityState)?setInterval(this.Dt.bind(this),this.flushIntervalMilliseconds):null}Ct(){pn&&yn&&(this.jt=this.Dt.bind(this),Zr(pn,"beforeunload",this.jt),this.Lt=e=>this.At(e||(null==pn?void 0:pn.event)),Zr(yn,"click",this.Lt,{capture:!0}),this.Nt=e=>this.Ut(e||(null==pn?void 0:pn.event)),Zr(yn,"mousemove",this.Nt,{capture:!0}),this.zt=new Uo(this.instance,Vo,this.Mt.bind(this)),this.zt.startIfEnabled(),this.Ht=this.Ot.bind(this),Zr(yn,"visibilitychange",this.Ht),this.P=!0)}Ft(){var e;pn&&yn&&(this.jt&&pn.removeEventListener("beforeunload",this.jt),this.Lt&&yn.removeEventListener("click",this.Lt,{capture:!0}),this.Nt&&yn.removeEventListener("mousemove",this.Nt,{capture:!0}),this.Ht&&yn.removeEventListener("visibilitychange",this.Ht),clearTimeout(this.Bt),null==(e=this.zt)||e.stop(),this.P=!1)}qt(e,t){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),o=function(e,t,n){for(var r=e;r&&Oi(r)&&!Fi(r,"body");){if(r===n)return!1;if(An(t,null==pn?void 0:pn.getComputedStyle(r).position))return!0;r=Hi(r)}return!1}(Bi(e),["fixed","sticky"],i);return{x:e.clientX+(o?0:r),y:e.clientY+(o?0:n),target_fixed:o,type:t}}At(e,t){var n;if(void 0===t&&(t="click"),!Ii(e.target)&&xs(e)){var r=this.qt(e,t);null!=(n=this.rageclicks)&&n.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.Wt(zn({},r,{type:"rageclick"})),this.Wt(r)}}Ut(e){!Ii(e.target)&&xs(e)&&(clearTimeout(this.Bt),this.Bt=setTimeout(()=>{this.Wt(this.qt(e,"mousemove"))},500))}Wt(e){if(pn){var t=pn.location.href,n=this.instance.config.mask_personal_data_properties,r=this.instance.config.custom_personal_data_properties,i=n?Hr([],rs,r||[]):[],o=go(t,i,os);this.N=this.N||{},this.N[o]||(this.N[o]=[]),this.N[o].push(e)}}Dt(){this.N&&!Hn(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class ws{constructor(e){this._instance=e}doPageView(e,t){var n,r=this.Gt(e,t);return this.Vt={pathname:null!==(n=null==pn?void 0:pn.location.pathname)&&void 0!==n?n:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),r}doPageLeave(e){var t;return this.Gt(e,null==(t=this.Vt)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.Vt)?void 0:e.pageViewId}}Gt(e,t){var n=this.Vt;if(!n)return{$pageview_id:t};var r={$pageview_id:t,$prev_pageview_id:n.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:a,maxScrollY:s,maxContentHeight:l,lastContentY:c,maxContentY:u}=i;if(!(Un(o)||Un(a)||Un(s)||Un(l)||Un(c)||Un(u))){o=Math.ceil(o),a=Math.ceil(a),s=Math.ceil(s),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u);var d=o<=1?1:or(a/o,0,1,Nr),f=o<=1?1:or(s/o,0,1,Nr),p=l<=1?1:or(c/l,0,1,Nr),h=l<=1?1:or(u/l,0,1,Nr);r=Vr(r,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:s,$prev_pageview_max_scroll_percentage:f,$prev_pageview_last_content:c,$prev_pageview_last_content_percentage:p,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:h})}}return n.pathname&&(r.$prev_pageview_pathname=n.pathname),n.timestamp&&(r.$prev_pageview_duration=(e.getTime()-n.timestamp.getTime())/1e3),r}}var Ss=Uint8Array,_s=Uint16Array,Cs=Uint32Array,Ps=new Ss([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Es=new Ss([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Rs=new Ss([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),zs=function(e,t){for(var n=new _s(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new Cs(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},Ts=zs(Ps,2),Is=Ts[0],Os=Ts[1];Is[28]=258,Os[258]=28;for(var Fs=zs(Es,0)[1],As=new _s(32768),Ms=0;Ms<32768;++Ms){var Ns=(43690&Ms)>>>1|(21845&Ms)<<1;Ns=(61680&(Ns=(52428&Ns)>>>2|(13107&Ns)<<2))>>>4|(3855&Ns)<<4,As[Ms]=((65280&Ns)>>>8|(255&Ns)<<8)>>>1}var Ds=function(e,t,n){for(var r=e.length,i=0,o=new _s(t);i<r;++i)++o[e[i]-1];var a,s=new _s(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;for(a=new _s(r),i=0;i<r;++i)a[i]=As[s[e[i]-1]++]>>>15-e[i];return a},Ls=new Ss(288);for(Ms=0;Ms<144;++Ms)Ls[Ms]=8;for(Ms=144;Ms<256;++Ms)Ls[Ms]=9;for(Ms=256;Ms<280;++Ms)Ls[Ms]=7;for(Ms=280;Ms<288;++Ms)Ls[Ms]=8;var js=new Ss(32);for(Ms=0;Ms<32;++Ms)js[Ms]=5;var $s=Ds(Ls,9),Bs=Ds(js,5),Ws=function(e){return(e/8|0)+(7&e&&1)},Vs=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof _s?_s:e instanceof Cs?Cs:Ss)(n-t);return r.set(e.subarray(t,n)),r},Hs=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},Us=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},qs=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new Ss(0),0];if(1==i){var a=new Ss(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=n[n[c].f<n[d].f?c++:d++],l=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:s.f+l.f,l:s,r:l};var f=o[0].s;for(r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var p=new _s(f+1),h=Gs(n[u-1],p,0);if(h>t){r=0;var g=0,m=h-t,v=1<<m;for(o.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});r<i;++r){var b=o[r].s;if(!(p[b]>t))break;g+=v-(1<<h-p[b]),p[b]=t}for(g>>>=m;g>0;){var y=o[r].s;p[y]<t?g-=1<<t-p[y]++-1:++r}for(;r>=0&&g;--r){var x=o[r].s;p[x]==t&&(--p[x],++g)}h=t}return[new Ss(p),h]},Gs=function(e,t,n){return-1==e.s?Math.max(Gs(e.l,t,n+1),Gs(e.r,t,n+1)):t[e.s]=n},Ys=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new _s(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},Xs=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Ks=function(e,t,n){var r=n.length,i=Ws(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},Qs=function(e,t,n,r,i,o,a,s,l,c,u){Hs(t,u++,n),++i[256];for(var d=qs(i,15),f=d[0],p=d[1],h=qs(o,15),g=h[0],m=h[1],v=Ys(f),b=v[0],y=v[1],x=Ys(g),k=x[0],w=x[1],S=new _s(19),_=0;_<b.length;++_)S[31&b[_]]++;for(_=0;_<k.length;++_)S[31&k[_]]++;for(var C=qs(S,7),P=C[0],E=C[1],R=19;R>4&&!P[Rs[R-1]];--R);var z,T,I,O,F=c+5<<3,A=Xs(i,Ls)+Xs(o,js)+a,M=Xs(i,f)+Xs(o,g)+a+14+3*R+Xs(S,P)+(2*S[16]+3*S[17]+7*S[18]);if(F<=A&&F<=M)return Ks(t,u,e.subarray(l,l+c));if(Hs(t,u,1+(M<A)),u+=2,M<A){z=Ds(f,p),T=f,I=Ds(g,m),O=g;var N=Ds(P,E);for(Hs(t,u,y-257),Hs(t,u+5,w-1),Hs(t,u+10,R-4),u+=14,_=0;_<R;++_)Hs(t,u+3*_,P[Rs[_]]);u+=3*R;for(var D=[b,k],L=0;L<2;++L){var j=D[L];for(_=0;_<j.length;++_){var $=31&j[_];Hs(t,u,N[$]),u+=P[$],$>15&&(Hs(t,u,j[_]>>>5&127),u+=j[_]>>>12)}}}else z=$s,T=Ls,I=Bs,O=js;for(_=0;_<s;++_)if(r[_]>255){$=r[_]>>>18&31,Us(t,u,z[$+257]),u+=T[$+257],$>7&&(Hs(t,u,r[_]>>>23&31),u+=Ps[$]);var B=31&r[_];Us(t,u,I[B]),u+=O[B],B>3&&(Us(t,u,r[_]>>>5&8191),u+=Es[B])}else Us(t,u,z[r[_]]),u+=T[r[_]];return Us(t,u,z[256]),u+T[256]},Zs=new Cs([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Js=function(){for(var e=new Cs(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),el=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};var tl=!!wn||!!kn,nl="text/plain",rl=function(e,t,n){var r;void 0===n&&(n=!0);var[i,o]=e.split("?"),a=zn({},t),s=null!==(r=null==o?void 0:o.split("&").map(e=>{var t,[r,i]=e.split("="),o=n&&null!==(t=a[r])&&void 0!==t?t:i;return delete a[r],r+"="+o}))&&void 0!==r?r:[],l=function(e,t){var n,r;void 0===t&&(t="&");var i=[];return Wr(e,function(e,t){Un(e)||Un(t)||"undefined"===t||(n=encodeURIComponent(e instanceof File?e.name:e.toString()),r=encodeURIComponent(t),i[i.length]=r+"="+n)}),i.join(t)}(a);return l&&s.push(l),i+"?"+s.join("&")},il=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),ol=e=>{var t,{data:n,compression:r}=e;if(n){if(r===fo.GZipJS){var i=function(e,t){void 0===t&&(t={});var n=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Js[255&n^t[r]]^n>>>8;e=n},d:function(){return 4294967295^e}}}(),r=e.length;n.p(e);var i,o=function(e,t,n){return function(e,t,n,r){var i=e.length,o=new Ss(r+i+5*(1+Math.floor(i/7e3))+8),a=o.subarray(r,o.length-8),s=0;if(!t||i<8)for(var l=0;l<=i;l+=65535){var c=l+65535;c<i?s=Ks(a,s,e.subarray(l,c)):(a[l]=!0,s=Ks(a,s,e.subarray(l,i)))}else{for(var u=Zs[t-1],d=u>>>13,f=8191&u,p=(1<<n)-1,h=new _s(32768),g=new _s(p+1),m=Math.ceil(n/3),v=2*m,b=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<v)&p},y=new Cs(25e3),x=new _s(288),k=new _s(32),w=0,S=0,_=(l=0,0),C=0,P=0;l<i;++l){var E=b(l),R=32767&l,z=g[E];if(h[R]=z,g[E]=R,C<=l){var T=i-l;if((w>7e3||_>24576)&&T>423){s=Qs(e,a,0,y,x,k,S,_,P,l-P,s),_=w=S=0,P=l;for(var I=0;I<286;++I)x[I]=0;for(I=0;I<30;++I)k[I]=0}var O=2,F=0,A=f,M=R-z&32767;if(T>2&&E==b(l-M))for(var N=Math.min(d,T)-1,D=Math.min(32767,l),L=Math.min(258,T);M<=D&&--A&&R!=z;){if(e[l+O]==e[l+O-M]){for(var j=0;j<L&&e[l+j]==e[l+j-M];++j);if(j>O){if(O=j,F=M,j>N)break;var $=Math.min(M,j-2),B=0;for(I=0;I<$;++I){var W=l-M+I+32768&32767,V=W-h[W]+32768&32767;V>B&&(B=V,z=W)}}}M+=(R=z)-(z=h[R])+32768&32767}if(F){y[_++]=268435456|Os[O]<<18|Fs[F];var H=31&Os[O],U=31&Fs[F];S+=Ps[H]+Es[U],++x[257+H],++k[U],C=l+O,++w}else y[_++]=e[l],++x[e[l]]}}s=Qs(e,a,!0,y,x,k,S,_,P,l-P,s)}return Vs(o,0,r+Ws(s)+8)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n)}(e,t,10+((i=t).filename&&i.filename.length+1||0)),a=o.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&el(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(o,t),el(o,a-8,n.d()),el(o,a-4,r),o}(function(e){var t=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=new Ss(e.length+(e.length>>>1)),r=0,i=function(e){n[r++]=e},o=0;o<t;++o){if(r+5>n.length){var a=new Ss(r+8+(t-o<<1));a.set(n),n=a}var s=e.charCodeAt(o);s<128?i(s):s<2048?(i(192|s>>>6),i(128|63&s)):s>55295&&s<57344?(i(240|(s=65536+(1047552&s)|1023&e.charCodeAt(++o))>>>18),i(128|s>>>12&63),i(128|s>>>6&63),i(128|63&s)):(i(224|s>>>12),i(128|s>>>6&63),i(128|63&s))}return Vs(n,0,r)}(il(n)),{mtime:0}),o=new Blob([i],{type:nl});return{contentType:nl,body:o,estimatedSize:o.size}}if(r===fo.Base64){var a=function(e){var t,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=function(e){var t,n,r,i,o="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=e.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),Yn(s)||(n>t&&(o+=e.substring(t,n)),o+=s,t=n=i+1)}return n>t&&(o+=e.substring(t,e.length)),o}(e);do{t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,u[l++]=a.charAt(t)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c}(il(n)),s=(t=a,"data="+encodeURIComponent("string"==typeof t?t:il(t)));return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var l=il(n);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},al=[];kn&&al.push({transport:"fetch",method:e=>{var t,n,{contentType:r,body:i,estimatedSize:o}=null!==(t=ol(e))&&void 0!==t?t:{},a=new Headers;Wr(e.headers,function(e,t){a.append(t,e)}),r&&a.append("Content-Type",r);var s=e.url,l=null;if(Sn){var c=new Sn;l={signal:c.signal,timeout:setTimeout(()=>c.abort(),e.timeout)}}kn(s,zn({method:(null==e?void 0:e.method)||"GET",headers:a,keepalive:"POST"===e.method&&(o||0)<52428.8,body:i,signal:null==(n=l)?void 0:n.signal},e.fetchOptions)).then(t=>t.text().then(n=>{var r={statusCode:t.status,text:n};if(200===t.status)try{r.json=JSON.parse(n)}catch(i){Nr.error(i)}null==e.callback||e.callback(r)})).catch(t=>{Nr.error(t),null==e.callback||e.callback({statusCode:0,text:t})}).finally(()=>l?clearTimeout(l.timeout):null)}}),wn&&al.push({transport:"XHR",method:e=>{var t,n=new wn;n.open(e.method||"GET",e.url,!0);var{contentType:r,body:i}=null!==(t=ol(e))&&void 0!==t?t:{};Wr(e.headers,function(e,t){n.setRequestHeader(t,e)}),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),e.disableXHRCredentials||(n.withCredentials=!0),n.onreadystatechange=()=>{if(4===n.readyState){var t={statusCode:n.status,text:n.responseText};if(200===n.status)try{t.json=JSON.parse(n.responseText)}catch(r){}null==e.callback||e.callback(t)}},n.send(i)}}),null!=bn&&bn.sendBeacon&&al.push({transport:"sendBeacon",method:e=>{var t=rl(e.url,{beacon:"1"});try{var n,{contentType:r,body:i}=null!==(n=ol(e))&&void 0!==n?n:{},o="string"==typeof i?new Blob([i],{type:r}):i;bn.sendBeacon(t,o)}catch(a){}}});var sl=function(e,t){if(!function(){return!0}())return!1;try{return new RegExp(t).test(e)}catch(n){return!1}};function ll(e,t,n){return il({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var cl={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>sl(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!sl(t,e))),icontains:(e,t)=>t.map(ul).some(t=>e.map(ul).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(ul).every(t=>e.map(ul).every(e=>!t.includes(e)))},ul=e=>e.toLowerCase(),dl=Dr("[Error tracking]");class fl{constructor(e){var t,n;this.Jt=[],this.Kt=new Sr([new _r,new Ar,new Pr,new Cr,new Or,new Ir,new Rr,new Fr],[br,kr]),this._instance=e,this.Jt=null!==(t=null==(n=this._instance.persistence)?void 0:n.get_property(oi))&&void 0!==t?t:[]}onRemoteConfig(e){var t,n,r,i=null!==(t=null==(n=e.errorTracking)?void 0:n.suppressionRules)&&void 0!==t?t:[],o=null==(r=e.errorTracking)?void 0:r.captureExtensionExceptions;this.Jt=i,this._instance.persistence&&this._instance.persistence.register({[oi]:this.Jt,[ai]:o})}get Yt(){var e,t=!!this._instance.get_property(ai),n=this._instance.config.error_tracking.captureExtensionExceptions;return null!==(e=null!=n?n:t)&&void 0!==e&&e}buildProperties(e,t){return this.Kt.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}sendExceptionEvent(e){var t=e.$exception_list;if(this.Xt(t)){if(this.Qt(t))return void dl.info("Skipping exception capture because a suppression rule matched");if(!this.Yt&&this.Zt(t))return void dl.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ti(t))return void dl.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent"})}Qt(e){if(0===e.length)return!1;var t=e.reduce((e,t)=>{var{type:n,value:r}=t;return qn(n)&&n.length>0&&e.$exception_types.push(n),qn(r)&&r.length>0&&e.$exception_values.push(r),e},{$exception_types:[],$exception_values:[]});return this.Jt.some(e=>{var n=e.values.map(e=>{var n,r=cl[e.operator],i=Bn(e.value)?e.value:[e.value],o=null!==(n=t[e.key])&&void 0!==n?n:[];return i.length>0&&r(i,o)});return"OR"===e.type?n.some(Boolean):n.every(Boolean)})}Zt(e){return e.flatMap(e=>{var t,n;return null!==(t=null==(n=e.stacktrace)?void 0:n.frames)&&void 0!==t?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}ti(e){if(e.length>0){var t,n,r,i,o=null!==(t=null==(n=e[0].stacktrace)?void 0:n.frames)&&void 0!==t?t:[],a=o[o.length-1];return null!==(r=null==a||null==(i=a.filename)?void 0:i.includes("posthog.com/static"))&&void 0!==r&&r}return!1}Xt(e){return!Xn(e)&&Bn(e)}}var pl=Dr("[FeatureFlags]"),hl="$active_feature_flags",gl="$override_feature_flags",ml="$feature_flag_payloads",vl="$override_feature_flag_payloads",bl="$feature_flag_request_id",yl=e=>{var t={};for(var[n,r]of Ur(e||{}))r&&(t[n]=r);return t},xl=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class kl{constructor(e){this.ii=!1,this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this._instance=e,this.featureFlagEventHandlers=[]}li(){var e=this._instance.config.evaluation_environments;return null!=e&&e.length?e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||pl.error("Invalid evaluation environment found:",e,"Expected non-empty string"),t}):[]}ui(){return this.li().length>0}flags(){if(this._instance.config.__preview_remote_config)this.oi=!0;else{var e=!this.hi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.di({disableFlags:e})}}get hasLoadedFlags(){return this.ei}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(gi),t=this._instance.get_property(gl),n=this._instance.get_property(vl);if(!n&&!t)return e||{};var r=Vr({},e||{}),i=[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])];for(var o of i){var a,s,l=r[o],c=null==t?void 0:t[o],u=Un(c)?null!==(a=null==l?void 0:l.enabled)&&void 0!==a&&a:!!c,d=Un(c)?l.variant:"string"==typeof c?c:void 0,f=null==n?void 0:n[o],p=zn({},l,{enabled:u,variant:u?null!=d?d:null==l?void 0:l.variant:void 0});u!==(null==l?void 0:l.enabled)&&(p.original_enabled=null==l?void 0:l.enabled),d!==(null==l?void 0:l.variant)&&(p.original_variant=null==l?void 0:l.variant),f&&(p.metadata=zn({},null==l?void 0:l.metadata,{payload:f,original_payload:null==l||null==(s=l.metadata)?void 0:s.payload})),r[o]=p}return this.ii||(pl.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:n,finalDetails:r}),this.ii=!0),r}getFlagVariants(){var e=this._instance.get_property(pi),t=this._instance.get_property(gl);if(!t)return e||{};for(var n=Vr({},e),r=Object.keys(t),i=0;i<r.length;i++)n[r[i]]=t[r[i]];return this.ii||(pl.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this.ii=!0),n}getFlagPayloads(){var e=this._instance.get_property(ml),t=this._instance.get_property(vl);if(!t)return e||{};for(var n=Vr({},e||{}),r=Object.keys(t),i=0;i<r.length;i++)n[r[i]]=t[r[i]];return this.ii||(pl.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),this.ii=!0),n}reloadFeatureFlags(){this.si||this._instance.config.advanced_disable_feature_flags||this.hi||(this.hi=setTimeout(()=>{this.di()},5))}vi(){clearTimeout(this.hi),this.hi=void 0}ensureFlagsLoaded(){this.ei||this.ri||this.hi||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.si=e}di(e){var t;if(this.vi(),!this._instance.M())if(this.ri)this.ni=!0;else{var n={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:zn({},(null==(t=this._instance.persistence)?void 0:t.get_initial_props())||{},this._instance.get_property(mi)||{}),group_properties:this._instance.get_property(vi)};(null!=e&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.ui()&&(n.evaluation_environments=this.li());var r=this._instance.config.__preview_remote_config,i=r?"/flags/?v=2":"/flags/?v=2&config=true",o=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",a=this._instance.requestRouter.endpointFor("api",i+o);r&&(n.timezone=hs()),this.ri=!0,this._instance.ci({method:"POST",url:a,data:n,compression:this._instance.config.disable_compression?void 0:fo.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:e=>{var t,r,i=!0;if(200===e.statusCode&&(this.ni||(this.$anon_distinct_id=void 0),i=!1),this.ri=!1,this.oi||(this.oi=!0,this._instance.fi(null!==(r=e.json)&&void 0!==r?r:{})),!n.disable_flags||this.ni)if(this.ai=!i,e.json&&null!=(t=e.json.quotaLimited)&&t.includes(xl.FeatureFlags))pl.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var o;n.disable_flags||this.receivedFeatureFlags(null!==(o=e.json)&&void 0!==o?o:{},i),this.ni&&(this.ni=!1,this.di())}}})}}getFeatureFlag(e,t){if(void 0===t&&(t={}),this.ei||this.getFlags()&&this.getFlags().length>0){var n=this.getFlagVariants()[e],r=""+n,i=this._instance.get_property(bl)||void 0,o=this._instance.get_property(xi)||{};if((t.send_event||!("send_event"in t))&&(!(e in o)||!o[e].includes(r))){var a,s,l,c,u,d,f,p,h;Bn(o[e])?o[e].push(r):o[e]=[r],null==(a=this._instance.persistence)||a.register({[xi]:o});var g=this.getFeatureFlagDetails(e),m={$feature_flag:e,$feature_flag_response:n,$feature_flag_payload:this.getFeatureFlagPayload(e)||null,$feature_flag_request_id:i,$feature_flag_bootstrapped_response:(null==(s=this._instance.config.bootstrap)||null==(s=s.featureFlags)?void 0:s[e])||null,$feature_flag_bootstrapped_payload:(null==(l=this._instance.config.bootstrap)||null==(l=l.featureFlagPayloads)?void 0:l[e])||null,$used_bootstrap_value:!this.ai};Un(null==g||null==(c=g.metadata)?void 0:c.version)||(m.$feature_flag_version=g.metadata.version);var v,b=null!==(u=null==g||null==(d=g.reason)?void 0:d.description)&&void 0!==u?u:null==g||null==(f=g.reason)?void 0:f.code;b&&(m.$feature_flag_reason=b),null!=g&&null!=(p=g.metadata)&&p.id&&(m.$feature_flag_id=g.metadata.id),Un(null==g?void 0:g.original_variant)&&Un(null==g?void 0:g.original_enabled)||(m.$feature_flag_original_response=Un(g.original_variant)?g.original_enabled:g.original_variant),null!=g&&null!=(h=g.metadata)&&h.original_payload&&(m.$feature_flag_original_payload=null==g||null==(v=g.metadata)?void 0:v.original_payload),this._instance.capture("$feature_flag_called",m)}return n}pl.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){return this.getFlagPayloads()[e]}getRemoteConfigPayload(e,t){var n=this._instance.config.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.ui()&&(r.evaluation_environments=this.li()),this._instance.ci({method:"POST",url:this._instance.requestRouter.endpointFor("api","/flags/?v=2&config=true"),data:r,compression:this._instance.config.disable_compression?void 0:fo.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:n=>{var r,i=null==(r=n.json)?void 0:r.featureFlagPayloads;t((null==i?void 0:i[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),this.ei||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return Un(n)?void 0:!!n}pl.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t){if(this._instance.persistence){this.ei=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads(),i=this.getFlagsWithDetails();!function(e,t,n,r,i){void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i={});var o=(e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map(e=>{var n;return[e,null!==(n=t[e].variant)&&void 0!==n?n:t[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter(e=>t[e].enabled).filter(e=>{var n;return null==(n=t[e].metadata)?void 0:n.payload}).map(e=>{var n;return[e,null==(n=t[e].metadata)?void 0:n.payload]}))):pl.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e})(e),a=o.flags,s=o.featureFlags,l=o.featureFlagPayloads;if(s){var c=e.requestId;if(Bn(s)){pl.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var u={};if(s)for(var d=0;d<s.length;d++)u[s[d]]=!0;t&&t.register({[hl]:s,[pi]:u})}else{var f=s,p=l,h=a;e.errorsWhileComputingFlags&&(f=zn({},n,f),p=zn({},r,p),h=zn({},i,h)),t&&t.register(zn({[hl]:Object.keys(yl(f)),[pi]:f||{},[ml]:p||{},[gi]:h||{}},c?{[bl]:c}:{}))}}}(e,this._instance.persistence,n,r,i),this.pi(t)}}override(e,t){void 0===t&&(t=!1),pl.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return pl.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this._instance.persistence.unregister(gl),this._instance.persistence.unregister(vl),void this.pi();if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){var t,n=e;if(this.ii=Boolean(null!==(t=n.suppressWarning)&&void 0!==t&&t),"flags"in n)if(!1===n.flags)this._instance.persistence.unregister(gl);else if(n.flags)if(Bn(n.flags)){for(var r={},i=0;i<n.flags.length;i++)r[n.flags[i]]=!0;this._instance.persistence.register({[gl]:r})}else this._instance.persistence.register({[gl]:n.flags});return"payloads"in n&&(!1===n.payloads?this._instance.persistence.unregister(vl):n.payloads&&this._instance.persistence.register({[vl]:n.payloads})),void this.pi()}this.pi()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ei){var{flags:t,flagVariants:n}=this.gi();e(t,n)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var r,i=(this._instance.get_property(hi)||[]).find(t=>t.flagKey===e),o={["$feature_enrollment/"+e]:t},a={$feature_flag:e,$feature_enrollment:t,$set:o};i&&(a.$early_access_feature_name=i.name),n&&(a.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",a),this.setPersonPropertiesForFlags(o,!1);var s=zn({},this.getFlagVariants(),{[e]:t});null==(r=this._instance.persistence)||r.register({[hl]:Object.keys(yl(s)),[pi]:s}),this.pi()}getEarlyAccessFeatures(e,t,n){void 0===t&&(t=!1);var r=this._instance.get_property(hi),i=n?"&"+n.map(e=>"stage="+e).join("&"):"";if(r&&!t)return e(r);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+i),method:"GET",callback:t=>{var n,r;if(t.json){var i=t.json.earlyAccessFeatures;return null==(n=this._instance.persistence)||n.unregister(hi),null==(r=this._instance.persistence)||r.register({[hi]:i}),e(i)}}})}gi(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,n)=>(e[n]=t[n],e),{})}}pi(e){var{flags:t,flagVariants:n}=this.gi();this.featureFlagEventHandlers.forEach(r=>r(t,n,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var n=this._instance.get_property(mi)||{};this._instance.register({[mi]:zn({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(mi)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var n=this._instance.get_property(vi)||{};0!==Object.keys(n).length&&Object.keys(n).forEach(t=>{n[t]=zn({},n[t],e[t]),delete e[t]}),this._instance.register({[vi]:zn({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(vi)||{};this._instance.register({[vi]:zn({},t,{[e]:{}})})}else this._instance.unregister(vi)}reset(){this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this.$anon_distinct_id=void 0,this.vi(),this.ii=!1}}var wl=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Sl{constructor(e,t){var n,r;this.C=e,this.props={},this.mi=!1,this.yi=(r="",(n=e).token&&(r=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+r+"_posthog"),this.Y=this.bi(e),this.load(),e.debug&&Nr.info("Persistence loaded",e.persistence,zn({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.wi}bi(e){-1===wl.indexOf(e.persistence.toLowerCase())&&(Nr.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&Fo.H()?Fo:"localstorage+cookie"===t&&Mo.H()?Mo:"sessionstorage"===t&&jo.H()?jo:"memory"===t?Do:"cookie"===t?Io:Mo.H()?Mo:Io}properties(){var e={};return Wr(this.props,function(t,n){if(n===pi&&Vn(t))for(var r=Object.keys(t),i=0;i<r.length;i++)e["$feature/"+r[i]]=t[r[i]];else a=n,s=!1,(Yn(o=Ti)?s:vn&&o.indexOf===vn?-1!=o.indexOf(a):(Wr(o,function(e){if(s||(s=e===a))return $r}),s))||(e[n]=t);var o,a,s}),e}load(){if(!this.wi){var e=this.Y.W(this.yi);e&&(this.props=Vr({},e))}}save(){this.wi||this.Y.G(this.yi,this.props,this.xi,this.Si,this.Ei,this.C.debug)}remove(){this.Y.V(this.yi,!1),this.Y.V(this.yi,!0)}clear(){this.remove(),this.props={}}register_once(e,t,n){if(Vn(e)){Un(t)&&(t="None"),this.xi=Un(n)?this.$i:n;var r=!1;if(Wr(e,(e,n)=>{this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e,r=!0)}),r)return this.save(),!0}return!1}register(e,t){if(Vn(e)){this.xi=Un(t)?this.$i:t;var n=!1;if(Wr(e,(t,r)=>{e.hasOwnProperty(r)&&this.props[r]!==t&&(this.props[r]=t,n=!0)}),n)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.mi){var e=ss(this.C.custom_campaign_params,this.C.mask_personal_data_properties,this.C.custom_personal_data_properties);Hn(Yr(e))||this.register(e),this.mi=!0}}update_search_keyword(){var e;this.register((e=null==yn?void 0:yn.referrer)?cs(e):{})}update_referrer_info(){var e;this.register_once({$referrer:ds(),$referring_domain:null!=yn&&yn.referrer&&(null==(e=po(yn.referrer))?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[_i]||this.props[Ci]||this.register_once({[Pi]:fs(this.C.mask_personal_data_properties,this.C.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Wr([Ci,_i],t=>{var n=this.props[t];n&&Wr(n,function(t,n){e["$initial_"+Nn(n)]=t})});var t,n,r=this.props[Pi];if(r){var i=(t=ps(r),n={},Wr(t,function(e,t){n["$initial_"+Nn(t)]=e}),n);Vr(e,i)}return e}safe_merge(e){return Wr(this.props,function(t,n){n in e||(e[n]=t)}),e}update_config(e,t,n){if(this.$i=this.xi=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!n),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence){var r=this.bi(e),i=this.props;this.clear(),this.Y=r,this.props=i,this.save()}}set_disabled(e){this.wi=e,this.wi?this.remove():this.save()}set_cross_subdomain(e){e!==this.Si&&(this.Si=e,this.remove(),this.save())}set_secure(e){e!==this.Ei&&(this.Ei=e,this.remove(),this.save())}set_event_timer(e,t){var n=this.props[ti]||{};n[e]=t,this.props[ti]=n,this.save()}remove_event_timer(e){var t=(this.props[ti]||{})[e];return Un(t)||(delete this.props[ti][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}!function(e){e.Button="button",e.Tab="tab",e.Selector="selector"}({}),function(e){e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger"}({});var _l=function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e.ExternalSurvey="external_survey",e}({});!function(e){e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link"}({}),function(e){e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question"}({}),function(e){e.Once="once",e.Recurring="recurring",e.Always="always"}({});var Cl=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e}({}),Pl=function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e}({}),El=function(e){return e.Popover="popover",e.Inline="inline",e}({});class Rl{constructor(){this.ki={},this.ki={}}on(e,t){return this.ki[e]||(this.ki[e]=[]),this.ki[e].push(t),()=>{this.ki[e]=this.ki[e].filter(e=>e!==t)}}emit(e,t){for(var n of this.ki[e]||[])n(t);for(var r of this.ki["*"]||[])r(e,t)}}class zl{constructor(e){this.Pi=new Rl,this.Ti=(e,t)=>this.Ri(e,t)&&this.Ii(e,t)&&this.Ci(e,t),this.Ri=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.Oi=new Set,this.Fi=new Set}init(){var e,t;Un(null==(e=this._instance)?void 0:e.Mi)||null==(t=this._instance)||t.Mi((e,t)=>{this.on(e,t)})}register(e){var t,n;if(!Un(null==(t=this._instance)?void 0:t.Mi)&&(e.forEach(e=>{var t,n;null==(t=this.Fi)||t.add(e),null==(n=e.steps)||n.forEach(e=>{var t;null==(t=this.Oi)||t.add((null==e?void 0:e.event)||"")})}),null!=(n=this._instance)&&n.autocapture)){var r,i=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&i.add(null==e?void 0:e.selector)})}),null==(r=this._instance)||r.autocapture.setElementSelectors(i)}}on(e,t){var n;null!=t&&0!=e.length&&(this.Oi.has(e)||this.Oi.has(null==t?void 0:t.event))&&this.Fi&&(null==(n=this.Fi)?void 0:n.size)>0&&this.Fi.forEach(e=>{this.Ai(t,e)&&this.Pi.emit("actionCaptured",e.name)})}Di(e){this.onAction("actionCaptured",t=>e(t))}Ai(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var n of t.steps)if(this.Ti(e,n))return!0;return!1}onAction(e,t){return this.Pi.on(e,t)}Ii(e,t){if(null!=t&&t.url){var n,r=null==e||null==(n=e.properties)?void 0:n.$current_url;if(!r||"string"!=typeof r)return!1;if(!zl.ji(r,null==t?void 0:t.url,(null==t?void 0:t.url_matching)||"contains"))return!1}return!0}static ji(e,t,n){switch(n){case"regex":return!!pn&&sl(e,t);case"exact":return t===e;case"contains":var r=zl.Li(t).replace(/_/g,".").replace(/%/g,".*");return sl(e,r);default:return!1}}static Li(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Ci(e,t){if((null!=t&&t.href||null!=t&&t.tag_name||null!=t&&t.text)&&!this.Ni(e).some(e=>!(null!=t&&t.href&&!zl.ji(e.href||"",null==t?void 0:t.href,(null==t?void 0:t.href_matching)||"exact")||null!=t&&t.tag_name&&e.tag_name!==(null==t?void 0:t.tag_name)||null!=t&&t.text&&!zl.ji(e.text||"",null==t?void 0:t.text,(null==t?void 0:t.text_matching)||"exact")&&!zl.ji(e.$el_text||"",null==t?void 0:t.text,(null==t?void 0:t.text_matching)||"exact"))))return!1;if(null!=t&&t.selector){var n,r=null==e||null==(n=e.properties)?void 0:n.$element_selectors;if(!r)return!1;if(!r.includes(null==t?void 0:t.selector))return!1}return!0}Ni(e){return null==(null==e?void 0:e.properties.$elements)?[]:null==e?void 0:e.properties.$elements}}var Tl=Dr("[Surveys]"),Il="seenSurvey_",Ol=(e,t)=>{var n="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(n="$survey_"+t+"/"+e.id+"/"+e.current_iteration),n},Fl=e=>{var t=""+Il+e.id;return e.current_iteration&&e.current_iteration>0&&(t=""+Il+e.id+"_"+e.current_iteration),t},Al=[_l.Popover,_l.Widget,_l.API],Ml={ignoreConditions:!1,ignoreDelay:!1,displayType:El.Popover};class Nl{constructor(e){this._instance=e,this.Ui=new Map,this.zi=new Map}register(e){var t;Un(null==(t=this._instance)?void 0:t.Mi)||(this.Hi(e),this.Bi(e))}Bi(e){var t=e.filter(e=>{var t,n;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0});0!==t.length&&(null==this.qi&&(this.qi=new zl(this._instance),this.qi.init(),this.qi.Di(e=>{this.onAction(e)})),t.forEach(e=>{var t,n,r,i,o;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(n=e.conditions)&&null!=(n=n.actions)&&n.values&&(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0&&(null==(i=this.qi)||i.register(e.conditions.actions.values),null==(o=e.conditions)||null==(o=o.actions)||null==(o=o.values)||o.forEach(t=>{if(t&&t.name){var n=this.zi.get(t.name);n&&n.push(e.id),this.zi.set(t.name,n||[e.id])}}))}))}Hi(e){var t;0!==e.filter(e=>{var t,n;return(null==(t=e.conditions)?void 0:t.events)&&(null==(n=e.conditions)||null==(n=n.events)||null==(n=n.values)?void 0:n.length)>0}).length&&(null==(t=this._instance)||t.Mi((e,t)=>{this.onEvent(e,t)}),e.forEach(e=>{var t;null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||t.forEach(t=>{if(t&&t.name){var n=this.Ui.get(t.name);n&&n.push(e.id),this.Ui.set(t.name,n||[e.id])}})}))}onEvent(e,t){var n,r,i=(null==(n=this._instance)||null==(n=n.persistence)?void 0:n.props[yi])||[];if(Cl.SHOWN===e&&t&&i.length>0){var o;Tl.info("survey event matched, removing survey from activated surveys",{event:e,eventPayload:t,existingActivatedSurveys:i});var a=null==t||null==(o=t.properties)?void 0:o.$survey_id;if(a){var s=i.indexOf(a);s>=0&&(i.splice(s,1),this.Wi(i))}}else if(this.Ui.has(e)){Tl.info("survey event name matched",{event:e,eventPayload:t,surveys:this.Ui.get(e)});var l=[];null==(r=this._instance)||r.getSurveys(t=>{l=t.filter(t=>{var n;return null==(n=this.Ui.get(e))?void 0:n.includes(t.id)})});var c=l.filter(n=>{var r,i=null==(r=n.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.find(t=>t.name===e);return!!i&&(!i.propertyFilters||Object.entries(i.propertyFilters).every(e=>{var n,[r,i]=e,o=null==t||null==(n=t.properties)?void 0:n[r];if(Un(o)||Yn(o))return!1;var a=[String(o)],s=cl[i.operator];return s?s(i.values,a):(Tl.warn("Unknown property comparison operator: "+i.operator),!1)}))});this.Wi(i.concat(c.map(e=>e.id)||[]))}}onAction(e){var t,n=(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[yi])||[];this.zi.has(e)&&this.Wi(n.concat(this.zi.get(e)||[]))}Wi(e){var t;Tl.info("updating activated surveys",{activatedSurveys:e}),null==(t=this._instance)||null==(t=t.persistence)||t.register({[yi]:[...new Set(e)]})}getSurveys(){var e;return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[yi])||[]}getEventToSurveys(){return this.Ui}Gi(){return this.qi}}class Dl{constructor(e){this.Vi=void 0,this._surveyManager=null,this.Ji=!1,this.Ki=!1,this.Yi=[],this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var t=e.surveys;if(Xn(t))return Tl.warn("Flags not loaded yet. Not loading surveys.");var n=Bn(t);this.Vi=n?t.length>0:t,Tl.info("flags response received, isSurveysEnabled: "+this.Vi),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(null!=n&&n.startsWith(Il)||null!=n&&n.startsWith("inProgressSurvey_"))&&e.push(n)}e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager)if(this.Ki)Tl.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Tl.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())Tl.info("Not loading surveys in cookieless mode without consent.");else{var e=null==Cn?void 0:Cn.__PosthogExtensions__;if(e){if(!Un(this.Vi)||this._instance.config.advanced_enable_surveys){var t=this.Vi||this._instance.config.advanced_enable_surveys;this.Ki=!0;try{var n=e.generateSurveys;if(n)return void this.Xi(n,t);var r=e.loadExternalDependency;if(!r)return void this.Qi("PostHog loadExternalDependency extension not found.");r(this._instance,"surveys",n=>{n||!e.generateSurveys?this.Qi("Could not load surveys script",n):this.Xi(e.generateSurveys,t)})}catch(i){throw this.Qi("Error initializing surveys",i),i}finally{this.Ki=!1}}}else Tl.error("PostHog Extensions not found.")}}Xi(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Nl(this._instance),Tl.info("Surveys loaded successfully"),this.Zi({isLoaded:!0})}Qi(e,t){Tl.error(e,t),this.Zi({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Yi.push(e),this._surveyManager&&this.Zi({isLoaded:!0}),()=>{this.Yi=this.Yi.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this._instance.config.disable_surveys)return Tl.info("Disabled. Not loading surveys."),e([]);var n=this._instance.get_property(bi);if(n&&!t)return e(n,{isLoaded:!0});if(this.Ji)return e([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.Ji=!0,this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:t=>{var n;this.Ji=!1;var r=t.statusCode;if(200!==r||!t.json){var i="Surveys API could not be loaded, status: "+r;return Tl.error(i),e([],{isLoaded:!1,error:i})}var o,a=t.json.surveys||[],s=a.filter(e=>{return!(!(t=e).start_date||t.end_date)&&(function(e){var t;return!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)}(e)||function(e){var t;return!(null==(t=e.conditions)||null==(t=t.actions)||null==(t=t.values)||!t.length)}(e));var t});return s.length>0&&(null==(o=this._surveyEventReceiver)||o.register(s)),null==(n=this._instance.persistence)||n.register({[bi]:a}),e(a,{isLoaded:!0})}})}catch(r){throw this.Ji=!1,r}}Zi(e){for(var t of this.Yi)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(n){Tl.error("Error in survey callback",n)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!Xn(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Tl.warn("init was not called")}te(e){var t=null;return this.getSurveys(n=>{var r;t=null!==(r=n.find(t=>t.id===e))&&void 0!==r?r:null}),t}ie(e){if(Xn(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var t="string"==typeof e?this.te(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Xn(this._surveyManager))return Tl.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var t=this.ie(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Xn(this._surveyManager)?(Tl.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(n=>{this.getSurveys(t=>{var r,i=null!==(r=t.find(t=>t.id===e))&&void 0!==r?r:null;if(i){var o=this.ie(i);n({visible:o.eligible,disabledReason:o.reason})}else n({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t){var n;if(Xn(this._surveyManager))Tl.warn("init was not called");else{var r="string"==typeof e?this.te(e):e;if(null!=r&&r.id)if(Al.includes(r.type)){var i=null==yn?void 0:yn.querySelector(t);if(i)return null!=(n=r.appearance)&&n.surveyPopupDelaySeconds?(Tl.info("Rendering survey "+r.id+" with delay of "+r.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;Tl.info("Rendering survey "+r.id+" with delay of "+(null==(e=r.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(r,i),Tl.info("Survey "+r.id+" rendered")},1e3*r.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(r,i);Tl.warn("Survey element not found")}else Tl.warn("Surveys of type "+r.type+" cannot be rendered in the app");else Tl.warn("Survey not found")}}displaySurvey(e,t){var n;if(Xn(this._surveyManager))Tl.warn("init was not called");else{var r=this.te(e);if(r){var i=r;if(null!=(n=r.appearance)&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=zn({},r,{appearance:zn({},r.appearance,{surveyPopupDelaySeconds:0})})),!1===t.ignoreConditions){var o=this.canRenderSurvey(r);if(!o.visible)return void Tl.warn("Survey is not eligible to be displayed: ",o.disabledReason)}t.displayType!==El.Inline?this._surveyManager.handlePopoverSurvey(i):this.renderSurvey(i,t.selector)}else Tl.warn("Survey not found")}}}var Ll=Dr("[RateLimiter]");class jl{constructor(e){var t,n;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{Ll.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(n){return void Ll.warn('could not rate limit - continuing. Error: "'+(null==n?void 0:n.message)+'"',{text:t})}},this.instance=e,this.captureEventsPerSecond=(null==(t=e.config.rate_limiting)?void 0:t.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null==(n=e.config.rate_limiting)?void 0:n.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(e){var t,n,r;void 0===e&&(e=!1);var i=(new Date).getTime(),o=null!==(t=null==(n=this.instance.persistence)?void 0:n.get_property(Si))&&void 0!==t?t:{tokens:this.captureEventsBurstLimit,last:i};o.tokens+=(i-o.last)/1e3*this.captureEventsPerSecond,o.last=i,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var a=o.tokens<1;return a||e||(o.tokens=Math.max(0,o.tokens-1)),!a||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=a,null==(r=this.instance.persistence)||r.set_property(Si,o),{isRateLimited:a,remainingTokens:o.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var $l=Dr("[RemoteConfig]");class Bl{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=Cn._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}ee(e){var t,n;null!=(t=Cn.__PosthogExtensions__)&&t.loadExternalDependency?null==(n=Cn.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):($l.error("PostHog Extensions not found. Cannot load remote config."),e())}re(e){this._instance.ci({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:t=>{e(t.json)}})}load(){try{if(this.remoteConfig)return $l.info("Using preloaded remote config",this.remoteConfig),void this.fi(this.remoteConfig);if(this._instance.M())return void $l.warn("Remote config is disabled. Falling back to local config.");this.ee(e=>{if(!e)return $l.info("No config found after loading remote JS config. Falling back to JSON."),void this.re(e=>{this.fi(e)});this.fi(e)})}catch(co){$l.error("Error loading remote config",co)}}fi(e){e?this._instance.config.__preview_remote_config?(this._instance.fi(e),!1!==e.hasFeatureFlags&&this._instance.featureFlags.ensureFlagsLoaded()):$l.info("__preview_remote_config is disabled. Logging config instead",e):$l.error("Failed to fetch remote config from PostHog.")}}var Wl=3e3;class Vl{constructor(e,t){this.se=!0,this.ne=[],this.oe=or((null==t?void 0:t.flush_interval_ms)||Wl,250,5e3,Nr.createLogger("flush interval"),Wl),this.ae=e}enqueue(e){this.ne.push(e),this.le||this.ue()}unload(){this.he();var e=this.ne.length>0?this.de():{},t=Object.values(e);[...t.filter(e=>0===e.url.indexOf("/e")),...t.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.ae(zn({},e,{transport:"sendBeacon"}))})}enable(){this.se=!1,this.ue()}ue(){var e=this;this.se||(this.le=setTimeout(()=>{if(this.he(),this.ne.length>0){var t=this.de(),n=function(){var n=t[r],i=(new Date).getTime();n.data&&Bn(n.data)&&Wr(n.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.ae(n)};for(var r in t)n()}},this.oe))}he(){clearTimeout(this.le),this.le=void 0}de(){var e={};return Wr(this.ne,t=>{var n,r=t,i=(r?r.batchKey:null)||r.url;Un(e[i])&&(e[i]=zn({},r,{data:[]})),null==(n=e[i].data)||n.push(r.data)}),this.ne=[],e}}var Hl=["retriesPerformedSoFar"];class Ul{constructor(e){this.ve=!1,this.ce=3e3,this.ne=[],this._instance=e,this.ne=[],this.fe=!0,!Un(pn)&&"onLine"in pn.navigator&&(this.fe=pn.navigator.onLine,this.pe=()=>{this.fe=!0,this.Dt()},this.ge=()=>{this.fe=!1},Zr(pn,"online",this.pe),Zr(pn,"offline",this.ge))}get length(){return this.ne.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,n=Tn(e,Hl);Kn(t)&&t>0&&(n.url=rl(n.url,{retry_count:t})),this._instance.ci(zn({},n,{callback:e=>{200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this._e(zn({retriesPerformedSoFar:t},n)):null==n.callback||n.callback(e)}}))}_e(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var n,r,i,o,a,s=(n=t,i=(r=3e3*Math.pow(2,n))/2,o=Math.min(18e5,r),a=(Math.random()-.5)*(o-i),Math.ceil(o+a)),l=Date.now()+s;this.ne.push({retryAt:l,requestOptions:e});var c="Enqueued failed request for retry in "+s;navigator.onLine||(c+=" (Browser is offline)"),Nr.warn(c),this.ve||(this.ve=!0,this.me())}me(){if(this.ye&&clearTimeout(this.ye),0===this.ne.length)return this.ve=!1,void(this.ye=void 0);this.ye=setTimeout(()=>{this.fe&&this.ne.length>0&&this.Dt(),this.me()},this.ce)}Dt(){var e=Date.now(),t=[],n=this.ne.filter(n=>n.retryAt<e||(t.push(n),!1));if(this.ne=t,n.length>0)for(var{requestOptions:r}of n)this.retriableRequest(r)}unload(){for(var{requestOptions:e}of(this.ye&&(clearTimeout(this.ye),this.ye=void 0),this.ve=!1,Un(pn)||(this.pe&&(pn.removeEventListener("online",this.pe),this.pe=void 0),this.ge&&(pn.removeEventListener("offline",this.ge),this.ge=void 0)),this.ne))try{this._instance.ci(zn({},e,{transport:"sendBeacon"}))}catch(co){Nr.error(co)}this.ne=[]}}class ql{constructor(e){this.be=()=>{var e,t,n,r;this.we||(this.we={});var i=this.scrollElement(),o=this.scrollY(),a=i?Math.max(0,i.scrollHeight-i.clientHeight):0,s=o+((null==i?void 0:i.clientHeight)||0),l=(null==i?void 0:i.scrollHeight)||0;this.we.lastScrollY=Math.ceil(o),this.we.maxScrollY=Math.max(o,null!==(e=this.we.maxScrollY)&&void 0!==e?e:0),this.we.maxScrollHeight=Math.max(a,null!==(t=this.we.maxScrollHeight)&&void 0!==t?t:0),this.we.lastContentY=s,this.we.maxContentY=Math.max(s,null!==(n=this.we.maxContentY)&&void 0!==n?n:0),this.we.maxContentHeight=Math.max(l,null!==(r=this.we.maxContentHeight)&&void 0!==r?r:0)},this._instance=e}getContext(){return this.we}resetContext(){var e=this.we;return setTimeout(this.be,0),e}startMeasuringScrollPosition(){Zr(pn,"scroll",this.be,{capture:!0}),Zr(pn,"scrollend",this.be,{capture:!0}),Zr(pn,"resize",this.be)}scrollElement(){if(!this._instance.config.scroll_root_selector)return null==pn?void 0:pn.document.documentElement;var e=Bn(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var t of e){var n=null==pn?void 0:pn.document.querySelector(t);if(n)return n}}scrollY(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return pn&&(pn.scrollY||pn.pageYOffset||pn.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return pn&&(pn.scrollX||pn.pageXOffset||pn.document.documentElement.scrollLeft)||0}}var Gl=e=>fs(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);class Yl{constructor(e,t,n,r){this.xe=e=>{var t=this.Se();if(!t||t.sessionId!==e){var n={sessionId:e,props:this.Ee(this._instance)};this.$e.register({[wi]:n})}},this._instance=e,this.ke=t,this.$e=n,this.Ee=r||Gl,this.ke.onSessionId(this.xe)}Se(){return this.$e.props[wi]}getSetOnceProps(){var e,t=null==(e=this.Se())?void 0:e.props;return t?"r"in t?ps(t):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return Wr(Yr(this.getSetOnceProps()),(t,n)=>{"$current_url"===n&&(n="url"),e["$session_entry_"+Nn(n)]=t}),e}}var Xl=Dr("[SessionId]");class Kl{on(e,t){return this.Pe.on(e,t)}constructor(e,t,n){var r;if(this.Te=[],this.Re=void 0,this.Pe=new Rl,this.Ie=(e,t)=>Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if("always"===e.config.cookieless_mode)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.C=e.config,this.$e=e.persistence,this.Ce=void 0,this.Oe=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fe=t||Eo,this.Me=n||Eo;var i=this.C.persistence_name||this.C.token,o=this.C.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*or(o,60,36e3,Xl.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ae(),this.De="ph_"+i+"_window_id",this.je="ph_"+i+"_primary_window_exists",this.Le()){var a=jo.W(this.De),s=jo.W(this.je);a&&!s?this.Ce=a:jo.V(this.De),jo.G(this.je,!0)}if(null!=(r=this.C.bootstrap)&&r.sessionID)try{var l=(()=>{var e=this.C.bootstrap.sessionID.replace(/-/g,"");if(32!==e.length)throw new Error("Not a valid UUID");if("7"!==e[12])throw new Error("Not a UUIDv7");return parseInt(e.substring(0,12),16)})();this.Ne(this.C.bootstrap.sessionID,(new Date).getTime(),l)}catch(c){Xl.error("Invalid sessionID in bootstrap",c)}this.Ue()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return Un(this.Te)&&(this.Te=[]),this.Te.push(e),this.Oe&&e(this.Oe,this.Ce),()=>{this.Te=this.Te.filter(t=>t!==e)}}Le(){return"memory"!==this.C.persistence&&!this.$e.wi&&jo.H()}ze(e){e!==this.Ce&&(this.Ce=e,this.Le()&&jo.G(this.De,e))}He(){return this.Ce?this.Ce:this.Le()?jo.W(this.De):null}Ne(e,t,n){e===this.Oe&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this.Oe=e,this.$e.register({[di]:[t,e,n]}))}Be(){if(this.Oe&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this.Oe,this._sessionStartTimestamp];var e=this.$e.props[di];return Bn(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Ne(null,null,null)}destroy(){clearTimeout(this.qe),this.qe=void 0,this.Re&&pn&&(pn.removeEventListener("beforeunload",this.Re,{capture:!1}),this.Re=void 0),this.Te=[]}Ue(){this.Re=()=>{this.Le()&&jo.V(this.je)},Zr(pn,"beforeunload",this.Re,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),"always"===this.C.cookieless_mode)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=t||(new Date).getTime(),[r,i,o]=this.Be(),a=this.He(),s=Kn(o)&&o>0&&Math.abs(n-o)>864e5,l=!1,c=!i,u=!e&&this.Ie(n,r);c||u||s?(i=this.Fe(),a=this.Me(),Xl.info("new session ID generated",{sessionId:i,windowId:a,changeReason:{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}}),o=n,l=!0):a||(a=this.Me(),l=!0);var d=0===r||!e||s?n:r,f=0===o?(new Date).getTime():o;return this.ze(a),this.Ne(i,d,f),e||this.Ae(),l&&this.Te.forEach(e=>e(i,a,l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}:void 0)),{sessionId:i,windowId:a,sessionStartTimestamp:f,changeReason:l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}:void 0,lastActivityTimestamp:r}}Ae(){clearTimeout(this.qe),this.qe=setTimeout(()=>{var[e]=this.Be();if(this.Ie((new Date).getTime(),e)){var t=this.Oe;this.resetSessionId(),this.Pe.emit("forcedIdleReset",{idleSessionId:t})}},1.1*this.sessionTimeoutMs)}}var Ql=["$set_once","$set"],Zl=Dr("[SiteApps]");class Jl{constructor(e){this._instance=e,this.We=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Ge(e,t){if(t){var n=this.globalsForEvent(t);this.We.push(n),this.We.length>1e3&&(this.We=this.We.slice(10))}}get siteAppLoaders(){var e;return null==(e=Cn._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance.Mi(this.Ge.bind(this));this.Ve=()=>{e(),this.We=[],this.Ve=void 0}}}globalsForEvent(e){var t,n,r,i,o,a,s;if(!e)throw new Error("Event payload is required");var l={},c=this._instance.get_property("$groups")||[],u=this._instance.get_property("$stored_group_properties")||{};for(var[d,f]of Object.entries(u))l[d]={id:c[d],type:d,properties:f};var{$set_once:p,$set:h}=e;return{event:zn({},Tn(e,Ql),{properties:zn({},e.properties,h?{$set:zn({},null!==(t=null==(n=e.properties)?void 0:n.$set)&&void 0!==t?t:{},h)}:{},p?{$set_once:zn({},null!==(r=null==(i=e.properties)?void 0:i.$set_once)&&void 0!==r?r:{},p)}:{}),elements_chain:null!==(o=null==(a=e.properties)?void 0:a.$elements_chain)&&void 0!==o?o:"",distinct_id:null==(s=e.properties)?void 0:s.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var n;!t.errored&&this.We.length&&(Zl.info("Processing "+this.We.length+" events for site app with id "+e.id),this.We.forEach(e=>null==t.processEvent?void 0:t.processEvent(e)),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(n=this.Ve)||n.call(this))},r=!1,i=i=>{t.errored=!i,t.loaded=!0,Zl.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),r&&n()};try{var{processEvent:o}=e.init({posthog:this._instance,callback:e=>{i(e)}});o&&(t.processEvent=o),r=!0}catch(a){Zl.error("Error while initializing PostHog app with config id "+e.id,a),i(!1)}if(r&&t.loaded)try{n()}catch(s){Zl.error("Error while processing buffered events PostHog app with config id "+e.id,s),t.errored=!0}}Je(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of e)this.setupSiteApp(n)}Ke(e){if(0!==Object.keys(this.apps).length){var t=this.globalsForEvent(e);for(var n of Object.values(this.apps))try{null==n.processEvent||n.processEvent(t)}catch(r){Zl.error("Error while processing event "+e.event+" for site app "+n.id,r)}}}onRemoteConfig(e){var t,n,r,i=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.Je(),void this._instance.on("eventCaptured",e=>this.Ke(e))):void Zl.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(n=this.Ve)||n.call(this),null!=(r=e.siteApps)&&r.length)if(this.isEnabled){var o=function(e){var t;Cn["__$$ph_site_app_"+e]=i._instance,null==(t=Cn.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,s,t=>{if(t)return Zl.error("Error while initializing PostHog app with config id "+e,t)})};for(var{id:a,url:s}of e.siteApps)o(a)}else Zl.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var ec=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&On(n,t))return!0;try{var r=null==e?void 0:e.userAgentData;if(null!=r&&r.brands&&r.brands.some(e=>On(null==e?void 0:e.brand,t)))return!0}catch(i){}return!!e.webdriver},tc=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),nc="i.posthog.com";class rc{constructor(e){this.Ye={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+nc,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.Ye[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=tc.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=tc.EU:this.Ye[this.apiHost]=tc.CUSTOM),this.Ye[this.apiHost]}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if(this.region===tc.CUSTOM)return this.apiHost+t;var n=nc+t;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var ic={icontains:(e,t)=>!!pn&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!pn&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!pn&&sl(t.href,e),not_regex:(e,t)=>!!pn&&!sl(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class oc{constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{oc.Xe("retrieved web experiments from the server"),t.Qe=new Map,e.forEach(e=>{if(e.feature_flag_key){var n;t.Qe&&(oc.Xe("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(n=t.Qe)||n.set(e.feature_flag_key,e));var r=t._instance.getFeatureFlag(e.feature_flag_key);qn(r)&&e.variants[r]&&t.Ze(e.name,r,e.variants[r].transforms)}else if(e.variants)for(var i in e.variants){var o=e.variants[i];oc.tr(o)&&t.Ze(e.name,i,o.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}onFeatureFlags(e){if(this._is_bot())oc.Xe("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(Xn(this.Qe))return this.Qe=new Map,this.loadIfEnabled(),void this.previewWebExperiment();oc.Xe("applying feature flags",e),e.forEach(e=>{var t;if(this.Qe&&null!=(t=this.Qe)&&t.has(e)){var n,r=this._instance.getFeatureFlag(e),i=null==(n=this.Qe)?void 0:n.get(e);r&&null!=i&&i.variants[r]&&this.Ze(i.name,r,i.variants[r].transforms)}})}}previewWebExperiment(){var e=oc.getWindowLocation();if(null!=e&&e.search){var t=ho(null==e?void 0:e.search,"__experiment_id"),n=ho(null==e?void 0:e.search,"__experiment_variant");t&&n&&(oc.Xe("previewing web experiments "+t+" && "+n),this.getWebExperiments(e=>{this.ir(parseInt(t),n,e)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,n){if(this._instance.config.disable_web_experiments&&!n)return e([]);var r=this._instance.get_property("$web_experiments");if(r&&!t)return e(r);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:t=>{if(200!==t.statusCode||!t.json)return e([]);var n=t.json.experiments||[];return e(n)}})}ir(e,t,n){var r=n.filter(t=>t.id===e);r&&r.length>0&&(oc.Xe("Previewing web experiment ["+r[0].name+"] with variant ["+t+"]"),this.Ze(r[0].name,t,r[0].variants[t].transforms))}static tr(e){return!Xn(e.conditions)&&oc.er(e)&&oc.rr(e)}static er(e){var t;if(Xn(e.conditions)||Xn(null==(t=e.conditions)?void 0:t.url))return!0;var n,r,i,o=oc.getWindowLocation();return!!o&&(null==(n=e.conditions)||!n.url||ic[null!==(r=null==(i=e.conditions)?void 0:i.urlMatchType)&&void 0!==r?r:"icontains"](e.conditions.url,o))}static getWindowLocation(){return null==pn?void 0:pn.location}static rr(e){var t;if(Xn(e.conditions)||Xn(null==(t=e.conditions)?void 0:t.utm))return!0;var n=ss();if(n.utm_source){var r,i,o,a,s,l,c,u,d=null==(r=e.conditions)||null==(r=r.utm)||!r.utm_campaign||(null==(i=e.conditions)||null==(i=i.utm)?void 0:i.utm_campaign)==n.utm_campaign,f=null==(o=e.conditions)||null==(o=o.utm)||!o.utm_source||(null==(a=e.conditions)||null==(a=a.utm)?void 0:a.utm_source)==n.utm_source,p=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==n.utm_medium,h=null==(c=e.conditions)||null==(c=c.utm)||!c.utm_term||(null==(u=e.conditions)||null==(u=u.utm)?void 0:u.utm_term)==n.utm_term;return d&&p&&h&&f}return!1}static Xe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Nr.info("[WebExperiments] "+e,n)}Ze(e,t,n){this._is_bot()?oc.Xe("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?n.forEach(n=>{if(n.selector){var r;oc.Xe("applying transform of variant "+t+" for experiment "+e+" ",n);var i=null==(r=document)?void 0:r.querySelectorAll(n.selector);null==i||i.forEach(e=>{var t=e;n.html&&(t.innerHTML=n.html),n.css&&t.setAttribute("style",n.css)})}}):oc.Xe("Control variants leave the page unmodified.")}_is_bot(){return bn&&this._instance?ec(bn,this._instance.config.custom_blocked_useragents):void 0}}var ac=Dr("[PostHog ExternalIntegrations]"),sc={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class lc{constructor(e){this._instance=e}it(e,t){var n;null==(n=Cn.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,e,e=>{if(e)return ac.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e=this,t=function(t){var n,i,o;!r||null!=(n=Cn.__PosthogExtensions__)&&null!=(n=n.integrations)&&n[t]||e.it(sc[t],()=>{var n;null==(n=Cn.__PosthogExtensions__)||null==(n=n.integrations)||null==(n=n[t])||n.start(e._instance)}),!r&&null!=(i=Cn.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[t]&&(null==(o=Cn.__PosthogExtensions__)||null==(o=o.integrations)||null==(o=o[t])||o.stop())};for(var[n,r]of Object.entries(null!==(i=this._instance.config.integrations)&&void 0!==i?i:{})){var i;t(n)}}}var cc="[SessionRecording]",uc=Dr(cc);class dc{get started(){var e;return!(null==(e=this.sr)||!e.isStarted)}get status(){return this.sr?this.sr.status:this.nr&&!this.ar?"disabled":"lazy_loading"}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.nr=!1,this.lr=void 0,this._instance=e,!this._instance.sessionManager)throw uc.error("started without valid sessionManager"),new Error(cc+" started without valid sessionManager. This is a bug.");if("always"===this._instance.config.cookieless_mode)throw new Error(cc+' cannot be used with cookieless_mode="always"')}get ar(){var e,t=!(null==(e=this._instance.get_property(ui))||!e.enabled),n=!this._instance.config.disable_session_recording,r=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return pn&&t&&n&&!r}startIfEnabledOrStop(e){var t;if(!this.ar||null==(t=this.sr)||!t.isStarted){var n=!Un(Object.assign)&&!Un(Array.from);this.ar&&n?(this.ur(e),uc.info("starting")):this.stopRecording()}}ur(e){var t,n,r;this.ar&&(null!=Cn&&null!=(t=Cn.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(n=Cn.__PosthogExtensions__)&&n.initSessionRecording?this.hr(e):null==(r=Cn.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,this.dr,t=>{if(t)return uc.error("could not load recorder",t);this.hr(e)}))}stopRecording(){var e,t;null==(e=this.lr)||e.call(this),this.lr=void 0,null==(t=this.sr)||t.stop()}vr(){var e;null==(e=this._instance.persistence)||e.unregister(fi)}cr(e){if(this._instance.persistence){var t,n,r=this._instance.persistence,i=()=>{var t=!1===e.sessionRecording?void 0:e.sessionRecording,n=null==t?void 0:t.sampleRate,i=Xn(n)?null:parseFloat(n);Xn(i)&&this.vr();var o=null==t?void 0:t.minimumDurationMilliseconds;r.register({[ui]:zn({enabled:!!t},t,{networkPayloadCapture:zn({capturePerformance:e.capturePerformance},null==t?void 0:t.networkPayloadCapture),canvasRecording:{enabled:null==t?void 0:t.recordCanvas,fps:null==t?void 0:t.canvasFps,quality:null==t?void 0:t.canvasQuality},sampleRate:i,minimumDurationMilliseconds:Un(o)?null:o,endpoint:null==t?void 0:t.endpoint,triggerMatchType:null==t?void 0:t.triggerMatchType,masking:null==t?void 0:t.masking,urlTriggers:null==t?void 0:t.urlTriggers})})};i(),null==(t=this.lr)||t.call(this),this.lr=null==(n=this._instance.sessionManager)?void 0:n.onSessionId(i)}}onRemoteConfig(e){"sessionRecording"in e?!1!==e.sessionRecording?(this.cr(e),this.nr=!0,this.startIfEnabledOrStop()):this.nr=!0:uc.info("skipping remote config with no sessionRecording",e)}log(e,t){var n;void 0===t&&(t="log"),null!=(n=this.sr)&&n.log?this.sr.log(e,t):uc.warn("log called before recorder was ready")}get dr(){var e,t,n=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(ui);return(null==n||null==(t=n.scriptConfig)?void 0:t.script)||"lazy-recorder"}hr(e){var t,n;if(null==(t=Cn.__PosthogExtensions__)||!t.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.sr||(this.sr=null==(n=Cn.__PosthogExtensions__)?void 0:n.initSessionRecording(this._instance),this.sr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.sr.start(e)}onRRwebEmit(e){var t;null==(t=this.sr)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e;null==(e=this.sr)||e.overrideLinkedFlag()}overrideSampling(){var e;null==(e=this.sr)||e.overrideSampling()}overrideTrigger(e){var t;null==(t=this.sr)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.sr)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!(null==(n=this.sr)||!n.tryAddCustomEvent(e,t))}}var fc={},pc=()=>{},hc="posthog",gc=!tl&&-1===(null==_n?void 0:_n.indexOf("MSIE"))&&-1===(null==_n?void 0:_n.indexOf("Mozilla")),mc=e=>{var t;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:Kr(null==yn?void 0:yn.location),persistence:"localStorage+cookie",persistence_name:"",loaded:pc,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:"2025-05-24"!==e||"history_change",capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",debug:xn&&qn(null==xn?void 0:xn.search)&&-1!==xn.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==pn||null==(t=pn.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:e=>{var t="Bad HTTP status: "+e.statusCode+" "+e.text;Nr.error(t)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:Wl},error_tracking:{},_onCapture:pc,__preview_eager_load_replay:!1}},vc=e=>{var t={};Un(e.process_person)||(t.person_profiles=e.process_person),Un(e.xhr_headers)||(t.request_headers=e.xhr_headers),Un(e.cookie_name)||(t.persistence_name=e.cookie_name),Un(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),Un(e.store_google)||(t.save_campaign_params=e.store_google),Un(e.verbose)||(t.debug=e.verbose);var n=Vr({},t,e);return Bn(e.property_blacklist)&&(Un(e.property_denylist)?n.property_denylist=e.property_blacklist:Bn(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:Nr.error("Invalid value for property_denylist config: "+e.property_denylist)),n};class bc{constructor(){this.__forceAllowLocalhost=!1}get pr(){return this.__forceAllowLocalhost}set pr(e){Nr.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class yc{get decideEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}get flagsEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}constructor(){this.webPerformance=new bc,this.gr=!1,this.version=Pn.LIB_VERSION,this._r=new Rl,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=mc(),this.SentryIntegration=Jo,this.sentryIntegration=e=>{return t=Zo(this,e),{name:Qo,processEvent:e=>t(e)};var t},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.mr=!1,this.yr=null,this.br=null,this.wr=null,this.featureFlags=new kl(this),this.toolbar=new ia(this),this.scrollManager=new ql(this),this.pageViewManager=new ws(this),this.surveys=new Dl(this),this.experiments=new oc(this),this.exceptions=new fl(this),this.rateLimiter=new jl(this),this.requestRouter=new rc(this),this.consent=new Bo(this),this.externalIntegrations=new lc(this),this.people={set:(e,t,n)=>{var r=qn(e)?{[e]:t}:e;this.setPersonProperties(r),null==n||n({})},set_once:(e,t,n)=>{var r=qn(e)?{[e]:t}:e;this.setPersonProperties(void 0,r),null==n||n({})}},this.on("eventCaptured",e=>Nr.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,n){if(n&&n!==hc){var r,i=null!==(r=fc[n])&&void 0!==r?r:new yc;return i._init(e,t,n),fc[n]=i,fc[hc][n]=i,i}return this._init(e,t,n)}_init(e,t,n){var r,i;if(void 0===t&&(t={}),Un(e)||Gn(e))return Nr.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return this;this.__loaded=!0,this.config={},t.debug=this.Sr(t.debug),this.Er=t,this.$r=[],t.person_profiles&&(this.br=t.person_profiles),this.set_config(Vr({},mc(t.defaults),vc(t),{name:n,token:e})),this.config.on_xhr_error&&Nr.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:fo.GZipJS;var o=this.kr();this.persistence=new Sl(this.config,o),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Sl(zn({},this.config,{persistence:"sessionStorage"}),o);var a=zn({},this.persistence.props),s=zn({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Pr=new Vl(e=>this.Tr(e),this.config.request_queue_config),this.Rr=new Ul(this),this.__request_queue=[];var l="always"===this.config.cookieless_mode||"on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut();if(l||(this.sessionManager=new Kl(this),this.sessionPropsManager=new Yl(this,this.sessionManager,this.persistence)),new aa(this).startIfEnabledOrStop(),this.siteApps=new Jl(this),null==(r=this.siteApps)||r.init(),l||(this.sessionRecording=new dc(this),this.sessionRecording.startIfEnabledOrStop()),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new xo(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new ks(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new bs(this),this.exceptionObserver=new Go(this),this.exceptionObserver.startIfEnabled(),this.deadClicksAutocapture=new Uo(this,Ho),this.deadClicksAutocapture.startIfEnabled(),this.historyAutocapture=new Xo(this),this.historyAutocapture.startIfEnabled(),Pn.DEBUG=Pn.DEBUG||this.config.debug,Pn.DEBUG&&Nr.info("Starting in debug mode",{this:this,config:t,thisC:zn({},this.config),p:a,s:s}),void 0!==(null==(i=t.bootstrap)?void 0:i.distinctID)){var c,u,d=this.config.get_device_id(Eo()),f=null!=(c=t.bootstrap)&&c.isIdentifiedID?d:t.bootstrap.distinctID;this.persistence.set_property(ki,null!=(u=t.bootstrap)&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:t.bootstrap.distinctID,$device_id:f})}if(this.Ir()){var p,h,g=Object.keys((null==(p=t.bootstrap)?void 0:p.featureFlags)||{}).filter(e=>{var n;return!(null==(n=t.bootstrap)||null==(n=n.featureFlags)||!n[e])}).reduce((e,n)=>{var r;return e[n]=(null==(r=t.bootstrap)||null==(r=r.featureFlags)?void 0:r[n])||!1,e},{}),m=Object.keys((null==(h=t.bootstrap)?void 0:h.featureFlagPayloads)||{}).filter(e=>g[e]).reduce((e,n)=>{var r,i;return null!=(r=t.bootstrap)&&null!=(r=r.featureFlagPayloads)&&r[n]&&(e[n]=null==(i=t.bootstrap)||null==(i=i.featureFlagPayloads)?void 0:i[n]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:g,featureFlagPayloads:m})}if(l)this.register_once({distinct_id:zi,$device_id:null},"");else if(!this.get_distinct_id()){var v=this.config.get_device_id(Eo());this.register_once({distinct_id:v,$device_id:v},""),this.persistence.set_property(ki,"anonymous")}return Zr(pn,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),t.segment?function(e,t){var n=e.config.segment;if(!n)return t();!function(e,t){var n=e.config.segment;if(!n)return t();var r=n=>{var r=()=>n.anonymousId()||Eo();e.config.get_device_id=r,n.id()&&(e.register({distinct_id:n.id(),$device_id:r()}),e.persistence.set_property(ki,"identified")),t()},i=n.user();"then"in i&&Wn(i.then)?i.then(e=>r(e)):r(i)}(e,()=>{n.register((e=>{Promise&&Promise.resolve||Ko.warn("This browser does not have Promise support, and can not use the segment integration");var t=(t,n)=>{if(!n)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(Ko.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(Ko.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var r=e.calculateEventProperties(n,t.event.properties);return t.event.properties=Object.assign({},r,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>t(e,e.event.event),page:e=>t(e,"$pageview"),identify:e=>t(e,"$identify"),screen:e=>t(e,"$screen")}})(e)).then(()=>{t()})})}(this,()=>this.Cr()):this.Cr(),Wn(this.config._onCapture)&&this.config._onCapture!==pc&&(Nr.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&Nr.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}fi(e){var t,n,r,i,o,a,s,l;if(!yn||!yn.body)return Nr.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.fi(e)},500);this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=An(e.supportedCompression,fo.GZipJS)?fo.GZipJS:An(e.supportedCompression,fo.Base64)?fo.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.br?this.br:"identified_only"}),null==(n=this.siteApps)||n.onRemoteConfig(e),null==(r=this.sessionRecording)||r.onRemoteConfig(e),null==(i=this.autocapture)||i.onRemoteConfig(e),null==(o=this.heatmaps)||o.onRemoteConfig(e),this.surveys.onRemoteConfig(e),null==(a=this.webVitalsAutocapture)||a.onRemoteConfig(e),null==(s=this.exceptionObserver)||s.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),null==(l=this.deadClicksAutocapture)||l.onRemoteConfig(e)}Cr(){try{this.config.loaded(this)}catch(co){Nr.critical("`loaded` function failed",co)}this.Or(),this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||"always"===this.config.cookieless_mode)&&this.Fr()},1),new Bl(this).load(),this.featureFlags.flags()}Or(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Pr)||e.enable())}_dom_loaded(){this.is_capturing()&&Br(this.__request_queue,e=>this.Tr(e)),this.__request_queue=[],this.Or()}_handle_unload(){var e,t;this.config.request_batching?(this.Mr()&&this.capture("$pageleave"),null==(e=this.Pr)||e.unload(),null==(t=this.Rr)||t.unload()):this.Mr()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}ci(e){this.__loaded&&(gc?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=rl(e.url,{ip:this.config.ip?1:0}),e.headers=zn({},this.config.request_headers),e.compression="best-available"===e.compression?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(e=>{var t,n,r,i=zn({},e);i.timeout=i.timeout||6e4,i.url=rl(i.url,{_:(new Date).getTime().toString(),ver:Pn.LIB_VERSION,compression:i.compression});var o=null!==(t=i.transport)&&void 0!==t?t:"fetch",a=al.filter(e=>!i.disableTransport||!e.transport||!i.disableTransport.includes(e.transport)),s=null!==(n=null==(r=Qr(a,e=>e.transport===o))?void 0:r.method)&&void 0!==n?n:a[0].method;if(!s)throw new Error("No available transport method");s(i)})(zn({},e,{callback:t=>{var n,r;this.rateLimiter.checkForLimiting(t),t.statusCode>=400&&(null==(n=(r=this.config).on_request_error)||n.call(r,t)),null==e.callback||e.callback(t)}}))))}Tr(e){this.Rr?this.Rr.retriableRequest(e):this.ci(e)}_execute_array(e){var t,n=[],r=[],i=[];Br(e,e=>{e&&(t=e[0],Bn(t)?i.push(e):Wn(e)?e.call(this):Bn(e)&&"alias"===t?n.push(e):Bn(e)&&-1!==t.indexOf("capture")&&Wn(this[t])?i.push(e):r.push(e))});var o=function(e,t){Br(e,function(e){if(Bn(e[0])){var n=t;Wr(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(n,this),o(r,this),o(i,this)}Ir(){var e,t;return(null==(e=this.config.bootstrap)?void 0:e.featureFlags)&&Object.keys(null==(t=this.config.bootstrap)?void 0:t.featureFlags).length>0||!1}push(e){this._execute_array([e])}capture(e,t,n){var r;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Pr){if(this.is_capturing())if(!Un(e)&&qn(e)){var i=!this.config.opt_out_useragent_filter&&this._is_bot();if(!i||this.config.__preview_capture_bot_pageviews){var o=null!=n&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==o||!o.isRateLimited){null!=t&&t.$current_url&&!qn(null==t?void 0:t.$current_url)&&(Nr.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var a=new Date,s=(null==n?void 0:n.timestamp)||a,l=Eo(),c={uuid:l,event:e,properties:this.calculateEventProperties(e,t||{},s,l)};"$pageview"===e&&this.config.__preview_capture_bot_pageviews&&i&&(c.event="$bot_pageview",c.properties.$browser_type="bot"),o&&(c.properties.$lib_rate_limit_remaining_tokens=o.remainingTokens),(null==n?void 0:n.$set)&&(c.$set=null==n?void 0:n.$set);var u,d=this.Ar(null==n?void 0:n.$set_once);if(d&&(c.$set_once=d),(c=function(e,t){return n=e,r=e=>qn(e)&&!Yn(t)?e.slice(0,t):e,i=new Set,function e(t,n){return t!==Object(t)?r?r(t):t:i.has(t)?void 0:(i.add(t),Bn(t)?(o=[],Br(t,t=>{o.push(e(t))})):(o={},Wr(t,(t,n)=>{i.has(t)||(o[n]=e(t))})),o);var o}(n);var n,r,i}(c,null!=n&&n._noTruncate?null:this.config.properties_string_max_length)).timestamp=s,Un(null==n?void 0:n.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=a),e===Cl.DISMISSED||e===Cl.SENT){var f=null==t?void 0:t[Pl.SURVEY_ID],p=null==t?void 0:t[Pl.SURVEY_ITERATION];u={id:f,current_iteration:p},localStorage.getItem(Fl(u))||localStorage.setItem(Fl(u),"true"),c.$set=zn({},c.$set,{[Ol({id:f,current_iteration:p},e===Cl.SENT?"responded":"dismissed")]:!0})}var h=zn({},c.properties.$set,c.$set);if(Hn(h)||this.setPersonPropertiesForFlags(h),!Xn(this.config.before_send)){var g=this.Dr(c);if(!g)return;c=g}this._r.emit("eventCaptured",c);var m={method:"POST",url:null!==(r=null==n?void 0:n._url)&&void 0!==r?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:c,compression:"best-available",batchKey:null==n?void 0:n._batchKey};return!this.config.request_batching||n&&(null==n||!n._batchKey)||null!=n&&n.send_instantly?this.Tr(m):this.Pr.enqueue(m),c}Nr.critical("This capture call is ignored due to client rate limiting.")}}else Nr.error("No event name provided to posthog.capture")}else Nr.uninitializedWarning("posthog.capture")}Mi(e){return this.on("eventCaptured",t=>e(t.event,t))}calculateEventProperties(e,t,n,r,i){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return t;var o=i?void 0:this.persistence.remove_event_timer(e),a=zn({},t);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,("always"==this.config.cookieless_mode||"on_reject"==this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut())&&(a.$cookieless_mode=!0),"$snapshot"===e){var s=zn({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=s.distinct_id,(!qn(a.distinct_id)&&!Kn(a.distinct_id)||Gn(a.distinct_id))&&Nr.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var l,c=function(e,t){if(!_n)return{};var n,r,i,o=e?Hr([],rs,t||[]):[],[a,s]=function(e){for(var t=0;t<es.length;t++){var[n,r]=es[t],i=n.exec(e),o=i&&(Wn(r)?r(i,e):r);if(o)return o}return["",""]}(_n);return Vr(Yr({$os:a,$os_version:s,$browser:Qa(_n,navigator.vendor),$device:ts(_n),$device_type:(r=_n,i=ts(r),i===fa||i===da||"Kobo"===i||"Kindle Fire"===i||i===Wa?ua:i===Ia||i===Fa||i===Oa||i===ja?"Console":i===ha?"Wearable":i?sa:"Desktop"),$timezone:hs(),$timezone_offset:gs()}),{$current_url:go(null==xn?void 0:xn.href,o,os),$host:null==xn?void 0:xn.host,$pathname:null==xn?void 0:xn.pathname,$raw_user_agent:_n.length>1e3?_n.substring(0,997)+"...":_n,$browser_version:Ja(_n,navigator.vendor),$browser_language:us(),$browser_language_prefix:(n=us(),"string"==typeof n?n.split("-")[0]:void 0),$screen_height:null==pn?void 0:pn.screen.height,$screen_width:null==pn?void 0:pn.screen.width,$viewport_height:null==pn?void 0:pn.innerHeight,$viewport_width:null==pn?void 0:pn.innerWidth,$lib:"web",$lib_version:Pn.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:u,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId(i,n.getTime());a.$session_id=u,a.$window_id=d}this.sessionPropsManager&&Vr(a,this.sessionPropsManager.getSessionProps());try{var f;this.sessionRecording&&Vr(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=null==(f=this.Rr)?void 0:f.length}catch(m){a.$sdk_debug_error_capturing_properties=String(m)}if(this.requestRouter.region===tc.CUSTOM&&(a.$lib_custom_api_host=this.config.api_host),l="$pageview"!==e||i?"$pageleave"!==e||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,r),a=Vr(a,l),"$pageview"===e&&yn&&(a.title=yn.title),!Un(o)){var p=n.getTime()-o;a.$duration=parseFloat((p/1e3).toFixed(3))}_n&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=Vr({},c,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),Bn(this.config.property_denylist)?Wr(this.config.property_denylist,function(e){delete a[e]}):Nr.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var h=this.config.sanitize_properties;h&&(Nr.error("sanitize_properties is deprecated. Use before_send instead"),a=h(a,e));var g=this.jr();return a.$process_person_profile=g,g&&!i&&this.Lr("_calculate_event_properties"),a}Ar(e){var t;if(!this.persistence||!this.jr())return e;if(this.gr)return e;var n=this.persistence.get_initial_props(),r=null==(t=this.sessionPropsManager)?void 0:t.getSetOnceProps(),i=Vr({},n,r||{},e||{}),o=this.config.sanitize_properties;return o&&(Nr.error("sanitize_properties is deprecated. Use before_send instead"),i=o(i,"$set_once")),this.gr=!0,Hn(i)?void 0:i}register(e,t){var n;null==(n=this.persistence)||n.register(e,t)}register_once(e,t,n){var r;null==(r=this.persistence)||r.register_once(e,t,n)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e)}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}Nr(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(n){return t}}isFeatureEnabled(e,t){return this.featureFlags.isFeatureEnabled(e,t)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(e,t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t,n)}getEarlyAccessFeatures(e,t,n){return void 0===t&&(t=!1),this.featureFlags.getEarlyAccessFeatures(e,t,n)}on(e,t){return this._r.on(e,t)}onFeatureFlags(e){return this.featureFlags.onFeatureFlags(e)}onSurveysLoaded(e){return this.surveys.onSurveysLoaded(e)}onSessionId(e){var t,n;return null!==(t=null==(n=this.sessionManager)?void 0:n.onSessionId(e))&&void 0!==t?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys.getSurveys(e,t)}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys.getActiveMatchingSurveys(e,t)}renderSurvey(e,t){this.surveys.renderSurvey(e,t)}displaySurvey(e,t){void 0===t&&(t=Ml),this.surveys.displaySurvey(e,t)}canRenderSurvey(e){return this.surveys.canRenderSurvey(e)}canRenderSurveyAsync(e,t){return void 0===t&&(t=!1),this.surveys.canRenderSurveyAsync(e,t)}identify(e,t,n){if(!this.__loaded||!this.persistence)return Nr.uninitializedWarning("posthog.identify");if(Kn(e)&&(e=e.toString(),Nr.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))Nr.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(e!==zi){if(this.Lr("posthog.identify")){var r=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var i=r;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}e!==r&&e!==this.get_property(ei)&&(this.unregister(ei),this.register({distinct_id:e}));var o="anonymous"===(this.persistence.get_property(ki)||"anonymous");e!==r&&o?(this.persistence.set_property(ki,"identified"),this.setPersonPropertiesForFlags(zn({},n||{},t||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:n||{}}),this.wr=ll(e,t,n),this.featureFlags.setAnonymousDistinctId(r)):(t||n)&&this.setPersonProperties(t,n),e!==r&&(this.reloadFeatureFlags(),this.unregister(xi))}}else Nr.critical('The string "'+zi+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else Nr.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,t){if((e||t)&&this.Lr("posthog.setPersonProperties")){var n=ll(this.get_distinct_id(),e,t);this.wr!==n?(this.setPersonPropertiesForFlags(zn({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.wr=n):Nr.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,n){if(e&&t){if(this.Lr("posthog.group")){var r=this.getGroups();r[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:zn({},r,{[e]:t})}),n&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags({[e]:n})),r[e]===t||n||this.reloadFeatureFlags()}}else Nr.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0),this.featureFlags.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0),this.Lr("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){var t,n,r,i;if(Nr.info("reset"),!this.__loaded)return Nr.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(n=this.sessionPersistence)||n.clear(),this.surveys.reset(),this.featureFlags.reset(),null==(r=this.persistence)||r.set_property(ki,"anonymous"),null==(i=this.sessionManager)||i.resetSessionId(),this.wr=null,"always"===this.config.cookieless_mode)this.register_once({distinct_id:zi,$device_id:null},"");else{var a=this.config.get_device_id(Eo());this.register_once({distinct_id:a,$device_id:e?a:o},"")}this.register({$last_posthog_reset:(new Date).toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!==(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(null!=e&&e.withTimestamp&&n){var i,o=null!==(i=e.timestampLookBack)&&void 0!==i?i:10;if(!n)return r;r+="?t="+Math.max(Math.floor(((new Date).getTime()-n)/1e3)-o,0)}return r}alias(e,t){return e===this.get_property(Jr)?(Nr.critical("Attempting to create alias for existing People user - aborting."),-2):this.Lr("posthog.alias")?(Un(t)&&(t=this.get_distinct_id()),e!==t?(this.Nr(ei,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(Nr.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=zn({},this.config);if(Vn(e)){var n,r,i,o,a;Vr(this.config,vc(e));var s=this.kr();null==(n=this.persistence)||n.update_config(this.config,t,s),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Sl(zn({},this.config,{persistence:"sessionStorage"}),s);var l=this.Sr(this.config.debug);Qn(l)&&(this.config.debug=l),Qn(this.config.debug)&&(this.config.debug?(Pn.DEBUG=!0,Fo.H()&&Fo.G("ph_debug","true"),Nr.info("set_config",{config:e,oldConfig:t,newConfig:zn({},this.config)})):(Pn.DEBUG=!1,Fo.H()&&Fo.V("ph_debug"))),null==(r=this.sessionRecording)||r.startIfEnabledOrStop(),null==(i=this.autocapture)||i.startIfEnabled(),null==(o=this.heatmaps)||o.startIfEnabled(),this.surveys.loadIfEnabled(),this.Ur(),null==(a=this.externalIntegrations)||a.startIfEnabledOrStop()}}startSessionRecording(e){var t,n,r,i,o,a=!0===e,s={sampling:a||!(null==e||!e.sampling),linked_flag:a||!(null==e||!e.linked_flag),url_trigger:a||!(null==e||!e.url_trigger),event_trigger:a||!(null==e||!e.event_trigger)};Object.values(s).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),s.sampling&&(null==(n=this.sessionRecording)||n.overrideSampling()),s.linked_flag&&(null==(r=this.sessionRecording)||r.overrideLinkedFlag()),s.url_trigger&&(null==(i=this.sessionRecording)||i.overrideTrigger("url")),s.event_trigger&&(null==(o=this.sessionRecording)||o.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){var n=new Error("PostHog syntheticException"),r=this.exceptions.buildProperties(e,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(zn({},r,t))}loadToolbar(e){return this.toolbar.loadToolbar(e)}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:hc;return t!==hc&&(t=hc+"."+t),t}_isIdentified(){var e,t;return"identified"===(null==(e=this.persistence)?void 0:e.get_property(ki))||"identified"===(null==(t=this.sessionPersistence)?void 0:t.get_property(ki))}jr(){var e,t;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&Hn(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[ei])&&(null==(t=this.persistence)||null==(t=t.props)||!t[Ei]))}Mr(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.jr()||this.Lr("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Lr(e){return"never"===this.config.person_profiles?(Nr.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Nr(Ei,!0),!0)}kr(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut(),t=this.config.opt_out_persistence_by_default||"on_reject"===this.config.cookieless_mode;return this.config.disable_persistence||e&&!!t}Ur(){var e,t,n,r,i=this.kr();return(null==(e=this.persistence)?void 0:e.wi)!==i&&(null==(n=this.persistence)||n.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.wi)!==i&&(null==(r=this.sessionPersistence)||r.set_disabled(i)),i}opt_in_capturing(e){var t,n;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),null==(t=this.sessionManager)||t.destroy(),this.sessionManager=new Kl(this),this.persistence&&(this.sessionPropsManager=new Yl(this,this.sessionManager,this.persistence)),this.sessionRecording=new dc(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this.Ur(),this.Or(),"on_reject"==this.config.cookieless_mode&&this.surveys.loadIfEnabled(),(Un(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(n=null==e?void 0:e.captureEventName)&&void 0!==n?n:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Fr()):Nr.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,t;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Ur(),"on_reject"===this.config.cookieless_mode&&(this.register({distinct_id:zi,$device_id:null}),null==(e=this.sessionManager)||e.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,null==(t=this.sessionRecording)||t.stopRecording(),this.sessionRecording=void 0,this.Fr())):Nr.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===$o.GRANTED?"granted":e===$o.DENIED?"denied":"pending"}is_capturing(){return"always"===this.config.cookieless_mode||("on_reject"===this.config.cookieless_mode?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Ur()}_is_bot(){return bn?ec(bn,this.config.custom_blocked_useragents):void 0}Fr(){yn&&("visible"===yn.visibilityState?this.mr||(this.mr=!0,this.capture("$pageview",{title:yn.title},{send_instantly:!0}),this.yr&&(yn.removeEventListener("visibilitychange",this.yr),this.yr=null)):this.yr||(this.yr=this.Fr.bind(this),Zr(yn,"visibilitychange",this.yr)))}debug(e){!1===e?(null==pn||pn.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==pn||pn.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}M(){var e,t,n,r,i,o,a=this.Er||{};return"advanced_disable_flags"in a?!!a.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(Nr.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(n="advanced_disable_decide",r=Nr,i=(t="advanced_disable_flags")in(e=a)&&!Un(e[t]),o=n in e&&!Un(e[n]),i?e[t]:!!o&&(r&&r.warn("Config field '"+n+"' is deprecated. Please use '"+t+"' instead. The old field will be removed in a future major version."),e[n]))}Dr(e){if(Xn(this.config.before_send))return e;var t=Bn(this.config.before_send)?this.config.before_send:[this.config.before_send],n=e;for(var r of t){if(n=r(n),Xn(n)){var i="Event '"+e.event+"' was rejected in beforeSend function";return Zn(e.event)?Nr.warn(i+". This can cause unexpected behavior."):Nr.info(i),null}n.properties&&!Hn(n.properties)||Nr.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var e;return null==(e=this.pageViewManager.Vt)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,n){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(n)})}Sr(e){var t=Qn(e)&&!e,n=Fo.H()&&"true"===Fo.q("ph_debug");return!t&&(!!n||e)}}!function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=Gr(e.prototype[t[n]])}(yc,["identify"]);var xc,kc=(xc=fc[hc]=new yc,function(){function e(){e.done||(e.done=!0,gc=!1,Wr(fc,function(e){e._dom_loaded()}))}null!=yn&&yn.addEventListener?"complete"===yn.readyState?e():Zr(yn,"DOMContentLoaded",e,{capture:!1}):pn&&Nr.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),xc);let wc=null;const Sc=(e,t)=>{if(wc)try{wc.capture("$exception",{$exception_message:e.message,$exception_type:e.name,$exception_stack_trace:e.stack,...t})}catch(n){}},_c=(e,t)=>(...n)=>{try{return t(...n)}catch(r){throw Sc(r,{context:e}),r}},Cc=(e,t)=>(...n)=>{try{return t(...n).catch(t=>{throw"AbortError"!==t.name&&Sc(t,{context:e}),t})}catch(r){throw"AbortError"!==r.name&&Sc(r,{context:e}),r}},Pc="https://standardapi.dori.tech",Ec={demoSharingData:`${Pc}/bot-sharing-data/`,runAssistant:`${Pc}/v2/run-assistant`,streamV2:`${Pc}/v2/stream`,searchProductLog:`${Pc}/search-selected-item-log`},Rc=Cc("fetchBotDataBySharingID",async(e,t)=>async function(e,t=3){let n;for(let i=0;i<t;i++)try{return await e()}catch(r){if(n=r,i===t-1)throw n}throw n}(async()=>{const n=Ec.demoSharingData+e+(t?`?product_id=${t}`:""),r=await fetch(n);if(200!==r.status)throw new Error(`Network response was not ok: ${r.status}`);return await r.json()},3)),zc=Cc("sendMessageToStreamAPI",async(e,t,n,r,i,o,a,s)=>{const l={assistant_id:t.assistant_id,thread_id:n||void 0,message:e,src:"undefined"!=typeof window?window.location.href:"",platform:"shopify_pdp",product_id:s||void 0};let c;Object.keys(l).forEach(e=>void 0===l[e]&&delete l[e]);const u={Accept:"application/json","Content-Type":"application/json"};"undefined"!=typeof window&&window.idToken&&(u.Authorization=`Bearer ${window.idToken}`);try{c=await fetch(Ec.runAssistant,{method:"POST",headers:u,body:JSON.stringify(l),signal:a?.signal})}catch(h){throw h}if(a?.signal.aborted)return;if(429===c.status)return void i("You have exceeded the request limit. Please wait at least 24 hours and try again.");if(402===c.status)return void i("Hello 😊 The smart assistant for this business is currently inactive because its subscription has expired. If you have any questions, please contact the business directly. We hope to be at your service again soon!");if(!c.ok)throw new Error(`Run assistant request failed with status ${c.status}: ${c.statusText}`);let d;try{d=await c.json()}catch(g){throw new Error("Failed to parse run assistant response")}const f=d.thread_id;if(!f)throw new Error("No thread_id received from run assistant");const p=`${Ec.streamV2}/${f}`;return new Promise(e=>{const t=new EventSource(p),n=()=>{t.close(),e()};a&&a.signal.addEventListener("abort",n),t.onopen=()=>{},t.onerror=()=>{},t.onmessage=e=>{_c("SSE message parse",()=>{const t=JSON.parse(e.data),n={thread_id:t.thread_id,text:t.text,wait:t.wait,tool_name:t.tool_name,products:t.products,status:t.status,suggestions:t.suggestions};Object.keys(n).forEach(e=>void 0===n[e]&&delete n[e]),Object.keys(n).length>0&&r(n)})()},t.addEventListener("start",()=>{}),t.addEventListener("end",()=>{a&&a.signal.removeEventListener("abort",n),t.close(),o(),e()})})}),Tc=Cc("trackProductClick",async(e,t,n)=>{const r={log:{assistant_id:t.assistant_id,thread_id:n,created_at:(new Date).toISOString(),selected_item_id:e.id,tool_call_id:e.tool_call_id}};await fetch(Ec.searchProductLog,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)})}),Ic={create_custom_product_card:"Preparing products to show you...",create_product_card:"Preparing products to show you...",create_order:"Starting the order process...",get_product_detail:"Finding product details for you...",product_retrieval:"Searching for the best options for you...",order_notes:"Adding your notes to the order...",order_persistence:"Saving your order carefully...",payment_processing:"Processing your payment information...",retrieve_faq:"Looking for the best answer for you...",prompt_recommendation:"",similar_products:"Looking for similar products for you...",track_order:"Checking your order status...",thinking:"Thinking..."},Oc=v.createContext(void 0);function Fc({children:e}){const[t,n]=v.useState(null),[r,i]=v.useState(!1),[o,a]=v.useState(null),[s,l]=v.useState(null),[c,u]=v.useState({repliedProduct:null,threadId:null,isRequestInProgress:!1}),[d,p]=v.useState([]),[h,g]=v.useState("welcome"),[m,b]=v.useState(!1),[y,x]=v.useState("starting"),k=v.useRef(null),w=v.useCallback(e=>{u(t=>({...t,repliedProduct:e}))},[]),S=v.useCallback(e=>{if(!e)return[];if(Array.isArray(e))return e;try{return JSON.parse(e)}catch(t){return[]}},[]),_=v.useCallback(()=>{k.current&&(k.current.abort(),k.current=null),u(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),b(!1),x("starting"),g("ongoing"),p(e=>e.filter(e=>"loading"!==e.type))},[]),C=v.useCallback(Cc("initializeBot",async(e,t)=>{if(!e||""===e.trim())return void a("Invalid sharing ID provided");i(!0),a(null),l(t||null);let r=!1;try{const i=await(async()=>{if(window.doriPDPBotDataPromise)try{return await window.doriPDPBotDataPromise}catch(i){}else if(await new Promise(e=>setTimeout(e,50)),window.doriPDPBotDataPromise)try{return await window.doriPDPBotDataPromise}catch(i){}const n=await Rc(e,t||void 0);return n.error?(a(n.error),r=!0,null):n.data?n.data:(r=!0,null)})();if(!i)return void(r||a("No bot data found"));const o={...i,sharing_id:e,suggestedReply:S(i.suggested_prompts||i.suggestedReply)};n(o),g("initial-greeting")}finally{i(!1)}}),[S]),P=v.useCallback(Cc("sendMessage",async({message:e,apiMessage:n},r)=>{if(!t||m)return;wc||(wc=(()=>{if(kc.__loaded)return kc;try{return kc.init("phc_43GZ4mGDIo163cySkBK9l2Yrk5QsO2HBOK9pgMFJMLl",{api_host:"https://us.i.posthog.com",person_profiles:"identified_only",loaded:()=>{}}),kc}catch(e){return null}})());const i={id:Date.now().toString(),type:"user",content:e,timestamp:new Date,repliedProduct:r};p(e=>[...e.filter(e=>"suggestions"!==e.type),i]),k.current&&(k.current.abort(),k.current=null),g("thinking"),b(!0),x("generating"),u(e=>({...e,isRequestInProgress:!0})),k.current=new AbortController;let o={id:(Date.now()+1).toString(),type:"loading",content:"Let me check for a moment...",timestamp:new Date};p(e=>[...e,o]);let a=n||e;r&&(a=`this message is replied to product with id ${r.id}: ${e}`);let l="",d=null,f=[],h=[];try{await zc(a,t,c.threadId,e=>{_c("streaming chunk handler",()=>{if(e.thread_id)u(t=>({...t,threadId:e.thread_id||null}));else if(e.wait)d&&l.trim()&&p(e=>e.map(e=>e.id===d?.id?{...e,content:l}:e)),d=null,l="",p(t=>{return[...t.filter(e=>"loading"!==e.type),{id:(Date.now()+Math.random()).toString(),type:"loading",content:(n=e.tool_name,n&&n in Ic?Ic[n]:"Let me check for a moment..."),timestamp:new Date}];var n});else if(e.text)if(l+=e.text,d)p(e=>e.map(e=>e.id===d?.id?{...e,content:l}:e));else{const e={id:(Date.now()+Math.random()).toString(),type:"mori",content:l,timestamp:new Date};p(t=>[...t.filter(e=>"loading"!==e.type),e]),d=e}else e.products&&e.products.length>0?(f=[...f,...e.products],p(t=>{const n=[...t.filter(e=>"loading"!==e.type)],r=n.findIndex(e=>e.id===d?.id),i={id:(Date.now()+3).toString(),type:"products",content:"Suggested products:",timestamp:new Date,products:f,tool_call_id:e.products?.[0]?.tool_call_id||""};return-1!==r?n.splice(r+1,0,i):n.push(i),n})):e.suggestions&&e.suggestions.length>0&&(h=[...h,...e.suggestions])})()},e=>{if(k.current?.signal.aborted)return k.current=null,u(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),b(!1),x("starting"),g("ongoing"),void p(e=>e.filter(e=>"loading"!==e.type));p(t=>[...t.filter(e=>"loading"!==e.type),{id:(Date.now()+2).toString(),type:"mori",content:e,timestamp:new Date}]),g("ongoing")},()=>{h.length>0&&p(e=>{const t=[...e.filter(e=>"suggestions"!==e.type&&"loading"!==e.type)],n=t.findIndex(e=>e.id===d?.id),r={id:(Date.now()+4).toString(),type:"suggestions",content:"Suggestions:",timestamp:new Date,suggestions:h};return-1!==n?t.splice(n+1,0,r):t.push(r),t}),k.current=null,u(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),b(!1),x("starting"),g("ongoing")},k.current,s)}catch(v){k.current?.signal.aborted||"AbortError"===v.name?(k.current=null,u(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),b(!1),x("starting"),g("ongoing"),p(e=>e.filter(e=>"loading"!==e.type))):(p(e=>[...e.filter(e=>"loading"!==e.type),{id:(Date.now()+2).toString(),type:"mori",content:"Unfortunately, an error occurred. Please try again.",timestamp:new Date}]),g("ongoing"),u(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),b(!1),x("starting"),k.current=null)}}),[t,m,c.threadId]),E=v.useCallback(()=>{k.current&&(k.current.abort(),k.current=null),n(null),p([]),g("welcome"),b(!1),x("starting"),u({repliedProduct:null,threadId:null,isRequestInProgress:!1})},[]),R={botData:t,isLoadingBot:r,botError:o,chatState:c,messages:d,currentStep:h,isInputDisabled:m,inputState:y,initializeBot:C,sendMessage:P,stopCurrentRequest:_,setCurrentStep:g,setInputState:x,setRepliedProduct:w,resetBot:E};return f.jsx(Oc.Provider,{value:R,children:e})}function Ac(){const e=v.useContext(Oc);if(void 0===e)throw new Error("useChatContext must be used within a ChatProvider");return e}const Mc=e=>null!=e;function Nc(e,t,n={}){const{stop:r,getKey:i}=n;return function e(n,o=[]){if(Ht(n)||Array.isArray(n)){const a={};for(const[s,l]of Object.entries(n)){const c=i?.(s,l)??s,u=[...o,c];if(r?.(n,u))return t(n,o);const d=e(l,u);Mc(d)&&(a[c]=d)}return a}return t(n,o)}(e)}function Dc(e,t){return Array.isArray(e)?e.map(e=>Mc(e)?t(e):e):Ht(e)?Nc(e,e=>t(e)):Mc(e)?t(e):e}const Lc=v.forwardRef(function(e,t){const{direction:n="column",align:r,justify:i,gap:o="0.5rem",wrap:a,children:s,separator:l,className:c,...u}=e,d=v.useMemo(()=>function(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":Dc(n,e=>r[e])}}({gap:o,direction:n}),[o,n]),p=v.useMemo(()=>v.isValidElement(l)?function(e){return v.Children.toArray(e).filter(e=>v.isValidElement(e))}(s).map((e,t,n)=>{const r=void 0!==e.key?e.key:t,i=l,o=v.cloneElement(i,{css:[d,i.props.css]});return f.jsxs(v.Fragment,{children:[e,t===n.length-1?null:o]},r)}):s,[s,l,d]);return f.jsx(un.div,{ref:t,display:"flex",alignItems:r,justifyContent:i,flexDirection:n,flexWrap:a,gap:l?void 0:o,className:Vt("chakra-stack",c),...u,children:p})}),jc=v.forwardRef(function(e,t){return f.jsx(Lc,{align:"center",...e,direction:"row",ref:t})}),$c=v.forwardRef(function(e,t){return f.jsx(Lc,{align:"center",...e,direction:"column",ref:t})}),Bc=Object.freeze({}),Wc=Object.freeze({});function Vc(e){const{key:t,recipe:n}=e,r=(i=t||n.className||"Component").charAt(0).toUpperCase()+i.slice(1);var i;const[o,a]=Yt({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(e){const{unstyled:r,...i}=e,o=function(e){const{key:t,recipe:n}=e,r=Kt();return v.useMemo(()=>{const e=n||(null!=t?r.getRecipe(t):{});return r.cva(structuredClone(e))},[t,n,r])}({key:t,recipe:i.recipe||n}),[a,s]=v.useMemo(()=>o.splitVariantProps(i),[o,i]);return{styles:r?Bc:o(a),className:o.className,props:s}}return{withContext:(e,t)=>{const n=un(e,{},t),r=v.forwardRef((e,t)=>{const r=a(),i=v.useMemo(()=>Bt(r,e),[e,r]),{styles:o,className:l,props:c}=s(i);return f.jsx(n,{...c,ref:t,css:[o,i.css],className:Vt(l,i.className)})});return r.displayName=e.displayName||e.name,r},PropsProvider:o,withPropsProvider:function(){return o},usePropsContext:a,useRecipeResult:s}}const Hc=un("span"),{withContext:Uc}=Vc({key:"spinner"}),qc=Uc("span"),Gc=un("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});Gc.displayName="AbsoluteCenter";const Yc=v.forwardRef(function(e,t){const{spinner:n=f.jsx(qc,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:r="start",children:i,text:o,visible:a=!0,...s}=e;return a?o?f.jsxs(Hc,{ref:t,display:"contents",...s,children:["start"===r&&n,o,"end"===r&&n]}):n?f.jsxs(Hc,{ref:t,display:"contents",...s,children:[f.jsx(Gc,{display:"inline-flex",children:n}),f.jsx(Hc,{visibility:"hidden",display:"contents",children:i})]}):f.jsx(Hc,{ref:t,display:"contents",...s,children:i}):i}),{useRecipeResult:Xc,usePropsContext:Kc}=Vc({key:"button"}),Qc=v.forwardRef(function(e,t){const n=Kc(),r=v.useMemo(()=>Bt(n,e),[n,e]),i=Xc(r),{loading:o,loadingText:a,children:s,spinner:l,spinnerPlacement:c,...u}=i.props;return f.jsx(un.button,{type:"button",ref:t,...u,"data-loading":(d=o,d?"":void 0),disabled:o||u.disabled,className:Vt(i.className,r.className),css:[i.styles,r.css],children:!r.asChild&&o?f.jsx(Yc,{spinner:l,text:a,spinnerPlacement:c,children:s}):s});var d}),Zc=v.forwardRef(function(e,t){return f.jsx(Qc,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})}),{withContext:Jc}=Vc({key:"text"}),eu=Jc("p"),tu=v.forwardRef(function(e,t){const{align:n,fit:r="cover",...i}=e;return f.jsx(un.img,{ref:t,objectFit:r,objectPosition:n,className:Vt("chakra-image",e.className),...i})}),{withContext:nu}=Vc({key:"link"}),ru=nu("a"),{StylesProvider:iu,ClassNamesProvider:ou,useRecipeResult:au,withContext:su}=(()=>{const{key:e,recipe:t}={key:"table"},n=(r=e||t.className||"Component").charAt(0).toUpperCase()+r.slice(1);var r;const[i,o]=Yt({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[a,s]=Yt({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[l,c]=Yt({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function u(n){const{unstyled:r,...i}=n,o=function(e){const{key:t,recipe:n}=e,r=Kt();return v.useMemo(()=>{const e=n||(null!=t?r.getSlotRecipe(t):{});return r.sva(structuredClone(e))},[t,n,r])}({key:e,recipe:i.recipe||t}),[a,s]=v.useMemo(()=>o.splitVariantProps(i),[i,o]);return{styles:v.useMemo(()=>r?Wc:o(a),[r,a,o]),classNames:o.classNameMap,props:s}}return{StylesProvider:i,ClassNamesProvider:a,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(e,t,n)=>{const{defaultProps:r,...o}=n??{},s=un(e,{},o),l=v.forwardRef((e,o)=>{const l=c(),d=v.useMemo(()=>Bt(r??{},l,e),[l,e]),{styles:p,props:h,classNames:g}=u(d),m=g[t],b=f.jsx(i,{value:p,children:f.jsx(a,{value:g,children:f.jsx(s,{ref:o,...h,css:[p[t],d.css],className:Vt(d.className,m)})})});return n?.wrapElement?.(b,d)??b});return l.displayName=e.displayName||e.name,l},withContext:(e,t,n)=>{const r=un(e,{},n),i=v.forwardRef((e,n)=>{const{unstyled:i,...a}=e,l=o(),c=s(),u=c?.[t];return f.jsx(r,{...a,css:[!i&&t?l[t]:void 0,e.css],ref:n,className:Vt(e.className,u)})});return i.displayName=e.displayName||e.name,i},withRootProvider:function(e,t={}){const{defaultProps:n}=t,r=t=>{const r=c(),o=v.useMemo(()=>Bt(n,r,t),[r,t]),{styles:s,classNames:l,props:d}=u(o);return f.jsx(i,{value:s,children:f.jsx(a,{value:l,children:f.jsx(e,{...d})})})};return r.displayName=e.displayName||e.name,r},useStyles:o,useClassNames:s}})(),lu=v.forwardRef(function({native:e,...t},n){const{styles:r,props:i,classNames:o}=au(t),a=v.useMemo(()=>e?{...r.root,"& thead":r.header,"& tbody":r.body,"& tfoot":r.footer,"& thead th":r.columnHeader,"& tr":r.row,"& td":r.cell,"& caption":r.caption}:r.root,[r,e]);return f.jsx(ou,{value:o,children:f.jsx(iu,{value:r,children:f.jsx(un.table,{ref:n,...i,css:[a,t.css],className:Vt(o?.root,t.className)})})})}),cu=su("tr","row");un("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const uu=su("thead","header");su("tfoot","footer");const du=su("th","columnHeader"),fu=su("td","cell");su("caption","caption",{defaultProps:{captionSide:"bottom"}});const pu=su("tbody","body");su("colgroup"),su("col");const hu=v.forwardRef(function(e,t){const{templateAreas:n,column:r,row:i,autoFlow:o,autoRows:a,templateRows:s,autoColumns:l,templateColumns:c,inline:u,...d}=e;return f.jsx(un.div,{...d,ref:t,css:[{display:u?"inline-grid":"grid",gridTemplateAreas:n,gridAutoColumns:l,gridColumn:r,gridRow:i,gridAutoFlow:o,gridAutoRows:a,gridTemplateRows:s,gridTemplateColumns:c},e.css]})});var gu=e=>"string"==typeof e;Function.prototype.toString.call(Object);var mu=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})};function vu(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:a}=e,s=v.createContext(a);return s.displayName=t,[s.Provider,function e(){const t=v.useContext(s);if(!t&&n){const t=new Error(o??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}const[bu]=vu({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var yu=e=>"object"==typeof e&&null!==e,xu=e=>yu(e)&&9===e.nodeType;function ku(e){return xu(e)?e:(e=>yu(e)&&e===e.window)(e)?e.document:e?.ownerDocument??document}function wu(e){return(e=>(e=>yu(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e)(e)?wu(e.host):xu(e)?e.defaultView??window:(e=>yu(e)&&1===e.nodeType&&"string"==typeof e.nodeName)(e)?e.ownerDocument?.defaultView??window:window}var Su=new WeakMap,_u=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),Cu=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Pu=e=>{const t={};let n;for(;n=Cu.exec(e);)t[n[1]]=n[2];return t},Eu=(e,t)=>{if(gu(e)){if(gu(t))return`${e};${t}`;e=Pu(e)}else gu(t)&&(t=Pu(t));return Object.assign({},e??{},t??{})};function Ru(...e){let t={};for(let n of e){if(!n)continue;for(let r in t)r.startsWith("on")&&"function"==typeof t[r]&&"function"==typeof n[r]?t[r]=mu(n[r],t[r]):t[r]="className"!==r&&"class"!==r?"style"!==r?void 0!==n[r]?n[r]:t[r]:Eu(t[r],n[r]):_u(t[r],n[r]);for(let r in n)void 0===t[r]&&(t[r]=n[r]);const e=Object.getOwnPropertySymbols(n);for(let r of e)t[r]=n[r]}return t}function zu(...e){return t=>{const n=[];for(const r of e)if("function"==typeof r){const e=r(t);"function"==typeof e&&n.push(e)}else r&&(r.current=t);if(n.length)return()=>{for(const e of n)e()}}}const Tu=e=>{const t=v.memo(v.forwardRef((t,n)=>{const{asChild:r,children:i,...o}=t;if(!r)return v.createElement(e,{...o,ref:n},i);if(!v.isValidElement(i))return null;const a=v.Children.only(i),s=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(a);return v.cloneElement(a,{...Ru(o,a.props),ref:n?zu(n,s):s})}));return t.displayName=e.displayName||e.name,t},Iu=(()=>{const e=new Map;return new Proxy(Tu,{apply:(e,t,n)=>Tu(n[0]),get(t,n){const r=n;return e.has(r)||e.set(r,Tu(r)),e.get(r)}})})();var Ou=()=>e=>Array.from(new Set(e)),Fu=(e,t=[])=>({parts:(...n)=>{if(Mu(t))return Fu(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>Fu(e,[...t,...n]),omit:(...n)=>Fu(e,t.filter(e=>!n.includes(e))),rename:e=>Fu(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,n)=>Object.assign(t,{[n]:{selector:[`&[data-scope="${Au(e)}"][data-part="${Au(n)}"]`,`& [data-scope="${Au(e)}"][data-part="${Au(n)}"]`].join(", "),attrs:{"data-scope":Au(e),"data-part":Au(n)}}}),{})}),Au=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Mu=e=>0===e.length,Nu=Fu("collapsible").parts("root","trigger","content","indicator");Nu.build(),Ou()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var Du=Fu("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Du.build(),Ou()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),Ou()(["xChannel","yChannel"]),Ou()(["channel","orientation"]),Ou()(["value","disabled"]),Ou()(["value","respectAlpha"]),Ou()(["size"]);var Lu=Fu("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Lu.build(),Ou()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),Ou()(["value","disabled"]);var ju=Fu("avatar").parts("root","image","fallback");ju.build(),Ou()(["dir","id","ids","onStatusChange","getRootNode"]);var $u=Fu("checkbox").parts("root","label","control","indicator");$u.build(),Ou()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const Bu=$u.extendWith("group"),[Wu,Vu]=vu({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Hu=Fu("clipboard").parts("root","control","trigger","indicator","input","label");Hu.build(),Ou()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),Ou()(["copied"]);const Uu=Du.extendWith("view");var qu=Fu("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");qu.build(),Ou()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]),Ou()(["htmlFor"]),Ou()(["id"]),Ou()(["item","persistFocus"]);const Gu=qu.extendWith("empty");var Yu=Fu("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");Yu.build(),Ou()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var Xu=Fu("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Xu.build(),Ou()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const Ku=Fu("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Ku.build();var Qu=e=>{if(!e)return;const t=function(e){return Su.has(e)||Su.set(e,wu(e).getComputedStyle(e)),Su.get(e)}(e),n=wu(e),r=ku(e),i=()=>{requestAnimationFrame(()=>{let n;e.style.height="auto",n="content-box"===t.boxSizing?e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),"none"!==t.maxHeight&&n>parseFloat(t.maxHeight)?("hidden"===t.overflowY&&(e.style.overflowY="scroll"),n=parseFloat(t.maxHeight)):"hidden"!==t.overflowY&&(e.style.overflowY="hidden"),e.style.height=`${n}px`})};e.addEventListener("input",i),e.form?.addEventListener("reset",i);const o=Object.getPrototypeOf(e),a=Object.getOwnPropertyDescriptor(o,"value");Object.defineProperty(e,"value",{...a,set(){a?.set?.apply(this,arguments),i()}});const s=new n.ResizeObserver(()=>{requestAnimationFrame(()=>i())});s.observe(e);const l=new n.MutationObserver(()=>i());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",i),()=>{e.removeEventListener("input",i),e.form?.removeEventListener("reset",i),r.fonts?.removeEventListener("loadingdone",i),s.disconnect(),l.disconnect()}};const Zu=v.forwardRef((e,t)=>{const{autoresize:n,...r}=e,i=v.useRef(null),o=Vu(),a=Ru(o?.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return v.useEffect(()=>{if(n)return Qu(i.current)},[n]),f.jsx(Iu.textarea,{...a,ref:zu(t,i)})});Zu.displayName="FieldTextarea";const Ju=Fu("fieldset").parts("root","errorText","helperText","legend");Ju.build();var ed=Fu("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");ed.build(),Ou()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),Ou()(["file","type"]);const td=e=>{const{value:t,children:n}=e,[r,i]=v.useState(),o=v.useMemo(()=>()=>{return("function"==typeof(e=t)?e():e)??r?.getRootNode()??document;var e},[t,r]),a=v.useMemo(()=>({getRootNode:o,getWindow:()=>wu(o()),getDocument:()=>ku(o())}),[o]);return f.jsxs(bu,{value:a,children:[n,!t&&f.jsx("span",{hidden:!0,ref:i})]})};var nd=Fu("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");nd.build(),Ou()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var rd=Fu("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");rd.build(),Ou()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),Ou()(["node","indexPath"]);var id=Fu("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");id.build(),Ou()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),Ou()(["item","highlightOnHover"]),Ou()(["id"]),Ou()(["htmlFor"]);const od=id.extendWith("empty");var ad=Fu("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");ad.build(),Ou()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),Ou()(["closeOnSelect","disabled","value","valueText"]),Ou()(["htmlFor"]),Ou()(["id"]),Ou()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);var sd=Fu("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");sd.build(),Ou()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var ld=Fu("pinInput").parts("root","label","input","control");ld.build(),Ou()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var cd=Fu("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");cd.build(),Ou()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);var ud=Fu("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");ud.build(),Ou()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var dd=Fu("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");dd.build(),Ou()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var fd=Fu("radio-group").parts("root","label","item","itemText","itemControl","indicator");fd.build(),Ou()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),Ou()(["value","disabled","invalid"]);var pd=Fu("rating-group").parts("root","label","item","control");pd.build(),Ou()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),Ou()(["index"]);var hd=Fu("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");hd.build(),Ou()(["dir","getRootNode","ids","id"]);const gd=fd.rename("segment-group");gd.build();var md=Fu("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");md.build(),Ou()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),Ou()(["item","persistFocus"]),Ou()(["id"]),Ou()(["htmlFor"]);var vd=Fu("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");vd.build(),Ou()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),Ou()(["index","name"]);var bd=Fu("switch").parts("root","label","control","thumb");bd.build(),Ou()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var yd=Fu("tooltip").parts("trigger","arrow","arrowTip","positioner","content");function xd(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}yd.build(),Ou()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const kd=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const i="--mix-"+e;return{[i]:r.value,[e]:`var(${i}, ${r.color})`}};function wd(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(e=>wd(e));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=wd(e[n]);return t}function Sd(e,t){if(null==t)return e;for(const n of Object.keys(t))if(void 0!==t[n]&&"__proto__"!==n)if(!Ht(e[n])&&Ht(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Ht(t[n]))Sd(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;r<t[n].length;r++)Ht(e[n][r])&&Ht(t[n][r])?Sd(e[n][r],t[n][r]):e[n][r]=t[n][r]}else Object.assign(e,{[n]:t[n]});return e}function _d(e,...t){for(const n of t)Sd(e,n);return e}const Cd=["value","type","description"],Pd=(...e)=>{const t=_d({},...e.map(wd));return t.theme?.tokens&&Nc(t.theme.tokens,e=>{const t=Object.keys(e).filter(e=>!Cd.includes(e)).length>0,n=Cd.some(t=>null!=e[t]);return t&&n&&(e.DEFAULT||(e.DEFAULT={}),Cd.forEach(t=>{var n;null!=e[t]&&((n=e.DEFAULT)[t]||(n[t]=e[t]),delete e[t])})),e},{stop(e){return(t=e)&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(e).some(e=>Cd.includes(e)||e!==e.toLowerCase()&&e!==e.toUpperCase());var t}}),t};function Ed(){const e=e=>e;return new Proxy(e,{get:()=>e})}const Rd=Ed(),zd=Ed(),Td=/[^a-zA-Z0-9_\u0081-\uffff-]/g,Id=/[A-Z]/g;function Od(e,t={}){const{fallback:n="",prefix:r=""}=t,i=function(e){return e.replace(Id,e=>`-${e.toLowerCase()}`)}(["-",r,(o=e,`${o}`.replace(Td,e=>`\\${e}`))].filter(Boolean).join("-"));var o;return{var:i,ref:`var(${i}${n?`, ${n}`:""})`}}const Fd=(e,t)=>null!=t?`${e}(${t})`:t,Ad=e=>{if((e=>/^var\(--.+\)$/.test(e))(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},Md=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),Nd=kd("borderColor"),Dd=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),Ld=Od("bg-currentcolor"),jd=e=>e===Ld.ref||"currentBg"===e,$d=e=>({...e("colors"),currentBg:Ld}),Bd={conditions:{hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"},utilities:{background:{values:$d,shorthand:["bg"],transform(e,t){if(jd(t.raw))return{background:Ld.ref};const n=kd("background")(e,t);return{...n,[Ld.var]:n?.background}}},backgroundColor:{values:$d,shorthand:["bgColor"],transform(e,t){if(jd(t.raw))return{backgroundColor:Ld.ref};const n=kd("backgroundColor")(e,t);return{...n,[Ld.var]:n?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},backgroundGradient:{shorthand:["bgGradient"],values:e=>({...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}),transform:e=>({"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e})},gradientFrom:{values:$d,transform:kd("--gradient-from")},gradientTo:{values:$d,transform:kd("--gradient-to")},gradientVia:{values:$d,transform:(e,t)=>({...kd("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"})},backgroundImage:{values:e=>({...e("gradients"),...e("assets")}),shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:$d,transform:kd("borderColor")},borderTopColor:{values:$d,transform:kd("borderTopColor")},borderBlockStartColor:{values:$d,transform:kd("borderBlockStartColor")},borderBottomColor:{values:$d,transform:kd("borderBottomColor")},borderBlockEndColor:{values:$d,transform:kd("borderBlockEndColor")},borderLeftColor:{values:$d,transform:kd("borderLeftColor")},borderInlineStartColor:{values:$d,shorthand:["borderStartColor"],transform:kd("borderInlineStartColor")},borderRightColor:{values:$d,transform:kd("borderRightColor")},borderInlineEndColor:{values:$d,shorthand:["borderEndColor"],transform:kd("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:$d,transform:kd("color")},fill:{values:$d,transform:kd("fill")},stroke:{values:$d,transform:kd("stroke")},accentColor:{values:$d,transform:kd("accentColor")},divideX:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}})},divideY:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}})},divideColor:{values:$d,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":Nd(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:$d,transform:kd("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform:e=>"auto"!==e?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}},blur:{values:"blurs",transform:e=>({"--blur":Fd("blur",e)})},brightness:{transform:e=>({"--brightness":Fd("brightness",e)})},contrast:{transform:e=>({"--contrast":Fd("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Fd("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Fd("hue-rotate",Ad(e))})},invert:{transform:e=>({"--invert":Fd("invert",e)})},saturate:{transform:e=>({"--saturate":Fd("saturate",e)})},sepia:{transform:e=>({"--sepia":Fd("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Fd("drop-shadow",e)})},backdropFilter:{transform:e=>"auto"!==e?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Fd("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Fd("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Fd("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Fd("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Fd("hue-rotate",Ad(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Fd("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Fd("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Fd("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Fd("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:$d,transform:kd("outlineColor")},focusRing:Md("&:is(:focus, [data-focus])"),focusVisibleRing:Md("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:$d,transform:kd("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>{const r=n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`;return{[r]:{display:"none"}}}},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){const r=n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`;return{[r]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:$d,transform:kd("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform:e=>({"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"})},ringColor:{values:$d,transform:kd("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:$d,transform:kd("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:$d,transform:kd("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return"auto"===e&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),"auto-gpu"===e&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":Ad(e)})},skewY:{transform:e=>({"--skew-y":Ad(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform:e=>"auto"!==e?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}},spaceXReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}})},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}})},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform:e=>"auto"!==e?{rotate:Ad(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":Ad(e)})},rotateY:{transform:e=>({"--rotate-y":Ad(e)})},translate:{transform:e=>"auto"!==e?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Dd("all");case"position":return Dd("left, right, top, bottom, inset-inline, inset-block");case"colors":return Dd("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Dd("opacity");case"shadow":return Dd("box-shadow");case"transform":return Dd("transform");case"size":return Dd("width, height");case"backgrounds":return Dd("background, background-color, background-image, background-position");case"common":return Dd("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform:e=>!0===e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},lineClamp:{transform:e=>"none"===e?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform:e=>({"--border-spacing-x":e})},borderSpacingY:{values:"spacing",transform:e=>({"--border-spacing-y":e})},srOnly:{values:{type:"boolean"},transform:e=>Wd[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:$d,transform:kd("caretColor")},cursor:{values:"cursor"}}},Wd={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var Vd="".split(","),Hd="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical".split(",").concat(Vd),Ud=new Map(Hd.map(e=>[e,!0]));function qd(e){const t=Object.create(null);return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}var Gd,Yd,Xd=/&|@/,Kd=qd(e=>Ud.has(e)||e.startsWith("--")||Xd.test(e));function Qd(e,t){const n={};return Nc(e,(e,t)=>{e&&(n[t.join(".")]=e.value)},{stop:t}),n}function Zd(){if(Yd)return Gd;Yd=1,Gd=o,o.default=o,o.stable=c,o.stableStringify=c;var e="[...]",t="[Circular]",n=[],r=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,o,a){var l;void 0===a&&(a=i()),s(e,"",0,[],void 0,0,a);try{l=0===r.length?JSON.stringify(e,t,o):JSON.stringify(e,d(t),o)}catch(u){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var c=n.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return l}function a(e,t,i,o){var a=Object.getOwnPropertyDescriptor(o,i);void 0!==a.get?a.configurable?(Object.defineProperty(o,i,{value:e}),n.push([o,i,t,a])):r.push([t,i,e]):(o[i]=e,n.push([o,i,t]))}function s(n,r,i,o,l,c,u){var d;if(c+=1,"object"==typeof n&&null!==n){for(d=0;d<o.length;d++)if(o[d]===n)return void a(t,n,r,l);if(void 0!==u.depthLimit&&c>u.depthLimit)return void a(e,n,r,l);if(void 0!==u.edgesLimit&&i+1>u.edgesLimit)return void a(e,n,r,l);if(o.push(n),Array.isArray(n))for(d=0;d<n.length;d++)s(n[d],d,d,o,n,c,u);else{var f=Object.keys(n);for(d=0;d<f.length;d++){var p=f[d];s(n[p],p,d,o,n,c,u)}}o.pop()}}function l(e,t){return e<t?-1:e>t?1:0}function c(e,t,o,a){void 0===a&&(a=i());var s,l=u(e,"",0,[],void 0,0,a)||e;try{s=0===r.length?JSON.stringify(l,t,o):JSON.stringify(l,d(t),o)}catch(f){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var c=n.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function u(r,i,o,s,c,d,f){var p;if(d+=1,"object"==typeof r&&null!==r){for(p=0;p<s.length;p++)if(s[p]===r)return void a(t,r,i,c);try{if("function"==typeof r.toJSON)return}catch(v){return}if(void 0!==f.depthLimit&&d>f.depthLimit)return void a(e,r,i,c);if(void 0!==f.edgesLimit&&o+1>f.edgesLimit)return void a(e,r,i,c);if(s.push(r),Array.isArray(r))for(p=0;p<r.length;p++)u(r[p],p,p,s,r,d,f);else{var h={},g=Object.keys(r).sort(l);for(p=0;p<g.length;p++){var m=g[p];u(r[m],m,p,s,r,d,f),h[m]=r[m]}if(void 0===c)return h;n.push([c,i,r]),c[i]=h}s.pop()}}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(r.length>0)for(var i=0;i<r.length;i++){var o=r[i];if(o[1]===t&&o[0]===n){n=o[2],r.splice(i,1);break}}return e.call(this,t,n)}}return Gd}const Jd=n(Zd()),ef=e=>{const t=Object.create(null);return function(...n){const r=n.map(e=>Jd(e)).join("|");return void 0===t[r]&&(t[r]=e(...n)),t[r]}},tf="px",nf="em",rf="rem";function of(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${tf}|${nf}|${rf}`),r=e.match(new RegExp(`${t.source}(${n.source})`));return r?.[1]}function af(e=""){if("number"==typeof e)return`${e}px`;const t=of(e);return t?t===tf?e:t===nf||t===rf?`${16*parseFloat(e)}${tf}`:void 0:e}function sf(e=""){const t=of(e);return t?t===rf?e:t===nf?`${parseFloat(e)}${rf}`:t===tf?`${parseFloat(e)/16}${rf}`:void 0:e}function lf(e){return sf(parseFloat(af(e)??"")-.04+"px")}function cf({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const uf=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|\n)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|\n)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),df=uf("width"),ff=uf("height"),pf=e=>({isMin:Cf(e.minMax,e.maxMin,e.min),isMax:Cf(e.maxMin,e.minMax,e.max)}),{isMin:hf,isMax:gf}=pf(df),{isMin:mf,isMax:vf}=pf(ff),bf=/print/i,yf=/^print$/i,xf=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,kf=/(\d)/,wf=Number.MAX_VALUE,Sf={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function _f(e){const t=xf.exec(e)||(hf(e)||mf(e)?kf.exec(e):null);if(!t)return wf;if("0"===t[0])return 0;const n=parseFloat(t[1]),r=t[2];return n*(Sf[r]||1)}function Cf(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}const Pf=ef((e,t)=>{const n=function(e,t){const n=bf.test(e),r=yf.test(e),i=bf.test(t),o=yf.test(t);return n&&i?!r&&o?1:r&&!o?-1:e.localeCompare(t):n?1:i?-1:null}(e,t);if(null!==n)return n;const r=hf(e)||mf(e),i=gf(e)||vf(e),o=hf(t)||mf(t),a=gf(t)||vf(t);if(r&&a)return-1;if(i&&o)return 1;const s=_f(e),l=_f(t);return s===wf&&l===wf?e.localeCompare(t):s===wf?1:l===wf?-1:s!==l?s>l?i?-1:1:i?1:-1:e.localeCompare(t)});function Ef(e){return e.sort(([e],[t])=>Pf(e,t))}function Rf(e){const t=[],n=[],r={};for(const[a,s]of Object.entries(e))a.startsWith("@media")?t.push([a,s]):a.startsWith("@container")?n.push([a,s]):Ht(s)?r[a]=Rf(s):r[a]=s;const i=Ef(t),o=Ef(n);return{...r,...Object.fromEntries(i),...Object.fromEntries(o)}}const zf=/\s*!(important)?/i;function Tf(e){const{transform:t,conditions:n,normalize:r}=e,i=(o=e,ef(function(...e){return _d({},...function(e){const t=function(...e){return e.filter(e=>Ht(e)&&Object.keys(Wt(e)).length>0)}(...e);return 1===t.length?t:t.map(e=>o.normalize(e))}(e))}));var o;return ef(function(...e){const o=i(...e),a=r(o),s=Object.create(null);return Nc(a,(e,r)=>{const i=!!Ut(o=e)&&zf.test(o);var o;if(null==e)return;const[a,...l]=n.sort(r).map(n.resolve);i&&(e=(e=>Ut(e)?e.replace(zf,"").trim():e)(e));let c=t(a,e)??Object.create(null);c=Nc(c,e=>Ut(e)&&i?`${e} !important`:e,{getKey:e=>n.expandAtRule(e)}),function(e,t,n){let r=e;for(const i of t)i&&(r[i]||(r[i]=Object.create(null)),r=r[i]);_d(r,n)}(s,l.flat(),c)}),Rf(s)})}const If=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});const Of={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Ff={reset:0,base:1,tokens:2,recipes:3};const Af=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Mf=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Nf=e=>(e+"").replace(Af,Mf),Df=(e,t)=>{let n="",r=0,i="char",o="",a="";const s=[];for(;r<e.length;){const l=e[r];if("{"===l){const i=e.indexOf("}",r);if(-1===i)break;const o=e.slice(r+1,i);n+=t(o)??o,r=i+1;continue}if("token"===i&&","===l){""===e[r]&&r++,i="fallback",s.push(i);const l=t(o);l?.endsWith(")")&&(n+=l.slice(0,-1)),o="",a="";continue}if("fallback"===i&&", var("===a+l){const t=Lf(e.slice(r+1))+r+1,o=e.slice(r+1,t);if(-1===t)break;n+=", var("+o+")",r=t+1,i=s.pop()??i,a="";continue}if("token"===i||"fallback"===i){if(r++,")"===l){i=s.pop()??i??"char",a+=l;const e=o?t(o)??Nf(o):o;if(a)if(a=a.slice(1).trim(),!a.startsWith("token(")&&a.endsWith(")")&&(a=a.slice(0,-1)),a.includes("token(")){const e=Df(a,t);e&&(a=e.slice(0,-1))}else if(a){const e=t(a);e&&(a=e)}const r=n.at(-1);a?r?.trim()?n+=e.slice(0,-1)+", "+a+")":n+=a:n+=e||")",o="",a="",i="char";continue}"token"===i&&(o+=l),"fallback"===i&&(a+=l);continue}const c=e.indexOf("token(",r);if(-1!==c){const t=c+6;n+=e.slice(r,c),r=t,i="token",s.push(i);continue}n+=l,r++}return n},Lf=e=>{let t=0;const n=["("];for(;t<e.length;){const r=e[t];if("("===r)n.push(r);else if(")"===r&&(n.pop(),0===n.length))return t;t++}return t};function jf(e){const t={};return e.forEach((e,n)=>{e instanceof Map?t[n]=Object.fromEntries(e):t[n]=e}),t}const $f=/({([^}]*)})/g,Bf=/[{}]/g,Wf=/\w+\.\w+/,Vf=e=>{if(!Ut(e))return[];const t=e.match($f);return t?t.map(e=>e.replace(Bf,"")).map(e=>e.trim()):[]};function Hf(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((e,n)=>{const r=t[n];if(r.extensions.conditions)return e;const i=Hf(r);return e.replace(`{${n}}`,i)},e.value),delete e.extensions.references,e.value}function Uf(e){return Ht(e)&&e.reference?e.reference:String(e)}const qf=(e,...t)=>t.map(Uf).join(` ${e} `).replace(/calc/g,""),Gf=(...e)=>`calc(${qf("+",...e)})`,Yf=(...e)=>`calc(${qf("-",...e)})`,Xf=(...e)=>`calc(${qf("*",...e)})`,Kf=(...e)=>`calc(${qf("/",...e)})`,Qf=e=>{const t=Uf(e);return null==t||Number.isNaN(parseFloat(t))?Xf(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Zf=Object.assign(e=>({add:(...t)=>Zf(Gf(e,...t)),subtract:(...t)=>Zf(Yf(e,...t)),multiply:(...t)=>Zf(Xf(e,...t)),divide:(...t)=>Zf(Kf(e,...t)),negate:()=>Zf(Qf(e)),toString:()=>e.toString()}),{add:Gf,subtract:Yf,multiply:Xf,divide:Kf,negate:Qf}),Jf={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:i,registerToken:o}=e;n.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{const n=e.path.slice(),a=r(n,t);if(Ut(e.value)&&"0rem"===e.value)return;const s=structuredClone(e);Object.assign(s.extensions,{negative:!0,prop:`-${e.extensions.prop}`,originalPath:n}),s.value=Zf.negate(a.ref);const l=s.path[s.path.length-1];null!=l&&(s.path[s.path.length-1]=`-${l}`),s.path&&(s.name=i(s.path)),o(s)})}},ep=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),tp={enforce:"post",transform(e){e.allTokens.filter(e=>ep.has(e.extensions.category)&&!e.extensions.negative).forEach(e=>{Object.assign(e.extensions,{pixelValue:af(e.value)})})}},np=[Jf,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,i=t.filter(({extensions:e})=>"colors"===e.category),o=new Map,a=new Map;i.forEach(e=>{const{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{o.set(r(e),e)}),t.roots.forEach(n=>{const i=r(n),s=a.get(i)||[];if(s.push(e),a.set(i,s),e.extensions.default&&1===n.length){const e=t.keys[0]?.filter(Boolean);if(!e.length)return;const i=n.concat(e);o.set(r(i),[])}}))}),o.forEach(e=>{const t=["colors","colorPalette",...e].filter(Boolean),i=r(t),o=r(t.slice(1));n({name:i,value:i,originalValue:i,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:o,virtual:!0}},"pre")})}},tp,{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}}],rp=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:i,originalPath:o}=e.extensions;return{cssVar:r((i?o:e.path).filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,i=Vf(e.value);return i.length?(i.forEach(t=>{const i=r(t.split("."),n);e.value=e.value.replace(`{${i.ref}}`,i)}),e.value):e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match:e=>"colors"===e.extensions.category&&!e.extensions.virtual,transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),0===n.length){const t=[...e.path];t.shift(),n=t}if(0===n.length)return{};const r=n.reduce((e,t,n,r)=>{const i=r.slice(0,n+1);return e.push(i),e},[]),i=n[0],o=t.formatTokenName(n),a=e.path.slice(e.path.indexOf(i)+1).reduce((e,t,n,r)=>(e.push(r.slice(n)),e),[]);return 0===a.length&&a.push([""]),{colorPalette:{value:o,roots:r,keys:a}}}}],ip=e=>Ht(e)&&Object.prototype.hasOwnProperty.call(e,"value");function op(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:i={}}=e,o=e=>e.join("."),a=[],s=new Map,l=new Map,c=new Map,u=new Map,d=new Map,f=new Map,p=new Map,h=new Map,g=[];function m(e,t){a.push(e),s.set(e.name,e),t&&h.forEach(n=>{n.enforce===t&&C(n,e)})}const v=function(e){return e?{breakpoints:Dc(e,e=>({value:e})),sizes:Object.fromEntries(Object.entries(e).map(([e,t])=>[`breakpoint-${e}`,{value:t}]))}:{breakpoints:{},sizes:{}}}(i),b=Wt({...n,breakpoints:v.breakpoints,sizes:{...n.sizes,...v.sizes}});function y(e){return s.get(e)}let x={};const k=ef((e,t)=>d.get(e)??t),w=ef(e=>x[e]||null),S=ef(e=>Df(e,e=>{if(!e)return;if(e.includes("/")){const t=(e=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[t,n]=e.split("/");if(!t||!n)return{invalid:!0,value:t};const r=k(t),i=y(`opacity.${n}`)?.value;if(!i&&isNaN(Number(n)))return{invalid:!0,value:t};const o=r??t;return{invalid:!1,color:o,value:`color-mix(in srgb, ${o} ${i?100*Number(i)+"%":`${n}%`}, transparent)`}})(e);if(t.invalid)throw new Error("Invalid color mix at "+e+": "+t.value);return t.value}return k(e)||(Wf.test(e)?Nf(e):e)})),_={prefix:t,allTokens:a,tokenMap:s,registerToken:m,getByName:y,formatTokenName:o,formatCssVar:(e,t)=>Od(e.join("-"),{prefix:t}),flatMap:d,cssVarMap:c,categoryMap:p,colorPaletteMap:u,getVar:k,getCategoryValues:w,expandReferenceInValue:S};function C(e,t){if(t.extensions.references)return;if(qt(e.match)&&!e.match(t))return;const n=(r=t,e.transform(r,_));var r;switch(!0){case"extensions"===e.type:Object.assign(t.extensions,n);break;case"value"===e.type:t.value=n;break;default:t[e.type]=n}}function P(e){g.forEach(t=>{t.enforce===e&&t.transform(_)})}function E(e){h.forEach(t=>{t.enforce===e&&a.forEach(e=>{C(t,e)})})}return Nc(b,(e,t)=>{const n=t.includes("DEFAULT"),r=(t=ap(t))[0],i=o(t),a=Ut(e)?{value:e}:e,s={value:a.value,originalValue:a.value,name:i,path:t,extensions:{condition:"base",originalPath:t,category:r,prop:o(t.slice(1))}};n&&(s.extensions.default=!0),m(s)},{stop:ip}),Nc(r,(e,t)=>{const n=t.includes("DEFAULT"),r=(t=sp(ap(t)))[0],i=o(t),a=Ut(e.value)?{value:{base:e.value}}:e,s={value:a.value.base||"",originalValue:a.value.base||"",name:i,path:t,extensions:{originalPath:t,category:r,conditions:a.value,condition:"base",prop:o(t.slice(1))}};n&&(s.extensions.default=!0),m(s)},{stop:ip}),function(...e){e.forEach(e=>{h.set(e.name,e)})}(...rp),function(...e){g.push(...e)}(...np),P("pre"),E("pre"),a.forEach(e=>{const t=function(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return Nc(t,(t,r)=>{const i=sp(r);if(!i.length)return;const o=structuredClone(e);o.value=t,o.extensions.condition=i.join(":"),n.push(o)}),n}(e);t&&0!==t.length&&t.forEach(e=>{m(e)})}),a.forEach(e=>{if(t=e.value,!$f.test(t))return;var t;const n=function(e){return Vf(e).map(e=>y(e)).filter(Boolean)}(e.value);e.extensions.references=n.reduce((e,t)=>(e[t.name]=t,e),{})}),a.forEach(e=>{Hf(e)}),P("post"),E("post"),a.forEach(e=>{!function(e){const{condition:t}=e.extensions;t&&(l.has(t)||l.set(t,new Set),l.get(t).add(e))}(e),function(e){const{category:t,prop:n}=e.extensions;t&&(p.has(t)||p.set(t,new Map),p.get(t).set(n,e))}(e),function(e){const{condition:t,negative:n,virtual:r,cssVar:i}=e.extensions;!n&&!r&&t&&i&&(c.has(t)||c.set(t,new Map),c.get(t).set(i.var,e.value))}(e),function(e){const{category:t,prop:n,cssVar:r,negative:i}=e.extensions;if(!t)return;f.has(t)||f.set(t,new Map);const o=i?e.extensions.conditions?e.originalValue:e.value:r.ref;f.get(t).set(n,o),d.set([t,n].join("."),o)}(e),function(e){const{colorPalette:t,virtual:n,default:r}=e.extensions;t&&!n&&t.roots.forEach(n=>{const i=o(n);u.has(i)||u.set(i,new Map);const a=function(e,t){const n=e.findIndex((n,r)=>t.every((t,n)=>e[r+n]===t));return-1===n||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}([...e.path],[...n]),s=y(o(a));if(!s||!s.extensions.cssVar)return;const{var:l}=s.extensions.cssVar;if(u.get(i).set(l,e.extensions.cssVar.ref),r&&1===n.length){const r=y(o(["colors","colorPalette"]));if(!r)return;const i=y(o(e.path));if(!i)return;const a=t.keys[0]?.filter(Boolean);if(!a.length)return;const s=o(n.concat(a));u.has(s)||u.set(s,new Map),u.get(s).set(r.extensions.cssVar.var,i.extensions.cssVar.ref)}})}(e)}),x=jf(f),_}function ap(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function sp(e){return e.filter(e=>"base"!==e)}var lp;lp=["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"],Array.from(new Set(lp));const cp={};function up(...e){const t=Pd(...e),{theme:n={},utilities:r={},globalCss:i={},cssVarsRoot:o=":where(:root, :host)",cssVarsPrefix:a="chakra",preflight:s}=t,l=function(e){const t=e.layers??Of,n=Object.values(t).sort((e,t)=>Ff[e]-Ff[t]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(n,r){if(e.disableLayers)return r;const i=t[n];return{[`@layer ${i}`]:r}}}}(t),c=op({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:a}),u=function(e){const t=function(e){return Object.entries(e).sort(([,e],[,t])=>parseInt(e,10)<parseInt(t,10)?-1:1).map(([e,t],n,r)=>{let i=null;return n<=r.length-1&&(i=r[n+1]?.[1]),null!=i&&(i=lf(i)),[e,{name:e,min:sf(t),max:i}]})}(e),n=Object.fromEntries(t);function r(e){return n[e]}function i(e){return cf(r(e))}const o=function(){const e=function(){const e=Object.keys(n),t=function(e){const t=[];return e.forEach((n,r)=>{let i=r;i++;let o=e[i];for(;o;)t.push([n,o]),i++,o=e[i]}),t}(e),o=e.flatMap(e=>{const t=r(e),n=[`${e}Down`,cf({max:lf(t.min)})];return[[e,cf({min:t.min})],[`${e}Only`,i(e)],n]}).filter(([,e])=>""!==e).concat(t.map(([e,t])=>{const n=r(e),i=r(t);return[`${e}To${o=t,o.charAt(0).toUpperCase()+o.slice(1)}`,cf({min:n.min,max:lf(i.min)})];var o}));return Object.fromEntries(o)}();return Object.fromEntries(Object.entries(e))}();return{values:Object.values(n),only:i,keys:function(){return["base",...Object.keys(n)]},conditions:o,getCondition:e=>o[e],up:function(e){return cf({min:r(e).min})},down:function(e){return cf({max:lf(r(e).min)})}}}(n.breakpoints??cp),d=(e=>{const{breakpoints:t,conditions:n={}}=e,r=(i=n,o=(e,t)=>[`_${e}`,t],Object.fromEntries(Object.entries(i).map(([e,t])=>o(e,t))));var i,o;const a=Object.assign({},r,t.conditions);function s(){return Object.keys(a)}function l(e){return s().includes(e)||/^@|&|&$/.test(e)||e.startsWith("_")}return{keys:s,sort:function(e){return e.filter(e=>"base"!==e).sort((e,t)=>{const n=l(e),r=l(t);return n&&!r?1:!n&&r?-1:0})},has:l,resolve:function(e){return Reflect.get(a,e)||e},breakpoints:t.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?t.getCondition(e.replace("@breakpoint ","")):e}}})({conditions:t.conditions??cp,breakpoints:u}),f=function(e){const t=(n=e.config,Object.fromEntries(Object.entries(n).map(([e,t])=>[e,t])));var n;const r=e.tokens,i=new Map,o=new Map;function a(e,n){t[e]=n,s(e,n)}const s=(e,t)=>{const n=u(t);n&&(o.set(e,n),c(e,t))},l=new Map,c=(e,t)=>{if(!t)return;const n=u(t,e=>`type:Tokens["${e}"]`);if("object"==typeof n&&n.type)return void l.set(e,new Set([`type:${n.type}`]));if(n){const t=new Set(Object.keys(n));l.set(e,t)}const r=l.get(e)??new Set;t.property&&l.set(e,r.add(`CssProperties["${t.property}"]`))},u=(e,t)=>{const{values:n}=e,i=e=>{const n=t?.(e);return n?{[n]:n}:void 0};return Ut(n)?i?.(n)??r.getCategoryValues(n)??{}:Array.isArray(n)?n.reduce((e,t)=>(e[t]=t,e),{}):qt(n)?n(t?i:r.getCategoryValues):n},d=ef((e,t)=>({[e]:e.startsWith("--")?r.getVar(t,t):t})),f=Object.assign(r.getVar,{raw:e=>r.getByName(e)}),p=ef((e,n)=>{const i=g(e);Ut(n)&&!n.includes("_EMO_")&&(n=r.expandReferenceInValue(n));const a=t[i];if(!a)return d(i,n);const s=o.get(i)?.[n];return a.transform?a.transform(s??n,{raw:n,token:f,utils:{colorMix:e=>((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||"currentBg"===n)return{invalid:!0,value:n};const i=t(`colors.${n}`),o=t.raw(`opacity.${r}`)?.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:n};const a=i??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${o?100*Number(o)+"%":`${r}%`}, transparent)`}})(e,f)}}):d(e,s??n)});(()=>{for(const[e,n]of Object.entries(t)){const{shorthand:t}=n??{};t&&(Array.isArray(t)?t:[t]).forEach(t=>i.set(t,e))}})(),(()=>{const e=jf(r.colorPaletteMap);a("colorPalette",{values:Object.keys(e),transform:ef(t=>e[t])})})(),(()=>{for(const[e,n]of Object.entries(t))n&&s(e,n)})(),(()=>{for(const[e,n]of Object.entries(t))n&&c(e,n)})();const h=i.size>0,g=ef(e=>i.get(e)??e);return{keys:()=>[...Array.from(i.keys()),...Object.keys(t)],hasShorthand:h,transform:p,shorthands:i,resolveShorthand:g,register:a,getTypes:()=>{const e=new Map;for(const[t,n]of l.entries()){if(0===n.size){e.set(t,["string"]);continue}const r=Array.from(n).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,r)}return e},addPropertyType:(e,t)=>{const n=l.get(e)??new Set;l.set(e,new Set([...n,...t]))}}}({config:r,tokens:c});!function(){const{textStyles:e,layerStyles:t,animationStyles:r}=n,i=Wt({textStyle:e,layerStyle:t,animationStyle:r});for(const[n,o]of Object.entries(i)){const e=Qd(o??cp,dp);f.register(n,{values:Object.keys(e),transform:t=>b(e[t])})}}(),f.addPropertyType("animationName",Object.keys(n.keyframes??cp));const p=new Set(["css",...f.keys(),...d.keys()]),h=ef(e=>p.has(e)||Kd(e)),g=e=>Array.isArray(e)?e.reduce((e,t,n)=>{const r=d.breakpoints[n];return null!=t&&(e[r]=t),e},{}):e,m=function(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:i}=t;return function(e){return Nc(e,n,{stop:e=>Array.isArray(e),getKey:r?i:void 0})}}({utility:f,normalize:g}),v=function(e){const{conditions:t,isValidProperty:n}=e;return function(e){return Nc(e,e=>e,{getKey:(e,r)=>Ht(r)?t.has(e)||n(e)?e:function(e){const t=[];let n=0,r="",i=!1;for(let o=0;o<e.length;o++){const a=e[o];"\\"!==a||i?i?(i=!1,r+=a):("("===a?n++:")"===a&&n--,","===a&&0===n?(t.push(r.trim()),r=""):r+=a):(i=!0,r+=a)}return r&&t.push(r.trim()),t}(e).map(e=>"&"+e).join(", "):e})}}({conditions:d,isValidProperty:h}),b=Tf({transform:f.transform,conditions:d,normalize:m}),y=function(e){const{css:t,conditions:n,normalize:r,layers:i}=e;return function o(a={}){const{base:s,variants:l,defaultVariants:c,compoundVariants:u}=If(a),d=Tf({conditions:n,normalize:r,transform:(e,t)=>l[e]?.[t]}),f=(e={})=>{const n=r({...c,...Wt(e)});let o={...s};_d(o,d(n));const a=function(e,n){let r={};return e.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>n[e]===t))&&(r=t(r,e.css))}),r}(u,n);return i.wrap("recipes",t(o,a))},p=Object.keys(l),h=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,Object.keys(t)]));return Object.assign(e=>t(f(e)),{className:a.className,__cva__:!0,variantMap:h,variantKeys:p,raw:f,config:a,splitVariantProps:e=>{const t=xd(e,["recipe"]),[n,r]=Zt(t,p);return p.includes("colorPalette")||(n.colorPalette=e.colorPalette||c.colorPalette),p.includes("orientation")&&(r.orientation=e.orientation),[n,r]},merge(t){return o(function(e){const{css:t}=e;return function(e,n){const r=If(n.config),i=Gt(e.variantKeys,Object.keys(n.variants)),o=t(e.base,r.base),a=Object.fromEntries(i.map(n=>[n,t(e.config.variants[n],r.variants[n])])),s=_d(e.config.defaultVariants,r.defaultVariants),l=[...e.compoundVariants,...r.compoundVariants];return{className:Vt(e.className,n.className),base:o,variants:a,defaultVariants:s,compoundVariants:l}}}(e)(this,t))}})}}({css:b,conditions:d,normalize:m,layers:l}),x=function(e){const{cva:t}=e;return function(e={}){const n=Object.entries(((e={})=>{const t=t=>{return{base:e.base?.[t]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?(n=e.compoundVariants,r=t,n.filter(e=>e.css[r]).map(e=>({...e,css:e.css[r]}))):[]};var n,r},n=(e.slots??[]).map(e=>[e,t(e)]);for(const[r,i]of Object.entries(e.variants??{}))for(const[e,t]of Object.entries(i))n.forEach(([n,i])=>{var o;(o=i.variants)[r]??(o[r]={}),i.variants[r][e]=t[n]??{}});return Object.fromEntries(n)})(e)).map(([e,n])=>[e,t(n)]),r=e.variants??{},i=Object.keys(r),o=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,Object.keys(t)]));let a={};return e.className&&(a=Object.fromEntries(e.slots.map(t=>[t,`${e.className}__${t}`]))),Object.assign(function(e){const t=n.map(([t,n])=>[t,n(e)]);return Object.fromEntries(t)},{variantMap:o,variantKeys:i,splitVariantProps:function(t){const n=xd(t,["recipe"]),[r,o]=Zt(n,i);return i.includes("colorPalette")||(r.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),i.includes("orientation")&&(o.orientation=t.orientation),[r,o]},classNameMap:a})}}({cva:y});function k(){const e={};for(const[t,n]of c.cssVarMap.entries()){const r=Object.fromEntries(n);if(0===Object.keys(r).length)continue;const i="base"===t?o:d.resolve(t),a=i.startsWith("@");_d(e,b(v({[i]:a?{[o]:r}:r})))}return l.wrap("tokens",e)}function w(){const e=Object.fromEntries(Object.entries(n.keyframes??cp).map(([e,t])=>[`@keyframes ${e}`,t])),t=Object.assign({},e,b(v(i)));return l.wrap("base",t)}function S(){const e=function(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Ht(t)?t:{};let i="";n&&"parent"===r?i=`${n} `:n&&"element"===r&&(i=`&${n}`);const o={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},a={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if("element"===r){const e=Object.entries(o).reduce((e,[t,n])=>(e[t]={[i]:n},e),{});Object.assign(a,e)}else i?a[i]=o:Object.assign(a,o);return a}({preflight:s});return l.wrap("reset",e)}const _=function(e){const t=new Map;return e.allTokens.forEach(e=>{const{cssVar:n,virtual:r,conditions:i}=e.extensions,o=i||r?n.ref:e.value;t.set(e.name,{value:o,variable:n.ref})}),t}(c),C=(e,t)=>_.get(e)?.value||t;function P(e){return Object.hasOwnProperty.call(n.recipes??cp,e)}function E(e){return Object.hasOwnProperty.call(n.slotRecipes??cp,e)}C.var=(e,t)=>_.get(e)?.variable||t;const R=[S(),w(),k()],z={layerStyles:fp(n.layerStyles??cp),textStyles:fp(n.textStyles??cp),animationStyles:fp(n.animationStyles??cp),tokens:pp(c,Object.keys(n.tokens??cp),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:pp(c,Object.keys(n.semanticTokens??cp),e=>!!e.extensions.conditions),keyframes:hp(n.keyframes??cp),breakpoints:hp(n.breakpoints??cp)};return{$$chakra:!0,_config:t,_global:R,breakpoints:u,tokens:c,conditions:d,utility:f,token:C,properties:p,layers:l,isValidProperty:h,splitCssProps:function(e){return Zt(e,h)},normalizeValue:g,getTokenCss:k,getGlobalCss:w,getPreflightCss:S,css:b,cva:y,sva:x,getRecipe:function(e,t){return n.recipes?.[e]??t},getSlotRecipe:function(e,t){return n.slotRecipes?.[e]??t},hasRecipe:function(e){return P(e)||E(e)},isRecipe:P,isSlotRecipe:E,query:z}}const dp=e=>Ht(e)&&"value"in e,fp=e=>({list:()=>Object.keys(Qd(e,dp)),search(e){return this.list().filter(t=>t.includes(e))}}),pp=(e,t,n)=>({categoryKeys:t,list:t=>Array.from(e.categoryMap.get(t)?.entries()??[]).reduce((e,[t,r])=>(n(r,t)&&e.push(t),e),[]),search(e,t){return this.list(e).filter(e=>e.includes(t))}}),hp=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}}),gp="var(--chakra-empty,/*!*/ /*!*/)",mp={"*":{fontFeatureSettings:'"cv11"',"--ring-inset":gp,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,gp])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,gp])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}},vp={className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}},bp={className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}},{variants:yp,defaultVariants:xp}=vp,kp={className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}},wp={className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}},Sp={className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}},_p={badge:vp,button:{className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}},code:{className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:yp,defaultVariants:xp},container:{className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}},heading:{className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}},input:wp,inputAddon:{className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:wp.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}},kbd:{className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}},link:{className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}},mark:{className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}},separator:{className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}},skeleton:{className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}},skipNavLink:{className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}},spinner:{className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}},textarea:{className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}},icon:{className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}},checkmark:bp,radiomark:Sp,colorSwatch:kp},Cp=zd.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),Pp=zd.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),Ep=zd.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),Rp=Lu.extendWith("itemBody"),zp=Fu("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),Tp=Fu("alert").parts("title","description","root","indicator","content"),Ip=Fu("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),Op=Fu("blockquote").parts("root","icon","content","caption"),Fp=Fu("card").parts("root","header","body","footer","title","description"),Ap=Fu("checkbox-card",["root","control","label","description","addon","indicator","content"]),Mp=Fu("data-list").parts("root","item","itemLabel","itemValue"),Np=Yu.extendWith("header","body","footer","backdrop"),Dp=Yu.extendWith("header","body","footer","backdrop"),Lp=Xu.extendWith("textarea"),jp=Fu("empty-state",["root","content","indicator","title","description"]),$p=Ku.extendWith("requiredIndicator"),Bp=Ju.extendWith("content"),Wp=ed.extendWith("itemContent","dropzoneContent","fileText"),Vp=Fu("list").parts("root","item","indicator"),Hp=ad.extendWith("itemCommand"),Up=Fu("select").parts("root","field","indicator"),qp=cd.extendWith("header","body","footer"),Gp=fd.extendWith("itemAddon","itemIndicator"),Yp=Gp.extendWith("itemContent","itemDescription"),Xp=pd.extendWith("itemIndicator"),Kp=md.extendWith("indicatorGroup"),Qp=Gu.extendWith("indicatorGroup","empty"),Zp=vd.extendWith("markerIndicator"),Jp=Fu("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),eh=Fu("status").parts("root","indicator"),th=Fu("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),nh=bd.extendWith("indicator"),rh=Fu("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),ih=Fu("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),oh=Fu("tabs").parts("root","trigger","list","content","contentGroup","indicator"),ah=Fu("tag").parts("root","label","closeTrigger","startElement","endElement"),sh=Fu("timeline").parts("root","item","content","separator","indicator","connector","title","description"),lh=Uu.extendWith("channelText"),ch=Fu("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Hu.extendWith("valueText");const uh=od,dh={className:"chakra-accordion",slots:Rp.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}},fh={className:"chakra-action-bar",slots:zp.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}},ph={slots:Tp.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}},hh={slots:ju.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}},gh={className:"chakra-blockquote",slots:Op.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}},mh={className:"chakra-breadcrumb",slots:Ip.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}},vh={className:"chakra-card",slots:Fp.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}},bh={slots:Bu.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:bp.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:bp.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:bp.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:bp.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:bp.variants?.size?.lg}},variant:{outline:{control:bp.variants?.variant?.outline},solid:{control:bp.variants?.variant?.solid},subtle:{control:bp.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}},yh={slots:Ap.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:bp.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:bp.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:bp.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:bp.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:bp.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:bp.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:bp.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:bp.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},xh={slots:ch.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}},kh={slots:Nu.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}},wh={className:"colorPicker",slots:lh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...kp.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...wp.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:wp.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:wp.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:wp.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:wp.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:wp.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:wp.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:wp.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:wp.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:wp.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}},Sh={className:"chakra-combobox",slots:Qp.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}},_h={slots:Mp.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}},Ch={slots:Np.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}},Ph={slots:Dp.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}},Eh={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"},Rh={slots:Lp.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Eh,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Eh,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}},zh={slots:jp.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}},Th={className:"chakra-field",slots:$p.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}},Ih={className:"fieldset",slots:Bp.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}},Oh={className:"chakra-file-upload",slots:Wp.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}},Fh={className:"chakra-hover-card",slots:nd.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}},Ah={className:"chakra-list",slots:Vp.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}},Mh={className:"chakra-listbox",slots:uh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}},Nh={className:"chakra-menu",slots:Hp.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}},Dh={className:"chakra-select",slots:Kp.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}},Lh={className:"chakra-native-select",slots:Up.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:Dh.variants?.variant.outline.trigger},subtle:{field:Dh.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:Dh.defaultVariants};function jh(e,t){const n={};for(const r in e){const i=t(r,e[r]);n[i[0]]=i[1]}return n}const $h={display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}},Bh={className:"chakra-number-input",slots:sd.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...wp.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...$h,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...$h,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:wp.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:wp.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:wp.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:wp.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:jh(wp.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}},{variants:Wh,defaultVariants:Vh}=wp,Hh={className:"chakra-pin-input",slots:ld.keys(),base:{input:{...wp.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:jh(Wh.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:jh(Wh.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:Vh},Uh={className:"chakra-popover",slots:qp.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}},qh={slots:ud.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}},Gh={className:"chakra-progress-circle",slots:ud.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}},Yh={slots:dd.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}},Xh={className:"chakra-radio-card",slots:Yp.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Sp.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:Sp.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Sp.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Sp.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Sp.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Sp.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Sp.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Sp.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},Kh={className:"chakra-radio-group",slots:Gp.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Sp.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Sp.variants?.variant?.outline},subtle:{itemControl:Sp.variants?.variant?.subtle},solid:{itemControl:Sp.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Sp.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Sp.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Sp.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Sp.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}},Qh={className:"chakra-rating-group",slots:Xp.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}},Zh={className:"chakra-scroll-area",slots:hd.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}},Jh={className:"chakra-segment-group",slots:gd.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}},eg={className:"chakra-slider",slots:Zp.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}},tg={className:"chakra-stat",slots:Jp.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}},ng={className:"chakra-status",slots:eh.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}},rg={className:"chakra-steps",slots:th.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}},ig={slots:nh.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}},og={className:"chakra-table",slots:rh.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}},ag={slots:oh.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}},sg=vp.variants?.variant,lg={slots:ah.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:sg?.subtle},solid:{root:sg?.solid},outline:{root:sg?.outline},surface:{root:sg?.surface}}},defaultVariants:{size:"md",variant:"surface"}},cg={slots:sh.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}},ug={display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}},dg={flex:"1"},fg={_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},pg={_selected:{layerStyle:"fill.solid"}},hg={accordion:dh,actionBar:fh,alert:ph,avatar:hh,blockquote:gh,breadcrumb:mh,card:vh,checkbox:bh,checkboxCard:yh,codeBlock:xh,collapsible:kh,dataList:_h,dialog:Ch,drawer:Ph,editable:Rh,emptyState:zh,field:Th,fieldset:Ih,fileUpload:Oh,hoverCard:Fh,list:Ah,listbox:Mh,menu:Nh,nativeSelect:Lh,numberInput:Bh,pinInput:Hh,popover:Uh,progress:qh,progressCircle:Gh,radioCard:Xh,radioGroup:Kh,ratingGroup:Qh,scrollArea:Zh,segmentGroup:Jh,select:Dh,combobox:Sh,slider:eg,stat:tg,steps:rg,switch:ig,table:og,tabs:ag,tag:lg,toast:{slots:ih.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}},tooltip:{slots:yd.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}},status:ng,timeline:cg,colorPicker:wh,qrCode:Yh,treeView:{slots:rd.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:ug,item:ug,itemText:dg,branchText:dg,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:fg,item:fg},solid:{branchControl:pg,item:pg}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}},gg=Rd.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),mg=Rd.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),vg=Rd.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),bg=Rd.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),yg=Rd.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),xg=Rd.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),kg=Rd.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),wg=Rd.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),Sg=Rd.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),_g=Rd.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),Cg='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',Pg=Rd.fonts({heading:{value:`Inter, ${Cg}`},body:{value:`Inter, ${Cg}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),Eg=Rd.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),Rg=Rd.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),zg=Rd.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),Tg=Rd.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),Ig=Rd.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),Og=Rd.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),Fg=Rd.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),Ag=Rd.sizes({...Ig,...Tg,...Fg,...Og}),Mg=Rd.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),Ng=Pd(Bd,{preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:mp,theme:{breakpoints:{sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},keyframes:{spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},tokens:{aspectRatios:mg,animations:gg,blurs:vg,borders:bg,colors:yg,durations:kg,easings:wg,fonts:Pg,fontSizes:Sg,fontWeights:_g,letterSpacings:Eg,lineHeights:Rg,radii:zg,spacing:Tg,sizes:Ag,zIndex:Mg,cursor:xg},semanticTokens:{colors:Cp,shadows:Ep,radii:Pp},recipes:_p,slotRecipes:hg,textStyles:{"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}},layerStyles:{"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}},animationStyles:{"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}}});function Dg(e,t){const n=Kt();return v.useMemo(()=>(Array.isArray(t)?t:[t]).map(t=>n.token(`${e}.${t}`,t)),[n,e,t])}up(Ng);const{withContext:Lg}=Vc({key:"badge"}),jg=Lg("span"),{useRecipeResult:$g}=Vc({key:"icon"}),Bg=v.forwardRef(function(e,t){const{styles:n,className:r,props:i}=$g({asChild:!e.as,...e});return f.jsx(un.svg,{ref:t,focusable:!1,"aria-hidden":"true",...i,css:[n,e.css],className:Vt(r,e.className)})});function Wg(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,o=v.Children.toArray(e.path),a=v.forwardRef((e,r)=>f.jsx(Bg,{ref:r,asChild:!1,viewBox:t,...i,...e,children:o.length?o:f.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const Vg=v.forwardRef(function(e,t){const{columns:n,minChildWidth:r,...i}=e,o=Kt(),a=r?function(e,t){return Dc(e,e=>{const n=t.tokens.getVar(`sizes.${e}`,"number"==typeof(r=e)?`${r}px`:r);var r;return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}(r,o):Dc(n,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return f.jsx(hu,{ref:t,templateColumns:a,...i})}),{withContext:Hg}=Vc({key:"textarea"}),Ug=Hg(Zu),qg=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yg={};function Xg(e,t){return(Yg.jsx?Gg:qg).test(e)}const Kg=/[ \t\n\f\r]/g;function Qg(e){return""===e.replace(Kg,"")}class Zg{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function Jg(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Zg(n,r,t)}function em(e){return e.toLowerCase()}Zg.prototype.normal={},Zg.prototype.property={},Zg.prototype.space=void 0;class tm{constructor(e,t){this.attribute=t,this.property=e}}tm.prototype.attribute="",tm.prototype.booleanish=!1,tm.prototype.boolean=!1,tm.prototype.commaOrSpaceSeparated=!1,tm.prototype.commaSeparated=!1,tm.prototype.defined=!1,tm.prototype.mustUseProperty=!1,tm.prototype.number=!1,tm.prototype.overloadedBoolean=!1,tm.prototype.property="",tm.prototype.spaceSeparated=!1,tm.prototype.space=void 0;let nm=0;const rm=um(),im=um(),om=um(),am=um(),sm=um(),lm=um(),cm=um();function um(){return 2**++nm}const dm=Object.freeze(Object.defineProperty({__proto__:null,boolean:rm,booleanish:im,commaOrSpaceSeparated:cm,commaSeparated:lm,number:am,overloadedBoolean:om,spaceSeparated:sm},Symbol.toStringTag,{value:"Module"})),fm=Object.keys(dm);class pm extends tm{constructor(e,t,n,r){let i=-1;if(super(e,t),hm(this,"space",r),"number"==typeof n)for(;++i<fm.length;){const e=fm[i];hm(this,fm[i],(n&dm[e])===dm[e])}}}function hm(e,t,n){n&&(e[t]=n)}function gm(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new pm(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[em(r)]=r,n[em(o.attribute)]=r}return new Zg(t,n,e.space)}pm.prototype.defined=!0;const mm=gm({properties:{ariaActiveDescendant:null,ariaAtomic:im,ariaAutoComplete:null,ariaBusy:im,ariaChecked:im,ariaColCount:am,ariaColIndex:am,ariaColSpan:am,ariaControls:sm,ariaCurrent:null,ariaDescribedBy:sm,ariaDetails:null,ariaDisabled:im,ariaDropEffect:sm,ariaErrorMessage:null,ariaExpanded:im,ariaFlowTo:sm,ariaGrabbed:im,ariaHasPopup:null,ariaHidden:im,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:sm,ariaLevel:am,ariaLive:null,ariaModal:im,ariaMultiLine:im,ariaMultiSelectable:im,ariaOrientation:null,ariaOwns:sm,ariaPlaceholder:null,ariaPosInSet:am,ariaPressed:im,ariaReadOnly:im,ariaRelevant:null,ariaRequired:im,ariaRoleDescription:sm,ariaRowCount:am,ariaRowIndex:am,ariaRowSpan:am,ariaSelected:im,ariaSetSize:am,ariaSort:null,ariaValueMax:am,ariaValueMin:am,ariaValueNow:am,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function vm(e,t){return t in e?e[t]:t}function bm(e,t){return vm(e,t.toLowerCase())}const ym=gm({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lm,acceptCharset:sm,accessKey:sm,action:null,allow:null,allowFullScreen:rm,allowPaymentRequest:rm,allowUserMedia:rm,alt:null,as:null,async:rm,autoCapitalize:null,autoComplete:sm,autoFocus:rm,autoPlay:rm,blocking:sm,capture:null,charSet:null,checked:rm,cite:null,className:sm,cols:am,colSpan:null,content:null,contentEditable:im,controls:rm,controlsList:sm,coords:am|lm,crossOrigin:null,data:null,dateTime:null,decoding:null,default:rm,defer:rm,dir:null,dirName:null,disabled:rm,download:om,draggable:im,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:rm,formTarget:null,headers:sm,height:am,hidden:om,high:am,href:null,hrefLang:null,htmlFor:sm,httpEquiv:sm,id:null,imageSizes:null,imageSrcSet:null,inert:rm,inputMode:null,integrity:null,is:null,isMap:rm,itemId:null,itemProp:sm,itemRef:sm,itemScope:rm,itemType:sm,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:rm,low:am,manifest:null,max:null,maxLength:am,media:null,method:null,min:null,minLength:am,multiple:rm,muted:rm,name:null,nonce:null,noModule:rm,noValidate:rm,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:rm,optimum:am,pattern:null,ping:sm,placeholder:null,playsInline:rm,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:rm,referrerPolicy:null,rel:sm,required:rm,reversed:rm,rows:am,rowSpan:am,sandbox:sm,scope:null,scoped:rm,seamless:rm,selected:rm,shadowRootClonable:rm,shadowRootDelegatesFocus:rm,shadowRootMode:null,shape:null,size:am,sizes:null,slot:null,span:am,spellCheck:im,src:null,srcDoc:null,srcLang:null,srcSet:null,start:am,step:null,style:null,tabIndex:am,target:null,title:null,translate:null,type:null,typeMustMatch:rm,useMap:null,value:im,width:am,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:sm,axis:null,background:null,bgColor:null,border:am,borderColor:null,bottomMargin:am,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:rm,declare:rm,event:null,face:null,frame:null,frameBorder:null,hSpace:am,leftMargin:am,link:null,longDesc:null,lowSrc:null,marginHeight:am,marginWidth:am,noResize:rm,noHref:rm,noShade:rm,noWrap:rm,object:null,profile:null,prompt:null,rev:null,rightMargin:am,rules:null,scheme:null,scrolling:im,standby:null,summary:null,text:null,topMargin:am,valueType:null,version:null,vAlign:null,vLink:null,vSpace:am,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:rm,disableRemotePlayback:rm,prefix:null,property:null,results:am,security:null,unselectable:null},space:"html",transform:bm}),xm=gm({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:cm,accentHeight:am,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:am,amplitude:am,arabicForm:null,ascent:am,attributeName:null,attributeType:null,azimuth:am,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:am,by:null,calcMode:null,capHeight:am,className:sm,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:am,diffuseConstant:am,direction:null,display:null,dur:null,divisor:am,dominantBaseline:null,download:rm,dx:null,dy:null,edgeMode:null,editable:null,elevation:am,enableBackground:null,end:null,event:null,exponent:am,externalResourcesRequired:null,fill:null,fillOpacity:am,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:lm,g2:lm,glyphName:lm,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:am,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:am,horizOriginX:am,horizOriginY:am,id:null,ideographic:am,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:am,k:am,k1:am,k2:am,k3:am,k4:am,kernelMatrix:cm,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:am,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:am,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:am,overlineThickness:am,paintOrder:null,panose1:null,path:null,pathLength:am,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:sm,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:am,pointsAtY:am,pointsAtZ:am,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cm,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cm,rev:cm,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cm,requiredFeatures:cm,requiredFonts:cm,requiredFormats:cm,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:am,specularExponent:am,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:am,strikethroughThickness:am,string:null,stroke:null,strokeDashArray:cm,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:am,strokeOpacity:am,strokeWidth:null,style:null,surfaceScale:am,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cm,tabIndex:am,tableValues:null,target:null,targetX:am,targetY:am,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cm,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:am,underlineThickness:am,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:am,values:null,vAlphabetic:am,vMathematical:am,vectorEffect:null,vHanging:am,vIdeographic:am,version:null,vertAdvY:am,vertOriginX:am,vertOriginY:am,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:am,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:vm}),km=gm({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),wm=gm({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:bm}),Sm=gm({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),_m={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Cm=/[A-Z]/g,Pm=/-[a-z]/g,Em=/^data[-\w.:]+$/i;function Rm(e){return"-"+e.toLowerCase()}function zm(e){return e.charAt(1).toUpperCase()}const Tm=Jg([mm,ym,km,wm,Sm],"html"),Im=Jg([mm,xm,km,wm,Sm],"svg");var Om,Fm,Am,Mm={};function Nm(){if(Fm)return Om;Fm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(s,l):l}return Om=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var d=1,f=1;function p(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:d,column:f},this.source=u.source}function m(e){var t=new Error(u.source+":"+d+":"+f+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=f,t.source=s,!u.silent)throw t}function v(e){var t=e.exec(s);if(t){var n=t[0];return p(n),s=s.slice(n.length),t}}function b(){v(n)}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var e=h();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,l===s.charAt(t-1))return m("End of comment missing");var n=s.slice(2,t-2);return f+=2,p(n),s=s.slice(t),f+=2,e({type:"comment",comment:n})}}function k(){var t=h(),n=v(r);if(n){if(x(),!v(i))return m("property missing ':'");var s=v(o),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:s?c(s[0].replace(e,l)):l});return v(a),u}}return g.prototype.content=s,b(),function(){var e,t=[];for(y(t);e=k();)!1!==e&&(t.push(e),y(t));return t}()}}function Dm(){if(Am)return Mm;Am=1;var e=Mm&&Mm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mm,"__esModule",{value:!0}),Mm.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var i=(0,t.default)(e),o="function"==typeof n;return i.forEach(function(e){if("declaration"===e.type){var t=e.property,i=e.value;o?n(t,i,e):i&&((r=r||{})[t]=i)}}),r};var t=e(Nm());return Mm}var Lm,jm,$m,Bm={};function Wm(){if(Lm)return Bm;Lm=1,Object.defineProperty(Bm,"__esModule",{value:!0}),Bm.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},a=function(e,t){return"".concat(t,"-")};return Bm.camelCase=function(s,l){return void 0===l&&(l={}),function(t){return!t||n.test(t)||e.test(t)}(s)?s:(s=s.toLowerCase(),(s=l.reactCompat?s.replace(i,a):s.replace(r,a)).replace(t,o))},Bm}function Vm(){if($m)return jm;$m=1;var e=jm&&jm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},t=e(Dm()),n=Wm();function r(e,r){var i={};return e&&"string"==typeof e?((0,t.default)(e,function(e,t){e&&t&&(i[(0,n.camelCase)(e,r)]=t)}),i):i}return r.default=r,jm=r}const Hm=n(Vm()),Um=Gm("end"),qm=Gm("start");function Gm(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Ym(e){return e&&"object"==typeof e?"position"in e||"type"in e?Km(e.position):"start"in e||"end"in e?Km(e):"line"in e||"column"in e?Xm(e):"":""}function Xm(e){return Qm(e&&e.line)+":"+Qm(e&&e.column)}function Km(e){return Xm(e&&e.start)+"-"+Xm(e&&e.end)}function Qm(e){return e&&"number"==typeof e?e:1}class Zm extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=Ym(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Zm.prototype.file="",Zm.prototype.name="",Zm.prototype.reason="",Zm.prototype.message="",Zm.prototype.stack="",Zm.prototype.column=void 0,Zm.prototype.line=void 0,Zm.prototype.ancestors=void 0,Zm.prototype.cause=void 0,Zm.prototype.fatal=void 0,Zm.prototype.place=void 0,Zm.prototype.ruleId=void 0,Zm.prototype.source=void 0;const Jm={}.hasOwnProperty,ev=new Map,tv=/[A-Z]/g,nv=new Set(["table","tbody","thead","tfoot","tr"]),rv=new Set(["td","th"]),iv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ov(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=Im,e.schema=i),e.ancestors.push(t);const o=uv(e,t.tagName,!1),a=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&Jm.call(t.properties,i)){const o=cv(e,i,t.properties[i]);if(o){const[i,a]=o;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof a&&rv.has(t.tagName)?r=a:n[i]=a}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let s=lv(e,t);return nv.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Qg(t.value):Qg(t));var t})),av(e,a,o,t),sv(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return e.evaluater.evaluateExpression(n.expression)}dv(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=Im,e.schema=i),e.ancestors.push(t);const o=null===t.name?e.Fragment:uv(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0].expression.properties[0];Object.assign(n,e.evaluater.evaluateExpression(t.argument))}else dv(e,t.position);else{const i=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];o=e.evaluater.evaluateExpression(t.expression)}else dv(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),s=lv(e,t);return av(e,a,o,t),sv(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);dv(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return sv(r,lv(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function av(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function sv(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function lv(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ev;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}const s=ov(e,o,a);void 0!==s&&n.push(s)}return n}function cv(e,t,n){const r=function(e,t){const n=em(t);let r=t,i=tm;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Em.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Pm,zm);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Pm.test(e)){let n=e.replace(Cm,Rm);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=pm}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Hm(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new Zm("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=iv+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Jm.call(e,n)&&(t[fv(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?_m[r.property]||r.property:r.attribute,n]}}function uv(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++i<e.length;){const t=Xg(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}r=n}else r=Xg(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Jm.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);dv(e)}function dv(e,t){const n=new Zm("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=iv+"#cannot-handle-mdx-estrees-without-createevaluater",n}function fv(e){let t=e.replace(tv,pv);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function pv(e){return"-"+e.toLowerCase()}const hv={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},gv={};function mv(e,t){return vv(e,"boolean"!=typeof gv.includeImageAlt||gv.includeImageAlt,"boolean"!=typeof gv.includeHtml||gv.includeHtml)}function vv(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return bv(e.children,t,n)}return Array.isArray(e)?bv(e,t,n):""}function bv(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=vv(e[i],t,n);return r.join("")}const yv=document.createElement("i");function xv(e){const t="&"+e+";";yv.innerHTML=t;const n=yv.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function kv(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function wv(e,t){return e.length>0?(kv(e,e.length,0,t),e):t}const Sv={}.hasOwnProperty;function _v(e){const t={};let n=-1;for(;++n<e.length;)Cv(t,e[n]);return t}function Cv(e,t){let n;for(n in t){const r=(Sv.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Sv.call(r,o)||(r[o]=[]);const e=i[o];Pv(r[o],Array.isArray(e)?e:e?[e]:[])}}}function Pv(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);kv(e,0,0,r)}function Ev(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Rv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const zv=Bv(/[A-Za-z]/),Tv=Bv(/[\dA-Za-z]/),Iv=Bv(/[#-'*+\--9=?A-Z^-~]/);function Ov(e){return null!==e&&(e<32||127===e)}const Fv=Bv(/\d/),Av=Bv(/[\dA-Fa-f]/),Mv=Bv(/[!-/:-@[-`{-~]/);function Nv(e){return null!==e&&e<-2}function Dv(e){return null!==e&&(e<0||32===e)}function Lv(e){return-2===e||-1===e||32===e}const jv=Bv(new RegExp("\\p{P}|\\p{S}","u")),$v=Bv(/\s/);function Bv(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Wv(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&Tv(e.charCodeAt(n+1))&&Tv(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Vv(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return Lv(r)?(e.enter(n),a(r)):t(r)};function a(r){return Lv(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const Hv={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Vv(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Nv(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},Uv={tokenize:function(e){const t=this,n=[];let r,i,o,a=0;return s;function s(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}v(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return kv(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(a===n.length){if(!r)return f(i);if(r.currentConstruct&&r.currentConstruct.concrete)return h(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(qv,u,d)(i)}function u(e){return r&&b(),v(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(qv,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&b(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):Nv(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),g)}function m(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(v(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;kv(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},qv={tokenize:function(e,t,n){return Vv(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Gv(e){return null===e||Dv(e)||$v(e)?1:jv(e)?2:void 0}function Yv(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Xv={name:"attention",resolveAll:function(e,t){let n,r,i,o,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[u][1].start};Kv(d,-s),Kv(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[n][1].end={...o.start},e[u][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=wv(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=wv(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=wv(l,Yv(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=wv(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=wv(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,kv(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Gv(r);let o;return function(t){return o=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===o)return e.consume(s),a;const l=e.exit("attentionSequence"),c=Gv(s),u=!c||2===c&&i||n.includes(s),d=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}}};function Kv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Qv={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return zv(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||Tv(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Tv(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Ov(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):Iv(t)?(e.consume(t),l):n(t)}function c(e){return Tv(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Tv(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},Zv={partial:!0,tokenize:function(e,t,n){return function(t){return Lv(t)?Vv(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Nv(e)?t(e):n(e)}}},Jv={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return Lv(t)?Vv(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(Jv,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Lv(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},eb={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Mv(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tb={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=Tv,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Av,c):(e.enter("characterReferenceValue"),i=7,o=Fv,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==Tv||xv(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++<i?(e.consume(s),c):n(s)}}},nb={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rb={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),Lv(t)?Vv(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===o?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),Lv(t)?Vv(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||Nv(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Lv(t)?Vv(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Nv(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(nb,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Nv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Lv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Vv(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||Nv(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Nv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),f)}function p(t){return e.attempt(i,b,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&Lv(t)?Vv(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||Nv(t)?e.check(nb,p,b)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Nv(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),v)}function b(n){return e.exit("codeFenced"),t(n)}}},ib={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Vv(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):Nv(t)?e.attempt(ob,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Nv(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},ob={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Nv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Vv(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Nv(e)?i(e):n(e)}}},ab={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):Nv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Nv(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}}};class sb{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&lb(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),lb(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),lb(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);lb(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);lb(this.left,t.reverse())}}}function lb(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function cb(e){const t={};let n,r,i,o,a,s,l,c=-1;const u=new sb(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,ub(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(o=u.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return kv(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function ub(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let u,d,f=-1,p=n,h=0,g=0;const m=[g];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,m.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):m.pop(),f=m.length;f--;){const t=s.slice(m[f],m[f+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),f=-1;++f<l.length;)c[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return c}const db={resolve:function(e){return cb(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):Nv(t)?e.check(fb,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},fb={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vv(e,i,"linePrefix")};function i(i){if(null===i||Nv(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function pb(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||Ov(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Nv(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(i){return u||null!==i&&41!==i&&!Dv(i)?u<c&&40===i?(e.consume(i),u++,h):41===i?(e.consume(i),u--,h):null===i||32===i||40===i||Ov(i)?n(i):(e.consume(i),92===i?g:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i))}function g(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function hb(e,t,n,r,i,o){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):Nv(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Nv(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Lv(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function gb(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):Nv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vv(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Nv(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function mb(e,t){let n;return function r(i){return Nv(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Lv(i)?Vv(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const vb={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return hb.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=Rv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return Dv(t)?mb(e,s)(t):s(t)}function s(t){return pb(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(bb,c,c)(t)}function c(t){return Lv(t)?Vv(e,u,"whitespace")(t):u(t)}function u(o){return null===o||Nv(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},bb={partial:!0,tokenize:function(e,t,n){return function(t){return Dv(t)?mb(e,r)(t):n(t)};function r(t){return gb(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Lv(t)?Vv(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Nv(e)?t(e):n(e)}}},yb={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Nv(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},xb={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},kv(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||Dv(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Nv(n)?(e.exit("atxHeading"),t(n)):Lv(n)?Vv(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||Dv(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}},kb=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wb=["pre","script","style","textarea"],Sb={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,p):63===s?(e.consume(s),i=3,r.interrupt?t:A):zv(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function u(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,s=0,f):zv(o)?(e.consume(o),i=4,r.interrupt?t:A):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:A):n(i)}function f(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:P:f):n(i)}function p(t){return zv(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||Dv(s)){const l=47===s,c=a.toLowerCase();return l||o||!wb.includes(c)?kb.includes(a.toLowerCase())?(i=6,l?(e.consume(s),g):r.interrupt?t(s):P(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?m(s):v(s)):(i=1,r.interrupt?t(s):P(s))}return 45===s||Tv(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function g(i){return 62===i?(e.consume(i),r.interrupt?t:P):n(i)}function m(t){return Lv(t)?(e.consume(t),m):_(t)}function v(t){return 47===t?(e.consume(t),_):58===t||95===t||zv(t)?(e.consume(t),b):Lv(t)?(e.consume(t),v):_(t)}function b(t){return 45===t||46===t||58===t||95===t||Tv(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),x):Lv(t)?(e.consume(t),y):v(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,k):Lv(t)?(e.consume(t),x):w(t)}function k(t){return t===l?(e.consume(t),l=null,S):null===t||Nv(t)?n(t):(e.consume(t),k)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Dv(t)?y(t):(e.consume(t),w)}function S(e){return 47===e||62===e||Lv(e)?v(e):n(e)}function _(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||Nv(t)?P(t):Lv(t)?(e.consume(t),C):n(t)}function P(t){return 45===t&&2===i?(e.consume(t),T):60===t&&1===i?(e.consume(t),I):62===t&&4===i?(e.consume(t),M):63===t&&3===i?(e.consume(t),A):93===t&&5===i?(e.consume(t),F):!Nv(t)||6!==i&&7!==i?null===t||Nv(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(_b,N,E)(t))}function E(t){return e.check(Cb,R,N)(t)}function R(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return null===t||Nv(t)?E(t):(e.enter("htmlFlowData"),P(t))}function T(t){return 45===t?(e.consume(t),A):P(t)}function I(t){return 47===t?(e.consume(t),a="",O):P(t)}function O(t){if(62===t){const n=a.toLowerCase();return wb.includes(n)?(e.consume(t),M):P(t)}return zv(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),O):P(t)}function F(t){return 93===t?(e.consume(t),A):P(t)}function A(t){return 62===t?(e.consume(t),M):45===t&&2===i?(e.consume(t),A):P(t)}function M(t){return null===t||Nv(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),M)}function N(n){return e.exit("htmlFlow"),t(n)}}},_b={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Zv,t,n)}}},Cb={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return Nv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Pb={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),b):zv(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,p):zv(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Nv(t)?(a=u,O(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?I(e):45===e?d(e):u(e)}function p(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),g):Nv(t)?(a=h,O(t)):(e.consume(t),h)}function g(t){return 93===t?(e.consume(t),m):h(t)}function m(t){return 62===t?I(t):93===t?(e.consume(t),m):h(t)}function v(t){return null===t||62===t?I(t):Nv(t)?(a=v,O(t)):(e.consume(t),v)}function b(t){return null===t?n(t):63===t?(e.consume(t),y):Nv(t)?(a=b,O(t)):(e.consume(t),b)}function y(e){return 62===e?I(e):b(e)}function x(t){return zv(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||Tv(t)?(e.consume(t),k):w(t)}function w(t){return Nv(t)?(a=w,O(t)):Lv(t)?(e.consume(t),w):I(t)}function S(t){return 45===t||Tv(t)?(e.consume(t),S):47===t||62===t||Dv(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),I):58===t||95===t||zv(t)?(e.consume(t),C):Nv(t)?(a=_,O(t)):Lv(t)?(e.consume(t),_):I(t)}function C(t){return 45===t||46===t||58===t||95===t||Tv(t)?(e.consume(t),C):P(t)}function P(t){return 61===t?(e.consume(t),E):Nv(t)?(a=P,O(t)):Lv(t)?(e.consume(t),P):_(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,R):Nv(t)?(a=E,O(t)):Lv(t)?(e.consume(t),E):(e.consume(t),z)}function R(t){return t===i?(e.consume(t),i=void 0,T):null===t?n(t):Nv(t)?(a=R,O(t)):(e.consume(t),R)}function z(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Dv(t)?_(t):(e.consume(t),z)}function T(e){return 47===e||62===e||Dv(e)?_(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F}function F(t){return Lv(t)?Vv(e,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):A(t)}function A(t){return e.enter("htmlTextData"),a(t)}}},Eb={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&kv(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=wv(o,e.slice(r+1,r+s+3)),o=wv(o,[["enter",u,t]]),o=wv(o,Yv(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=wv(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=wv(o,e.slice(i+1)),o=wv(o,[["exit",l,t]]),kv(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(t){return i?i._inactive?u(t):(o=r.parser.defined.includes(Rv(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(Rb,c,o?c:u)(t):91===t?e.attempt(zb,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(Tb,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}}},Rb={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Dv(t)?mb(e,i)(t):i(t)}function i(t){return 41===t?c(t):pb(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Dv(t)?mb(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?gb(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Dv(t)?mb(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},zb={tokenize:function(e,t,n){const r=this;return function(t){return hb.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(Rv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Tb={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},Ib={name:"labelStartImage",resolveAll:Eb.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},Ob={name:"labelStartLink",resolveAll:Eb.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},Fb={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Vv(e,t,"linePrefix")}}},Ab={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||Nv(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),Lv(t)?Vv(e,o,"whitespace")(t):o(t))}}},Mb={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Zv,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Vv(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!Lv(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Db,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Vv(e,e.attempt(Mb,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Fv(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Ab,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Fv(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Zv,r.interrupt?n:c,e.attempt(Nb,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return Lv(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Nb={partial:!0,tokenize:function(e,t,n){const r=this;return Vv(e,function(e){const i=r.events[r.events.length-1];return!Lv(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Db={partial:!0,tokenize:function(e,t,n){const r=this;return Vv(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},Lb={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Lv(t)?Vv(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Nv(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},jb={tokenize:function(e){const t=this,n=e.attempt(Zv,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,Vv(e,e.attempt(this.parser.constructs.flow,r,e.attempt(db,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},$b={resolveAll:Hb()},Bb=Vb("string"),Wb=Vb("text");function Vb(e){return{resolveAll:Hb("text"===e?Ub:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Hb(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function Ub(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,a=i.length,s=-1,l=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const qb={42:Mb,43:Mb,45:Mb,48:Mb,49:Mb,50:Mb,51:Mb,52:Mb,53:Mb,54:Mb,55:Mb,56:Mb,57:Mb,62:Jv},Gb={91:vb},Yb={[-2]:ib,[-1]:ib,32:ib},Xb={35:xb,42:Ab,45:[Lb,Ab],60:Sb,61:Lb,95:Ab,96:rb,126:rb},Kb={38:tb,92:eb},Qb={[-5]:Fb,[-4]:Fb,[-3]:Fb,33:Ib,38:tb,42:Xv,60:[Qv,Pb],91:Ob,92:[yb,eb],93:Eb,95:Xv,96:ab},Zb={null:[Xv,$b]},Jb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Gb,disable:{null:[]},document:qb,flow:Xb,flowInitial:Yb,insideSpan:Zb,string:Kb,text:Qb},Symbol.toStringTag,{value:"Module"}));function ey(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:g(function(e,t){m(e,t.from)}),check:g(h),consume:function(e){Nv(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:g(h,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,v()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){return a=wv(a,e),function(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)p(t.charCodeAt(r._bufferIndex));else p(t)}}(),null!==a[a.length-1]?[]:(m(t,0),c.events=Yv(o,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function p(e){u=u(e)}function h(e,t){t.restore()}function g(e,t){return function(n,i,o){let a,u,d,p;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(h=n,function(e){const t=null!==e&&h[e],n=null!==e&&h.null;return g([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var h;function g(e){return a=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){return p=function(){const e=f(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=o,v()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?y():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,b,y)(n)}}function b(t){return e(d,p),i}function y(e){return p.restore(),++u<a.length?m(a[u]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&kv(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const ty=/[\0\t\n\r]/g,ny=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ry(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Ev(n.slice(t?2:1),t?16:10)}return xv(n)||e}const iy={}.hasOwnProperty;function oy(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(b),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(g),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:i(h),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(h,o),codeText:i(function(){return{type:"inlineCode",value:""}},o),codeTextData:u,data:u,codeFlowValue:u,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(m),hardBreakTrailing:i(m),htmlFlow:i(v,o),htmlFlowData:u,htmlText:i(v,o),htmlTextData:u,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:o,link:i(b),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(y),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(g),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=Ev(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=xv(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=ay(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Rv(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(f),hardBreakTrailing:s(f),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(ny,ry)}(t),n.identifier=Rv(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=ay(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Rv(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};sy(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:a,exit:l,buffer:o,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];iy.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||cy).call(s,void 0,e[0])}for(i.position={start:ay(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ay(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function r(e,t,n){let r,i,o,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||o||(o=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ay(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Ym({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||cy).call(this,e,r[0])),n.position.end=ay(e.end)}function c(){return mv(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:ay(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ay(e.end)}function f(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function g(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function v(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!cb(e););return e}(function(e){const t={constructs:_v([Jb,...(e||{}).extensions||[]]),content:n(Hv),defined:[],document:n(Uv),flow:n(jb),lazy:{},string:n(Bb),text:n(Wb)};return t;function n(e){return function(n){return ey(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,a){const s=[];let l,c,u,d,f;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(ty.lastIndex=u,l=ty.exec(i),d=l&&void 0!==l.index?l.index:i.length,f=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===f&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),f){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function ay(e){return{line:e.line,column:e.column,offset:e.offset}}function sy(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?sy(e,r):ly(e,r)}}function ly(e,t){let n;for(n in t)if(iy.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function cy(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ym({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ym({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ym({start:t.start,end:t.end})+") is still open")}function uy(e){const t=this;t.parser=function(n){return oy(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function dy(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function fy(e){const t=e.spread;return null==t?e.children.length>1:t}function py(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(hy(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(hy(t.slice(i),i>0,!1)),o.join("")}function hy(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const gy={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Wv(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dy(e,t);const i={src:Wv(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Wv(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dy(e,t);const i={href:Wv(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Wv(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=fy(n[r])}return t}(n):fy(t),o={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=qm(t.children[1]),a=Um(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:py(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:my,yaml:my,definition:my,footnoteDefinition:my};function my(){}const vy="object"==typeof self?self:globalThis,by=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case 0:case-1:return n(a,i);case 1:{const e=n([],i);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new vy[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new vy[o](a),i)};return r})(new Map,e)(0),yy="",{toString:xy}={},{keys:ky}=Object,wy=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=xy.call(e).slice(8,-1);switch(n){case"Array":return[1,yy];case"Object":return[2,yy];case"Date":return[3,yy];case"RegExp":return[4,yy];case"Map":return[5,yy];case"Set":return[6,yy];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Sy=([e,t])=>0===e&&("function"===t||"symbol"===t),_y=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,s]=wy(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}const e=[],t=i([a,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([a,n],r);for(const t of ky(r))!e&&Sy(wy(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{const t=[],n=i([a,t],r);for(const[i,a]of r)(e||!Sy(wy(i))&&!Sy(wy(a)))&&t.push([o(i),o(a)]);return n}case 6:{const t=[],n=i([a,t],r);for(const i of r)!e&&Sy(wy(i))||t.push(o(i));return n}}const{message:l}=r;return i([a,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},Cy="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?by(_y(e,t)):structuredClone(e):(e,t)=>by(_y(e,t));function Py(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Ey(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Ry=function(e){if(null==e)return Ty;if("function"==typeof e)return zy(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ry(e[n]);return zy(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return zy(function(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0})}(e);if("string"==typeof e)return t=e,zy(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function zy(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Ty(){return!0}const Iy=[],Oy=!1;function Fy(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const o=Ry(i),a=r?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=Iy;if((!t||o(i,s,l[l.length-1]||void 0))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:null==e?Iy:[e]}(n(i,l)),f[0]===Oy))return f;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Oy)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function Ay(e,t,n,r){let i,o,a;"function"==typeof t&&"function"!=typeof n?(o=void 0,a=t,i=n):(o=t,a=n,i=r),Fy(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},i)}const My={}.hasOwnProperty,Ny={};function Dy(e,t){e.position&&(t.position=function(e){const t=qm(e),n=Um(e);if(t&&n)return{start:t,end:n}}(e))}function Ly(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,Cy(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function jy(e,t){const n=t.data||{},r=!("value"in t)||My.call(n,"hProperties")||My.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function $y(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function By(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Wy(e,t){const n=function(e,t){const n=t||Ny,r=new Map,i=new Map,o=new Map,a={...gy,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=By(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=By(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:Ly,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(My.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Cy(n);return r.children=s.all(e),r}return Cy(e)}return(s.options.unknownHandler||jy)(s,e,t)},options:n,patch:Dy,wrap:$y};return Ay(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Py,r=e.options.footnoteBackLabel||Ey,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const o=e.all(i),a=String(i.identifier).toUpperCase(),c=Wv(a.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else o.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Cy(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function Vy(e,t){return e&&"run"in e?async function(n,r){const i=Wy(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Wy(n,{file:r,...e||t})}}function Hy(e){if(e)throw e}var Uy,qy;function Gy(){if(qy)return Uy;qy=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Uy=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Uy}const Yy=n(Gy());function Xy(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const Ky=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');tx(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},Qy=function(e){if(tx(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},Zy=function(e){tx(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},Jy=function(...e){let t,n=-1;for(;++n<e.length;)tx(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){tx(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},ex="/";function tx(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const nx=function(){return"/"};function rx(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const ix=["history","path","basename","stem","extname","dirname"];class ox{constructor(e){let t;t=e?rx(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":nx(),this.data={},this.history=[],this.messages=[];let n,r=-1;for(;++r<ix.length;){const e=ix[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ix.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Ky(this.path):void 0}set basename(e){sx(e,"basename"),ax(e,"basename"),this.path=Jy(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Qy(this.path):void 0}set dirname(e){lx(this.basename,"dirname"),this.path=Jy(e||"",this.basename)}get extname(){return"string"==typeof this.path?Zy(this.path):void 0}set extname(e){if(ax(e,"extname"),lx(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Jy(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){rx(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!rx(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),sx(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Ky(this.path,this.extname):void 0}set stem(e){sx(e,"stem"),ax(e,"stem"),this.path=Jy(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Zm(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function ax(e,t){if(e&&e.includes(ex))throw new Error("`"+t+"` cannot be a path: did not expect `"+ex+"`")}function sx(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function lx(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const cx=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ux={}.hasOwnProperty;class dx extends cx{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...a){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return function(...t){const a=e.length>t.length;let s;a&&t.push(r);try{s=e.apply(this,t)}catch(o){if(a&&n)throw o;return r(o)}a||(s&&s.then&&"function"==typeof s.then?s.then(i,r):s instanceof Error?r(s):i(s))};function r(e,...r){n||(n=!0,t(e,...r))}function i(e){r(null,e)}}(s,i)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new dx;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Yy(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(gx("data",this.frozen),this.namespace[e]=t,this):ux.call(this.namespace,e)&&this.namespace[e]||void 0:e?(gx("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=bx(e),n=this.parser||this.Parser;return px("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),px("process",this.parser||this.Parser),hx("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=bx(e),a=n.parse(o);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,o,function(e,t,r){if(e||!t||!r)return s(e);const i=t,o=n.stringify(i,r);var a;"string"==typeof(a=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),px("processSync",this.parser||this.Parser),hx("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Hy(e),t=r}),vx("processSync","process",n),t}run(e,t,n){mx(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const a=bx(t);r.run(e,a,function(t,r,a){const s=r||e;t?o(t):i?i(s):n(void 0,s,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Hy(e),n=t,r=!0}),vx("runSync","run",r),n}stringify(e,t){this.freeze();const n=bx(t),r=this.compiler||this.Compiler;return hx("stringify",r),mx(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(gx("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):o(e)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=Yy(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const a=n[i][1];Xy(a)&&Xy(r)&&(r=Yy(!0,a,r)),n[i]=[e,r,...o]}}}}const fx=(new dx).freeze();function px(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function hx(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function gx(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mx(e){if(!Xy(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function vx(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function bx(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ox(e)}const yx=[],xx={allowDangerousHtml:!0},kx=/^(https?|ircs?|mailto|xmpp)$/i,wx=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Sx(e){const t=function(e){const t=e.rehypePlugins||yx,n=e.remarkPlugins||yx,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xx}:xx;return fx().use(uy).use(n).use(Vy,r).use(t)}(e),n=function(e){const t=e.children||"",n=new ox;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||_x;for(const c of wx);return Ay(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return a?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in hv)if(Object.hasOwn(hv,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=hv[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,i)),a&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,i,o){const a=Array.isArray(i.children),s=qm(n);return t(r,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,r=function(e,t,n,r){const a=Array.isArray(n.children)?o:i;return r?a(t,n,r):a(t,n)}}var i,o;const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Im:Tm,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=ov(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(e,{Fragment:f.Fragment,components:i,ignoreInvalidStyle:!0,jsx:f.jsx,jsxs:f.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function _x(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||kx.test(e.slice(0,t))?e:""}const Cx=""+new URL("dori.ico",import.meta.url).href,Px=({message:e,type:t="default"})=>{const n="loading"===t,{botData:r}=Ac();return f.jsxs(fn,{position:"relative",width:"full",children:[f.jsx(fn,{opacity:"0",bg:"lightBackground",borderRadius:"20px",padding:"12px",children:f.jsx(eu,{fontWeight:400,fontSize:"12px",lineHeight:"18px",textAlign:"right",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})}),f.jsx(fn,{h:"42px"}),f.jsx(fn,{position:"absolute",left:0,bottom:0,children:f.jsx(tu,{src:r?.agent_image||Cx,alt:"Mori",w:"20px",h:"20px",borderRadius:"50%"})}),f.jsx(fn,{position:"absolute",left:"18px",bottom:"18px",width:"6.4px",height:"6.4px",bg:"lightBackground",borderRadius:"100%"}),f.jsx(fn,{position:"absolute",left:"23px",bottom:"23px",width:"13px",height:"13px",bg:"lightBackground",borderRadius:"100%"}),f.jsx(fn,{position:"absolute",left:"29px",bottom:"29px",bg:"lightBackground",borderRadius:"20px",padding:"12px",children:n?f.jsx(eu,{fontWeight:400,fontSize:"12px",lineHeight:"18px",textAlign:"right",color:"mutedText",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e}):f.jsx(eu,{fontWeight:400,fontSize:"12px",lineHeight:"18px",textAlign:"right",color:"text",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})})]})},Ex=Wg({displayName:"AiSearchIcon",viewBox:"0 0 16 16",path:f.jsxs(f.Fragment,{children:[f.jsx("path",{d:"M8 2.66683C5.42267 2.66683 3.33333 4.75617 3.33333 7.3335H2C2 4.01979 4.68629 1.3335 8 1.3335C11.3137 1.3335 14 4.01979 14 7.3335C14 8.75016 13.509 10.0522 12.6879 11.0786L14.8047 13.1954L13.8619 14.1382L11.7451 12.0214C10.7187 12.8425 9.41667 13.3335 8 13.3335V12.0002C10.5773 12.0002 12.6667 9.91083 12.6667 7.3335C12.6667 4.75617 10.5773 2.66683 8 2.66683Z",fill:"currentColor"}),f.jsx("path",{d:"M5.85714 6.6665L2 11.2498H4.57143L4.14286 13.9998L8 9.4165H5.42857L5.85714 6.6665Z",fill:"currentColor"})]})}),Rx=Wg({displayName:"ReplyIcon",viewBox:"0 0 15 12",path:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.16536 1.81467C7.16536 0.791333 5.9427 0.263999 5.1987 0.965999L1.30003 4.64C1.15132 4.78022 1.03284 4.94936 0.951856 5.13703C0.870874 5.3247 0.829102 5.52694 0.829102 5.73133C0.829102 5.93573 0.870874 6.13797 0.951856 6.32563C1.03284 6.5133 1.15132 6.68244 1.30003 6.82267L5.19736 10.5C5.94136 11.202 7.1647 10.674 7.1647 9.65133V8.33467C7.93731 8.19507 8.73376 8.28024 9.45939 8.58006C10.185 8.87989 10.8093 9.38175 11.258 10.026L11.7927 10.794C12.5207 11.84 14.162 11.3247 14.162 10.0507V9.738C14.162 5.89267 10.9394 2.87667 7.1647 3.05733L7.16536 1.81467ZM5.8847 1.69333C5.90839 1.67111 5.93807 1.6563 5.97007 1.65072C6.00208 1.64514 6.03501 1.64904 6.06483 1.66193C6.09465 1.67482 6.12005 1.69614 6.13791 1.72328C6.15577 1.75042 6.16531 1.78218 6.16536 1.81467V3.54C6.16536 3.87333 6.45736 4.132 6.78803 4.092C10.1767 3.68 13.1627 6.32467 13.1627 9.73867V10.0507C13.1627 10.3453 12.7827 10.4647 12.614 10.2227L12.0787 9.45467C11.4785 8.5928 10.6268 7.93727 9.63996 7.57763C8.65317 7.21799 7.5794 7.17179 6.56536 7.44533C6.45052 7.47639 6.34911 7.54442 6.27681 7.6389C6.2045 7.73337 6.16534 7.84903 6.16536 7.968V9.65067C6.16531 9.68315 6.15577 9.71492 6.13791 9.74205C6.12005 9.76919 6.09465 9.79051 6.06483 9.8034C6.03501 9.81629 6.00208 9.82019 5.97007 9.81461C5.93807 9.80903 5.90839 9.79422 5.8847 9.772L1.9867 6.09533C1.93716 6.04859 1.8977 5.99223 1.87072 5.92969C1.84375 5.86716 1.82984 5.79977 1.82984 5.73167C1.82984 5.66356 1.84375 5.59618 1.87072 5.53364C1.8977 5.4711 1.93716 5.41474 1.9867 5.368L5.8847 1.69333Z",fill:"currentColor"})}),zx=Wg({displayName:"SuggestionIcon",viewBox:"0 0 16 16",path:f.jsx("path",{d:"M4.56503 3.915C5.11896 2.73832 6.04737 1.77849 7.20497 1.18572C8.36257 0.592947 9.68402 0.400681 10.9625 0.63901C12.2411 0.877339 13.4045 1.53281 14.2708 2.50286C15.137 3.4729 15.6573 4.70277 15.75 6C15.8332 7.19515 15.548 8.38706 14.9329 9.41516C14.3178 10.4433 13.4024 11.2581 12.31 11.75C11.9379 12.672 11.3425 13.4871 10.5774 14.122C9.81221 14.7569 8.90126 15.1917 7.92642 15.3873C6.95158 15.5829 5.94341 15.5332 4.99255 15.2426C4.04169 14.952 3.17794 14.4297 2.47896 13.7226C1.77998 13.0155 1.26768 12.1458 0.988107 11.1916C0.708538 10.2375 0.670468 9.2288 0.877321 8.25629C1.08417 7.28377 1.52946 6.37791 2.17316 5.62013C2.81685 4.86235 3.63877 4.27641 4.56503 3.915ZM9.90503 1.5H9.60503C8.52019 1.56681 7.48862 1.99351 6.67357 2.71256C5.85852 3.43161 5.30656 4.40195 5.10503 5.47L10.675 1.565C10.4205 1.52309 10.163 1.50136 9.90503 1.5ZM11.905 1.93L5.33003 6.555L5.06003 6.745C5.11592 7.4665 5.33108 8.16663 5.69003 8.79499L13.565 3.155C13.1023 2.63199 12.5329 2.21427 11.895 1.93H11.905ZM14.145 3.97L6.25003 9.60999C6.70986 10.1331 7.27572 10.5524 7.91003 10.84L14.75 5.82C14.6759 5.16869 14.47 4.53927 14.145 3.97ZM14.75 7.065L9.10503 11.2C9.4681 11.2629 9.83728 11.283 10.205 11.26C11.33 11.1916 12.3968 10.7368 13.225 9.97234C14.0532 9.20793 14.5919 8.1809 14.75 7.065ZM6.75003 14.5C7.59348 14.4958 8.42238 14.2798 9.16061 13.8718C9.89883 13.4638 10.5227 12.8769 10.975 12.165C10.7406 12.2117 10.5035 12.2434 10.265 12.26H9.90003C8.40699 12.257 6.97069 11.6876 5.88117 10.6668C4.79165 9.64592 4.13007 8.24969 4.03003 6.76C4.00121 6.25734 4.03819 5.75307 4.14003 5.26C3.22219 5.83357 2.51524 6.68948 2.12538 7.69915C1.73553 8.70883 1.68382 9.81774 1.97803 10.8593C2.27224 11.9009 2.89648 12.8189 3.75697 13.4754C4.61746 14.1318 5.66774 14.4914 6.75003 14.5Z",fill:"currentColor"})}),Tx=Wg({displayName:"SquareBlackIcon",viewBox:"0 0 32 32",path:f.jsxs(f.Fragment,{children:[f.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),f.jsx("path",{d:"M22 10H10V22H22V10Z",fill:"white"})]})}),Ix=Wg({displayName:"ArrowUpBlackIcon",viewBox:"0 0 32 32",path:f.jsxs(f.Fragment,{children:[f.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5858 11.0002C15.3669 10.2191 16.6332 10.2191 17.4143 11.0002L20.3738 13.9597C20.7643 14.3502 20.7643 14.9834 20.3738 15.3739C19.9833 15.7644 19.3501 15.7644 18.9596 15.3739L17 13.4144V21.0002C17 21.5524 16.5523 22.0002 16 22.0002C15.4478 22.0002 15 21.5524 15 21.0002V13.4144L13.0405 15.3739C12.65 15.7644 12.0168 15.7645 11.6263 15.3739C11.2358 14.9834 11.2358 14.3502 11.6263 13.9597L14.5858 11.0002Z",fill:"white"})]})}),Ox=Wg({displayName:"CloseIcon",viewBox:"0 0 24 24",path:f.jsx("path",{d:"M6.26915 5.7309C5.98798 5.44973 5.53209 5.44973 5.25092 5.7309C4.96975 6.01207 4.96975 6.46796 5.25092 6.74913L10.5018 12L5.25092 17.2509C4.96975 17.5321 4.96975 17.9879 5.25092 18.2691C5.53209 18.5503 5.98798 18.5503 6.26915 18.2691L11.52 13.0183L16.7709 18.2691C17.0521 18.5503 17.5079 18.5503 17.7891 18.2691C18.0703 17.9879 18.0703 17.5321 17.7891 17.2509L12.5383 12L17.7891 6.74913C18.0703 6.46796 18.0703 6.01207 17.7891 5.7309C17.5079 5.44973 17.0521 5.44973 16.7709 5.7309L11.52 10.9817L6.26915 5.7309Z",fill:"currentColor"})}),Fx=(e,t)=>{const n=e.includes("?")?"&":"?";return`${e}${n}utm_source=customer_referral&utm_medium=widget&utm_campaign=powered_by&utm_term=${t}`},Ax={AED:"د.إ",ARS:"$",AUD:"$",BDT:"৳",BHD:"ب.د",BRL:"R$",CAD:"$",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DZD:"دج",EGP:"E£",EUR:"€",GBP:"£",HKD:"$",HUF:"Ft",IDR:"Rp",INR:"₹",IQD:"ع.د",IRT:"تومان",JOD:"د.أ",JPY:"¥",KES:"KSh",KMF:"CF",KRW:"₩",KWD:"د.ك",LBP:"ل.ل",LKR:"Rs",LYD:"ل.د",MAD:"د.م.",MRU:"UM",MXN:"$",MYR:"RM",NGN:"₦",NOK:"kr",NZD:"$",OMR:"ر.ع.",PHP:"₱",PKR:"₨",PLN:"zł",QAR:"ر.ق",RUB:"₽",SAR:"ر.س",SDG:"ج.س.",SEK:"kr",SGD:"$",SOS:"Sh",SYP:"ل.س",THB:"฿",TND:"د.ت",TRY:"₺",UAH:"₴",USD:"$",VND:"₫",YER:"﷼",ZAR:"R"},Mx=({product:e})=>{const{sendMessage:t,setRepliedProduct:n,botData:r,chatState:i}=Ac(),{name:o,id:a,url:s}=e,l=(r?.currency||"USD").split(" - ")[0]?.trim().toUpperCase()||"USD",c=Ax[l]||l,u=async()=>{if(!s||!r)return;const t=(e=>{const t=e.includes("?")?"&":"?";return`${e}${t}utm_source=dori&utm_medium=dori_pdp_widget&utm_campaign=dori_product_recommendation`})(s);window.open(t,"_blank","noopener,noreferrer"),Tc(e,r,i.threadId)};return f.jsxs($c,{align:"stretch",gap:1,w:"full",children:[f.jsx(fn,{bg:"background",borderRadius:"14px",border:"1px solid",borderColor:"borderColor",w:"full",children:f.jsxs(jc,{gap:3,align:"stretch",w:"full",children:[f.jsx(fn,{flexShrink:0,cursor:"pointer",onClick:u,_hover:{opacity:.9},transition:"opacity 0.2s",children:f.jsx(tu,{src:e.image,alt:e.name,w:"60px",h:"60px",borderStartStartRadius:"14px",borderEndStartRadius:"14px",objectFit:"fill"})}),f.jsxs($c,{gap:.5,align:"start",justifyContent:"center",children:[f.jsx(eu,{fontWeight:600,fontSize:"10px",lineHeight:"20px",textAlign:"start",color:"text",maxW:"100%",title:e.name,cursor:"pointer",onClick:u,_hover:{color:"primary"},transition:"color 0.2s",children:e.name}),f.jsxs(jc,{gap:.75,align:"center",children:[e.discount&&f.jsxs(f.Fragment,{children:[f.jsxs(eu,{fontSize:"xs",color:"gray.400",textDecoration:"line-through",children:[c,e.originalPrice?.toLocaleString()]}),f.jsxs(jg,{bg:"errorBackground",color:"error",fontSize:"xs",borderRadius:"20px",children:[e.discount,"٪"]})]}),!!e.price&&e.price>0&&f.jsxs(eu,{fontSize:"10px",fontWeight:"700",color:"text",children:[c,e.price.toLocaleString()]})]})]})]})},e.id),f.jsxs(jc,{gap:.5,w:"full",children:[f.jsx(Zc,{variant:"outline",size:"xs",fontSize:"10px",lineHeight:"0px",textAlign:"right",color:"primary",borderColor:"borderColor",borderRadius:"3px",bgColor:"background",borderWidth:"1px",onClick:()=>{n({product:e,suggestions:["Does this product have a discount?","What features make this product special?","Does it come in other colors?"]})},_hover:{bgColor:"borderColor",borderColor:"primary"},"aria-label":"Reply",children:f.jsx(Rx,{w:4,h:4,color:"primary"})}),f.jsxs(Qc,{variant:"outline",size:"xs",fontSize:"10px",lineHeight:"4px",textAlign:"right",color:"primary",borderRadius:"3px",flex:1,fontWeight:400,onClick:()=>{t({message:`Do you have similar to ${o}`,apiMessage:`Do you have similar to ${a}`})},bgColor:"background",borderColor:"borderColor",_hover:{borderColor:"primary"},children:[f.jsx(zx,{w:4,h:4,color:"primary"}),"Similar Suggestion"]})]})]})},Nx=({products:e})=>f.jsx($c,{align:"stretch",gap:1.5,w:"full",children:f.jsx(fn,{px:.75,w:"full",children:f.jsx(Vg,{dir:"ltr",minChildWidth:"240px",gapX:{base:.75,md:1.5},gapY:{base:1.5,md:3},children:e.map(e=>f.jsx(Mx,{product:e},e.id))})})}),Dx=({suggestions:e})=>{const{sendMessage:t}=Ac();return f.jsx(jc,{gap:1.5,wrap:"wrap",children:e.slice(0,3).map((e,n)=>f.jsx(Qc,{bg:n%2==0?"background":"lightBackground",border:"1px solid",borderColor:"borderColor",borderRadius:"20px",px:3,py:1.5,h:"auto",lineHeight:"1.5",onClick:()=>(e=>{t({message:e})})(e),_hover:{bg:"lightBackground",borderColor:"primary"},_active:{bg:"lightBackground"},textAlign:"center",justifyContent:"center",children:f.jsx(eu,{fontSize:"10px",fontWeight:"400",color:"text",textAlign:"center",wordBreak:"break-word",whiteSpace:"normal",children:e})},n))})};function Lx(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function jx(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function $x(e){return"function"==typeof e?e:function(){return e}}const Bx="phrasing",Wx=["autolink","link","image","label"];function Vx(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Hx(e){this.config.enter.autolinkProtocol.call(this,e)}function Ux(e){this.config.exit.autolinkProtocol.call(this,e)}function qx(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}function Gx(e){this.config.exit.autolinkEmail.call(this,e)}function Yx(e){this.exit(e)}function Xx(e){!function(e,t,n){const r=Ry((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([jx(e[0]),$x(e[1])])}return t}(t);let o=-1;for(;++o<i.length;)Fy(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[o][0],a=i[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,i={index:d.index,input:d.input,stack:[...t,e]};let o=a(...d,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Kx],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Qx]],{ignore:["link","linkReference"]})}function Kx(e,t,n,r,i){let o="";if(!Zx(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Lx(e,"(");let o=Lx(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Qx(e,t,n,r){return!(!Zx(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Zx(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||$v(n)||jv(n))&&(!t||47!==n)}function Jx(){this.buffer()}function ek(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function tk(){this.buffer()}function nk(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function rk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=Rv(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ik(e){this.exit(e)}function ok(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=Rv(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ak(e){this.exit(e)}function sk(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function lk(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){const o=r.createTracker(i);let a=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");return a+=o.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),a+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?uk:ck))),s(),a},footnoteReference:sk},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function ck(e,t,n){return 0===t?e:uk(e,0,n)}function uk(e,t,n){return(n?"":" ")+e}sk.peek=function(){return"["};const dk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function fk(e){this.enter({type:"delete",children:[]},e)}function pk(e){this.exit(e)}function hk(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function gk(e){return e.length}function mk(e){return null==e?"":String(e)}function vk(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function bk(e,t,n){return">"+(n?"":" ")+e}function yk(e,t){return xk(e,t.inConstruct,!0)&&!xk(e,t.notInConstruct,!1)}function xk(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function kk(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&yk(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function wk(e,t,n){return(n?"":" ")+e}function Sk(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function _k(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ck(e,t,n){const r=Gv(e),i=Gv(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Pk(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=Ck(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=_k(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Ck(r.after.charCodeAt(0),d,i);f.inside&&(l=l.slice(0,-1)+_k(d));const p=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}function Ek(e){return e.value||""}function Rk(e,t,n,r){const i=Sk(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function zk(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Tk(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function Ik(e,t){const n=mv(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Ok(e,t,n,r){const i=Sk(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Ik(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function Fk(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Ak(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Mk(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}hk.peek=function(){return"~"},Pk.peek=function(e,t,n){return n.options.emphasis||"*"},Ek.peek=function(){return"<"},Rk.peek=function(){return"!"},zk.peek=function(){return"!"},Tk.peek=function(){return"`"},Ok.peek=function(e,t,n){return Ik(e,n)?"<":"["},Fk.peek=function(){return"["};const Nk=Ry(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Dk(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=Ck(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=_k(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Ck(r.after.charCodeAt(0),d,i);f.inside&&(l=l.slice(0,-1)+_k(d));const p=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}Dk.peek=function(e,t,n){return n.options.strong||"*"};const Lk={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),bk);return i(),a},break:kk,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,wk);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}(o,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const i=Sk(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c},emphasis:Pk,hardBreak:kk,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return Ay(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Oy}),Boolean((!e.depth||e.depth<3)&&mv(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=_k(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:Ek,image:Rk,imageReference:zk,inlineCode:Tk,link:Ok,linkReference:Fk,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Ak(n);const s=e.ordered?"."===a?")":".":function(e){const t=Ak(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Mk(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||Ak(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?o:o+" ".repeat(a-o.length))+e});return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a},root:function(e,t,n,r){return(e.children.some(function(e){return Nk(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Dk,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Mk(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function jk(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function $k(e){this.exit(e),this.data.inTable=void 0}function Bk(e){this.enter({type:"tableRow",children:[]},e)}function Wk(e){this.exit(e)}function Vk(e){this.enter({type:"tableCell",children:[]},e)}function Hk(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Uk)),this.stack[this.stack.length-1].value=t,this.exit(e)}function Uk(e,t){return"|"===t?t:e}function qk(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Lk.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return a(),o}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const i=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||gk,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const a=mk(e[u][o]);if(!1!==n.alignDelimiters){const e=i(a);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(a)}a[u]=t,s[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)o[d]=vk(r[d]);else{const e=vk(r);for(;++d<c;)o[d]=e}d=-1;const f=[],p=[];for(;++d<c;){const e=o[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=t.length+i+r.length,i>l[d]&&(l[d]=i),p[d]=i),f[d]=a}a.splice(1,0,f),s.splice(1,0,p),u=-1;const h=[];for(;++u<a.length;){const e=a[u],t=s[u];d=-1;const r=[];for(;++d<c;){const i=e[d]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=o[d];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===i||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===c-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],0,t,n);return s(),o}}function Gk(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Yk(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Xk(e,t,n,r){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=Lk.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}const Kk={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},Qk={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(Jk,l,s)(t):null===t||Dv(t)||$v(t)||45!==t&&jv(t)?l(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},Zk={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?o(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(Jk,t,o)(a):null===a||Dv(a)||$v(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},Jk={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),o):93===a?(e.consume(a),i):60===a||null===a||Dv(a)||$v(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||Dv(e)||$v(e)?t(e):r(e)}function o(e){return zv(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):zv(t)?(e.consume(t),a):n(t)}},partial:!0},ew={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Tv(e)?n(e):t(e)}},partial:!0},tw={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!aw.call(r,r.previous)||uw(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Kk,e.attempt(Qk,e.attempt(Zk,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:aw},nw={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){return 72!==t&&104!==t||!sw.call(r,r.previous)||uw(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a)};function a(t){if(zv(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||Ov(t)||Dv(t)||$v(t)||jv(t)?n(t):e.attempt(Qk,e.attempt(Zk,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:sw},rw={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,o;return function(t){return cw(t)&&lw.call(r,r.previous)&&!uw(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return cw(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(ew,c,l)(t):45===t||95===t||Tv(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(a){return o&&i&&zv(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:lw},iw={};let ow=48;for(;ow<123;)iw[ow]=rw,ow++,58===ow?ow=65:91===ow&&(ow=97);function aw(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Dv(e)}function sw(e){return!zv(e)}function lw(e){return!(47===e||cw(e))}function cw(e){return 43===e||45===e||46===e||95===e||Tv(e)}function uw(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}iw[43]=rw,iw[45]=rw,iw[46]=rw,iw[95]=rw,iw[72]=[rw,nw],iw[104]=[rw,nw],iw[87]=[rw,tw],iw[119]=[rw,tw];const dw={tokenize:function(e,t,n){const r=this;return Vv(e,function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function fw(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return n(i);const s=Rv(r.sliceSerialize({start:a.end,end:r.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function pw(e,t){let n=e.length;for(;n--&&("labelImage"!==e[n][1].type||"enter"!==e[n][0]););e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function hw(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!o||null===s||91===s||Dv(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Rv(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Dv(s)||(o=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function gw(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||Dv(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Rv(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Dv(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),Vv(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function mw(e,t,n){return e.check(Zv,t,e.attempt(dw,t,n))}function vw(e){e.exit("gfmFootnoteDefinition")}function bw(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let a=0;return function(t){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(o){const l=Gv(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=Gv(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&kv(a,a.length,0,Yv(s,e.slice(r+1,n),t)),kv(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),kv(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class yw{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function xw(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function kw(e,t,n){const r=this;let i,o=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?x:s;return o===x&&r.parser.lazy[r.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,a+=1),l(e)}(t)}function l(t){return null===t?n(t):Nv(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Lv(t)?Vv(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Dv(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,Lv(t)?Vv(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?h(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):y(t)}function p(t){return Lv(t)?Vv(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||Nv(t)?b(t):y(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):y(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return Lv(t)?Vv(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?f(n):(null===n||Nv(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function x(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||Nv(n)?(e.exit("tableRow"),t(n)):Lv(n)?Vv(e,k,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||Dv(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?S:w)}function S(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function ww(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new yw;for(;++o<e.length;){const p=e[o],h=p[1];"enter"===p[0]?"tableHead"===h.type?(u=!1,0!==d&&(_w(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(o,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],i=Sw(f,t,l,s,void 0,i)),l=c,c=[l[1],o,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Sw(f,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===h.type?(u=!0,d=o):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=o,0!==l[1]?(c[0]=c[1],i=Sw(f,t,l,s,o,i)):0!==c[1]&&(i=Sw(f,t,c,s,o,i)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=o)}for(0!==d&&_w(f,t,d,n,r),f.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=xw(t.events,o))}return e}function Sw(e,t,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},Cw(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=Cw(t.events,n[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=Cw(t.events,n[2]),o=Cw(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},Cw(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function _w(e,t,n,r,i){const o=[],a=Cw(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Cw(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Pw={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return Dv(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Nv(r)?t(r):Lv(r)?e.check({tokenize:Ew},t,n)(r):n(r)}}};function Ew(e,t,n){return Vv(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Rw={};function zw(e){const t=e||Rw,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return _v([{text:iw},{document:{91:{name:"gfmFootnoteDefinition",tokenize:gw,continuation:{tokenize:mw},exit:vw}},text:{91:{name:"gfmFootnoteCall",tokenize:hw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:fw,resolveTo:pw}}},bw(e),{flow:{null:{name:"table",tokenize:kw,resolveAll:ww}}},{text:{91:Pw}}])}(t)),i.push([{transforms:[Xx],enter:{literalAutolink:Vx,literalAutolinkEmail:Hx,literalAutolinkHttp:Hx,literalAutolinkWww:Hx},exit:{literalAutolink:Yx,literalAutolinkEmail:Gx,literalAutolinkHttp:Ux,literalAutolinkWww:qx}},{enter:{gfmFootnoteCallString:Jx,gfmFootnoteCall:ek,gfmFootnoteDefinitionLabelString:tk,gfmFootnoteDefinition:nk},exit:{gfmFootnoteCallString:rk,gfmFootnoteCall:ik,gfmFootnoteDefinitionLabelString:ok,gfmFootnoteDefinition:ak}},{canContainEols:["delete"],enter:{strikethrough:fk},exit:{strikethrough:pk}},{enter:{table:jk,tableData:Vk,tableHeader:Vk,tableRow:Bk},exit:{codeText:Hk,table:$k,tableData:Wk,tableHeader:Wk,tableRow:Wk}},{exit:{taskListCheckValueChecked:Gk,taskListCheckValueUnchecked:Gk,paragraph:Yk}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Bx,notInConstruct:Wx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Bx,notInConstruct:Wx},{character:":",before:"[ps]",after:"\\/",inConstruct:Bx,notInConstruct:Wx}]},lk(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:dk}],handlers:{delete:hk}},qk(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Xk}}]}}(t))}const Tw=({message:e})=>{const t=Dg("colors","lightBackground"),n=Dg("colors","mutedText"),r=Dg("colors","text");return"loading"===e.type?e.content&&f.jsx(Px,{message:e.content,type:"loading"}):"user"===e.type?f.jsx(fn,{maxW:"220px",alignSelf:"flex-end",mb:1.5,children:(e.content.length>0||e.repliedProduct)&&f.jsx($c,{bg:"lightBackground",borderRadius:"20px",px:3,py:1.5,gap:1.5,alignItems:"start",w:"full",children:f.jsx(Sx,{components:{p:({children:e})=>f.jsx(eu,{wordBreak:"break-word",fontSize:"12px",fontWeight:"500",color:"text",children:e})},children:e.content})})}):"products"===e.type?f.jsx(fn,{maxW:"100%",alignSelf:"flex-start",mb:3,w:"full",children:f.jsx(Nx,{products:e.products||[]})}):"suggestions"===e.type?f.jsx(Dx,{suggestions:e.suggestions||[]}):f.jsx($c,{align:"stretch",gap:1.5,children:f.jsx(fn,{alignSelf:"flex-start",children:f.jsx(jc,{align:"start",justifyContent:"flex-start",gap:1.5,children:f.jsx(fn,{w:"full",borderRadius:"20px",py:2,children:f.jsx(Sx,{remarkPlugins:[zw],components:{p:({children:e})=>f.jsx(eu,{fontSize:"12px",fontWeight:"400",color:"text",textAlign:"left",children:e}),ol:({children:e})=>f.jsx(fn,{as:"ol",p:1.5,textAlign:"left",mb:1.5,listStyleType:"decimal",listStylePosition:"inside",children:e}),ul:({children:e})=>f.jsx(fn,{as:"ul",p:1.5,textAlign:"left",mb:1.5,listStyleType:"disc",listStylePosition:"inside",children:e}),li:({children:e})=>f.jsx(eu,{as:"li",fontSize:"12px",fontWeight:"400",color:"text",textAlign:"left",display:"list-item",children:e}),img:({src:e,alt:t})=>f.jsx(tu,{src:e,alt:t||"",maxW:"100%",borderRadius:"6px",my:1.5}),a:({children:e,href:t})=>f.jsx(ru,{href:t,target:"_blank",display:"block",wordBreak:"break-word",overflowWrap:"anywhere",children:f.jsx(eu,{fontSize:"12px",fontWeight:"400",color:"primary",textAlign:"left",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal",children:e})}),table:({children:e})=>f.jsx(fn,{overflowX:"auto",maxW:"100%",css:{"&::-webkit-scrollbar":{height:"5px"},"&::-webkit-scrollbar-track":{background:t,borderRadius:"8px"},"&::-webkit-scrollbar-thumb":{background:n,borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{background:r}},children:f.jsx(lu,{size:"sm",variant:"outline",w:"full",my:1.5,striped:!0,children:e})}),thead:({children:e})=>f.jsx(uu,{children:e}),tbody:({children:e})=>f.jsx(pu,{children:e}),tr:({children:e})=>f.jsx(cu,{children:e}),th:({children:e})=>f.jsx(du,{fontSize:"12px",fontWeight:"600",color:"text",textAlign:"left",px:1.5,lineHeight:"1.5",py:.75,textTransform:"none",letterSpacing:"normal",border:"1px solid",borderColor:"borderColor",whiteSpace:"nowrap",bg:"lightBackground",children:e}),td:({children:e})=>f.jsx(fu,{fontSize:"12px",fontWeight:"400",color:"text",textAlign:"left",px:1.5,lineHeight:"1.5",py:.75,border:"1px solid",borderColor:"borderColor",children:e})},children:e.content})})})})})},Iw=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:n,onSend:r,isMobileView:i})=>{const{chatState:{repliedProduct:o},setRepliedProduct:a}=Ac(),[s,l]=v.useState(t);v.useEffect(()=>{l(u(t))},[t]);const c=e=>{(s.trim()||e)&&(r?.({message:e??s.trim()},o?.product),a?.(null),l(""))},u=e=>e.trimStart();return f.jsx($c,{gap:1.5,align:"stretch",bg:"transparent",position:"relative",children:f.jsx(fn,{bg:"lightBackground",borderRadius:"20px",position:"relative",p:1.5,w:"full",h:o?i?"260px":"165px":"75px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:f.jsxs(fn,{position:"absolute",top:0,left:0,right:0,bottom:0,p:1.5,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:[o&&f.jsxs($c,{opacity:1,p:"6px",gap:"6px",borderRadius:"10px",borderWidth:"1px",borderColor:"border",bgColor:"background",children:[f.jsxs(jc,{justify:"space-between",align:"center",w:"full",children:[f.jsx(tu,{src:o?.product?.image,alt:"product",w:"32px",h:"32px"}),f.jsx(eu,{fontSize:"10px",fontWeight:400,color:"text",children:o?.product?.name}),f.jsx(Zc,{bg:"transparent","aria-label":"Remove product",onClick:()=>a?.(null),children:f.jsx(Ox,{w:"20px",h:"20px",color:"text"})})]}),o?.suggestions&&o.suggestions.length>0&&f.jsxs(f.Fragment,{children:[f.jsx(fn,{display:{base:"none",md:"block"},w:"full",children:f.jsx(jc,{w:"full",justify:"flex-start",align:"center",gap:1.5,children:o.suggestions.map(e=>f.jsx(Qc,{variant:"outline",bg:"transparent",color:"text",fontSize:"10px",borderColor:"borderColor",borderRadius:"20px",fontWeight:400,onClick:()=>c(e),h:"28px",px:2.5,minW:"unset",flex:1,lineHeight:"1.5",overflow:"hidden",children:f.jsx(fn,{as:"span",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",w:"100%",children:e})},e))})}),f.jsx(fn,{display:{base:"block",md:"none"},w:"full",children:f.jsx($c,{w:"full",align:"stretch",gap:"6px",children:o.suggestions.map(e=>f.jsx(Qc,{variant:"outline",bg:"transparent",w:"full",color:"text",fontSize:"10px",borderColor:"borderColor",borderRadius:"20px",fontWeight:400,onClick:()=>c(e),children:e},e))})})]})]}),f.jsx(Ug,{value:s,onChange:e=>(e=>{const t=u(e);l(t),n?.(t)})(e.target.value),onKeyPress:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),c())},placeholder:e,fontSize:"14px",color:"text",fontWeight:300,resize:"none",h:"100%",border:"none",bg:"transparent",lineHeight:"1.5",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"mutedText"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}),f.jsx(Zc,{position:"absolute",bottom:"10px",right:"10px",size:"xs",borderRadius:"full",bgColor:"primary",color:"background",border:"0px solid border","aria-label":"Send",onClick:()=>c(),_hover:{bg:"darkPrimary"},disabled:!s.trim(),transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"lightBackground",cursor:"not-allowed"},zIndex:2,children:f.jsx(Ix,{boxSize:"30px",color:"primary"})})]})})})},Ow=({placeholder:e="Write a prompt or paste a contract address",onStop:t})=>{const{stopCurrentRequest:n}=Ac();return f.jsx($c,{gap:1.5,align:"stretch",bg:"transparent",position:"relative",children:f.jsx(fn,{bg:"lightBackground",borderRadius:"28px",position:"relative",p:2.5,w:"full",h:"42px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:f.jsx(fn,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2.5,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:f.jsxs(jc,{justify:"space-between",align:"center",h:"full",children:[f.jsx(eu,{color:"mutedText",fontSize:"14px",flex:1,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e}),f.jsx(Zc,{size:"xs",borderRadius:"full",bgColor:"primary",color:"background","aria-label":"Stop",onClick:()=>{n?.(),t?.()},_hover:{bg:"darkPrimary"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",zIndex:2,children:f.jsx(Tx,{boxSize:"30px",color:"primary"})})]})})})})},Fw=({state:e="starting",placeholder:t="Write a prompt or paste a contract address",value:n="",onChange:r,onSend:i,onStop:o})=>{const[a,s]=v.useState(!1);return v.useEffect(()=>{const e=()=>{s(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),"starting"===e?f.jsx(Iw,{placeholder:t,value:n,onChange:r,onSend:i,isMobileView:a}):f.jsx(Ow,{placeholder:t,onStop:o,isMobileView:a})},Aw=()=>{const e=Ac(),{botData:t}=Ac(),n=v.useRef(null),r=e.messages.length>0;return v.useEffect(()=>{r&&n.current&&setTimeout(()=>{n.current?.scrollTo({top:n.current.scrollHeight,behavior:"smooth"})},100)},[e.messages,r]),f.jsxs($c,{flex:1,justify:"space-between",align:"stretch",gap:3,h:"full",minH:"200px",maxH:"300px",overflow:"hidden",children:[!r&&t?.suggested_prompts&&f.jsx(fn,{w:"full",flex:1,overflowY:"auto",overflowX:"hidden",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:f.jsx(jc,{wrap:"wrap",gap:1.5,children:t.suggested_prompts.slice(0,3).map((t,n)=>f.jsxs(Qc,{variant:"outline",h:"auto",borderRadius:"20px",border:"1px solid",borderColor:"borderColor",bg:"background",color:"text",fontSize:"12px",fontWeight:400,padding:"6px 10px 6px 10px",_hover:{bg:"lightBackground"},_active:{bg:"lightBackground",transform:"scale(0.98)"},lineHeight:"1.5",onClick:()=>(t=>{e.sendMessage({message:t})})(t),justifyContent:"start",maxW:"100%",children:[f.jsx(Ex,{w:3.5,h:3.5,color:"text"}),f.jsx(fn,{as:"span",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",fontFamily:"Estedad-FD, system-ui, sans-serif",children:t})]},n))})}),r&&f.jsx(fn,{ref:n,flex:1,overflowY:"auto",overflowX:"hidden",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:f.jsx($c,{gap:1.5,align:"stretch",pb:1.5,children:e.messages.map(e=>f.jsx(Tw,{message:e},e.id))})}),f.jsx(fn,{flexShrink:0,bg:"transparent",borderRadius:"10px",transition:"all 0.2s ease",children:f.jsx(Fw,{state:e.inputState,placeholder:"generating"===e.inputState?"Processing...":"What's your question?",onSend:e.isInputDisabled?void 0:e.sendMessage,onStop:e.stopCurrentRequest})})]})},Mw=()=>{const{botData:e}=Ac(),t=e?.white_label?.is_white_labeled??!1;return f.jsxs(jc,{mt:1,justifyContent:"start",align:"center",alignContent:"center",wrap:"wrap",gapX:4,alignItems:"center",w:"full",children:[!t&&f.jsxs(ru,{href:Fx("https://dori.tech/",e?.sharing_id||""),target:"_blank",children:[f.jsxs(eu,{fontSize:{base:"9px",md:"10px"},color:"mutedText",textAlign:"center",lineHeight:"1.4",textWrap:"nowrap",children:["Powered by"," "]}),f.jsx(tu,{src:"https://dori.fra1.cdn.digitaloceanspaces.com/dori-16px.webp",alt:"Bot Image",h:{base:"14px",md:"16px"}})]}),f.jsx(fn,{fontSize:{base:"8px",md:"10px"},color:"mutedText",bg:"transparent",border:"none",display:"flex",alignItems:"center",justifyContent:"flex-start",children:f.jsx(fn,{children:"AI can make mistakes. Check important info"})})]})},Nw=({width:e="100%",height:t="20px",borderRadius:n="8px"})=>{const r="rgba(255, 255, 255, 0.15)";return f.jsx(fn,{width:e,height:t,borderRadius:n,style:{background:`linear-gradient(90deg, ${r} 0px, rgba(255, 255, 255, 0.25) 40px, ${r} 80px)`,backgroundSize:"1000px 100%",animation:"shimmer 2s infinite linear",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:"1px solid rgba(255, 255, 255, 0.18)",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"}})},Dw=()=>f.jsxs(fn,{style:{zIndex:9999,overflow:"hidden",willChange:"transform",pointerEvents:"auto",transform:"translateY(0)",transition:"all 0.5s ease",visibility:"visible",opacity:1,background:"rgba(255, 255, 255, 0.1)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.1)"},children:[f.jsx("style",{children:"\n @keyframes shimmer {\n 0% {\n background-position: -1000px 0;\n }\n 100% {\n background-position: 1000px 0;\n }\n }\n"}),f.jsxs($c,{p:3,h:"full",justify:"space-between",align:"stretch",gap:3,children:[f.jsxs(jc,{gap:3,p:3,children:[f.jsx(Nw,{width:"40px",height:"40px",borderRadius:"full"}),f.jsxs($c,{align:"flex-start",gap:2,flex:1,children:[f.jsx(Nw,{width:"140px",height:"16px"}),f.jsx(Nw,{width:"100px",height:"12px"})]})]}),f.jsxs($c,{gap:4,flex:1,align:"stretch",px:3,children:[f.jsx(jc,{justify:"flex-end",children:f.jsx(Nw,{width:"60%",height:"50px",borderRadius:"16px"})}),f.jsxs(jc,{gap:3,overflowX:"hidden",px:1,children:[f.jsx(fn,{minW:"140px",children:f.jsxs($c,{align:"stretch",gap:2,children:[f.jsx(Nw,{width:"70px",height:"70px",borderRadius:"12px"}),f.jsx(Nw,{width:"100%",height:"12px"})]})}),f.jsx(fn,{minW:"140px",children:f.jsxs($c,{align:"stretch",gap:2,children:[f.jsx(Nw,{width:"70px",height:"70px",borderRadius:"12px"}),f.jsx(Nw,{width:"100%",height:"12px"})]})})]})]}),f.jsx(fn,{p:2,children:f.jsx(Nw,{width:"100%",height:"42px",borderRadius:"28px"})})]})]}),Lw=()=>{const{botData:e,isLoadingBot:t}=Ac();return t?f.jsx(Dw,{}):e?f.jsx(fn,{style:{zIndex:9999,overflow:"hidden",willChange:"transform",pointerEvents:"auto",transform:"translateY(0)",transition:"all 0.5s ease",visibility:"visible",opacity:1},children:f.jsxs($c,{p:3,h:"full",justify:"flex-start",align:"stretch",children:[f.jsx(Aw,{})," ",f.jsx(fn,{transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:f.jsx(Mw,{})})]})}):null};function jw(){const[e,t]=v.useState(""),[n,r]=v.useState(null),{isLoadingBot:i}=Ac();return function({sharingId:e,productId:t}){const{initializeBot:n,resetBot:r}=Ac(),i=v.useRef(void 0),o=v.useRef(void 0);v.useEffect(()=>{(async()=>{(i.current&&e&&i.current!==e||o.current!==t)&&r?.(),i.current=e,o.current=t,e&&await n(e,t)})()},[e,t,n,r])}({sharingId:e,productId:n}),v.useEffect(()=>{window.chatbotData?t(window.chatbotData.sharingID):_c("useEffect sharing ID",()=>{const e=()=>{const e=document.querySelector("script#dori-react-widget");return{sharingId:e?.getAttribute("data-sharing-id")||"",productId:e?.getAttribute("data-product-id")||null}},{sharingId:n,productId:i}=e();t(n),r(i);const o=document.querySelector("script#dori-react-widget");if(!o)return;const a=new MutationObserver(n=>{for(const i of n)if("attributes"===i.type&&("data-sharing-id"===i.attributeName||"data-product-id"===i.attributeName)){const{sharingId:n,productId:i}=e();t(n),r(i)}});return a.observe(o,{attributes:!0,attributeFilter:["data-sharing-id","data-product-id"]}),()=>{a.disconnect()}})()},[]),f.jsx(fn,{fontFamily:"Estedad-FD, system-ui, Avenir, Helvetica, Arial, sans-serif",lineHeight:"1.5",fontWeight:"400",backgroundColor:i?"transparent":"background",style:i?{background:"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",transition:"all 0.5s ease"}:{transition:"all 0.5s ease"},children:f.jsx(Lw,{})})}function $w(){return f.jsx(jw,{})}var Bw={};const Ww=r(Dt),Vw=r(He);var Hw,Uw={},qw={};function Gw(){if(Hw)return qw;Hw=1;var e=m(),t=M();function n(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."}var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.scope"),b=Symbol.for("react.activity"),y=Symbol.for("react.legacy_hidden"),x=Symbol.for("react.memo_cache_sentinel"),k=Symbol.for("react.view_transition"),w=Symbol.iterator,S=Array.isArray;function _(e,t){var n=3&e.length,r=e.length-n,i=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,i=27492+(65535&(i=5*(65535&(i=(i^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+(((i>>>16)+58964&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:i^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,((i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295)^i>>>16)>>>0}var C=Object.assign,P=Object.prototype.hasOwnProperty,E=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]*$"),R={},z={};function T(e){return!!P.call(z,e)||!P.call(R,e)&&(E.test(e)?z[e]=!0:(R[e]=!0,!1))}var I=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(" ")),O=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"],["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"]]),F=/["'&<>]/;function A(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=F.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==n&&(r+=e.slice(i,n)),i=n+1,r+=t}e=i!==n?r+e.slice(i,n):r}return e}var N=/([A-Z])/g,D=/^ms-/,L=/^[\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 j(e){return L.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var $=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},V=B.d;B.d={f:V.f,r:V.r,D:function(e){var t=cn||null;if(t){var n,r,i=t.resumableState,o=t.renderState;if("string"==typeof e&&e)i.dnsResources.hasOwnProperty(e)||(i.dnsResources[e]=null,(r=(i=o.headers)&&0<i.remainingCapacity)&&(n="<"+(""+e).replace(He,Ue)+">; rel=dns-prefetch",r=0<=(i.remainingCapacity-=n.length+2)),r?(o.resets.dns[e]=null,i.preconnects&&(i.preconnects+=", "),i.preconnects+=n):(le(n=[],{href:e,rel:"dns-prefetch"}),o.preconnects.add(n))),Yn(t)}else V.D(e)},C:function(e,t){var n=cn||null;if(n){var r=n.resumableState,i=n.renderState;if("string"==typeof e&&e){var o,a,s="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[s].hasOwnProperty(e))r.connectResources[s][e]=null,(a=(r=i.headers)&&0<r.remainingCapacity)&&(a="<"+(""+e).replace(He,Ue)+">; rel=preconnect","string"==typeof t&&(a+='; crossorigin="'+(""+t).replace(qe,Ge)+'"'),o=a,a=0<=(r.remainingCapacity-=o.length+2)),a?(i.resets.connect[s][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=o):(le(s=[],{rel:"preconnect",href:e,crossOrigin:t}),i.preconnects.add(s));Yn(n)}}else V.C(e,t)},L:function(e,t,n){var r=cn||null;if(r){var i=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var a=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var c,u=a?a+"\n"+(s||""):e;if(i.imageResources.hasOwnProperty(u))return;i.imageResources[u]=H,(i=o.headers)&&0<i.remainingCapacity&&"string"!=typeof a&&"high"===l&&(c=Ve(e,t,n),0<=(i.remainingCapacity-=c.length+2))?(o.resets.image[u]=H,i.highImagePreloads&&(i.highImagePreloads+=", "),i.highImagePreloads+=c):(le(i=[],C({rel:"preload",href:a?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(i):(o.bulkPreloads.add(i),o.preloads.images.set(u,i)));break;case"style":if(i.styleResources.hasOwnProperty(e))return;le(a=[],C({rel:"preload",href:e,as:t},n)),i.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?H:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,a),o.bulkPreloads.add(a);break;case"script":if(i.scriptResources.hasOwnProperty(e))return;a=[],o.preloads.scripts.set(e,a),o.bulkPreloads.add(a),le(a,C({rel:"preload",href:e,as:t},n)),i.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?H:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if((a=i.unknownResources[t]).hasOwnProperty(e))return}else a={},i.unknownResources[t]=a;a[e]=H,(i=o.headers)&&0<i.remainingCapacity&&"font"===t&&(u=Ve(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(o.resets.font[e]=H,i.fontPreloads&&(i.fontPreloads+=", "),i.fontPreloads+=u):"font"===(le(i=[],e=C({rel:"preload",href:e,as:t},n)),t)?o.fontPreloads.add(i):o.bulkPreloads.add(i)}Yn(r)}}else V.L(e,t,n)},m:function(e,t){var n=cn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?H:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var a=r.unknownResources[o];if(a.hasOwnProperty(e))return}else a={},r.moduleUnknownResources[o]=a;o=[],a[e]=H}le(o,C({rel:"modulepreload",href:e},t)),i.bulkPreloads.add(o),Yn(n)}}else V.m(e,t)},X:function(e,t){var n=cn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=C({src:e,async:!0},t),o&&(2===o.length&&We(t,o),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),pe(e,t),Yn(n))}}else V.X(e,t)},S:function(e,t,n){var r=cn||null;if(r){var i=r.resumableState,o=r.renderState;if(e){t=t||"default";var a=o.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;null!==s&&(i.styleResources[e]=null,a||(a={precedence:A(t),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,a)),t={state:0,props:C({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&We(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),a.sheets.set(e,t),Yn(r))}}else V.S(e,t,n)},M:function(e,t){var n=cn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=C({src:e,type:"module",async:!0},t),o&&(2===o.length&&We(t,o),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),pe(e,t),Yn(n))}}else V.M(e,t)}};var H=[],U=/(<\/|<)(s)(cript)/gi;function q(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function G(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}}function Y(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function X(e,t,n){switch(t){case"noscript":return Y(2,null,1|e.tagScope);case"select":return Y(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return Y(4,null,e.tagScope);case"picture":return Y(2,null,2|e.tagScope);case"math":return Y(5,null,e.tagScope);case"foreignObject":return Y(2,null,e.tagScope);case"table":return Y(6,null,e.tagScope);case"thead":case"tbody":case"tfoot":return Y(7,null,e.tagScope);case"colgroup":return Y(9,null,e.tagScope);case"tr":return Y(8,null,e.tagScope);case"head":if(2>e.insertionMode)return Y(3,null,e.tagScope);break;case"html":if(0===e.insertionMode)return Y(1,null,e.tagScope)}return 6<=e.insertionMode||2>e.insertionMode?Y(2,null,e.tagScope):e}var K=new Map;function Q(e,t){if("object"!=typeof t)throw Error(n(62));var r,i=!0;for(r in t)if(P.call(t,r)){var o=t[r];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===r.indexOf("--")){var a=A(r);o=A((""+o).trim())}else void 0===(a=K.get(r))&&(a=A(r.replace(N,"-$1").toLowerCase().replace(D,"-ms-")),K.set(r,a)),o="number"==typeof o?0===o||I.has(r)?""+o:o+"px":A((""+o).trim());i?(i=!1,e.push(' style="',a,":",o)):e.push(";",a,":",o)}}i||e.push('"')}function Z(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'=""')}function J(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(" ",t,'="',A(n),'"')}var ee=A("javascript:throw new Error('React form unexpectedly submitted.')");function te(e,t){this.push('<input type="hidden"'),ne(e),J(this,"name",t),J(this,"value",e),this.push("/>")}function ne(e){if("string"!=typeof e)throw Error(n(480))}function re(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var i=r.data;null!=i&&i.forEach(ne)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function ie(e,t,n,r,i,o,a,s){var l=null;if("function"==typeof r){var c=re(t,r);null!==c?(s=c.name,r=c.action||"",i=c.encType,o=c.method,a=c.target,l=c.data):(e.push(" ","formAction",'="',ee,'"'),a=o=i=r=s=null,se(t,n))}return null!=s&&oe(e,"name",s),null!=r&&oe(e,"formAction",r),null!=i&&oe(e,"formEncType",i),null!=o&&oe(e,"formMethod",o),null!=a&&oe(e,"formTarget",a),l}function oe(e,t,n){switch(t){case"className":J(e,"class",n);break;case"tabIndex":J(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":J(e,t,n);break;case"style":Q(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=j(""+n),e.push(" ",t,'="',A(n),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Z(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=j(""+n),e.push(" ","xlink:href",'="',A(n),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'="',A(n),'"');break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'=""');break;case"capture":case"download":!0===n?e.push(" ",t,'=""'):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'="',A(n),'"');break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(" ",t,'="',A(n),'"');break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(" ",t,'="',A(n),'"');break;case"xlinkActuate":J(e,"xlink:actuate",n);break;case"xlinkArcrole":J(e,"xlink:arcrole",n);break;case"xlinkRole":J(e,"xlink:role",n);break;case"xlinkShow":J(e,"xlink:show",n);break;case"xlinkTitle":J(e,"xlink:title",n);break;case"xlinkType":J(e,"xlink:type",n);break;case"xmlBase":J(e,"xml:base",n);break;case"xmlLang":J(e,"xml:lang",n);break;case"xmlSpace":J(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&T(t=O.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(" ",t,'="',A(n),'"')}}}function ae(e,t,r){if(null!=t){if(null!=r)throw Error(n(60));if("object"!=typeof t||!("__html"in t))throw Error(n(61));null!=(t=t.__html)&&e.push(""+t)}}function se(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',"<\/script>"))}function le(e,t){for(var r in e.push(be("link")),t)if(P.call(t,r)){var i=t[r];if(null!=i)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:oe(e,r,i)}}return e.push("/>"),null}var ce=/(<\/|<)(s)(tyle)/gi;function ue(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function de(e,t,r){for(var i in e.push(be(r)),t)if(P.call(t,i)){var o=t[i];if(null!=o)switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,r));default:oe(e,i,o)}}return e.push("/>"),null}function fe(e,t){e.push(be("title"));var n,r=null,i=null;for(n in t)if(P.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:oe(e,n,o)}}return e.push(">"),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(A(""+t)),ae(e,i,r),e.push(xe("title")),null}function pe(e,t){e.push(be("script"));var n,r=null,i=null;for(n in t)if(P.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:oe(e,n,o)}}return e.push(">"),ae(e,i,r),"string"==typeof r&&e.push((""+r).replace(U,q)),e.push(xe("script")),null}function he(e,t,n){e.push(be(n));var r,i=n=null;for(r in t)if(P.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:oe(e,r,o)}}return e.push(">"),ae(e,i,n),n}function ge(e,t,n){e.push(be(n));var r,i=n=null;for(r in t)if(P.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:oe(e,r,o)}}return e.push(">"),ae(e,i,n),"string"==typeof n?(e.push(A(n)),null):n}var me=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ve=new Map;function be(e){var t=ve.get(e);if(void 0===t){if(!me.test(e))throw Error(n(65,e));t="<"+e,ve.set(e,t)}return t}var ye=new Map;function xe(e){var t=ye.get(e);return void 0===t&&(t="</"+e+">",ye.set(e,t)),t}function ke(e,t){null===(e=e.preamble).htmlChunks&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks,t.contribution|=1),null===e.headChunks&&t.headChunks&&(e.headChunks=t.headChunks,t.contribution|=4),null===e.bodyChunks&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks,t.contribution|=2)}function we(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)e.push(t[n]);return!(n<t.length)||(n=t[n],t.length=0,e.push(n))}function Se(e,t,r){if(e.push('\x3c!--$?--\x3e<template id="'),null===r)throw Error(n(395));return e.push(t.boundaryPrefix),t=r.toString(16),e.push(t),e.push('"></template>')}function _e(e,t){0!==(t=t.contribution)&&(e.push("\x3c!--"),e.push(""+t),e.push("--\x3e"))}var Ce=/[<\u2028\u2029]/g;function Pe(e){return JSON.stringify(e).replace(Ce,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Ee=/[&><\u2028\u2029]/g;function Re(e){return JSON.stringify(e).replace(Ee,function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ze=!1,Te=!0;function Ie(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(this.push('<style media="not all" data-precedence="'),this.push(e.precedence),this.push('" data-href="');r<n.length-1;r++)this.push(n[r]),this.push(" ");for(this.push(n[r]),this.push('">'),r=0;r<t.length;r++)this.push(t[r]);Te=this.push("</style>"),ze=!0,t.length=0,n.length=0}}function Oe(e){return 2!==e.state&&(ze=!0)}function Fe(e,t,n){return ze=!1,Te=!0,t.styles.forEach(Ie,e),t.stylesheets.forEach(Oe),ze&&(n.stylesToHoist=!0),Te}function Ae(e){for(var t=0;t<e.length;t++)this.push(e[t]);e.length=0}var Me=[];function Ne(e){le(Me,e.props);for(var t=0;t<Me.length;t++)this.push(Me[t]);Me.length=0,e.state=2}function De(e){var t=0<e.sheets.size;e.sheets.forEach(Ne,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(this.push('<style data-precedence="'),this.push(e.precedence),e=0,r.length){for(this.push('" data-href="');e<r.length-1;e++)this.push(r[e]),this.push(" ");this.push(r[e])}for(this.push('">'),e=0;e<n.length;e++)this.push(n[e]);this.push("</style>"),n.length=0,r.length=0}}function Le(e){if(0===e.state){e.state=1;var t=e.props;for(le(Me,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<Me.length;e++)this.push(Me[e]);Me.length=0}}function je(e){e.sheets.forEach(Le,this),e.sheets.clear()}function $e(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=j(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!T(t))return;t=""+n}e.push(","),r=Re(r),e.push(r),e.push(","),r=Re(t),e.push(r)}function Be(){return{styles:new Set,stylesheets:new Set}}function We(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function Ve(e,t,n){for(var r in t="<"+(e=(""+e).replace(He,Ue))+'>; rel=preload; as="'+(t=(""+t).replace(qe,Ge))+'"',n)P.call(n,r)&&"string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(qe,Ge)+'"');return t}var He=/[<>\r\n]/g;function Ue(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var qe=/["';,\r\n]/g;function Ge(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Ye(e){this.styles.add(e)}function Xe(e){this.stylesheets.add(e)}function Ke(e,t,n,r){return n.generateStaticMarkup?(e.push(A(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(A(t)),e=!0),e)}function Qe(e,t,n,r){t.generateStaticMarkup||n&&r&&e.push("\x3c!-- --\x3e")}var Ze=Function.prototype.bind,Je=Symbol.for("react.client.reference");function et(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Je?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList";case b:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case i:return"Portal";case u:return(e.displayName||"Context")+".Provider";case c:return(e._context.displayName||"Context")+".Consumer";case d:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case h:return null!==(t=e.displayName||null)?t:et(e.type)||"Memo";case g:t=e._payload,e=e._init;try{return et(e(t))}catch(n){}}return null}var tt={},nt=null;function rt(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(null===e){if(null!==r)throw Error(n(401))}else{if(null===r)throw Error(n(401));rt(e,r)}t.context._currentValue2=t.value}}function it(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&it(e)}function ot(e){var t=e.parent;null!==t&&ot(t),e.context._currentValue2=e.value}function at(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(n(402));e.depth===t.depth?rt(e,t):at(e,t)}function st(e,t){var r=t.parent;if(null===r)throw Error(n(402));e.depth===r.depth?rt(e,r):st(e,r),t.context._currentValue2=t.value}function lt(e){var t=nt;t!==e&&(null===t?ot(e):null===e?it(t):t.depth===e.depth?rt(t,e):t.depth>e.depth?at(t,e):st(t,e),nt=e)}var ct={enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},ut={id:1,overflow:""};function dt(e,t,n){var r=e.id;e=e.overflow;var i=32-ft(r)-1;r&=~(1<<i),n+=1;var o=32-ft(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-ft(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var ft=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(pt(e)/ht|0)|0},pt=Math.log,ht=Math.LN2,gt=Error(n(460));function mt(){}var vt=null;function bt(){if(null===vt)throw Error(n(459));var e=vt;return vt=null,e}var yt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},xt=null,kt=null,wt=null,St=null,_t=null,Ct=null,Pt=!1,Et=!1,Rt=0,zt=0,Tt=-1,It=0,Ot=null,Ft=null,At=0;function Mt(){if(null===xt)throw Error(n(321));return xt}function Nt(){if(0<At)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Dt(){return null===Ct?null===_t?(Pt=!1,_t=Ct=Nt()):(Pt=!0,Ct=_t):null===Ct.next?(Pt=!1,Ct=Ct.next=Nt()):(Pt=!0,Ct=Ct.next),Ct}function Lt(){var e=Ot;return Ot=null,e}function jt(){St=wt=kt=xt=null,Et=!1,_t=null,At=0,Ct=Ft=null}function $t(e,t){return"function"==typeof t?t(e):t}function Bt(e,t,n){if(xt=Mt(),Ct=Dt(),Pt){var r=Ct.queue;if(t=r.dispatch,null!==Ft&&void 0!==(n=Ft.get(r))){Ft.delete(r),r=Ct.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Ct.memoizedState=r,[r,t]}return[Ct.memoizedState,t]}return e=e===$t?"function"==typeof t?t():t:void 0!==n?n(t):t,Ct.memoizedState=e,e=(e=Ct.queue={last:null,dispatch:null}).dispatch=Vt.bind(null,xt,e),[Ct.memoizedState,e]}function Wt(e,t){if(xt=Mt(),t=void 0===t?null:t,null!==(Ct=Dt())){var n=Ct.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!yt(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Ct.memoizedState=[e,t],e}function Vt(e,t,r){if(25<=At)throw Error(n(301));if(e===xt)if(Et=!0,e={action:r,next:null},null===Ft&&(Ft=new Map),void 0===(r=Ft.get(t)))Ft.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function Ht(){throw Error(n(394))}function Ut(){throw Error(n(479))}function qt(e,t,n){Mt();var r=zt++,i=wt;if("function"==typeof e.$$FORM_ACTION){var o=null,a=St;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==i&&"function"==typeof s){var l=i[1];s.call(e,i[2],i[3])&&l===(o=void 0!==n?"p"+n:"k"+_(JSON.stringify([a,null,r]),0))&&(Tt=r,t=i[0])}var c=e.bind(null,t);return e=function(e){c(e)},"function"==typeof c.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=c.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+_(JSON.stringify([a,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function Gt(e){var t=It;return It+=1,null===Ot&&(Ot=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(mt,mt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(mt,mt):((e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw vt=t,gt}}(Ot,e,t)}function Yt(){throw Error(n(393))}function Xt(){}var Kt,Qt,Zt={readContext:function(e){return e._currentValue2},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Gt(e);if(e.$$typeof===u)return e._currentValue2}throw Error(n(438,String(e)))},useContext:function(e){return Mt(),e._currentValue2},useMemo:Wt,useReducer:Bt,useRef:function(e){xt=Mt();var t=(Ct=Dt()).memoizedState;return null===t?(e={current:e},Ct.memoizedState=e):t},useState:function(e){return Bt($t,e)},useInsertionEffect:Xt,useLayoutEffect:Xt,useCallback:function(e,t){return Wt(function(){return e},t)},useImperativeHandle:Xt,useEffect:Xt,useDebugValue:Xt,useDeferredValue:function(e,t){return Mt(),void 0!==t?t:e},useTransition:function(){return Mt(),[!1,Ht]},useId:function(){var e=kt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-ft(e)-1)).toString(32)+t;var r=Jt;if(null===r)throw Error(n(404));return t=Rt++,e="«"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+"»"},useSyncExternalStore:function(e,t,r){if(void 0===r)throw Error(n(407));return r()},useOptimistic:function(e){return Mt(),[e,Ut]},useActionState:qt,useFormState:qt,useHostTransitionStatus:function(){return Mt(),W},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=x;return t},useCacheRefresh:function(){return Yt}},Jt=null,en={getCacheForType:function(){throw Error(n(248))}};function tn(e){if(void 0===Kt)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Kt=t&&t[1]||"",Qt=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Kt+e+Qt}var nn=!1;function rn(e,t){if(!e||nn)return"";nn=!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()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.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 o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==c[i]){var u="\n"+l[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{nn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?tn(n):""}function on(e){if("string"==typeof e)return tn(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?rn(e,!0):rn(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case d:return rn(e.render,!1);case h:return rn(e.type,!1);case g:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return tn("Lazy")}return on(e)}if("string"==typeof e.name)return n=e.env,tn(e.name+(n?" ["+n+"]":""))}switch(e){case p:return tn("SuspenseList");case f:return tn("Suspense")}return""}function an(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"[%s] "+e[0]," "+t+" "):e.splice(0,0,"[%s] "," "+t+" "),e.unshift(console),(t=Ze.apply(console.error,e))()}return null}function sn(){}function ln(e,t,n,r,i,o,a,s,l,c,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===i?an:i,this.onPostpone=void 0===c?sn:c,this.onAllReady=void 0===o?sn:o,this.onShellReady=void 0===a?sn:a,this.onShellError=void 0===s?sn:s,this.onFatalError=void 0===l?sn:l,this.formState=void 0===u?null:u}var cn=null;function un(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,Ln(e))}function dn(e,t,n,r){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:Be(),fallbackState:Be(),contentPreamble:n,fallbackPreamble:r,trackedContentKeyPath:null,trackedFallbackNode:null}}function fn(e,t,n,r,i,o,a,s,l,c,u,d,f,p,h){e.allPendingTasks++,null===i?e.pendingRootTasks++:i.pendingTasks++;var g={replay:null,node:n,childIndex:r,ping:function(){return un(e,g)},blockedBoundary:i,blockedSegment:o,blockedPreamble:a,hoistableState:s,abortSet:l,keyPath:c,formatContext:u,context:d,treeContext:f,componentStack:p,thenableState:t,isFallback:h};return l.add(g),g}function pn(e,t,n,r,i,o,a,s,l,c,u,d,f,p){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var h={replay:n,node:r,childIndex:i,ping:function(){return un(e,h)},blockedBoundary:o,blockedSegment:null,blockedPreamble:null,hoistableState:a,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:f,thenableState:t,isFallback:p};return s.add(h),h}function hn(e,t,n,r,i,o){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function gn(e){var t=e.node;"object"==typeof t&&null!==t&&t.$$typeof===r&&(e.componentStack={parent:e.componentStack,type:t.type})}function mn(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=on(r.type),r=r.parent}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function vn(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function bn(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,e.destination.destroy(t)):(e.status=13,e.fatalError=t)}function yn(e,t,n,r,i,o){var a=t.thenableState;for(t.thenableState=null,xt={},kt=t,wt=e,St=n,zt=Rt=0,Tt=-1,It=0,Ot=a,e=r(i,o);Et;)Et=!1,zt=Rt=0,Tt=-1,It=0,At+=1,Ct=null,e=r(i,o);return jt(),e}function xn(e,t,n,r,i,o,a){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===a?l.push("\x3c!--F!--\x3e"):l.push("\x3c!--F--\x3e")}}o=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=dt(n,1,0),zn(e,t,r,-1),t.treeContext=n):s?zn(e,t,r,-1):Sn(e,t,r,-1),t.keyPath=o}function kn(t,r,i,m,x,w){if("function"==typeof m)if(m.prototype&&m.prototype.isReactComponent){var _=x;if("ref"in x)for(var E in _={},x)"ref"!==E&&(_[E]=x[E]);var R=m.defaultProps;if(R)for(var z in _===x&&(_=C({},_,x)),R)void 0===_[z]&&(_[z]=R[z]);x=_,_=tt,"object"==typeof(R=m.contextType)&&null!==R&&(_=R._currentValue2);var I=void 0!==(_=new m(x,_)).state?_.state:null;if(_.updater=ct,_.props=x,_.state=I,R={queue:[],replace:!1},_._reactInternals=R,w=m.contextType,_.context="object"==typeof w&&null!==w?w._currentValue2:tt,"function"==typeof(w=m.getDerivedStateFromProps)&&(I=null==(w=w(x,I))?I:C({},I,w),_.state=I),"function"!=typeof m.getDerivedStateFromProps&&"function"!=typeof _.getSnapshotBeforeUpdate&&("function"==typeof _.UNSAFE_componentWillMount||"function"==typeof _.componentWillMount))if(m=_.state,"function"==typeof _.componentWillMount&&_.componentWillMount(),"function"==typeof _.UNSAFE_componentWillMount&&_.UNSAFE_componentWillMount(),m!==_.state&&ct.enqueueReplaceState(_,_.state,null),null!==R.queue&&0<R.queue.length)if(m=R.queue,w=R.replace,R.queue=null,R.replace=!1,w&&1===m.length)_.state=m[0];else{for(R=w?m[0]:_.state,I=!0,w=w?1:0;w<m.length;w++)null!=(z="function"==typeof(z=m[w])?z.call(_,R,x,void 0):z)&&(I?(I=!1,R=C({},R,z)):C(R,z));_.state=R}else R.queue=null;if(m=_.render(),12===t.status)throw null;x=r.keyPath,r.keyPath=i,Sn(t,r,m,-1),r.keyPath=x}else{if(m=yn(t,r,i,m,x,void 0),12===t.status)throw null;xn(t,r,i,m,0!==Rt,zt,Tt)}else{if("string"!=typeof m){switch(m){case y:case a:case s:case o:return m=r.keyPath,r.keyPath=i,Sn(t,r,x.children,-1),void(r.keyPath=m);case b:return void("hidden"!==x.mode&&(m=r.keyPath,r.keyPath=i,Sn(t,r,x.children,-1),r.keyPath=m));case p:return m=r.keyPath,r.keyPath=i,Sn(t,r,x.children,-1),void(r.keyPath=m);case k:case v:throw Error(n(343));case f:e:if(null!==r.replay){m=r.keyPath,r.keyPath=i,i=x.children;try{zn(t,r,i,-1)}finally{r.keyPath=m}}else{m=r.keyPath;var O=r.blockedBoundary;w=r.blockedPreamble;var F=r.hoistableState;z=r.blockedSegment,E=x.fallback,x=x.children;var M=new Set,N=2>r.formatContext.insertionMode?dn(0,M,{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0},{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}):dn(0,M,null,null);null!==t.trackedPostpones&&(N.trackedContentKeyPath=i);var D=hn(0,z.chunks.length,N,r.formatContext,!1,!1);z.children.push(D),z.lastPushedText=!1;var L=hn(0,0,null,r.formatContext,!1,!1);if(L.parentFlushed=!0,null!==t.trackedPostpones){R=[(_=[i[0],"Suspense Fallback",i[2]])[1],_[2],[],null],t.trackedPostpones.workingMap.set(_,R),N.trackedFallbackNode=R,r.blockedSegment=D,r.blockedPreamble=N.fallbackPreamble,r.keyPath=_,D.status=6;try{zn(t,r,E,-1),Qe(D.chunks,t.renderState,D.lastPushedText,D.textEmbedded),D.status=1}catch($){throw D.status=12===t.status?3:4,$}finally{r.blockedSegment=z,r.blockedPreamble=w,r.keyPath=m}gn(r=fn(t,null,x,-1,N,L,N.contentPreamble,N.contentState,r.abortSet,i,r.formatContext,r.context,r.treeContext,r.componentStack,r.isFallback)),t.pingedTasks.push(r)}else{r.blockedBoundary=N,r.blockedPreamble=N.contentPreamble,r.hoistableState=N.contentState,r.blockedSegment=L,r.keyPath=i,L.status=6;try{if(zn(t,r,x,-1),Qe(L.chunks,t.renderState,L.lastPushedText,L.textEmbedded),L.status=1,Nn(N,L),0===N.pendingTasks&&0===N.status){N.status=1,0===t.pendingRootTasks&&r.blockedPreamble&&Bn(t);break e}}catch(B){N.status=4,12===t.status?(L.status=3,_=t.fatalError):(L.status=4,_=B),I=vn(t,_,R=mn(r.componentStack)),N.errorDigest=I,Pn(t,N)}finally{r.blockedBoundary=O,r.blockedPreamble=w,r.hoistableState=F,r.blockedSegment=z,r.keyPath=m}gn(r=fn(t,null,E,-1,O,D,N.fallbackPreamble,N.fallbackState,M,[i[0],"Suspense Fallback",i[2]],r.formatContext,r.context,r.treeContext,r.componentStack,!0)),t.pingedTasks.push(r)}}return}if("object"==typeof m&&null!==m)switch(m.$$typeof){case d:if("ref"in x)for(N in _={},x)"ref"!==N&&(_[N]=x[N]);else _=x;return void xn(t,r,i,m=yn(t,r,i,m.render,_,w),0!==Rt,zt,Tt);case h:return void kn(t,r,i,m.type,x,w);case l:case u:if(R=x.children,_=r.keyPath,x=x.value,I=m._currentValue2,m._currentValue2=x,nt=m={parent:w=nt,depth:null===w?0:w.depth+1,context:m,parentValue:I,value:x},r.context=m,r.keyPath=i,Sn(t,r,R,-1),null===(t=nt))throw Error(n(403));return t.context._currentValue2=t.parentValue,t=nt=t.parent,r.context=t,void(r.keyPath=_);case c:return m=(x=x.children)(m._context._currentValue2),x=r.keyPath,r.keyPath=i,Sn(t,r,m,-1),void(r.keyPath=x);case g:if(m=(_=m._init)(m._payload),12===t.status)throw null;return void kn(t,r,i,m,x,w)}throw Error(n(130,null==m?m:typeof m,""))}if(null===(_=r.blockedSegment))_=x.children,R=r.formatContext,I=r.keyPath,r.formatContext=X(R,m,x),r.keyPath=i,zn(t,r,_,-1),r.formatContext=R,r.keyPath=I;else{w=function(t,r,i,o,a,s,l,c,u,d){switch(r){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":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":break;case"a":t.push(be("a"));var f,p=null,h=null;for(f in i)if(P.call(i,f)){var g=i[f];if(null!=g)switch(f){case"children":p=g;break;case"dangerouslySetInnerHTML":h=g;break;case"href":""===g?J(t,"href",""):oe(t,f,g);break;default:oe(t,f,g)}}if(t.push(">"),ae(t,h,p),"string"==typeof p){t.push(A(p));var m=null}else m=p;return m;case"select":t.push(be("select"));var v,b=null,y=null;for(v in i)if(P.call(i,v)){var x=i[v];if(null!=x)switch(v){case"children":b=x;break;case"dangerouslySetInnerHTML":y=x;break;case"defaultValue":case"value":break;default:oe(t,v,x)}}return t.push(">"),ae(t,y,b),b;case"option":var k=c.selectedValue;t.push(be("option"));var w,_=null,E=null,R=null,z=null;for(w in i)if(P.call(i,w)){var I=i[w];if(null!=I)switch(w){case"children":_=I;break;case"selected":R=I;break;case"dangerouslySetInnerHTML":z=I;break;case"value":E=I;default:oe(t,w,I)}}if(null!=k){var O=null!==E?""+E:function(t){var n="";return e.Children.forEach(t,function(e){null!=e&&(n+=e)}),n}(_);if(S(k)){for(var F=0;F<k.length;F++)if(""+k[F]===O){t.push(' selected=""');break}}else""+k===O&&t.push(' selected=""')}else R&&t.push(' selected=""');return t.push(">"),ae(t,z,_),_;case"textarea":t.push(be("textarea"));var M,N=null,D=null,L=null;for(M in i)if(P.call(i,M)){var $=i[M];if(null!=$)switch(M){case"children":L=$;break;case"value":N=$;break;case"defaultValue":D=$;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:oe(t,M,$)}}if(null===N&&null!==D&&(N=D),t.push(">"),null!=L){if(null!=N)throw Error(n(92));if(S(L)){if(1<L.length)throw Error(n(93));N=""+L[0]}N=""+L}return"string"==typeof N&&"\n"===N[0]&&t.push("\n"),null!==N&&t.push(A(""+N)),null;case"input":t.push(be("input"));var B,W=null,V=null,U=null,q=null,G=null,Y=null,X=null,K=null,ne=null;for(B in i)if(P.call(i,B)){var me=i[B];if(null!=me)switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"name":W=me;break;case"formAction":V=me;break;case"formEncType":U=me;break;case"formMethod":q=me;break;case"formTarget":G=me;break;case"defaultChecked":ne=me;break;case"defaultValue":X=me;break;case"checked":K=me;break;case"value":Y=me;break;default:oe(t,B,me)}}var ve=ie(t,o,a,V,U,q,G,W);return null!==K?Z(t,"checked",K):null!==ne&&Z(t,"checked",ne),null!==Y?oe(t,"value",Y):null!==X&&oe(t,"value",X),t.push("/>"),null!=ve&&ve.forEach(te,t),null;case"button":t.push(be("button"));var ye,ke=null,we=null,Se=null,_e=null,Ce=null,Pe=null,Ee=null;for(ye in i)if(P.call(i,ye)){var Re=i[ye];if(null!=Re)switch(ye){case"children":ke=Re;break;case"dangerouslySetInnerHTML":we=Re;break;case"name":Se=Re;break;case"formAction":_e=Re;break;case"formEncType":Ce=Re;break;case"formMethod":Pe=Re;break;case"formTarget":Ee=Re;break;default:oe(t,ye,Re)}}var ze=ie(t,o,a,_e,Ce,Pe,Ee,Se);if(t.push(">"),null!=ze&&ze.forEach(te,t),ae(t,we,ke),"string"==typeof ke){t.push(A(ke));var Te=null}else Te=ke;return Te;case"form":t.push(be("form"));var Ie,Oe=null,Fe=null,Ae=null,Me=null,Ne=null,De=null;for(Ie in i)if(P.call(i,Ie)){var Le=i[Ie];if(null!=Le)switch(Ie){case"children":Oe=Le;break;case"dangerouslySetInnerHTML":Fe=Le;break;case"action":Ae=Le;break;case"encType":Me=Le;break;case"method":Ne=Le;break;case"target":De=Le;break;default:oe(t,Ie,Le)}}var je=null,$e=null;if("function"==typeof Ae){var Be=re(o,Ae);null!==Be?(Ae=Be.action||"",Me=Be.encType,Ne=Be.method,De=Be.target,je=Be.data,$e=Be.name):(t.push(" ","action",'="',ee,'"'),De=Ne=Me=Ae=null,se(o,a))}if(null!=Ae&&oe(t,"action",Ae),null!=Me&&oe(t,"encType",Me),null!=Ne&&oe(t,"method",Ne),null!=De&&oe(t,"target",De),t.push(">"),null!==$e&&(t.push('<input type="hidden"'),J(t,"name",$e),t.push("/>"),null!=je&&je.forEach(te,t)),ae(t,Fe,Oe),"string"==typeof Oe){t.push(A(Oe));var He=null}else He=Oe;return He;case"menuitem":for(var Ue in t.push(be("menuitem")),i)if(P.call(i,Ue)){var qe=i[Ue];if(null!=qe)switch(Ue){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:oe(t,Ue,qe)}}return t.push(">"),null;case"object":t.push(be("object"));var Ge,Ye=null,Xe=null;for(Ge in i)if(P.call(i,Ge)){var Ke=i[Ge];if(null!=Ke)switch(Ge){case"children":Ye=Ke;break;case"dangerouslySetInnerHTML":Xe=Ke;break;case"data":var Qe=j(""+Ke);if(""===Qe)break;t.push(" ","data",'="',A(Qe),'"');break;default:oe(t,Ge,Ke)}}if(t.push(">"),ae(t,Xe,Ye),"string"==typeof Ye){t.push(A(Ye));var Ze=null}else Ze=Ye;return Ze;case"title":if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var Je=fe(t,i);else d?Je=null:(fe(a.hoistableChunks,i),Je=void 0);return Je;case"link":var et=i.rel,tt=i.href,nt=i.precedence;if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp||"string"!=typeof et||"string"!=typeof tt||""===tt){le(t,i);var rt=null}else if("stylesheet"===i.rel)if("string"!=typeof nt||null!=i.disabled||i.onLoad||i.onError)rt=le(t,i);else{var it=a.styles.get(nt),ot=o.styleResources.hasOwnProperty(tt)?o.styleResources[tt]:void 0;if(null!==ot){o.styleResources[tt]=null,it||(it={precedence:A(nt),rules:[],hrefs:[],sheets:new Map},a.styles.set(nt,it));var at={state:0,props:C({},i,{"data-precedence":i.precedence,precedence:null})};if(ot){2===ot.length&&We(at.props,ot);var st=a.preloads.stylesheets.get(tt);st&&0<st.length?st.length=0:at.state=1}it.sheets.set(tt,at),l&&l.stylesheets.add(at)}else if(it){var lt=it.sheets.get(tt);lt&&l&&l.stylesheets.add(lt)}u&&t.push("\x3c!-- --\x3e"),rt=null}else i.onLoad||i.onError?rt=le(t,i):(u&&t.push("\x3c!-- --\x3e"),rt=d?null:le(a.hoistableChunks,i));return rt;case"script":var ct=i.async;if("string"!=typeof i.src||!i.src||!ct||"function"==typeof ct||"symbol"==typeof ct||i.onLoad||i.onError||4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var ut=pe(t,i);else{var dt=i.src;if("module"===i.type)var ft=o.moduleScriptResources,pt=a.preloads.moduleScripts;else ft=o.scriptResources,pt=a.preloads.scripts;var ht=ft.hasOwnProperty(dt)?ft[dt]:void 0;if(null!==ht){ft[dt]=null;var gt=i;if(ht){2===ht.length&&We(gt=C({},i),ht);var mt=pt.get(dt);mt&&(mt.length=0)}var vt=[];a.scripts.add(vt),pe(vt,gt)}u&&t.push("\x3c!-- --\x3e"),ut=null}return ut;case"style":var bt=i.precedence,yt=i.href;if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp||"string"!=typeof bt||"string"!=typeof yt||""===yt){t.push(be("style"));var xt,kt=null,wt=null;for(xt in i)if(P.call(i,xt)){var St=i[xt];if(null!=St)switch(xt){case"children":kt=St;break;case"dangerouslySetInnerHTML":wt=St;break;default:oe(t,xt,St)}}t.push(">");var _t=Array.isArray(kt)?2>kt.length?kt[0]:null:kt;"function"!=typeof _t&&"symbol"!=typeof _t&&null!=_t&&t.push((""+_t).replace(ce,ue)),ae(t,wt,kt),t.push(xe("style"));var Ct=null}else{var Pt=a.styles.get(bt);if(null!==(o.styleResources.hasOwnProperty(yt)?o.styleResources[yt]:void 0)){o.styleResources[yt]=null,Pt?Pt.hrefs.push(A(yt)):(Pt={precedence:A(bt),rules:[],hrefs:[A(yt)],sheets:new Map},a.styles.set(bt,Pt));var Et,Rt=Pt.rules,zt=null,Tt=null;for(Et in i)if(P.call(i,Et)){var It=i[Et];if(null!=It)switch(Et){case"children":zt=It;break;case"dangerouslySetInnerHTML":Tt=It}}var Ot=Array.isArray(zt)?2>zt.length?zt[0]:null:zt;"function"!=typeof Ot&&"symbol"!=typeof Ot&&null!=Ot&&Rt.push((""+Ot).replace(ce,ue)),ae(Rt,Tt,zt)}Pt&&l&&l.styles.add(Pt),u&&t.push("\x3c!-- --\x3e"),Ct=void 0}return Ct;case"meta":if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var Ft=de(t,i,"meta");else u&&t.push("\x3c!-- --\x3e"),Ft=d?null:"string"==typeof i.charSet?de(a.charsetChunks,i,"meta"):"viewport"===i.name?de(a.viewportChunks,i,"meta"):de(a.hoistableChunks,i,"meta");return Ft;case"listing":case"pre":t.push(be(r));var At,Mt=null,Nt=null;for(At in i)if(P.call(i,At)){var Dt=i[At];if(null!=Dt)switch(At){case"children":Mt=Dt;break;case"dangerouslySetInnerHTML":Nt=Dt;break;default:oe(t,At,Dt)}}if(t.push(">"),null!=Nt){if(null!=Mt)throw Error(n(60));if("object"!=typeof Nt||!("__html"in Nt))throw Error(n(61));var Lt=Nt.__html;null!=Lt&&("string"==typeof Lt&&0<Lt.length&&"\n"===Lt[0]?t.push("\n",Lt):t.push(""+Lt))}return"string"==typeof Mt&&"\n"===Mt[0]&&t.push("\n"),Mt;case"img":var jt=i.src,$t=i.srcSet;if(!("lazy"===i.loading||!jt&&!$t||"string"!=typeof jt&&null!=jt||"string"!=typeof $t&&null!=$t)&&"low"!==i.fetchPriority&&0==!!(3&c.tagScope)&&("string"!=typeof jt||":"!==jt[4]||"d"!==jt[0]&&"D"!==jt[0]||"a"!==jt[1]&&"A"!==jt[1]||"t"!==jt[2]&&"T"!==jt[2]||"a"!==jt[3]&&"A"!==jt[3])&&("string"!=typeof $t||":"!==$t[4]||"d"!==$t[0]&&"D"!==$t[0]||"a"!==$t[1]&&"A"!==$t[1]||"t"!==$t[2]&&"T"!==$t[2]||"a"!==$t[3]&&"A"!==$t[3])){var Bt="string"==typeof i.sizes?i.sizes:void 0,Wt=$t?$t+"\n"+(Bt||""):jt,Vt=a.preloads.images,Ht=Vt.get(Wt);if(Ht)("high"===i.fetchPriority||10>a.highImagePreloads.size)&&(Vt.delete(Wt),a.highImagePreloads.add(Ht));else if(!o.imageResources.hasOwnProperty(Wt)){o.imageResources[Wt]=H;var Ut,qt=i.crossOrigin,Gt="string"==typeof qt?"use-credentials"===qt?qt:"":void 0,Yt=a.headers;Yt&&0<Yt.remainingCapacity&&"string"!=typeof i.srcSet&&("high"===i.fetchPriority||500>Yt.highImagePreloads.length)&&(Ut=Ve(jt,"image",{imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:Gt,integrity:i.integrity,nonce:i.nonce,type:i.type,fetchPriority:i.fetchPriority,referrerPolicy:i.refererPolicy}),0<=(Yt.remainingCapacity-=Ut.length+2))?(a.resets.image[Wt]=H,Yt.highImagePreloads&&(Yt.highImagePreloads+=", "),Yt.highImagePreloads+=Ut):(le(Ht=[],{rel:"preload",as:"image",href:$t?void 0:jt,imageSrcSet:$t,imageSizes:Bt,crossOrigin:Gt,integrity:i.integrity,type:i.type,fetchPriority:i.fetchPriority,referrerPolicy:i.referrerPolicy}),"high"===i.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(Ht):(a.bulkPreloads.add(Ht),Vt.set(Wt,Ht)))}}return de(t,i,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return de(t,i,r);case"head":if(2>c.insertionMode){var Xt=s||a.preamble;if(Xt.headChunks)throw Error(n(545,"`<head>`"));Xt.headChunks=[];var Kt=he(Xt.headChunks,i,"head")}else Kt=ge(t,i,"head");return Kt;case"body":if(2>c.insertionMode){var Qt=s||a.preamble;if(Qt.bodyChunks)throw Error(n(545,"`<body>`"));Qt.bodyChunks=[];var Zt=he(Qt.bodyChunks,i,"body")}else Zt=ge(t,i,"body");return Zt;case"html":if(0===c.insertionMode){var Jt=s||a.preamble;if(Jt.htmlChunks)throw Error(n(545,"`<html>`"));Jt.htmlChunks=[""];var en=he(Jt.htmlChunks,i,"html")}else en=ge(t,i,"html");return en;default:if(-1!==r.indexOf("-")){t.push(be(r));var tn,nn=null,rn=null;for(tn in i)if(P.call(i,tn)){var on=i[tn];if(null!=on){var an=tn;switch(tn){case"children":nn=on;break;case"dangerouslySetInnerHTML":rn=on;break;case"style":Q(t,on);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":an="class";default:if(T(tn)&&"function"!=typeof on&&"symbol"!=typeof on&&!1!==on){if(!0===on)on="";else if("object"==typeof on)continue;t.push(" ",an,'="',A(on),'"')}}}}return t.push(">"),ae(t,rn,nn),nn}}return ge(t,i,r)}(_.chunks,m,x,t.resumableState,t.renderState,r.blockedPreamble,r.hoistableState,r.formatContext,_.lastPushedText,r.isFallback),_.lastPushedText=!1,R=r.formatContext,I=r.keyPath,r.keyPath=i,3===(r.formatContext=X(R,m,x)).insertionMode?(i=hn(0,0,null,r.formatContext,!1,!1),_.preambleChildren.push(i),gn(i=fn(t,null,w,-1,r.blockedBoundary,i,r.blockedPreamble,r.hoistableState,t.abortableTasks,r.keyPath,r.formatContext,r.context,r.treeContext,r.componentStack,r.isFallback)),t.pingedTasks.push(i)):zn(t,r,w,-1),r.formatContext=R,r.keyPath=I;e:{switch(r=_.chunks,t=t.resumableState,m){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=R.insertionMode){t.hasBody=!0;break e}break;case"html":if(0===R.insertionMode){t.hasHtml=!0;break e}break;case"head":if(1>=R.insertionMode)break e}r.push(xe(m))}_.lastPushedText=!1}}}function wn(e,t,n,r,i){var o=t.replay,a=t.blockedBoundary,s=hn(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,zn(e,t,r,i),s.status=1,null===a?e.completedRootSegment=s:(Nn(a,s),a.parentFlushed&&e.partialBoundaries.push(a))}finally{t.replay=o,t.blockedSegment=null}}function Sn(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?wn(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,gn(t),_n(e,t),t.componentStack=n)}function _n(e,t){var o=t.node,a=t.childIndex;if(null!==o){if("object"==typeof o){switch(o.$$typeof){case r:var s=o.type,l=o.key,c=o.props,d=void 0!==(o=c.ref)?o:null,p=et(s),h=null==l?-1===a?0:a:l;if(l=[t.keyPath,p,h],null!==t.replay)e:{var m=t.replay;for(a=m.nodes,o=0;o<a.length;o++){var v=a[o];if(h===v[1]){if(4===v.length){if(null!==p&&p!==v[0])throw Error(n(490,v[0],p));var b=v[2];p=v[3],h=t.node,t.replay={nodes:b,slots:p,pendingTasks:1};try{if(kn(e,t,l,s,c,d),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));t.replay.pendingTasks--}catch(R){if("object"==typeof R&&null!==R&&(R===gt||"function"==typeof R.then))throw t.node===h&&(t.replay=m),R;t.replay.pendingTasks--,c=mn(t.componentStack),In(e,l=t.blockedBoundary,b,p,s=R,c=vn(e,s,c))}t.replay=m}else{if(s!==f)throw Error(n(490,"Suspense",et(s)||"Unknown"));t:{m=void 0,s=v[5],d=v[2],p=v[3],h=null===v[4]?[]:v[4][2],v=null===v[4]?null:v[4][3];var y=t.keyPath,x=t.replay,k=t.blockedBoundary,_=t.hoistableState,C=c.children,P=c.fallback,E=new Set;(c=2>t.formatContext.insertionMode?dn(0,E,G(),G()):dn(0,E,null,null)).parentFlushed=!0,c.rootSegmentID=s,t.blockedBoundary=c,t.hoistableState=c.contentState,t.keyPath=l,t.replay={nodes:d,slots:p,pendingTasks:1};try{if(zn(e,t,C,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));if(t.replay.pendingTasks--,0===c.pendingTasks&&0===c.status){c.status=1,e.completedBoundaries.push(c);break t}}catch(z){c.status=4,m=vn(e,z,b=mn(t.componentStack)),c.errorDigest=m,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(c)}finally{t.blockedBoundary=k,t.hoistableState=_,t.replay=x,t.keyPath=y}gn(t=pn(e,null,{nodes:h,slots:v,pendingTasks:0},P,-1,k,c.fallbackState,E,[l[0],"Suspense Fallback",l[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}a.splice(o,1);break e}}}else kn(e,t,l,s,c,d);return;case i:throw Error(n(257));case g:if(o=(b=o._init)(o._payload),12===e.status)throw null;return void Sn(e,t,o,a)}if(S(o))return void Cn(e,t,o,a);if((b=null===o||"object"!=typeof o?null:"function"==typeof(b=w&&o[w]||o["@@iterator"])?b:null)&&(b=b.call(o))){if(!(o=b.next()).done){c=[];do{c.push(o.value),o=b.next()}while(!o.done);Cn(e,t,c,a)}return}if("function"==typeof o.then)return t.thenableState=null,Sn(e,t,Gt(o),a);if(o.$$typeof===u)return Sn(e,t,o._currentValue2,a);throw a=Object.prototype.toString.call(o),Error(n(31,"[object Object]"===a?"object with keys {"+Object.keys(o).join(", ")+"}":a))}"string"==typeof o?null!==(a=t.blockedSegment)&&(a.lastPushedText=Ke(a.chunks,o,e.renderState,a.lastPushedText)):"number"!=typeof o&&"bigint"!=typeof o||null!==(a=t.blockedSegment)&&(a.lastPushedText=Ke(a.chunks,""+o,e.renderState,a.lastPushedText))}}function Cn(e,t,r,i){var o=t.keyPath;if(-1===i||(t.keyPath=[t.keyPath,"Fragment",i],null===t.replay)){if(a=t.treeContext,s=r.length,null!==t.replay&&null!==(l=t.replay.slots)&&"object"==typeof l){for(i=0;i<s;i++)c=r[i],t.treeContext=dt(a,s,i),"number"==typeof(u=l[i])?(wn(e,t,u,c,i),delete l[i]):zn(e,t,c,i);return t.treeContext=a,void(t.keyPath=o)}for(l=0;l<s;l++)i=r[l],t.treeContext=dt(a,s,l),zn(e,t,i,l);t.treeContext=a,t.keyPath=o}else{for(var a=t.replay,s=a.nodes,l=0;l<s.length;l++){var c=s[l];if(c[1]===i){i=c[2],c=c[3],t.replay={nodes:i,slots:c,pendingTasks:1};try{if(Cn(e,t,r,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));t.replay.pendingTasks--}catch(d){if("object"==typeof d&&null!==d&&(d===gt||"function"==typeof d.then))throw d;t.replay.pendingTasks--,r=mn(t.componentStack);var u=t.blockedBoundary;In(e,u,i,c,d,r=vn(e,d,r))}t.replay=a,s.splice(l,1);break}}t.keyPath=o}}function Pn(e,t){null!==(e=e.trackedPostpones)&&null!==(t=t.trackedContentKeyPath)&&void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)}function En(e,t,n){return pn(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function Rn(e,t,n){var r=t.blockedSegment,i=hn(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,fn(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function zn(e,t,n,r){var i=t.formatContext,o=t.context,a=t.keyPath,s=t.treeContext,l=t.componentStack,c=t.blockedSegment;if(null===c)try{return Sn(e,t,n,r)}catch(f){if(jt(),"object"==typeof(n=f===gt?bt():f)&&null!==n){if("function"==typeof n.then)return e=En(e,t,r=Lt()).ping,n.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void lt(o);if("Maximum call stack size exceeded"===n.message)return n=En(e,t,n=Lt()),e.pingedTasks.push(n),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void lt(o)}}else{var u=c.children.length,d=c.chunks.length;try{return Sn(e,t,n,r)}catch(p){if(jt(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=p===gt?bt():p)&&null!==n){if("function"==typeof n.then)return e=Rn(e,t,r=Lt()).ping,n.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void lt(o);if("Maximum call stack size exceeded"===n.message)return n=Rn(e,t,n=Lt()),e.pingedTasks.push(n),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void lt(o)}}}throw t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,lt(o),n}function Tn(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,Dn(this,t,e))}function In(e,t,r,i,o,a){for(var s=0;s<r.length;s++){var l=r[s];if(4===l.length)In(e,t,l[2],l[3],o,a);else{l=l[5];var c=e,u=a,d=dn(0,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=l,d.status=4,d.errorDigest=u,d.parentFlushed&&c.clientRenderedBoundaries.push(d)}}if(r.length=0,null!==i){if(null===t)throw Error(n(487));if(4!==t.status&&(t.status=4,t.errorDigest=a,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof i)for(var f in i)delete i[f]}}function On(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(null!==i){if(6===i.status)return;i.status=3}if(i=mn(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return vn(t,n,i),void bn(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=vn(t,n,i),In(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&An(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=vn(t,n,i),r.status=4,r.errorDigest=e,Pn(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return On(e,t,n)}),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&Mn(t)}function Fn(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var o=i.preconnects;if(i.fontPreloads&&(o&&(o+=", "),o+=i.fontPreloads),i.highImagePreloads&&(o&&(o+=", "),o+=i.highImagePreloads),!t){var a=n.styles.values(),s=a.next();e:for(;0<i.remainingCapacity&&!s.done;s=a.next())for(var l=s.value.sheets.values(),c=l.next();0<i.remainingCapacity&&!c.done;c=l.next()){var u=c.value,d=u.props,f=d.href,p=u.props,h=Ve(p.href,"style",{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(!(0<=(i.remainingCapacity-=h.length+2)))break e;n.resets.style[f]=H,o&&(o+=", "),o+=h,n.resets.style[f]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:H}}r(o?{Link:o}:{})}}}catch(g){vn(e,g,{})}}function An(e){null===e.trackedPostpones&&Fn(e,!0),null===e.trackedPostpones&&Bn(e),e.onShellError=sn,(e=e.onShellReady)()}function Mn(e){Fn(e,null===e.trackedPostpones||null===e.completedRootSegment||5!==e.completedRootSegment.status),Bn(e),(e=e.onAllReady)()}function Nn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Nn(e,n)}else e.completedSegments.push(t)}function Dn(e,t,r){if(null===t){if(null!==r&&r.parentFlushed){if(null!==e.completedRootSegment)throw Error(n(389));e.completedRootSegment=r}e.pendingRootTasks--,0===e.pendingRootTasks&&An(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==r&&r.parentFlushed&&1===r.status&&Nn(t,r),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(Tn,e),t.fallbackAbortableTasks.clear(),0===e.pendingRootTasks&&null===e.trackedPostpones&&null!==t.contentPreamble&&Bn(e))):null!==r&&r.parentFlushed&&1===r.status&&(Nn(t,r),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&Mn(e)}function Ln(e){if(14!==e.status&&13!==e.status){var t=nt,r=$.H;$.H=Zt;var i=$.A;$.A=en;var o=cn;cn=e;var a=Jt;Jt=e.resumableState;try{var s,l=e.pingedTasks;for(s=0;s<l.length;s++){var c=l[s],u=e,d=c.blockedSegment;if(null===d){var f=u;if(0!==c.replay.pendingTasks){lt(c.context);try{if("number"==typeof c.replay.slots?wn(f,c,c.replay.slots,c.node,c.childIndex):_n(f,c),1===c.replay.pendingTasks&&0<c.replay.nodes.length)throw Error(n(488));c.replay.pendingTasks--,c.abortSet.delete(c),Dn(f,c.blockedBoundary,null)}catch(C){jt();var p=C===gt?bt():C;if("object"==typeof p&&null!==p&&"function"==typeof p.then){var h=c.ping;p.then(h,h),c.thenableState=Lt()}else{c.replay.pendingTasks--,c.abortSet.delete(c);var g=mn(c.componentStack);u=void 0;var m=f,v=c.blockedBoundary,b=12===f.status?f.fatalError:p;In(m,v,c.replay.nodes,c.replay.slots,b,u=vn(m,b,g)),f.pendingRootTasks--,0===f.pendingRootTasks&&An(f),f.allPendingTasks--,0===f.allPendingTasks&&Mn(f)}}}}else if(f=void 0,0===(m=d).status){m.status=6,lt(c.context);var y=m.children.length,x=m.chunks.length;try{_n(u,c),Qe(m.chunks,u.renderState,m.lastPushedText,m.textEmbedded),c.abortSet.delete(c),m.status=1,Dn(u,c.blockedBoundary,m)}catch(C){jt(),m.children.length=y,m.chunks.length=x;var k=C===gt?bt():12===u.status?u.fatalError:C;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,c.thenableState=Lt();var w=c.ping;k.then(w,w)}else{var S=mn(c.componentStack);c.abortSet.delete(c),m.status=4;var _=c.blockedBoundary;f=vn(u,k,S),null===_?bn(u,k):(_.pendingTasks--,4!==_.status&&(_.status=4,_.errorDigest=f,Pn(u,_),_.parentFlushed&&u.clientRenderedBoundaries.push(_),0===u.pendingRootTasks&&null===u.trackedPostpones&&null!==_.contentPreamble&&Bn(u))),u.allPendingTasks--,0===u.allPendingTasks&&Mn(u)}}}}l.splice(0,s),null!==e.destination&&Gn(e,e.destination)}catch(P){vn(e,P,{}),bn(e,P)}finally{Jt=a,$.H=r,$.A=i,r===Zt&&lt(t),cn=o}}}function jn(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=$n(e,t.children[i],n)||r;return r}function $n(e,t,r){var i=t.boundary;if(null===i)return jn(e,t,r);var o=i.contentPreamble,a=i.fallbackPreamble;if(null===o||null===a)return!1;switch(i.status){case 1:if(ke(e.renderState,o),!(t=i.completedSegments[0]))throw Error(n(391));return jn(e,t,r);case 5:if(null!==e.trackedPostpones)return!0;case 4:if(1===t.status)return ke(e.renderState,a),jn(e,t,r);default:return!0}}function Bn(e){if(e.completedRootSegment&&null===e.completedPreambleSegments){var t=[],n=$n(e,e.completedRootSegment,t),r=e.renderState.preamble;(!1===n||r.headChunks&&r.bodyChunks)&&(e.completedPreambleSegments=t)}}function Wn(e,t,r,i){switch(r.parentFlushed=!0,r.status){case 0:r.id=e.nextSegmentId++;case 5:return i=r.id,r.lastPushedText=!1,r.textEmbedded=!1,e=e.renderState,t.push('<template id="'),t.push(e.placeholderPrefix),e=i.toString(16),t.push(e),t.push('"></template>');case 1:r.status=2;var o=!0,a=r.chunks,s=0;r=r.children;for(var l=0;l<r.length;l++){for(o=r[l];s<o.index;s++)t.push(a[s]);o=Vn(e,t,o,i)}for(;s<a.length-1;s++)t.push(a[s]);return s<a.length&&(o=t.push(a[s])),o;default:throw Error(n(390))}}function Vn(e,t,r,i){var o=r.boundary;if(null===o)return Wn(e,t,r,i);if(o.parentFlushed=!0,4===o.status){if(!e.renderState.generateStaticMarkup){var a=o.errorDigest;t.push("\x3c!--$!--\x3e"),t.push("<template"),a&&(t.push(' data-dgst="'),a=A(a),t.push(a),t.push('"')),t.push("></template>")}return Wn(e,t,r,i),e.renderState.generateStaticMarkup?t=!0:((e=o.fallbackPreamble)&&_e(t,e),t=t.push("\x3c!--/$--\x3e")),t}if(1!==o.status)return 0===o.status&&(o.rootSegmentID=e.nextSegmentId++),0<o.completedSegments.length&&e.partialBoundaries.push(o),Se(t,e.renderState,o.rootSegmentID),i&&((o=o.fallbackState).styles.forEach(Ye,i),o.stylesheets.forEach(Xe,i)),Wn(e,t,r,i),t.push("\x3c!--/$--\x3e");if(o.byteSize>e.progressiveChunkSize)return o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),Se(t,e.renderState,o.rootSegmentID),Wn(e,t,r,i),t.push("\x3c!--/$--\x3e");if(i&&((r=o.contentState).styles.forEach(Ye,i),r.stylesheets.forEach(Xe,i)),e.renderState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(r=o.completedSegments).length)throw Error(n(391));return Vn(e,t,r[0],i),e.renderState.generateStaticMarkup?t=!0:((e=o.contentPreamble)&&_e(t,e),t=t.push("\x3c!--/$--\x3e")),t}function Hn(e,t,r,i){return function(e,t,r,i){switch(r.insertionMode){case 0:case 1:case 3:case 2:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 4:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 5:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 8:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 9:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');default:throw Error(n(397))}}(t,e.renderState,r.parentFormatContext,r.id),Vn(e,t,r,i),function(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return e.push("</div>");case 4:return e.push("</svg>");case 5:return e.push("</math>");case 6:return e.push("</table>");case 7:return e.push("</tbody></table>");case 8:return e.push("</tr></table>");case 9:return e.push("</colgroup></table>");default:throw Error(n(397))}}(t,r.parentFormatContext)}function Un(e,t,r){for(var i=r.completedSegments,o=0;o<i.length;o++)qn(e,t,r,i[o]);i.length=0,Fe(t,r.contentState,e.renderState),i=e.resumableState,e=e.renderState,o=r.rootSegmentID,r=r.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,t.push(e.startInlineScript),a?2&i.instructions?8&i.instructions?t.push('$RR("'):(i.instructions|=8,t.push('$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("')):(i.instructions|=10,t.push('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("')):2&i.instructions?t.push('$RC("'):(i.instructions|=2,t.push('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("')),i=o.toString(16),t.push(e.boundaryPrefix),t.push(i),t.push('","'),t.push(e.segmentPrefix),t.push(i),a?(t.push('",'),function(e,t){e.push("[");var r="[";t.stylesheets.forEach(function(t){if(2!==t.state)if(3===t.state)e.push(r),t=Re(""+t.props.href),e.push(t),e.push("]"),r=",[";else{e.push(r);var i=t.props["data-precedence"],o=t.props,a=j(""+t.props.href);for(var s in a=Re(a),e.push(a),i=""+i,e.push(","),i=Re(i),e.push(i),o)if(P.call(o,s)&&null!=(i=o[s]))switch(s){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:$e(e,s,i)}e.push("]"),r=",[",t.state=3}}),e.push("]")}(t,r)):t.push('"'),r=t.push(")<\/script>"),we(t,e)&&r}function qn(e,t,r,i){if(2===i.status)return!0;var o=r.contentState,a=i.id;if(-1===a){if(-1===(i.id=r.rootSegmentID))throw Error(n(392));return Hn(e,t,i,o)}return a===r.rootSegmentID?Hn(e,t,i,o):(Hn(e,t,i,o),r=e.resumableState,e=e.renderState,t.push(e.startInlineScript),1&r.instructions?t.push('$RS("'):(r.instructions|=1,t.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push('","'),t.push(e.placeholderPrefix),t.push(a),t=t.push('")<\/script>'))}function Gn(e,t){try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var i=e.completedPreambleSegments;if(null===i)return;var o,a=e.renderState,s=a.preamble,l=s.htmlChunks,c=s.headChunks;if(l){for(o=0;o<l.length;o++)t.push(l[o]);if(c)for(o=0;o<c.length;o++)t.push(c[o]);else{var u=be("head");t.push(u),t.push(">")}}else if(c)for(o=0;o<c.length;o++)t.push(c[o]);var d=a.charsetChunks;for(o=0;o<d.length;o++)t.push(d[o]);d.length=0,a.preconnects.forEach(Ae,t),a.preconnects.clear();var f=a.viewportChunks;for(o=0;o<f.length;o++)t.push(f[o]);f.length=0,a.fontPreloads.forEach(Ae,t),a.fontPreloads.clear(),a.highImagePreloads.forEach(Ae,t),a.highImagePreloads.clear(),a.styles.forEach(De,t);var p=a.importMapChunks;for(o=0;o<p.length;o++)t.push(p[o]);p.length=0,a.bootstrapScripts.forEach(Ae,t),a.scripts.forEach(Ae,t),a.scripts.clear(),a.bulkPreloads.forEach(Ae,t),a.bulkPreloads.clear();var h=a.hoistableChunks;for(o=0;o<h.length;o++)t.push(h[o]);for(a=h.length=0;a<i.length;a++){var g=i[a];for(s=0;s<g.length;s++)Vn(e,t,g[s],null)}var m=e.renderState.preamble,v=m.headChunks;if(m.htmlChunks||v){var b=xe("head");t.push(b)}var y=m.bodyChunks;if(y)for(i=0;i<y.length;i++)t.push(y[i]);Vn(e,t,r,null),e.completedRootSegment=null,we(t,e.renderState)}var x=e.renderState;r=0;var k=x.viewportChunks;for(r=0;r<k.length;r++)t.push(k[r]);k.length=0,x.preconnects.forEach(Ae,t),x.preconnects.clear(),x.fontPreloads.forEach(Ae,t),x.fontPreloads.clear(),x.highImagePreloads.forEach(Ae,t),x.highImagePreloads.clear(),x.styles.forEach(je,t),x.scripts.forEach(Ae,t),x.scripts.clear(),x.bulkPreloads.forEach(Ae,t),x.bulkPreloads.clear();var w=x.hoistableChunks;for(r=0;r<w.length;r++)t.push(w[r]);w.length=0;var S=e.clientRenderedBoundaries;for(n=0;n<S.length;n++){var _=S[n];x=t;var C=e.resumableState,P=e.renderState,E=_.rootSegmentID,R=_.errorDigest;x.push(P.startInlineScript),4&C.instructions?x.push('$RX("'):(C.instructions|=4,x.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')),x.push(P.boundaryPrefix);var z=E.toString(16);if(x.push(z),x.push('"'),R){x.push(",");var T=Pe(R||"");x.push(T)}var I=x.push(")<\/script>");if(!I)return e.destination=null,n++,void S.splice(0,n)}S.splice(0,n);var O=e.completedBoundaries;for(n=0;n<O.length;n++)if(!Un(e,t,O[n]))return e.destination=null,n++,void O.splice(0,n);O.splice(0,n);var F=e.partialBoundaries;for(n=0;n<F.length;n++){var A=F[n];e:{S=e,_=t;var M=A.completedSegments;for(I=0;I<M.length;I++)if(!qn(S,_,A,M[I])){I++,M.splice(0,I);var N=!1;break e}M.splice(0,I),N=Fe(_,A.contentState,S.renderState)}if(!N)return e.destination=null,n++,void F.splice(0,n)}F.splice(0,n);var D=e.completedBoundaries;for(n=0;n<D.length;n++)if(!Un(e,t,D[n]))return e.destination=null,n++,void D.splice(0,n);D.splice(0,n)}}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&(e.flushScheduled=!1,(n=e.resumableState).hasBody&&(F=xe("body"),t.push(F)),n.hasHtml&&(n=xe("html"),t.push(n)),e.status=14,t.push(null),e.destination=null)}}function Yn(e){if(!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination){e.flushScheduled=!0;var t=e.destination;t?Gn(e,t):e.flushScheduled=!1}}function Xn(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var r=e.abortableTasks;if(0<r.size){var i=void 0===t?Error(n(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(n(530)):t;e.fatalError=i,r.forEach(function(t){return On(t,e,i)}),r.clear()}null!==e.destination&&Gn(e,e.destination)}catch(o){vn(e,o,{}),bn(e,o)}}function Kn(){}function Qn(e,t,r,i){var o,a=!1,s=null,l="",c=!1;if(e=function(e,t,n,r,i,o){return(n=hn(t=new ln(t,n,r,1/0,o,void 0,function(){c=!0},void 0,void 0,void 0,void 0),0,null,r,!1,!1)).parentFlushed=!0,gn(e=fn(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,ut,null,!1)),t.pingedTasks.push(e),t}(e,t={idPrefix:void 0===(o=t?t.identifierPrefix:void 0)?"":o,nextFormID:0,streamingFormat:0,bootstrapScriptContent:undefined,bootstrapScripts:undefined,bootstrapModules:undefined,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}},function(e,t){var n=e.idPrefix,r=[],i=e.bootstrapScriptContent,o=e.bootstrapScripts,a=e.bootstrapModules;void 0!==i&&r.push("<script>",(""+i).replace(U,q),"<\/script>"),i=n+"P:";var s=n+"S:";n+="B:";var l=new Set,c=new Set,u=new Set,d=new Map,f=new Set,p=new Set,h=new Set,g={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(void 0!==o)for(var m=0;m<o.length;m++){var v,b=o[m],y=void 0,x=void 0,k={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};"string"==typeof b?k.href=v=b:(k.href=v=b.src,k.integrity=x="string"==typeof b.integrity?b.integrity:void 0,k.crossOrigin=y="string"==typeof b||null==b.crossOrigin?void 0:"use-credentials"===b.crossOrigin?"use-credentials":"");var w=v;(b=e).scriptResources[w]=null,b.moduleScriptResources[w]=null,le(b=[],k),f.add(b),r.push('<script src="',A(v)),"string"==typeof x&&r.push('" integrity="',A(x)),"string"==typeof y&&r.push('" crossorigin="',A(y)),r.push('" async=""><\/script>')}if(void 0!==a)for(o=0;o<a.length;o++)y=v=void 0,x={rel:"modulepreload",fetchPriority:"low",nonce:void 0},"string"==typeof(k=a[o])?x.href=m=k:(x.href=m=k.src,x.integrity=y="string"==typeof k.integrity?k.integrity:void 0,x.crossOrigin=v="string"==typeof k||null==k.crossOrigin?void 0:"use-credentials"===k.crossOrigin?"use-credentials":""),b=m,(k=e).scriptResources[b]=null,k.moduleScriptResources[b]=null,le(k=[],x),f.add(k),r.push('<script type="module" src="',A(m)),"string"==typeof y&&r.push('" integrity="',A(y)),"string"==typeof v&&r.push('" crossorigin="',A(v)),r.push('" async=""><\/script>');return{placeholderPrefix:i,segmentPrefix:s,boundaryPrefix:n,startInlineScript:"<script>",preamble:{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0},externalRuntimeScript:null,bootstrapChunks:r,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:l,fontPreloads:c,highImagePreloads:u,styles:d,bootstrapScripts:f,scripts:p,bulkPreloads:h,preloads:g,stylesToHoist:!1,generateStaticMarkup:t}}(t,r),Y(0,null,0),0,Kn),e.flushScheduled=null!==e.destination,Ln(e),10===e.status&&(e.status=11),null===e.trackedPostpones&&Fn(e,0===e.pendingRootTasks),Xn(e,i),function(e,t){if(13===e.status)e.status=14,t.destroy(e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{Gn(e,t)}catch(n){vn(e,n,{}),bn(e,n)}}}(e,{push:function(e){return null!==e&&(l+=e),!0},destroy:function(e){a=!0,s=e}}),a&&s!==i)throw s;if(!c)throw Error(n(426));return l}return qw.renderToStaticMarkup=function(e,t){return Qn(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},qw.renderToString=function(e,t){return Qn(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},qw.version="19.1.1",qw}var Yw,Xw,Kw={};function Qw(){if(Yw)return Kw;Yw=1;var e=m(),t=M();function n(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."}var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.scope"),b=Symbol.for("react.activity"),y=Symbol.for("react.legacy_hidden"),x=Symbol.for("react.memo_cache_sentinel"),k=Symbol.for("react.view_transition"),w=Symbol.iterator,S=Array.isArray;function _(e,t){var n=3&e.length,r=e.length-n,i=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,i=27492+(65535&(i=5*(65535&(i=(i^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+(((i>>>16)+58964&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:i^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,((i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295)^i>>>16)>>>0}var C=new MessageChannel,P=[];function E(e){P.push(e),C.port2.postMessage(null)}function R(e){setTimeout(function(){throw e})}C.port1.onmessage=function(){var e=P.shift();e&&e()};var z=Promise,T="function"==typeof queueMicrotask?queueMicrotask:function(e){z.resolve(null).then(e).catch(R)},I=null,O=0;function F(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<O&&(e.enqueue(new Uint8Array(I.buffer,0,O)),I=new Uint8Array(2048),O=0),e.enqueue(t);else{var n=I.length-O;n<t.byteLength&&(0===n?e.enqueue(I):(I.set(t.subarray(0,n),O),e.enqueue(I),t=t.subarray(n)),I=new Uint8Array(2048),O=0),I.set(t,O),O+=t.byteLength}}function A(e,t){return F(e,t),!0}function N(e){I&&0<O&&(e.enqueue(new Uint8Array(I.buffer,0,O)),I=null,O=0)}var D=new TextEncoder;function L(e){return D.encode(e)}function j(e){return D.encode(e)}function $(e,t){"function"==typeof e.error?e.error(t):e.close()}var B=Object.assign,W=Object.prototype.hasOwnProperty,V=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]*$"),H={},U={};function q(e){return!!W.call(U,e)||!W.call(H,e)&&(V.test(e)?U[e]=!0:(H[e]=!0,!1))}var G=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(" ")),Y=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"],["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"]]),X=/["'&<>]/;function K(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=X.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==n&&(r+=e.slice(i,n)),i=n+1,r+=t}e=i!==n?r+e.slice(i,n):r}return e}var Q=/([A-Z])/g,Z=/^ms-/,J=/^[\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 ee(e){return J.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var te=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ie=ne.d;ne.d={f:ie.f,r:ie.r,D:function(e){var t=di||null;if(t){var n,r,i=t.resumableState,o=t.renderState;if("string"==typeof e&&e)i.dnsResources.hasOwnProperty(e)||(i.dnsResources[e]=null,(r=(i=o.headers)&&0<i.remainingCapacity)&&(n="<"+(""+e).replace(Yn,Xn)+">; rel=dns-prefetch",r=0<=(i.remainingCapacity-=n.length+2)),r?(o.resets.dns[e]=null,i.preconnects&&(i.preconnects+=", "),i.preconnects+=n):(Ze(n=[],{href:e,rel:"dns-prefetch"}),o.preconnects.add(n))),Qi(t)}else ie.D(e)},C:function(e,t){var n=di||null;if(n){var r=n.resumableState,i=n.renderState;if("string"==typeof e&&e){var o,a,s="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[s].hasOwnProperty(e))r.connectResources[s][e]=null,(a=(r=i.headers)&&0<r.remainingCapacity)&&(a="<"+(""+e).replace(Yn,Xn)+">; rel=preconnect","string"==typeof t&&(a+='; crossorigin="'+(""+t).replace(Kn,Qn)+'"'),o=a,a=0<=(r.remainingCapacity-=o.length+2)),a?(i.resets.connect[s][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=o):(Ze(s=[],{rel:"preconnect",href:e,crossOrigin:t}),i.preconnects.add(s));Qi(n)}}else ie.C(e,t)},L:function(e,t,n){var r=di||null;if(r){var i=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var a=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var c,u=a?a+"\n"+(s||""):e;if(i.imageResources.hasOwnProperty(u))return;i.imageResources[u]=oe,(i=o.headers)&&0<i.remainingCapacity&&"string"!=typeof a&&"high"===l&&(c=Gn(e,t,n),0<=(i.remainingCapacity-=c.length+2))?(o.resets.image[u]=oe,i.highImagePreloads&&(i.highImagePreloads+=", "),i.highImagePreloads+=c):(Ze(i=[],B({rel:"preload",href:a?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(i):(o.bulkPreloads.add(i),o.preloads.images.set(u,i)));break;case"style":if(i.styleResources.hasOwnProperty(e))return;Ze(a=[],B({rel:"preload",href:e,as:t},n)),i.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?oe:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,a),o.bulkPreloads.add(a);break;case"script":if(i.scriptResources.hasOwnProperty(e))return;a=[],o.preloads.scripts.set(e,a),o.bulkPreloads.add(a),Ze(a,B({rel:"preload",href:e,as:t},n)),i.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?oe:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if((a=i.unknownResources[t]).hasOwnProperty(e))return}else a={},i.unknownResources[t]=a;a[e]=oe,(i=o.headers)&&0<i.remainingCapacity&&"font"===t&&(u=Gn(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(o.resets.font[e]=oe,i.fontPreloads&&(i.fontPreloads+=", "),i.fontPreloads+=u):"font"===(Ze(i=[],e=B({rel:"preload",href:e,as:t},n)),t)?o.fontPreloads.add(i):o.bulkPreloads.add(i)}Qi(r)}}else ie.L(e,t,n)},m:function(e,t){var n=di||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?oe:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var a=r.unknownResources[o];if(a.hasOwnProperty(e))return}else a={},r.moduleUnknownResources[o]=a;o=[],a[e]=oe}Ze(o,B({rel:"modulepreload",href:e},t)),i.bulkPreloads.add(o),Qi(n)}}else ie.m(e,t)},X:function(e,t){var n=di||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=B({src:e,async:!0},t),o&&(2===o.length&&qn(t,o),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),rt(e,t),Qi(n))}}else ie.X(e,t)},S:function(e,t,n){var r=di||null;if(r){var i=r.resumableState,o=r.renderState;if(e){t=t||"default";var a=o.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;null!==s&&(i.styleResources[e]=null,a||(a={precedence:L(K(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,a)),t={state:0,props:B({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&qn(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),a.sheets.set(e,t),Qi(r))}}else ie.S(e,t,n)},M:function(e,t){var n=di||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=B({src:e,type:"module",async:!0},t),o&&(2===o.length&&qn(t,o),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),rt(e,t),Qi(n))}}else ie.M(e,t)}};var oe=[];j('"></template>');var ae=j("<script>"),se=j("<\/script>"),le=j('<script src="'),ce=j('<script type="module" src="'),ue=j('" nonce="'),de=j('" integrity="'),fe=j('" crossorigin="'),pe=j('" async=""><\/script>'),he=/(<\/|<)(s)(cript)/gi;function ge(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var me=j('<script type="importmap">'),ve=j("<\/script>");function be(e,t,n,r,i,o){var a=void 0===t?ae:j('<script nonce="'+K(t)+'">'),s=e.idPrefix;n=[];var l=e.bootstrapScriptContent,c=e.bootstrapScripts,u=e.bootstrapModules;if(void 0!==l&&n.push(a,L((""+l).replace(he,ge)),se),l=[],void 0!==r&&(l.push(me),l.push(L((""+JSON.stringify(r)).replace(he,ge))),l.push(ve)),r=i?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,i={placeholderPrefix:j(s+"P:"),segmentPrefix:j(s+"S:"),boundaryPrefix:j(s+"B:"),startInlineScript:a,preamble:{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0},externalRuntimeScript:null,bootstrapChunks:n,importMapChunks:l,onHeaders:i,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:t,hoistableState:null,stylesToHoist:!1},void 0!==c)for(r=0;r<c.length;r++){var d=c[r];s=a=void 0,l={rel:"preload",as:"script",fetchPriority:"low",nonce:t},"string"==typeof d?l.href=o=d:(l.href=o=d.src,l.integrity=s="string"==typeof d.integrity?d.integrity:void 0,l.crossOrigin=a="string"==typeof d||null==d.crossOrigin?void 0:"use-credentials"===d.crossOrigin?"use-credentials":"");var f=o;(d=e).scriptResources[f]=null,d.moduleScriptResources[f]=null,Ze(d=[],l),i.bootstrapScripts.add(d),n.push(le,L(K(o))),t&&n.push(ue,L(K(t))),"string"==typeof s&&n.push(de,L(K(s))),"string"==typeof a&&n.push(fe,L(K(a))),n.push(pe)}if(void 0!==u)for(c=0;c<u.length;c++)a=o=void 0,s={rel:"modulepreload",fetchPriority:"low",nonce:t},"string"==typeof(l=u[c])?s.href=r=l:(s.href=r=l.src,s.integrity=a="string"==typeof l.integrity?l.integrity:void 0,s.crossOrigin=o="string"==typeof l||null==l.crossOrigin?void 0:"use-credentials"===l.crossOrigin?"use-credentials":""),d=r,(l=e).scriptResources[d]=null,l.moduleScriptResources[d]=null,Ze(l=[],s),i.bootstrapScripts.add(l),n.push(ce,L(K(r))),t&&n.push(ue,L(K(t))),"string"==typeof a&&n.push(de,L(K(a))),"string"==typeof o&&n.push(fe,L(K(o))),n.push(pe);return i}function ye(e,t,n,r,i){return{idPrefix:void 0===e?"":e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function xe(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}}function ke(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function we(e){return ke("http://www.w3.org/2000/svg"===e?4:"http://www.w3.org/1998/Math/MathML"===e?5:0,null,0)}function Se(e,t,n){switch(t){case"noscript":return ke(2,null,1|e.tagScope);case"select":return ke(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return ke(4,null,e.tagScope);case"picture":return ke(2,null,2|e.tagScope);case"math":return ke(5,null,e.tagScope);case"foreignObject":return ke(2,null,e.tagScope);case"table":return ke(6,null,e.tagScope);case"thead":case"tbody":case"tfoot":return ke(7,null,e.tagScope);case"colgroup":return ke(9,null,e.tagScope);case"tr":return ke(8,null,e.tagScope);case"head":if(2>e.insertionMode)return ke(3,null,e.tagScope);break;case"html":if(0===e.insertionMode)return ke(1,null,e.tagScope)}return 6<=e.insertionMode||2>e.insertionMode?ke(2,null,e.tagScope):e}var _e=j("\x3c!-- --\x3e");function Ce(e,t,n,r){return""===t?r:(r&&e.push(_e),e.push(L(K(t))),!0)}var Pe=new Map,Ee=j(' style="'),Re=j(":"),ze=j(";");function Te(e,t){if("object"!=typeof t)throw Error(n(62));var r,i=!0;for(r in t)if(W.call(t,r)){var o=t[r];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===r.indexOf("--")){var a=L(K(r));o=L(K((""+o).trim()))}else void 0===(a=Pe.get(r))&&(a=j(K(r.replace(Q,"-$1").toLowerCase().replace(Z,"-ms-"))),Pe.set(r,a)),o="number"==typeof o?0===o||G.has(r)?L(""+o):L(o+"px"):L(K((""+o).trim()));i?(i=!1,e.push(Ee,a,Re,o)):e.push(ze,a,Re,o)}}i||e.push(Fe)}var Ie=j(" "),Oe=j('="'),Fe=j('"'),Ae=j('=""');function Me(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(Ie,L(t),Ae)}function Ne(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(Ie,L(t),Oe,L(K(n)),Fe)}var De=j(K("javascript:throw new Error('React form unexpectedly submitted.')")),Le=j('<input type="hidden"');function je(e,t){this.push(Le),$e(e),Ne(this,"name",t),Ne(this,"value",e),this.push(Ue)}function $e(e){if("string"!=typeof e)throw Error(n(480))}function Be(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var i=r.data;null!=i&&i.forEach($e)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function We(e,t,n,r,i,o,a,s){var l=null;if("function"==typeof r){var c=Be(t,r);null!==c?(s=c.name,r=c.action||"",i=c.encType,o=c.method,a=c.target,l=c.data):(e.push(Ie,L("formAction"),Oe,De,Fe),a=o=i=r=s=null,Xe(t,n))}return null!=s&&Ve(e,"name",s),null!=r&&Ve(e,"formAction",r),null!=i&&Ve(e,"formEncType",i),null!=o&&Ve(e,"formMethod",o),null!=a&&Ve(e,"formTarget",a),l}function Ve(e,t,n){switch(t){case"className":Ne(e,"class",n);break;case"tabIndex":Ne(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ne(e,t,n);break;case"style":Te(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=ee(""+n),e.push(Ie,L(t),Oe,L(K(n)),Fe);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Me(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=ee(""+n),e.push(Ie,L("xlink:href"),Oe,L(K(n)),Fe);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(Ie,L(t),Oe,L(K(n)),Fe);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(Ie,L(t),Ae);break;case"capture":case"download":!0===n?e.push(Ie,L(t),Ae):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(Ie,L(t),Oe,L(K(n)),Fe);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(Ie,L(t),Oe,L(K(n)),Fe);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(Ie,L(t),Oe,L(K(n)),Fe);break;case"xlinkActuate":Ne(e,"xlink:actuate",n);break;case"xlinkArcrole":Ne(e,"xlink:arcrole",n);break;case"xlinkRole":Ne(e,"xlink:role",n);break;case"xlinkShow":Ne(e,"xlink:show",n);break;case"xlinkTitle":Ne(e,"xlink:title",n);break;case"xlinkType":Ne(e,"xlink:type",n);break;case"xmlBase":Ne(e,"xml:base",n);break;case"xmlLang":Ne(e,"xml:lang",n);break;case"xmlSpace":Ne(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&q(t=Y.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(Ie,L(t),Oe,L(K(n)),Fe)}}}var He=j(">"),Ue=j("/>");function qe(e,t,r){if(null!=t){if(null!=r)throw Error(n(60));if("object"!=typeof t||!("__html"in t))throw Error(n(61));null!=(t=t.__html)&&e.push(L(""+t))}}var Ge=j(' selected=""'),Ye=j('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});');function Xe(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,Ye,se))}var Ke=j("\x3c!--F!--\x3e"),Qe=j("\x3c!--F--\x3e");function Ze(e,t){for(var r in e.push(ct("link")),t)if(W.call(t,r)){var i=t[r];if(null!=i)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:Ve(e,r,i)}}return e.push(Ue),null}var Je=/(<\/|<)(s)(tyle)/gi;function et(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function tt(e,t,r){for(var i in e.push(ct(r)),t)if(W.call(t,i)){var o=t[i];if(null!=o)switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,r));default:Ve(e,i,o)}}return e.push(Ue),null}function nt(e,t){e.push(ct("title"));var n,r=null,i=null;for(n in t)if(W.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Ve(e,n,o)}}return e.push(He),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(L(K(""+t))),qe(e,i,r),e.push(ft("title")),null}function rt(e,t){e.push(ct("script"));var n,r=null,i=null;for(n in t)if(W.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Ve(e,n,o)}}return e.push(He),qe(e,i,r),"string"==typeof r&&e.push(L((""+r).replace(he,ge))),e.push(ft("script")),null}function it(e,t,n){e.push(ct(n));var r,i=n=null;for(r in t)if(W.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Ve(e,r,o)}}return e.push(He),qe(e,i,n),n}function ot(e,t,n){e.push(ct(n));var r,i=n=null;for(r in t)if(W.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Ve(e,r,o)}}return e.push(He),qe(e,i,n),"string"==typeof n?(e.push(L(K(n))),null):n}var at=j("\n"),st=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,lt=new Map;function ct(e){var t=lt.get(e);if(void 0===t){if(!st.test(e))throw Error(n(65,e));t=j("<"+e),lt.set(e,t)}return t}var ut=j("<!DOCTYPE html>");var dt=new Map;function ft(e){var t=dt.get(e);return void 0===t&&(t=j("</"+e+">"),dt.set(e,t)),t}function pt(e,t){null===(e=e.preamble).htmlChunks&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks,t.contribution|=1),null===e.headChunks&&t.headChunks&&(e.headChunks=t.headChunks,t.contribution|=4),null===e.bodyChunks&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks,t.contribution|=2)}function ht(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)F(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,A(e,n))}var gt=j('<template id="'),mt=j('"></template>'),vt=j("\x3c!--$--\x3e"),bt=j('\x3c!--$?--\x3e<template id="'),yt=j('"></template>'),xt=j("\x3c!--$!--\x3e"),kt=j("\x3c!--/$--\x3e"),wt=j("<template"),St=j('"'),_t=j(' data-dgst="');j(' data-msg="'),j(' data-stck="'),j(' data-cstck="');var Ct=j("></template>");function Pt(e,t,r){if(F(e,bt),null===r)throw Error(n(395));return F(e,t.boundaryPrefix),F(e,L(r.toString(16))),A(e,yt)}var Et=j("\x3c!--"),Rt=j("--\x3e");function zt(e,t){0!==(t=t.contribution)&&(F(e,Et),F(e,L(""+t)),F(e,Rt))}var Tt=j('<div hidden id="'),It=j('">'),Ot=j("</div>"),Ft=j('<svg aria-hidden="true" style="display:none" id="'),At=j('">'),Mt=j("</svg>"),Nt=j('<math aria-hidden="true" style="display:none" id="'),Dt=j('">'),Lt=j("</math>"),jt=j('<table hidden id="'),$t=j('">'),Bt=j("</table>"),Wt=j('<table hidden><tbody id="'),Vt=j('">'),Ht=j("</tbody></table>"),Ut=j('<table hidden><tr id="'),qt=j('">'),Gt=j("</tr></table>"),Yt=j('<table hidden><colgroup id="'),Xt=j('">'),Kt=j("</colgroup></table>"),Qt=j('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Zt=j('$RS("'),Jt=j('","'),en=j('")<\/script>');j('<template data-rsi="" data-sid="'),j('" data-pid="');var tn=j('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),nn=j('$RC("'),rn=j('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),on=j('$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),an=j('$RR("'),sn=j('","'),ln=j('",'),cn=j('"'),un=j(")<\/script>");j('<template data-rci="" data-bid="'),j('<template data-rri="" data-bid="'),j('" data-sid="'),j('" data-sty="');var dn=j('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),fn=j('$RX("'),pn=j('"'),hn=j(","),gn=j(")<\/script>");j('<template data-rxi="" data-bid="'),j('" data-dgst="'),j('" data-msg="'),j('" data-stck="'),j('" data-cstck="');var mn=/[<\u2028\u2029]/g;function vn(e){return JSON.stringify(e).replace(mn,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var bn=/[&><\u2028\u2029]/g;function yn(e){return JSON.stringify(e).replace(bn,function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var xn=j('<style media="not all" data-precedence="'),kn=j('" data-href="'),wn=j('">'),Sn=j("</style>"),_n=!1,Cn=!0;function Pn(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(F(this,xn),F(this,e.precedence),F(this,kn);r<n.length-1;r++)F(this,n[r]),F(this,An);for(F(this,n[r]),F(this,wn),r=0;r<t.length;r++)F(this,t[r]);Cn=A(this,Sn),_n=!0,t.length=0,n.length=0}}function En(e){return 2!==e.state&&(_n=!0)}function Rn(e,t,n){return _n=!1,Cn=!0,t.styles.forEach(Pn,e),t.stylesheets.forEach(En),_n&&(n.stylesToHoist=!0),Cn}function zn(e){for(var t=0;t<e.length;t++)F(this,e[t]);e.length=0}var Tn=[];function In(e){Ze(Tn,e.props);for(var t=0;t<Tn.length;t++)F(this,Tn[t]);Tn.length=0,e.state=2}var On=j('<style data-precedence="'),Fn=j('" data-href="'),An=j(" "),Mn=j('">'),Nn=j("</style>");function Dn(e){var t=0<e.sheets.size;e.sheets.forEach(In,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(F(this,On),F(this,e.precedence),e=0,r.length){for(F(this,Fn);e<r.length-1;e++)F(this,r[e]),F(this,An);F(this,r[e])}for(F(this,Mn),e=0;e<n.length;e++)F(this,n[e]);F(this,Nn),n.length=0,r.length=0}}function Ln(e){if(0===e.state){e.state=1;var t=e.props;for(Ze(Tn,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<Tn.length;e++)F(this,Tn[e]);Tn.length=0}}function jn(e){e.sheets.forEach(Ln,this),e.sheets.clear()}var $n=j("["),Bn=j(",["),Wn=j(","),Vn=j("]");function Hn(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=ee(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!q(t))return;t=""+n}F(e,Wn),F(e,L(yn(r))),F(e,Wn),F(e,L(yn(t)))}function Un(){return{styles:new Set,stylesheets:new Set}}function qn(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function Gn(e,t,n){for(var r in t="<"+(e=(""+e).replace(Yn,Xn))+'>; rel=preload; as="'+(t=(""+t).replace(Kn,Qn))+'"',n)W.call(n,r)&&"string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(Kn,Qn)+'"');return t}var Yn=/[<>\r\n]/g;function Xn(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var Kn=/["';,\r\n]/g;function Qn(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Zn(e){this.styles.add(e)}function Jn(e){this.stylesheets.add(e)}var er=Function.prototype.bind,tr=Symbol.for("react.client.reference");function nr(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===tr?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList";case b:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case i:return"Portal";case u:return(e.displayName||"Context")+".Provider";case c:return(e._context.displayName||"Context")+".Consumer";case d:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case h:return null!==(t=e.displayName||null)?t:nr(e.type)||"Memo";case g:t=e._payload,e=e._init;try{return nr(e(t))}catch(n){}}return null}var rr={},ir=null;function or(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(null===e){if(null!==r)throw Error(n(401))}else{if(null===r)throw Error(n(401));or(e,r)}t.context._currentValue=t.value}}function ar(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&ar(e)}function sr(e){var t=e.parent;null!==t&&sr(t),e.context._currentValue=e.value}function lr(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(n(402));e.depth===t.depth?or(e,t):lr(e,t)}function cr(e,t){var r=t.parent;if(null===r)throw Error(n(402));e.depth===r.depth?or(e,r):cr(e,r),t.context._currentValue=t.value}function ur(e){var t=ir;t!==e&&(null===t?sr(e):null===e?ar(t):t.depth===e.depth?or(t,e):t.depth>e.depth?lr(t,e):cr(t,e),ir=e)}var dr={enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},fr={id:1,overflow:""};function pr(e,t,n){var r=e.id;e=e.overflow;var i=32-hr(r)-1;r&=~(1<<i),n+=1;var o=32-hr(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-hr(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var hr=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(gr(e)/mr|0)|0},gr=Math.log,mr=Math.LN2,vr=Error(n(460));function br(){}var yr=null;function xr(){if(null===yr)throw Error(n(459));var e=yr;return yr=null,e}var kr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},wr=null,Sr=null,_r=null,Cr=null,Pr=null,Er=null,Rr=!1,zr=!1,Tr=0,Ir=0,Or=-1,Fr=0,Ar=null,Mr=null,Nr=0;function Dr(){if(null===wr)throw Error(n(321));return wr}function Lr(){if(0<Nr)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function jr(){return null===Er?null===Pr?(Rr=!1,Pr=Er=Lr()):(Rr=!0,Er=Pr):null===Er.next?(Rr=!1,Er=Er.next=Lr()):(Rr=!0,Er=Er.next),Er}function $r(){var e=Ar;return Ar=null,e}function Br(){Cr=_r=Sr=wr=null,zr=!1,Pr=null,Nr=0,Er=Mr=null}function Wr(e,t){return"function"==typeof t?t(e):t}function Vr(e,t,n){if(wr=Dr(),Er=jr(),Rr){var r=Er.queue;if(t=r.dispatch,null!==Mr&&void 0!==(n=Mr.get(r))){Mr.delete(r),r=Er.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Er.memoizedState=r,[r,t]}return[Er.memoizedState,t]}return e=e===Wr?"function"==typeof t?t():t:void 0!==n?n(t):t,Er.memoizedState=e,e=(e=Er.queue={last:null,dispatch:null}).dispatch=Ur.bind(null,wr,e),[Er.memoizedState,e]}function Hr(e,t){if(wr=Dr(),t=void 0===t?null:t,null!==(Er=jr())){var n=Er.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!kr(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Er.memoizedState=[e,t],e}function Ur(e,t,r){if(25<=Nr)throw Error(n(301));if(e===wr)if(zr=!0,e={action:r,next:null},null===Mr&&(Mr=new Map),void 0===(r=Mr.get(t)))Mr.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function qr(){throw Error(n(394))}function Gr(){throw Error(n(479))}function Yr(e,t,n){Dr();var r=Ir++,i=_r;if("function"==typeof e.$$FORM_ACTION){var o=null,a=Cr;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==i&&"function"==typeof s){var l=i[1];s.call(e,i[2],i[3])&&l===(o=void 0!==n?"p"+n:"k"+_(JSON.stringify([a,null,r]),0))&&(Or=r,t=i[0])}var c=e.bind(null,t);return e=function(e){c(e)},"function"==typeof c.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=c.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+_(JSON.stringify([a,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function Xr(e){var t=Fr;return Fr+=1,null===Ar&&(Ar=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(br,br),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(br,br):((e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw yr=t,vr}}(Ar,e,t)}function Kr(){throw Error(n(393))}function Qr(){}var Zr,Jr,ei={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Xr(e);if(e.$$typeof===u)return e._currentValue}throw Error(n(438,String(e)))},useContext:function(e){return Dr(),e._currentValue},useMemo:Hr,useReducer:Vr,useRef:function(e){wr=Dr();var t=(Er=jr()).memoizedState;return null===t?(e={current:e},Er.memoizedState=e):t},useState:function(e){return Vr(Wr,e)},useInsertionEffect:Qr,useLayoutEffect:Qr,useCallback:function(e,t){return Hr(function(){return e},t)},useImperativeHandle:Qr,useEffect:Qr,useDebugValue:Qr,useDeferredValue:function(e,t){return Dr(),void 0!==t?t:e},useTransition:function(){return Dr(),[!1,qr]},useId:function(){var e=Sr.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-hr(e)-1)).toString(32)+t;var r=ti;if(null===r)throw Error(n(404));return t=Tr++,e="«"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+"»"},useSyncExternalStore:function(e,t,r){if(void 0===r)throw Error(n(407));return r()},useOptimistic:function(e){return Dr(),[e,Gr]},useActionState:Yr,useFormState:Yr,useHostTransitionStatus:function(){return Dr(),re},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=x;return t},useCacheRefresh:function(){return Kr}},ti=null,ni={getCacheForType:function(){throw Error(n(248))}};function ri(e){if(void 0===Zr)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zr=t&&t[1]||"",Jr=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Zr+e+Jr}var ii=!1;function oi(e,t){if(!e||ii)return"";ii=!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()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.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 o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==c[i]){var u="\n"+l[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{ii=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ri(n):""}function ai(e){if("string"==typeof e)return ri(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?oi(e,!0):oi(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case d:return oi(e.render,!1);case h:return oi(e.type,!1);case g:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return ri("Lazy")}return ai(e)}if("string"==typeof e.name)return n=e.env,ri(e.name+(n?" ["+n+"]":""))}switch(e){case p:return ri("SuspenseList");case f:return ri("Suspense")}return""}function si(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"%c%s%c "+e[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""):e.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""),e.unshift(console),(t=er.apply(console.error,e))()}return null}function li(){}function ci(e,t,n,r,i,o,a,s,l,c,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===i?si:i,this.onPostpone=void 0===c?li:c,this.onAllReady=void 0===o?li:o,this.onShellReady=void 0===a?li:a,this.onShellError=void 0===s?li:s,this.onFatalError=void 0===l?li:l,this.formState=void 0===u?null:u}function ui(e,t,n,r,i,o,a,s,l,c,u,d){return(n=mi(t=new ci(t,n,r,i,o,a,s,l,c,u,d),0,null,r,!1,!1)).parentFlushed=!0,vi(e=hi(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,fr,null,!1)),t.pingedTasks.push(e),t}var di=null;function fi(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?T(function(){return $i(e)}):E(function(){return $i(e)}))}function pi(e,t,n,r){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:Un(),fallbackState:Un(),contentPreamble:n,fallbackPreamble:r,trackedContentKeyPath:null,trackedFallbackNode:null}}function hi(e,t,n,r,i,o,a,s,l,c,u,d,f,p,h){e.allPendingTasks++,null===i?e.pendingRootTasks++:i.pendingTasks++;var g={replay:null,node:n,childIndex:r,ping:function(){return fi(e,g)},blockedBoundary:i,blockedSegment:o,blockedPreamble:a,hoistableState:s,abortSet:l,keyPath:c,formatContext:u,context:d,treeContext:f,componentStack:p,thenableState:t,isFallback:h};return l.add(g),g}function gi(e,t,n,r,i,o,a,s,l,c,u,d,f,p){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var h={replay:n,node:r,childIndex:i,ping:function(){return fi(e,h)},blockedBoundary:o,blockedSegment:null,blockedPreamble:null,hoistableState:a,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:f,thenableState:t,isFallback:p};return s.add(h),h}function mi(e,t,n,r,i,o){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function vi(e){var t=e.node;"object"==typeof t&&null!==t&&t.$$typeof===r&&(e.componentStack={parent:e.componentStack,type:t.type})}function bi(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=ai(r.type),r=r.parent}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function yi(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function xi(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,$(e.destination,t)):(e.status=13,e.fatalError=t)}function ki(e,t,n,r,i,o){var a=t.thenableState;for(t.thenableState=null,wr={},Sr=t,_r=e,Cr=n,Ir=Tr=0,Or=-1,Fr=0,Ar=a,e=r(i,o);zr;)zr=!1,Ir=Tr=0,Or=-1,Fr=0,Nr+=1,Er=null,e=r(i,o);return Br(),e}function wi(e,t,n,r,i,o,a){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===a?l.push(Ke):l.push(Qe)}}o=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=pr(n,1,0),Ii(e,t,r,-1),t.treeContext=n):s?Ii(e,t,r,-1):Ci(e,t,r,-1),t.keyPath=o}function Si(t,r,i,m,x,w){if("function"==typeof m)if(m.prototype&&m.prototype.isReactComponent){var _=x;if("ref"in x)for(var C in _={},x)"ref"!==C&&(_[C]=x[C]);var P=m.defaultProps;if(P)for(var E in _===x&&(_=B({},_,x)),P)void 0===_[E]&&(_[E]=P[E]);x=_,_=rr,"object"==typeof(P=m.contextType)&&null!==P&&(_=P._currentValue);var R=void 0!==(_=new m(x,_)).state?_.state:null;if(_.updater=dr,_.props=x,_.state=R,P={queue:[],replace:!1},_._reactInternals=P,w=m.contextType,_.context="object"==typeof w&&null!==w?w._currentValue:rr,"function"==typeof(w=m.getDerivedStateFromProps)&&(R=null==(w=w(x,R))?R:B({},R,w),_.state=R),"function"!=typeof m.getDerivedStateFromProps&&"function"!=typeof _.getSnapshotBeforeUpdate&&("function"==typeof _.UNSAFE_componentWillMount||"function"==typeof _.componentWillMount))if(m=_.state,"function"==typeof _.componentWillMount&&_.componentWillMount(),"function"==typeof _.UNSAFE_componentWillMount&&_.UNSAFE_componentWillMount(),m!==_.state&&dr.enqueueReplaceState(_,_.state,null),null!==P.queue&&0<P.queue.length)if(m=P.queue,w=P.replace,P.queue=null,P.replace=!1,w&&1===m.length)_.state=m[0];else{for(P=w?m[0]:_.state,R=!0,w=w?1:0;w<m.length;w++)null!=(E="function"==typeof(E=m[w])?E.call(_,P,x,void 0):E)&&(R?(R=!1,P=B({},P,E)):B(P,E));_.state=P}else P.queue=null;if(m=_.render(),12===t.status)throw null;x=r.keyPath,r.keyPath=i,Ci(t,r,m,-1),r.keyPath=x}else{if(m=ki(t,r,i,m,x,void 0),12===t.status)throw null;wi(t,r,i,m,0!==Tr,Ir,Or)}else{if("string"!=typeof m){switch(m){case y:case a:case s:case o:return m=r.keyPath,r.keyPath=i,Ci(t,r,x.children,-1),void(r.keyPath=m);case b:return void("hidden"!==x.mode&&(m=r.keyPath,r.keyPath=i,Ci(t,r,x.children,-1),r.keyPath=m));case p:return m=r.keyPath,r.keyPath=i,Ci(t,r,x.children,-1),void(r.keyPath=m);case k:case v:throw Error(n(343));case f:e:if(null!==r.replay){m=r.keyPath,r.keyPath=i,i=x.children;try{Ii(t,r,i,-1)}finally{r.keyPath=m}}else{m=r.keyPath;var z=r.blockedBoundary;w=r.blockedPreamble;var T=r.hoistableState;E=r.blockedSegment,C=x.fallback,x=x.children;var I=new Set,O=2>r.formatContext.insertionMode?pi(0,I,{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0},{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}):pi(0,I,null,null);null!==t.trackedPostpones&&(O.trackedContentKeyPath=i);var F=mi(0,E.chunks.length,O,r.formatContext,!1,!1);E.children.push(F),E.lastPushedText=!1;var A=mi(0,0,null,r.formatContext,!1,!1);if(A.parentFlushed=!0,null!==t.trackedPostpones){P=[(_=[i[0],"Suspense Fallback",i[2]])[1],_[2],[],null],t.trackedPostpones.workingMap.set(_,P),O.trackedFallbackNode=P,r.blockedSegment=F,r.blockedPreamble=O.fallbackPreamble,r.keyPath=_,F.status=6;try{Ii(t,r,C,-1),F.lastPushedText&&F.textEmbedded&&F.chunks.push(_e),F.status=1}catch(M){throw F.status=12===t.status?3:4,M}finally{r.blockedSegment=E,r.blockedPreamble=w,r.keyPath=m}vi(r=hi(t,null,x,-1,O,A,O.contentPreamble,O.contentState,r.abortSet,i,r.formatContext,r.context,r.treeContext,r.componentStack,r.isFallback)),t.pingedTasks.push(r)}else{r.blockedBoundary=O,r.blockedPreamble=O.contentPreamble,r.hoistableState=O.contentState,r.blockedSegment=A,r.keyPath=i,A.status=6;try{if(Ii(t,r,x,-1),A.lastPushedText&&A.textEmbedded&&A.chunks.push(_e),A.status=1,Li(O,A),0===O.pendingTasks&&0===O.status){O.status=1,0===t.pendingRootTasks&&r.blockedPreamble&&Vi(t);break e}}catch(N){O.status=4,12===t.status?(A.status=3,_=t.fatalError):(A.status=4,_=N),R=yi(t,_,P=bi(r.componentStack)),O.errorDigest=R,Ri(t,O)}finally{r.blockedBoundary=z,r.blockedPreamble=w,r.hoistableState=T,r.blockedSegment=E,r.keyPath=m}vi(r=hi(t,null,C,-1,z,F,O.fallbackPreamble,O.fallbackState,I,[i[0],"Suspense Fallback",i[2]],r.formatContext,r.context,r.treeContext,r.componentStack,!0)),t.pingedTasks.push(r)}}return}if("object"==typeof m&&null!==m)switch(m.$$typeof){case d:if("ref"in x)for(O in _={},x)"ref"!==O&&(_[O]=x[O]);else _=x;return void wi(t,r,i,m=ki(t,r,i,m.render,_,w),0!==Tr,Ir,Or);case h:return void Si(t,r,i,m.type,x,w);case l:case u:if(P=x.children,_=r.keyPath,x=x.value,R=m._currentValue,m._currentValue=x,ir=m={parent:w=ir,depth:null===w?0:w.depth+1,context:m,parentValue:R,value:x},r.context=m,r.keyPath=i,Ci(t,r,P,-1),null===(t=ir))throw Error(n(403));return t.context._currentValue=t.parentValue,t=ir=t.parent,r.context=t,void(r.keyPath=_);case c:return m=(x=x.children)(m._context._currentValue),x=r.keyPath,r.keyPath=i,Ci(t,r,m,-1),void(r.keyPath=x);case g:if(m=(_=m._init)(m._payload),12===t.status)throw null;return void Si(t,r,i,m,x,w)}throw Error(n(130,null==m?m:typeof m,""))}if(null===(_=r.blockedSegment))_=x.children,P=r.formatContext,R=r.keyPath,r.formatContext=Se(P,m,x),r.keyPath=i,Ii(t,r,_,-1),r.formatContext=P,r.keyPath=R;else{w=function(t,r,i,o,a,s,l,c,u,d){switch(r){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":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":break;case"a":t.push(ct("a"));var f,p=null,h=null;for(f in i)if(W.call(i,f)){var g=i[f];if(null!=g)switch(f){case"children":p=g;break;case"dangerouslySetInnerHTML":h=g;break;case"href":""===g?Ne(t,"href",""):Ve(t,f,g);break;default:Ve(t,f,g)}}if(t.push(He),qe(t,h,p),"string"==typeof p){t.push(L(K(p)));var m=null}else m=p;return m;case"select":t.push(ct("select"));var v,b=null,y=null;for(v in i)if(W.call(i,v)){var x=i[v];if(null!=x)switch(v){case"children":b=x;break;case"dangerouslySetInnerHTML":y=x;break;case"defaultValue":case"value":break;default:Ve(t,v,x)}}return t.push(He),qe(t,y,b),b;case"option":var k=c.selectedValue;t.push(ct("option"));var w,_=null,C=null,P=null,E=null;for(w in i)if(W.call(i,w)){var R=i[w];if(null!=R)switch(w){case"children":_=R;break;case"selected":P=R;break;case"dangerouslySetInnerHTML":E=R;break;case"value":C=R;default:Ve(t,w,R)}}if(null!=k){var z=null!==C?""+C:function(t){var n="";return e.Children.forEach(t,function(e){null!=e&&(n+=e)}),n}(_);if(S(k)){for(var T=0;T<k.length;T++)if(""+k[T]===z){t.push(Ge);break}}else""+k===z&&t.push(Ge)}else P&&t.push(Ge);return t.push(He),qe(t,E,_),_;case"textarea":t.push(ct("textarea"));var I,O=null,F=null,A=null;for(I in i)if(W.call(i,I)){var M=i[I];if(null!=M)switch(I){case"children":A=M;break;case"value":O=M;break;case"defaultValue":F=M;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:Ve(t,I,M)}}if(null===O&&null!==F&&(O=F),t.push(He),null!=A){if(null!=O)throw Error(n(92));if(S(A)){if(1<A.length)throw Error(n(93));O=""+A[0]}O=""+A}return"string"==typeof O&&"\n"===O[0]&&t.push(at),null!==O&&t.push(L(K(""+O))),null;case"input":t.push(ct("input"));var N,D=null,j=null,$=null,V=null,H=null,U=null,G=null,Y=null,X=null;for(N in i)if(W.call(i,N)){var Q=i[N];if(null!=Q)switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"name":D=Q;break;case"formAction":j=Q;break;case"formEncType":$=Q;break;case"formMethod":V=Q;break;case"formTarget":H=Q;break;case"defaultChecked":X=Q;break;case"defaultValue":G=Q;break;case"checked":Y=Q;break;case"value":U=Q;break;default:Ve(t,N,Q)}}var Z=We(t,o,a,j,$,V,H,D);return null!==Y?Me(t,"checked",Y):null!==X&&Me(t,"checked",X),null!==U?Ve(t,"value",U):null!==G&&Ve(t,"value",G),t.push(Ue),null!=Z&&Z.forEach(je,t),null;case"button":t.push(ct("button"));var J,te=null,ne=null,re=null,ie=null,ae=null,se=null,le=null;for(J in i)if(W.call(i,J)){var ce=i[J];if(null!=ce)switch(J){case"children":te=ce;break;case"dangerouslySetInnerHTML":ne=ce;break;case"name":re=ce;break;case"formAction":ie=ce;break;case"formEncType":ae=ce;break;case"formMethod":se=ce;break;case"formTarget":le=ce;break;default:Ve(t,J,ce)}}var ue=We(t,o,a,ie,ae,se,le,re);if(t.push(He),null!=ue&&ue.forEach(je,t),qe(t,ne,te),"string"==typeof te){t.push(L(K(te)));var de=null}else de=te;return de;case"form":t.push(ct("form"));var fe,pe=null,he=null,ge=null,me=null,ve=null,be=null;for(fe in i)if(W.call(i,fe)){var ye=i[fe];if(null!=ye)switch(fe){case"children":pe=ye;break;case"dangerouslySetInnerHTML":he=ye;break;case"action":ge=ye;break;case"encType":me=ye;break;case"method":ve=ye;break;case"target":be=ye;break;default:Ve(t,fe,ye)}}var xe=null,ke=null;if("function"==typeof ge){var we=Be(o,ge);null!==we?(ge=we.action||"",me=we.encType,ve=we.method,be=we.target,xe=we.data,ke=we.name):(t.push(Ie,L("action"),Oe,De,Fe),be=ve=me=ge=null,Xe(o,a))}if(null!=ge&&Ve(t,"action",ge),null!=me&&Ve(t,"encType",me),null!=ve&&Ve(t,"method",ve),null!=be&&Ve(t,"target",be),t.push(He),null!==ke&&(t.push(Le),Ne(t,"name",ke),t.push(Ue),null!=xe&&xe.forEach(je,t)),qe(t,he,pe),"string"==typeof pe){t.push(L(K(pe)));var Se=null}else Se=pe;return Se;case"menuitem":for(var Ce in t.push(ct("menuitem")),i)if(W.call(i,Ce)){var Pe=i[Ce];if(null!=Pe)switch(Ce){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:Ve(t,Ce,Pe)}}return t.push(He),null;case"object":t.push(ct("object"));var Ee,Re=null,ze=null;for(Ee in i)if(W.call(i,Ee)){var Ae=i[Ee];if(null!=Ae)switch(Ee){case"children":Re=Ae;break;case"dangerouslySetInnerHTML":ze=Ae;break;case"data":var $e=ee(""+Ae);if(""===$e)break;t.push(Ie,L("data"),Oe,L(K($e)),Fe);break;default:Ve(t,Ee,Ae)}}if(t.push(He),qe(t,ze,Re),"string"==typeof Re){t.push(L(K(Re)));var Ye=null}else Ye=Re;return Ye;case"title":if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var Ke=nt(t,i);else d?Ke=null:(nt(a.hoistableChunks,i),Ke=void 0);return Ke;case"link":var Qe=i.rel,st=i.href,lt=i.precedence;if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp||"string"!=typeof Qe||"string"!=typeof st||""===st){Ze(t,i);var dt=null}else if("stylesheet"===i.rel)if("string"!=typeof lt||null!=i.disabled||i.onLoad||i.onError)dt=Ze(t,i);else{var pt=a.styles.get(lt),ht=o.styleResources.hasOwnProperty(st)?o.styleResources[st]:void 0;if(null!==ht){o.styleResources[st]=null,pt||(pt={precedence:L(K(lt)),rules:[],hrefs:[],sheets:new Map},a.styles.set(lt,pt));var gt={state:0,props:B({},i,{"data-precedence":i.precedence,precedence:null})};if(ht){2===ht.length&&qn(gt.props,ht);var mt=a.preloads.stylesheets.get(st);mt&&0<mt.length?mt.length=0:gt.state=1}pt.sheets.set(st,gt),l&&l.stylesheets.add(gt)}else if(pt){var vt=pt.sheets.get(st);vt&&l&&l.stylesheets.add(vt)}u&&t.push(_e),dt=null}else i.onLoad||i.onError?dt=Ze(t,i):(u&&t.push(_e),dt=d?null:Ze(a.hoistableChunks,i));return dt;case"script":var bt=i.async;if("string"!=typeof i.src||!i.src||!bt||"function"==typeof bt||"symbol"==typeof bt||i.onLoad||i.onError||4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var yt=rt(t,i);else{var xt=i.src;if("module"===i.type)var kt=o.moduleScriptResources,wt=a.preloads.moduleScripts;else kt=o.scriptResources,wt=a.preloads.scripts;var St=kt.hasOwnProperty(xt)?kt[xt]:void 0;if(null!==St){kt[xt]=null;var _t=i;if(St){2===St.length&&qn(_t=B({},i),St);var Ct=wt.get(xt);Ct&&(Ct.length=0)}var Pt=[];a.scripts.add(Pt),rt(Pt,_t)}u&&t.push(_e),yt=null}return yt;case"style":var Et=i.precedence,Rt=i.href;if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp||"string"!=typeof Et||"string"!=typeof Rt||""===Rt){t.push(ct("style"));var zt,Tt=null,It=null;for(zt in i)if(W.call(i,zt)){var Ot=i[zt];if(null!=Ot)switch(zt){case"children":Tt=Ot;break;case"dangerouslySetInnerHTML":It=Ot;break;default:Ve(t,zt,Ot)}}t.push(He);var Ft=Array.isArray(Tt)?2>Tt.length?Tt[0]:null:Tt;"function"!=typeof Ft&&"symbol"!=typeof Ft&&null!=Ft&&t.push(L((""+Ft).replace(Je,et))),qe(t,It,Tt),t.push(ft("style"));var At=null}else{var Mt=a.styles.get(Et);if(null!==(o.styleResources.hasOwnProperty(Rt)?o.styleResources[Rt]:void 0)){o.styleResources[Rt]=null,Mt?Mt.hrefs.push(L(K(Rt))):(Mt={precedence:L(K(Et)),rules:[],hrefs:[L(K(Rt))],sheets:new Map},a.styles.set(Et,Mt));var Nt,Dt=Mt.rules,Lt=null,jt=null;for(Nt in i)if(W.call(i,Nt)){var $t=i[Nt];if(null!=$t)switch(Nt){case"children":Lt=$t;break;case"dangerouslySetInnerHTML":jt=$t}}var Bt=Array.isArray(Lt)?2>Lt.length?Lt[0]:null:Lt;"function"!=typeof Bt&&"symbol"!=typeof Bt&&null!=Bt&&Dt.push(L((""+Bt).replace(Je,et))),qe(Dt,jt,Lt)}Mt&&l&&l.styles.add(Mt),u&&t.push(_e),At=void 0}return At;case"meta":if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var Wt=tt(t,i,"meta");else u&&t.push(_e),Wt=d?null:"string"==typeof i.charSet?tt(a.charsetChunks,i,"meta"):"viewport"===i.name?tt(a.viewportChunks,i,"meta"):tt(a.hoistableChunks,i,"meta");return Wt;case"listing":case"pre":t.push(ct(r));var Vt,Ht=null,Ut=null;for(Vt in i)if(W.call(i,Vt)){var qt=i[Vt];if(null!=qt)switch(Vt){case"children":Ht=qt;break;case"dangerouslySetInnerHTML":Ut=qt;break;default:Ve(t,Vt,qt)}}if(t.push(He),null!=Ut){if(null!=Ht)throw Error(n(60));if("object"!=typeof Ut||!("__html"in Ut))throw Error(n(61));var Gt=Ut.__html;null!=Gt&&("string"==typeof Gt&&0<Gt.length&&"\n"===Gt[0]?t.push(at,L(Gt)):t.push(L(""+Gt)))}return"string"==typeof Ht&&"\n"===Ht[0]&&t.push(at),Ht;case"img":var Yt=i.src,Xt=i.srcSet;if(!("lazy"===i.loading||!Yt&&!Xt||"string"!=typeof Yt&&null!=Yt||"string"!=typeof Xt&&null!=Xt)&&"low"!==i.fetchPriority&&0==!!(3&c.tagScope)&&("string"!=typeof Yt||":"!==Yt[4]||"d"!==Yt[0]&&"D"!==Yt[0]||"a"!==Yt[1]&&"A"!==Yt[1]||"t"!==Yt[2]&&"T"!==Yt[2]||"a"!==Yt[3]&&"A"!==Yt[3])&&("string"!=typeof Xt||":"!==Xt[4]||"d"!==Xt[0]&&"D"!==Xt[0]||"a"!==Xt[1]&&"A"!==Xt[1]||"t"!==Xt[2]&&"T"!==Xt[2]||"a"!==Xt[3]&&"A"!==Xt[3])){var Kt="string"==typeof i.sizes?i.sizes:void 0,Qt=Xt?Xt+"\n"+(Kt||""):Yt,Zt=a.preloads.images,Jt=Zt.get(Qt);if(Jt)("high"===i.fetchPriority||10>a.highImagePreloads.size)&&(Zt.delete(Qt),a.highImagePreloads.add(Jt));else if(!o.imageResources.hasOwnProperty(Qt)){o.imageResources[Qt]=oe;var en,tn=i.crossOrigin,nn="string"==typeof tn?"use-credentials"===tn?tn:"":void 0,rn=a.headers;rn&&0<rn.remainingCapacity&&"string"!=typeof i.srcSet&&("high"===i.fetchPriority||500>rn.highImagePreloads.length)&&(en=Gn(Yt,"image",{imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:nn,integrity:i.integrity,nonce:i.nonce,type:i.type,fetchPriority:i.fetchPriority,referrerPolicy:i.refererPolicy}),0<=(rn.remainingCapacity-=en.length+2))?(a.resets.image[Qt]=oe,rn.highImagePreloads&&(rn.highImagePreloads+=", "),rn.highImagePreloads+=en):(Ze(Jt=[],{rel:"preload",as:"image",href:Xt?void 0:Yt,imageSrcSet:Xt,imageSizes:Kt,crossOrigin:nn,integrity:i.integrity,type:i.type,fetchPriority:i.fetchPriority,referrerPolicy:i.referrerPolicy}),"high"===i.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(Jt):(a.bulkPreloads.add(Jt),Zt.set(Qt,Jt)))}}return tt(t,i,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return tt(t,i,r);case"head":if(2>c.insertionMode){var on=s||a.preamble;if(on.headChunks)throw Error(n(545,"`<head>`"));on.headChunks=[];var an=it(on.headChunks,i,"head")}else an=ot(t,i,"head");return an;case"body":if(2>c.insertionMode){var sn=s||a.preamble;if(sn.bodyChunks)throw Error(n(545,"`<body>`"));sn.bodyChunks=[];var ln=it(sn.bodyChunks,i,"body")}else ln=ot(t,i,"body");return ln;case"html":if(0===c.insertionMode){var cn=s||a.preamble;if(cn.htmlChunks)throw Error(n(545,"`<html>`"));cn.htmlChunks=[ut];var un=it(cn.htmlChunks,i,"html")}else un=ot(t,i,"html");return un;default:if(-1!==r.indexOf("-")){t.push(ct(r));var dn,fn=null,pn=null;for(dn in i)if(W.call(i,dn)){var hn=i[dn];if(null!=hn){var gn=dn;switch(dn){case"children":fn=hn;break;case"dangerouslySetInnerHTML":pn=hn;break;case"style":Te(t,hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":gn="class";default:if(q(dn)&&"function"!=typeof hn&&"symbol"!=typeof hn&&!1!==hn){if(!0===hn)hn="";else if("object"==typeof hn)continue;t.push(Ie,L(gn),Oe,L(K(hn)),Fe)}}}}return t.push(He),qe(t,pn,fn),fn}}return ot(t,i,r)}(_.chunks,m,x,t.resumableState,t.renderState,r.blockedPreamble,r.hoistableState,r.formatContext,_.lastPushedText,r.isFallback),_.lastPushedText=!1,P=r.formatContext,R=r.keyPath,r.keyPath=i,3===(r.formatContext=Se(P,m,x)).insertionMode?(i=mi(0,0,null,r.formatContext,!1,!1),_.preambleChildren.push(i),vi(i=hi(t,null,w,-1,r.blockedBoundary,i,r.blockedPreamble,r.hoistableState,t.abortableTasks,r.keyPath,r.formatContext,r.context,r.treeContext,r.componentStack,r.isFallback)),t.pingedTasks.push(i)):Ii(t,r,w,-1),r.formatContext=P,r.keyPath=R;e:{switch(r=_.chunks,t=t.resumableState,m){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=P.insertionMode){t.hasBody=!0;break e}break;case"html":if(0===P.insertionMode){t.hasHtml=!0;break e}break;case"head":if(1>=P.insertionMode)break e}r.push(ft(m))}_.lastPushedText=!1}}}function _i(e,t,n,r,i){var o=t.replay,a=t.blockedBoundary,s=mi(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,Ii(e,t,r,i),s.status=1,null===a?e.completedRootSegment=s:(Li(a,s),a.parentFlushed&&e.partialBoundaries.push(a))}finally{t.replay=o,t.blockedSegment=null}}function Ci(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?_i(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,vi(t),Pi(e,t),t.componentStack=n)}function Pi(e,t){var o=t.node,a=t.childIndex;if(null!==o){if("object"==typeof o){switch(o.$$typeof){case r:var s=o.type,l=o.key,c=o.props,d=void 0!==(o=c.ref)?o:null,p=nr(s),h=null==l?-1===a?0:a:l;if(l=[t.keyPath,p,h],null!==t.replay)e:{var m=t.replay;for(a=m.nodes,o=0;o<a.length;o++){var v=a[o];if(h===v[1]){if(4===v.length){if(null!==p&&p!==v[0])throw Error(n(490,v[0],p));var b=v[2];p=v[3],h=t.node,t.replay={nodes:b,slots:p,pendingTasks:1};try{if(Si(e,t,l,s,c,d),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));t.replay.pendingTasks--}catch(R){if("object"==typeof R&&null!==R&&(R===vr||"function"==typeof R.then))throw t.node===h&&(t.replay=m),R;t.replay.pendingTasks--,c=bi(t.componentStack),Fi(e,l=t.blockedBoundary,b,p,s=R,c=yi(e,s,c))}t.replay=m}else{if(s!==f)throw Error(n(490,"Suspense",nr(s)||"Unknown"));t:{m=void 0,s=v[5],d=v[2],p=v[3],h=null===v[4]?[]:v[4][2],v=null===v[4]?null:v[4][3];var y=t.keyPath,x=t.replay,k=t.blockedBoundary,_=t.hoistableState,C=c.children,P=c.fallback,E=new Set;(c=2>t.formatContext.insertionMode?pi(0,E,xe(),xe()):pi(0,E,null,null)).parentFlushed=!0,c.rootSegmentID=s,t.blockedBoundary=c,t.hoistableState=c.contentState,t.keyPath=l,t.replay={nodes:d,slots:p,pendingTasks:1};try{if(Ii(e,t,C,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));if(t.replay.pendingTasks--,0===c.pendingTasks&&0===c.status){c.status=1,e.completedBoundaries.push(c);break t}}catch(z){c.status=4,m=yi(e,z,b=bi(t.componentStack)),c.errorDigest=m,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(c)}finally{t.blockedBoundary=k,t.hoistableState=_,t.replay=x,t.keyPath=y}vi(t=gi(e,null,{nodes:h,slots:v,pendingTasks:0},P,-1,k,c.fallbackState,E,[l[0],"Suspense Fallback",l[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}a.splice(o,1);break e}}}else Si(e,t,l,s,c,d);return;case i:throw Error(n(257));case g:if(o=(b=o._init)(o._payload),12===e.status)throw null;return void Ci(e,t,o,a)}if(S(o))return void Ei(e,t,o,a);if((b=null===o||"object"!=typeof o?null:"function"==typeof(b=w&&o[w]||o["@@iterator"])?b:null)&&(b=b.call(o))){if(!(o=b.next()).done){c=[];do{c.push(o.value),o=b.next()}while(!o.done);Ei(e,t,c,a)}return}if("function"==typeof o.then)return t.thenableState=null,Ci(e,t,Xr(o),a);if(o.$$typeof===u)return Ci(e,t,o._currentValue,a);throw a=Object.prototype.toString.call(o),Error(n(31,"[object Object]"===a?"object with keys {"+Object.keys(o).join(", ")+"}":a))}"string"==typeof o?null!==(a=t.blockedSegment)&&(a.lastPushedText=Ce(a.chunks,o,e.renderState,a.lastPushedText)):"number"!=typeof o&&"bigint"!=typeof o||null!==(a=t.blockedSegment)&&(a.lastPushedText=Ce(a.chunks,""+o,e.renderState,a.lastPushedText))}}function Ei(e,t,r,i){var o=t.keyPath;if(-1===i||(t.keyPath=[t.keyPath,"Fragment",i],null===t.replay)){if(a=t.treeContext,s=r.length,null!==t.replay&&null!==(l=t.replay.slots)&&"object"==typeof l){for(i=0;i<s;i++)c=r[i],t.treeContext=pr(a,s,i),"number"==typeof(u=l[i])?(_i(e,t,u,c,i),delete l[i]):Ii(e,t,c,i);return t.treeContext=a,void(t.keyPath=o)}for(l=0;l<s;l++)i=r[l],t.treeContext=pr(a,s,l),Ii(e,t,i,l);t.treeContext=a,t.keyPath=o}else{for(var a=t.replay,s=a.nodes,l=0;l<s.length;l++){var c=s[l];if(c[1]===i){i=c[2],c=c[3],t.replay={nodes:i,slots:c,pendingTasks:1};try{if(Ei(e,t,r,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));t.replay.pendingTasks--}catch(d){if("object"==typeof d&&null!==d&&(d===vr||"function"==typeof d.then))throw d;t.replay.pendingTasks--,r=bi(t.componentStack);var u=t.blockedBoundary;Fi(e,u,i,c,d,r=yi(e,d,r))}t.replay=a,s.splice(l,1);break}}t.keyPath=o}}function Ri(e,t){null!==(e=e.trackedPostpones)&&null!==(t=t.trackedContentKeyPath)&&void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)}function zi(e,t,n){return gi(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function Ti(e,t,n){var r=t.blockedSegment,i=mi(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,hi(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function Ii(e,t,n,r){var i=t.formatContext,o=t.context,a=t.keyPath,s=t.treeContext,l=t.componentStack,c=t.blockedSegment;if(null===c)try{return Ci(e,t,n,r)}catch(f){if(Br(),"object"==typeof(n=f===vr?xr():f)&&null!==n){if("function"==typeof n.then)return e=zi(e,t,r=$r()).ping,n.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void ur(o);if("Maximum call stack size exceeded"===n.message)return n=zi(e,t,n=$r()),e.pingedTasks.push(n),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void ur(o)}}else{var u=c.children.length,d=c.chunks.length;try{return Ci(e,t,n,r)}catch(p){if(Br(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=p===vr?xr():p)&&null!==n){if("function"==typeof n.then)return e=Ti(e,t,r=$r()).ping,n.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void ur(o);if("Maximum call stack size exceeded"===n.message)return n=Ti(e,t,n=$r()),e.pingedTasks.push(n),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void ur(o)}}}throw t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,ur(o),n}function Oi(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,ji(this,t,e))}function Fi(e,t,r,i,o,a){for(var s=0;s<r.length;s++){var l=r[s];if(4===l.length)Fi(e,t,l[2],l[3],o,a);else{l=l[5];var c=e,u=a,d=pi(0,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=l,d.status=4,d.errorDigest=u,d.parentFlushed&&c.clientRenderedBoundaries.push(d)}}if(r.length=0,null!==i){if(null===t)throw Error(n(487));if(4!==t.status&&(t.status=4,t.errorDigest=a,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof i)for(var f in i)delete i[f]}}function Ai(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(null!==i){if(6===i.status)return;i.status=3}if(i=bi(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return yi(t,n,i),void xi(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=yi(t,n,i),Fi(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&Ni(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=yi(t,n,i),r.status=4,r.errorDigest=e,Ri(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Ai(e,t,n)}),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&Di(t)}function Mi(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var o=i.preconnects;if(i.fontPreloads&&(o&&(o+=", "),o+=i.fontPreloads),i.highImagePreloads&&(o&&(o+=", "),o+=i.highImagePreloads),!t){var a=n.styles.values(),s=a.next();e:for(;0<i.remainingCapacity&&!s.done;s=a.next())for(var l=s.value.sheets.values(),c=l.next();0<i.remainingCapacity&&!c.done;c=l.next()){var u=c.value,d=u.props,f=d.href,p=u.props,h=Gn(p.href,"style",{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(!(0<=(i.remainingCapacity-=h.length+2)))break e;n.resets.style[f]=oe,o&&(o+=", "),o+=h,n.resets.style[f]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:oe}}r(o?{Link:o}:{})}}}catch(g){yi(e,g,{})}}function Ni(e){null===e.trackedPostpones&&Mi(e,!0),null===e.trackedPostpones&&Vi(e),e.onShellError=li,(e=e.onShellReady)()}function Di(e){Mi(e,null===e.trackedPostpones||null===e.completedRootSegment||5!==e.completedRootSegment.status),Vi(e),(e=e.onAllReady)()}function Li(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Li(e,n)}else e.completedSegments.push(t)}function ji(e,t,r){if(null===t){if(null!==r&&r.parentFlushed){if(null!==e.completedRootSegment)throw Error(n(389));e.completedRootSegment=r}e.pendingRootTasks--,0===e.pendingRootTasks&&Ni(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==r&&r.parentFlushed&&1===r.status&&Li(t,r),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(Oi,e),t.fallbackAbortableTasks.clear(),0===e.pendingRootTasks&&null===e.trackedPostpones&&null!==t.contentPreamble&&Vi(e))):null!==r&&r.parentFlushed&&1===r.status&&(Li(t,r),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&Di(e)}function $i(e){if(14!==e.status&&13!==e.status){var t=ir,r=te.H;te.H=ei;var i=te.A;te.A=ni;var o=di;di=e;var a=ti;ti=e.resumableState;try{var s,l=e.pingedTasks;for(s=0;s<l.length;s++){var c=l[s],u=e,d=c.blockedSegment;if(null===d){var f=u;if(0!==c.replay.pendingTasks){ur(c.context);try{if("number"==typeof c.replay.slots?_i(f,c,c.replay.slots,c.node,c.childIndex):Pi(f,c),1===c.replay.pendingTasks&&0<c.replay.nodes.length)throw Error(n(488));c.replay.pendingTasks--,c.abortSet.delete(c),ji(f,c.blockedBoundary,null)}catch(C){Br();var p=C===vr?xr():C;if("object"==typeof p&&null!==p&&"function"==typeof p.then){var h=c.ping;p.then(h,h),c.thenableState=$r()}else{c.replay.pendingTasks--,c.abortSet.delete(c);var g=bi(c.componentStack);u=void 0;var m=f,v=c.blockedBoundary,b=12===f.status?f.fatalError:p;Fi(m,v,c.replay.nodes,c.replay.slots,b,u=yi(m,b,g)),f.pendingRootTasks--,0===f.pendingRootTasks&&Ni(f),f.allPendingTasks--,0===f.allPendingTasks&&Di(f)}}}}else if(f=void 0,0===(m=d).status){m.status=6,ur(c.context);var y=m.children.length,x=m.chunks.length;try{Pi(u,c),m.lastPushedText&&m.textEmbedded&&m.chunks.push(_e),c.abortSet.delete(c),m.status=1,ji(u,c.blockedBoundary,m)}catch(C){Br(),m.children.length=y,m.chunks.length=x;var k=C===vr?xr():12===u.status?u.fatalError:C;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,c.thenableState=$r();var w=c.ping;k.then(w,w)}else{var S=bi(c.componentStack);c.abortSet.delete(c),m.status=4;var _=c.blockedBoundary;f=yi(u,k,S),null===_?xi(u,k):(_.pendingTasks--,4!==_.status&&(_.status=4,_.errorDigest=f,Ri(u,_),_.parentFlushed&&u.clientRenderedBoundaries.push(_),0===u.pendingRootTasks&&null===u.trackedPostpones&&null!==_.contentPreamble&&Vi(u))),u.allPendingTasks--,0===u.allPendingTasks&&Di(u)}}}}l.splice(0,s),null!==e.destination&&Xi(e,e.destination)}catch(P){yi(e,P,{}),xi(e,P)}finally{ti=a,te.H=r,te.A=i,r===ei&&ur(t),di=o}}}function Bi(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=Wi(e,t.children[i],n)||r;return r}function Wi(e,t,r){var i=t.boundary;if(null===i)return Bi(e,t,r);var o=i.contentPreamble,a=i.fallbackPreamble;if(null===o||null===a)return!1;switch(i.status){case 1:if(pt(e.renderState,o),!(t=i.completedSegments[0]))throw Error(n(391));return Bi(e,t,r);case 5:if(null!==e.trackedPostpones)return!0;case 4:if(1===t.status)return pt(e.renderState,a),Bi(e,t,r);default:return!0}}function Vi(e){if(e.completedRootSegment&&null===e.completedPreambleSegments){var t=[],n=Wi(e,e.completedRootSegment,t),r=e.renderState.preamble;(!1===n||r.headChunks&&r.bodyChunks)&&(e.completedPreambleSegments=t)}}function Hi(e,t,r,i){switch(r.parentFlushed=!0,r.status){case 0:r.id=e.nextSegmentId++;case 5:return i=r.id,r.lastPushedText=!1,r.textEmbedded=!1,e=e.renderState,F(t,gt),F(t,e.placeholderPrefix),F(t,e=L(i.toString(16))),A(t,mt);case 1:r.status=2;var o=!0,a=r.chunks,s=0;r=r.children;for(var l=0;l<r.length;l++){for(o=r[l];s<o.index;s++)F(t,a[s]);o=Ui(e,t,o,i)}for(;s<a.length-1;s++)F(t,a[s]);return s<a.length&&(o=A(t,a[s])),o;default:throw Error(n(390))}}function Ui(e,t,r,i){var o=r.boundary;if(null===o)return Hi(e,t,r,i);if(o.parentFlushed=!0,4===o.status){var a=o.errorDigest;return A(t,xt),F(t,wt),a&&(F(t,_t),F(t,L(K(a))),F(t,St)),A(t,Ct),Hi(e,t,r,i),(e=o.fallbackPreamble)&&zt(t,e),A(t,kt)}if(1!==o.status)return 0===o.status&&(o.rootSegmentID=e.nextSegmentId++),0<o.completedSegments.length&&e.partialBoundaries.push(o),Pt(t,e.renderState,o.rootSegmentID),i&&((o=o.fallbackState).styles.forEach(Zn,i),o.stylesheets.forEach(Jn,i)),Hi(e,t,r,i),A(t,kt);if(o.byteSize>e.progressiveChunkSize)return o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),Pt(t,e.renderState,o.rootSegmentID),Hi(e,t,r,i),A(t,kt);if(i&&((r=o.contentState).styles.forEach(Zn,i),r.stylesheets.forEach(Jn,i)),A(t,vt),1!==(r=o.completedSegments).length)throw Error(n(391));return Ui(e,t,r[0],i),(e=o.contentPreamble)&&zt(t,e),A(t,kt)}function qi(e,t,r,i){return function(e,t,r,i){switch(r.insertionMode){case 0:case 1:case 3:case 2:return F(e,Tt),F(e,t.segmentPrefix),F(e,L(i.toString(16))),A(e,It);case 4:return F(e,Ft),F(e,t.segmentPrefix),F(e,L(i.toString(16))),A(e,At);case 5:return F(e,Nt),F(e,t.segmentPrefix),F(e,L(i.toString(16))),A(e,Dt);case 6:return F(e,jt),F(e,t.segmentPrefix),F(e,L(i.toString(16))),A(e,$t);case 7:return F(e,Wt),F(e,t.segmentPrefix),F(e,L(i.toString(16))),A(e,Vt);case 8:return F(e,Ut),F(e,t.segmentPrefix),F(e,L(i.toString(16))),A(e,qt);case 9:return F(e,Yt),F(e,t.segmentPrefix),F(e,L(i.toString(16))),A(e,Xt);default:throw Error(n(397))}}(t,e.renderState,r.parentFormatContext,r.id),Ui(e,t,r,i),function(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return A(e,Ot);case 4:return A(e,Mt);case 5:return A(e,Lt);case 6:return A(e,Bt);case 7:return A(e,Ht);case 8:return A(e,Gt);case 9:return A(e,Kt);default:throw Error(n(397))}}(t,r.parentFormatContext)}function Gi(e,t,r){for(var i=r.completedSegments,o=0;o<i.length;o++)Yi(e,t,r,i[o]);i.length=0,Rn(t,r.contentState,e.renderState),i=e.resumableState,e=e.renderState,o=r.rootSegmentID,r=r.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,F(t,e.startInlineScript),a?2&i.instructions?8&i.instructions?F(t,an):(i.instructions|=8,F(t,on)):(i.instructions|=10,F(t,rn)):2&i.instructions?F(t,nn):(i.instructions|=2,F(t,tn)),i=L(o.toString(16)),F(t,e.boundaryPrefix),F(t,i),F(t,sn),F(t,e.segmentPrefix),F(t,i),a?(F(t,ln),function(e,t){F(e,$n);var r=$n;t.stylesheets.forEach(function(t){if(2!==t.state)if(3===t.state)F(e,r),F(e,L(yn(""+t.props.href))),F(e,Vn),r=Bn;else{F(e,r);var i=t.props["data-precedence"],o=t.props,a=ee(""+t.props.href);for(var s in F(e,L(yn(a))),i=""+i,F(e,Wn),F(e,L(yn(i))),o)if(W.call(o,s)&&null!=(i=o[s]))switch(s){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:Hn(e,s,i)}F(e,Vn),r=Bn,t.state=3}}),F(e,Vn)}(t,r)):F(t,cn),r=A(t,un),ht(t,e)&&r}function Yi(e,t,r,i){if(2===i.status)return!0;var o=r.contentState,a=i.id;if(-1===a){if(-1===(i.id=r.rootSegmentID))throw Error(n(392));return qi(e,t,i,o)}return a===r.rootSegmentID?qi(e,t,i,o):(qi(e,t,i,o),r=e.resumableState,F(t,(e=e.renderState).startInlineScript),1&r.instructions?F(t,Zt):(r.instructions|=1,F(t,Qt)),F(t,e.segmentPrefix),F(t,a=L(a.toString(16))),F(t,Jt),F(t,e.placeholderPrefix),F(t,a),t=A(t,en))}function Xi(e,t){I=new Uint8Array(2048),O=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var i=e.completedPreambleSegments;if(null===i)return;var o,a=e.renderState,s=a.preamble,l=s.htmlChunks,c=s.headChunks;if(l){for(o=0;o<l.length;o++)F(t,l[o]);if(c)for(o=0;o<c.length;o++)F(t,c[o]);else F(t,ct("head")),F(t,He)}else if(c)for(o=0;o<c.length;o++)F(t,c[o]);var u=a.charsetChunks;for(o=0;o<u.length;o++)F(t,u[o]);u.length=0,a.preconnects.forEach(zn,t),a.preconnects.clear();var d=a.viewportChunks;for(o=0;o<d.length;o++)F(t,d[o]);d.length=0,a.fontPreloads.forEach(zn,t),a.fontPreloads.clear(),a.highImagePreloads.forEach(zn,t),a.highImagePreloads.clear(),a.styles.forEach(Dn,t);var f=a.importMapChunks;for(o=0;o<f.length;o++)F(t,f[o]);f.length=0,a.bootstrapScripts.forEach(zn,t),a.scripts.forEach(zn,t),a.scripts.clear(),a.bulkPreloads.forEach(zn,t),a.bulkPreloads.clear();var p=a.hoistableChunks;for(o=0;o<p.length;o++)F(t,p[o]);for(a=p.length=0;a<i.length;a++){var h=i[a];for(s=0;s<h.length;s++)Ui(e,t,h[s],null)}var g=e.renderState.preamble,m=g.headChunks;(g.htmlChunks||m)&&F(t,ft("head"));var v=g.bodyChunks;if(v)for(i=0;i<v.length;i++)F(t,v[i]);Ui(e,t,r,null),e.completedRootSegment=null,ht(t,e.renderState)}var b=e.renderState;r=0;var y=b.viewportChunks;for(r=0;r<y.length;r++)F(t,y[r]);y.length=0,b.preconnects.forEach(zn,t),b.preconnects.clear(),b.fontPreloads.forEach(zn,t),b.fontPreloads.clear(),b.highImagePreloads.forEach(zn,t),b.highImagePreloads.clear(),b.styles.forEach(jn,t),b.scripts.forEach(zn,t),b.scripts.clear(),b.bulkPreloads.forEach(zn,t),b.bulkPreloads.clear();var x=b.hoistableChunks;for(r=0;r<x.length;r++)F(t,x[r]);x.length=0;var k=e.clientRenderedBoundaries;for(n=0;n<k.length;n++){var w=k[n];b=t;var S=e.resumableState,_=e.renderState,C=w.rootSegmentID,P=w.errorDigest;F(b,_.startInlineScript),4&S.instructions?F(b,fn):(S.instructions|=4,F(b,dn)),F(b,_.boundaryPrefix),F(b,L(C.toString(16))),F(b,pn),P&&(F(b,hn),F(b,L(vn(P||""))));var E=A(b,gn);if(!E)return e.destination=null,n++,void k.splice(0,n)}k.splice(0,n);var R=e.completedBoundaries;for(n=0;n<R.length;n++)if(!Gi(e,t,R[n]))return e.destination=null,n++,void R.splice(0,n);R.splice(0,n),N(t),I=new Uint8Array(2048),O=0;var z=e.partialBoundaries;for(n=0;n<z.length;n++){var T=z[n];e:{k=e,w=t;var M=T.completedSegments;for(E=0;E<M.length;E++)if(!Yi(k,w,T,M[E])){E++,M.splice(0,E);var D=!1;break e}M.splice(0,E),D=Rn(w,T.contentState,k.renderState)}if(!D)return e.destination=null,n++,void z.splice(0,n)}z.splice(0,n);var j=e.completedBoundaries;for(n=0;n<j.length;n++)if(!Gi(e,t,j[n]))return e.destination=null,n++,void j.splice(0,n);j.splice(0,n)}}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length?(e.flushScheduled=!1,(n=e.resumableState).hasBody&&F(t,ft("body")),n.hasHtml&&F(t,ft("html")),N(t),e.status=14,t.close(),e.destination=null):N(t)}}function Ki(e){e.flushScheduled=null!==e.destination,T(function(){return $i(e)}),E(function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&Mi(e,0===e.pendingRootTasks)})}function Qi(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,E(function(){var t=e.destination;t?Xi(e,t):e.flushScheduled=!1}))}function Zi(e,t){if(13===e.status)e.status=14,$(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{Xi(e,t)}catch(n){yi(e,n,{}),xi(e,n)}}}function Ji(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var r=e.abortableTasks;if(0<r.size){var i=void 0===t?Error(n(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(n(530)):t;e.fatalError=i,r.forEach(function(t){return Ai(t,e,i)}),r.clear()}null!==e.destination&&Xi(e,e.destination)}catch(o){yi(e,o,{}),xi(e,o)}}function eo(){var t=e.version;if("19.1.1"!==t)throw Error(n(527,t,"19.1.1"))}return eo(),eo(),Kw.prerender=function(e,t){return new Promise(function(n,r){var i,o=t?t.onHeaders:void 0;o&&(i=function(e){o(new Headers(e))});var a=ye(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=function(e,t,r,i,o,a,l,c,u,d,f){return(e=ui(e,t,r,i,o,a,function(){var e={prelude:new ReadableStream({type:"bytes",pull:function(e){Zi(s,e)},cancel:function(e){s.destination=null,Ji(s,e)}},{highWaterMark:0})};n(e)},void 0,void 0,d,f,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,a,be(a,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),we(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,0,0,0,r,t?t.onPostpone:void 0);if(t&&t.signal){var l=t.signal;if(l.aborted)Ji(s,l.reason);else{var c=function(){Ji(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}}Ki(s)})},Kw.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,o,a,s=new Promise(function(e,t){o=e,i=t}),l=t?t.onHeaders:void 0;l&&(a=function(e){l(new Headers(e))});var c=ye(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=ui(e,c,be(c,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),we(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,function(){var e=new ReadableStream({type:"bytes",pull:function(e){Zi(u,e)},cancel:function(e){u.destination=null,Ji(u,e)}},{highWaterMark:0});e.allReady=s,n(e)},function(e){s.catch(function(){}),r(e)},i,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)Ji(u,d.reason);else{var f=function(){Ji(u,d.reason),d.removeEventListener("abort",f)};d.addEventListener("abort",f)}}Ki(u)})},Kw.version="19.1.1",Kw}function Zw(){return Xw||(Xw=1,e=Gw(),t=Qw(),Uw.version=e.version,Uw.renderToString=e.renderToString,Uw.renderToStaticMarkup=e.renderToStaticMarkup,Uw.renderToReadableStream=t.renderToReadableStream,t.resume&&(Uw.resume=t.resume)),Uw;var e,t}var Jw,eS,tS,nS,rS,iS,oS={exports:{}};function aS(){return eS?Jw:(eS=1,Jw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function sS(){if(nS)return tS;nS=1;var e=aS();function t(){}function n(){}return n.resetWarningCache=t,tS=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}function lS(){return rS||(rS=1,oS.exports=sS()()),oS.exports}function cS(){if(iS)return Bw;iS=1,Object.defineProperty(Bw,"__esModule",{value:!0});var e=m(),n=Ww,r=Vw,i=M(),o=Zw(),a=lS();function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(e),c=s(r),u=s(a),d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var p=f(function(e){var t,n,r,i,o,a,s,l,c,u,f,p,h,g,m;t=d,n=function(e,t,r){if(!l(t)||u(t)||f(t)||p(t)||s(t))return t;var i,o=0,a=0;if(c(t))for(i=[],a=t.length;o<a;o++)i.push(n(e,t[o],r));else for(var d in i={},t)Object.prototype.hasOwnProperty.call(t,d)&&(i[e(d,r)]=n(e,t[d],r));return i},r=function(e){return h(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},i=function(e){var t=r(e);return t.substr(0,1).toUpperCase()+t.substr(1)},o=function(e,t){return(n=e,r=t,i=(r=r||{}).separator||"_",o=r.split||/(?=[A-Z])/,n.split(o).join(i)).toLowerCase();var n,r,i,o},a=Object.prototype.toString,s=function(e){return"function"==typeof e},l=function(e){return e===Object(e)},c=function(e){return"[object Array]"==a.call(e)},u=function(e){return"[object Date]"==a.call(e)},f=function(e){return"[object RegExp]"==a.call(e)},p=function(e){return"[object Boolean]"==a.call(e)},h=function(e){return(e-=0)==e},g=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,r){return n(t,e,r)}},m={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(e,t){return n(g(r,t),e)},decamelizeKeys:function(e,t){return n(g(o,t),e,t)},pascalizeKeys:function(e,t){return n(g(i,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}},e.exports?e.exports=m:t.humps=m}).decamelize,h=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},g=f(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t}),v=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},b=e.createContext(null);function y(e){var t=e.children,n=void 0===t?"":t,r=v(e,["children"]);return"string"!=typeof n&&(n=o.renderToString(n)),l.default.createElement("template",g({},r,{dangerouslySetInnerHTML:{__html:n}}))}function x(e){var t=e.root,n=e.children,r=void 0===n?null:n;return i.createPortal(r,t)}y.propTypes={children:u.default.oneOfType([u.default.string,u.default.node])},x.propTypes={root:u.default.object.isRequired,children:u.default.node};var k=new Map;function w(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{get:function(r,i){var o=p(i,{separator:"-"}),a="".concat(t,"-").concat(o);return k.has(a)||k.set(a,function(t){var n=e.forwardRef(function(n,i){var o,a,s=n.mode,c=void 0===s?"open":s,u=n.delegatesFocus,d=void 0!==u&&u,f=n.styleSheets,p=void 0===f?[]:f,m=n.ssr,k=void 0!==m&&m,w=n.children,S=v(n,["mode","delegatesFocus","styleSheets","ssr","children"]),_=(o=i,a=e.useRef(o&&o.current),e.useEffect(function(){o&&(o.current=a.current)},[o]),a),C=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(n.push(s.value),n.length!==t);i=!0);}catch(r){o=!0,a=r}finally{try{i||null==l.return||l.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.useState(null),2),P=C[0],E=C[1],R="node_".concat(c).concat(d);return e.useLayoutEffect(function(){if(_.current)try{if("function"==typeof i&&i(_.current),k){var e=_.current.shadowRoot;return void E(e)}var t=_.current.attachShadow({mode:c,delegatesFocus:d});p.length>0&&(t.adoptedStyleSheets=p),E(t)}catch(r){!function(e){var t=e.error,n=e.styleSheets,r=e.root;if("NotSupportedError"!==t.name)throw t;n.length>0&&(r.adoptedStyleSheets=n)}({error:r,styleSheets:p,root:P})}},[i,_,p]),l.default.createElement(l.default.Fragment,null,l.default.createElement(t.tag,g({key:R,ref:_},S),(P||k)&&l.default.createElement(b.Provider,{value:P},k?l.default.createElement(y,{shadowroot:c,shadowrootmode:c},t.render({root:P,ssr:k,children:w})):l.default.createElement(x,{root:P},t.render({root:P,ssr:k,children:w})))))});return n.propTypes={mode:u.default.oneOf(["open","closed"]),delegatesFocus:u.default.bool,styleSheets:u.default.arrayOf(u.default.instanceOf(globalThis.CSSStyleSheet)),ssr:u.default.bool,children:u.default.node},n}({tag:o,render:n})),k.get(a)}})}w();var S=new WeakMap,_=w({},"emotion",function(e){var t,r=e.root,i=e.children,o=S.get(r)||(t=c.default({container:r,key:"react-shadow"}),S.set(r,t),t);return l.default.createElement(n.CacheProvider,{value:o},l.default.createElement(l.default.Fragment,null,i))});return Bw.default=_,Bw}const uS=n(cS());function dS(e,t){const n={white:"255, 255, 255",black:"0, 0, 0",transparent:"0, 0, 0"};if(n[e.toLowerCase()])return`rgba(${n[e.toLowerCase()]}, ${t})`;let r=e.replace("#","");return 3===r.length&&(r=r.split("").map(e=>e+e).join("")),6!==r.length?e:`rgba(${parseInt(r.substring(0,2),16)}, ${parseInt(r.substring(2,4),16)}, ${parseInt(r.substring(4,6),16)}, ${t})`}function fS(e,t){if("white"===e.toLowerCase())return e;if("black"===e.toLowerCase()){const e=Math.round(t/100*255);return`rgb(${e}, ${e}, ${e})`}let n=e.replace("#","");if(3===n.length&&(n=n.split("").map(e=>e+e).join("")),6!==n.length)return e;const r=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),o=parseInt(n.substring(4,6),16);return`rgb(${Math.min(255,Math.round(r+t/100*(255-r)))}, ${Math.min(255,Math.round(i+t/100*(255-i)))}, ${Math.min(255,Math.round(o+t/100*(255-o)))})`}function pS(e,t){if("black"===e.toLowerCase())return e;if("white"===e.toLowerCase()){const e=255-Math.round(t/100*255);return`rgb(${e}, ${e}, ${e})`}let n=e.replace("#","");if(3===n.length&&(n=n.split("").map(e=>e+e).join("")),6!==n.length)return e;const r=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),o=parseInt(n.substring(4,6),16);return`rgb(${Math.max(0,Math.round(r*(1-t/100)))}, ${Math.max(0,Math.round(i*(1-t/100)))}, ${Math.max(0,Math.round(o*(1-t/100)))})`}function hS(e,t,n=.5){const r=e=>{if("white"===e.toLowerCase())return[255,255,255];if("black"===e.toLowerCase())return[0,0,0];let t=e.replace("#","");return 3===t.length&&(t=t.split("").map(e=>e+e).join("")),6!==t.length?[0,0,0]:[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)]},[i,o,a]=r(e),[s,l,c]=r(t);return`rgb(${Math.round(i*(1-n)+s*n)}, ${Math.round(o*(1-n)+l*n)}, ${Math.round(a*(1-n)+c*n)})`}const gS=":host",mS=(e,t,n)=>e?.[t]||n,vS=e=>{const t={cssVarsRoot:gS,conditions:{light:`${gS} &, .light &`},preflight:{scope:gS},globalCss:{[gS]:Ng.globalCss?.html??{}},theme:{tokens:{fonts:{heading:{value:"'Estedad-FD', system-ui, sans-serif"},body:{value:"'Estedad-FD', system-ui, sans-serif"}},colors:(()=>{const{primary:t,background:n,text:r,accent:i}=(e=>({primary:mS(e,"primary","#0070f3"),background:mS(e,"background","#f7fafc"),text:mS(e,"textPrimary","#1a202c"),accent:mS(e,"error","#ff383c")}))(e),o=hS(n,r,.05),a=dS(r,.6),s=hS(n,r,.1),l=pS(t,10),c=pS(t,15);return{primary:{value:t},background:{value:n},text:{value:r},error:{value:i},errorBackground:{value:dS(i,.14)},darkPrimary:{value:l},veryDarkPrimary:{value:c},lightBackground:{value:o},veryLightBackground:{value:fS(o,5)},mutedText:{value:a},borderColor:{value:s}}})(),fontWeights:{100:{value:"100"},200:{value:"200"},300:{value:"300"},400:{value:"400"},500:{value:"500"},600:{value:"600"},700:{value:"700"},800:{value:"800"},900:{value:"900"},thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}},spacing:{0:{value:"0px"},.5:{value:"2px"},1:{value:"4px"},1.5:{value:"6px"},2:{value:"8px"},2.5:{value:"10px"},3:{value:"12px"},3.5:{value:"14px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},12:{value:"48px"},14:{value:"56px"},16:{value:"64px"},20:{value:"80px"},24:{value:"96px"},28:{value:"112px"},32:{value:"128px"},36:{value:"144px"},40:{value:"160px"},44:{value:"176px"},48:{value:"192px"},52:{value:"208px"},56:{value:"224px"},60:{value:"240px"},64:{value:"256px"},72:{value:"288px"},80:{value:"320px"},96:{value:"384px"}},fontSizes:{"2xs":{value:"10px"},xs:{value:"12px"},sm:{value:"14px"},md:{value:"16px"},lg:{value:"18px"},xl:{value:"20px"},"2xl":{value:"24px"},"3xl":{value:"30px"},"4xl":{value:"36px"},"5xl":{value:"48px"},"6xl":{value:"60px"},"7xl":{value:"72px"},"8xl":{value:"96px"},"9xl":{value:"128px"}},borderWidths:{0:{value:"0px"},1:{value:"1px"},2:{value:"2px"},4:{value:"4px"},8:{value:"8px"}},radii:{none:{value:"0px"},sm:{value:"2px"},md:{value:"4px"},lg:{value:"8px"},xl:{value:"12px"},"2xl":{value:"16px"},"3xl":{value:"24px"},"4xl":{value:"32px"},full:{value:"9999px"}},lineHeights:{3:{value:"12px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},none:{value:"1"},tight:{value:"1.25"},snug:{value:"1.375"},normal:{value:"1.5"},relaxed:{value:"1.625"},loose:{value:"2"}},sizes:{0:{value:"0px"},.5:{value:"2px"},1:{value:"4px"},1.5:{value:"6px"},2:{value:"8px"},2.5:{value:"10px"},3:{value:"12px"},3.5:{value:"14px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},12:{value:"48px"},14:{value:"56px"},16:{value:"64px"},20:{value:"80px"},24:{value:"96px"},full:{value:"100%"},"3xs":{value:"224px"},"2xs":{value:"256px"},xs:{value:"320px"},sm:{value:"384px"},md:{value:"448px"},lg:{value:"512px"},xl:{value:"576px"},"2xl":{value:"672px"},"3xl":{value:"768px"},"4xl":{value:"896px"},"5xl":{value:"1024px"},"6xl":{value:"1152px"},"7xl":{value:"1280px"},"8xl":{value:"1440px"}}}}};return up(Ng,t)};function bS({children:e}){const{botData:t}=Ac(),n=v.useMemo(()=>vS(t?.theme),[t?.theme]);return f.jsx(Qt,{value:n,children:e})}function yS({children:e}){const[t,n]=v.useState(null),[r,i]=v.useState(null);return v.useEffect(()=>{if(!t?.shadowRoot||r)return;const e=Ve({key:"root",container:t.shadowRoot});i(e)},[t,r]),f.jsx(uS.div,{ref:n,style:{display:"block"},children:t&&r&&f.jsx(td,{value:()=>t.shadowRoot??document,children:f.jsx(wt,{value:r,children:f.jsx(Fc,{children:f.jsx(bS,{children:e})})})})})}vS();class xS extends v.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){Sc(e,{errorInfo:{componentStack:t.componentStack}})}render(){return this.state.hasError?null:this.props.children}}function kS(){const e=document.createElement("div");e.id="mori-react-widget-host";const t=document.querySelector("#dori-widget-container");t?.appendChild(e);const n=L.createRoot(e);return n.render(f.jsx(b.StrictMode,{children:f.jsx(xS,{children:f.jsx(yS,{children:f.jsx($w,{})})})})),()=>{n.unmount()}}export{kS as initializeDoriWidget};