1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function ee(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ne=/\/+/g;function re(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function D(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+re(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(ne,`$&/`)+`/`),D(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=ee(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(ne,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+re(s,l);c+=D(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+re(s,l++),c+=D(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function O(e,t,n){if(e==null)return e;var r=[],i=0;return D(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var k={current:null},ae={transition:null},A={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:ae,ReactCurrentOwner:C};function j(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INT
vendor: 7,457 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,e.act=j,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ae.transition;ae.transition={};try{e()}finally{ae.transition=t}},e.unstable_act=j,e.useCallback=function(e,t){return k.current.useCallback(e,t)},e.useContext=function(e){return k.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return k.current.useDeferredValue(e)},e.useEffect=function(e,t){return k.current.useEffect(e,t)},e.useId=function(){return k.current.useId()},e.useImperativeHandle=function(e,t,n){return k.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return k.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return k.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return k.current.useMemo(e,t)},e.useReducer=function(e,t,n){return k.current.useReducer(e,t,n)},e.useRef=function(e){return k.current.useRef(e)},e.useState=function(e){return k.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return k.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return k.current.useTransition()},e.version=`18.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,O(x);else{var t=n(l);t!==null&&ie(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&ie(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,ee=-1;function E(){return!(e.unstable_now()-ee<T)}function te(){if(C!==null){var t=e.unstable_now();ee=t;var n=!0;try{n=C(!0,t)}finally{n?ne():(S=!1,C=null)}}else S=!1}var ne;if(typeof v==`function`)ne=function(){v(te)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,D=re.port2;re.port1.onmessage=te,ne=function(){D.postMessage(null)}}else ne=function(){g(te,0)};function O(e){C=e,S||(S=!0,ne())}function ie(t,n){w=g(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_continueExecution=function(){m||p||(m=!0,O(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},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_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,ie(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,O(x))),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}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d(),n=p();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;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 i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,f={},m={};function h(e){return l.call(m,e)?!0:l.call(f,e)?!1:u.test(e)?m[e]=!0:(f[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;
vendor: 11,812 bytes, lines 1-5
1if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),ee=Symbol.for(`react.fragment`),E=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),ne=Symbol.for(`react.provider`),re=Symbol.for(`react.context`),D=Symbol.for(`react.forward_ref`),O=Symbol.for(`react.suspense`),ie=Symbol.for(`react.suspense_list`),k=Symbol.for(`react.memo`),ae=Symbol.for(`react.lazy`),A=Symbol.for(`react.offscreen`),j=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var M=Object.assign,se;function N(e){if(se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);se=t&&t[1]||``}return` 2`+se+e}var ce=!1;function le(e,t){if(!e||ce)return``;ce=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(` 3`),a=r.stack.split(` 4`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=` 5`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{ce=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?N(e):``}function ue(e){switch(e.tag){case 5:return N(e.type);case 16:return N(`Lazy`);case 13:return N(`Suspense`);case 19:return N(`SuspenseList`);case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return``}}function de(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ee:return`Fragment`;case T:return`Portal`;case te:return`Profiler`;case E:return`StrictMode`;case O:return`Suspense`;case ie:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case re:return(e.displayName||`Context`)+`.Consumer`;case ne:return(e._context.displayName||`Context`)+`.Provider`;case D:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case k:return t=e.displayName||null,t===null?de(e.type)||`Memo`:t;case ae:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}function fe(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return de(t);case 8:return t===E?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function pe(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function me(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function he(e){var t=me(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.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]}}}}function ge(e){e._valueTracker||=he(e)}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=me(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function ve(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ye(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function be(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=pe(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function xe(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function Se(e,t){xe(e,t);var n=pe(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?we(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&we(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function we(e,t,n){(t!==`number`||ve(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Te=Array.isArray;function Ee(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=``+pe(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function De(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return M({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Oe(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(Te(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:pe(n)}}function ke(e,t){var n=pe(t.value),r=pe(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function je(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Me(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?je(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Ne,Pe=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Ne||=document.createElement(`div`),Ne.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Ne.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fe(e,t){if(t){var n=e.firstChild;
vendor: 2,302 bytes, line 5
5if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ie={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Le=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Ie).forEach(function(e){Le.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ie[t]=Ie[e]})});function Re(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Ie.hasOwnProperty(e)&&Ie[e]?(``+t).trim():t+`px`}function ze(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Re(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Be=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ve(e,t){if(t){if(Be[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function He(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Ue=null;function We(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ge=null,Ke=null,qe=null;function Je(e){if(e=Ui(e)){if(typeof Ge!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Gi(t),Ge(e.stateNode,e.type,t))}}function Ye(e){Ke?qe?qe.push(e):qe=[e]:Ke=e}
vendor: 9,445 bytes, line 5
5function Xe(){if(Ke){var e=Ke,t=qe;if(qe=Ke=null,Je(e),t)for(e=0;e<t.length;e++)Je(t[e])}}function Ze(e,t){return e(t)}function Qe(){}var $e=!1;function et(e,t,n){if($e)return e(t,n);$e=!0;try{return Ze(e,t,n)}finally{$e=!1,(Ke!==null||qe!==null)&&(Qe(),Xe())}}function tt(e,t){var n=e.stateNode;if(n===null)return null;var i=Gi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var nt=!1;if(c)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener(`test`,rt,rt),window.removeEventListener(`test`,rt,rt)}catch{nt=!1}function it(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var at=!1,ot=null,st=!1,ct=null,lt={onError:function(e){at=!0,ot=e}};function ut(e,t,n,r,i,a,o,s,c){at=!1,ot=null,it.apply(lt,arguments)}function dt(e,t,n,i,a,o,s,c,l){if(ut.apply(this,arguments),at){if(at){var u=ot;at=!1,ot=null}else throw Error(r(198));st||(st=!0,ct=u)}}function ft(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function pt(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function mt(e){if(ft(e)!==e)throw Error(r(188))}function ht(e){var t=e.alternate;if(!t){if(t=ft(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return mt(a),e;if(o===i)return mt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function gt(e){return e=ht(e),e===null?null:_t(e)}function _t(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_t(e);if(t!==null)return t;e=e.sibling}return null}var vt=n.unstable_scheduleCallback,yt=n.unstable_cancelCallback,bt=n.unstable_shouldYield,xt=n.unstable_requestPaint,St=n.unstable_now,Ct=n.unstable_getCurrentPriorityLevel,wt=n.unstable_ImmediatePriority,Tt=n.unstable_UserBlockingPriority,Et=n.unstable_NormalPriority,Dt=n.unstable_LowPriority,Ot=n.unstable_IdlePriority,kt=null,At=null;function jt(e){if(At&&typeof At.onCommitFiberRoot==`function`)try{At.onCommitFiberRoot(kt,e,void 0,(e.current.flags&128)==128)}catch{}}var Mt=Math.clz32?Math.clz32:Ft,Nt=Math.log,Pt=Math.LN2;function Ft(e){return e>>>=0,e===0?32:31-(Nt(e)/Pt|0)|0}var It=64,Lt=4194304;function Rt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Rt(a))):r=Rt(s)}else o=n&~i,o===0?a!==0&&(r=Rt(a)):r=Rt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mt(t),i=1<<n,r|=e[n],t&=~i;return r}function Bt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Mt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Bt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Ht(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Ut(){var e=It;return It<<=1,!(It&4194240)&&(It=64),e}function Wt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Gt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function Kt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Mt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function qt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var P=0;function Jt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Yt,Xt,Zt,Qt,$t,en=!1,tn=[],F=null,nn=null,rn=null,an=new Map,on=new Map,sn=[],cn=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function ln(e,t){switch(e){case`focusin`:case`focusout`:F=null;break;case`dragenter`:case`dragleave`:nn=null;break;case`mouseover`:case`mouseout`:rn=null;break;case`pointerover`:case`pointerout`:an.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:on.delete(t.pointerId)}}function un(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ui(t),t!==null&&Xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function dn(e,t,n,r,i){switch(t){case`focusin`:return F=un(F,e,t,n,r,i),!0;case`dragenter`:return nn=un(nn,e,t,n,r,i),!0;case`mouseover`:return rn=un(rn,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return an.set(a,un(an.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,on.set(a,un(on.get(a)||null,e,t,n,r,i)),!0}return!1}function fn(e){var t=Hi(e.target);if(t!==null){var n=ft(t);if(n!==null){if(t=n.tag,t===13){if(t=pt(n),t!==null){e.blockedOn=t,$t(e.priority,function(){Zt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ue=r,n.target.dispatchEvent(r),Ue=null}else return t=Ui(n),t!==null&&Xt(t),e.blockedOn=n,!1;t.shift()}return!0}function mn(e,t,n){pn(e)&&n.delete(t)}function hn(){en=!1,F!==null&&pn(F)&&(F=null),nn!==null&&pn(nn)&&(nn=null),rn!==null&&pn(rn)&&(rn=null),an.forEach(mn),on.forEach(mn)}function gn(e,t){e.blockedOn===t&&(e.blockedOn=null,en||(en=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,hn)))}function _n(e){function t(t){return gn(t,e)}if(0<tn.length){gn(tn[0],e);for(var n=1;n<tn.length;n++){var r=tn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(F!==null&&gn(F,e),nn!==null&&gn(nn,e),rn!==null&&gn(rn,e),an.forEach(t),on.forEach(t),n=0;n<sn.length;n++)r=sn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<sn.length&&(n=sn[0],n.blockedOn===null);)fn(n),n.blockedOn===null&&sn.shift()}var vn=C.ReactCurrentBatchConfig,yn=!0;function bn(e,t,n,r){var i=P,a=vn.transition;vn.transition=null;try{P=1,Sn(e,t,n,r)}finally{P=i,vn.transition=a}}function xn(e,t,n,r){var i=P,a=vn.transition;vn.transition=null;try{P=4,Sn(e,t,n,r)}finally{P=i,vn.transition=a}}function Sn(e,t,n,r){if(yn){var i=wn(e,t,n,r);if(i===null)mi(e,t,r,Cn,n),ln(e,r);else if(dn(i,e,t,n,r))r.stopPropagation();else if(ln(e,r),t&4&&-1<cn.indexOf(e)){for(;i!==null;){var a=Ui(i);if(a!==null&&Yt(a),a=wn(e,t,n,r),a===null&&mi(e,t,r,Cn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else mi(e,t,r,null,n)}}var Cn=null;function wn(e,t,n,r){if(Cn=null,e=We(r),e=Hi(e),e!==null)if(t=ft(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pt(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Cn=e,null}function Tn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`
vendor: 8,686 bytes, line 5
5:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(Ct()){case wt:return 1;case Tt:return 4;case Et:case Dt:return 16;case Ot:return 536870912;default:return 16}default:return 16}}var En=null,Dn=null,On=null;function kn(){if(On)return On;var e,t=Dn,n=t.length,r,i=`value`in En?En.value:En.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return On=i.slice(e,1<r?1-r:void 0)}function An(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jn(){return!0}function Mn(){return!1}function Nn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?jn:Mn,this.isPropagationStopped=Mn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=jn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=jn)},persist:function(){},isPersistent:jn}),t}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fn=Nn(Pn),In=M({},Pn,{view:0,detail:0}),Ln=Nn(In),Rn,zn,Bn,Vn=M({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Bn&&(Bn&&e.type===`mousemove`?(Rn=e.screenX-Bn.screenX,zn=e.screenY-Bn.screenY):zn=Rn=0,Bn=e),Rn)},movementY:function(e){return`movementY`in e?e.movementY:zn}}),Hn=Nn(Vn),Un=Nn(M({},Vn,{dataTransfer:0})),Wn=Nn(M({},In,{relatedTarget:0})),Gn=Nn(M({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0})),Kn=Nn(M({},Pn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),qn=Nn(M({},Pn,{data:0})),Jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Yn={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`},Xn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Zn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xn[e])?!!t[e]:!1}function Qn(){return Zn}var $n=Nn(M({},In,{key:function(e){if(e.key){var t=Jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=An(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Yn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qn,charCode:function(e){return e.type===`keypress`?An(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?An(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),er=Nn(M({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),tr=Nn(M({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qn})),nr=Nn(M({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),rr=Nn(M({},Vn,{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})),ir=[9,13,27,32],ar=c&&`CompositionEvent`in window,or=null;c&&`documentMode`in document&&(or=document.documentMode);var sr=c&&`TextEvent`in window&&!or,cr=c&&(!ar||or&&8<or&&11>=or),lr=` `,ur=!1;function I(e,t){switch(e){case`keyup`:return ir.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function dr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var fr=!1;function pr(e,t){switch(e){case`compositionend`:return dr(t);case`keypress`:return t.which===32?(ur=!0,lr):null;case`textInput`:return e=t.data,e===lr&&ur?null:e;default:return null}}function mr(e,t){if(fr)return e===`compositionend`||!ar&&I(e,t)?(e=kn(),On=Dn=En=null,fr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return cr&&t.locale!==`ko`?null:t.data;default:return null}}var hr={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 gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!hr[e.type]:t===`textarea`}function _r(e,t,n,r){Ye(r),t=gi(t,`onChange`),0<t.length&&(n=new Fn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var vr=null,yr=null;function br(e){li(e,0)}function L(e){if(_e(Wi(e)))return e}function xr(e,t){if(e===`change`)return t}var Sr=!1;if(c){var Cr;if(c){var wr=`oninput`in document;if(!wr){var Tr=document.createElement(`div`);Tr.setAttribute(`oninput`,`return;`),wr=typeof Tr.oninput==`function`}Cr=wr}else Cr=!1;Sr=Cr&&(!document.documentMode||9<document.documentMode)}function Er(){vr&&(vr.detachEvent(`onpropertychange`,Dr),yr=vr=null)}function Dr(e){if(e.propertyName===`value`&&L(yr)){var t=[];_r(t,yr,e,We(e)),et(br,t)}}function R(e,t,n){e===`focusin`?(Er(),vr=t,yr=n,vr.attachEvent(`onpropertychange`,Dr)):e===`focusout`&&Er()}function Or(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return L(yr)}function kr(e,t){if(e===`click`)return L(t)}function Ar(e,t){if(e===`input`||e===`change`)return L(t)}function jr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Mr=typeof Object.is==`function`?Object.is:jr;function Nr(e,t){if(Mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Mr(e[i],t[i]))return!1}return!0}function Pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fr(e,t){var n=Pr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Pr(n)}}function Ir(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ir(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lr(){for(var e=window,t=ve();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=ve(e.document)}return t}function Rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function zr(e){var t=Lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ir(n.ownerDocument.documentElement,n)){if(r!==null&&Rr(n)){if
vendor: 88,665 bytes, lines 5-8
5(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Fr(n,a);var o=Fr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Br=c&&`documentMode`in document&&11>=document.documentMode,Vr=null,Hr=null,Ur=null,Wr=!1;function Gr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wr||Vr==null||Vr!==ve(r)||(r=Vr,`selectionStart`in r&&Rr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ur&&Nr(Ur,r)||(Ur=r,r=gi(Hr,`onSelect`),0<r.length&&(t=new Fn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Vr)))}function Kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var qr={animationend:Kr(`Animation`,`AnimationEnd`),animationiteration:Kr(`Animation`,`AnimationIteration`),animationstart:Kr(`Animation`,`AnimationStart`),transitionend:Kr(`Transition`,`TransitionEnd`)},Jr={},Yr={};c&&(Yr=document.createElement(`div`).style,`AnimationEvent`in window||(delete qr.animationend.animation,delete qr.animationiteration.animation,delete qr.animationstart.animation),`TransitionEvent`in window||delete qr.transitionend.transition);function Xr(e){if(Jr[e])return Jr[e];if(!qr[e])return e;var t=qr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yr)return Jr[e]=t[n];return e}var Zr=Xr(`animationend`),Qr=Xr(`animationiteration`),$r=Xr(`animationstart`),ei=Xr(`transitionend`),ti=new Map,ni=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function ri(e,t){ti.set(e,t),o(t,[e])}for(var ii=0;ii<ni.length;ii++){var ai=ni[ii];ri(ai.toLowerCase(),`on`+(ai[0].toUpperCase()+ai.slice(1)))}ri(Zr,`onAnimationEnd`),ri(Qr,`onAnimationIteration`),ri($r,`onAnimationStart`),ri(`dblclick`,`onDoubleClick`),ri(`focusin`,`onFocus`),ri(`focusout`,`onBlur`),ri(ei,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var oi=`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(` `),si=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(oi));function ci(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,dt(r,t,void 0,e),e.currentTarget=null}function li(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ci(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ci(i,s,l),a=c}}}if(st)throw e=ct,st=!1,ct=null,e}function z(e,t){var n=t[zi];n===void 0&&(n=t[zi]=new Set);var r=e+`__bubble`;n.has(r)||(pi(t,e,2,!1),n.add(r))}function ui(e,t,n){var r=0;t&&(r|=4),pi(n,e,r,t)}var di=`_reactListening`+Math.random().toString(36).slice(2);function fi(e){if(!e[di]){e[di]=!0,i.forEach(function(t){t!==`selectionchange`&&(si.has(t)||ui(t,!1,e),ui(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[di]||(t[di]=!0,ui(`selectionchange`,!1,t))}}function pi(e,t,n,r){switch(Tn(t)){case 1:var i=bn;break;case 4:i=xn;break;default:i=Sn}n=i.bind(null,t,n,e),i=void 0,!nt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function mi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Hi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}et(function(){var r=a,i=We(n),o=[];a:{var s=ti.get(e);if(s!==void 0){var c=Fn,l=e;switch(e){case`keypress`:if(An(n)===0)break a;case`keydown`:case`keyup`:c=$n;break;case`focusin`:l=`focus`,c=Wn;break;case`focusout`:l=`blur`,c=Wn;break;case`beforeblur`:case`afterblur`:c=Wn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Hn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Un;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=tr;break;case Zr:case Qr:case $r:c=Gn;break;case ei:c=nr;break;case`scroll`:c=Ln;break;case`wheel`:c=rr;break;case`copy`:case`cut`:case`paste`:c=Kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=er}var u=!!(t&4),d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=tt(p,f),h!=null&&u.push(hi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Ue&&(l=n.relatedTarget||n.fromElement)&&(Hi(l)||l[Ri]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Hi(l):null,l!==null&&(d=ft(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Hn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=er,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Wi(c),m=l==null?s:Wi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Hi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=_i(m))p++;for(m=0,h=f;h;h=_i(h))m++;for(;0<p-m;)u=_i(u),p--;for(;0<m-p;)f=_i(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=_i(u),f=_i(f)}u=null}else u=null;c!==null&&vi(o,s,c,u,!1),l!==null&&d!==null&&vi(o,d,l,u,!0)}}a:{if(s=r?Wi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=xr;else if(gr(s))if(Sr)g=Ar;else{g=Or;var _=R}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=kr);if(g&&=g(e,r)){_r(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&we(s,`number`,s.value)}switch(_=r?Wi(r):window,e){case`focusin`:(gr(_)||_.contentEditable===`true`)&&(Vr=_,Hr=r,Ur=null);break;case`focusout`:Ur=Hr=Vr=null;break;case`mousedown`:Wr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Wr=!1,Gr(o,n,i);break;case`selectionchange`:if(Br)break;case`keydown`:case`keyup`:Gr(o,n,i)}var v;if(ar)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else fr?I(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(cr&&n.locale!==`ko`&&(fr||y!==`onCompositionStart`?y===`onCompositionEnd`&&fr&&(v=kn()):(En=i,Dn=`value`in En?En.value:En.textContent,fr=!0)),_=gi(r,y),0<_.length&&(y=new qn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=dr(n),v!==null&&(y.data=v)))),(v=sr?pr(e,n):mr(e,n))&&(r=gi(r,`onBeforeInput`),0<r.length&&(i=new qn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}li(o,t)})}function hi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function gi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=tt(e,n),a!=null&&r.unshift(hi(e,a,i)),a=tt(e,t),a!=null&&r.push(hi(e,a,i))),e=e.return}return r}function _i(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=tt(n,a),c!=null&&o.unshift(hi(n,c,s))):i||(c=tt(n,a),c!=null&&o.push(hi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var yi=/\r\n?/g,bi=/\u0000|\uFFFD/g;function xi(e){return(typeof e==`string`?e:``+e).replace(yi,` 6`).replace(bi,``)}function Si(e,t,n){if(t=xi(t),xi(e)!==t&&n)throw Error(r(425))}function Ci(){}var wi=null,Ti=null;function Ei(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Di=typeof setTimeout==`function`?setTimeout:void 0,Oi=typeof clearTimeout==`function`?clearTimeout:void 0,ki=typeof Promise==`function`?Promise:void 0,Ai=typeof queueMicrotask==`function`?queueMicrotask:ki===void 0?Di:function(e){return ki.resolve(null).then(e).catch(ji)};function ji(e){setTimeout(function(){throw e})}function Mi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),_n(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);_n(t)}function Ni(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Pi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Fi=Math.random().toString(36).slice(2),Ii=`__reactFiber$`+Fi,Li=`__reactProps$`+Fi,Ri=`__reactContainer$`+Fi,zi=`__reactEvents$`+Fi,Bi=`__reactListeners$`+Fi,Vi=`__reactHandles$`+Fi;function Hi(e){var t=e[Ii];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ri]||n[Ii]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pi(e);e!==null;){if(n=e[Ii])return n;e=Pi(e)}return t}e=n,n=e.parentNode}return null}function Ui(e){return e=e[Ii]||e[Ri],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Gi(e){return e[Li]||null}var Ki=[],qi=-1;function Ji(e){return{current:e}}function B(e){0>qi||(e.current=Ki[qi],Ki[qi]=null,qi--)}function V(e,t){qi++,Ki[qi]=e.current,e.current=t}var Yi={},Xi=Ji(Yi),Zi=Ji(!1),Qi=Yi;function $i(e,t){var n=e.type.contextTypes;if(!n)return Yi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ea(e){return e=e.childContextTypes,e!=null}function ta(){B(Zi),B(Xi)}function na(e,t,n){if(Xi.current!==Yi)throw Error(r(168));V(Xi,t),V(Zi,n)}function ra(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,fe(e)||`Unknown`,a));return M({},n,i)}function ia(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yi,Qi=Xi.current,V(Xi,e),V(Zi,Zi.current),!0}function aa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ra(e,t,Qi),i.__reactInternalMemoizedMergedChildContext=e,B(Zi),B(Xi),V(Xi,e)):B(Zi),V(Zi,n)}var oa=null,sa=!1,ca=!1;function la(e){oa===null?oa=[e]:oa.push(e)}function ua(e){sa=!0,la(e)}function da(){if(!ca&&oa!==null){ca=!0;var e=0,t=P;try{var n=oa;for(P=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}oa=null,sa=!1}catch(t){throw oa!==null&&(oa=oa.slice(e+1)),vt(wt,da),t}finally{P=t,ca=!1}}return null}var fa=[],pa=0,ma=null,ha=0,ga=[],_a=0,va=null,ya=1,ba=``;function xa(e,t){fa[pa++]=ha,fa[pa++]=ma,ma=e,ha=t}function Sa(e,t,n){ga[_a++]=ya,ga[_a++]=ba,ga[_a++]=va,va=e;var r=ya;e=ba;var i=32-Mt(r)-1;r&=~(1<<i),n+=1;var a=32-Mt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ya=1<<32-Mt(t)+i|n<<i|r,ba=a+e}else ya=1<<a|n<<i|r,ba=e}function Ca(e){e.return!==null&&(xa(e,1),Sa(e,1,0))}function wa(e){for(;e===ma;)ma=fa[--pa],fa[pa]=null,ha=fa[--pa],fa[pa]=null;for(;e===va;)va=ga[--_a],ga[_a]=null,ba=ga[--_a],ga[_a]=null,ya=ga[--_a],ga[_a]=null}var Ta=null,Ea=null,H=!1,U=null;function Da(e,t){var n=Yl(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Oa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null&&(e.stateNode=t,Ta=e,Ea=Ni(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t!==null&&(e.stateNode=t,Ta=e,Ea=null,!0);case 13:return t=t.nodeType===8?t:null,t!==null&&(n=va===null?null:{id:ya,overflow:ba},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Yl(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ta=e,Ea=null,!0);default:return!1}}function ka(e){return!!(e.mode&1)&&!(e.flags&128)}function Aa(e){if(H){var t=Ea;if(t){var n=t;if(!Oa(e,t)){if(ka(e))throw Error(r(418));t=Ni(n.nextSibling);var i=Ta;t&&Oa(e,t)?Da(i,n):(e.flags=e.flags&-4097|2,H=!1,Ta=e)}}else{if(ka(e))throw Error(r(418));e.flags=e.flags&-4097|2,H=!1,Ta=e}}}function ja(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ta=e}function Ma(e){if(e!==Ta)return!1;if(!H)return ja(e),H=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Ei(e.type,e.memoizedProps)),t&&=Ea){if(ka(e))throw Na(),Error(r(418));for(;t;)Da(e,t),t=Ni(t.nextSibling)}if(ja(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Ea=Ni(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Ea=null}}else Ea=Ta?Ni(e.stateNode.nextSibling):null;return!0}function Na(){for(var e=Ea;e;)e=Ni(e.nextSibling)}function Pa(){Ea=Ta=null,H=!1}function Fa(e){U===null?U=[e]:U.push(e)}var Ia=C.ReactCurrentBatchConfig;function La(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Ra(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function za(e){var t=e._init;return t(e._payload)}function Ba(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=Ql(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=nu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ee?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ae&&za(i)===t.type)?(r=a(t,n.props),r.ref=La(e,t,n),r.return=e,r):(r=$l(n.type,n.key,n.props,null,e.mode,r),r.ref=La(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ru(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=eu(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=nu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=$l(t.type,t.key,t.props,null,e.mode,n),n.ref=La(e,null,t),n.return=e,n;case T:return t=ru(t,e.mode,n),t.return=e,t;case ae:var r=t._init;return f(e,r(t._payload),n)}if(Te(t)||oe(t))return t=eu(t,e.mode,n,null),t.return=e,t;Ra(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case ae:return i=n._init,p(e,t,i(n._payload),r)}if(Te(n)||oe(n))return i===null?d(e,t,n,r,null):null;Ra(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ae:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Te(r)||oe(r))return e=e.get(n)||null,d(t,e,r,i,null);Ra(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),H&&xa(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return H&&xa(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),H&&xa(r,h),l}function g(a,s,c,l){var u=oe(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),H&&xa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return H&&xa(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),H&&xa(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===ee&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===ee){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===ae&&za(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=La(e,l,i),r.return=e,e=r;break a}n(e,l);break}t(e,l),l=l.sibling}i.type===ee?(r=eu(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=$l(i.type,i.key,i.props,null,e.mode,o),o.ref=La(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}t(e,r),r=r.sibling}r=ru(i,e.mode,o),r.return=e,e=r}return s(e);case ae:return l=i._init,_(e,r,l(i._payload),o)}if(Te(i))return h(e,r,i,o);if(oe(i))return g(e,r,i,o);Ra(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=nu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Va=Ba(!0),Ha=Ba(!1),Ua=Ji(null),Wa=null,Ga=null,Ka=null;function qa(){Ka=Ga=Wa=null}function Ja(e){var t=Ua.current;B(Ua),e._currentValue=t}function Ya(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Xa(e,t){Wa=e,Ka=Ga=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(zs=!0),e.firstContext=null)}function Za(e){var t=e._currentValue;if(Ka!==e)if(e={context:e,memoizedValue:t,next:null},Ga===null){if(Wa===null)throw Error(r(308));Ga=e,Wa.dependencies={lanes:0,firstContext:e}}else Ga=Ga.next=e;return t}var Qa=null;function $a(e){Qa===null?Qa=[e]:Qa.push(e)}function eo(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,$a(t)):(n.next=i.next,i.next=n),t.interleaved=n,to(e,r)}function to(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,to(e,n)}return i=r.interleaved,i===null?(t.next=t,$a(r)):(t.next=i.next,i.next=t),r.interleaved=t,to(e,n)}function so(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qt(e,n)}}function co(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function lo(e,t,n,r){var i=e.updateQueue;no=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=M({},d,f);break a;case 2:no=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Y|=o,e.lanes=o,e.memoizedState=d}}function uo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var fo={},po=Ji(fo),mo=Ji(fo),ho=Ji(fo);function go(e){if(e===fo)throw Error(r(174));return e}function _o(e,t){switch(V(ho,t),V(mo,e),V(po,fo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Me(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Me(t,e)}B(po),V(po,t)}function vo(){B(po),B(mo),B(ho)}function yo(e){go(ho.current);var t=go(po.current),n=Me(t,e.type);t!==n&&(V(mo,e),V(po,n))}function bo(e){mo.current===e&&(B(po),B(mo))}var W=Ji(0);function xo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var So=[];function Co(){for(var e=0;e<So.length;e++)So[e]._workInProgressVersionPrimary=null;So.length=0}var wo=C.ReactCurrentDispatcher,To=C.ReactCurrentBatchConfig,Eo=0,Do=null,Oo=null,ko=null,Ao=!1,jo=!1,Mo=0,No=0;function Po(){throw Error(r(321))}function Fo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}function Io(e,t,n,i,a,o){if(Eo=o,Do=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wo.current=e===null||e.memoizedState===null?ys:bs,e=n(i,a),jo){o=0;do{if(jo=!1,Mo=0,25<=o)throw Error(r(301));o+=1,ko=Oo=null,t.updateQueue=null,wo.current=xs,e=n(i,a)}while(jo)}if(wo.current=vs,t=Oo!==null&&Oo.next!==null,Eo=0,ko=Oo=Do=null,Ao=!1,t)throw Error(r(300));return e}function Lo(){var e=Mo!==0;return Mo=0,e}function Ro(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ko===null?Do.memoizedState=ko=e:ko=ko.next=e,ko}function zo(){if(Oo===null){var e=Do.alternate;e=e===null?null:e.memoizedState}else e=Oo.next;var t=ko===null?Do.memoizedState:ko.next;if(t!==null)ko=t,Oo=e;else{if(e===null)throw Error(r(310));Oo=e,e={memoizedState:Oo.memoizedState,baseState:Oo.baseState,baseQueue:Oo.baseQueue,queue:Oo.queue,next:null},ko===null?Do.memoizedState=ko=e:ko=ko.next=e}return ko}function Bo(e,t){return typeof t==`function`?t(e):t}function Vo(e){var t=zo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Oo,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Eo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,Do.lanes|=d,Y|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Mr(i,t.memoizedState)||(zs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,Do.lanes|=o,Y|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ho(e){var t=zo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Mr(o,t.memoizedState)||(zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Uo(){}function Wo(e,t){var n=Do,i=zo(),a=t(),o=!Mr(i.memoizedState,a);if(o&&(i.memoizedState=a,zs=!0),i=i.queue,ns(qo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||ko!==null&&ko.memoizedState.tag&1){if(n.flags|=2048,Zo(9,Ko.bind(null,n,i,a,t),void 0,null),qc===null)throw Error(r(349));Eo&30||Go(n,t,a)}return a}function Go(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Do.updateQueue,t===null?(t={lastEffect:null,stores:null},Do.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ko(e,t,n,r){t.value=n,t.getSnapshot=r,Jo(t)&&Yo(e)}function qo(e,t,n){return n(function(){Jo(t)&&Yo(e)})}function Jo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mr(e,n)}catch{return!0}}function Yo(e){var t=to(e,1);t!==null&&vl(t,e,1,-1)}function Xo(e){var t=Ro();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:e},t.queue=e,e=e.dispatch=ms.bind(null,Do,e),[t.memoizedState,e]}function Zo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Do.updateQueue,t===null?(t={lastEffect:null,stores:null},Do.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Qo(){return zo().memoizedState}function $o(e,t,n,r){var i=Ro();Do.flags|=e,i.memoizedState=Zo(1|t,n,void 0,r===void 0?null:r)}function es(e,t,n,r){var i=zo();r=r===void 0?null:r;var a=void 0;if(Oo!==null){var o=Oo.memoizedState;if(a=o.destroy,r!==null&&Fo(r,o.deps)){i.memoizedState=Zo(t,n,a,r);return}}Do.flags|=e,i.memoizedState=Zo(1|t,n,a,r)}function ts(e,t){return $o(8390656,8,e,t)}function ns(e,t){return es(2048,8,e,t)}function rs(e,t){return es(4,2,e,t)}function is(e,t){return es(4,4,e,t)}function as(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function os(e,t,n){return n=n==null?null:n.concat([e]),es(4,4,as.bind(null,t,e),n)}function ss(){}function cs(e,t){var n=zo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ls(e,t){var n=zo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function us(e,t,n){return Eo&21?(Mr(n,t)||(n=Ut(),Do.lanes|=n,Y|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,zs=!0),e.memoizedState=n)}function ds(e,t){var n=P;P=n!==0&&4>n?n:4,e(!0);var r=To.transition;To.transition={};try{e(!1),t()}finally{P=n,To.transition=r}}function fs(){return zo().memoizedState}function ps(e,t,n){var r=_l(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e))gs(t,n);else if(n=eo(e,t,n,r),n!==null){var i=gl();vl(n,e,r,i),_s(n,t,r)}}function ms(e,t,n){var r=_l(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))gs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Mr(s,o)){var c=t.interleaved;c===null?(i.next=i,$a(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=eo(e,t,i,r),n!==null&&(i=gl(),vl(n,e,r,i),_s(n,t,r))}}function hs(e){var t=e.alternate;return e===Do||t!==null&&t===Do}function gs(e,t){jo=Ao=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _s(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qt(e,n)}}var vs={readContext:Za,useCallback:Po,useContext:Po,useEffect:Po,useImperativeHandle:Po,useInsertionEffect:Po,useLayoutEffect:Po,useMemo:Po,useReducer:Po,useRef:Po,useState:Po,useDebugValue:Po,useDeferredValue:Po,useTransition:Po,useMutableSource:Po,useSyncExternalStore:Po,useId:Po,unstable_isNewReconciler:!1},ys={readContext:Za,useCallback:function(e,t){return Ro().memoizedState=[e,t===void 0?null:t],e},useContext:Za,useEffect:ts,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),$o(4194308,4,as.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $o(4194308,4,e,t)},useInsertionEffect:function(e,t){return $o(4,2,e,t)},useMemo:function(e,t){var n=Ro();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ro();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ps.bind(null,Do,e),[r.memoizedState,e]},useRef:function(e){var t=Ro();return e={current:e},t.memoizedState=e},useState:Xo,useDebugValue:ss,useDeferredValue:function(e){return Ro().memoizedState=e},useTransition:function(){var e=Xo(!1),t=e[0];return e=ds.bind(null,e[1]),Ro().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Do,a=Ro();if(H){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),qc===null)throw Error(r(349));Eo&30||Go(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ts(qo.bind(null,i,o,e),[e]),i.flags|=2048,Zo(9,Ko.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Ro(),t=qc.identifierPrefix;if(H){var n=ba,r=ya;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Mo++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=No++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},bs={readContext:Za,useCallback:cs,useContext:Za,useEffect:ns,useImperativeHandle:os,useInsertionEffect:rs,useLayoutEffect:is,useMemo:ls,useReducer:Vo,useRef:Qo,useState:function(){return Vo(Bo)},useDebugValue:ss,useDeferredValue:function(e){return us(zo(),Oo.memoizedState,e)},useTransition:function(){return[Vo(Bo)[0],zo().memoizedState]},useMutableSource:Uo,useSyncExternalStore:Wo,useId:fs,unstable_isNewReconciler:!1},xs={readContext:Za,useCallback:cs,useContext:Za,useEffect:ns,useImperativeHandle:os,useInsertionEffect:rs,useLayoutEffect:is,useMemo:ls,useReducer:Ho,useRef:Qo,useState:function(){return Ho(Bo)},useDebugValue:ss,useDeferredValue:function(e){var t=zo();return Oo===null?t.memoizedState=e:us(t,Oo.memoizedState,e)},useTransition:function(){return[Ho(Bo)[0],zo().memoizedState]},useMutableSource:Uo,useSyncExternalStore:Wo,useId:fs,unstable_isNewReconciler:!1};function Ss(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Cs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:M({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ws={isMounted:function(e){return(e=e._reactInternals)?ft(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gl(),i=_l(e),a=ao(r,i);a.payload=t,n!=null&&(a.callback=n),t=oo(e,a,i),t!==null&&(vl(t,e,i,r),so(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gl(),i=_l(e),a=ao(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=oo(e,a,i),t!==null&&(vl(t,e,i,r),so(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gl(),r=_l(e),i=ao(n,r);i.tag=2,t!=null&&(i.callback=t),t=oo(e,i,r),t!==null&&(vl(t,e,r,n),so(t,e,r))}};function Ts(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Nr(n,r)||!Nr(i,a):!0}function Es(e,t,n){var r=!1,i=Yi,a=t.contextType;return typeof a==`object`&&a?a=Za(a):(i=ea(t)?Qi:Xi.current,r=t.contextTypes,a=(r=r!=null)?$i(e,i):Yi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ws,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ds(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ws.enqueueReplaceState(t,t.state,null)}function Os(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ro(e);var a=t.contextType;typeof a==`object`&&a?i.context=Za(a):(a=ea(t)?Qi:Xi.current,i.context=$i(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Cs(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&ws.enqueueReplaceState(i,i.state,null),lo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function ks(e,t){try{var n=``,r=t;do n+=ue(r),r=r.return;while(r);var i=n}catch(e){i=` 7Error generating stack: `+e.message+` 8`+e.stack}return{value:e,source:t,stack:i,digest:null}}function As(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function js(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ms=typeof WeakMap==`function`?WeakMap:Map;function Ns(e,t,n){n=ao(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ol||(ol=!0,sl=r),js(e,t)},n}function Ps(e,t,n){n=ao(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){js(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){js(e,t),typeof r!=`function`&&(cl===null?cl=new Set([this]):cl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Fs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ms;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Hl.bind(null,e,t,n),t.then(e,e))}function Is(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Ls(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ao(-1,1),t.tag=2,oo(n,t,1))),n.lanes|=1),e)}var Rs=C.ReactCurrentOwner,zs=!1;function Bs(e,t,n,r){t.child=e===null?Ha(t,null,n,r):Va(t,e.child,n,r)}function Vs(e,t,n,r,i){n=n.render;var a=t.ref;return Xa(t,i),r=Io(e,t,n,r,a,i),n=Lo(),e!==null&&!zs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sc(e,t,i)):(H&&n&&Ca(t),t.flags|=1,Bs(e,t,r,i),t.child)}function Hs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Xl(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Us(e,t,a,r,i)):(e=$l(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Nr:n,n(o,r)&&e.ref===t.ref)return sc(e,t,i)}return t.flags|=1,e=Ql(a,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Nr(a,r)&&e.ref===t.ref)if(zs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(zs=!0);else return t.lanes=e.lanes,sc(e,t,i)}return Ks(e,t,n,r,i)}function Ws(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},V(Xc,J),J|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,V(Xc,J),J|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,V(Xc,J),J|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),V(Xc,J),J|=r;return Bs(e,t,i,n),t.child}function Gs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ks(e,t,n,r,i){var a=ea(n)?Qi:Xi.current;return a=$i(t,a),Xa(t,i),n=Io(e,t,n,r,a,i),r=Lo(),e!==null&&!zs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sc(e,t,i)):(H&&r&&Ca(t),t.flags|=1,Bs(e,t,n,i),t.child)}function qs(e,t,n,r,i){if(ea(n)){var a=!0;ia(t)}else a=!1;if(Xa(t,i),t.stateNode===null)oc(e,t),Es(t,n,r),Os(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Za(l):(l=ea(n)?Qi:Xi.current,l=$i(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ds(t,o,r,l),no=!1;var f=t.memoizedState;o.state=f,lo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Zi.current||no?(typeof u==`function`&&(Cs(t,n,u,r),c=t.memoizedState),(s=no||Ts(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,io(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ss(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Za(c):(c=ea(n)?Qi:Xi.current,c=$i(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ds(t,o,r,c),no=!1,f=t.memoizedState,o.state=f,lo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Zi.current||no?(typeof p==`function`&&(Cs(t,n,p,r),m=t.memoizedState),(l=no||Ts(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Js(e,t,n,r,a,i)}function Js(e,t,n,r,i,a){Gs(e,t);var o=!!(t.flags&128);if(!r&&!o)return i&&aa(t,n,!1),sc(e,t,a);r=t.stateNode,Rs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Va(t,e.child,null,a),t.child=Va(t,null,s,a)):Bs(e,t,s,a),t.memoizedState=r.state,i&&aa(t,n,!0),t.child}function Ys(e){var t=e.stateNode;t.pendingContext?na(e,t.pendingContext,t.pendingContext!==t.context):t.context&&na(e,t.context,!1),_o(e,t.containerInfo)}function Xs(e,t,n,r,i){return Pa(),Fa(i),t.flags|=256,Bs(e,t,n,r),t.child}var Zs={dehydrated:null,treeContext:null,retryLane:0};function Qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function $s(e,t,n){var r=t.pendingProps,i=W.current,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(i&2)),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),V(W,i&1),e===null)return Aa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.lanes=t.mode&1?e.data===`$!`?8:1073741824:1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=tu(o,r,0,null),e=eu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Qs(n),t.memoizedState=Zs,e):ec(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return nc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Ql(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=eu(a,o,n,null),a.flags|=2):a=Ql(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Qs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Zs,r}return a=e.child,e=a.sibling,r=Ql(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ec(e,t){return t=tu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function tc(e,t,n,r){return r!==null&&Fa(r),Va(t,e.child,null,n),e=ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=As(Error(r(422))),tc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=tu({mode:`visible`,children:i.children},a,0,null),o=eu(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Va(t,e.child,null,s),t.child.memoizedState=Qs(s),t.memoizedState=Zs,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return tc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=As(o,i,void 0),tc(e,t,s,i)}if(c=(s&e.childLanes)!==0,zs||c){if(i=qc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,to(e,a),vl(i,e,a,-1))}return jl(),i=As(Error(r(421))),tc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Wl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Ea=Ni(a.nextSibling),Ta=t,H=!0,U=null,e!==null&&(ga[_a++]=ya,ga[_a++]=ba,ga[_a++]=va,ya=e.id,ba=e.overflow,va=t),t=ec(t,i.children),t.flags|=4096,t)}function rc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ya(e.return,t,n)}function ic(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function ac(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Bs(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rc(e,n,t);else if(e.tag===19)rc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(V(W,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&xo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ic(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ic(t,!0,n,null,a);break;case`together`:ic(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Y|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Ql(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ql(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cc(e,t,n){switch(t.tag){case 3:Ys(t),Pa();break;case 5:yo(t);break;case 1:ea(t.type)&&ia(t);break;case 4:_o(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;V(Ua,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(V(W,W.current&1),e=sc(e,t,n),e===null?null:e.sibling):$s(e,t,n):(V(W,W.current&1),t.flags|=128,null);V(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ac(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,Ws(e,t,n)}return sc(e,t,n)}var lc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},uc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,go(po.current);var o=null;switch(n){case`input`:i=ye(e,i),r=ye(e,r),o=[];break;case`select`:i=M({},i,{value:void 0}),r=M({},r,{value:void 0}),o=[];break;case`textarea`:i=De(e,i),r=De(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Ci)}Ve(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&z(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},dc=function(e,t,n,r){n!==r&&(t.flags|=4)};function fc(e,t){if(!H)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mc(e,t,n){var i=t.pendingProps;switch(wa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pc(t),null;case 1:return ea(t.type)&&ta(),pc(t),null;case 3:return i=t.stateNode,vo(),B(Zi),B(Xi),Co(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ma(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,U!==null&&(xl(U),U=null))),pc(t),null;case 5:bo(t);var o=go(ho.current);if(n=t.type,e!==null&&t.stateNode!=null)uc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return pc(t),null}if(e=go(po.current),Ma(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Ii]=t,i[Li]=s,e=!!(t.mode&1),n){case`dialog`:z(`cancel`,i),z(`close`,i);break;case`iframe`:case`object`:case`embed`:z(`load`,i);break;case`video`:case`audio`:for(o=0;o<oi.length;o++)z(oi[o],i);break;case`source`:z(`error`,i);break;case`img`:case`image`:case`link`:z(`error`,i),z(`load`,i);break;case`details`:z(`toggle`,i);break;case`input`:be(i,s),z(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},z(`invalid`,i);break;case`textarea`:Oe(i,s),z(`invalid`,i)}for(var c in Ve(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&Si(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&Si(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&z(`scroll`,i)}switch(n){case`input`:ge(i),Ce(i,s,!0);break;case`textarea`:ge(i),Ae(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Ci)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=je(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Ii]=t,e[Li]=i,lc(e,t,!1,!1),t.stateNode=e;a:{switch(c=He(n,i),n){case`dialog`:z(`cancel`,e),z(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:z(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<oi.length;o++)z(oi[o],e);o=i;break;case`source`:z(`error`,e),o=i;break;case`img`:case`image`:case`link`:z(`error`,e),z(`load`,e),o=i;break;case`details`:z(`toggle`,e),o=i;break;case`input`:be(e,i),o=ye(e,i),z(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=M({},i,{value:void 0}),z(`invalid`,e);break;case`textarea`:Oe(e,i),o=De(e,i),z(`invalid`,e);break;default:o=i}for(s in Ve(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?ze(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Pe(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Fe(e,u):typeof u==`number`&&Fe(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&z(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:ge(e),Ce(e,i,!1);break;case`textarea`:ge(e),Ae(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+pe(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Ee(e,!!i.multiple,i.defaultValue,!0):Ee(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Ci)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pc(t),null;case 6:if(e&&t.stateNode!=null)dc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=go(ho.current),go(po.current),Ma(t)){if(i=t.stateNode,n=t.memoizedProps,i[Ii]=t,(s=i.nodeValue!==n)&&(e=Ta,e!==null))switch(e.tag){case 3:Si(i.nodeValue,n,!!(e.mode&1));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Si(i.nodeValue,n,!!(e.mode&1))}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Ii]=t,t.stateNode=i}return pc(t),null;case 13:if(B(W),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(H&&Ea!==null&&t.mode&1&&!(t.flags&128))Na(),Pa(),t.flags|=98560,s=!1;else if(s=Ma(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Ii]=t}else Pa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pc(t),s=!1}else U!==null&&(xl(U),U=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||W.current&1?Zc===0&&(Zc=3):jl())),t.updateQueue!==null&&(t.flags|=4),pc(t),null);case 4:return vo(),e===null&&fi(t.stateNode.containerInfo),pc(t),null;case 10:return Ja(t.type._context),pc(t),null;case 17:return ea(t.type)&&ta(),pc(t),null;case 19:if(B(W),s=t.memoizedState,s===null)return pc(t),null;if(i=!!(t.flags&128),c=s.rendering,c===null)if(i)fc(s,!1);else{if(Zc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=xo(e),c!==null){for(t.flags|=128,fc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return V(W,W.current&1|2),t.child}e=e.sibling}s.tail!==null&&St()>il&&(t.flags|=128,i=!0,fc(s,!1),t.lanes=4194304)}else{if(!i)if(e=xo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!H)return pc(t),null}else 2*St()-s.renderingStartTime>il&&n!==1073741824&&(t.flags|=128,i=!0,fc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(pc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=St(),t.sibling=null,n=W.current,V(W,i?n&1|2:n&1),t);case 22:case 23:return Dl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?J&1073741824&&(pc(t),t.subtreeFlags&6&&(t.flags|=8192)):pc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function hc(e,t){switch(wa(t),t.tag){case 1:return ea(t.type)&&ta(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vo(),B(Zi),B(Xi),Co(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bo(t),null;case 13:if(B(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(W),null;case 4:return vo(),null;case 10:return Ja(t.type._context),null;case 22:case 23:return Dl(),null;case 24:return null;default:return null}}var gc=!1,_c=!1,vc=typeof WeakSet==`function`?WeakSet:Set,G=null;function yc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Vl(e,t,n)}else n.current=null}function bc(e,t,n){try{n()}catch(n){Vl(e,t,n)}}var xc=!1;function Sc(e,t){if(wi=yn,e=Lr(),Rr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ti={focusedElem:e,selectionRange:n},yn=!1,G=t;G!==null;)if(t=G,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ss(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Vl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return h=xc,xc=!1,h}function Cc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&bc(t,n,a)}i=i.next}while(i!==r)}}function wc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Tc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Ec(e){var t=e.alternate;t!==null&&(e.alternate=null,Ec(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ii],delete t[Li],delete t[zi],delete t[Bi],delete t[Vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Dc(e){return e.tag===5||e.tag===3||e.tag===4}function Oc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Dc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ci));else if(r!==4&&(e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}function Ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ac(e,t,n),e=e.sibling;e!==null;)Ac(e,t,n),e=e.sibling}var jc=null,Mc=!1;function Nc(e,t,n){for(n=n.child;n!==null;)K(e,t,n),n=n.sibling}function K(e,t,n){if(At&&typeof At.onCommitFiberUnmount==`function`)try{At.onCommitFiberUnmount(kt,n)}catch{}switch(n.tag){case 5:_c||yc(n,t);case 6:var r=jc,i=Mc;jc=null,Nc(e,t,n),jc=r,Mc=i,jc!==null&&(Mc?(e=jc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):jc.removeChild(n.stateNode));break;case 18:jc!==null&&(Mc?(e=jc,n=n.stateNode,e.nodeType===8?Mi(e.parentNode,n):e.nodeType===1&&Mi(e,n),_n(e)):Mi(jc,n.stateNode));break;case 4:r=jc,i=Mc,jc=n.stateNode.containerInfo,Mc=!0,Nc(e,t,n),jc=r,Mc=i;break;case 0:case 11:case 14:case 15:if(!_c&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&bc(n,t,o),i=i.next}while(i!==r)}Nc(e,t,n);break;case 1:if(!_c&&(yc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Vl(n,t,e)}Nc(e,t,n);break;case 21:Nc(e,t,n);break;case 22:n.mode&1?(_c=(r=_c)||n.memoizedState!==null,Nc(e,t,n),_c=r):Nc(e,t,n);break;default:Nc(e,t,n)}}function Pc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vc),t.forEach(function(t){var r=Gl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Fc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:jc=c.stateNode,Mc=!1;break a;case 3:jc=c.stateNode.containerInfo,Mc=!0;break a;case 4:jc=c.stateNode.containerInfo,Mc=!0;break a}c=c.return}if(jc===null)throw Error(r(160));K(o,s,a),jc=null,Mc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Vl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ic(t,e),t=t.sibling}function Ic(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Fc(t,e),Lc(e),i&4){try{Cc(3,e,e.return),wc(3,e)}catch(t){Vl(e,e.return,t)}try{Cc(5,e,e.return)}catch(t){Vl(e,e.return,t)}}break;case 1:Fc(t,e),Lc(e),i&512&&n!==null&&yc(n,n.return);break;case 5:if(Fc(t,e),Lc(e),i&512&&n!==null&&yc(n,n.return),e.flags&32){var a=e.stateNode;try{Fe(a,``)}catch(t){Vl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&xe(a,o),He(c,s);var u=He(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?ze(a,f):d===`dangerouslySetInnerHTML`?Pe(a,f):d===`children`?Fe(a,f):S(a,d,f,u)}switch(c){case`input`:Se(a,o);break;case`textarea`:ke(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Ee(a,!!o.multiple,o.multiple?[]:``,!1):Ee(a,!!o.multiple,o.defaultValue,!0)):Ee(a,!!o.multiple,m,!1)}a[Li]=o}catch(t){Vl(e,e.return,t)}}break;case 6:if(Fc(t,e),Lc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Vl(e,e.return,t)}}break;case 3:if(Fc(t,e),Lc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{_n(t.containerInfo)}catch(t){Vl(e,e.return,t)}break;case 4:Fc(t,e),Lc(e);break;case 13:Fc(t,e),Lc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(rl=St())),i&4&&Pc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(_c=(u=_c)||d,Fc(t,e),_c=u):Fc(t,e),Lc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(G=e,d=e.child;d!==null;){for(f=G=d;G!==null;){switch(p=G,m=p.child,p.tag){case 0:case 11:case 14:case 15:Cc(4,p,p.return);break;case 1:yc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Vl(i,n,e)}}break;case 5:yc(p,p.return);break;case 22:if(p.memoizedState!==null){Vc(f);continue}}m===null?Vc(f):(m.return=p,G=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Re(`display`,s))}catch(t){Vl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Vl(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Fc(t,e),Lc(e),i&4&&Pc(e);break;case 21:break;default:Fc(t,e),Lc(e)}}function Lc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Dc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Fe(a,``),i.flags&=-33),Ac(e,Oc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;kc(e,Oc(e),o);break;default:throw Error(r(161))}}catch(t){Vl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rc(e,t,n){G=e,zc(e,t,n)}function zc(e,t,n){for(var r=!!(e.mode&1);G!==null;){var i=G,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||gc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||_c;s=gc;var l=_c;if(gc=o,(_c=c)&&!l)for(G=i;G!==null;)o=G,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Hc(i):(c.return=o,G=c);for(;a!==null;)G=a,zc(a,t,n),a=a.sibling;G=i,gc=s,_c=l}Bc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,G=a):Bc(e,t,n)}}function Bc(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_c||wc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!_c)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Ss(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&uo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}uo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&_n(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}_c||t.flags&512&&Tc(t)}catch(e){Vl(t,t.return,e)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Vc(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function Hc(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wc(4,t)}catch(e){Vl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Vl(t,i,e)}}var a=t.return;try{Tc(t)}catch(e){Vl(t,a,e)}break;case 5:var o=t.return;try{Tc(t)}catch(e){Vl(t,o,e)}}}catch(e){Vl(t,t.return,e)}if(t===e){G=null;break}var s=t.sibling;if(s!==null){s.return=t.return,G=s;break}G=t.return}}var Uc=Math.ceil,Wc=C.ReactCurrentDispatcher,Gc=C.ReactCurrentOwner,Kc=C.ReactCurrentBatchConfig,q=0,qc=null,Jc=null,Yc=0,J=0,Xc=Ji(0),Zc=0,Qc=null,Y=0,$c=0,el=0,tl=null,nl=null,rl=0,il=1/0,al=null,ol=!1,sl=null,cl=null,ll=!1,ul=null,dl=0,fl=0,pl=null,ml=-1,hl=0;function gl(){return q&6?St():ml===-1?ml=St():ml}function _l(e){return e.mode&1?q&2&&Yc!==0?Yc&-Yc:Ia.transition===null?(e=P,e===0?(e=window.event,e=e===void 0?16:Tn(e.type),e):e):(hl===0&&(hl=Ut()),hl):1}function vl(e,t,n,i){if(50<fl)throw fl=0,pl=null,Error(r(185));Gt(e,n,i),(!(q&2)||e!==qc)&&(e===qc&&(!(q&2)&&($c|=n),Zc===4&&Cl(e,Yc)),X(e,i),n===1&&q===0&&!(t.mode&1)&&(il=St()+500,sa&&da()))}function X(e,t){var n=e.callbackNode;Vt(e,t);var r=zt(e,e===qc?Yc:0);if(r===0)n!==null&&yt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yt(n),t===1)e.tag===0?ua(wl.bind(null,e)):la(wl.bind(null,e)),Ai(function(){!(q&6)&&da()}),n=null;else{switch(Jt(r)){case 1:n=wt;break;case 4:n=Tt;break;case 16:n=Et;break;case 536870912:n=Ot;break;default:n=Et}n=ql(n,yl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yl(e,t){if(ml=-1,hl=0,q&6)throw Error(r(327));var n=e.callbackNode;if(zl()&&e.callbackNode!==n)return null;var i=zt(e,e===qc?Yc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Ml(e,i);else{t=i;var a=q;q|=2;var o=Al();(qc!==e||Yc!==t)&&(al=null,il=St()+500,Ol(e,t));do try{Pl();break}catch(t){kl(e,t)}while(1);qa(),Wc.current=o,q=a,Jc===null?(qc=null,Yc=0,t=Zc):t=0}if(t!==0){if(t===2&&(a=Ht(e),a!==0&&(i=a,t=bl(e,a))),t===1)throw n=Qc,Ol(e,0),Cl(e,i),X(e,St()),n;if(t===6)Cl(e,i);else{if(a=e.current.alternate,!(i&30)&&!Sl(a)&&(t=Ml(e,i),t===2&&(o=Ht(e),o!==0&&(i=o,t=bl(e,o))),t===1))throw n=Qc,Ol(e,0),Cl(e,i),X(e,St()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Ll(e,nl,al);break;case 3:if(Cl(e,i),(i&130023424)===i&&(t=rl+500-St(),10<t)){if(zt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){gl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Di(Ll.bind(null,e,nl,al),t);break}Ll(e,nl,al);break;case 4:if(Cl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Mt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=St()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Uc(i/1960))-i,10<i){e.timeoutHandle=Di(Ll.bind(null,e,nl,al),i);break}Ll(e,nl,al);break;case 5:Ll(e,nl,al);break;default:throw Error(r(329))}}}return X(e,St()),e.callbackNode===n?yl.bind(null,e):null}function bl(e,t){var n=tl;return e.current.memoizedState.isDehydrated&&(Ol(e,t).flags|=256),e=Ml(e,t),e!==2&&(t=nl,nl=n,t!==null&&xl(t)),e}function xl(e){nl===null?nl=e:nl.push.apply(nl,e)}function Sl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Mr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cl(e,t){for(t&=~el,t&=~$c,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function wl(e){if(q&6)throw Error(r(327));zl();var t=zt(e,0);if(!(t&1))return X(e,St()),null;var n=Ml(e,t);if(e.tag!==0&&n===2){var i=Ht(e);i!==0&&(t=i,n=bl(e,i))}if(n===1)throw n=Qc,Ol(e,0),Cl(e,t),X(e,St()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ll(e,nl,al),X(e,St()),null}function Tl(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(il=St()+500,sa&&da())}}function El(e){ul!==null&&ul.tag===0&&!(q&6)&&zl();var t=q;q|=1;var n=Kc.transition,r=P;try{if(Kc.transition=null,P=1,e)return e()}finally{P=r,Kc.transition=n,q=t,!(q&6)&&da()}}function Dl(){J=Xc.current,B(Xc)}function Ol(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Oi(n)),Jc!==null)for(n=Jc.return;n!==null;){var r=n;switch(wa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ta();break;case 3:vo(),B(Zi),B(Xi),Co();break;case 5:bo(r);break;case 4:vo();break;case 13:B(W);break;case 19:B(W);break;case 10:Ja(r.type._context);break;case 22:case 23:Dl()}n=n.return}if(qc=e,Jc=e=Ql(e.current,null),Yc=J=t,Zc=0,Qc=null,el=$c=Y=0,nl=tl=null,Qa!==null){for(t=0;t<Qa.length;t++)if(n=Qa[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Qa=null}return e}function kl(e,t){do{var n=Jc;try{if(qa(),wo.current=vs,Ao){for(var i=Do.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Ao=!1}if(Eo=0,ko=Oo=Do=null,jo=!1,Mo=0,Gc.current=null,n===null||n.return===null){Zc=1,Qc=t,Jc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Yc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Is(s);if(m!==null){m.flags&=-257,Ls(m,s,c,o,t),m.mode&1&&Fs(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}if(!(t&1)){Fs(o,u,t),jl();break a}l=Error(r(426))}else if(H&&c.mode&1){var _=Is(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ls(_,s,c,o,t),Fa(ks(l,c));break a}}o=l=ks(l,c),Zc!==4&&(Zc=2),tl===null?tl=[o]:tl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Ns(o,l,t);co(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(cl===null||!cl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Ps(o,c,t);co(o,x);break a}}o=o.return}while(o!==null)}Il(n)}catch(e){t=e,Jc===n&&n!==null&&(Jc=n=n.return);continue}break}while(1)}function Al(){var e=Wc.current;return Wc.current=vs,e===null?vs:e}function jl(){(Zc===0||Zc===3||Zc===2)&&(Zc=4),qc===null||!(Y&268435455)&&!($c&268435455)||Cl(qc,Yc)}function Ml(e,t){var n=q;q|=2;var i=Al();(qc!==e||Yc!==t)&&(al=null,Ol(e,t));do try{Nl();break}catch(t){kl(e,t)}while(1);if(qa(),q=n,Wc.current=i,Jc!==null)throw Error(r(261));return qc=null,Yc=0,Zc}function Nl(){for(;Jc!==null;)Fl(Jc)}function Pl(){for(;Jc!==null&&!bt();)Fl(Jc)}function Fl(e){var t=Kl(e.alternate,e,J);e.memoizedProps=e.pendingProps,t===null?Il(e):Jc=t,Gc.current=null}function Il(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hc(n,t),n!==null){n.flags&=32767,Jc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Zc=6,Jc=null;return}}else if(n=mc(n,t,J),n!==null){Jc=n;return}if(t=t.sibling,t!==null){Jc=t;return}Jc=t=e}while(t!==null);Zc===0&&(Zc=5)}function Ll(e,t,n){var r=P,i=Kc.transition;try{Kc.transition=null,P=1,Rl(e,t,n,r)}finally{Kc.transition=i,P=r}return null}function Rl(e,t,n,i){do zl();while(ul!==null);if(q&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Kt(e,o),e===qc&&(Jc=qc=null,Yc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ll||(ll=!0,ql(Et,function(){return zl(),null})),o=!!(n.flags&15990),n.subtreeFlags&15990||o){o=Kc.transition,Kc.transition=null;var s=P;P=1;var c=q;q|=4,Gc.current=null,Sc(e,n),Ic(n,e),zr(Ti),yn=!!wi,Ti=wi=null,e.current=n,Rc(n,e,a),xt(),q=c,P=s,Kc.transition=o}else e.current=n;if(ll&&(ll=!1,ul=e,dl=a),o=e.pendingLanes,o===0&&(cl=null),jt(n.stateNode,i),X(e,St()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(ol)throw ol=!1,e=sl,sl=null,e;return dl&1&&e.tag!==0&&zl(),o=e.pendingLanes,o&1?e===pl?fl++:(fl=0,pl=e):fl=0,da(),null}function zl(){if(ul!==null){var e=Jt(dl),t=Kc.transition,n=P;try{if(Kc.transition=null,P=16>e?16:e,ul===null)var i=!1;else{if(e=ul,ul=null,dl=0,q&6)throw Error(r(331));var a=q;for(q|=4,G=e.current;G!==null;){var o=G,s=o.child;if(G.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(G=u;G!==null;){var d=G;switch(d.tag){case 0:case 11:case 15:Cc(8,d,o)}var f=d.child;if(f!==null)f.return=d,G=f;else for(;G!==null;){d=G;var p=d.sibling,m=d.return;if(Ec(d),d===u){G=null;break}if(p!==null){p.return=m,G=p;break}G=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}G=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,G=s;else b:for(;G!==null;){if(o=G,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Cc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,G=v;break b}G=o.return}}var y=e.current;for(G=y;G!==null;){s=G;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,G=b;else b:for(s=y;G!==null;){if(c=G,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:wc(9,c)}}catch(e){Vl(c,c.return,e)}if(c===s){G=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,G=x;break b}G=c.return}}if(q=a,da(),At&&typeof At.onPostCommitFiberRoot==`function`)try{At.onPostCommitFiberRoot(kt,e)}catch{}i=!0}return i}finally{P=n,Kc.transition=t}}return!1}function Bl(e,t,n){t=ks(n,t),t=Ns(e,t,1),e=oo(e,t,1),t=gl(),e!==null&&(Gt(e,1,t),X(e,t))}function Vl(e,t,n){if(e.tag===3)Bl(e,e,n);else for(;t!==null;){if(t.tag===3){Bl(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cl===null||!cl.has(r))){e=ks(n,e),e=Ps(t,e,1),t=oo(t,e,1),e=gl(),t!==null&&(Gt(t,1,e),X(t,e));break}}t=t.return}}function Hl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=gl(),e.pingedLanes|=e.suspendedLanes&n,qc===e&&(Yc&n)===n&&(Zc===4||Zc===3&&(Yc&130023424)===Yc&&500>St()-rl?Ol(e,0):el|=n),X(e,t)}function Ul(e,t){t===0&&(e.mode&1?(t=Lt,Lt<<=1,!(Lt&130023424)&&(Lt=4194304)):t=1);var n=gl();e=to(e,t),e!==null&&(Gt(e,t,n),X(e,n))}function Wl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ul(e,n)}function Gl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Ul(e,n)}var Kl=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Zi.current)zs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return zs=!1,cc(e,t,n);zs=!!(e.flags&131072)}else zs=!1,H&&t.flags&1048576&&Sa(t,ha,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;oc(e,t),e=t.pendingProps;var a=$i(t,Xi.current);Xa(t,n),a=Io(null,t,i,e,a,n);var o=Lo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ea(i)?(o=!0,ia(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ro(t),a.updater=ws,t.stateNode=a,a._reactInternals=t,Os(t,i,e,n),t=Js(null,t,i,!0,o,n)):(t.tag=0,H&&o&&Ca(t),Bs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(oc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Zl(i),e=Ss(i,e),a){case 0:t=Ks(null,t,i,e,n);break a;case 1:t=qs(null,t,i,e,n);break a;case 11:t=Vs(null,t,i,e,n);break a;case 14:t=Hs(null,t,i,Ss(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ss(i,a),Ks(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ss(i,a),qs(e,t,i,a,n);case 3:a:{if(Ys(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,io(e,t),lo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=ks(Error(r(423)),t),t=Xs(e,t,i,n,a);break a}else if(i!==a){a=ks(Error(r(424)),t),t=Xs(e,t,i,n,a);break a}else for(Ea=Ni(t.stateNode.containerInfo.firstChild),Ta=t,H=!0,U=null,n=Ha(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pa(),i===a){t=sc(e,t,n);break a}Bs(e,t,i,n)}t=t.child}return t;case 5:return yo(t),e===null&&Aa(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ei(i,a)?s=null:o!==null&&Ei(i,o)&&(t.flags|=32),Gs(e,t),Bs(e,t,s,n),t.child;case 6:return e===null&&Aa(t),null;case 13:return $s(e,t,n);case 4:return _o(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Va(t,null,i,n):Bs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ss(i,a),Vs(e,t,i,a,n);case 7:return Bs(e,t,t.pendingProps,n),t.child;case 8:return Bs(e,t,t.pendingProps.children,n),t.child;case 12:return Bs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,V(Ua,i._currentValue),i._currentValue=s,o!==null)if(Mr(o.value,s)){if(o.children===a.children&&!Zi.current){t=sc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=ao(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ya(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Ya(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Bs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,Xa(t,n),a=Za(a),i=i(a),t.flags|=1,Bs(e,t,i,n),t.child;case 14:return i=t.type,a=Ss(i,t.pendingProps),a=Ss(i.type,a),Hs(e,t,i,a,n);case 15:return Us(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ss(i,a),oc(e,t),t.tag=1,ea(i)?(e=!0,ia(t)):e=!1,Xa(t,n),Es(t,i,a),Os(t,i,a,n),Js(null,t,i,!0,e,n);case 19:return ac(e,t,n);case 22:return Ws(e,t,n)}throw Error(r(156,t.tag))};function ql(e,t){return vt(e,t)}function Jl(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.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 Yl(e,t,n,r){return new Jl(e,t,n,r)}function Xl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zl(e){if(typeof e==`function`)return+!!Xl(e);if(e!=null){if(e=e.$$typeof,e===D)return 11;if(e===k)return 14}return 2}function Ql(e,t){var n=e.alternate;return n===null?(n=Yl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $l(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)Xl(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case ee:return eu(n.children,a,o,t);case E:s=8,a|=8;break;case te:return e=Yl(12,n,t,a|2),e.elementType=te,e.lanes=o,e;case O:return e=Yl(13,n,t,a),e.elementType=O,e.lanes=o,e;case ie:return e=Yl(19,n,t,a),e.elementType=ie,e.lanes=o,e;case A:return tu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case ne:s=10;break a;case re:s=9;break a;case D:s=11;break a;case k:s=14;break a;case ae:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Yl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function eu(e,t,n,r){return e=Yl(7,e,r,t),e.lanes=n,e}function tu(e,t,n,r){return e=Yl(22,e,r,t),e.elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function nu(e,t,n){return e=Yl(6,e,null,t),e.lanes=n,e}function ru(e,t,n){return t=Yl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wt(0),this.expirationTimes=Wt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function au(e,t,n,r,i,a,o,s,c){return e=new iu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Yl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ro(a),e}function ou(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function su(e){if(!e)return Yi;e=e._reactInternals;
vendor: 4,412 bytes, line 8
8a:{if(ft(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(ea(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(ea(n))return ra(e,n,t)}return t}function cu(e,t,n,r,i,a,o,s,c){return e=au(n,r,!0,e,i,a,o,s,c),e.context=su(null),n=e.current,r=gl(),i=_l(n),a=ao(r,i),a.callback=t??null,oo(n,a,i),e.current.lanes=i,Gt(e,i,r),X(e,r),e}function lu(e,t,n,r){var i=t.current,a=gl(),o=_l(i);return n=su(n),t.context===null?t.context=n:t.pendingContext=n,t=ao(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=oo(i,t,o),e!==null&&(vl(e,i,o,a),so(e,i,o)),o}function uu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function du(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fu(e,t){du(e,t),(e=e.alternate)&&du(e,t)}function pu(){return null}var mu=typeof reportError==`function`?reportError:function(e){console.error(e)};function hu(e){this._internalRoot=e}gu.prototype.render=hu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));lu(e,t,null,null)},gu.prototype.unmount=hu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;El(function(){lu(null,e,null,null)}),t[Ri]=null}};function gu(e){this._internalRoot=e}gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sn.length&&t!==0&&t<sn[n].priority;n++);sn.splice(n,0,e),n===0&&fn(e)}};function _u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function vu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function yu(){}function bu(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=uu(o);a.call(e)}}var o=cu(t,r,e,0,null,!1,!1,``,yu);return e._reactRootContainer=o,e[Ri]=o.current,fi(e.nodeType===8?e.parentNode:e),El(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=uu(c);s.call(e)}}var c=au(e,0,!1,null,null,!1,!1,``,yu);return e._reactRootContainer=c,e[Ri]=c.current,fi(e.nodeType===8?e.parentNode:e),El(function(){lu(t,c,n,r)}),c}function xu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=uu(o);s.call(e)}}lu(t,o,e,i)}else o=bu(n,t,e,i,r);return uu(o)}Yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rt(t.pendingLanes);n!==0&&(qt(t,n|1),X(t,St()),!(q&6)&&(il=St()+500,da()))}break;case 13:El(function(){var t=to(e,1);t!==null&&vl(t,e,1,gl())}),fu(e,1)}},Xt=function(e){if(e.tag===13){var t=to(e,134217728);t!==null&&vl(t,e,134217728,gl()),fu(e,134217728)}},Zt=function(e){if(e.tag===13){var t=_l(e),n=to(e,t);n!==null&&vl(n,e,t,gl()),fu(e,t)}},Qt=function(){return P},$t=function(e,t){var n=P;try{return P=e,t()}finally{P=n}},Ge=function(e,t,n){switch(t){case`input`:if(Se(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Gi(i);if(!a)throw Error(r(90));_e(i),Se(i,a)}}}break;case`textarea`:ke(e,n);break;case`select`:t=n.value,t!=null&&Ee(e,!!n.multiple,t,!1)}},Ze=Tl,Qe=El;var Su={usingClientEntryPoint:!1,Events:[Ui,Wi,Gi,Ye,Xe,Tl]},Cu={findFiberByHostInstance:Hi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},wu={bundleType:Cu.bundleType,version:Cu.version,rendererPackageName:Cu.rendererPackageName,rendererConfig:Cu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gt(e),e===null?null:e.stateNode},findFiberByHostInstance:Cu.findFiberByHostInstance||pu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};
8if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tu.isDisabled&&Tu.supportsFiber)try{kt=Tu.inject(wu),At=Tu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Su,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_u(t))throw Error(r(200));return ou(e,t,null,n)},e.createRoot=function(e,t){if(!_u(e))throw Error(r(299));var n=!1,i=``,a=mu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=au(e,1,!1,null,null,n,!1,i,a),e[Ri]=t.current,fi(e.nodeType===8?e.parentNode:e),new hu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=gt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return El(e)},e.hydrate=function(e,t,n){if(!vu(t))throw Error(r(200));return xu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!_u(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=mu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=cu(t,null,e,1,n??null,a,!1,o,s),e[Ri]=t.current,fi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new gu(t)},e.render=function(e,t,n){if(!vu(t))throw Error(r(200));return xu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!vu(e))throw Error(r(40));return e._reactRootContainer?(El(function(){xu(null,null,e,!1,function(){e._reactRootContainer=null,e[Ri]=null})}),!0):!1},e.unstable_batchedUpdates=Tl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!vu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return xu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=l(o((e=>{var t=h();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))(),1),_=l(d(),1),v=20,y=1e6,b={ADD_TOAST:`ADD_TOAST`,UPDATE_TOAST:`UPDATE_TOAST`,DISMISS_TOAST:`DISMISS_TOAST`,REMOVE_TOAST:`REMOVE_TOAST`},x=0;function S(){return x=(x+1)%Number.MAX_VALUE,x.toString()}var C=new Map,w=e=>{if(C.has(e))return;let t=setTimeout(()=>{C.delete(e),te({type:b.REMOVE_TOAST,toastId:e})},y);C.set(e,t)},T=(e,t)=>{switch(t.type){case b.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,v)};case b.UPDATE_TOAST:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case b.DISMISS_TOAST:{let{toastId:n}=t;return n?w(n):e.toasts.forEach(e=>{w(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case b.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},ee=[],E={toasts:[]};function te(e){E=T(E,e),ee.forEach(e=>{e(E)})}function ne({...e}){let t=S(),n=e=>te({type:b.UPDATE_TOAST,toast:{...e,id:t}}),r=()=>te({type:b.DISMISS_TOAST,toastId:t});return te({type:b.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function re(){let[e,t]=(0,_.useState)(E);return(0,_.useEffect)(()=>(ee.push(t),()=>{let e=ee.indexOf(t);e>-1&&ee.splice(e,1)}),[e]),{...e,toast:ne,dismiss:e=>te({type:b.DISMISS_TOAST,toastId:e})}}var D=l(h(),1);typeof window<`u`&&window.document&&window.document.createElement;function O(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function ie(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function k(...e){return t=>{let n=!1,r=e.map(e=>{let r=ie(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ie(e[t],null)}}}}function ae(...e){return _.useCallback(k(...e),e)}var A=o((e=>{var t=d(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INT
8ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),j=o(((e,t)=>{t.exports=A()}))();function oe(e,t=[]){let n=[];function r(t,r){let i=_.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=_.useMemo(()=>o,Object.values(o));return(0,j.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=_.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>_.createContext(e));return function(n){let r=n?.[e]||t;return _.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,M(i,...t)]}function M(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function se(e){let t=N(e),n=_.forwardRef((e,n)=>{let{children:r,...i}=e,a=_.Children.toArray(r),o=a.find(le);if(o){let e=o.props.children,r=a.map(t=>t===o?_.Children.count(e)>1?_.Children.only(null):_.isValidElement(e)?e.props.children:null:t);return(0,j.jsx)(t,{...i,ref:n,children:_.isValidElement(e)?_.cloneElement(e,void 0,r):null})}return(0,j.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function N(e){let t=_.forwardRef((e,t)=>{let{children:n,...r}=e;if(_.isValidElement(n)){let e=de(n),i=ue(r,n.props);return n.type!==_.Fragment&&(i.ref=t?k(t,e):e),_.cloneElement(n,i)}return _.Children.count(n)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ce=Symbol(`radix.slottable`);function le(e){return _.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ce}function ue(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function de(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)}function fe(e){let t=e+`CollectionProvider`,[n,r]=oe(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=_.useRef(null),a=_.useRef(new Map).current;return(0,j.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=se(s),l=_.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ae(t,a(s,n).collectionRef);return(0,j.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=se(u),p=_.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=_.useRef(null),s=ae(t,o),c=a(u,n);return _.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,j.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return _.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}function pe(e){let t=me(e),n=_.forwardRef((e,n)=>{let{children:r,...i}=e,a=_.Children.toArray(r),o=a.find(ge);if(o){let e=o.props.children,r=a.map(t=>t===o?_.Children.count(e)>1?_.Children.only(null):_.isValidElement(e)?e.props.children:null:t);return(0,j.jsx)(t,{...i,ref:n,children:_.isValidElement(e)?_.cloneElement(e,void 0,r):null})}return(0,j.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function me(e){let t=_.forwardRef((e,t)=>
vendor: 5,035 bytes, line 8
8{let{children:n,...r}=e;if(_.isValidElement(n)){let e=ve(n),i=_e(r,n.props);return n.type!==_.Fragment&&(i.ref=t?k(t,e):e),_.cloneElement(n,i)}return _.Children.count(n)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var he=Symbol(`radix.slottable`);function ge(e){return _.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===he}function _e(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ve(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)}var ye=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=pe(`Primitive.${t}`),r=_.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,j.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function be(e,t){e&&D.flushSync(()=>e.dispatchEvent(t))}function xe(e){let t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...e)=>t.current?.(...e),[])}function Se(e,t=globalThis?.document){let n=xe(e);_.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Ce=`DismissableLayer`,we=`dismissableLayer.update`,Te=`dismissableLayer.pointerDownOutside`,Ee=`dismissableLayer.focusOutside`,De,Oe=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ke=_.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=_.useContext(Oe),[u,d]=_.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=_.useState({}),m=ae(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(g),y=u?h.indexOf(u):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=Me(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!x||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),C=Ne(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return Se(e=>{y===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),_.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(De=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Pe(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=De)}},[u,f,n,l]),_.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Pe())},[u,l]),_.useEffect(()=>{let e=()=>p({});return document.addEventListener(we,e),()=>document.removeEventListener(we,e)},[]),(0,j.jsx)(ye.div,{...c,ref:m,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:O(e.onFocusCapture,C.onFocusCapture),onBlurCapture:O(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,S.onPointerDownCapture)})});ke.displayName=Ce;var Ae=`DismissableLayerBranch`,je=_.forwardRef((e,t)=>{let n=_.useContext(Oe),r=_.useRef(null),i=ae(t,r);return _.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,j.jsx)(ye.div,{...e,ref:i})});je.displayName=Ae;function Me(e,t=globalThis?.document){let n=xe(e),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){Fe(Te,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ne(e,t=globalThis?.document){let n=xe(e),r=_.useRef(!1);return _.useEffect(()=>{let e=e=>{e.target&&!r.current&&Fe(Ee,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pe(){let e=new CustomEvent(we);document.dispatchEvent(e)}function Fe(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?be(i,a):i.dispatchEvent(a)}var Ie=ke,Le=je,Re=globalThis?.document?_.useLayoutEffect:()=>{},ze=`Portal`,Be=_.forwardRef((e,t)=>
8{let{container:n,...r}=e,[i,a]=_.useState(!1);Re(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?D.createPortal((0,j.jsx)(ye.div,{...r,ref:t}),o):null});Be.displayName=ze;function Ve(e,t){return _.useReducer((e,n)=>t[e][n]??e,e)}var He=e=>{let{present:t,children:n}=e,r=Ue(t),i=typeof n==`function`?n({present:r.isPresent}):_.Children.only(n),a=ae(r.ref,Ge(i));return typeof n==`function`||r.isPresent?_.cloneElement(i,{ref:a}):null};He.displayName=`Presence`;function Ue(e){let[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),a=_.useRef(`none`),[o,s]=Ve(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return _.useEffect(()=>{let e=We(r.current);a.current=o===`mounted`?e:`none`},[o]),Re(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=We(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Re(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=We(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=We(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:_.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function We(e){return e?.animationName||`none`}function Ge(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)}var Ke=_.useInsertionEffect||Re;function qe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Je({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=_.useRef(e!==void 0);_.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,_.useCallback(t=>{if(s){let n=Ye(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Je({defaultProp:e,onChange:t}){let[n,r]=_.useState(e),i=_.useRef(n),a=_.useRef(t);return Ke(()=>{a.current=t},[t]),_.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Ye(e){return typeof e==`function`}var Xe=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Ze=`VisuallyHidden`,Qe=_.forwardRef((e,t)=>(0,j.jsx)(ye.span,{...e,ref:t,style:{...Xe,...e.style}}));Qe.displayName=Ze;var $e=`ToastProvider`,[et,tt,nt]=fe(`Toast`),[rt,it]=oe(`Toast`,[nt]),[at,ot]=rt($e),st=e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,children:o}=e,[s,c]=_.useState(null),[l,u]=_.useState(0),d=_.useRef(!1),f=_.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${$e}\`. Expected non-empty \`string\`.`),(0,j.jsx)(et.Provider,{scope:t,children:(0,j.jsx)(at,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:l,viewport:s,onViewportChange:c,onToastAdd:_.useCallback(()=>u(e=>e+1),[]),onToastRemove:_.useCallback(()=>u(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};st.displayName=$e;var ct=`ToastViewport`,lt=[`F8`],ut=`toast.viewportPause`,dt=`toast.viewportResume`,ft=_.forwardRef((e,t)=>
vendor: 8,269 bytes, line 8
8{let{__scopeToast:n,hotkey:r=lt,label:i=`Notifications ({hotkey})`,...a}=e,o=ot(ct,n),s=tt(n),c=_.useRef(null),l=_.useRef(null),u=_.useRef(null),d=_.useRef(null),f=ae(t,d,o.onViewportChange),p=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),m=o.toastCount>0;_.useEffect(()=>{let e=e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&d.current?.focus()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),_.useEffect(()=>{let e=c.current,t=d.current;if(m&&e&&t){let n=()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(ut);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},r=()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(dt);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[m,o.isClosePausedRef]);let h=_.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...zt(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return _.useEffect(()=>{let e=d.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){l.current?.focus();return}let i=h({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);Bt(i.slice(a+1))?t.preventDefault():r?l.current?.focus():u.current?.focus()}};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,h]),(0,j.jsxs)(Le,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,p),tabIndex:-1,style:{pointerEvents:m?void 0:`none`},children:[m&&(0,j.jsx)(mt,{ref:l,onFocusFromOutsideViewport:()=>{Bt(h({tabbingDirection:`forwards`}))}}),(0,j.jsx)(et.Slot,{scope:n,children:(0,j.jsx)(ye.ol,{tabIndex:-1,...a,ref:f})}),m&&(0,j.jsx)(mt,{ref:u,onFocusFromOutsideViewport:()=>{Bt(h({tabbingDirection:`backwards`}))}})]})});ft.displayName=ct;var pt=`ToastFocusProxy`,mt=_.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=ot(pt,n);return(0,j.jsx)(Qe,{tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})});mt.displayName=pt;var ht=`Toast`,gt=`toast.swipeStart`,_t=`toast.swipeMove`,vt=`toast.swipeCancel`,yt=`toast.swipeEnd`,bt=_.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[s,c]=qe({prop:r,defaultProp:i??!0,onChange:a,caller:ht});return(0,j.jsx)(He,{present:n||s,children:(0,j.jsx)(Ct,{open:s,...o,ref:t,onClose:()=>c(!1),onPause:xe(e.onPause),onResume:xe(e.onResume),onSwipeStart:O(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:O(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:O(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:O(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),c(!1)})})})});bt.displayName=ht;var[xt,St]=rt(ht,{onClose(){}}),Ct=_.forwardRef((e,t)=>{let{__scopeToast:n,type:r=`foreground`,duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...m}=e,h=ot(ht,n),[g,v]=_.useState(null),y=ae(t,e=>v(e)),b=_.useRef(null),x=_.useRef(null),S=i||h.duration,C=_.useRef(0),w=_.useRef(S),T=_.useRef(0),{onToastAdd:ee,onToastRemove:E}=h,te=xe(()=>{g?.contains(document.activeElement)&&h.viewport?.focus(),o()}),ne=_.useCallback(e=>{!e||e===1/0||(window.clearTimeout(T.current),C.current=new Date().getTime(),T.current=window.setTimeout(te,e))},[te]);_.useEffect(()=>{let e=h.viewport;if(e){let t=()=>{ne(w.current),l?.()},n=()=>{let e=new Date().getTime()-C.current;w.current-=e,window.clearTimeout(T.current),c?.()};return e.addEventListener(ut,n),e.addEventListener(dt,t),()=>{e.removeEventListener(ut,n),e.removeEventListener(dt,t)}}},[h.viewport,S,c,l,ne]),_.useEffect(()=>{a&&!h.isClosePausedRef.current&&ne(S)},[a,S,h.isClosePausedRef,ne]),_.useEffect(()=>(ee(),()=>E()),[ee,E]);let re=_.useMemo(()=>g?Pt(g):null,[g]);return h.viewport?(0,j.jsxs)(j.Fragment,{children:[re&&(0,j.jsx)(wt,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,children:re}),(0,j.jsx)(xt,{scope:n,onClose:te,children:D.createPortal((0,j.jsx)(et.ItemSlot,{scope:n,children:(0,j.jsx)(Ie,{asChild:!0,onEscapeKeyDown:O(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||te(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,j.jsx)(ye.li,{tabIndex:0,"data-state":a?`open`:`closed`,"data-swipe-direction":h.swipeDirection,...m,ref:y,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:O(e.onKeyDown,e=>{e.key===`Escape`&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,te()))}),onPointerDown:O(e.onPointerDown,e=>{e.button===0&&(b.current={x:e.clientX,y:e.clientY})}),onPointerMove:O(e.onPointerMove,e=>{if(!b.current)return;let t=e.clientX-b.current.x,n=e.clientY-b.current.y,r=!!x.current,i=[`left`,`right`].includes(h.swipeDirection),a=[`left`,`up`].includes(h.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},f={originalEvent:e,delta:l};r?(x.current=l,Ft(_t,d,f,{discrete:!1})):It(l,h.swipeDirection,c)?(x.current=l,Ft(gt,u,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(b.current=null)}),onPointerUp:O(e.onPointerUp,e=>{let t=x.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),x.current=null,b.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};It(t,h.swipeDirection,h.swipeThreshold)?Ft(yt,p,r,{discrete:!0}):Ft(vt,f,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),wt=e=>{let{__scopeToast:t,children:n,...r}=e,i=ot(ht,t),[a,o]=_.useState(!1),[s,c]=_.useState(!1);return Lt(()=>o(!0)),_.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,j.jsx)(Be,{asChild:!0,children:(0,j.jsx)(Qe,{...r,children:a&&(0,j.jsxs)(j.Fragment,{children:[i.label,` `,n]})})})},Tt=`ToastTitle`,Et=_.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,j.jsx)(ye.div,{...r,ref:t})});Et.displayName=Tt;var Dt=`ToastDescription`,Ot=_.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,j.jsx)(ye.div,{...r,ref:t})});Ot.displayName=Dt;var kt=`ToastAction`,At=_.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,j.jsx)(Nt,{altText:n,asChild:!0,children:(0,j.jsx)(Mt,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${kt}\`. Expected non-empty \`string\`.`),null)});At.displayName=kt;var jt=`ToastClose`,Mt=_.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=St(jt,n);return(0,j.jsx)(Nt,{asChild:!0,children:(0,j.jsx)(ye.button,{type:`button`,...r,ref:t,onClick:O(e.onClick,i.onClose)})})});Mt.displayName=jt;var Nt=_.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,j.jsx)(ye.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Pt(e){let t=[];
8return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Rt(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n)if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...Pt(e))}}),t}function Ft(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?be(i,a):i.dispatchEvent(a)}var It=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n};function Lt(e=()=>{}){let t=xe(e);Re(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}function Rt(e){return e.nodeType===e.ELEMENT_NODE}function zt(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bt(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var Vt=st,Ht=ft,Ut=bt,Wt=Et,Gt=Ot,Kt=At,qt=Mt;function P(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=P(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Jt(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=P(e))&&(r&&(r+=` `),r+=t);return r}var Yt=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Xt=Jt,Zt=(e,t)=>n=>{if(t?.variants==null)return Xt(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Yt(t)||Yt(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Xt(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Qt=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),$t=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),en={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},tn=(0,_.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,_.createElement)(`svg`,{ref:c,...en,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$t(`lucide`,i),...s},[...o.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(a)?a:[a]])),F=(e,t)=>{let n=(0,_.forwardRef)(({className:n,...r},i)=>(0,_.createElement)(tn,{ref:i,iconNode:t,className:$t(`lucide-${Qt(e)}`,n),...r}));return n.displayName=`${e}`,n},nn=F(`ArrowRight`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),rn=F(`CalendarClock`,[[`path`,{d:`M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5`,key:`1osxxc`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M3 10h5`,key:`r794hk`}],[`path`,{d:`M17.5 17.5 16 16.3V14`,key:`akvzfd`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),an=F(`Check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),on=F(`ChefHat`,[[`path`,{d:`M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z`,key:`1qvrer`}],[`path`,{d:`M6 17h12`,key:`1jwigz`}]]),sn=F(`Clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`polyline`,{points:`12 6 12 12 16 14`,key:`68esgv`}]]),cn=F(`Facebook`,[[`path`,{d:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z`,key:`1jg4f8`}]]),ln=F(`Heart`,[[`path`,{d:`M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z`,key:`c3ymky`}
vendor: 4,967 bytes, line 8
8]]),un=F(`Instagram`,[[`rect`,{width:`20`,height:`20`,x:`2`,y:`2`,rx:`5`,ry:`5`,key:`2e1cvw`}],[`path`,{d:`M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z`,key:`9exkf1`}],[`line`,{x1:`17.5`,x2:`17.51`,y1:`6.5`,y2:`6.5`,key:`r4j83e`}]]),dn=F(`Mail`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}]]),fn=F(`MapPin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),pn=F(`Menu`,[[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}],[`line`,{x1:`4`,x2:`20`,y1:`6`,y2:`6`,key:`1owob3`}],[`line`,{x1:`4`,x2:`20`,y1:`18`,y2:`18`,key:`yk5zj1`}]]),mn=F(`Phone`,[[`path`,{d:`M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z`,key:`foiqr5`}]]),hn=F(`PocketKnife`,[[`path`,{d:`M3 2v1c0 1 2 1 2 2S3 6 3 7s2 1 2 2-2 1-2 2 2 1 2 2`,key:`19w3oe`}],[`path`,{d:`M18 6h.01`,key:`1v4wsw`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M20.83 8.83a4 4 0 0 0-5.66-5.66l-12 12a4 4 0 1 0 5.66 5.66Z`,key:`6fykxj`}],[`path`,{d:`M18 11.66V22a4 4 0 0 0 4-4V6`,key:`1utzek`}]]),gn=F(`Scissors`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]),_n=F(`Send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),vn=F(`Sparkles`,[[`path`,{d:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z`,key:`4pj2yx`}],[`path`,{d:`M20 3v4`,key:`1olli1`}],[`path`,{d:`M22 5h-4`,key:`1gvqau`}],[`path`,{d:`M4 17v2`,key:`vumght`}],[`path`,{d:`M5 18H3`,key:`zchphs`}]]),yn=F(`Truck`,[[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M15 18H9`,key:`1lyqi6`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14`,key:`lysw3i`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]),bn=F(`Utensils`,[[`path`,{d:`M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2`,key:`cjf0a3`}],[`path`,{d:`M7 2v20`,key:`1473qp`}],[`path`,{d:`M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7`,key:`j28e5`}]]),xn=F(`X`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Sn=F(`Youtube`,[[`path`,{d:`M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17`,key:`1q2vi4`}],[`path`,{d:`m10 15 5-3-5-3z`,key:`1jp15x`}]]),Cn=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},wn=(e,t)=>({classGroupId:e,validator:t}),Tn=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),En=`-`,Dn=[],On=`arbitrary..`,kn=e=>{let t=Mn(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return jn(e);let n=e.split(En);return An(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Cn(i,t):t:i||Dn}return n[e]||Dn}}},An=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=An(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(En):e.slice(t).join(En),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},jn=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?On+r:void 0})(),Mn=e=>{let{theme:t,classGroups:n}=e;return Nn(n,t)},Nn=(e,t)=>{let n=Tn();for(let r in e){let i=e[r];Pn(i,n,r,t)}return n},Pn=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Fn(i,t,n,r)}},Fn=(e,t,n,r)=>{if(typeof e==`string`){In(e,t,n);return}if(typeof e==`function`){Ln(e,t,n,r);return}Rn(e,t,n,r)},In=(e,t,n)=>{let r=e===``?t:zn(t,e);r.classGroupId=n},Ln=(e,t,n,r)=>{if(Bn(e)){Pn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(wn(n,e))},Rn=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Pn(o,zn(t,a),n,r)}},zn=(e,t)=>{let n=e,r=t.split(En),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Tn(),n.nextPart.set(t,i)),n=i}return n},Bn=e=>
vendor: 4,255 bytes, line 8
8`isThemeGetter`in e&&e.isThemeGetter===!0,Vn=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Hn=`!`,Un=`:`,Wn=[],Gn=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Kn=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Un){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Hn)?(c=s.slice(0,-1),l=!0):s.startsWith(Hn)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Gn(t,l,c,u)};if(t){let e=t+Un,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Gn(Wn,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},qn=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Jn=e=>({cache:Vn(e.cacheSize),parseClassName:Kn(e),sortModifiers:qn(e),...kn(e)}),Yn=/\s+/,Xn=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Yn),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Hn:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Zn=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Qn(n))&&(i&&(i+=` `),i+=r);return i},Qn=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Qn(e[r]))&&(n&&(n+=` `),n+=t);return n},$n=(e,...t)=>{let n,r,i,a,o=o=>(n=Jn(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Xn(e,n);return i(e,a),a};return a=o,(...e)=>a(Zn(...e))},er=[],tr=e=>{let t=t=>t[e]||er;return t.isThemeGetter=!0,t},nr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,rr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ir=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ar=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,or=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ur=e=>ir.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),dr=e=>!!e&&Number.isInteger(Number(e)),fr=e=>e.endsWith(`%`)&&I(e.slice(0,-1)),pr=e=>ar.test(e),mr=()=>!0,hr=e=>or.test(e)&&!sr.test(e),gr=()=>!1,_r=e=>cr.test(e),vr=e=>lr.test(e),yr=e=>!L(e)&&!R(e),br=e=>Fr(e,zr,gr),L=e=>nr.test(e),xr=e=>Fr(e,Br,hr),Sr=e=>Fr(e,Vr,I),Cr=e=>Fr(e,Ur,mr),wr=e=>Fr(e,Hr,gr),Tr=e=>Fr(e,Lr,gr),Er=e=>Fr(e,Rr,vr),Dr=e=>Fr(e,Wr,_r),R=e=>rr.test(e),Or=e=>Ir(e,Br),kr=e=>Ir(e,Hr),Ar=e=>Ir(e,Lr),jr=e=>Ir(e,zr),Mr=e=>Ir(e,Rr),Nr=e=>Ir(e,Wr,!0),Pr=e=>Ir(e,Ur,!0),Fr=(e,t,n)=>{let r=nr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ir=(e,t,n=!1)=>{let r=rr.exec(e);return r?r[1]?t(r[1]):n:!1},Lr=e=>e===`position`||e===`percentage`,Rr=e=>e===`image`||e===`url`,zr=e=>e===`length`||e===`size`||e===`bg-size`,Br=e=>e===`length`,Vr=e=>e===`number`,Hr=e=>e===`family-name`,Ur=e=>e===`number`||e===`weight`,Wr=e=>e===`shadow`,Gr=$n(()=>{let e=tr(`color`),t=tr(`font`),n=tr(`text`),r=tr(`font-weight`),i=tr(`tracking`),a=tr(`leading`),o=tr(`breakpoint`),s=tr(`container`),c=tr(`spacing`),l=tr(`radius`),u=tr(`shadow`),d=tr(`inset-shadow`),f=tr(`text-shadow`),p=tr(`drop-shadow`),m=tr(`blur`),h=tr(`perspective`),g=tr(`aspect`),_=tr(`ease`),v=tr(`animate`),y=()=>
vendor: 5,132 bytes, line 8
8[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),R,L],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[R,L,c],T=()=>[ur,`full`,`auto`,...w()],ee=()=>[dr,`none`,`subgrid`,R,L],E=()=>[`auto`,{span:[`full`,dr,R,L]},dr,R,L],te=()=>[dr,`auto`,R,L],ne=()=>[`auto`,`min`,`max`,`fr`,R,L],re=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],D=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...w()],ie=()=>[ur,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],k=()=>[ur,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ae=()=>[ur,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,R,L],j=()=>[...b(),Ar,Tr,{position:[R,L]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],M=()=>[`auto`,`cover`,`contain`,jr,br,{size:[R,L]}],se=()=>[fr,Or,xr],N=()=>[``,`none`,`full`,l,R,L],ce=()=>[``,I,Or,xr],le=()=>[`solid`,`dashed`,`dotted`,`double`],ue=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],de=()=>[I,fr,Ar,Tr],fe=()=>[``,`none`,m,R,L],pe=()=>[`none`,I,R,L],me=()=>[`none`,I,R,L],he=()=>[I,R,L],ge=()=>[ur,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[pr],breakpoint:[pr],color:[mr],container:[pr],"drop-shadow":[pr],ease:[`in`,`out`,`in-out`],font:[yr],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[pr],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[pr],shadow:[pr],spacing:[`px`,I],text:[pr],"text-shadow":[pr],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ur,L,R,g]}],container:[`container`],columns:[{columns:[I,L,R,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[dr,`auto`,R,L]}],basis:[{basis:[ur,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[I,ur,`auto`,`initial`,`none`,L]}],grow:[{grow:[``,I,R,L]}],shrink:[{shrink:[``,I,R,L]}],order:[{order:[dr,`first`,`last`,`none`,R,L]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...re(),`normal`]}],"justify-items":[{"justify-items":[...D(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...D()]}],"align-content":[{content:[`normal`,...re()]}],"align-items":[{items:[...D(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...D(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...D(),`baseline`]}],"place-self":[{"place-self":[`auto`,...D()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}
vendor: 4,117 bytes, line 8
8],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ie()}],"inline-size":[{inline:[`auto`,...k()]}],"min-inline-size":[{"min-inline":[`auto`,...k()]}],"max-inline-size":[{"max-inline":[`none`,...k()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...ie()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ie()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ie()]}],h:[{h:[`screen`,`lh`,...ie()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ie()]}],"max-h":[{"max-h":[`screen`,`lh`,...ie()]}],"font-size":[{text:[`base`,n,Or,xr]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Pr,Cr]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,fr,L]}],"font-family":[{font:[kr,wr,t]}],"font-features":[{"font-features":[L]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,R,L]}],"line-clamp":[{"line-clamp":[I,`none`,R,Sr]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,R,L]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,R,L]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...le(),`wavy`]}],"text-decoration-thickness":[{decoration:[I,`from-font`,`auto`,R,xr]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[I,`auto`,R,L]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,R,L]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,R,L]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:M()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},dr,R,L],radial:[``,R,L],conic:[dr,R,L]},Mr,Er]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-bs":[{"border-bs":ce()}],"border-w-be":[{"border-be":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}
vendor: 6,763 bytes, line 8
8],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...le(),`hidden`,`none`]}],"divide-style":[{divide:[...le(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...le(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[I,R,L]}],"outline-w":[{outline:[``,I,Or,xr]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,Nr,Dr]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,Nr,Dr]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ce()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[I,xr]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,Nr,Dr]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[I,R,L]}],"mix-blend":[{"mix-blend":[...ue(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[R,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,R,L]}],filter:[{filter:[``,`none`,R,L]}],blur:[{blur:fe()}],brightness:[{brightness:[I,R,L]}],contrast:[{contrast:[I,R,L]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Nr,Dr]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,I,R,L]}],"hue-rotate":[{"hue-rotate":[I,R,L]}],invert:[{invert:[``,I,R,L]}],saturate:[{saturate:[I,R,L]}],sepia:[{sepia:[``,I,R,L]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,R,L]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[I,R,L]}],"backdrop-contrast":[{"backdrop-contrast":[I,R,L]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,I,R,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,R,L]}],"backdrop-invert":[{"backdrop-invert":[``,I,R,L]}],"backdrop-opacity":[{"backdrop-opacity":[I,R,L]}],"backdrop-saturate":[{"backdrop-saturate":[I,R,L]}],"backdrop-sepia":[{"backdrop-sepia":[``,I,R,L]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,R,L]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[I,`initial`,R,L]}],ease:[{ease:[`linear`,`initial`,_,R,L]}],delay:[{delay:[I,R,L]}],animate:[{animate:[`none`,v,R,L]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,R,L]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":[`scale-3d`],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[R,L,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":[`translate-none`],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom
8-in`,`zoom-out`,R,L]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}
8],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,R,L]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[I,Or,xr,Sr]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Kr(...e){return Gr(Jt(e))}window.self,window.top;var qr=Vt,Jr=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Ht,{ref:n,className:Kr(`fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]`,e),...t}));Jr.displayName=Ht.displayName;var Yr=Zt(`group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full`,{variants:{variant:{default:`border bg-background text-foreground`,destructive:`destructive group border-destructive bg-destructive text-destructive-foreground`}},defaultVariants:{variant:`default`}}),Xr=_.forwardRef(({className:e,variant:t,...n},r)=>(0,j.jsx)(Ut,{ref:r,className:Kr(Yr({variant:t}),e),...n}));Xr.displayName=Ut.displayName;var Zr=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Kt,{ref:n,className:Kr(`inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive`,e),...t}));Zr.displayName=Kt.displayName;var Qr=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(qt,{ref:n,className:Kr(`absolute right-2 top-2 rounded-md p-1 text-foreground
8/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600`,e),"toast-close":``,...t,children:(0,j.jsx)(xn,{className:`h-4 w-4`})}));Qr.displayName=qt.displayName;var $r=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Wt,{ref:n,className:Kr(`text-sm font-semibold`,e),...t}));$r.displayName=Wt.displayName;var ei=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Gt,{ref:n,className:Kr(`text-sm opacity-90`,e),...t}));ei.displayName=Gt.displayName;function ti(){let{toasts:e}=re();return(0,j.jsxs)(qr,{children:[e.map(function({id:e,title:t,description:n,action:r,...i}){return(0,j.jsxs)(Xr,{...i,children:[(0,j.jsxs)(`div`,{className:`grid gap-1`,children:[t&&(0,j.jsx)($r,{children:t}),n&&(0,j.jsx)(ei,{children:n})]}),r,(0,j.jsx)(Qr,{})]},e)}),(0,j.jsx)(Jr,{})]})}var ni=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ri={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ii=new class{#e=ri;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ai(e){setTimeout(e,0)}var oi=typeof window>`u`||`Deno`in globalThis;function si(){}function ci(e,t){return typeof e==`function`?e(t):e}function li(e){return typeof e==`number`&&e>=0&&e!==1/0}function z(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ui(e,t){return typeof e==`function`?e(t):e}function di(e,t){return typeof e==`function`?e(t):e}function fi(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==mi(o,t.options))return!1}else if(!gi(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function pi(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(hi(t.options.mutationKey)!==hi(a))return!1}else if(!gi(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function mi(e,t){return(t?.queryKeyHashFn||hi)(e)}function hi(e){return JSON.stringify(e,(e,t)=>xi(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function gi(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>gi(e[n],t[n])):!1}var _i=Object.prototype.hasOwnProperty;function vi(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=bi(e)&&bi(t);if(!r&&!(xi(e)&&xi(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:_i.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=vi(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function yi(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function bi(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xi(e){if(!Si(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Si(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Si(e){return Object.prototype.toString.call(e)===`[object Object]`}function Ci(e){return new Promise(t=>{ii.setTimeout(t,e)})}function wi(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:vi(e,t)}function Ti(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ei(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Di=Symbol();function Oi(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Di?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ki(e,t){return typeof e==`function`?e(...t):!!e}
8function Ai(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var ji=new class extends ni{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!oi&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}};function Mi(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Ni=ai;function Pi(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Ni,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Fi=Pi(),Ii=new class extends ni{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!oi&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Li(e){return Math.min(1e3*2**e,3e4)}function Ri(e){return(e??`online`)!==`online`||Ii.isOnline()}var zi=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Bi(e){let t=!1,n=0,r,i=Mi(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new zi(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>ji.isFocused()&&(e.networkMode===`always`||Ii.isOnline())&&e.canRun(),u=()=>Ri(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(oi?0:3),o=e.retryDelay??Li,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),Ci(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Vi=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),li(this.gcTime)&&(this.#e=ii.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(oi?1/0:3e5))}clearGcTimeout(){this.#e&&=(ii.clearTimeout(this.#e),void 0)}},Hi=class extends Vi{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Gi(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Gi(this.options);e.data!==void 0&&(this.setState(Wi(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=wi(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(si).catch(si):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>di(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Di||this.state.dataUpdateCount+this.state.errorUpdate
8Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>ui(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!z(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=Oi(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=Bi({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof zi&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof zi){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#s({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Ui(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Wi(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Fi.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function Ui(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ri(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Wi(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Gi(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
vendor: 4,576 bytes, line 8
8Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Ki=class extends ni{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Mi(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ji(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return B(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return B(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof di(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!yi(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&V(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||di(this.options.enabled,this.#t)!==di(t.enabled,this.#t)||ui(this.options.staleTime,this.#t)!==ui(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||di(this.options.enabled,this.#t)!==di(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Xi(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(si)),t}#g(){this.#b();let e=ui(this.options.staleTime,this.#t);if(oi||this.#r.isStale||!li(e))return;let t=z(this.#r.dataUpdatedAt,e)+1;this.#d=ii.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(oi||di(this.options.enabled,this.#t)===!1||!li(this.#p)||this.#p===0)&&(this.#f=ii.setInterval(()=>{(this.options.refetchIntervalInBackground||ji.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d&&=(ii.clearTimeout(this.#d),void 0)}#x(){this.#f&&=(ii.clearInterval(this.#f),void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Ji(e,t),o=i&&V(e,n,t,r);(a||o)&&(l={...l,...Ui(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=wi(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=wi(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdate
8Count:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Yi(e,t),refetch:this.refetch,promise:this.#o,isEnabled:di(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{let e=this.#o=x.promise=Mi();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a()}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!yi(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){Fi.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function qi(e,t){return di(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||t.retryOnMount!==!1)}function Ji(e,t){return qi(e,t)||e.state.data!==void 0&&B(e,t,t.refetchOnMount)}function B(e,t,n){if(di(t.enabled,e)!==!1&&ui(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Yi(e,t)}return!1}function V(e,t,n,r){return(e!==t||di(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Yi(e,n)}function Yi(e,t){return di(t.enabled,e)!==!1&&e.isStaleByTime(ui(t.staleTime,e))}function Xi(e,t){return!yi(e.getCurrentResult(),t)}function Zi(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Ai(e,()=>t.signal,()=>n=!0)},u=Oi(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Ei:Ti;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?$i:Qi,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Qi(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Qi(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function $i(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var ea=class extends Vi{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||ta(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Bi({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});
vendor: 2,869 bytes, line 8
8let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Fi.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function ta(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var na=class extends ni{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new ea({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=ra(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=ra(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=ra(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=ra(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>
8t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Fi.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>pi(t,e))}findAll(e={}){return this.getAll().filter(t=>pi(e,t))}notify(e){Fi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Fi.batch(()=>Promise.all(e.map(e=>e.continue().catch(si))))}};function ra(e){return e.options.scope?.id}var ia=class extends ni{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??mi(r,t),a=this.get(i);return a||(a=new Hi({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Fi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>fi(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>fi(e,t)):t}notify(e){Fi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Fi.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Fi.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},aa=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new ia,this.#t=e.mutationCache||new na,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=ji.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ii.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ui(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=ci(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Fi.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Fi.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Fi.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Fi.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(si).catch(si)}invalidateQueries(e,t={}){return Fi.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Fi.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(si)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(si)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(ui(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(si).catch(si)}fetchInfiniteQuery(e){return e.behavior=Zi(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(si).catch(si)}ensureInfiniteQueryData(e){return e.behavior=Zi(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ii.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(hi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{gi(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(hi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{gi(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=mi(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Di&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},oa=_.createContext(void 0),sa=e=>{let t=_.useContext(oa);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},ca=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,j.jsx)(oa.Provider,{value:e,children:t})),la=_.createContext(!1),ua=()=>_.useContext(la);la.Provider;function da(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
8var fa=_.createContext(da()),pa=()=>_.useContext(fa),ma=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?ki(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ha=e=>{_.useEffect(()=>{e.clearReset()},[e])},ga=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||ki(n,[e.error,r])),_a=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},va=(e,t)=>e.isLoading&&e.isFetching&&!t,ya=(e,t)=>e?.suspense&&t.isPending,ba=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function xa(e,t,n){let r=ua(),i=pa(),a=sa(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,_a(o),ma(o,i,s),ha(i);let c=!a.getQueryCache().get(o.queryHash),[l]=_.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback(e=>{let t=d?l.subscribe(Fi.batchCalls(e)):si;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),_.useEffect(()=>{l.setOptions(o)},[o,l]),ya(o,u))throw ba(o,l,i);if(ga({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!oi&&va(u,r)&&(c?ba(o,l,i):s?.promise)?.catch(si).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function Sa(e,t){return xa(e,Ki,t)}var Ca=new aa({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});function wa(){return wa=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},wa.apply(null,arguments)}var Ta;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(Ta||={});var Ea=`popstate`;function H(e){e===void 0&&(e={});function t(e,t){let{pathname:n,search:r,hash:i}=e.location;return Aa(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){return typeof t==`string`?t:ja(t)}return Na(t,n,null,e)}function U(e,t){if(e===!1||e==null)throw Error(t)}function Da(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Oa(){return Math.random().toString(36).substr(2,8)}function ka(e,t){return{usr:e.state,key:e.key,idx:t}}function Aa(e,t,n,r){return n===void 0&&(n=null),wa({pathname:typeof e==`string`?e:e.pathname,search:``,hash:``},typeof t==`string`?Ma(t):t,{state:n,key:t&&t.key||r||Oa()})}function ja(e){let{pathname:t=`/`,search:n=``,hash:r=``}=e;return n&&n!==`?`&&(t+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(t+=r.charAt(0)===`#`?r:`#`+r),t}function Ma(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Na(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Ta.Pop,c=null,l=u();l??(l=0,o.replaceState(wa({},o.state,{idx:l}),``));function u(){return(o.state||{idx:null}).idx}function d(){s=Ta.Pop;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=Ta.Push;let r=Aa(h.location,e,t);n&&n(r,e),l=u()+1;let d=ka(r,l),f=h.createHref(r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=Ta.Replace;let r=Aa(h.location,e,t);n&&n(r,e),l=u();let i=ka(r,l),d=h.createHref(r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){let t=i.location.origin===`null`?i.location.href:i.location.origin,n=typeof e==`string`?e:ja(e);return n=n.replace(/ $/,`%20`),U(t,`No window.location.(origin|href) available to create URL for href: `+n),new URL(n,t)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Ea,d),c=e,()=>{i.removeEventListener(Ea,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}var Pa;(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(Pa||={});
vendor: 2,295 bytes, line 8
8function Fa(e,t,n){return n===void 0&&(n=`/`),Ia(e,t,n,!1)}function Ia(e,t,n,r){let i=$a((typeof t==`string`?Ma(t):t).pathname||`/`,n);if(i==null)return null;let a=La(e);za(a);let o=null,s=Qa(i);for(let e=0;o==null&&e<a.length;++e)o=Ya(a[e],s,r);return o}function La(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=``);let i=(e,i,a)=>{let o={relativePath:a===void 0?e.path||``:a,caseSensitive:e.caseSensitive===!0,childrenIndex:i,route:e};o.relativePath.startsWith(`/`)&&(U(o.relativePath.startsWith(r),`Absolute route path "`+o.relativePath+`" nested under path `+(`"`+r+`" is not valid. An absolute child route path `)+`must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(r.length));let s=lo([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(U(e.index!==!0,`Index routes must not have child routes. Please remove `+(`all child routes from route path "`+s+`".`)),La(e.children,t,c,s)),!(e.path==null&&!e.index)&&t.push({path:s,score:qa(s,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))i(e,t);else for(let n of Ra(e.path))i(e,t,n)}),t}function Ra(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Ra(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function za(e){e.sort((e,t)=>e.score===t.score?Ja(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Ba=/^:[\w-]+$/,Va=3,Ha=2,Ua=1,Wa=10,Ga=-2,Ka=e=>e===`*`;function qa(e,t){let n=e.split(`/`),r=n.length;return n.some(Ka)&&(r+=Ga),t&&(r+=Ha),n.filter(e=>!Ka(e)).reduce((e,t)=>e+(Ba.test(t)?Va:t===``?Ua:Wa),r)}function Ja(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Ya(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=Xa({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=Xa({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
8Object.assign(i,u.params),o.push({params:i,pathname:lo([a,u.pathname]),pathnameBase:uo(lo([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=lo([a,u.pathnameBase]))}return o}function Xa(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Za(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:i}=t;if(r===`*`){let e=s[n]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let c=s[n];return e[r]=i&&!c?void 0:(c||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Za(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Da(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "`+e+`" will be treated as if it were `+(`"`+e.replace(/\*$/,`/*`)+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+(`please change the route path to "`+e.replace(/\*$/,`/*`)+`".`));let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`));return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Qa(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Da(!1,`The URL path "`+e+`" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent `+(`encoding (`+t+`).`)),e}}function $a(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var eo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,to=e=>eo.test(e);function no(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Ma(e):e,a;if(n)if(to(n))a=n;else{if(n.includes(`//`)){let e=n;n=co(n),Da(!1,`Pathnames cannot have embedded double slashes - normalizing `+(e+` -> `+n))}a=n.startsWith(`/`)?ro(n.substring(1),`/`):ro(n,t)}else a=t;return{pathname:a,search:fo(r),hash:po(i)}}function ro(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function io(e,t,n,r){return`Cannot include a '`+e+`' character in a manually specified `+("`to."+t+"` field ["+JSON.stringify(r)+`]. Please separate it out to the `)+("`to."+n+"` field. Alternatively you may provide the full path as ")+`a string in <Link to="..."> and the router will parse it for you.`}function ao(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function oo(e,t){let n=ao(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function so(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=Ma(e):(i=wa({},e),U(!i.pathname||!i.pathname.includes(`?`),io(`?`,`pathname`,`search`,i)),U(!i.pathname||!i.pathname.includes(`#`),io(`#`,`pathname`,`hash`,i)),U(!i.search||!i.search.includes(`#`),io(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=no(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var co=e=>e.replace(/\/\/+/g,`/`),lo=e=>co(e.join(`/`)),uo=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),fo=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,po=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e;function mo(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}var ho=[`post`,`put`,`patch`,`delete`];new Set(ho);var go=[`get`,...ho];new Set(go);function _o(){return _o=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},_o.apply(null,arguments)}var vo=_.createContext(null),yo=_.createContext(null),bo=_.createContext(null),W=_.createContext(null),xo=_.createContext({outlet:null,matches:[],isDataRoute:!1}),So=_.createContext(null);function Co(e,t){let{relative:n}=t===void 0?{}:t;!wo()&&U(!1);let{basename:r,navigator:i}=_.useContext(bo),{hash:a,pathname:o,search:s}=Mo(e,{relative:n}),c=o;
8return r!==`/`&&(c=o===`/`?r:lo([r,o])),i.createHref({pathname:c,search:s,hash:a})}function wo(){return _.useContext(W)!=null}function To(){return!wo()&&U(!1),_.useContext(W).location}function Eo(){return _.useContext(W).navigationType}function Do(e){_.useContext(bo).static||_.useLayoutEffect(e)}function Oo(){let{isDataRoute:e}=_.useContext(xo);return e?qo():ko()}function ko(){!wo()&&U(!1);let e=_.useContext(vo),{basename:t,future:n,navigator:r}=_.useContext(bo),{matches:i}=_.useContext(xo),{pathname:a}=To(),o=JSON.stringify(oo(i,n.v7_relativeSplatPath)),s=_.useRef(!1);return Do(()=>{s.current=!0}),_.useCallback(function(n,i){if(i===void 0&&(i={}),!s.current)return;if(typeof n==`number`){r.go(n);return}let c=so(n,JSON.parse(o),a,i.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:lo([t,c.pathname])),(i.replace?r.replace:r.push)(c,i.state,i)},[t,r,o,a,e])}var Ao=_.createContext(null);function jo(e){let t=_.useContext(xo).outlet;return t&&_.createElement(Ao.Provider,{value:e},t)}function Mo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(bo),{matches:i}=_.useContext(xo),{pathname:a}=To(),o=JSON.stringify(oo(i,r.v7_relativeSplatPath));return _.useMemo(()=>so(e,JSON.parse(o),a,n===`path`),[e,o,a,n])}function No(e,t){return Po(e,t)}function Po(e,t,n,r){!wo()&&U(!1);let{navigator:i}=_.useContext(bo),{matches:a}=_.useContext(xo),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:`/`;o&&o.route;let l=To(),u;if(t){let e=typeof t==`string`?Ma(t):t;!(c===`/`||e.pathname?.startsWith(c))&&U(!1),u=e}else u=l;let d=u.pathname||`/`,f=d;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);f=`/`+d.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let p=Fa(e,{pathname:f}),m=zo(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:lo([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:lo([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,n,r);return t&&m?_.createElement(W.Provider,{value:{location:_o({pathname:`/`,search:``,hash:``,state:null,key:`default`},u),navigationType:Ta.Pop}},m):m}function Fo(){let e=Ko(),t=mo(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return _.createElement(_.Fragment,null,_.createElement(`h2`,null,`Unexpected Application Error!`),_.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?_.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Io=_.createElement(Fo,null),Lo=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error(`React Router caught the following error during render`,e,t)}render(){return this.state.error===void 0?this.props.children:_.createElement(xo.Provider,{value:this.props.routeContext},_.createElement(So.Provider,{value:this.state.error,children:this.props.component}))}};function Ro(e){let{routeContext:t,match:n,children:r}=e,i=_.useContext(vo);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(xo.Provider,{value:t},r)}function zo(e,t,n,r){if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);!(e>=0)&&U(!1),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&e[t.route.id]===void 0&&(!r||r[t.route.id]===void 0);if(t.route.lazy||i){s=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}
8return a.reduceRight((e,r,i)=>{let l,u=!1,d=null,f=null;n&&(l=o&&r.route.id?o[r.route.id]:void 0,d=r.route.errorElement||Io,s&&(c<0&&i===0?(Yo(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,f=null):c===i&&(u=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,i+1)),m=()=>{let t;return t=l?d:u?f:r.route.Component?_.createElement(r.route.Component,null):r.route.element?r.route.element:e,_.createElement(Ro,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:n!=null},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||i===0)?_.createElement(Lo,{location:n.location,revalidation:n.revalidation,component:d,error:l,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var Bo=function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e}(Bo||{}),Vo=function(e){return e.UseBlocker=`useBlocker`,e.UseLoaderData=`useLoaderData`,e.UseActionData=`useActionData`,e.UseRouteError=`useRouteError`,e.UseNavigation=`useNavigation`,e.UseRouteLoaderData=`useRouteLoaderData`,e.UseMatches=`useMatches`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e.UseRouteId=`useRouteId`,e}(Vo||{});function Ho(e){let t=_.useContext(vo);return!t&&U(!1),t}function Uo(e){let t=_.useContext(yo);return!t&&U(!1),t}function Wo(e){let t=_.useContext(xo);return!t&&U(!1),t}function Go(e){let t=Wo(e),n=t.matches[t.matches.length-1];return!n.route.id&&U(!1),n.route.id}function Ko(){let e=_.useContext(So),t=Uo(Vo.UseRouteError),n=Go(Vo.UseRouteError);return e===void 0?t.errors?.[n]:e}function qo(){let{router:e}=Ho(Bo.UseNavigateStable),t=Go(Vo.UseNavigateStable),n=_.useRef(!1);return Do(()=>{n.current=!0}),_.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,_o({fromRouteId:t},i)))},[e,t])}var Jo={};function Yo(e,t,n){!t&&!Jo[e]&&(Jo[e]=!0)}var Xo=(e,t,n)=>(``+t+("You can use the `"+e+"` future flag to opt-in early. ")+(`For more information, see `+n+`.`),void 0);function Zo(e,t){e?.v7_startTransition===void 0&&Xo(`v7_startTransition`,"React Router will begin wrapping state updates in `React.startTransition` in v7",`https://reactrouter.com/v6/upgrading/future#v7_starttransition`),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&Xo(`v7_relativeSplatPath`,`Relative route resolution within Splat routes is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath`),t&&(t.v7_fetcherPersist===void 0&&Xo(`v7_fetcherPersist`,`The persistence behavior of fetchers is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist`),t.v7_normalizeFormMethod===void 0&&Xo(`v7_normalizeFormMethod`,"Casing of `formMethod` fields is being normalized to uppercase in v7",`https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod`),t.v7_partialHydration===void 0&&Xo(`v7_partialHydration`,"`RouterProvider` hydration behavior is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_partialhydration`),t.v7_skipActionErrorRevalidation===void 0&&Xo(`v7_skipActionErrorRevalidation`,"The revalidation behavior after 4xx/5xx `action` responses is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation`))}function Qo(e){let{to:t,replace:n,state:r,relative:i}=e;!wo()&&U(!1);let{future:a,static:o}=_.useContext(bo),{matches:s}=_.useContext(xo),{pathname:c}=To(),l=Oo(),u=so(t,oo(s,a.v7_relativeSplatPath),c,i===`path`),d=JSON.stringify(u);return _.useEffect(()=>l(JSON.parse(d),{replace:n,state:r,relative:i}),[l,d,i,n,r]),null}function $o(e){return jo(e.context)}function es(e){U(!1)}function ts(e){let{basename:t=`/`,children:n=null,location:r,navigationType:i=Ta.Pop,navigator:a,static:o=!1,future:s}=e;wo()&&U(!1);let c=t.replace(/^\/*/,`/`),l=_.useMemo(()=>({basename:c,navigator:a,static:o,future:_o({v7_relativeSplatPath:!1},s)}),[c,s,a,o]);typeof r==`string`&&(r=Ma(r));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`}=r,h=_.useMemo(()=>{let e=$a(u,c);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m},navigationType:i}},[c,u,d,f,p,m,i]);return h==null?null:_.createElement(bo.Provider,{value:l},_.createElement(W.Provider,{children:n,value:h}))}function ns(e){let{children:t,location:n}=e;return No(is(t),n)}
8var rs=function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e}(rs||{});new Promise(()=>{}),_.Component;function is(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(e,r)=>{if(!_.isValidElement(e))return;let i=[...t,r];if(e.type===_.Fragment){n.push.apply(n,is(e.props.children,i));return}e.type!==es&&U(!1),!(!e.props.index||!e.props.children)&&U(!1);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=is(e.props.children,i)),n.push(a)}),n}function as(){return as=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},as.apply(null,arguments)}function os(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ss(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cs(e,t){return e.button===0&&(!t||t===`_self`)&&!ss(e)}var ls=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`,`viewTransition`],us=`6`;try{window.__reactRouterVersion=us}catch{}var ds=_.startTransition;function fs(e){let{basename:t,children:n,future:r,window:i}=e,a=_.useRef();a.current??=H({window:i,v5Compat:!0});let o=a.current,[s,c]=_.useState({action:o.action,location:o.location}),{v7_startTransition:l}=r||{},u=_.useCallback(e=>{l&&ds?ds(()=>c(e)):c(e)},[c,l]);return _.useLayoutEffect(()=>o.listen(u),[o,u]),_.useEffect(()=>Zo(r),[r]),_.createElement(ts,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}var ps=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,ms=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hs=_.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l,viewTransition:u}=e,d=os(e,ls),{basename:f}=_.useContext(bo),p,m=!1;if(typeof c==`string`&&ms.test(c)&&(p=c,ps))try{let e=new URL(window.location.href),t=c.startsWith(`//`)?new URL(e.protocol+c):new URL(c),n=$a(t.pathname,f);t.origin===e.origin&&n!=null?c=n+t.search+t.hash:m=!0}catch{}let h=Co(c,{relative:r}),g=vs(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r,viewTransition:u});function v(e){n&&n(e),e.defaultPrevented||g(e)}return _.createElement(`a`,as({},d,{href:p||h,onClick:m||i?n:v,ref:t,target:s}))}),gs;(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmit=`useSubmit`,e.UseSubmitFetcher=`useSubmitFetcher`,e.UseFetcher=`useFetcher`,e.useViewTransitionState=`useViewTransitionState`})(gs||={});var _s;(function(e){e.UseFetcher=`useFetcher`,e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(_s||={});function vs(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,c=Oo(),l=To(),u=Mo(e,{relative:o});return _.useCallback(t=>{if(cs(t,n)){t.preventDefault();let n=r===void 0?ja(l)===ja(u):r;c(e,{replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[l,c,u,r,i,n,e,a,o,s])}function ys(e,t){return function(){return e.apply(t,arguments)}}var{toString:bs}=Object.prototype,{getPrototypeOf:xs}=Object,{iterator:Ss,toStringTag:Cs}=Symbol,ws=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ts=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),ws(n,t))return!0;n=xs(n)}return!1},Es=(e,t)=>e!=null&&Ts(e,t)?e[t]:void 0,Ds=(e=>t=>{let n=bs.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Os=e=>(e=e.toLowerCase(),t=>Ds(t)===e),ks=e=>t=>typeof t===e,{isArray:As}=Array,js=ks(`undefined`);function Ms(e){return e!==null&&!js(e)&&e.constructor!==null&&!js(e.constructor)&&Is(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Ns=Os(`ArrayBuffer`);function Ps(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ns(e.buffer),t}var Fs=ks(`string`),Is=ks(`function`),Ls=ks(`number`),Rs=e=>typeof e==`object`&&!!e,zs=e=>e===!0||e===!1,Bs=e=>{if(!Rs(e))return!1;let t=xs(e);return(t===null||t===Object.prototype||xs(t)===null)&&!Ts(e,Cs)&&!Ts(e,Ss)},Vs=e=>{if(!Rs(e)||Ms(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Hs=Os(`Date`),Us=Os(`File`),Ws=e=>!!(e&&e.uri!==void 0),Gs=e=>e&&e.getParts!==void 0,Ks=Os(`Blob`),qs=Os(`FileList`),Js=e=>Rs(e)&&Is(e.pipe);function Ys(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Xs=Ys(),Zs=Xs.FormData===void 0?void 0:Xs.FormData,Qs=e=>{if(!e)return!1;if(Zs&&e instanceof Zs)return!0;let t=xs(e);if(!t||t===Object.prototype||!Is(e.append))return!1;let n=Ds(e);return n===`formdata`||n===`object`&&Is(e.toString)&&e.toString()===`[object FormData]`},$s=Os(`URLSearchParams`),[ec,tc,nc,rc]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(Os),ic=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function ac(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),As(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Ms(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function oc(e,t){if(Ms(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var sc=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,cc=e=>!js(e)&&e!==sc;function lc(...e){let{caseless:t,skipUndefined:n}=cc(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&oc(r,i)||i,o=ws(r,a)?r[a]:void 0;Bs(o)&&Bs(e)?r[a]=lc(o,e):Bs(e)?r[a]=lc({},e):As(e)?r[a]=e.slice():(!n||!js(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||Ms(n)||(ac(n,i),typeof n!=`object`||As(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];bc.call(n,t)&&i(n[t],t)}}return r}var uc=(e,t,n,{allOwnKeys:r}={})=>(ac(t,(t,r)=>{n&&Is(t)?Object.defineProperty(e,r,{__proto__:null,value:ys(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),dc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fc=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
8configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},pc=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&xs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},mc=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},hc=e=>{if(!e)return null;if(As(e))return e;let t=e.length;if(!Ls(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},gc=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&xs(Uint8Array)),_c=(e,t)=>{let n=(e&&e[Ss]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},vc=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},G=Os(`HTMLFormElement`),yc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:bc}=Object.prototype,xc=Os(`RegExp`),Sc=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};ac(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Cc=e=>{Sc(e,(t,n)=>{if(Is(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(Is(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},wc=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return As(e)?r(e):r(String(e).split(t)),n},Tc=()=>{},Ec=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Dc(e){return!!(e&&Is(e.append)&&e[Cs]===`FormData`&&e[Ss])}var Oc=e=>{let t=new WeakSet,n=e=>{if(Rs(e)){if(t.has(e))return;if(Ms(e))return e;if(!(`toJSON`in e)){t.add(e);let r=As(e)?[]:{};return ac(e,(e,t)=>{let i=n(e);!js(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},kc=Os(`AsyncFunction`),Ac=e=>e&&(Rs(e)||Is(e))&&Is(e.then)&&Is(e.catch),jc=((e,t)=>e?setImmediate:t?((e,t)=>(sc.addEventListener(`message`,({source:n,data:r})=>{n===sc&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),sc.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,Is(sc.postMessage)),Mc=typeof queueMicrotask<`u`?queueMicrotask.bind(sc):typeof process<`u`&&process.nextTick||jc,Nc=e=>e!=null&&Is(e[Ss]),K={isArray:As,isArrayBuffer:Ns,isBuffer:Ms,isFormData:Qs,isArrayBufferView:Ps,isString:Fs,isNumber:Ls,isBoolean:zs,isObject:Rs,isPlainObject:Bs,isEmptyObject:Vs,isReadableStream:ec,isRequest:tc,isResponse:nc,isHeaders:rc,isUndefined:js,isDate:Hs,isFile:Us,isReactNativeBlob:Ws,isReactNative:Gs,isBlob:Ks,isRegExp:xc,isFunction:Is,isStream:Js,isURLSearchParams:$s,isTypedArray:gc,isFileList:qs,forEac
8h:ac,merge:lc,extend:uc,trim:ic,stripBOM:dc,inherits:fc,toFlatObject:pc,kindOf:Ds,kindOfTest:Os,endsWith:mc,toArray:hc,forEachEntry:_c,matchAll:vc,isHTMLForm:G,hasOwnProperty:ws,hasOwnProp:ws,hasOwnInPrototypeChain:Ts,getSafeProp:Es,reduceDescriptors:Sc,freezeMethods:Cc,toObjectSet:wc,toCamelCase:yc,noop:Tc,toFiniteNumber:Ec,findKey:oc,global:sc,isContextDefined:cc,isSpecCompliantForm:Dc,toJSONObject:Oc,isAsyncFn:kc,isThenable:Ac,setImmediate:jc,asap:Mc,isIterable:Nc,isSafeIterable:e=>e!=null&&Ts(e,Ss)&&Nc(e)},Pc=K.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Fc=e=>{let t={},n,r,i;return e&&e.split(` 9`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Pc[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function Ic(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Lc=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Rc=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function zc(e,t){return K.isArray(e)?e.map(e=>zc(e,t)):Ic(String(e).replace(t,``))}var Bc=e=>zc(e,Lc),Vc=e=>zc(e,Rc);function Hc(e){let t=Object.create(null);return K.forEach(e.toJSON(),(e,n)=>{t[n]=Vc(e)}),t}var Uc=Symbol(`internals`);function Wc(e){return e&&String(e).trim().toLowerCase()}function Gc(e){return e===!1||e==null?e:K.isArray(e)?e.map(Gc):Bc(String(e))}function Kc(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var q=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qc(e,t,n,r,i){if(K.isFunction(r))return r.call(this,t,n);if(i&&(t=n),K.isString(t)){if(K.isString(r))return t.indexOf(r)!==-1;if(K.isRegExp(r))return r.test(t)}}function Jc(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Yc(e,t){let n=K.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var J=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Wc(t);if(!i)return;let a=K.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Gc(e))}let a=(e,t)=>K.forEach(e,(e,n)=>i(e,n,t));if(K.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(K.isString(e)&&(e=e.trim())&&!q(e))a(Fc(e),t);else if(K.isObject(e)&&K.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!K.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],K.hasOwnProp(n,i)?(r=n[i],n[i]=K.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Wc(e),e){let n=K.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Kc(e);if(K.isFunction(t))return t.call(this,e,n);if(K.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Wc(e),e){let n=K.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||qc(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Wc(e),e){let i=K.findKey(n,e);i&&(!t||qc(n,n[i],i,t))&&(delete n[i],r=!0)}}return K.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||qc(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return K.forEach(this,(r,i)=>{let a=K.findKey(n,i);if(a){t[a]=Gc(r),delete t[i];return}let o=e?Jc(i):String(i).trim();o!==i&&delete t[i],t[o]=Gc(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return K.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&K.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(` 10`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);
10return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Uc]=this[Uc]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Wc(e);t[r]||(Yc(n,e),t[r]=!0)}return K.isArray(e)?e.forEach(r):r(e),this}};J.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),K.reduceDescriptors(J.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),K.freezeMethods(J);var Xc=`[REDACTED ****]`;function Zc(e){if(K.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(K.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function Qc(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||K.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof J&&(e=e.toJSON()),r.push(e);let t;if(K.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);K.isUndefined(r)||(t[n]=r)});else{if(!K.isPlainObject(e)&&Zc(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?Xc:i(a);K.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var Y=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return Object.defineProperty(s,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&K.hasOwnProp(e,`redact`)?e.redact:void 0,n=K.isArray(t)&&t.length>0?Qc(e,t):K.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};Y.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,Y.ERR_BAD_OPTION=`ERR_BAD_OPTION`,Y.ECONNABORTED=`ECONNABORTED`,Y.ETIMEDOUT=`ETIMEDOUT`,Y.ECONNREFUSED=`ECONNREFUSED`,Y.ERR_NETWORK=`ERR_NETWORK`,Y.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,Y.ERR_DEPRECATED=`ERR_DEPRECATED`,Y.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,Y.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,Y.ERR_CANCELED=`ERR_CANCELED`,Y.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,Y.ERR_INVALID_URL=`ERR_INVALID_URL`,Y.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function $c(e){return K.isPlainObject(e)||K.isArray(e)}function el(e){return K.endsWith(e,`[]`)?e.slice(0,-2):e}function tl(e,t,n){return e?e.concat(t).map(function(e,t){return e=el(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function nl(e){return K.isArray(e)&&!e.some($c)}var rl=K.toFlatObject(K,{},null,function(e){return/^is[A-Z]/.test(e)});function il(e,t,n){if(!K.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!K.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&K.isSpecCompliantForm(t),u=[];if(!K.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!l&&K.isBlob(e))throw new Y(`Blob is not supported. Use a Buffer instead.`);if(K.isArrayBuffer(e)||K.isTypedArray(e)){if(l&&typeof s==`function`)return new s([e]);if(typeof Buffer<`u`)return Buffer.from(e);throw new Y(`Blob is not supported. Use a Buffer instead.`,Y.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new Y(`Object is too deeply nested (`+e+` levels). Max depth: `+c,Y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!K.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(K.isReactNative(t)&&K.isReactNativeBlob(e))return t.append(tl(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(K.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(K.isArray(e)&&nl(e)||(K.isFileList(e)||K.endsWith(n,`[]`))&&(s=K.toArray(e)))return n=el(n),s.forEac
10h(function(e,r){!(K.isUndefined(e)||e===null)&&t.append(o===!0?tl([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return $c(e)?!0:(t.append(tl(i,n,a),d(e)),!1)}let h=Object.assign(rl,{defaultVisitor:m,convertValue:d,isVisitable:$c});function g(e,n,r=0){if(!K.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),K.forEach(e,function(e,a){(!(K.isUndefined(e)||e===null)&&i.call(t,e,K.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!K.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function al(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ol(e,t){this._pairs=[],e&&il(e,this,t)}var sl=ol.prototype;sl.append=function(e,t){this._pairs.push([e,t])},sl.toString=function(e){let t=e?t=>e.call(this,t,al):al;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function cl(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function ll(e,t,n){if(!t)return e;e||=``;let r=K.isFunction(n)?{serialize:n}:n,i=K.getSafeProp(r,`encode`)||cl,a=K.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):K.isURLSearchParams(t)?t.toString():new ol(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var ul=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){K.forEach(this.handlers,function(t){t!==null&&e(t)})}},dl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},fl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:ol,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},pl=s({hasBrowserEnv:()=>ml,hasStandardBrowserEnv:()=>gl,hasStandardBrowserWebWorkerEnv:()=>_l,navigator:()=>hl,origin:()=>vl}),ml=typeof window<`u`&&typeof document<`u`,hl=typeof navigator==`object`&&navigator||void 0,gl=ml&&(!hl||[`ReactNative`,`NativeScript`,`NS`].indexOf(hl.product)<0),_l=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,vl=ml&&window.location.href||`http://localhost`,X={...pl,...fl};function yl(e,t){return il(e,new X.classes.URLSearchParams,{visitor:function(e,t,n,r){return X.isNode&&K.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var bl=100;function xl(e){if(e>bl)throw new Y(`FormData field is too deeply nested (`+e+` levels). Max depth: `+bl,Y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Sl(e){let t=[],n=/\w+|\[(\w*)]/g,r;for(;(r=n.exec(e))!==null;)xl(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Cl(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function wl(e){function t(e,n,r,i){xl(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&K.isArray(r)?r.length:a,s?(K.hasOwnProp(r,a)?r[a]=K.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!K.hasOwnProp(r,a)||!K.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&K.isArray(r[a])&&(r[a]=Cl(r[a])),!o)}if(K.isFormData(e)&&K.isFunction(e.entries)){let n={};return K.forEachEntry(e,(e,r)=>{t(Sl(e),r,n,0)}),n}return null}var Tl=(e,t)=>
10e!=null&&K.hasOwnProp(e,t)?e[t]:void 0;function El(e,t,n){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Dl={transitional:dl,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=K.isObject(e);if(i&&K.isHTMLForm(e)&&(e=new FormData(e)),K.isFormData(e))return r?JSON.stringify(wl(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Tl(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return yl(e,t).toString();if((a=K.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Tl(this,`env`),r=n&&n.FormData;return il(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),El(e)):e}],transformResponse:[function(e){let t=Tl(this,`transitional`)||Dl.transitional,n=t&&t.forcedJSONParsing,r=Tl(this,`responseType`),i=r===`json`;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Tl(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?Y.from(e,Y.ERR_BAD_RESPONSE,this,null,Tl(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:X.classes.FormData,Blob:X.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};K.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Dl.headers[e]={}});function Ol(e,t){let n=this||Dl,r=t||n,i=J.from(r.headers),a=r.data;return K.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function kl(e){return!!(e&&e.__CANCEL__)}var Al=class extends Y{constructor(e,t,n){super(e??`canceled`,Y.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function jl(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Y(`Request failed with status code `+n.status,n.status>=400&&n.status<500?Y.ERR_BAD_REQUEST:Y.ERR_BAD_RESPONSE,n.config,n.request,n))}function Ml(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Nl(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Pl(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Fl=(e,t,n=3)=>{let r=0,i=Nl(50,250);return Pl(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Il=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ll=e=>(...t)=>K.asap(()=>e(...t)),Rl=X.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,X.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(X.origin),X.navigator&&/(msie|trident)/i.test(X.navigator.userAgent)):()=>!0,zl=X.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];K.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),K.isString(r)&&s.push(`path=${r}`),K.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),K.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);
10if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Bl(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vl(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}var Hl=/^https?:(?!\/\/)/i,Ul=/[\t\n\r]/g;function Wl(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Gl(e){return Wl(e).replace(Ul,``)}function Kl(e,t){if(typeof e==`string`&&Hl.test(Gl(e)))throw new Y(`Invalid URL: missing "//" after protocol`,Y.ERR_INVALID_URL,t)}function ql(e,t,n,r){Kl(t,r);let i=!Bl(t);return e&&(i||n===!1)?(Kl(e,r),Vl(e,t)):t}var Jl=e=>e instanceof J?{...e}:e;function Yl(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function i(e,t,n,i){if(!K.isUndefined(t))return r(e,t,n,i);if(!K.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!K.isUndefined(t))return r(void 0,t)}function o(e,t){if(!K.isUndefined(t))return r(void 0,t);if(!K.isUndefined(e))return r(void 0,e)}function s(n){let r=K.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!K.isUndefined(r))if(K.isPlainObject(r)){if(K.hasOwnProp(r,n))return r[n]}else return;let i=K.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(K.isPlainObject(i)&&K.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(K.hasOwnProp(t,a))return r(n,i);if(K.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(Jl(e),Jl(t),n,!0)};return K.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=K.hasOwnProp(l,r)?l[r]:i,o=a(K.hasOwnProp(e,r)?e[r]:void 0,K.hasOwnProp(t,r)?t[r]:void 0,r);K.isUndefined(o)&&a!==c||(n[r]=o)}),K.hasOwnProp(t,`validateStatus`)&&K.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(K.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.val
10idateStatus),n}var Xl=[`content-type`,`content-length`];function Zl(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{Xl.includes(t.toLowerCase())&&e.set(t,n)})}var Ql=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function $l(e){let t=Yl({},e),n=e=>K.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=J.from(s),t.url=ll(ql(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=K.getSafeProp(c,`username`)||``,n=K.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?Ql(n):``)))}catch(t){throw Y.from(t,Y.ERR_BAD_OPTION_VALUE,e)}}if(K.isFormData(r)&&(X.hasStandardBrowserEnv||X.hasStandardBrowserWebWorkerEnv||K.isReactNative(r)?s.setContentType(void 0):K.isFunction(r.getHeaders)&&Zl(s,r.getHeaders(),n(`formDataHeaderPolicy`))),X.hasStandardBrowserEnv&&(K.isFunction(i)&&(i=i(t)),i===!0||i==null&&Rl(t.url))){let e=a&&o&&zl.read(o);e&&s.set(a,e)}return t}var eu=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=$l(e),i=r.data,a=J.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=J.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());jl(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new Y(`Request aborted`,Y.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new Y(t&&t.message?t.message:`Network Error`,Y.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||dl;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Y(t,i.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&K.forEach(Hc(a),function(e,t){h.setRequestHeader(t,e)}),K.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Fl(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Fl(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Al(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Ml(r.url);if(_&&!X.protocols.includes(_)){n(new Y(`Unsupported protocol `+_+`:`,Y.ERR_BAD_REQUEST,e)),m();return}h.send(i||null)})},tu=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof Y?t:new Al(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new Y(`timeout of ${t}ms exceeded`,Y.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>K.asap(o),s},nu=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},ru=async function*(e,t){for await(let n of iu(e))yield*nu(n,t)},iu=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},au=(e,t,n,r)=>{let i=ru(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},ou=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,su=(e,t,n)=>t+2<n&&ou(e.charCodeAt(t+1))&&ou(e.charCodeAt(t+2));function cu(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);ou(t)&&ou(i)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;
10let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n===37&&su(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var lu=`1.18.1`,uu=65536,{isFunction:du}=K,fu=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),pu=e=>{if(!K.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},mu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},hu=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},gu=e=>{let t=K.global!==void 0&&K.global!==null?K.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=K.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?du(i):typeof fetch==`function`,c=du(a),l=du(o);if(!s)return!1;let u=s&&du(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&mu(()=>{let e=!1,t=new a(X.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&mu(()=>K.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e))return(await new a(X.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(K.isArrayBufferView(e)||K.isArrayBuffer(e))return e.byteLength;if(K.isURLSearchParams(e)&&(e+=``),K.isString(e))return(await d(e)).byteLength},g=async(e,t)=>K.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T}=$l(e),ee=K.isNumber(w)&&w>-1,E=K.isNumber(T)&&T>-1,te=t=>K.hasOwnProp(e,t)?e[t]:void 0,ne=i||fetch;b=b?(b+``).toLowerCase():`text`;let re=tu([l,d&&d.toAbortSignal()],_),D=null,O=re&&re.unsubscribe&&(()=>{re.unsubscribe()}),ie,k=null,ae=()=>new Y(`Request body larger than maxBodyLength limit`,Y.ERR_BAD_REQUEST,e,D);try{let i,l=te(`auth`);if(l&&(i={username:K.getSafeProp(l,`username`)||``,password:K.getSafeProp(l,`password`)||``}),hu(t)){let e=new URL(t,X.origin);!i&&(e.username||e.password)&&(i={username:pu(e.username),password:pu(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(fu((i.username||``)+`:`+(i.password||``))))),ee&&typeof t==`string`&&t.startsWith(`data:`)&&cu(t)>w)throw new Y(`maxContentLength size of `+w+` exceeded`,Y.ERR_BAD_RESPONSE,e,D);if(E&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(ie=e,e>T))throw ae()}let d=E&&(K.isReadableStream(s)||K.isStream(s)),_=(e,t,n)=>au(e,uu,e=>{if(E&&e>T)throw k=ae();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(ie??=await g(x,s),ie!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(K.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&Il(ie,Fl(Ll(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new Y(`Stream request bodies are not supported by the current fetch implementation`,Y.ERR_NOT_SUPPORT,e,D);K.isString(S)||(S=S?`include`:`omit`);let A=c&&`credentials`in a.prototype;if(K.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+lu,!1);let j={...C,signal:re,method:n.toUpperCase(),headers:Hc(x.normalize()),body:s,duplex:`half`,credentials:A?S:void 0};D=c&&new a(t,j);let oe=await(c?ne(D,C):ne(t,j)),M=J.from(oe.headers);if(ee){let t=K.toFiniteNumber(M.getContentLength());if(t!=null&&t>w)throw new Y(`maxContentLength size of `+w+` exceeded`,Y.ERR_BAD_RESPONSE,e,D)}let se=p&&(b===`stream`||b===`response`);if(p&&oe.body&&(v||ee||se&&O)){let t={};
10[`status`,`statusText`,`headers`].forEach(e=>{t[e]=oe[e]});let n=K.toFiniteNumber(M.getContentLength()),[r,i]=v&&Il(n,Fl(Ll(v),!0))||[],a=0;oe=new o(au(oe.body,uu,t=>{if(ee&&(a=t,a>w))throw new Y(`maxContentLength size of `+w+` exceeded`,Y.ERR_BAD_RESPONSE,e,D);r&&r(t)},()=>{i&&i(),O&&O()}),t)}b||=`text`;let N=await m[K.findKey(m,b)||`text`](oe,e);if(ee&&!p&&!se){let t;if(N!=null&&(typeof N.byteLength==`number`?t=N.byteLength:typeof N.size==`number`?t=N.size:typeof N==`string`&&(t=typeof r==`function`?new r().encode(N).byteLength:N.length)),typeof t==`number`&&t>w)throw new Y(`maxContentLength size of `+w+` exceeded`,Y.ERR_BAD_RESPONSE,e,D)}return!se&&O&&O(),await new Promise((t,n)=>{jl(t,n,{data:N,headers:J.from(oe.headers),status:oe.status,statusText:oe.statusText,config:e,request:D})})}catch(t){if(O&&O(),re&&re.aborted&&re.reason instanceof Y){let n=re.reason;throw n.config=e,D&&(n.request=D),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(k)throw D&&!k.request&&(k.request=D),k;if(t instanceof Y)throw D&&!t.request&&(t.request=D),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new Y(`Network Error`,Y.ERR_NETWORK,e,D,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw Y.from(t,t&&t.code,e,D,t&&t.response)}}},_u=new Map,vu=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=_u;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:gu(t)),l=c;return c};vu();var yu={http:null,xhr:eu,fetch:{get:vu}};K.forEach(yu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var bu=e=>`- ${e}`,xu=e=>K.isFunction(e)||e===null||e===!1;function Su(e,t){e=K.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!xu(r)&&(i=yu[(n=String(r)).toLowerCase()],i===void 0))throw new Y(`Unknown adapter '${n}'`);if(i&&(K.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new Y(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since : 11`+e.map(bu).join(` 12`):` `+bu(e[0]):`as no adapter specified`),Y.ERR_NOT_SUPPORT)}return i}var Cu={getAdapter:Su,adapters:yu};function wu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Al(null,e)}function Tu(e){return wu(e),e.headers=J.from(e.headers),e.data=Ol.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Cu.getAdapter(e.adapter||Dl.adapter,e)(e).then(function(t){wu(e),e.response=t;try{t.data=Ol.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=J.from(t.headers),t},function(t){if(!kl(t)&&(wu(e),t&&t.response)){e.response=t.response;try{t.response.data=Ol.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=J.from(t.response.headers)}return Promise.reject(t)})}var Eu={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Eu[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Du={};Eu.transitional=function(e,t,n){function r(e,t){return`[Axios v`+lu+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new Y(r(i,` has been removed`+(t?` in `+t:``)),Y.ERR_DEPRECATED);return t&&!Du[i]&&(Du[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},Eu.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Ou(e,t,n){if(typeof e!=`object`||!e)throw new Y(`options must be an object`,Y.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new Y(`option `+a+` must be `+n,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y(`Unknown option `+a,Y.ERR_BAD_OPTION)}}var ku={assertOptions:Ou,validators:Eu},Au=ku.validators,ju=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ul,response:new ul}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>
12{if(!t.stack)return``;let e=t.stack.indexOf(` 13`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(` 14`),r=t===-1?-1:n.indexOf(` 15`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=` 16`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Yl(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&ku.assertOptions(n,{silentJSONParsing:Au.transitional(Au.boolean),forcedJSONParsing:Au.transitional(Au.boolean),clarifyTimeoutError:Au.transitional(Au.boolean),legacyInterceptorReqResOrdering:Au.transitional(Au.boolean),advertiseZstdAcceptEncoding:Au.transitional(Au.boolean),validateStatusUndefinedResolves:Au.transitional(Au.boolean)},!1),r!=null&&(K.isFunction(r)?t.paramsSerializer={serialize:r}:ku.assertOptions(r,{encode:Au.function,serialize:Au.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),ku.assertOptions(t,{baseUrl:Au.spelling(`baseURL`),withXsrfToken:Au.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&K.merge(i.common,i[t.method]);
16i&&K.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=J.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||dl;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Tu.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Tu.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Yl(this.defaults,e),ll(ql(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};K.forEach([`delete`,`get`,`head`,`options`],function(e){ju.prototype[e]=function(t,n){return this.request(Yl(n||{},{method:e,url:t,data:n&&K.hasOwnProp(n,`data`)?n.data:void 0}))}}),K.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(Yl(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}ju.prototype[e]=t(),e!==`query`&&(ju.prototype[e+`Form`]=t(!0))});var Mu=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Al(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Nu(e){return function(t){return e.apply(null,t)}}function Pu(e){return K.isObject(e)&&e.isAxiosError===!0}var Fu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
16alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Fu).forEach(([e,t])=>{Fu[t]=e});function Iu(e){let t=new ju(e),n=ys(ju.prototype.request,t);return K.extend(n,ju.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Iu(Yl(e,t))},n}var Lu=Iu(Dl);Lu.Axios=ju,Lu.CanceledError=Al,Lu.CancelToken=Mu,Lu.isCancel=kl,Lu.VERSION=lu,Lu.toFormData=il,Lu.AxiosError=Y,Lu.Cancel=Lu.CanceledError,Lu.all=function(e){return Promise.all(e)},Lu.spread=Nu,Lu.isAxiosError=Pu,Lu.mergeConfig=Yl,Lu.AxiosHeaders=J,Lu.formToJSON=e=>wl(K.isHTMLForm(e)?new FormData(e):e),Lu.getAdapter=Cu.getAdapter,Lu.HttpStatusCode=Fu,Lu.default=Lu;var Ru=typeof window>`u`,zu=!Ru&&window.self!==window.top,Bu=!Ru&&typeof document>`u`,Vu=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Hu=[];for(let e=0;e<256;++e)Hu.push((e+256).toString(16).slice(1));function Uu(e,t=0){return(Hu[e[t+0]]+Hu[e[t+1]]+Hu[e[t+2]]+Hu[e[t+3]]+`-`+Hu[e[t+4]]+
16Hu[e[t+5]]+`-`+Hu[e[t+6]]+Hu[e[t+7]]+`-`+Hu[e[t+8]]+Hu[e[t+9]]+`-`+Hu[e[t+10]]+Hu[e[t+11]]+Hu[e[t+12]]+Hu[e[t+13]]+Hu[e[t+14]]+Hu[e[t+15]]).toLowerCase()}var Wu,Gu=new Uint8Array(16);function Ku(){if(!Wu){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);Wu=crypto.getRandomValues.bind(crypto)}return Wu(Gu)}var qu={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ju(e,t,n){e||={};let r=e.random??e.rng?.()??Ku();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Uu(r)}function Yu(e,t,n){return qu.randomUUID&&!t&&!e?qu.randomUUID():Ju(e,t,n)}var Xu=typeof window<`u`?window:{base44SharedInstances:{}};function Zu(e,t){return Xu.base44SharedInstances||={},Xu.base44SharedInstances[e]||(Xu.base44SharedInstances[e]={instance:t()}),Xu.base44SharedInstances[e].instance}var Qu=`__user_heartbeat_event__`,$u=`__initialization_event__`,ed=`__session_duration_event__`,td=`analytics-enable`,nd=`base44_analytics_session_id`,rd={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:6e4},Z=Zu(`analytics`,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...rd,...gd()}})),id=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r,enabled:i})=>{let{maxQueueSize:a,throttleTime:o,batchSize:s}=Z.config;if(!i||!Z.config?.enabled||Bu)return{track:()=>{},cleanup:()=>{}};let c,l=`${t}/api/apps/${n}/analytics/track/batch`,u=async t=>{await e.request({method:`POST`,url:`/apps/${n}/analytics/track/batch`,data:{events:t}})},d=e=>{try{let t=JSON.stringify({events:e}),n=new Blob([t],{type:`application/json`});return typeof navigator>`u`||t.length>6e4||!navigator.sendBeacon(l,n)}catch{return!1}},f=async(e,t={})=>{if(e.length===0)return;let n=await hd(r),i=e.map(fd(n));try{(!t.isBeacon||!d(i))&&await u(i)}catch{}},p=()=>{od(f,{throttleTime:o,batchSize:s})},m=e=>{if(Z.requestsQueue.length>=a)return;let t=dd();Z.requestsQueue.push({...e,...t}),p()},h=()=>{od(f,{throttleTime:o,batchSize:s}),c=sd(m),ld()},g=()=>{ad(),c?.(),ud(m);let e=Z.requestsQueue.splice(0);f(e,{isBeacon:!0})},_=()=>{typeof window>`u`||(document.visibilityState===`hidden`?g():document.visibilityState===`visible`&&h())};return p(),c=sd(m),cd(m),typeof window<`u`&&window.addEventListener(`visibilitychange`,_),{track:m,cleanup:()=>{ad(),c?.(),typeof window<`u`&&window.removeEventListener(`visibilitychange`,_)}}};function ad(){Z.isProcessing=!1}async function od(e,t){if(Z.isProcessing)return;Z.isProcessing=!0;let{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;Z.isProcessing&&Z.requestsQueue.length>0;){let t=Z.requestsQueue.splice(0,r);t.length&&await e(t),await new Promise(e=>setTimeout(e,n))}Z.isProcessing=!1}function sd(e){if(typeof window>`u`||Z.isHeartBeatProcessing||(Z.config.heartBeatInterval??0)<10)return()=>{};Z.isHeartBeatProcessing=!0;let t=setInterval(()=>{e({eventName:Qu})},Z.config.heartBeatInterval);return()=>{clearInterval(t),Z.isHeartBeatProcessing=!1}}function cd(e){typeof window>`u`||Z.wasInitializationTracked||(Z.wasInitializationTracked=!0,e({eventName:$u,properties:{referrer:document==null?void 0:document.referrer}}))}function ld(){typeof window>`u`||Z.sessionStartTime!==null||(Z.sessionStartTime=new Date().toISOString())}function ud(e){if(typeof window>`u`||Z.sessionStartTime===null)return;let t=new Date().getTime()-new Date(Z.sessionStartTime).getTime();Z.sessionStartTime=null,e({eventName:ed,properties:{sessionDuration:t}})}function dd(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<`u`?window.location?.pathname??null:null}}function fd(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}var pd=null;function md(){Z.sessionContext=null,pd=null}async function hd(e){if(!Z.sessionContext){if(!e.hasToken())return{user_id:null,
16session_id:vd()};if(!pd){let t=vd();pd=e.me().then(e=>({user_id:e.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}let t=pd,n=await t;return pd===t&&(Z.sessionContext=n),n}return Z.sessionContext}function gd(){if(typeof window>`u`||!window.location)return;let e=new URLSearchParams(window.location.search).get(td);if(e==null||!e.length)return;let t=new URLSearchParams(window.location.search);t.delete(td);let n=window.location.pathname+(t.toString()?`?`+t.toString():``);return window.history.replaceState({},``,n),{enabled:e===`true`}}function _d(){return Z.fallbackSessionId??=Vu()}function vd(){if(typeof window>`u`)return _d();try{let e=localStorage.getItem(nd);if(!e){let e=Vu();return localStorage.setItem(nd,e),e}return e}catch{return _d()}}var yd=class extends Error{constructor(e,t,n,r,i){super(e),this.name=`Base44Error`,this.status=t,this.code=n,this.data=r,this.originalError=i}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}};function bd({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:i}){let a=Lu.create({baseURL:e,headers:{"Content-Type":`application/json`,Accept:`application/json`,...t}});return n&&(a.defaults.headers.common.Authorization=`Bearer ${n}`),a.interceptors.request.use(t=>{typeof window<`u`&&(window.location&&t.headers.set(`X-Origin-URL`,window.location.href),t.headers.get(`Authorization`)||t.headers.set(`X-Base44-Anonymous-Id`,vd()));let n=Yu();if(t.requestId=n,zu)try{window.parent.postMessage({type:`api-request-start`,requestId:n,data:{url:e+t.url,method:t.method,body:t.data instanceof FormData?`[FormData object]`:t.data}},`*`)}catch{}return t}),r&&a.interceptors.response.use(e=>{let t=e.config?.requestId;try{zu&&t&&window.parent.postMessage({type:`api-request-end`,requestId:t,data:{statusCode:e.status,response:e.data}},`*`)}catch{}return e.data},e=>{var t;let n=e.response?.data,r=new yd(n?.error?.message||n?.message||n?.detail||e.message,e.response?.status,n?.error?.code??n?.code??((t=e.response?.headers)?.get)?.call(t,`x-base44-connector-error`)??e.response?.headers?.[`x-base44-connector-error`],n,e);return i?.(r),Promise.reject(r)}),a}function xd(e){let{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(e,i){if(!(typeof i!=`string`||i===`then`||i.startsWith(`_`)))return Td(t,n,i,r)}})}function Sd(e){try{let t=JSON.parse(e);return{type:t.type,data:t.data,id:t.id||t.data?.id,timestamp:t.timestamp||new Date().toISOString()}}catch(e){return console.warn(`[Base44 SDK] Failed to parse realtime message:`,e),null}}var Cd=100;function wd(e){return typeof e==`object`&&!!e}function Td(e,t,n,r){let i=`/apps/${t}/entities/${n}`,a=e=>Array.isArray(e)?e.join(`,`):e,o=(t,n,r,o,s)=>{let c={};return s&&(c.q=JSON.stringify(s)),t&&(c.sort=t),n&&(c.limit=n),r&&(c.skip=r),o&&(c.fields=a(o)),e.get(i,{params:c})},s=(t,n)=>{let r={};return n&&(r.q=JSON.stringify(n)),r.limit=t.limit||Cd,t.cursor&&(r.cursor=t.cursor),`distinct`in t?r.distinct=t.distinct:(t.sort&&(r.sort=t.sort),t.fields&&(r.fields=a(t.fields))),e.get(`${i}/v2/list`,{params:r})};return{async list(...e){let[t,n,r,i]=e;return wd(t)?s(t):o(t,n,r,i)},async filter(e,...t){let[n,r,i,a]=t;return wd(n)?s(n,e):o(n,r,i,a,e)},async get(t){return e.get(`${i}/${t}`)},async create(t){return e.post(i,t)},async update(t,n){return e.put(`${i}/${t}`,n)},async delete(t){return e.delete(`${i}/${t}`)},async deleteMany(t){return e.delete(i,{data:t})},async bulkCreate(t){return e.post(`${i}/bulk`,t)},async updateMany(t,n){return e.patch(`${i}/update-many`,{query:t,data:n})},async count(t){let n={};return t&&(n.q=JSON.stringify(t)),(await e.get(`${i}/count`,{params:n})).count},async aggregate(t){return e.post(`${i}/aggregate`,t)},async upsert(t,n){return e.post(`${i}/upsert`,{records:t,key:n.key})},async bulkUpdate(t){return e.put(`${i}/bulk`,t)},async importEntities(t){let n=new FormData;return n.append(`file`,t,t.name),e.post(`${i}/import`,n,{headers:{"Content-Type":`multipart/form-data`}})},subscribe(e){let i=`entities:${t}:${n}`;return r().subscribeToRoom(i,{update_model:t=>{let r=Sd(t.data);if(r){r.type!==`delete`&&r.data?._oversize&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${r.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${r.id}")\` to fetch the full record.`);try{e(r)}catch(e){console.error(`[Base44 SDK] Subscription callback error:`,e)}}}})}}}function Ed(e,t){return{async call(n,r,i){if(!n?.trim())throw Error(`Integration slug is required and cannot be empty`);if(!r?.trim())throw Error(`Operation ID is required and cannot be empty`);let{pathParams:a,queryParams:o,...s}=i??{},c={...s,...a&&{path_params:a},...o&&{query_params:o}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,c)}}}function Dd(e,t){let n=Ed(e,t);return new Proxy({},{get(r,i){if(!(typeof i!=`string`||i===`then`||i.startsWith(`_`)))return i===`custom`?n:new Proxy({},{get(n,r){if(!(typeof r!=`string`||r===`then`||r.startsWith(`_`)))return async n=>{if(typeof n==`string`)throw Error(`Integration ${r} must receive an object with named parameters, received: ${n}`);let a,o;return n instanceof FormData||n&&Object.values(n).some(e=>
16e instanceof File)?(a=new FormData,Object.keys(n).forEach(e=>{n[e]instanceof File?a.append(e,n[e],n[e].name):typeof n[e]==`object`&&n[e]!==null?a.append(e,JSON.stringify(n[e])):a.append(e,n[e])}),o=`multipart/form-data`):(a=n,o=`application/json`),i===`Core`?e.post(`/apps/${t}/integration-endpoints/Core/${r}`,a||n,{headers:{"Content-Type":o}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${r}`,a||n,{headers:{"Content-Type":o}})}}})}})}function Od(){return typeof window>`u`?!1:window!==window.parent}function kd(e,t,n){let r=Math.round(window.screenX+(window.outerWidth-500)/2),i=Math.round(window.screenY+(window.outerHeight-600)/2),a=window.open(e,`base44_auth`,`width=500,height=600,left=${r},top=${i},resizable=yes,scrollbars=yes`);if(!a)return;let o=()=>{window.removeEventListener(`message`,s),clearInterval(c),a.closed||a.close()},s=e=>{if(e.origin!==n||e.source!==a||!e.data?.access_token)return;o();let r=new URL(t),{access_token:i,is_new_user:s}=e.data;r.searchParams.set(`access_token`,i),s!=null&&r.searchParams.set(`is_new_user`,String(s)),window.location.href=r.toString()},c=setInterval(()=>{a.closed&&o()},500);window.addEventListener(`message`,s)}function Ad(e,t,n,r){let i=null,a=()=>{i=null},o=!!r.token;return{hasToken(){return o},async me(){let t=i??e.get(`/apps/${n}/entities/User/me`).finally(()=>{i===t&&(i=null)});return i=t,t},async updateMe(t){return e.put(`/apps/${n}/entities/User/me`,t)},redirectToLogin(e){if(typeof window>`u`)throw Error(`Login method can only be used in a browser environment`);let t=e?new URL(e,window.location.origin).toString():window.location.href,n=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(t)}`;window.location.href=n},loginWithProvider(e,t=`/`){let i=new URL(t,window.location.origin).toString(),a=`app_id=${n}&from_url=${encodeURIComponent(i)}`,o;o=e===`sso`?`/apps/${n}/auth/sso/login`:`/apps/auth${e===`google`?``:`/${e}`}/login`;let s=`${r.appBaseUrl}/api${o}?${a}`;if(Od())return kd(`${s}&popup_origin=${encodeURIComponent(window.location.origin)}`,i,window.location.origin);window.location.href=s},logout(t){if(delete e.defaults.headers.common.Authorization,a(),md(),o=!1,typeof window<`u`){if(window.localStorage)try{window.localStorage.removeItem(`base44_access_token`),window.localStorage.removeItem(`token`)}catch(e){console.error(`Failed to remove token from localStorage:`,e)}let e=t||window.location.href,n=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(e)}`;window.location.href=n}},setToken(n,r=!0){if(n&&(a(),md(),o=!0,e.defaults.headers.common.Authorization=`Bearer ${n}`,t.defaults.headers.common.Authorization=`Bearer ${n}`,r&&typeof window<`u`&&window.localStorage))try{window.localStorage.setItem(`base44_access_token`,n),window.localStorage.setItem(`token`,n)}catch(e){console.error(`Failed to save token to localStorage:`,e)}},async loginViaEmailPassword(t,r,i){try{let{access_token:a,user:o}=await e.post(`/apps/${n}/auth/login`,{email:t,password:r,...i&&{turnstile_token:i}});return a&&this.setToken(a),{access_token:a,user:o}}catch(e){throw e.response?.status===401&&await this.logout(),e}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(t,r){return e.post(`/apps/${n}/users/invite-user`,{user_email:t,role:r})},register(t){return e.post(`/apps/${n}/auth/register`,t)},verifyOtp({email:t,otpCode:r}){return e.post(`/apps/${n}/auth/verify-otp`,{email:t,otp_code:r})},resendOtp(t){return e.post(`/apps/${n}/auth/resend-otp`,{email:t})},resetPasswordRequest(t){return e.post(`/apps/${n}/auth/reset-password-request`,{email:t})},resetPassword({resetToken:t,newPassword:r}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:t,new_password:r})},changePassword({userId:t,currentPassword:r,newPassword:i}){return e.post(`/apps/${n}/auth/change-password`,{user_id:t,current_password:r,new_password:i})}}}function jd(e,t){return{async getAccessToken(n){let r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){let r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}var Md=new Set([`GET`,`POST`,`PUT`,`PATCH`,`DELETE`,`HEAD`]);
16function Nd(e,t){return{async getAccessToken(n){if(!n||typeof n!=`string`)throw Error(`Integration type is required and must be a string`);return(await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){if(!n||typeof n!=`string`)throw Error(`Integration type is required and must be a string`);let r=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:r.access_token,connectionConfig:r.connection_config??null}},async getWorkspaceConnection(n){if(!n||typeof n!=`string`)throw Error(`Connector ID is required and must be a string`);let r=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:r.access_token,connectionConfig:r.connection_config??null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!=`string`)throw Error(`Connector ID is required and must be a string`);return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){if(!n||typeof n!=`string`)throw Error(`Connector ID is required and must be a string`);let r=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:r.access_token,connectionConfig:r.connection_config??null}},async callApi(n,r){return Pd(n,`Integration type`),Fd(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,r)}}}function Pd(e,t){if(!e||typeof e!=`string`)throw Error(`${t} is required and must be a string`)}async function Fd(e,t,n){if(!n||typeof n!=`object`)throw Error(`Request is required and must be an object`);Pd(n.path,`Request path`);let r=n.method??`GET`;if(!Md.has(r))throw Error(`Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD`);let i=await e.post(t,{method:r,...n.host==null?{}:{host:n.host},path:n.path,query:n.query??{},headers:n.headers??{},body:n.body??null});return{success:i.success,phase:i.phase,status:i.status_code??null,data:i.data,dataBase64:i.data_base64??null,contentType:i.content_type??null,headers:i.headers??{},creditsCharged:i.credits_charged??0}}function Id(e,t){return{async connectAppUser(n){if(!n||typeof n!=`string`)throw Error(`Connector ID is required and must be a string`);return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!=`string`)throw Error(`Connector ID is required and must be a string`);await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}
16function Ld(e={}){let{storageKey:t=`base44_access_token`,paramName:n=`access_token`,saveToStorage:r=!0,removeFromUrl:i=!0}=e,a=null;if(typeof window<`u`&&window.location)try{let e=new URLSearchParams(window.location.search);if(a=e.get(n),a){if(r&&Rd(a,{storageKey:t}),i){e.delete(n);let t=`${window.location.pathname}${e.toString()?`?${e.toString()}`:``}${window.location.hash}`;window.history.replaceState({},document.title,t)}return a}}catch(e){console.error(`Error retrieving token from URL:`,e)}if(typeof window<`u`&&window.localStorage)try{return a=window.localStorage.getItem(t),a}catch(e){console.error(`Error retrieving token from local storage:`,e)}return null}function Rd(e,t){let{storageKey:n=`base44_access_token`}=t;if(typeof window>`u`||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem(`token`,e),!0}catch(e){return console.error(`Error saving token to local storage:`,e),!1}}function zd({axios:e,serviceRoleAxios:t,appId:n,serverUrl:r,functionsVersion:i,platformHeaders:a}){let o=new Headers(a),s=e=>{let t=e.defaults.headers.common.Authorization;return typeof t==`string`&&t.startsWith(`Bearer `)?t:null};return async function(a,c={}){Bd(a);let{fetch:l=fetch,...u}=c,d=new Headers(c.headers),f=(e,t)=>{t&&!d.has(e)&&d.set(e,t)};return f(`Authorization`,s(e)),f(`Base44-Service-Authorization`,s(t)),f(`Base44-App-Id`,n),f(`Base44-Api-Url`,r),f(`Base44-Functions-Version`,i),f(`Base44-State`,o.get(`Base44-State`)),f(`X-Data-Env`,o.get(`X-Data-Env`)),l(a,{...u,headers:d})}}function Bd(e){if(typeof e!=`string`||e===``)throw Error(`fetchWithAuth() requires a path, such as '/api/orders'.`);let t=e.replace(/[\t\n\r]/g,``).replace(/^[\x00-\x20]+/,``);if(!t.startsWith(`/`)||t.startsWith(`//`)||t.startsWith(`/\\`))throw Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${e}" is not a path on it â pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function Vd(e,t,n){let r=(e,t)=>e?`${String(e).replace(/\/$/,``)}${t}`:t,i=e=>{let t=new Headers;if(n?.getAuthHeaders){let e=n.getAuthHeaders();Object.entries(e).forEach(([e,n])=>{n!=null&&t.set(e,String(n))})}return e&&new Headers(e).forEach((e,n)=>{t.set(n,e)}),t};return{async invoke(n,r){if(typeof r==`string`)throw Error(`Function ${n} must receive an object with named parameters, received: ${r}`);let i,a;return r instanceof FormData||r&&Object.values(r).some(e=>e instanceof File)?(i=new FormData,Object.keys(r).forEach(e=>{r[e]instanceof File?i.append(e,r[e],r[e].name):typeof r[e]==`object`&&r[e]!==null?i.append(e,JSON.stringify(r[e])):i.append(e,r[e])}),a=`multipart/form-data`):(i=r,a=`application/json`),e.post(`/apps/${t}/functions/${n}`,i||r,{headers:{"Content-Type":a}})},async fetch(e,t={}){let a=`/functions${e.startsWith(`/`)?e:`/${e}`}`,o=i(t.headers),s={...t,headers:o};return await fetch(r(n?.baseURL,a),s)}}}function Hd({axios:e,getSocket:t,appId:n,serverUrl:r,token:i}){let a=`/apps/${n}/agents`,o={},s=()=>e.get(`${a}/conversations`),c=t=>e.get(`${a}/conversations/${t}`);return{getConversations:s,getConversation:c,listConversations:t=>e.get(`${a}/conversations`,{params:t}),createConversation:t=>e.post(`${a}/conversations`,t),addMessage:async(t,n)=>e.post(`${a}/conversations/v2/${t.id}/messages`,n),subscribeToConversation:(e,n)=>{let r=`/agent-conversations/${e}`,i=t(),a=c(e).then(t=>(o[e]=t,t));return i.subscribeToRoom(r,{connect:()=>{},update_model:async({data:t})=>{let r=JSON.parse(t);if(r._message){await a;let t=r._message,i=o[e];if(i){let r=i.messages||[],a=r.findIndex(e=>e.id===t.id),s=a===-1?[...r,t]:r.map((e,n)=>n===a?t:e);o[e]={...i,messages:s},n?.(o[e])}}}})},getWhatsAppConnectURL:e=>{let t=`${r}/api/apps/${n}/agents/${encodeURIComponent(e)}/whatsapp`,a=i??Ld();return a?`${t}?token=${a}`:t},getTelegramConnectURL:e=>{let t=`${r}/api/apps/${n}/agents/${encodeURIComponent(e)}/telegram`,a=i??Ld();return a?`${t}?token=${a}`:t}}}var Ud={openai:`openai`,typesafe:`typesafe`};function Wd({serverUrl:e,token:t,appId:n,headers:r={}}){return{connection:({provider:i=`openai`}={})=>
16{if(!Object.prototype.hasOwnProperty.call(Ud,i))throw Error(`Unsupported AI Gateway provider: ${i}`);return{baseURL:`${e}/api/apps/${n}/ai/${Ud[i]}/v1`,token:t??Ld()??``,headers:{...r}}}}}function Gd(e,t){let n=`/app-logs/${t}`;return{async logUserInApp(t){await e.post(`${n}/log-user-in-app/${t}`)},async fetchLogs(t={}){return await e.get(n,{params:t})},async getStats(t={}){return await e.get(`${n}/stats`,{params:t})}}}function Kd(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function qd(e,t){return{async inviteUser(n,r){if(r!==`user`&&r!==`admin`)throw Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}var Jd=Object.create(null);Jd.open=`0`,Jd.close=`1`,Jd.ping=`2`,Jd.pong=`3`,Jd.message=`4`,Jd.upgrade=`5`,Jd.noop=`6`;var Yd=Object.create(null);Object.keys(Jd).forEach(e=>{Yd[Jd[e]]=e});var Xd={type:`error`,data:`parser error`},Zd=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,Qd=typeof ArrayBuffer==`function`,$d=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,ef=({type:e,data:t},n,r)=>Zd&&t instanceof Blob?n?r(t):tf(t,r):Qd&&(t instanceof ArrayBuffer||$d(t))?n?r(t):tf(new Blob([t]),r):r(Jd[e]+(t||``)),tf=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function nf(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var rf;function af(e,t){if(Zd&&e.data instanceof Blob)return e.data.arrayBuffer().then(nf).then(t);if(Qd&&(e.data instanceof ArrayBuffer||$d(e.data)))return t(nf(e.data));ef(e,!1,e=>{rf||=new TextEncoder,t(rf.encode(e))})}var of=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,sf=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)sf[of.charCodeAt(e)]=e;var cf=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=sf[e.charCodeAt(r)],o=sf[e.charCodeAt(r+1)],s=sf[e.charCodeAt(r+2)],c=sf[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},lf=typeof ArrayBuffer==`function`,uf=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:ff(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:df(e.substring(1),t)}:Yd[n]?e.length>1?{type:Yd[n],data:e.substring(1)}:{type:Yd[n]}:Xd},df=(e,t)=>lf?ff(cf(e),t):{base64:!0,data:e},ff=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},pf=`�`,mf=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{ef(e,!1,e=>{r[a]=e,++i===n&&t(r.join(pf))})})},hf=(e,t)=>{let n=e.split(pf),r=[];for(let e=0;e<n.length;e++){let i=uf(n[e],t);if(r.push(i),i.type===`error`)break}return r};function gf(){return new TransformStream({transform(e,t){af(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}
16e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var _f;function vf(e){return e.reduce((e,t)=>e+t.length,0)}function yf(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function bf(e,t){_f||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(vf(n)<1)break;let e=yf(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(vf(n)<2)break;let e=yf(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(vf(n)<8)break;let e=yf(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(Xd);break}i=a*2**32+t.getUint32(4),r=3}else{if(vf(n)<i)break;let e=yf(n,i);s.enqueue(uf(a?e:_f.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(Xd);break}}}})}function xf(e){if(e)return Sf(e)}function Sf(e){for(var t in xf.prototype)e[t]=xf.prototype[t];return e}xf.prototype.on=xf.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},xf.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},xf.prototype.off=xf.prototype.removeListener=xf.prototype.removeAllListeners=xf.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},xf.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},xf.prototype.emitReserved=xf.prototype.emit,xf.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},xf.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Cf=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),wf=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),Tf=`arraybuffer`;function Ef(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var Df=wf.setTimeout,Of=wf.clearTimeout;function kf(e,t){t.useNativeTimers?(e.setTimeoutFn=Df.bind(wf),e.clearTimeoutFn=Of.bind(wf)):(e.setTimeoutFn=wf.setTimeout.bind(wf),e.clearTimeoutFn=wf.clearTimeout.bind(wf))}var Af=1.33;function jf(e){return typeof e==`string`?Mf(e):Math.ceil((e.byteLength||e.size)*Af)}function Mf(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Nf(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Pf(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function Ff(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var If=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},Lf=class extends xf{constructor(e){super(),this.writable=!1,kf(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new If(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=uf(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?`:`+this.opts.port:``}_query(e){let t=Pf(e);return t.length?`?`+t:``}},Rf=class extends Lf{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}
16onData(e){hf(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,mf(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Nf()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},zf=!1;try{zf=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var Bf=zf;function Vf(){}var Hf=class extends Rf{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},Uf=class e extends xf{constructor(e,t,n){super(),this.createRequest=e,kf(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=Ef(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(this._xhr!==void 0&&this._xhr!==null){if(this._xhr.onreadystatechange=Vf,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(Uf.requestsCount=0,Uf.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,Wf);else if(typeof addEventListener==`function`){let e=`onpagehide`in wf?`pagehide`:`unload`;addEventListener(e,Wf,!1)}}function Wf(){for(let e in Uf.requests)Uf.requests.hasOwnProperty(e)&&Uf.requests[e].abort()}var Gf=(function(){let e=qf({xdomain:!1});return e&&e.responseType!==null})(),Kf=class extends Hf{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Gf&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Uf(qf,this.uri(),e)}};function qf(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||Bf))return new XMLHttpRequest}catch{}if(!t)try{return new wf[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var Jf=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,Yf=class extends Lf{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=Jf?{}:Ef(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}
16this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;ef(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&Cf(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Nf()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Xf=wf.WebSocket||wf.MozWebSocket,Zf={websocket:class extends Yf{createSocket(e,t,n){return Jf?new Xf(e,t,n):t?new Xf(e,t):new Xf(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends Lf{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=bf(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=gf();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&Cf(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:Kf},Qf=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$f=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function ep(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=Qf.exec(e||``),a={},o=14;for(;o--;)a[$f[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=tp(a,a.path),a.queryKey=np(a,a.query),a}function tp(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function np(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var rp=typeof addEventListener==`function`&&typeof removeEventListener==`function`,ip=[];rp&&addEventListener(`offline`,()=>{ip.forEach(e=>e())},!1);var ap=class e extends xf{constructor(e,t){if(super(),this.binaryType=Tf,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=ep(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=ep(t.host).host);kf(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:`/engine.io`,agent:!1,withCredentials:!1,upgrade:!0,timestampParam:`t`,rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=Ff(this.opts.query)),rp&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener(`beforeunload`,this._beforeunloadEventListener,!1)),this.hostname!==`localhost`&&(this._offlineEventListener=()=>{this._onClose(`transport close`,{description:`network connection lost`})},ip.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data)}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(`drain`):this.flush()}flush(){if(this.readyState!==`closed`&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=jf(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Cf(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={}
16,n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(`close`),this.transport.close(),this.transport.removeAllListeners(),rp&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=ip.indexOf(this._offlineEventListener);e!==-1&&ip.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};ap.protocol=4;var op=class extends ap{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;ap.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;ap.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},sp=class extends op{constructor(e,t={}){let n=typeof e==`object`,r=n?{...e}:{...t};(!r.transports||r.transports&&typeof r.transports[0]==`string`)&&(r.transports=(r.transports||[`polling`,`websocket`,`webtransport`]).map(e=>Zf[e]).filter(e=>!!e)),super(n?r:e,r)}};sp.protocol;function cp(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=ep(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var lp=typeof ArrayBuffer==`function`,up=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,dp=Object.prototype.toString,fp=typeof Blob==`function`||typeof Blob<`u`&&dp.call(Blob)===`[object BlobConstructor]`,pp=typeof File==`function`||typeof File<`u`&&dp.call(File)===`[object FileConstructor]`;function mp(e){return lp&&(e instanceof ArrayBuffer||up(e))||fp&&e instanceof Blob||pp&&e instanceof File}function hp(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(hp(e[t]))return!0;return!1}if(mp(e))return!0;
16if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return hp(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&hp(e[t]))return!0;return!1}function gp(e){let t=[],n=e.data,r=e;return r.data=_p(n,t),r.attachments=t.length,{packet:r,buffers:t}}function _p(e,t){if(!e)return e;if(mp(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=_p(e[r],t);return n}if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=_p(e[r],t));return n}return e}function vp(e,t){return e.data=yp(e.data,t),delete e.attachments,e}function yp(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=yp(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=yp(e[n],t));return e}var bp=s({Decoder:()=>Cp,Encoder:()=>Sp,PacketType:()=>Q,isPacketValid:()=>Ap,protocol:()=>5}),xp=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],Q;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})(Q||={});var Sp=class{constructor(e){this.replacer=e}encode(e){return(e.type===Q.EVENT||e.type===Q.ACK)&&hp(e)?this.encodeAsBinary({type:e.type===Q.EVENT?Q.BINARY_EVENT:Q.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===Q.BINARY_EVENT||e.type===Q.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=gp(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},Cp=class e extends xf{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===Q.BINARY_EVENT;n||t.type===Q.BINARY_ACK?(t.type=n?Q.EVENT:Q.ACK,this.reconstructor=new wp(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(mp(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(Q[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===Q.BINARY_EVENT||r.type===Q.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!Ep(a)||a<0)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&t.charAt(n)!==`,`&&n!==t.length;);r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case Q.CONNECT:return Op(t);case Q.DISCONNECT:return t===void 0;case Q.CONNECT_ERROR:return typeof t==`string`||Op(t);case Q.EVENT:case Q.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&xp.indexOf(t[0])===-1);case Q.ACK:case Q.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},wp=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=vp(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Tp(e){return typeof e==`string`}var Ep=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function Dp(e){return e===void 0||Ep(e)}function Op(e){return Object.prototype.toString.call(e)===`[object Object]`}function kp(e,t){switch(e){case Q.CONNECT:return t===void 0||Op(t);case Q.DISCONNECT:return t===void 0;case Q.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&xp.indexOf(t[0])===-1);case Q.ACK:return Array.isArray(t);case Q.CONNECT_ERROR:return typeof t==`string`||Op(t);default:return!1}}
16function Ap(e){return Tp(e.nsp)&&Dp(e.id)&&kp(e.type,e.data)}function jp(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Mp=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Np=class extends xf{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[jp(e,`open`,this.onopen.bind(this)),jp(e,`packet`,this.onpacket.bind(this)),jp(e,`error`,this.onerror.bind(this)),jp(e,`close`,this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===`open`&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(Mp.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:Q.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Q.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}
16_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Q.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,Error(`It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)`));break;case Q.EVENT:case Q.BINARY_EVENT:this.onevent(e);break;case Q.ACK:case Q.BINARY_ACK:this.onack(e);break;case Q.DISCONNECT:this.ondisconnect();break;case Q.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t)}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:Q.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Q.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function Pp(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Pp.prototype.duration=function(){var e=this.ms*this.factor**+this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},Pp.prototype.reset=function(){this.attempts=0},Pp.prototype.setMin=function(e){this.ms=e},Pp.prototype.setMax=function(e){this.max=e},Pp.prototype.setJitter=function(e){this.jitter=e};var Fp=class extends xf{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,kf(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new Pp({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||bp;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new sp(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=jp(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=jp(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push(jp(e,`ping`,this.onping.bind(this)),jp(e,`data`,this.ondata.bind(this)),jp(e,`error`,this.onerror.bind(this)),jp(e,`close`,this.onclose.bind(this)),jp(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){Cf(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Np(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;
16n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},Ip={};function Lp(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=cp(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=Ip[i]&&a in Ip[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new Fp(r,t):(Ip[i]||(Ip[i]=new Fp(r,t)),c=Ip[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(Lp,{Manager:Fp,Socket:Np,io:Lp,connect:Lp});var Rp=250;function zp(e,t){let n=e.token??Ld(),r={app_id:e.appId};n?r.token=n:r.anonymous_id=vd();let i=Lp(e.serverUrl,{path:e.mountPath,transports:e.transports,query:r});return i.on(`connect`,async()=>(console.log(`connect`,i.id),t.connect?.call(t))),i.on(`update_model`,async e=>t.update_model?.call(t,e)),i.on(`error`,async e=>t.error?.call(t,e)),i.on(`connect_error`,async e=>(console.error(`connect_error`,e),t.error?.call(t,e))),i}function Bp({config:e}){let t={...e},n={},r={},i={connect:async()=>{let e=[];Object.keys(n).forEach(t=>{let n=f(t);n.length!==0&&(l(t),n.forEach(({connect:t})=>{e.push((async()=>t?.())())}))}),await Promise.all(e)},update_model:async e=>{let t=f(e.room).map(t=>t.update_model?.call(t,e));await Promise.all(t)},error:async e=>{console.error(`error`,e);let t=Object.values(n).flat().map(t=>t.error?.call(t,e));await Promise.all(t)}},a=zp(e,i);function o(){s()}function s(){m(),a&&a.disconnect()}function c(e){o(),t={...t,...e},a=zp(t,i)}function l(e){a.emit(`join`,e)}function u(e){a.emit(`leave`,e)}async function d(e,t){let n=JSON.stringify(t);return i.update_model?.call(i,{room:e,data:n})}function f(e){return n[e]??[]}function p(e){let t=r[e];t&&(clearTimeout(t),delete r[e])}function m(){Object.keys(r).forEach(e=>{clearTimeout(r[e]),delete r[e],(n[e]?.length??0)===0&&delete n[e]})}function h(e){p(e),r[e]=setTimeout(()=>{delete r[e],!((n[e]?.length??0)>0)&&(u(e),delete n[e])},Rp)}return{socket:a,subscribeToRoom:(e,t)=>{n[e]?p(e):(l(e),n[e]=[]),n[e].push(t);let r=!1;return()=>{r||(r=!0,n[e]=n[e]?.filter(e=>e!==t)??[],n[e].length===0&&h(e))}},updateConfig:c,updateModel:d,disconnect:s}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(` 17 PartySocket requires a global 'EventTarget' class to be available! 18 You can polyfill this global by adding this to your code before any partysocket imports: 19 20 \`\`\` 21 import 'partysocket/event-target-polyfill'; 22 \`\`\` 23 Please file an issue at https://github.com/partykit/partykit if you're still having trouble. 24`);var Vp=class extends Event{message;error;constructor(e,t){super(`error`,t),this.message=e.message,this.error=e}},Hp=class extends Event{code;reason;wasClean=!0;constructor(e=1e3,t=``,n){super(`close`,n),this.code=e,this.reason=t}},Up={Event,ErrorEvent:Vp,CloseEvent:Hp};function Wp(e,t){if(!e)throw Error(t)}function Gp(e){return new e.constructor(e.type,e)}function Kp(e){return`data`in e?new MessageEvent(e.type,e):`code`in e||`reason`in e?new Hp(e.code||1999,e.reason||`unknown reason`,e):`error`in e?new Vp(e.error,e):new Event(e.type,e)}
24var qp=typeof process<`u`&&process.versions?.node!==void 0&&typeof document>`u`?Kp:Gp,Jp={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},Yp=!1,Xp=class e extends EventTarget{_ws;_retryCount=-1;_uptimeTimeout;_connectTimeout;_shouldReconnect=!0;_connectLock=!1;_binaryType=`blob`;_closeCalled=!1;_messageQueue=[];_url;_protocols;_options;constructor(e,t,n={}){super(),this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return e.CONNECTING}get OPEN(){return e.OPEN}get CLOSING(){return e.CLOSING}get CLOSED(){return e.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((e,t)=>(typeof t==`string`?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:``}get protocol(){return this._ws?this._ws.protocol:``}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING}get url(){return this._ws?this._ws.url:``}get shouldReconnect(){return this._shouldReconnect}onclose=null;onerror=null;onmessage=null;onopen=null;close(e=1e3,t){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug(`close enqueued: no ws instance`);return}if(this._ws.readyState===this.CLOSED){this._debug(`close: already closed`);return}this._ws.close(e,t)}reconnect(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED||this._disconnect(e,t),this._connect()}send(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug(`send`,e),this._ws.send(e);else{let{maxEnqueuedMessages:t=Jp.maxEnqueuedMessages}=this._options;this._messageQueue.length<t&&(this._debug(`enqueue`,e),this._messageQueue.push(e))}}_debug(...e){this._options.debug&&console.log.apply(console,[`RWS>`,...e])}_getNextDelay(){let{reconnectionDelayGrowFactor:e=Jp.reconnectionDelayGrowFactor,minReconnectionDelay:t=Jp.minReconnectionDelay,maxReconnectionDelay:n=Jp.maxReconnectionDelay}=this._options,r=0;return this._retryCount>0&&(r=t*e**(this._retryCount-1),r>n&&(r=n)),this._debug(`next delay`,r),r}_wait(){return new Promise(e=>{setTimeout(e,this._getNextDelay())})}_getNextProtocols(e){if(!e)return Promise.resolve(null);if(typeof e==`string`||Array.isArray(e))return Promise.resolve(e);if(typeof e==`function`){let t=e();if(!t)return Promise.resolve(null);if(typeof t==`string`||Array.isArray(t))return Promise.resolve(t);if(t.then)return t}throw Error(`Invalid protocols`)}_getNextUrl(e){if(typeof e==`string`)return Promise.resolve(e);if(typeof e==`function`){let t=e();if(typeof t==`string`)return Promise.resolve(t);if(t.then)return t}throw Error(`Invalid URL`)}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
24let{maxRetries:e=Jp.maxRetries,connectionTimeout:t=Jp.connectionTimeout}=this._options;if(this._retryCount>=e){this._debug(`max retries reached`,this._retryCount,`>=`,e);return}this._retryCount++,this._debug(`connect`,this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([e,n])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>`u`&&!Yp&&(console.error(`â¼ï¸ No WebSocket implementation available. You should define options.WebSocket. 25 26For example, if you're using node.js, run \`npm install ws\`, and then in your code: 27 28import PartySocket from 'partysocket'; 29import WS from 'ws'; 30 31const partysocket = new PartySocket({ 32 host: "127.0.0.1:1999", 33 room: "test-room", 34 WebSocket: WS 35}); 36 37`),Yp=!0);let r=this._options.WebSocket||WebSocket;this._debug(`connect`,{url:e,protocols:n}),this._ws=n?new r(e,n):new r(e),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),t)}).catch(e=>{this._connectLock=!1,this._handleError(new Up.ErrorEvent(Error(e.message),this))})}_handleTimeout(){this._debug(`timeout event`),this._handleError(new Up.ErrorEvent(Error(`TIMEOUT`),this))}_disconnect(e=1e3,t){if(this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new Up.CloseEvent(e,t,this))}catch{}}}_acceptOpen(){this._debug(`accept open`),this._retryCount=0}_handleOpen=e=>{this._debug(`open event`);let{minUptime:t=Jp.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),t),Wp(this._ws,`WebSocket is not defined`),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(e=>this._ws?.send(e)),this._messageQueue=[],this.onopen&&this.onopen(e),this.dispatchEvent(qp(e))};_handleMessage=e=>{this._debug(`message event`),this.onmessage&&this.onmessage(e),this.dispatchEvent(qp(e))};_handleError=e=>{this._debug(`error event`,e.message),this._disconnect(void 0,e.message===`TIMEOUT`?`timeout`:void 0),this.onerror&&this.onerror(e),this._debug(`exec error listeners`),this.dispatchEvent(qp(e)),this._connect()};_handleClose=e=>{this._debug(`close event`),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(e),this.dispatchEvent(qp(e))};_removeListeners(){this._ws&&(this._debug(`removeListeners`),this._ws.removeEventListener(`open`,this._handleOpen),this._ws.removeEventListener(`close`,this._handleClose),this._ws.removeEventListener(`message`,this._handleMessage),this._ws.removeEventListener(`error`,this._handleError))}_addListeners(){this._ws&&(this._debug(`addListeners`),this._ws.addEventListener(`open`,this._handleOpen),this._ws.addEventListener(`close`,this._handleClose),this._ws.addEventListener(`message`,this._handleMessage),this._ws.addEventListener(`error`,this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}},Zp=1e3,Qp=3e3,$p=new Set([405,409,422,503]),em=new Set([400,403,404]);function tm(e){let t=e&&typeof e==`object`?e.status:void 0;return typeof t==`number`?t:void 0}function nm(e){return e instanceof Error?e:Error(String(e))}var rm=class{constructor(e,t,n,r,i){this.onClose=i,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=r?.id??crypto.randomUUID();let a=n.transport===`proxy`,o=new Xp(async()=>{var r;if(this.closed)throw Error(`Actor connection is closed`);if(!a)try{let{websocket_url:r,token:i}=await n.mintConnectionToken(e,t,this.id);return`${r}${r.includes(`?`)?`&`:`?`}token=${encodeURIComponent(i)}`}catch(e){let t=tm(e);if(!(n.transport!==`direct`&&t!==void 0&&$p.has(t))){t!==void 0&&em.has(t)&&this.close();try{(r=n.onMintError)==null||r.call(n,nm(e))}catch{}throw e}a=!0}return am(n.host,e,t,this.id,n.appId,n.getAuthToken(),n.functionsVersion)});this.ws=o;let s=Date.now(),c=()=>{s=Date.now()};o.addEventListener(`open`,c),o.addEventListener(`message`,e=>{c();let t;try{t=JSON.parse(e.data)}catch{return}if((t&&typeof t==`object`?t.type:void 0)!==`__pong`)for(let e of this.listeners)e(t)}),this.heartbeat=setInterval(()=>{if(Date.now()-s>Qp){c(),o.readyState===o.OPEN&&o.reconnect();return}try{o.send(JSON.stringify({type:`__ping`}))}catch{}},Zp)}subscribe(e){return this.listeners.add(e),{unsubscribe:()=>{this.listeners.delete(e)}}}send(e){this.closed||this.ws.send(JSON.stringify(e))}close(){this.closed||(this.closed=!0,this.heartbeat&&=(clearInterval(this.heartbeat),null),this.listeners.clear(),this.ws.close(),this.onClose())}};function im(e,t,n,r){let i=null;return{connect(a){if(i)return i;let o=new rm(e,t,n,a,()=>{r.delete(o),i===o&&(i=null)});return i=o,r.add(o),o}}}function am(e,t,n,r,i,a,o){let s=e.replace(/^(http|https|ws|wss):\/\//,``);s.endsWith(`/`)&&(s=s.slice(0,-1));let c=s.startsWith(`localhost:`)||s.startsWith(`127.0.0.1:`)||s.startsWith(`192.168.`)||s.startsWith(`10.`)||s.startsWith(`172.`)&&s.split(`.`)[1]>=`16`&&s.split(`.`)[1]<=`31`||s.startsWith(`[::ffff:7f00:1]:`),l=new URLSearchParams([[`_pk`,r],[`app_id`,i],[`handler`,t]]);
37return a&&l.append(`token`,a),o&&l.append(`fv`,o),`${c?`ws`:`wss`}://${s}/parties/${t}/${n}?${l}`}function om(e,t){return e&&!e.startsWith(`/`)?e:t??e}function sm(e){let t=new Set;return{module:new Proxy({},{get(n,r){if(typeof r==`string`&&r!==`then`)return n=>im(r,n,e,t)}}),closeAll:()=>{for(let e of[...t])e.close()}}}function cm(e){let{serverUrl:t=`https://base44.app`,appId:n,analytics:r,token:i,serviceToken:a,requiresAuth:o=!1,appBaseUrl:s,options:c,functionsVersion:l,headers:u}=e,d=typeof s==`string`?s:``,f={serverUrl:t,mountPath:`/ws-user-apps/socket.io/`,transports:[`websocket`],appId:n,token:i},p=null,m=()=>(p||=Bp({config:f}),p),h={...u,"X-App-Id":String(n)},g=u?.[`Base44-State`],_=g?{"Base44-State":g}:{},v=l?{...h,"Base44-Functions-Version":l}:h,y=bd({baseURL:`${t}/api`,headers:h,token:i,onError:c?.onError}),b=bd({baseURL:`${t}/api`,headers:v,token:i,interceptResponses:!1,onError:c?.onError}),x={...h,...i?{"on-behalf-of":`Bearer ${i}`}:{}},S=bd({baseURL:`${t}/api`,headers:x,token:a,onError:c?.onError}),C=bd({baseURL:`${t}/api`,headers:v,token:a,interceptResponses:!1}),w=bd({baseURL:`${t}/api`,headers:h}),T=Ad(y,b,n,{appBaseUrl:d,serverUrl:t,token:i});if(typeof window<`u`){let e=i||Ld();e&&T.setToken(e)}let ee=sm({appId:n,host:om(t,typeof window<`u`?window.location?.origin:void 0),functionsVersion:l,getAuthToken:()=>i||Ld(),mintConnectionToken:async(e,t,r)=>{let a=i||Ld();return await w.post(`/apps/${n}/actors/${encodeURIComponent(e)}/connection-token`,{room:t,connection_id:r},{headers:{...a?{Authorization:`Bearer ${a}`}:{},...l?{"Base44-Functions-Version":l}:{}}})},transport:c?.actorsTransport,onMintError:c?.onError}
37),E={entities:xd({axios:y,appId:n,getSocket:m}),integrations:Dd(y,n),connectors:Id(y,n),auth:T,functions:Vd(b,n,{getAuthHeaders:()=>{let e={},t=i||Ld();return t&&(e.Authorization=`Bearer ${t}`),e},baseURL:b.defaults?.baseURL}),agents:Hd({axios:y,getSocket:m,appId:n,serverUrl:t,token:i}),aiGateway:Wd({serverUrl:t,token:i,appId:n,headers:_}),appLogs:Gd(y,n),app:Kd(y,n),users:qd(y,n),analytics:id({axiosClient:y,serverUrl:t,appId:n,userAuthModule:T,enabled:r?.enabled??!0}),actors:ee.module,cleanup:()=>{E.analytics.cleanup(),ee.closeAll(),p&&p.disconnect()}},te={entities:xd({axios:S,appId:n,getSocket:m}),integrations:Dd(S,n),sso:jd(S,n),connectors:Nd(S,n),functions:Vd(C,n,{getAuthHeaders:()=>{let e={};return a&&(e.Authorization=`Bearer ${a}`),e},baseURL:C.defaults?.baseURL}),agents:Hd({axios:S,getSocket:m,appId:n,serverUrl:t,token:i}),aiGateway:Wd({serverUrl:t,token:a,appId:n,headers:_}),appLogs:Gd(S,n),cleanup:()=>{p&&p.disconnect()}};return o&&typeof window<`u`&&setTimeout(async()=>{try{await E.auth.isAuthenticated()||E.auth.redirectToLogin(window.location.href)}catch(e){console.error(`Authentication check failed:`,e),E.auth.redirectToLogin(window.location.href)}},0),{...E,fetchWithAuth:zd({axios:y,serviceRoleAxios:S,appId:String(n),serverUrl:t,functionsVersion:l,platformHeaders:u}),setToken(e){E.auth.setToken(e),p&&p.updateConfig({token:e}),f.token=e},getConfig(){return{serverUrl:t,appId:n,requiresAuth:o}},get asServiceRole(){if(!a)throw Error(`Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.`);return te}}}var lm={...(!(typeof window>`u`)&&new URLSearchParams(window.location.search).get(`clear_access_token`)===`true`&&(window.localStorage.removeItem(`base44_access_token`),window.localStorage.removeItem(`token`)),{appId:`6aa0595fb2c8ad50d559c6b5`,token:Ld(),functionsVersion:`prod`,appBaseUrl:void 0})},{appId:um,token:dm,functionsVersion:fm,appBaseUrl:pm}=lm,mm=cm({appId:um,token:dm,functionsVersion:fm,serverUrl:``,appBaseUrl:pm});function hm({}){let e=To().pathname.substring(1),{data:t,isFetched:n}=Sa({queryKey:[`user`],queryFn:async()=>{try{return{user:await mm.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return(0,j.jsx)(`div`,{className:`min-h-screen flex items-center justify-center p-6 bg-slate-50`,children:(0,j.jsx)(`div`,{className:`max-w-md w-full`,children:(0,j.jsxs)(`div`,{className:`text-center space-y-6`,children:[(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`h1`,{className:`text-7xl font-light text-slate-300`,children:`404`}),(0,j.jsx)(`div`,{className:`h-0.5 w-16 bg-slate-200 mx-auto`})]}),(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsx)(`h2`,{className:`text-2xl font-medium text-slate-800`,children:`Page Not Found`}),(0,j.jsxs)(`p`,{className:`text-slate-600 leading-relaxed`,children:[`The page `,(0,j.jsxs)(`span`,{className:`font-medium text-slate-700`,children:[`"`,e,`"`]}),` could not be found in this application.`]})]}),n&&t.isAuthenticated&&t.user?.role===`admin`&&(0,j.jsx)(`div`,{className:`mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200`,children:(0,j.jsxs)(`div`,{className:`flex items-start space-x-3`,children:[(0,j.jsx)(`div`,{className:`flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5`,children:(0,j.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-orange-400`})}),(0,j.jsxs)(`div`,{className:`text-left space-y-1`,children:[(0,j.jsx)(`p`,{className:`text-sm font-medium text-slate-700`,children:`Admin Note`}),(0,j.jsx)(`p`,{className:`text-sm text-slate-600 leading-relaxed`,children:`This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat.`})]})]})}),(0,j.jsx)(`div`,{className:`pt-6`,children:(0,j.jsxs)(`button`,{onClick:()=>window.location.href=`/`,className:`inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500`,children:[(0,j.jsx)(`svg`,{className:`w-4 h-4 mr-2`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`,children:(0,j.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6`})}),`Go Home`]})})]})})})}var gm=(0,_.createContext)(),_m=({children:e})=>{let[t,n]=(0,_.useState)(null),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!0),[s,c]=(0,_.useState)(!0),[l,u]=(0,_.useState)(null),[d,f]=(0,_.useState)(!1),[p,m]=(0,_.useState)(null);(0,_.useEffect)(()=>{h()},[]);let h=async()=>{try{c(!0),u(null);try{let e=await mm.app.getPublicSettings();m(e),lm.token?await g():(o(!1),i(!1),f(!0)),c(!1)}catch(e){if(console.error(`App state check failed:`,e),e.status===403&&e.data?.extra_data?.reason){let t=e.data.extra_data.reason;u(t===`auth_required`?{type:`auth_required`,message:`Authentication required`}:t===`user_not_registered`?{type:`user_not_registered`,message:`User not registered for this app`}:{type:t,message:e.message})}else u({type:`unknown`,message:e.message||`Failed to load app`});c(!1),o(!1)}}catch(e){console.error(`Unexpected error:`,e),u({type:`unknown`,message:e.message||`An unexpected error occurred`}),c(!1),o(!1)}},g=async()=>{try{o(!0);let e=await mm.auth.me();n(e),i(!0),o(!1),f(!0)}catch(e){console.error(`User auth check failed:`,e),o(!1),i(!1),f(!0),(e.status===401||e.status===403)&&u({type:`auth_required`,message:`Authentication required`})}};return(0,j.jsx)(gm.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:a,isLoadingPublicSettings:s,authError:l,appPublicSettings:p,authChecked:d,logout:(e=!0)=>{n(null),i(!1),e?mm.auth.logout(window.location.href):mm.auth.logout()},navigateToLogin:()=>{mm.auth.redirectToLogin(window.location.href)},checkUserAuth:g,checkAppState:h},children:e})},vm=()=>{let e=(0,_.useContext)(gm);if(!e)throw Error(`useAuth must be used within an AuthProvider`);return e},ym=()=>(0,j.jsx)(`div`,{className:`flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50`,children:(0,j.jsx)(`div`,{className:`max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100`,children:(0,j.jsxs)(`div`,{className:`text-center`,children:[(0,j.jsx)(`div`,{className:`inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100`,children:(0,j.jsx)(`svg`,{className:`w-8 h-8 text-orange-600`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`,children:(0,j.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z`})})}),(0,j.jsx)(`h1`,{className:`text-3xl font-bold text-slate-900 mb-4`,children:`Access Restricted`}),(0,j.jsx)(`p`,{className:`text-slate-600 mb-8`,children:`You are not registered to use this application. Please contact the app administrator to request access.`}),(0,j.jsxs)(`div`,{className:`p-4 bg-slate-50 rounded-md text-sm text-slate-600`,children:[(0,j.jsx)(`p`,{children:`If you believe this is an error, you can:`}),(0,j.jsxs)(`ul`,{className:`list-disc list-inside mt-2 space-y-1`,children:[(0,j.jsx)(`li`,{children:`Verify you are logged in with the correct account`}),(0,j.jsx)(`li`,{children:`Contact the app administrator for access`}),(0,j.jsx)(`li`,{children:`Try logging out and back in again`})]})]})]})})}),bm=e=>{let t=e.slice(1);try{return decodeURIComponent(t)}catch{return t}};function xm(){let{pathname:e,hash:t}=To(),n=Eo();return(0,_.useEffect)(()=>
37{if(n!==`POP`){if(t){let e=bm(t),n=window.setTimeout(()=>{document.getElementById(e)?.scrollIntoView({behavior:`smooth`})},50);return()=>window.clearTimeout(n)}window.scrollTo({top:0,left:0,behavior:`instant`})}},[e,t,n]),null}function Sm(){return(0,j.jsx)(`div`,{className:`bg-primary text-primary-foreground`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10 py-2 flex items-center justify-center gap-2 text-center`,children:[(0,j.jsx)(vn,{className:`w-3.5 h-3.5 shrink-0`}),(0,j.jsx)(`p`,{className:`text-xs md:text-sm uppercase tracking-widest font-medium`,children:`Locally owned in Vancouver, WA · Scheduled pickup & return`})]})})}function Cm(e){let[t,n]=_.useState(null);return _.useLayoutEffect(()=>{let t=e.current;if(!t)return;let r=t.getBoundingClientRect();n({width:r.width,height:r.height});let i=new ResizeObserver(([e])=>{let{width:t,height:r}=e.contentRect;n({width:t,height:r})});return i.observe(t),()=>i.disconnect()},[e]),t}var wm={"media.base44.com":`/images/public/`,"static.wixstatic.com":`/media/`},Tm={OPTIMIZED:`optimized`,ORIGINAL:`original`,FALLBACK:`fallback`},Em=[1,2,3],Dm=6e3;function Om(e){try{let t=new URL(e);if(t.protocol!==`https:`||t.username||t.password||t.port&&t.port!==`443`)return null;let n=wm[t.hostname];if(!n)return null;let r=t.pathname.match(/^(.*)\/v1\/(?:fill|fit)\/[^/]+\/[^/]+$/i),i=r?r[1]:t.pathname,a=i.split(`/`).pop();return!i.startsWith(n)||!a||!/\.[a-z0-9]+$/i.test(a)||/\.svg$/i.test(a)?null:{baseUrl:`${t.origin}${i}`,filename:a}}catch{return null}}var km=e=>Math.min(Math.max(Math.round(e),1),Dm),Am=e=>Math.min(1,Math.max(0,e));function jm({baseUrl:e,filename:t},{width:n,height:r,crop:i,focalPoint:a,quality:o}){let s=[`w_${km(n)}`,`h_${km(r||n)}`];i&&s.push(a?`fp_${Am(a.x).toFixed(2)}_${Am(a.y).toFixed(2)}`:`al_c`),s.push(`q_${o}`,`usm_0.66_1.00_0.01`,`enc_webp`,`quality_auto`);let c=/\.gif$/i.test(t)?t:t.replace(/\.[a-z0-9]+$/i,``)+`.webp`;return`${e}/v1/${i?`fill`:`fit`}/${s.join(`,`)}/${c}`}function Mm(e,t){return Em.map(n=>`${jm(e,{...t,width:t.width*n,height:t.height?t.height*n:void 0})} ${n}x`).join(`, `)}function Nm(e,t){return t?.baseUrl||e}function Pm(e){return e===Tm.OPTIMIZED?Tm.ORIGINAL:Tm.FALLBACK}var Fm=`https://static.wixstatic.com/media/12d367_4f26ccd17f8f4e3a8958306ea08c2332~mv2.png`,Im=_.forwardRef(({aspectRatio:e,className:t,style:n,children:r},i)=>(0,j.jsx)(`span`,{ref:i,className:Kr(`inline-block relative`,t),style:{aspectRatio:e,...n},children:r}));Im.displayName=`ImageWrapper`;var Lm=_.forwardRef(({parsed:e,fittingType:t,focalPoint:n,quality:r,className:i,style:a,aspectRatio:o,onLoad:s,...c},l)=>{let u=_.useRef(null),d=_.useRef(null),f=Cm(u),[p,m]=_.useState(!1);_.useImperativeHandle(l,()=>d.current),_.useEffect(()=>{m(!1)},[e.baseUrl]);let h=t!==`fit`,g=f&&{width:f.width||1024,height:f.height?f.height:void 0,crop:h,focalPoint:h?n:void 0,quality:r};return(0,j.jsxs)(Im,{ref:u,aspectRatio:o,className:i,style:a,children:[g&&!p&&(0,j.jsx)(`img`,{src:jm(e,{...g,width:20,height:g.height?Math.max(1,Math.round(20*g.height/g.width)):void 0,quality:20}),alt:``,"aria-hidden":`true`,className:`w-full h-full inset-0 absolute`,style:{objectFit:t===`fit`?`contain`:`cover`,filter:`blur(10px)`,transform:`scale(1.1)`}}),g&&(0,j.jsx)(`img`,{ref:d,src:jm(e,g),srcSet:Mm(e,g),loading:`lazy`,className:Kr(`w-full h-full inset-0 absolute`,t===`fit`?`object-contain`:`object-cover`),onLoad:e=>{m(!0),s?.(e)},...c})]})});Lm.displayName=`ResponsiveImage`;var Rm=_.forwardRef(({src:e,fittingType:t=`fill`,originWidth:n,originHeight:r,focalPointX:i,focalPointY:a,quality:o=90,onError:s,...c},l)=>{let u=e&&e!==Fm?Om(e):null,d=u?Tm.OPTIMIZED:Tm.ORIGINAL,[f,p]=_.useState({src:e,mode:d}),m=f.src===e?f.mode:d;_.useEffect(()=>{p({src:e,mode:d})},[e,d]);let h=t=>{if(m===Tm.FALLBACK)return;let n=Pm(m);p({src:e,mode:n}),n===Tm.FALLBACK&&s?.(t)},g={...c,onError:h};if(!e)return(0,j.jsx)(`img`,{ref:l,src:Fm,...g,"data-empty-image":!0});let v=m===Tm.OPTIMIZED?u:null;if(!v){let t=m===Tm.FALLBACK,n=t?Fm:Nm(e,u);return(0,j.jsx)(`img`,{ref:l,src:n,...g,"data-error-image":t||void 0})}let y=typeof i==`number`&&typeof a==`number`?{x:i,y:a}:void 0,b=n&&r?`${n} / ${r}`:void 0;return(0,j.jsx)(Lm,{ref:l,parsed:v,fittingType:t,focalPoint:y,qual
37ity:o,aspectRatio:b,...g})});Rm.displayName=`Image`;var $={name:`The Bear's Edge`,tagline:`Professional Knife & Scissor Sharpening`,phone:`360-559-2530`,phoneHref:`tel:+13605592530`,email:`[email protected]`,emailHref:`mailto:[email protected]`,location:`Vancouver, Washington`,logo:`https://media.base44.com/images/public/6aa0595fb2c8ad50d559c6b5/8078a88c2_ChatGPTImageSep2202603_39_42PM.png`},zm=[{name:`ALK Positive`,pct:`10%`,url:`https://alkpositive.org/ways-to-give/`,desc:`A patient-led nonprofit dedicated to improving the lives of people living with ALK-positive lung cancer.`},{name:`Adult Congenital Heart Association`,pct:`10%`,url:`https://www.achaheart.org/get-involved/donate/`,desc:`Empowering the congenital heart disease community through resources, research, and specialized care.`}],Bm=[{label:`Home`,path:`/`},{label:`Services`,path:`/services`},{label:`Pricing`,path:`/#pricing`},{label:`Service Area`,path:`/service-area`},{label:`FAQ`,path:`/faq`},{label:`About`,path:`/about`},{label:`Contact`,path:`/contact`}],Vm={hero:`https://media.base44.com/images/public/6aa0595fb2c8ad50d559c6b5/0272aa2f6_exec-660a36f2-8db3-4230-af1f-af580c63f189.png`,whetstone:`https://media.base44.com/images/public/6aa0595fb2c8ad50d559c6b5/e9dd6e6c8_generated_image.png`,scissors:`https://media.base44.com/images/public/6aa0595fb2c8ad50d559c6b5/14f262f39_generated_image.png`,banner:`https://media.base44.com/images/public/6aa0595fb2c8ad50d559c6b5/1b11f73a9_generated_image.png`};function Hm(){let[e,t]=(0,_.useState)(!1),{pathname:n}=To();return(0,j.jsx)(`header`,{className:`sticky top-0 z-40 border-b border-border bg-background/90 backdrop-blur-md`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10`,children:[(0,j.jsxs)(`div`,{className:`flex h-20 items-center justify-between`,children:[(0,j.jsx)(hs,{to:`/`,className:`flex items-center gap-2`,onClick:()=>t(!1),children:$.logo?(0,j.jsx)(`span`,{className:`block h-16 md:h-[72px] w-[96px] md:w-[108px] shrink-0`,children:(0,j.jsx)(Rm,{src:$.logo,alt:$.name,fittingType:`fit`,className:`h-full w-full`})}):(0,j.jsxs)(`span`,{className:`font-display text-2xl tracking-tight text-foreground`,children:[`THE BEAR'S`,(0,j.jsx)(`span`,{className:`text-primary`,children:`/`}),`EDGE`]})}),(0,j.jsx)(`nav`,{className:`hidden lg:flex items-center gap-1`,children:Bm.map(e=>(0,j.jsx)(hs,{to:e.path,className:`px-3 py-2 text-sm uppercase tracking-wider transition-colors ${n===e.path?`text-primary`:`text-muted-foreground hover:text-foreground`}`,children:e.label},e.path))}),(0,j.jsxs)(`div`,{className:`hidden lg:flex items-center gap-4`,children:[(0,j.jsxs)(`a`,{href:$.phoneHref,className:`flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition-colors`,children:[(0,j.jsx)(mn,{className:`w-4 h-4`}),$.phone]}),(0,j.jsx)(hs,{to:`/contact`,className:`px-5 py-2.5 bg-primary text-primary-foreground text-sm uppercase tracking-wider font-medium hover:bg-primary/90 transition-colors`,children:`Get in touch`})]}),(0,j.jsx)(`button`,{className:`lg:hidden p-2 text-foreground`,onClick:()=>t(!e),"aria-label":`Toggle menu`,children:e?(0,j.jsx)(xn,{className:`w-6 h-6`}):(0,j.jsx)(pn,{className:`w-6 h-6`})})]}),e&&(0,j.jsx)(`nav`,{className:`lg:hidden pb-6 pt-2 border-t border-border`,children:(0,j.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[Bm.map(e=>(0,j.jsx)(hs,{to:e.path,onClick:()=>t(!1),className:`px-3 py-3 text-sm uppercase tracking-wider border-l-2 transition-colors ${n===e.path?`border-primary text-primary`:`border-transparent text-muted-foreground hover:text-foreground`}`,children:e.label},e.path)),(0,j.jsxs)(`a`,{href:$.phoneHref,className:`px-3 py-3 text-sm text-primary flex items-center gap-2`,children:[(0,j.jsx)(mn,{className:`w-4 h-4`}),` `,$.phone]})]})})]})})}function Um(){return(0,j.jsxs)(`section`,{className:`relative border-b border-border overflow-hidden`,children:[(0,j.jsxs)(`div`,{className:`absolute inset-0`,children:[(0,j.jsx)(Rm,{src:Vm.banner,alt:`The Bear's Edge`,fittingType:`fill`,className:`h-full w-full`}),(0,j.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-background via-background/75 to-background/30`})]}),(0,j.jsxs)(`div`,{className:`relative max-w-7xl mx-auto px-6 md:px-10 py-14 md:py-20 flex items-center gap-5`,children:[$.logo&&(0,j.jsx)(Rm,{src:$.logo,alt:`${$.name} logo`,fittingType:`fit`,className:`h-14 md:h-16 w-auto shrink-0`}),(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`p`,{className:`font-mono text-xs uppercase tracking-[0.4em] text-primary mb-2`,children:[`// `,$.location]}),(0,j.jsx)(`h1`,{className:`font-display text-4xl md:text-6xl uppercase leading-none`,children:`The Bear's Edge`}),(0,j.jsx)(`p`,{className:`mt-2 text-sm md:text-base uppercase tracking-[0.25em] text-muted-foreground`,children:$.tagline})]})]})]})}function Wm(){return(0,j.jsx)(`footer`,{className:`border-t border-border bg-background`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10 py-16`,children:[(0,j.jsxs)(`div`,{className:`grid md:grid-cols-4 gap-10`,children:[(0,j.jsxs)(`div`,{className:`md:col-span-1`,children:[$.logo?(0,j.jsx)(`span`,{className:`block h-20 md:h-24 w-[120px] md:w-[144px]`,children:(0,j.jsx)(Rm,{src:$.logo,alt:$.name,fittingType:`fit`,className:`h-full w-full`})}):(0,j.jsxs)(`span`,{className:`font-display text-2xl tracking-tight`,children:[`THE BEAR'S`,(0,j.jsx)(`span`,{className:`text-primary`,children:`/`}),`EDGE`]}),(0,j.jsx)(`p`,{className:`mt-3 text-sm text-muted-foreground`,children:$.tagline}),(0,j.jsxs)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:[`Locally owned · `,$.location]}),(0,j.jsxs)(`div`,{className:`mt-5`,children:[(0,j.jsx)(`p`,{className:`text-xs uppercase tracking-widest text-primary mb-3`,children:`Follow Us`}),(0,j.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,j.jsxs)(`a`,{href:`https://www.facebook.com/profile.php?id=61593907921272`,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Follow The Bear's Edge on Facebook`,className:`flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm`,children:[(0,j.jsx)(cn,{className:`w-5 h-5`}),(0,j.jsx)(`span`,{children:`Facebook`})]}),(0,j.jsxs)(`a`,{href:`https://www.instagram.com/thebearsedge/`,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Follow The Bear's Edge on Instagram`,className:`flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm`,children:[(0,j.jsx)(un,{className:`w-5 h-5`}),(0,j.jsx)(`span`,{children:`Instagram`})]}),(0,j.jsxs)(`a`,{href:`https://www.youtube.com/@TheBearsEdge`,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Subscribe to The Bear's Edge on YouTube`,className:`flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm`,children:[(0,j.jsx)(Sn,{className:`w-5 h-5`}),(0,j.jsx)(`span`,{children:`YouTube`})]})]})]})]}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-xs uppercase tracking-widest text-primary mb-4`,children:`Pages`}),(0,j.jsx)(`ul`,{className:`space-y-2 text-sm text-muted-foreground`,children:Bm.map(e=>(0,j.jsx)(`li`,{children:(0,j.jsx)(hs,{to:e.path,className:`hover:text-primary transition-colors`,children:e.label})},e.path))})]}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-xs uppercase tracking-widest text-primary mb-4`,children:`Contact`}),(0,j.jsxs)(`ul`,{className:`space-y-3 text-sm text-muted-foreground`,children:[(0,j.jsx)(`li`,{children:(0,j.jsxs)(`a`,{href:$.phoneHref,className:`flex items-center gap-2 hover:text-primary transition-colors`,children:[(0,j.jsx)(mn,{className:`w-4 h-4`}),` `,$.phone]})}),(0,j.jsx)(`li`,{children:(0,j.jsxs)(`a`,{href:$.emailHref,className:`flex items-center gap-2 hover:text-primary transition-colors break-all`,children:[(0,j.jsx)(dn,{className:`w-4 h-4 shrink-0`}),` `,$.email]})}),(0,j.jsxs)(`li`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(fn,{className:`w-4 h-4`}),` `,$.location]})]})]}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-xs uppercase tracking-widest text-primary mb-4`,children:`We Support`}),(0,j.jsx)(`ul`,{className:`space-y-3 text-sm text-muted-foreground`,children:zm.map(e=>(0,j.jsx)(`li`,{children:(0,j.jsxs)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`hover:text-primary transition-colors`,children:[e.pct,` to `,e.name]})},e.name))})]})]}),(0,j.jsxs)(`div`,{className:`mt-12 pt-6 border-t border-border flex flex-col md:flex-row items-center justify-between gap-3 text-xs uppercase tracking-widest text-muted-foreground`,children:[(0,j.jsxs)(`span`,{children:[`© `,new Date().getFullYear(),` The Bear's Edge â All Rights Reserved`]}),(0,j.jsx)(`span`,{children:`Vancouver, Washington`})]})]})})}function Gm(){let{pathname:e}=To();return(0,j.jsxs)(`div`,{className:`min-h-screen flex flex-col bg-background`,children:[(0,j.jsx)(Sm,{}),(0,j.jsx)(Hm,{}),(0,j.jsxs)(`main`,{className:`flex-1`,children:[e!==`/`&&(0,j.jsx)(Um,{}),(0,j.jsx)($o,{})]}),(0,j.jsx)(Wm,{})]})}function Km(){return(0,j.jsx)(`section`,{className:`border-t border-border py-20 md:py-24 bg-background`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10`,children:[(0,j.jsxs)(`div`,{className:`text-center mb-12`,children:[(0,j.jsx)(`p`,{className:`font-mono text-xs uppercase tracking-[0.4em] text-primary mb-3`,children:`// Giving Back`}),(0,j.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl uppercase`,children:`20% of every dollar goes further`}),(0,j.jsx)(`p`,{className:`mt-4 text-muted-foreground max-w-2xl mx-auto`,children:`The Bear's Edge exists to serve our community â and that includes supporting the people who need it most. A portion of what we earn is donated directly to these organizations.`})]}),(0,j.jsx)(`div`,{className:`grid md:grid-cols-2 gap-px bg-border max-w-4xl mx-auto`,children:zm.map(e=>(0,j.jsxs)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`group block bg-background p-8 md:p-10 hover:bg-card transition-colors`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3 mb-4`,children:[(0,j.jsx)(`span`,{className:`font-display text-5xl text-primary`,children:e.pct}),(0,j.jsx)(`span`,{className:`text-sm uppercase tracking-widest text-muted-foreground`,children:`to`})]}),(0,j.jsx)(`h3`,{className:`font-display text-2xl uppercase mb-3 group-hover:text-primary transition-colors`,children:e.name}),(0,j.jsx)(`p`,{className:`text-muted-foreground mb-5`,children:e.desc}),(0,j.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-sm uppercase tracking-wider text-primary border-b border-primary pb-1`,children:[(0,j.jsx)(ln,{className:`w-4 h-4`}),` Visit donation page`]})]},e.name))})]})})}var qm=[{title:`Kitchen & Chef Knives`,desc:`Paring, utility, prep, chef's, santoku, and gyuto.`,pickup:{price:15,unit:`per knife · pickup & return · tax included`},dropoff:{price:12,unit:`per knife · customer drop-off & collection · tax included`}},{title:`Pocket & EDC Knives`,desc:`Folding and everyday-carry blades.`,pickup:{price:15,unit:`per knife · pickup & return · tax included`},dropoff:{price:12,unit:`per knife · customer drop-off & collection · tax included`}},{title:`Household Scissors`,desc:`Kitchen shears, craft, and household scissors.`,single:{price:15,unit:`per item · tax included`}}],Jm=[{name:`Wood chisels`,price:`$18`},{name:`Hand-plane blades`,price:`$18`},{name:`Machetes`,price:`$20`},{name:`Hatchets`,price:`$18`},{name:`Pruners`,price:`$15`},{name:`Loppers`,price:`$17`}],Ym=[{icon:yn,title:`Pickup & Return`,hours:`MondayâFriday · 1â7 p.m.; SaturdayâSunday · 1â5 p.m.`,points:[`Complimentary within 15 miles of Vancouver, WA`,`Outside that area? Call or email to arrange`,`Most items ready within 48 hours`],action:(0,j.jsxs)(`a`,{href:`https://calendar.app.google/PfER9zeFKpiBzRiF8`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-primary text-primary-foreground font-display text-base uppercase tracking-tight hover:bg-primary/90 transition-colors`,children:[`Schedule your pickup `,(0,j.jsx)(nn,{className:`w-4 h-4`})]})},{icon:rn,title:`Scheduled Drop-Off & Collection`,hours:`MondayâSaturday · 7 a.m.ânoon`,points:[`No Sunday drop-offs or collection`,`Please call to arrange your drop-off or collection a
37ppointment`,`We'll provide the address when your appointment is confirmed`,`Most items ready within 48 hours`],action:(0,j.jsxs)(`a`,{href:`tel:+13605592530`,className:`inline-flex items-center justify-center gap-2 w-full px-6 py-3 border border-border text-foreground font-display text-base uppercase tracking-tight hover:border-primary hover:text-primary transition-colors`,children:[`Call to Arrange Drop-Off `,(0,j.jsx)(nn,{className:`w-4 h-4`})]})}];function Xm(){return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`section`,{className:`border-b border-border bg-background`,children:(0,j.jsx)(Rm,{src:Vm.hero,alt:`The Bear's Edge â sharpening services banner with bear, tools, service icons, and donation footer`,fittingType:`fit`,originWidth:1984,originHeight:793,className:`block w-full h-auto`})}),(0,j.jsx)(`section`,{className:`border-b border-border`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10 py-16 md:py-24`,children:[(0,j.jsxs)(`p`,{className:`font-mono text-xs uppercase tracking-[0.4em] text-primary mb-6`,children:[`// Professional Knife & Scissor Sharpening · `,$.location]}),(0,j.jsxs)(`h1`,{className:`font-display text-6xl md:text-8xl uppercase leading-[0.9] max-w-4xl`,children:[`Sharp edges, `,(0,j.jsx)(`br`,{}),(0,j.jsx)(`span`,{className:`text-primary`,children:`stronger communities.`})]}),(0,j.jsx)(`p`,{className:`mt-8 max-w-xl text-lg text-muted-foreground`,children:`A local, father-daughter team based in Vancouver, Washington â bringing reliable edges back to your kitchen, pocket, and home.`}),(0,j.jsx)(`div`,{className:`mt-10 flex flex-col sm:flex-row gap-4`,children:(0,j.jsxs)(hs,{to:`/contact`,className:`inline-flex items-center justify-center gap-2 px-8 py-4 bg-primary text-primary-foreground font-display text-lg uppercase tracking-tight hover:bg-primary/90 transition-colors`,children:[`Get your edges back `,(0,j.jsx)(nn,{className:`w-4 h-4`})]})})]})}),(0,j.jsx)(`section`,{id:`pricing`,className:`border-b border-border py-16 md:py-20 scroll-mt-24`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10`,children:[(0,j.jsx)(`p`,{className:`font-mono text-xs uppercase tracking-[0.4em] text-primary mb-3`,children:`// Pricing`}),(0,j.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl uppercase mb-4`,children:`Simple, honest pricing`}),(0,j.jsx)(`p`,{className:`text-muted-foreground mb-10 max-w-2xl`,children:`Clear pricing for pickup and return or customer drop-off and collection.`}),(0,j.jsxs)(`p`,{className:`text-muted-foreground mb-10 max-w-2xl`,children:[`Pickup or drop-off not an option?`,` `,(0,j.jsx)(hs,{to:`/contact`,className:`text-primary hover:underline`,children:`Contact us`}),` `,`to discuss other arrangements.`]}),(0,j.jsx)(`div`,{className:`grid md:grid-cols-3 gap-8`,children:qm.map(e=>(0,j.jsxs)(`div`,{className:`border border-border p-8 bg-card/30`,children:[(0,j.jsx)(`h3`,{className:`font-display text-2xl uppercase mb-2`,children:e.title}),(0,j.jsx)(`p`,{className:`text-muted-foreground text-sm mb-6`,children:e.desc}),e.pickup?(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`p`,{className:`font-display text-4xl text-primary leading-none`,children:[`$`,e.pickup.price]}),(0,j.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:e.pickup.unit})]}),(0,j.jsxs)(`div`,{className:`pt-4 border-t border-border`,children:[(0,j.jsxs)(`p`,{className:`font-display text-4xl text-primary leading-none`,children:[`$`,e.dropoff.price]}),(0,j.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:e.dropoff.unit})]})]}):(0,j.jsxs)(`p`,{className:`font-display text-5xl text-primary leading-none`,children:[`$`,e.single.price,(0,j.jsx)(`span`,{className:`block mt-2 text-sm text-muted-foreground font-body normal-case tracking-normal`,children:e.single.unit})]})]},e.title))}),(0,j.jsx)(`p`,{className:`mt-8 text-sm text-muted-foreground max-w-3xl`,children:`Every knife sharpening includes inspection, minor broken-tip and chip repairs, bolster reduction as needed, and light cleaning and polishing. Pocket & EDC care also includes tightening loose screws â disassembly is not included.`}),(0,j.jsx)(`p`,{className:`mt-4 text-sm text-muted-foreground`,children:`Major repairs, serrated knives, and specialty blades are quoted before service. Minor broken-tip and chip repairs are included with sharpening.`}),(0,j.jsx)(`p`,{className:`mt-4 text-sm text-muted-foreground`,children:`Have several knives ready for pickup? Ask about a multi-knife discount â discounts are quoted case by case.`}),(0,j.jsxs)(`div`,{className:`mt-10 border border-border p-6 md:p-8 bg-card/30`,children:[(0,j.jsx)(`h3`,{className:`font-display text-2xl uppercase mb-4`,children:`Additional tools we sharpen`}),(0,j.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-3 gap-x-8 gap-y-3`,children:Jm.map(e=>(0,j.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 border-b border-border pb-2`,children:[(0,j.jsx)(`span`,{className:`text-sm text-foreground`,children:e.name}),(0,j.jsx)(`span`,{className:`font-display text-lg text-primary`,children:e.price})]},e.name))}),(0,j.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:`Contact us to arrange service for these tools. We do not sharpen mower blades.`})]})]})}),(0,j.jsx)(`section`,{className:`border-b border-border py-16 md:py-20`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10`,children:[(0,j.jsx)(`p`,{className:`font-mono text-xs uppercase tracking-[0.4em] text-primary mb-3`,children:`// How it works`}),(0,j.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl uppercase mb-6 max-w-3xl`,children:`Two easy ways to get your items sharpened`}),(0,j.jsx)(`p`,{className:`text-sm text-muted-foreground max-w-2xl mb-2`,children:`Online pickup bookings require at least 24 hours' notice and can be scheduled up to 60 days ahead. Same-day pickup requests must be made by phone and confirmed. Need a different time? Contact us to arrange an alternative, subject to availability â appointments outside the listed hours must be confirmed.`}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground mb-8`,children:`Book your pickup online; call us to arrange drop-off or collection.`}),(0,j.jsx)(`div`,{className:`grid md:grid-cols-2 gap-8`,children:Ym.map(e=>(0,j.jsxs)(`div`,{className:`border border-border p-8 bg-card/30`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3 mb-4`,children:[(0,j.jsx)(e.icon,{className:`w-7 h-7 text-primary`}),(0,j.jsx)(`h3`,{className:`font-display text-2xl uppercase`,children:e.title})]}),(0,j.jsx)(`p`,{className:`font-mono text-xs uppercase tracking-[0.3em] text-primary mb-5`,children:e.hours}),(0,j.jsx)(`ul`,{className:`space-y-3`,children:e.points.map(e=>(0,j.jsxs)(`li`,{className:`flex items-start gap-3 text-sm text-muted-foreground`,children:[(0,j.jsx)(an,{className:`w-4 h-4 text-primary mt-0.5 shrink-0`}),(0,j.jsx)(`span`,{children:e})]},e))}),(0,j.jsx)(`div`,{className:`mt-6`,children:e.action})]},e.title))}),(0,j.jsxs)(`div`,{className:`mt-8 border border-border p-8 md:p-10 bg-card/30`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3 mb-4`,children:[(0,j.jsx)(bn,{className:`w-7 h-7 text-primary`}),(0,j.jsx)(`h3`,{className:`font-display text-2xl md:text-3xl uppercase`,children:`Need a knife while we sharpen yours?`})]}),(0,j.jsx)(`p`,{className:`font-mono text-xs uppercase tracking-[0.4em] text-primary mb-4`,children:`// Complimentary loaner knives available`}),(0,j.jsx)(`p`,{className:`text-muted-foreground max-w-3xl`,children:`Don't want to be without your kitchen knives while they're being sharpened? The Bear's Edge offers complimentary kitchen knife loaners upon request, subject to availability. Just let us know what type of knife or knives you'll need when scheduling your service, and we'll do our best to have appropriate loaners available for you.`})]})]})}),(0,j.jsx)(Km,{}),(0,j.jsx)(`section`,{className:`py-20 md:py-24`,children:(0,j.jsxs)(`div`,{className:`max-w-3xl mx-auto px-6 text-center`,children:[(0,j.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl uppercase mb-5`,children:`Let's get your edges back`}),(0,j.jsx)(`p`,{className:`text-muted-foreground mb-8`,children:`Questions about serrated knives, pricing, or your area? Reach out â we're happy to help.`}),(0,j.jsxs)(hs,{to:`/contact`,className:`inline-flex items-center gap-2 px-8 py-4 bg-primary text-primary-foreground font-display text-lg uppercase tracking-tight hover:bg-primary/90 transition-colors`,children:[`Contact The Bear's Edge `,(0,j.jsx)(nn,{className:`w-4 h-4`})]})]})})]})}var Zm=[{no:`01`,title:`Kitchen & Chef Knives`,desc:`Everyday prep, paring, and utility blades plus chef's knives, santoku, and gyuto. We restore a clean, reliable edge suited to how you cook â not a one-size-fits-all grind.`,icon:on},{no:`02`,title:`Pocket Knives`,desc:`Everyday-carry and folding pocket knives brought back to a sharp, working edge â handled with care so the blade and mechanism both come back right.`,icon:hn},{no:`03`,title:`Household Scissors`,desc:`Kitchen shears, craft scissors, and ordinary household scissors that skip and tear. Sharpened and realigned so they glide cleanly again.`,icon:gn}];function Qm(){return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)($m,{kicker:`// Services`,title:`What we sharpen`,sub:`We're starting focused: the blades and shears you reach for every day. Each item is sharpened by hand and inspected before it comes back to you.`}),(0,j.jsx)(`section`,{className:`border-b border-border py-16 md:py-20`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10`,children:[(0,j.jsx)(`div`,{className:`grid md:grid-cols-3 gap-8`,children:Zm.map(e=>(0,j.jsxs)(`div`,{className:`border border-border p-8 bg-card/30`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3 mb-4`,children:[(0,j.jsx)(e.icon,{className:`w-7 h-7 text-primary`}),(0,j.jsx)(`span`,{className:`font-mono text-sm text-primary`,children:e.no})]}),(0,j.jsx)(`h2`,{className:`font-display text-2xl md:text-3xl uppercase mb-3`,children:e.title}),(0,j.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:e.desc})]},e.no))}),(0,j.jsx)(`p`,{className:`mt-10 max-w-3xl mx-auto text-center text-muted-foreground text-sm`,children:`Every item is sharpened by hand and individually controlled and inspected â including when a belt sharpening system is used â so your edge is consistent and your tools are treated with care.`})]})}),(0,j.jsx)(`section`,{className:`border-b border-border py-20`,children:(0,j.jsxs)(`div`,{className:`max-w-3xl mx-auto px-6`,children:[(0,j.jsx)(`p`,{className:`font-mono text-xs uppercase tracking-[0.4em] text-primary mb-4`,children:`// A question we're asked`}),(0,j.jsx)(`h2`,{className:`font-display text-3xl md:text-4xl uppercase mb-5`,children:`What about serrated knives?`}),(0,j.jsx)(`p`,{className:`text-muted-foreground mb-4`,children:`We hear this one a lot. Serrated knives need a different approach than straight-edge blades, and we want to get it right. We're finalizing how we'll handle serrated knives as part of our service.`}),(0,j.jsxs)(`p`,{className:`text-muted-foreground`,children:[`Have a serrated knife you'd like sharpened?`,` `,(0,j.jsx)(hs,{to:`/contact`,className:`text-primary hover:underline`,children:`Reach out`}),` `,`â we'll quote it before service.`]})]})}),(0,j.jsx)(eh,{})]})}function $m({kicker:e,title:t,sub:n}){return(0,j.jsx)(`section`,{className:`border-b border-border py-16 md:py-20`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10`,children:[(0,j.jsx)(`p`,{className:`font-mono text-xs uppercase tracking-[0.4em] text-primary mb-4`,children:e}),(0,j.jsx)(`h1`,{className:`font-display text-5xl md:text-7xl uppercase leading-none max-w-3xl`,children:t}),n&&(0,j.jsx)(`p`,{className:`mt-6 max-w-2xl text-lg text-muted-foreground`,children:n})]})})}function eh(){return(0,j.jsx)(`section`,{className:`py-20 md:py-24`,children:(0,j.jsxs)(`div`,{className:`max-w-3xl mx-auto px-6 text-center`,children:[(0,j.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl uppercase mb-5`,children:`Ready when you are`}),(0,j.jsx)(`p`,{className:`text-muted-foreground mb-8`,children:`Questions or want to schedule a pickup? We'd love to hear from you.`}),(0,j.jsxs)(hs,{to:`/contact`,className:`inline-flex items-center gap-2 px-8 py-4 bg-primary text-primary-foreground font-display text-lg uppercase tracking-tight hover:bg-primary/90 transition-colors`,children:[`Contact us `,(0,j.jsx)(nn,{className:`w-4 h-4`})]})]})})}var th=[`Vancouver`,`Salmon Creek`,`Hazel Dell`,`Orchards`,`Brush Prairie`,`Battle Ground`,`C
37amas`,`Washougal`,`Minnehaha`,`Felida`,`Lake Shore`];function nh(){return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)($m,{kicker:`// Service Area`,title:`Where we pick up`,sub:`Based in ${$.location}, we offer scheduled pickup and return across the surrounding area â complimentary within 15 miles.`}),(0,j.jsx)(`section`,{className:`border-b border-border py-16 md:py-20`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10 grid lg:grid-cols-3 gap-10`,children:[(0,j.jsxs)(`div`,{className:`lg:col-span-2`,children:[(0,j.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-3 gap-px bg-border`,children:th.map(e=>(0,j.jsxs)(`div`,{className:`bg-background p-5 flex items-center gap-3`,children:[(0,j.jsx)(fn,{className:`w-4 h-4 text-primary shrink-0`}),(0,j.jsx)(`span`,{className:`text-sm uppercase tracking-wider`,children:e})]},e))}),(0,j.jsx)(`p`,{className:`mt-6 text-sm text-muted-foreground`,children:`Don't see your neighborhood? We're still finalizing routes â reach out and we'll do our best to include you.`})]}),(0,j.jsxs)(`div`,{className:`border border-border p-8 h-fit`,children:[(0,j.jsx)(sn,{className:`w-8 h-8 text-primary mb-4`}),(0,j.jsx)(`h2`,{className:`font-display text-2xl uppercase mb-3`,children:`Outside the list?`}),(0,j.jsx)(`p`,{className:`text-muted-foreground text-sm mb-4`,children:`If you're outside the areas listed, contact us â we'll do our best to include you. Outside 15 miles, call or email to arrange pickup.`}),(0,j.jsx)(`a`,{href:$.emailHref,className:`text-primary text-sm uppercase tracking-wider hover:underline`,children:$.email})]})]})}),(0,j.jsx)(`section`,{className:`border-b border-border py-16 md:py-20`,children:(0,j.jsx)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10`,children:(0,j.jsxs)(`div`,{className:`border border-border p-8 md:p-10 bg-card/30`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3 mb-5`,children:[(0,j.jsx)(bn,{className:`w-7 h-7 text-primary`}),(0,j.jsx)(`h2`,{className:`font-display text-2xl md:text-3xl uppercase`,children:`Loaner knives available`})]}),(0,j.jsx)(`p`,{className:`text-muted-foreground max-w-3xl mb-4`,children:`We don't carry a full loaner inventory yet, but we do offer a loaner program on request. If 48 hours is too long to be without your knives, let us know what type of knives you need to borrow while yours get sharpened and we'll do our best to set you up.`}),(0,j.jsxs)(`a`,{href:$.emailHref,className:`inline-flex items-center gap-2 text-primary text-sm uppercase tracking-wider hover:underline`,children:[`Request a loaner â `,$.email]})]})})}),(0,j.jsx)(eh,{})]})}var rh=[{q:`Are you open?`,a:`Yes â The Bear's Edge is sharpening in Vancouver, WA. We offer scheduled pickup and return plus drop-off by appointment.`},{q:`What do you sharpen?`,a:`Kitchen and chef knives, pocket and EDC knives, and household scissors â $15 per item, tax included. We're adding more items as we grow.`},{q:`What about serrated knives?`,a:`This is a question we're asked a lot. Serrated knives need a different approach than straight edges, and we want to get it right. Reach out and we'll quote it before service.`},{q:`How does pickup and return work?`,a:`You book a time, we collect your items, sharpen them by hand, and return them on an agreed schedule. Most items are ready within 48 hours. No drop-off required.`},{q:`Can I drop off instead?`,a:`Yes â we offer scheduled drop-off by appointment at our Vancouver location. Most items are ready within 48 hours.`},{q:`What does it cost?`,a:`$15 per item, tax included, for kitchen and chef knives, pocket and EDC knives, and household scissors. Serrated, specialty, and repairs are quoted before service.`},{q:`What areas do you serve?`,a:`We're based in Vancouver, Washington, and offer pickup and return across the surrounding area. Complimentary within 15 miles â outside that, call or email to arrange.`},{q:`How can I get in touch?`,a:`Call 360-559-2530 or email [email protected]. You can also use the contact form on our Contact page â we're happy to answer questions.`}];function ih(){return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)($m,{kicker:`// FAQ`,title:`Questions & answers`,sub:`Straight answers about our sharpening service. Don't see your question? Reach out â we're glad to help.`}),(0,j.jsx)(`section`,{className:`border-b border-border py-16 md:py-20`,children:(0,j.jsx)(`div`,{className:`max-w-3xl mx-auto px-6 divide-y divide-border`,children:rh.map(e=>(0,j.jsxs)(`div`,{className:`py-6`,children:[(0,j.jsx)(`h2`,{className:`font-display text-xl md:text-2xl uppercase mb-3`,children:e.q}),(0,j.jsx)(`p`,{className:`text-muted-foreground`,children:e.a})]},e.q))})}),(0,j.jsx)(eh,{})]})}function ah(){return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`section`,{className:`border-b border-border py-16 md:py-24`,children:(0,j.jsxs)(`div`,{className:`max-w-3xl mx-auto px-6 md:px-10`,children:[(0,j.jsx)(`h1`,{className:`font-display text-5xl md:text-7xl uppercase leading-[0.9] text-center mb-10 md:mb-12`,children:`The story behind the edge`}),(0,j.jsxs)(`div`,{className:`space-y-5 text-muted-foreground text-base md:text-lg leading-relaxed text-left`,children:[(0,j.jsx)(`p`,{children:`After a 35-year career in IT services, I medically retired earlier than expected. Ret
37irement closed one chapter of my life, but it also gave me the opportunity to begin something new. Together with my daughter, I'm building The Bear's Edgeâa locally owned business focused on careful, dependable knife sharpening and serving our community.`}),(0,j.jsx)(`p`,{children:`As the business grows, we hope to explore additional services such as laser engraving, 3D printing, and UV printing. Just as importantly, The Bear's Edge gives us a meaningful way to give back. Twenty percent of our proceeds will be divided equally between ALK Positive and the Adult Congenital Heart Associationâtwo causes connected to health conditions that have profoundly affected my life.`}),(0,j.jsx)(`p`,{children:`We're starting small, continuing to learn, and building the business with care. Our hope is to create something lasting that serves our neighbors, supports two important causes, and continues growing for years to come.`})]})]})}),(0,j.jsx)(`section`,{className:`border-b border-border py-16 md:py-20`,children:(0,j.jsx)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10 grid md:grid-cols-3 gap-10`,children:[{t:`Honesty first`,d:`Simple pricing, clear answers, and no promises we can't keep. If we're not ready to do something well, we'll say so.`},{t:`Care for your tools`,d:`Every blade is sharpened by hand and inspected before it comes back. Your tools are handled like our own.`},{t:`Community-minded`,d:`We give back a portion of what we earn to causes that matter â because a local business should lift its community.`}].map(e=>(0,j.jsxs)(`div`,{className:`border-l-2 border-primary pl-5`,children:[(0,j.jsx)(`h3`,{className:`font-display text-2xl uppercase mb-3`,children:e.t}),(0,j.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:e.d})]},e.t))})}),(0,j.jsx)(Km,{}),(0,j.jsx)(`section`,{className:`py-20 md:py-24`,children:(0,j.jsxs)(`div`,{className:`max-w-3xl mx-auto px-6 text-center`,children:[(0,j.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl uppercase mb-5`,children:`Want to know more?`}),(0,j.jsx)(`p`,{className:`text-muted-foreground mb-8`,children:`We'd love to share more and answer your questions before we open.`}),(0,j.jsxs)(hs,{to:`/contact`,className:`inline-flex items-center gap-2 px-8 py-4 bg-primary text-primary-foreground font-display text-lg uppercase tracking-tight hover:bg-primary/90 transition-colors`,children:[`Get in touch `,(0,j.jsx)(nn,{className:`w-4 h-4`})]})]})})]})}var oh=[`General question`,`Pricing question`,`Schedule a pickup`,`Serrated knife question`,`Service area question`,`Other`];function sh(){let[e,t]=(0,_.useState)({name:``,email:``,phone:``,reason:oh[0],message:``}),[n,r]=(0,_.useState)(!1),i=(e,n)=>t(t=>({...t,[e]:n}));return n?(0,j.jsxs)(`div`,{className:`border border-border bg-card p-8 text-center`,children:[(0,j.jsx)(`div`,{className:`w-12 h-12 mx-auto mb-4 bg-primary flex items-center justify-center`,children:(0,j.jsx)(an,{className:`w-6 h-6 text-primary-foreground`})}),(0,j.jsx)(`h3`,{className:`font-display text-2xl uppercase mb-2`,children:`Thanks for reaching out`}),(0,j.jsx)(`p`,{className:`text-muted-foreground mb-4`,children:`Your email draft is ready â send it and we'll reply as soon as we can.`}),(0,j.jsx)(`button`,{onClick:()=>r(!1),className:`text-primary text-sm uppercase tracking-wider hover:underline`,children:`Send another message`})]}):(0,j.jsxs)(`form`,{onSubmit:t=>{t.preventDefault();let n=encodeURIComponent(`The Bear's Edge â ${e.reason}`),i=encodeURIComponent(`Name: ${e.name}\nEmail: ${e.email}\nPhone: ${e.phone}\nReason: ${e.reason}\n\nMessage:\n${e.message}`);window.location.href=`${$.emailHref}?subject=${n}&body=${i}`,r(!0)},className:`space-y-6`,children:[(0,j.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-6`,children:[(0,j.jsx)(ch,{label:`Name`,children:(0,j.jsx)(`input`,{type:`text`,required:!0,value:e.name,onChange:e=>i(`name`,e.target.value),placeholder:`Your name`,className:`input-base`})}),(0,j.jsx)(ch,{label:`Email`,children:(0,j.jsx)(`input`,{type:`email`,required:!0,value:e.email,onChange:e=>i(`email`,e.target.value),placeholder:`[email protected]`,className:`input-base`})}),(0,j.jsx)(ch,{label:`Phone`,children:(0,j.jsx)(`input`,{type:`tel`,value:e.phone,onChange:e=>i(`phone`,e.target.value),placeholder:`360-555-0100`,className:`input-base`})}),(0,j.jsx)(ch,{label:`Reason for contact`,children:(0,j.jsx)(`select`,{value:e.reason,onChange:e=>i(`reason`,e.target.value),className:`input-base`,children:oh.map(e=>(0,j.jsx)(`option`,{value:e,children:e},e))})})]}),(0,j.jsx)(ch,{label:`Message`,children:(0,j.jsx)(`textarea`,{required:!0,rows:5,value:e.message,onChange:e=>i(`message`,e.target.value),placeholder:`Tell us what you needâ¦`,className:`input-base resize-none`})}),(0,j.jsxs)(`button`,{type:`submit`,className:`w-full md:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 bg-primary text-primary-foreground font-display text-lg uppercase tracking-tight hover:bg-primary/90 transition-colors`,children:[(0,j.jsx)(_n,{className:`w-4 h-4`}),` Send message`]})]})}function ch({label:e,children:t}){return(0,j.jsxs)(`label`,{className:`block`,children:[(0,j.jsx)(`span`,{className:`block text-xs uppercase tracking-widest text-muted-foreground mb-2`,children:e}),t]})}function lh(){return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`section`,{className:`border-b border-border py-16 md:py-20`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10`,children:[(0,j.jsx)(`p`,{className:`font-mono text-xs uppercase tracking-[0.4em] text-primary mb-4`,children:`// Contact`}),(0,j.jsx)(`h1`,{className:`font-display text-5xl md:text-7xl uppercase leading-none max-w-3xl`,children:`Let's talk`}),(0,j.jsx)(`p`,{className:`mt-6 max-w-2xl text-lg text-muted-foreground`,children:`Questions, pricing, or want to schedule a pickup? Send us a message â we'll get back to you shortly.`})]})}),(0,j.jsx)(`section`,{className:`border-b border-border py-16 md:py-20`,children:(0,j.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 md:px-10 grid lg:grid-cols-12 gap-12`,children:[(0,j.jsxs)(`div`,{className:`lg:col-span-4 space-y-6`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-xs uppercase tracking-widest text-primary mb-3`,children:`Phone`}),(0,j.jsxs)(`a`,{href:$.phoneHref,className:`flex items-center gap-3 text-2xl font-display hover:text-primary transition-colors`,children:[(0,j.jsx)(mn,{className:`w-5 h-5 text-primary`}),$.phone]})]}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-xs uppercase tracking-widest text-primary mb-3`,children:`Email`}),(0,j.jsxs)(`a`,{href:$.emailHref,className:`flex items-center gap-3 text-lg hover:text-primary transition-colors break-all`,children:[(0,j.jsx)(dn,{className:`w-5 h-5 text-primary shrink-0`}),$.email]})]}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-xs uppercase tracking-widest text-primary mb-3`,children:`Location`}),(0,j.jsxs)(`p`,{className:`flex items-center gap-3 text-lg`,children:[(0,j.jsx)(fn,{className:`w-5 h-5 text-primary`}),$.location]})]}),(0,j.jsx)(`div`,{className:`border border-border p-5 mt-8`,children:(0,j.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Reach out by phone or email â or use the form. We'll reply as soon as we can.`})})]}),(0,j.jsx)(`div`,{className:`lg:col-span-8`,children:(0,j.jsx)(sh,{})})]})})]})}var uh=()=>{let{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=vm();if(t||e)return(0,j.jsx)(`div`,{className:`fixed inset-0 flex items-center justify-center bg-background`,children:(0,j.jsx)(`div`,{className:`w-8 h-8 border-4 border-secondary border-t-primary rounded-full animate-spin`})});if(n){if(n.type===`user_not_registered`)return(0,j.jsx)(ym,{});if(n.type===`auth_required`)return r(),null}return(0,j.jsxs)(ns,{children:[(0,j.jsxs)(es,{element:(0,j.jsx)(Gm,{}),children:[(0,j.jsx)(es,{path:`/`,element:(0,j.jsx)(Xm,{})}),(0,j.jsx)(es,{path:`/services`,element:(0,j.jsx)(Qm,{})}),(0,j.jsx)(es,{path:`/how-it-works`,element:(0,j.jsx)(Qo,{to:`/`,replace:!0})}),(0,j.jsx)(es,{path:`/pricing`,element:(0,j.jsx)(Qo,{to:`/#pricing`,replace:!0})}
37),(0,j.jsx)(es,{path:`/service-area`,element:(0,j.jsx)(nh,{})}),(0,j.jsx)(es,{path:`/faq`,element:(0,j.jsx)(ih,{})}),(0,j.jsx)(es,{path:`/about`,element:(0,j.jsx)(ah,{})}),(0,j.jsx)(es,{path:`/contact`,element:(0,j.jsx)(lh,{})})]}),(0,j.jsx)(es,{path:`*`,element:(0,j.jsx)(hm,{})})]})};function dh(){return(0,j.jsx)(_m,{children:(0,j.jsxs)(ca,{client:Ca,children:[(0,j.jsxs)(fs,{children:[(0,j.jsx)(xm,{}),(0,j.jsx)(uh,{})]}),(0,j.jsx)(ti,{})]})})}g.createRoot(document.getElementById(`root`)).render((0,j.jsx)(dh,{}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.