vendor: 6,165 bytes, lines 1-9
1var IR=Object.defineProperty;var $x=e=>{throw TypeError(e)};var OR=(e,t,n)=>t in e?IR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ht=(e,t,n)=>OR(e,typeof t!="symbol"?t+"":t,n),Kp=(e,t,n)=>t.has(e)||$x("Cannot "+n);var z=(e,t,n)=>(Kp(e,t,"read from private field"),n?n.call(e):t.get(e)),Be=(e,t,n)=>t.has(e)?$x("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),we=(e,t,n,r)=>(Kp(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Xe=(e,t,n)=>(Kp(e,t,"access private method"),n);var fd=(e,t,n,r)=>({set _(s){we(e,t,s,n)},get _(){return z(e,t,r)}});function LR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Ml(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qp={exports:{}},Au={},Gp={exports:{}},Qe={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var qx;function DR(){if(qx)return Qe;qx=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function b(U){return U===null||typeof U!="object"?null:(U=m&&U[m]||U["@@iterator"],typeof U=="function"?U:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function A(U,X,O){this.props=U,this.context=X,this.refs=w,this.updater=O||E}A.prototype.isReactComponent={},A.prototype.setState=function(U,X){if(typeof U!="object"&&typeof U!="function"&&U!=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,U,X,"setState")},A.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function T(){}T.prototype=A.prototype;function N(U,X,O){this.props=U,this.context=X,this.refs=w,this.updater=O||E}var S=N.prototype=new T;S.constructor=N,_(S,A.prototype),S.isPureReactComponent=!0;var R=Array.isArray,D=Object.prototype.hasOwnProperty,M={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function H(U,X,O){var Ee,Pe={},_e=null,te=null;if(X!=null)for(Ee in X.ref!==void 0&&(te=X.ref),X.key!==void 0&&(_e=""+X.key),X)D.call(X,Ee)&&!W.hasOwnProperty(Ee)&&(Pe[Ee]=X[Ee]);var xe=arguments.length-2;if(xe===1)Pe.children=O;else if(1<xe){for(var Ie=Array(xe),Oe=0;Oe<xe;Oe++)Ie[Oe]=arguments[Oe+2];Pe.children=Ie}if(U&&U.defaultProps)for(Ee in xe=U.defaultProps,xe)Pe[Ee]===void 0&&(Pe[Ee]=xe[Ee]);return{$$typeof:e,type:U,key:_e,ref:te,props:Pe,_owner:M.current}}function se(U,X){return{$$typeof:e,type:U.type,key:X,ref:U.ref,props:U.props,_owner:U._owner}}function J(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function ee(U){var X={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(O){return X[O]})}var oe=/\/+/g;function ie(U,X){return typeof U=="object"&&U!==null&&U.key!=null?ee(""+U.key):X.toString(36)}function ne(U,X,O,Ee,Pe){var _e=typeof U;(_e==="undefined"||_e==="boolean")&&(U=null);var te=!1;if(U===null)te=!0;else switch(_e){case"string":case"number":te=!0;break;case"object":switch(U.$$typeof){case e:case t:te=!0}}if(te)return te=U,Pe=Pe(te),U=Ee===""?"."+ie(te,0):Ee,R(Pe)?(O="",U!=null&&(O=U.replace(oe,"$&/")+"/"),ne(Pe,X,O,"",function(Oe){return Oe})):Pe!=null&&(J(Pe)&&(Pe=se(Pe,O+(!Pe.key||te&&te.key===Pe.key?"":(""+Pe.key).replace(oe,"$&/")+"/")+U)),X.push(Pe)),1;if(te=0,Ee=Ee===""?".":Ee+":",R(U))for(var xe=0;xe<U.length;xe++){_e=U[xe];var Ie=Ee+ie(_e,xe);te+=ne(_e,X,O,Ie,Pe)}else if(Ie=b(U),typeof Ie=="function")for(U=Ie.call(U),xe=0;!(_e=U.next()).done;)_e=_e.value,Ie=Ee+ie(_e,xe++),te+=ne(_e,X,O,Ie,Pe);else if(_e==="object")throw X=String(U),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.");return te}function me(U,X,O){if(U==null)return U;var Ee=[],Pe=0;return ne(U,Ee,"","",function(_e){return X.call(O,_e,Pe++)}),Ee}function de(U){if(U._status===-1){var X=U._result;X=X(),X.then(function(O){(U._status===0||U._status===-1)&&(U._status=1,U._result=O)},function(O){(U._status===0||U._status===-1)&&(U._status=2,U._result=O)}),U._status===-1&&(U._status=0,U._result=X)}if(U._status===1)return U._result.default;throw U._result}var ae={current:null},$={transition:null},fe={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:$,ReactCurrentOwner:M};function I(){throw Error("act(...) is not supported in production builds of React.")}return Qe.Children={map:me,forEach:function(U,X,O){me(U,function(){X.apply(this,arguments)},O)},count:function(U){var X=0;return me(U,function(){X++}),X},toArray:function(U){return me(U,function(X){return X})||[]}
vendor: 9,562 bytes, lines 9-33
9,only:function(U){if(!J(U))throw Error("React.Children.only expected to receive a single React element child.");return U}},Qe.Component=A,Qe.Fragment=n,Qe.Profiler=s,Qe.PureComponent=N,Qe.StrictMode=r,Qe.Suspense=d,Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fe,Qe.act=I,Qe.cloneElement=function(U,X,O){if(U==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+U+".");var Ee=_({},U.props),Pe=U.key,_e=U.ref,te=U._owner;if(X!=null){if(X.ref!==void 0&&(_e=X.ref,te=M.current),X.key!==void 0&&(Pe=""+X.key),U.type&&U.type.defaultProps)var xe=U.type.defaultProps;for(Ie in X)D.call(X,Ie)&&!W.hasOwnProperty(Ie)&&(Ee[Ie]=X[Ie]===void 0&&xe!==void 0?xe[Ie]:X[Ie])}var Ie=arguments.length-2;if(Ie===1)Ee.children=O;else if(1<Ie){xe=Array(Ie);for(var Oe=0;Oe<Ie;Oe++)xe[Oe]=arguments[Oe+2];Ee.children=xe}return{$$typeof:e,type:U.type,key:Pe,ref:_e,props:Ee,_owner:te}},Qe.createContext=function(U){return U={$$typeof:u,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},U.Provider={$$typeof:o,_context:U},U.Consumer=U},Qe.createElement=H,Qe.createFactory=function(U){var X=H.bind(null,U);return X.type=U,X},Qe.createRef=function(){return{current:null}},Qe.forwardRef=function(U){return{$$typeof:l,render:U}},Qe.isValidElement=J,Qe.lazy=function(U){return{$$typeof:h,_payload:{_status:-1,_result:U},_init:de}},Qe.memo=function(U,X){return{$$typeof:f,type:U,compare:X===void 0?null:X}},Qe.startTransition=function(U){var X=$.transition;$.transition={};try{U()}finally{$.transition=X}},Qe.unstable_act=I,Qe.useCallback=function(U,X){return ae.current.useCallback(U,X)},Qe.useContext=function(U){return ae.current.useContext(U)},Qe.useDebugValue=function(){},Qe.useDeferredValue=function(U){return ae.current.useDeferredValue(U)},Qe.useEffect=function(U,X){return ae.current.useEffect(U,X)},Qe.useId=function(){return ae.current.useId()},Qe.useImperativeHandle=function(U,X,O){return ae.current.useImperativeHandle(U,X,O)},Qe.useInsertionEffect=function(U,X){return ae.current.useInsertionEffect(U,X)},Qe.useLayoutEffect=function(U,X){return ae.current.useLayoutEffect(U,X)},Qe.useMemo=function(U,X){return ae.current.useMemo(U,X)},Qe.useReducer=function(U,X,O){return ae.current.useReducer(U,X,O)},Qe.useRef=function(U){return ae.current.useRef(U)},Qe.useState=function(U){return ae.current.useState(U)},Qe.useSyncExternalStore=function(U,X,O){return ae.current.useSyncExternalStore(U,X,O)},Qe.useTransition=function(){return ae.current.useTransition()},Qe.version="18.3.1",Qe}var Yx;function wg(){return Yx||(Yx=1,Gp.exports=DR()),Gp.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Kx;function MR(){if(Kx)return Au;Kx=1;var e=wg(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function u(l,d,f){var h,m={},b=null,E=null;f!==void 0&&(b=""+f),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(E=d.ref);for(h in d)r.call(d,h)&&!o.hasOwnProperty(h)&&(m[h]=d[h]);if(l&&l.defaultProps)for(h in d=l.defaultProps,d)m[h]===void 0&&(m[h]=d[h]);return{$$typeof:t,type:l,key:b,ref:E,props:m,_owner:s.current}}return Au.Fragment=n,Au.jsx=u,Au.jsxs=u,Au}var Qx;function BR(){return Qx||(Qx=1,Qp.exports=MR()),Qp.exports}var g=BR(),C=wg();const pn=Ml(C),Sg=LR({__proto__:null,default:pn},[C]);var hd={},Xp={exports:{}},In={},Jp={exports:{}},Zp={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var Gx;function FR(){return Gx||(Gx=1,(function(e){function t($,fe){var I=$.length;$.push(fe);e:for(;0<I;){var U=I-1>>>1,X=$[U];if(0<s(X,fe))$[U]=fe,$[I]=X,I=U;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var fe=$[0],I=$.pop();if(I!==fe){$[0]=I;e:for(var U=0,X=$.length,O=X>>>1;U<O;){var Ee=2*(U+1)-1,Pe=$[Ee],_e=Ee+1,te=$[_e];if(0>s(Pe,I))_e<X&&0>s(te,Pe)?($[U]=te,$[_e]=I,U=_e):($[U]=Pe,$[Ee]=I,U=Ee);else if(_e<X&&0>s(te,I))$[U]=te,$[_e]=I,U=_e;else break e}}return fe}function s($,fe){var I=$.sortIndex-fe.sortIndex;return I!==0?I:$.id-fe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,l=u.now();e.unstable_now=function(){return u.now()-l}}var d=[],f=[],h=1,m=null,b=3,E=!1,_=!1,w=!1,A=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S($){for(var fe=n(f);fe!==null;){if(fe.callback===null)r(f);else if(fe.startTime<=$)r(f),fe.sortIndex=fe.expirationTime,t(d,fe);else break;fe=n(f)}}function R($){if(w=!1,S($),!_)if(n(d)!==null)_=!0,de(D);else{var fe=n(f);fe!==null&&ae(R,fe.startTime-$)}}function D($,fe){_=!1,w&&(w=!1,T(H),H=-1),E=!0;var I=b;try{for(S(fe),m=n(d);m!==null&&(!(m.expirationTime>fe)||$&&!ee());){var U=m.callback;if(typeof U=="function"){m.callback=null,b=m.priorityLevel;var X=U(m.expirationTime<=fe);fe=e.unstable_now(),typeof X=="function"?m.callback=X:m===n(d)&&r(d),S(fe)}else r(d);m=n(d)}if(m!==null)var O=!0;else{var Ee=n(f);Ee!==null&&ae(R,Ee.startTime-fe),O=!1}return O}finally{m=null,b=I,E=!1}}var M=!1,W=null,H=-1,se=5,J=-1;function ee(){return!(e.unstable_now()-J<se)}function oe(){if(W!==null){var $=e.unstable_now();J=$;var fe=!0;try{fe=W(!0,$)}finally{fe?ie():(M=!1,W=null)}}else M=!1}var ie;if(typeof N=="function")ie=function(){N(oe)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,me=ne.port2;ne.port1.onmessage=oe,ie=function(){me.postMessage(null)}}else ie=function(){A(oe,0)};function de($){W=$,M||(M=!0,ie())}function ae($,fe){H=A(function(){$(e.unstable_now())},fe)}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($){$.callback=null},e.unstable_continueExecution=function(){_||E||(_=!0,de(D))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function($){switch(b){case 1:case 2:case 3:var fe=3;break;default:fe=b}var I=b;b=fe;try{return $()}finally{b=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,fe){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var I=b;b=$;try{return fe()}finally{b=I}},e.unstable_scheduleCallback=function($,fe,I){var U=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?U+I:U):I=U,$){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=I+X,$={id:h++,callback:fe,priorityLevel:$,startTime:I,expirationTime:X,sortIndex:-1},I>U?($.sortIndex=I,t(f,$),n(d)===null&&$===n(f)&&(w?(T(H),H=-1):w=!0,ae(R,I-U))):($.sortIndex=X,t(d,$),_||E||(_=!0,de(D))),$},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function($){var fe=b;return function(){var I=b;b=fe;try{return $.apply(this,arguments)}finally{b=I}}}})(Zp)),Zp}var Xx;function jR(){return Xx||(Xx=1,Jp.exports=FR()),Jp.exports}/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Jx;function UR(){if(Jx)return In;Jx=1;var e=wg(),t=jR();function n(i){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+i,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,s={};function o(i,a){u(i,a),u(i+"Capture",a)}function u(i,a){for(s[i]=a,i=0;i<a.length;i++)r.add(a[i])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},m={};function b(i){return d.call(m,i)?!0:d.call(h,i)?!1:f.test(i)?m[i]=!0:(h[i]=!0,!1)}function E(i,a,c,p){if(c!==null&&c.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return p?!1:c!==null?!c.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function _(i,a,c,p){if(a===null||typeof a>"u"||E(i,a,c,p))return!0;
vendor: 47,893 bytes, lines 33-38
33if(p)return!1;if(c!==null)switch(c.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function w(i,a,c,p,x,v,k){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=p,this.attributeNamespace=x,this.mustUseProperty=c,this.propertyName=i,this.type=a,this.sanitizeURL=v,this.removeEmptyString=k}var A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){A[i]=new w(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var a=i[0];A[a]=new w(a,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){A[i]=new w(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){A[i]=new w(i,2,!1,i,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(i){A[i]=new w(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){A[i]=new w(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){A[i]=new w(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){A[i]=new w(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){A[i]=new w(i,5,!1,i.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function N(i){return i[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(i){var a=i.replace(T,N);A[a]=new w(a,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var a=i.replace(T,N);A[a]=new w(a,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var a=i.replace(T,N);A[a]=new w(a,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){A[i]=new w(i,1,!1,i.toLowerCase(),null,!1,!1)}),A.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){A[i]=new w(i,1,!1,i.toLowerCase(),null,!0,!0)});function S(i,a,c,p){var x=A.hasOwnProperty(a)?A[a]:null;(x!==null?x.type!==0:p||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(_(a,c,x,p)&&(c=null),p||x===null?b(a)&&(c===null?i.removeAttribute(a):i.setAttribute(a,""+c)):x.mustUseProperty?i[x.propertyName]=c===null?x.type===3?!1:"":c:(a=x.attributeName,p=x.attributeNamespace,c===null?i.removeAttribute(a):(x=x.type,c=x===3||x===4&&c===!0?"":""+c,p?i.setAttributeNS(p,a,c):i.setAttribute(a,c))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),M=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),J=Symbol.for("react.provider"),ee=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),$=Symbol.iterator;function fe(i){return i===null||typeof i!="object"?null:(i=$&&i[$]||i["@@iterator"],typeof i=="function"?i:null)}var I=Object.assign,U;function X(i){if(U===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);U=a&&a[1]||""}return` 34`+U+i}var O=!1;function Ee(i,a){if(!i||O)return"";O=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(G){var p=G}Reflect.construct(i,[],a)}else{try{a.call()}catch(G){p=G}i.call(a.prototype)}else{try{throw Error()}catch(G){p=G}i()}}catch(G){if(G&&p&&typeof G.stack=="string"){for(var x=G.stack.split(` 35`),v=p.stack.split(` 36`),k=x.length-1,B=v.length-1;1<=k&&0<=B&&x[k]!==v[B];)B--;for(;1<=k&&0<=B;k--,B--)if(x[k]!==v[B]){if(k!==1||B!==1)do if(k--,B--,0>B||x[k]!==v[B]){var j=` 37`+x[k].replace(" at new "," at ");return i.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",i.displayName)),j}while(1<=k&&0<=B);break}}}finally{O=!1,Error.prepareStackTrace=c}return(i=i?i.displayName||i.name:"")?X(i):""}function Pe(i){switch(i.tag){case 5:return X(i.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return i=Ee(i.type,!1),i;case 11:return i=Ee(i.type.render,!1),i;case 1:return i=Ee(i.type,!0),i;default:return""}}function _e(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case W:return"Fragment";case M:return"Portal";case se:return"Profiler";case H:return"StrictMode";case ie:return"Suspense";case ne:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case ee:return(i.displayName||"Context")+".Consumer";case J:return(i._context.displayName||"Context")+".Provider";case oe:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case me:return a=i.displayName||null,a!==null?a:_e(i.type)||"Memo";case de:a=i._payload,i=i._init;try{return _e(i(a))}catch{}}return null}function te(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _e(a);case 8:return a===H?"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 a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function xe(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ie(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Oe(i){var a=Ie(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),p=""+i[a];if(!i.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var x=c.get,v=c.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return x.call(this)},set:function(k){p=""+k,v.call(this,k)}}),Object.defineProperty(i,a,{enumerable:c.enumerable}),{getValue:function(){return p},setValue:function(k){p=""+k},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function We(i){i._valueTracker||(i._valueTracker=Oe(i))}function Fe(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var c=a.getValue(),p="";return i&&(p=Ie(i)?i.checked?"true":"false":i.value),i=p,i!==c?(a.setValue(i),!0):!1}function st(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function dt(i,a){var c=a.checked;return I({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??i._wrapperState.initialChecked})}function Cn(i,a){var c=a.defaultValue==null?"":a.defaultValue,p=a.checked!=null?a.checked:a.defaultChecked;c=xe(a.value!=null?a.value:c),i._wrapperState={initialChecked:p,initialValue:c,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function xn(i,a){a=a.checked,a!=null&&S(i,"checked",a,!1)}function St(i,a){xn(i,a);var c=xe(a.value),p=a.type;if(c!=null)p==="number"?(c===0&&i.value===""||i.value!=c)&&(i.value=""+c):i.value!==""+c&&(i.value=""+c);else if(p==="submit"||p==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?lt(i,a.type,c):a.hasOwnProperty("defaultValue")&<(i,a.type,xe(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function je(i,a,c){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type;if(!(p!=="submit"&&p!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,c||a===i.value||(i.value=a),i.defaultValue=a}c=i.name,c!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,c!==""&&(i.name=c)}function lt(i,a,c){(a!=="number"||st(i.ownerDocument)!==i)&&(c==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+c&&(i.defaultValue=""+c))}var Gt=Array.isArray;function an(i,a,c,p){if(i=i.options,a){a={};for(var x=0;x<c.length;x++)a["$"+c[x]]=!0;for(c=0;c<i.length;c++)x=a.hasOwnProperty("$"+i[c].value),i[c].selected!==x&&(i[c].selected=x),x&&p&&(i[c].defaultSelected=!0)}else{for(c=""+xe(c),a=null,x=0;x<i.length;x++){if(i[x].value===c){i[x].selected=!0,p&&(i[x].defaultSelected=!0);return}a!==null||i[x].disabled||(a=i[x])}a!==null&&(a.selected=!0)}}function _s(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return I({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function To(i,a){var c=a.value;if(c==null){if(c=a.children,a=a.defaultValue,c!=null){if(a!=null)throw Error(n(92));if(Gt(c)){if(1<c.length)throw Error(n(93));c=c[0]}a=c}a==null&&(a=""),c=a}i._wrapperState={initialValue:xe(c)}}function Pr(i,a){var c=xe(a.value),p=xe(a.defaultValue);c!=null&&(c=""+c,c!==i.value&&(i.value=c),a.defaultValue==null&&i.defaultValue!==c&&(i.defaultValue=c)),p!=null&&(i.defaultValue=""+p)}function sc(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function re(i){switch(i){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 be(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?re(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var He,Ke=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,c,p,x){MSApp.execUnsafeLocalFunction(function(){return i(a,c,p,x)})}:i})(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(He=He||document.createElement("div"),He.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=He.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function Ze(i,a){if(a){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=a;return}}i.textContent=a}var Xt={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},rs=["Webkit","ms","Moz","O"];Object.keys(Xt).forEach(function(i){rs.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),Xt[a]=Xt[i]})});function Zn(i,a,c){return a==null||typeof a=="boolean"||a===""?"":c||typeof a!="number"||a===0||Xt.hasOwnProperty(i)&&Xt[i]?(""+a).trim():a+"px"}function Cs(i,a){i=i.style;for(var c in a)if(a.hasOwnProperty(c)){var p=c.indexOf("--")===0,x=Zn(c,a[c],p);c==="float"&&(c="cssFloat"),p?i.setProperty(c,x):i[c]=x}}var wi=I({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 Jt(i,a){if(a){if(wi[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function Ir(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){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 zn=null;function lh(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ch=null,wo=null,So=null;function u1(i){if(i=fu(i)){if(typeof ch!="function")throw Error(n(280));var a=i.stateNode;a&&(a=Ac(a),ch(i.stateNode,i.type,a))}}function l1(i){wo?So?So.push(i):So=[i]:wo=i}function c1(){if(wo){var i=wo,a=So;if(So=wo=null,u1(i),a)for(i=0;i<a.length;i++)u1(a[i])}}function d1(i,a){return i(a)}function f1(){}var dh=!1;function h1(i,a,c){if(dh)return i(a,c);dh=!0;try{return d1(i,a,c)}finally{dh=!1,(wo!==null||So!==null)&&(f1(),c1())}}function $a(i,a){var c=i.stateNode;if(c===null)return null;var p=Ac(c);if(p===null)return null;c=p[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(n(231,a,typeof c));return c}var fh=!1;if(l)try{var qa={};Object.defineProperty(qa,"passive",{get:function(){fh=!0}}),window.addEventListener("test",qa,qa),window.removeEventListener("test",qa,qa)}catch{fh=!1}function Fk(i,a,c,p,x,v,k,B,j){var G=Array.prototype.slice.call(arguments,3);try{a.apply(c,G)}catch(ce){this.onError(ce)}}var Ya=!1,ic=null,oc=!1,hh=null,jk={onError:function(i){Ya=!0,ic=i}};function Uk(i,a,c,p,x,v,k,B,j){Ya=!1,ic=null,Fk.apply(jk,arguments)}function Hk(i,a,c,p,x,v,k,B,j){if(Uk.apply(this,arguments),Ya){if(Ya){var G=ic;Ya=!1,ic=null}else throw Error(n(198));oc||(oc=!0,hh=G)}}function Si(i){var a=i,c=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(c=a.return),i=a.return;while(i)}return a.tag===3?c:null}function p1(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function m1(i){if(Si(i)!==i)throw Error(n(188))}function Vk(i){var a=i.alternate;if(!a){if(a=Si(i),a===null)throw Error(n(188));return a!==i?null:i}for(var c=i,p=a;;){var x=c.return;if(x===null)break;var v=x.alternate;if(v===null){if(p=x.return,p!==null){c=p;continue}break}if(x.child===v.child){for(v=x.child;v;){if(v===c)return m1(x),i;if(v===p)return m1(x),a;v=v.sibling}throw Error(n(188))}if(c.return!==p.return)c=x,p=v;else{for(var k=!1,B=x.child;B;){if(B===c){k=!0,c=x,p=v;break}if(B===p){k=!0,p=x,c=v;break}B=B.sibling}if(!k){for(B=v.child;B;){if(B===c){k=!0,c=v,p=x;break}if(B===p){k=!0,p=v,c=x;break}B=B.sibling}if(!k)throw Error(n(189))}}if(c.alternate!==p)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?i:a}function g1(i){return i=Vk(i),i!==null?y1(i):null}function y1(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=y1(i);if(a!==null)return a;i=i.sibling}return null}var b1=t.unstable_scheduleCallback,x1=t.unstable_cancelCallback,zk=t.unstable_shouldYield,Wk=t.unstable_requestPaint,kt=t.unstable_now,$k=t.unstable_getCurrentPriorityLevel,ph=t.unstable_ImmediatePriority,E1=t.unstable_UserBlockingPriority,ac=t.unstable_NormalPriority,qk=t.unstable_LowPriority,v1=t.unstable_IdlePriority,uc=null,Or=null;function Yk(i){if(Or&&typeof Or.onCommitFiberRoot=="function")try{Or.onCommitFiberRoot(uc,i,void 0,(i.current.flags&128)===128)}catch{}}var mr=Math.clz32?Math.clz32:Gk,Kk=Math.log,Qk=Math.LN2;function Gk(i){return i>>>=0,i===0?32:31-(Kk(i)/Qk|0)|0}var lc=64,cc=4194304;function Ka(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function dc(i,a){var c=i.pendingLanes;if(c===0)return 0;var p=0,x=i.suspendedLanes,v=i.pingedLanes,k=c&268435455;if(k!==0){var B=k&~x;B!==0?p=Ka(B):(v&=k,v!==0&&(p=Ka(v)))}else k=c&~x,k!==0?p=Ka(k):v!==0&&(p=Ka(v));if(p===0)return 0;if(a!==0&&a!==p&&(a&x)===0&&(x=p&-p,v=a&-a,x>=v||x===16&&(v&4194240)!==0))return a;if((p&4)!==0&&(p|=c&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=p;0<a;)c=31-mr(a),x=1<<c,p|=i[c],a&=~x;return p}function Xk(i,a){switch(i){case 1:case 2:case 4:return a+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 a+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 Jk(i,a){for(var c=i.suspendedLanes,p=i.pingedLanes,x=i.expirationTimes,v=i.pendingLanes;0<v;){var k=31-mr(v),B=1<<k,j=x[k];j===-1?((B&c)===0||(B&p)!==0)&&(x[k]=Xk(B,a)):j<=a&&(i.expiredLanes|=B),v&=~B}}function mh(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function T1(){var i=lc;return lc<<=1,(lc&4194240)===0&&(lc=64),i}function gh(i){for(var a=[],c=0;31>c;c++)a.push(i);return a}function Qa(i,a,c){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-mr(a),i[a]=c}function Zk(i,a){var c=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var p=i.eventTimes;for(i=i.expirationTimes;0<c;){var x=31-mr(c),v=1<<x;a[x]=0,p[x]=-1,i[x]=-1,c&=~v}}function yh(i,a){var c=i.entangledLanes|=a;for(i=i.entanglements;c;){var p=31-mr(c),x=1<<p;x&a|i[p]&a&&(i[p]|=a),c&=~x}}var ut=0;function w1(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var S1,bh,_1,C1,A1,xh=!1,fc=[],As=null,Ns=null,ks=null,Ga=new Map,Xa=new Map,Rs=[],e3="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 N1(i,a){switch(i){case"focusin":case"focusout":As=null;break;case"dragenter":case"dragleave":Ns=null;break;case"mouseover":case"mouseout":ks=null;break;case"pointerover":case"pointerout":Ga.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xa.delete(a.pointerId)}}function Ja(i,a,c,p,x,v){return i===null||i.nativeEvent!==v?(i={blockedOn:a,domEventName:c,eventSystemFlags:p,nativeEvent:v,targetContainers:[x]},a!==null&&(a=fu(a),a!==null&&bh(a)),i):(i.eventSystemFlags|=p,a=i.targetContainers,x!==null&&a.indexOf(x)===-1&&a.push(x),i)}function t3(i,a,c,p,x){switch(a){case"focusin":return As=Ja(As,i,a,c,p,x),!0;case"dragenter":return Ns=Ja(Ns,i,a,c,p,x),!0;case"mouseover":return ks=Ja(ks,i,a,c,p,x),!0;case"pointerover":var v=x.pointerId;return Ga.set(v,Ja(Ga.get(v)||null,i,a,c,p,x)),!0;case"gotpointercapture":return v=x.pointerId,Xa.set(v,Ja(Xa.get(v)||null,i,a,c,p,x)),!0}return!1}function k1(i){var a=_i(i.target);if(a!==null){var c=Si(a);if(c!==null){if(a=c.tag,a===13){if(a=p1(c),a!==null){i.blockedOn=a,A1(i.priority,function(){_1(c)});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function hc(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var c=vh(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(c===null){c=i.nativeEvent;var p=new c.constructor(c.type,c);zn=p,c.target.dispatchEvent(p),zn=null}else return a=fu(c),a!==null&&bh(a),i.blockedOn=c,!1;a.shift()}return!0}function R1(i,a,c){hc(i)&&c.delete(a)}function n3(){xh=!1,As!==null&&hc(As)&&(As=null),Ns!==null&&hc(Ns)&&(Ns=null),ks!==null&&hc(ks)&&(ks=null),Ga.forEach(R1),Xa.forEach(R1)}function Za(i,a){i.blockedOn===a&&(i.blockedOn=null,xh||(xh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,n3)))}function eu(i){function a(x){return Za(x,i)}if(0<fc.length){Za(fc[0],i);for(var c=1;c<fc.length;c++){var p=fc[c];p.blockedOn===i&&(p.blockedOn=null)}}for(As!==null&&Za(As,i),Ns!==null&&Za(Ns,i),ks!==null&&Za(ks,i),Ga.forEach(a),Xa.forEach(a),c=0;c<Rs.length;c++)p=Rs[c],p.blockedOn===i&&(p.blockedOn=null);for(;0<Rs.length&&(c=Rs[0],c.blockedOn===null);)k1(c),c.blockedOn===null&&Rs.shift()}var _o=R.ReactCurrentBatchConfig,pc=!0;function r3(i,a,c,p){var x=ut,v=_o.transition;_o.transition=null;try{ut=1,Eh(i,a,c,p)}finally{ut=x,_o.transition=v}}function s3(i,a,c,p){var x=ut,v=_o.transition;_o.transition=null;try{ut=4,Eh(i,a,c,p)}finally{ut=x,_o.transition=v}}function Eh(i,a,c,p){if(pc){var x=vh(i,a,c,p);if(x===null)Fh(i,a,p,mc,c),N1(i,p);else if(t3(x,i,a,c,p))p.stopPropagation();else if(N1(i,p),a&4&&-1<e3.indexOf(i)){for(;x!==null;){var v=fu(x);if(v!==null&&S1(v),v=vh(i,a,c,p),v===null&&Fh(i,a,p,mc,c),v===x)break;x=v}x!==null&&p.stopPropagation()}else Fh(i,a,p,null,c)}}var mc=null;function vh(i,a,c,p){if(mc=null,i=lh(p),i=_i(i),i!==null)if(a=Si(i),a===null)i=null;else if(c=a.tag,c===13){if(i=p1(a),i!==null)return i;i=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return mc=i,null}function P1(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($k()){case ph:return 1;case E1:return 4;case ac:case qk:return 16;case v1:return 536870912;default:return 16}default:return 16}}var Ps=null,Th=null,gc=null;function I1(){if(gc)return gc;var i,a=Th,c=a.length,p,x="value"in Ps?Ps.value:Ps.textContent,v=x.length;for(i=0;i<c&&a[i]===x[i];i++);var k=c-i;for(p=1;p<=k&&a[c-p]===x[v-p];p++);return gc=x.slice(i,1<p?1-p:void 0)}function yc(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function bc(){return!0}function O1(){return!1}function Wn(i){function a(c,p,x,v,k){this._reactName=c,this._targetInst=x,this.type=p,this.nativeEvent=v,this.target=k,this.currentTarget=null;for(var B in i)i.hasOwnProperty(B)&&(c=i[B],this[B]=c?c(v):v[B]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?bc:O1,this.isPropagationStopped=O1,this}return I(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=bc)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=bc)},persist:function(){},isPersistent:bc}),a}var Co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wh=Wn(Co),tu=I({},Co,{view:0,detail:0}),i3=Wn(tu),Sh,_h,nu,xc=I({},tu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ah,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==nu&&(nu&&i.type==="mousemove"?(Sh=i.screenX-nu.screenX,_h=i.screenY-nu.screenY):_h=Sh=0,nu=i),Sh)},movementY:function(i){return"movementY"in i?i.movementY:_h}}),L1=Wn(xc),o3=I({},xc,{dataTransfer:0}),a3=Wn(o3),u3=I({},tu,{relatedTarget:0}),Ch=Wn(u3),l3=I({},Co,{animationName:0,elapsedTime:0,pseudoElement:0}),c3=Wn(l3),d3=I({},Co,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),f3=Wn(d3),h3=I({},Co,{data:0}),D1=Wn(h3),p3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},m3={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"},g3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y3(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=g3[i])?!!a[i]:!1}function Ah(){return y3}var b3=I({},tu,{key:function(i){if(i.key){var a=p3[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=yc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?m3[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ah,charCode:function(i){return i.type==="keypress"?yc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?yc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),x3=Wn(b3),E3=I({},xc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),M1=Wn(E3),v3=I({},tu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ah}),T3=Wn(v3),w3=I({},Co,{propertyName:0,elapsedTime:0,pseudoElement:0}),S3=Wn(w3),_3=I({},xc,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),C3=Wn(_3),A3=[9,13,27,32],Nh=l&&"CompositionEvent"in window,ru=null;l&&"documentMode"in document&&(ru=document.documentMode);var N3=l&&"TextEvent"in window&&!ru,B1=l&&(!Nh||ru&&8<ru&&11>=ru),F1=" ",j1=!1;function U1(i,a){switch(i){case"keyup":return A3.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function H1(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ao=!1;function k3(i,a){switch(i){case"compositionend":return H1(a);case"keypress":return a.which!==32?null:(j1=!0,F1);case"textInput":return i=a.data,i===F1&&j1?null:i;default:return null}}function R3(i,a){if(Ao)return i==="compositionend"||!Nh&&U1(i,a)?(i=I1(),gc=Th=Ps=null,Ao=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return B1&&a.locale!=="ko"?null:a.data;default:return null}}var P3={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 V1(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!P3[i.type]:a==="textarea"}function z1(i,a,c,p){l1(p),a=Sc(a,"onChange"),0<a.length&&(c=new wh("onChange","change",null,c,p),i.push({event:c,listeners:a}))}var su=null,iu=null;function I3(i){ab(i,0)}function Ec(i){var a=Io(i);if(Fe(a))return i}function O3(i,a){if(i==="change")return a}var W1=!1;if(l){var kh;if(l){var Rh="oninput"in document;if(!Rh){var $1=document.createElement("div");$1.setAttribute("oninput","return;"),Rh=typeof $1.oninput=="function"}kh=Rh}else kh=!1;W1=kh&&(!document.documentMode||9<document.documentMode)}function q1(){su&&(su.detachEvent("onpropertychange",Y1),iu=su=null)}function Y1(i){if(i.propertyName==="value"&&Ec(iu)){var a=[];z1(a,iu,i,lh(i)),h1(I3,a)}}function L3(i,a,c){i==="focusin"?(q1(),su=a,iu=c,su.attachEvent("onpropertychange",Y1)):i==="focusout"&&q1()}function D3(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Ec(iu)}function M3(i,a){if(i==="click")return Ec(a)}function B3(i,a){if(i==="input"||i==="change")return Ec(a)}function F3(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var gr=typeof Object.is=="function"?Object.is:F3;function ou(i,a){if(gr(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var c=Object.keys(i),p=Object.keys(a);if(c.length!==p.length)return!1;for(p=0;p<c.length;p++){var x=c[p];if(!d.call(a,x)||!gr(i[x],a[x]))return!1}return!0}function K1(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Q1(i,a){var c=K1(i);i=0;for(var p;c;){if(c.nodeType===3){if(p=i+c.textContent.length,i<=a&&p>=a)return{node:c,offset:a-i};i=p}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=K1(c)}}function G1(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?G1(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function X1(){for(var i=window,a=st();a instanceof i.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)i=a.contentWindow;else break;a=st(i.document)}return a}function Ph(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function j3(i){var a=X1(),c=i.focusedElem,p=i.selectionRange;if(a!==c&&c&&c.ownerDocument&&G1(c.ownerDocument.documentElement,c)){if(p!==null&&Ph(c)){if(a=p.start,i=p.end,i===void 0&&(i=a),"selectionStart"in c)c.selectionStart=a,c.selectionEnd=Math.min(i,c.value.length);else if(i=(a=c.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var x=c.textContent.length,v=Math.min(p.start,x);p=p.end===void 0?v:Math.min(p.end,x),!i.extend&&v>p&&(x=p,p=v,v=x),x=Q1(c,v);var k=Q1(c,p);x&&k&&(i.rangeCount!==1||i.anchorNode!==x.node||i.anchorOffset!==x.offset||i.focusNode!==k.node||i.focusOffset!==k.offset)&&(a=a.createRange(),a.setStart(x.node,x.offset),i.removeAllRanges(),v>p?(i.addRange(a),i.extend(k.node,k.offset)):(a.setEnd(k.node,k.offset),i.addRange(a)))}}for(a=[],i=c;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<a.length;c++)i=a[c],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var U3=l&&"documentMode"in document&&11>=document.documentMode,No=null,Ih=null,au=null,Oh=!1;function J1(i,a,c){var p=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Oh||No==null||No!==st(p)||(p=No,"selectionStart"in p&&Ph(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),au&&ou(au,p)||(au=p,p=Sc(Ih,"onSelect"),0<p.length&&(a=new wh("onSelect","select",null,a,c),i.push({event:a,listeners:p}),a.target=No)))}function vc(i,a){var c={};return c[i.toLowerCase()]=a.toLowerCase(),c["Webkit"+i]="webkit"+a,c["Moz"+i]="moz"+a,c}var ko={animationend:vc("Animation","AnimationEnd"),animationiteration:vc("Animation","AnimationIteration"),animationstart:vc("Animation","AnimationStart"),transitionend:vc("Transition","TransitionEnd")},Lh={},Z1={};l&&(Z1=document.createElement("div").style,"AnimationEvent"in window||(delete ko.animationend.animation,delete ko.animationiteration.animation,delete ko.animationstart.animation),"TransitionEvent"in window||delete ko.transitionend.transition);function Tc(i){if(Lh[i])return Lh[i];if(!ko[i])return i;var a=ko[i],c;for(c in a)if(a.hasOwnProperty(c)&&c in Z1)return Lh[i]=a[c];return i}var eb=Tc("animationend"),tb=Tc("animationiteration"),nb=Tc("animationstart"),rb=Tc("transitionend"),sb=new Map,ib="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 Is(i,a){sb.set(i,a),o(a,[i])}for(var Dh=0;Dh<ib.length;Dh++){var Mh=ib[Dh],H3=Mh.toLowerCase(),V3=Mh[0].toUpperCase()+Mh.slice(1);Is(H3,"on"+V3)}Is(eb,"onAnimationEnd"),Is(tb,"onAnimationIteration"),Is(nb,"onAnimationStart"),Is("dblclick","onDoubleClick"),Is("focusin","onFocus"),Is("focusout","onBlur"),Is(rb,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("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 uu="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(" "),z3=new Set("cancel close invalid load scroll toggle".split(" ").concat(uu));function ob(i,a,c){var p=i.type||"unknown-event";i.currentTarget=c,Hk(p,a,void 0,i),i.currentTarget=null}function ab(i,a){a=(a&4)!==0;for(var c=0;c<i.length;c++){var p=i[c],x=p.event;p=p.listeners;e:{var v=void 0;if(a)for(var k=p.length-1;0<=k;k--){var B=p[k],j=B.instance,G=B.currentTarget;if(B=B.listener,j!==v&&x.isPropagationStopped())break e;ob(x,B,G),v=j}else for(k=0;k<p.length;k++){if(B=p[k],j=B.instance,G=B.currentTarget,B=B.listener,j!==v&&x.isPropagationStopped())break e;ob(x,B,G),v=j}}}if(oc)throw i=hh,oc=!1,hh=null,i}function yt(i,a){var c=a[Wh];c===void 0&&(c=a[Wh]=new Set);var p=i+"__bubble";c.has(p)||(ub(a,i,2,!1),c.add(p))}function Bh(i,a,c){var p=0;a&&(p|=4),ub(c,i,p,a)}var wc="_reactListening"+Math.random().toString(36).slice(2);function lu(i){if(!i[wc]){i[wc]=!0,r.forEach(function(c){c!=="selectionchange"&&(z3.has(c)||Bh(c,!1,i),Bh(c,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[wc]||(a[wc]=!0,Bh("selectionchange",!1,a))}}function ub(i,a,c,p){switch(P1(a)){case 1:var x=r3;break;case 4:x=s3;break;default:x=Eh}c=x.bind(null,a,c,i),x=void 0,!fh||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(x=!0),p?x!==void 0?i.addEventListener(a,c,{capture:!0,passive:x}):i.addEventListener(a,c,!0):x!==void 0?i.addEventListener(a,c,{passive:x}):i.addEventListener(a,c,!1)}function Fh(i,a,c,p,x){var v=p;if((a&1)===0&&(a&2)===0&&p!==null)e:for(;;){if(p===null)return;var k=p.tag;if(k===3||k===4){var B=p.stateNode.containerInfo;if(B===x||B.nodeType===8&&B.parentNode===x)break;if(k===4)for(k=p.return;k!==null;){var j=k.tag;if((j===3||j===4)&&(j=k.stateNode.containerInfo,j===x||j.nodeType===8&&j.parentNode===x))return;k=k.return}for(;B!==null;){if(k=_i(B),k===null)return;if(j=k.tag,j===5||j===6){p=v=k;continue e}B=B.parentNode}}p=p.return}h1(function(){var G=v,ce=lh(c),he=[];e:{var ue=sb.get(i);if(ue!==void 0){var Te=wh,Ce=i;switch(i){case"keypress":if(yc(c)===0)break e;case"keydown":case"keyup":Te=x3;break;case"focusin":Ce="focus",Te=Ch;break;case"focusout":Ce="blur",Te=Ch;break;case"beforeblur":case"afterblur":Te=Ch;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Te=L1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Te=a3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Te=T3;break;case eb:case tb:case nb:Te=c3;break;case rb:Te=S3;break;case"scroll":Te=i3;break;case"wheel":Te=C3;break;case"copy":case"cut":case"paste":Te=f3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Te=M1}var ke=(a&4)!==0,Rt=!ke&&i==="scroll",Y=ke?ue!==null?ue+"Capture":null:ue;ke=[];for(var q=G,Q;q!==null;){Q=q;var ye=Q.stateNode;if(Q.tag===5&&ye!==null&&(Q=ye,Y!==null&&(ye=$a(q,Y),ye!=null&&ke.push(cu(q,ye,Q)))),Rt)break;q=q.return}0<ke.length&&(ue=new Te(ue,Ce,null,c,ce),he.push({event:ue,listeners:ke}))}}if((a&7)===0){e:{if(ue=i==="mouseover"||i==="pointerover",Te=i==="mouseout"||i==="pointerout",ue&&c!==zn&&(Ce=c.relatedTarget||c.fromElement)&&(_i(Ce)||Ce[ss]))break e;if((Te||ue)&&(ue=ce.window===ce?ce:(ue=ce.ownerDocument)?ue.defaultView||ue.parentWindow:window,Te?(Ce=c.relatedTarget||c.toElement,Te=G,Ce=Ce?_i(Ce):null,Ce!==null&&(Rt=Si(Ce),Ce!==Rt||Ce.tag!==5&&Ce.tag!==6)&&(Ce=null)):(Te=null,Ce=G),Te!==Ce)){if(ke=L1,ye="onMouseLeave",Y="onMouseEnter",q="mouse",(i==="pointerout"||i==="pointerover")&&(ke=M1,ye="onPointerLeave",Y="onPointerEnter",q="pointer"),Rt=Te==null?ue:Io(Te),Q=Ce==null?ue:Io(Ce),ue=new ke(ye,q+"leave",Te,c,ce),ue.target=Rt,ue.relatedTarget=Q,ye=null,_i(ce)===G&&(ke=new ke(Y,q+"enter",Ce,c,ce),ke.target=Q,ke.relatedTarget=Rt,ye=ke),Rt=ye,Te&&Ce)t:{for(ke=Te,Y=Ce,q=0,Q=ke;Q;Q=Ro(Q))q++;for(Q=0,ye=Y;ye;ye=Ro(ye))Q++;for(;0<q-Q;)ke=Ro(ke),q--;for(;0<Q-q;)Y=Ro(Y),Q--;for(;q--;){if(ke===Y||Y!==null&&ke===Y.alternate)break t;ke=Ro(ke),Y=Ro(Y)}ke=null}else ke=null;Te!==null&&lb(he,ue,Te,ke,!1),Ce!==null&&Rt!==null&&lb(he,Rt,Ce,ke,!0)}}e:{if(ue=G?Io(G):window,Te=ue.nodeName&&ue.nodeName.toLowerCase(),Te==="select"||Te==="input"&&ue.type==="file")var Re=O3;else if(V1(ue))if(W1)Re=B3;else{Re=D3;var De=L3}else(Te=ue.nodeName)&&Te.toLowerCase()==="input"&&(ue.type==="checkbox"||ue.type==="radio")&&(Re=M3);if(Re&&(Re=Re(i,G))){z1(he,Re,c,ce);break e}De&&De(i,ue,G),i==="focusout"&&(De=ue._wrapperState)&&De.controlled&&ue.type==="number"&<(ue,"number",ue.value)}switch(De=G?Io(G):window,i){case"focusin":(V1(De)||De.contentEditable==="true")&&(No=De,Ih=G,au=null);break;case"focusout":au=Ih=No=null;break;case"mousedown":Oh=!0;break;case"contextmenu":case"mouseup":case"dragend":Oh=!1,J1(he,c,ce);break;case"selectionchange":if(U3)break;case"keydown":case"keyup":J1(he,c,ce)}var Me;if(Nh)e:{switch(i){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else Ao?U1(i,c)&&(Ve="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Ve="onCompositionStart");Ve&&(B1&&c.locale!=="ko"&&(Ao||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&Ao&&(Me=I1()):(Ps=ce,Th="value"in Ps?Ps.value:Ps.textContent,Ao=!0)),De=Sc(G,Ve),0<De.length&&(Ve=new D1(Ve,i,null,c,ce),he.push({event:Ve,listeners:De}),Me?Ve.data=Me:(Me=H1(c),Me!==null&&(Ve.data=Me)))),(Me=N3?k3(i,c):R3(i,c))&&(G=Sc(G,"onBeforeInput"),0<G.length&&(ce=new D1("onBeforeInput","beforeinput",null,c,ce),he.push({event:ce,listeners:G}),ce.data=Me))}ab(he,a)})}function cu(i,a,c){return{instance:i,listener:a,currentTarget:c}}function Sc(i,a){for(var c=a+"Capture",p=[];i!==null;){var x=i,v=x.stateNode;x.tag===5&&v!==null&&(x=v,v=$a(i,c),v!=null&&p.unshift(cu(i,v,x)),v=$a(i,a),v!=null&&p.push(cu(i,v,x))),i=i.return}return p}function Ro(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function lb(i,a,c,p,x){for(var v=a._reactName,k=[];c!==null&&c!==p;){var B=c,j=B.alternate,G=B.stateNode;if(j!==null&&j===p)break;B.tag===5&&G!==null&&(B=G,x?(j=$a(c,v),j!=null&&k.unshift(cu(c,j,B))):x||(j=$a(c,v),j!=null&&k.push(cu(c,j,B)))),c=c.return}k.length!==0&&i.push({event:a,listeners:k})}var W3=/\r\n?/g,$3=/\u0000|\uFFFD/g;function cb(i){return(typeof i=="string"?i:""+i).replace(W3,` 38`).replace($3,"")}function _c(i,a,c){if(a=cb(a),cb(i)!==a&&c)throw Error(n(425))}function Cc(){}var jh=null,Uh=null;function Hh(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Vh=typeof setTimeout=="function"?setTimeout:void 0,q3=typeof clearTimeout=="function"?clearTimeout:void 0,db=typeof Promise=="function"?Promise:void 0,Y3=typeof queueMicrotask=="function"?queueMicrotask:typeof db<"u"?function(i){return db.resolve(null).then(i).catch(K3)}:Vh;function K3(i){setTimeout(function(){throw i})}function zh(i,a){var c=a,p=0;do{var x=c.nextSibling;if(i.removeChild(c),x&&x.nodeType===8)if(c=x.data,c==="/$"){if(p===0){i.removeChild(x),eu(a);return}p--}else c!=="$"&&c!=="$?"&&c!=="$!"||p++;c=x}while(c);eu(a)}function Os(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return i}function fb(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(a===0)return i;a--}else c==="/$"&&a++}i=i.previousSibling}return null}var Po=Math.random().toString(36).slice(2),Lr="__reactFiber$"+Po,du="__reactProps$"+Po,ss="__reactContainer$"+Po,Wh="__reactEvents$"+Po,Q3="__reactListeners$"+Po,G3="__reactHandles$"+Po;function _i(i){var a=i[Lr];if(a)return a;for(var c=i.parentNode;c;){if(a=c[ss]||c[Lr]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(i=fb(i);i!==null;){if(c=i[Lr])return c;i=fb(i)}return a}i=c,c=i.parentNode}return null}function fu(i){return i=i[Lr]||i[ss],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Io(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function Ac(i){return i[du]||null}var $h=[],Oo=-1;function Ls(i){return{current:i}}function bt(i){0>Oo||(i.current=$h[Oo],$h[Oo]=null,Oo--)}function ft(i,a){Oo++,$h[Oo]=i.current,i.current=a}var Ds={},un=Ls(Ds),An=Ls(!1),Ci=Ds;function Lo(i,a){var c=i.type.contextTypes;if(!c)return Ds;var p=i.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var x={},v;for(v in c)x[v]=a[v];return p&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=x),x}function Nn(i){return i=i.childContextTypes,i!=null}function Nc(){bt(An),bt(un)}function hb(i,a,c){if(un.current!==Ds)throw Error(n(168));ft(un,a),ft(An,c)}function pb(i,a,c){var p=i.stateNode;if(a=a.childContextTypes,typeof p.getChildContext!="function")return c;p=p.getChildContext();for(var x in p)if(!(x in a))throw Error(n(108,te(i)||"Unknown",x));return I({},c,p)}function kc(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Ds,Ci=un.current,ft(un,i),ft(An,An.current),!0}function mb(i,a,c){var p=i.stateNode;if(!p)throw Error(n(169));c?(i=pb(i,a,Ci),p.__reactInternalMemoizedMergedChildContext=i,bt(An),bt(un),ft(un,i)):bt(An),ft(An,c)}var is=null,Rc=!1,qh=!1;function gb(i){is===null?is=[i]:is.push(i)}function X3(i){Rc=!0,gb(i)}function Ms(){if(!qh&&is!==null){qh=!0;var i=0,a=ut;try{var c=is;for(ut=1;i<c.length;i++){var p=c[i];do p=p(!0);while(p!==null)}is=null,Rc=!1}catch(x){throw is!==null&&(is=is.slice(i+1)),b1(ph,Ms),x}finally{ut=a,qh=!1}}return null}var Do=[],Mo=0,Pc=null,Ic=0,er=[],tr=0,Ai=null,os=1,as="";function Ni(i,a){Do[Mo++]=Ic,Do[Mo++]=Pc,Pc=i,Ic=a}function yb(i,a,c){er[tr++]=os,er[tr++]=as,er[tr++]=Ai,Ai=i;var p=os;i=as;var x=32-mr(p)-1;p&=~(1<<x),c+=1;var v=32-mr(a)+x;if(30<v){var k=x-x%5;v=(p&(1<<k)-1).toString(32),p>>=k,x-=k,os=1<<32-mr(a)+x|c<<x|p,as=v+i}else os=1<<v|c<<x|p,as=i}function Yh(i){i.return!==null&&(Ni(i,1),yb(i,1,0))}function Kh(i){for(;i===Pc;)Pc=Do[--Mo],Do[Mo]=null,Ic=Do[--Mo],Do[Mo]=null;for(;i===Ai;)Ai=er[--tr],er[tr]=null,as=er[--tr],er[tr]=null,os=er[--tr],er[tr]=null}var $n=null,qn=null,xt=!1,yr=null;function bb(i,a){var c=ir(5,null,null,0);c.elementType="DELETED",c.stateNode=a,c.return=i,a=i.deletions,a===null?(i.deletions=[c],i.flags|=16):a.push(c)}function xb(i,a){switch(i.tag){case 5:var c=i.type;return a=a.nodeType!==1||c.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,$n=i,qn=Os(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,$n=i,qn=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(c=Ai!==null?{id:os,overflow:as}:null,i.memoizedState={dehydrated:a,treeContext:c,retryLane:1073741824},c=ir(18,null,null,0),c.stateNode=a,c.return=i,i.child=c,$n=i,qn=null,!0):!1;default:return!1}}function Qh(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Gh(i){if(xt){var a=qn;if(a){var c=a;
vendor: 4,320 bytes, line 38
38if(!xb(i,a)){if(Qh(i))throw Error(n(418));a=Os(c.nextSibling);var p=$n;a&&xb(i,a)?bb(p,c):(i.flags=i.flags&-4097|2,xt=!1,$n=i)}}else{if(Qh(i))throw Error(n(418));i.flags=i.flags&-4097|2,xt=!1,$n=i}}}function Eb(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;$n=i}function Oc(i){if(i!==$n)return!1;if(!xt)return Eb(i),xt=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!Hh(i.type,i.memoizedProps)),a&&(a=qn)){if(Qh(i))throw vb(),Error(n(418));for(;a;)bb(i,a),a=Os(a.nextSibling)}if(Eb(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8){var c=i.data;if(c==="/$"){if(a===0){qn=Os(i.nextSibling);break e}a--}else c!=="$"&&c!=="$!"&&c!=="$?"||a++}i=i.nextSibling}qn=null}}else qn=$n?Os(i.stateNode.nextSibling):null;return!0}function vb(){for(var i=qn;i;)i=Os(i.nextSibling)}function Bo(){qn=$n=null,xt=!1}function Xh(i){yr===null?yr=[i]:yr.push(i)}var J3=R.ReactCurrentBatchConfig;function hu(i,a,c){if(i=c.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(n(309));var p=c.stateNode}if(!p)throw Error(n(147,i));var x=p,v=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===v?a.ref:(a=function(k){var B=x.refs;k===null?delete B[v]:B[v]=k},a._stringRef=v,a)}if(typeof i!="string")throw Error(n(284));if(!c._owner)throw Error(n(290,i))}return i}function Lc(i,a){throw i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function Tb(i){var a=i._init;return a(i._payload)}function wb(i){function a(Y,q){if(i){var Q=Y.deletions;Q===null?(Y.deletions=[q],Y.flags|=16):Q.push(q)}}function c(Y,q){if(!i)return null;for(;q!==null;)a(Y,q),q=q.sibling;return null}function p(Y,q){for(Y=new Map;q!==null;)q.key!==null?Y.set(q.key,q):Y.set(q.index,q),q=q.sibling;return Y}function x(Y,q){return Y=Ws(Y,q),Y.index=0,Y.sibling=null,Y}function v(Y,q,Q){return Y.index=Q,i?(Q=Y.alternate,Q!==null?(Q=Q.index,Q<q?(Y.flags|=2,q):Q):(Y.flags|=2,q)):(Y.flags|=1048576,q)}function k(Y){return i&&Y.alternate===null&&(Y.flags|=2),Y}function B(Y,q,Q,ye){return q===null||q.tag!==6?(q=Vp(Q,Y.mode,ye),q.return=Y,q):(q=x(q,Q),q.return=Y,q)}function j(Y,q,Q,ye){var Re=Q.type;return Re===W?ce(Y,q,Q.props.children,ye,Q.key):q!==null&&(q.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===de&&Tb(Re)===q.type)?(ye=x(q,Q.props),ye.ref=hu(Y,q,Q),ye.return=Y,ye):(ye=sd(Q.type,Q.key,Q.props,null,Y.mode,ye),ye.ref=hu(Y,q,Q),ye.return=Y,ye)}function G(Y,q,Q,ye){return q===null||q.tag!==4||q.stateNode.containerInfo!==Q.containerInfo||q.stateNode.implementation!==Q.implementation?(q=zp(Q,Y.mode,ye),q.return=Y,q):(q=x(q,Q.children||[]),q.return=Y,q)}function ce(Y,q,Q,ye,Re){return q===null||q.tag!==7?(q=Mi(Q,Y.mode,ye,Re),q.return=Y,q):(q=x(q,Q),q.return=Y,q)}function he(Y,q,Q){if(typeof q=="string"&&q!==""||typeof q=="number")return q=Vp(""+q,Y.mode,Q),q.return=Y,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case D:return Q=sd(q.type,q.key,q.props,null,Y.mode,Q),Q.ref=hu(Y,null,q),Q.return=Y,Q;case M:return q=zp(q,Y.mode,Q),q.return=Y,q;case de:var ye=q._init;return he(Y,ye(q._payload),Q)}if(Gt(q)||fe(q))return q=Mi(q,Y.mode,Q,null),q.return=Y,q;Lc(Y,q)}return null}function ue(Y,q,Q,ye){var Re=q!==null?q.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number")return Re!==null?null:B(Y,q,""+Q,ye);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case D:return Q.key===Re?j(Y,q,Q,ye):null;case M:return Q.key===Re?G(Y,q,Q,ye):null;case de:return Re=Q._init,ue(Y,q,Re(Q._payload),ye)}if(Gt(Q)||fe(Q))return Re!==null?null:ce(Y,q,Q,ye,null);Lc(Y,Q)}return null}function Te(Y,q,Q,ye,Re){if(typeof ye=="string"&&ye!==""||typeof ye=="number")return Y=Y.get(Q)||null,B(q,Y,""+ye,Re);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case D:return Y=Y.get(ye.key===null?Q:ye.key)||null,j(q,Y,ye,Re);case M:return Y=Y.get(ye.key===null?Q:ye.key)||null,G(q,Y,ye,Re);case de:var De=ye._init;return Te(Y,q,Q,De(ye._payload),Re)}if(Gt(ye)||fe(ye))return Y=Y.get(Q)||null,ce(q,Y,ye,Re,null);Lc(q,ye)}return null}function Ce(Y,q,Q,ye){for(var Re=null,De=null,Me=q,Ve=q=0,Wt=null;Me!==null&&Ve<Q.length;Ve++){Me.index>
vendor: 9,747 bytes, line 38
38Ve?(Wt=Me,Me=null):Wt=Me.sibling;var tt=ue(Y,Me,Q[Ve],ye);if(tt===null){Me===null&&(Me=Wt);break}i&&Me&&tt.alternate===null&&a(Y,Me),q=v(tt,q,Ve),De===null?Re=tt:De.sibling=tt,De=tt,Me=Wt}if(Ve===Q.length)return c(Y,Me),xt&&Ni(Y,Ve),Re;if(Me===null){for(;Ve<Q.length;Ve++)Me=he(Y,Q[Ve],ye),Me!==null&&(q=v(Me,q,Ve),De===null?Re=Me:De.sibling=Me,De=Me);return xt&&Ni(Y,Ve),Re}for(Me=p(Y,Me);Ve<Q.length;Ve++)Wt=Te(Me,Y,Ve,Q[Ve],ye),Wt!==null&&(i&&Wt.alternate!==null&&Me.delete(Wt.key===null?Ve:Wt.key),q=v(Wt,q,Ve),De===null?Re=Wt:De.sibling=Wt,De=Wt);return i&&Me.forEach(function($s){return a(Y,$s)}),xt&&Ni(Y,Ve),Re}function ke(Y,q,Q,ye){var Re=fe(Q);if(typeof Re!="function")throw Error(n(150));if(Q=Re.call(Q),Q==null)throw Error(n(151));for(var De=Re=null,Me=q,Ve=q=0,Wt=null,tt=Q.next();Me!==null&&!tt.done;Ve++,tt=Q.next()){Me.index>Ve?(Wt=Me,Me=null):Wt=Me.sibling;var $s=ue(Y,Me,tt.value,ye);if($s===null){Me===null&&(Me=Wt);break}i&&Me&&$s.alternate===null&&a(Y,Me),q=v($s,q,Ve),De===null?Re=$s:De.sibling=$s,De=$s,Me=Wt}if(tt.done)return c(Y,Me),xt&&Ni(Y,Ve),Re;if(Me===null){for(;!tt.done;Ve++,tt=Q.next())tt=he(Y,tt.value,ye),tt!==null&&(q=v(tt,q,Ve),De===null?Re=tt:De.sibling=tt,De=tt);return xt&&Ni(Y,Ve),Re}for(Me=p(Y,Me);!tt.done;Ve++,tt=Q.next())tt=Te(Me,Y,Ve,tt.value,ye),tt!==null&&(i&&tt.alternate!==null&&Me.delete(tt.key===null?Ve:tt.key),q=v(tt,q,Ve),De===null?Re=tt:De.sibling=tt,De=tt);return i&&Me.forEach(function(PR){return a(Y,PR)}),xt&&Ni(Y,Ve),Re}function Rt(Y,q,Q,ye){if(typeof Q=="object"&&Q!==null&&Q.type===W&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case D:e:{for(var Re=Q.key,De=q;De!==null;){if(De.key===Re){if(Re=Q.type,Re===W){if(De.tag===7){c(Y,De.sibling),q=x(De,Q.props.children),q.return=Y,Y=q;break e}}else if(De.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===de&&Tb(Re)===De.type){c(Y,De.sibling),q=x(De,Q.props),q.ref=hu(Y,De,Q),q.return=Y,Y=q;break e}c(Y,De);break}else a(Y,De);De=De.sibling}Q.type===W?(q=Mi(Q.props.children,Y.mode,ye,Q.key),q.return=Y,Y=q):(ye=sd(Q.type,Q.key,Q.props,null,Y.mode,ye),ye.ref=hu(Y,q,Q),ye.return=Y,Y=ye)}return k(Y);case M:e:{for(De=Q.key;q!==null;){if(q.key===De)if(q.tag===4&&q.stateNode.containerInfo===Q.containerInfo&&q.stateNode.implementation===Q.implementation){c(Y,q.sibling),q=x(q,Q.children||[]),q.return=Y,Y=q;break e}else{c(Y,q);break}else a(Y,q);q=q.sibling}q=zp(Q,Y.mode,ye),q.return=Y,Y=q}return k(Y);case de:return De=Q._init,Rt(Y,q,De(Q._payload),ye)}if(Gt(Q))return Ce(Y,q,Q,ye);if(fe(Q))return ke(Y,q,Q,ye);Lc(Y,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"?(Q=""+Q,q!==null&&q.tag===6?(c(Y,q.sibling),q=x(q,Q),q.return=Y,Y=q):(c(Y,q),q=Vp(Q,Y.mode,ye),q.return=Y,Y=q),k(Y)):c(Y,q)}return Rt}var Fo=wb(!0),Sb=wb(!1),Dc=Ls(null),Mc=null,jo=null,Jh=null;function Zh(){Jh=jo=Mc=null}function ep(i){var a=Dc.current;bt(Dc),i._currentValue=a}function tp(i,a,c){for(;i!==null;){var p=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,p!==null&&(p.childLanes|=a)):p!==null&&(p.childLanes&a)!==a&&(p.childLanes|=a),i===c)break;i=i.return}}function Uo(i,a){Mc=i,Jh=jo=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&a)!==0&&(kn=!0),i.firstContext=null)}function nr(i){var a=i._currentValue;if(Jh!==i)if(i={context:i,memoizedValue:a,next:null},jo===null){if(Mc===null)throw Error(n(308));jo=i,Mc.dependencies={lanes:0,firstContext:i}}else jo=jo.next=i;return a}var ki=null;function np(i){ki===null?ki=[i]:ki.push(i)}function _b(i,a,c,p){var x=a.interleaved;return x===null?(c.next=c,np(a)):(c.next=x.next,x.next=c),a.interleaved=c,us(i,p)}function us(i,a){i.lanes|=a;var c=i.alternate;for(c!==null&&(c.lanes|=a),c=i,i=i.return;i!==null;)i.childLanes|=a,c=i.alternate,c!==null&&(c.childLanes|=a),c=i,i=i.return;return c.tag===3?c.stateNode:null}var Bs=!1;function rp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cb(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function ls(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function Fs(i,a,c){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(et&2)!==0){var x=p.pending;return x===null?a.next=a:(a.next=x.next,x.next=a),p.pending=a,us(i,c)}return x=p.interleaved,x===null?(a.next=a,np(p)):(a.next=x.next,x.next=a),p.interleaved=a,us(i,c)}function Bc(i,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194240)!==0)){var p=a.lanes;p&=i.pendingLanes,c|=p,a.lanes=c,yh(i,c)}}function Ab(i,a){var c=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,c===p)){var x=null,v=null;if(c=c.firstBaseUpdate,c!==null){do{var k={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};v===null?x=v=k:v=v.next=k,c=c.next}while(c!==null);v===null?x=v=a:v=v.next=a}else x=v=a;c={baseState:p.baseState,firstBaseUpdate:x,lastBaseUpdate:v,shared:p.shared,effects:p.effects},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=a:i.next=a,c.lastBaseUpdate=a}function Fc(i,a,c,p){var x=i.updateQueue;Bs=!1;var v=x.firstBaseUpdate,k=x.lastBaseUpdate,B=x.shared.pending;if(B!==null){x.shared.pending=null;var j=B,G=j.next;j.next=null,k===null?v=G:k.next=G,k=j;var ce=i.alternate;ce!==null&&(ce=ce.updateQueue,B=ce.lastBaseUpdate,B!==k&&(B===null?ce.firstBaseUpdate=G:B.next=G,ce.lastBaseUpdate=j))}if(v!==null){var he=x.baseState;k=0,ce=G=j=null,B=v;do{var ue=B.lane,Te=B.eventTime;if((p&ue)===ue){ce!==null&&(ce=ce.next={eventTime:Te,lane:0,tag:B.tag,payload:B.payload,callback:B.callback,next:null});e:{var Ce=i,ke=B;switch(ue=a,Te=c,ke.tag){case 1:if(Ce=ke.payload,typeof Ce=="function"){he=Ce.call(Te,he,ue);break e}he=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=ke.payload,ue=typeof Ce=="function"?Ce.call(Te,he,ue):Ce,ue==null)break e;he=I({},he,ue);break e;case 2:Bs=!0}}B.callback!==null&&B.lane!==0&&(i.flags|=64,ue=x.effects,ue===null?x.effects=[B]:ue.push(B))}else Te={eventTime:Te,lane:ue,tag:B.tag,payload:B.payload,callback:B.callback,next:null},ce===null?(G=ce=Te,j=he):ce=ce.next=Te,k|=ue;if(B=B.next,B===null){if(B=x.shared.pending,B===null)break;ue=B,B=ue.next,ue.next=null,x.lastBaseUpdate=ue,x.shared.pending=null}}while(!0);if(ce===null&&(j=he),x.baseState=j,x.firstBaseUpdate=G,x.lastBaseUpdate=ce,a=x.shared.interleaved,a!==null){x=a;do k|=x.lane,x=x.next;while(x!==a)}else v===null&&(x.shared.lanes=0);Ii|=k,i.lanes=k,i.memoizedState=he}}function Nb(i,a,c){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var p=i[a],x=p.callback;if(x!==null){if(p.callback=null,p=c,typeof x!="function")throw Error(n(191,x));x.call(p)}}}var pu={},Dr=Ls(pu),mu=Ls(pu),gu=Ls(pu);function Ri(i){if(i===pu)throw Error(n(174));return i}function sp(i,a){switch(ft(gu,a),ft(mu,i),ft(Dr,pu),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:be(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=be(a,i)}bt(Dr),ft(Dr,a)}function Ho(){bt(Dr),bt(mu),bt(gu)}function kb(i){Ri(gu.current);var a=Ri(Dr.current),c=be(a,i.type);a!==c&&(ft(mu,i),ft(Dr,c))}function ip(i){mu.current===i&&(bt(Dr),bt(mu))}var vt=Ls(0);function jc(i){for(var a=i;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var op=[];function ap(){for(var i=0;i<op.length;i++)op[i]._workInProgressVersionPrimary=null;op.length=0}var Uc=R.ReactCurrentDispatcher,up=R.ReactCurrentBatchConfig,Pi=0,Tt=null,jt=null,Vt=null,Hc=!1,yu=!1,bu=0,Z3=0;function ln(){throw Error(n(321))}function lp(i,a){if(a===null)return!1;for(var c=0;c<a.length&&c<i.length;c++)if(!gr(i[c],a[c]))return!1;return!0}function cp(i,a,c,p,x,v){if(Pi=v,Tt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Uc.current=i===null||i.memoizedState===null?rR:sR,i=c(p,x),yu){v=0;do{if(yu=!1,bu=0,25<=v)throw Error(n(301));v+=1,Vt=jt=null,a.updateQueue=null,Uc.current=iR,i=c(p,x)}while(yu)}if(Uc.current=Wc,a=jt!==null&&jt.next!==null,Pi=0,Vt=jt=Tt=null,Hc=!1,a)throw Error(n(300));return i}function dp(){var i=bu!==0;return bu=0,i}function Mr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?Tt.memoizedState=Vt=i:Vt=Vt.next=i,Vt}function rr(){if(jt===null){var i=Tt.alternate;i=i!==null?i.memoizedState:null}else i=jt.next;var a=Vt===null?Tt.memoizedState:Vt.next;if(a!==null)Vt=a,jt=i;else{if(i===null)throw Error(n(310));jt=i,i={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},Vt===null?Tt.memoizedState=Vt=i:Vt=Vt.next=i}return Vt}function xu(i,a){return typeof a=="function"?a(i):a}function fp(i){var a=rr(),c=a.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=i;var p=jt,x=p.baseQueue,v=c.pending;if(v!==null){if(x!==null){var k=x.next;x.next=v.next,v.next=k}p.baseQueue=x=v,c.pending=null}if(x!==null){v=x.next,p=p.baseState;var B=k=null,j=null,G=v;do{var ce=G.lane;if((Pi&ce)===ce)j!==null&&(j=j.next={lane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),p=G.hasEagerState?G.eagerState:i(p,G.action);else{var he={lane:ce,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};j===null?(B=j=he,k=p):j=j.next=he,Tt.lanes|=ce,Ii|=ce}G=G.next}
vendor: 4,336 bytes, line 38
38while(G!==null&&G!==v);j===null?k=p:j.next=B,gr(p,a.memoizedState)||(kn=!0),a.memoizedState=p,a.baseState=k,a.baseQueue=j,c.lastRenderedState=p}if(i=c.interleaved,i!==null){x=i;do v=x.lane,Tt.lanes|=v,Ii|=v,x=x.next;while(x!==i)}else x===null&&(c.lanes=0);return[a.memoizedState,c.dispatch]}function hp(i){var a=rr(),c=a.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=i;var p=c.dispatch,x=c.pending,v=a.memoizedState;if(x!==null){c.pending=null;var k=x=x.next;do v=i(v,k.action),k=k.next;while(k!==x);gr(v,a.memoizedState)||(kn=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),c.lastRenderedState=v}return[v,p]}function Rb(){}function Pb(i,a){var c=Tt,p=rr(),x=a(),v=!gr(p.memoizedState,x);if(v&&(p.memoizedState=x,kn=!0),p=p.queue,pp(Lb.bind(null,c,p,i),[i]),p.getSnapshot!==a||v||Vt!==null&&Vt.memoizedState.tag&1){if(c.flags|=2048,Eu(9,Ob.bind(null,c,p,x,a),void 0,null),zt===null)throw Error(n(349));(Pi&30)!==0||Ib(c,a,x)}return x}function Ib(i,a,c){i.flags|=16384,i={getSnapshot:a,value:c},a=Tt.updateQueue,a===null?(a={lastEffect:null,stores:null},Tt.updateQueue=a,a.stores=[i]):(c=a.stores,c===null?a.stores=[i]:c.push(i))}function Ob(i,a,c,p){a.value=c,a.getSnapshot=p,Db(a)&&Mb(i)}function Lb(i,a,c){return c(function(){Db(a)&&Mb(i)})}function Db(i){var a=i.getSnapshot;i=i.value;try{var c=a();return!gr(i,c)}catch{return!0}}function Mb(i){var a=us(i,1);a!==null&&vr(a,i,1,-1)}function Bb(i){var a=Mr();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xu,lastRenderedState:i},a.queue=i,i=i.dispatch=nR.bind(null,Tt,i),[a.memoizedState,i]}function Eu(i,a,c,p){return i={tag:i,create:a,destroy:c,deps:p,next:null},a=Tt.updateQueue,a===null?(a={lastEffect:null,stores:null},Tt.updateQueue=a,a.lastEffect=i.next=i):(c=a.lastEffect,c===null?a.lastEffect=i.next=i:(p=c.next,c.next=i,i.next=p,a.lastEffect=i)),i}function Fb(){return rr().memoizedState}function Vc(i,a,c,p){var x=Mr();Tt.flags|=i,x.memoizedState=Eu(1|a,c,void 0,p===void 0?null:p)}function zc(i,a,c,p){var x=rr();p=p===void 0?null:p;var v=void 0;if(jt!==null){var k=jt.memoizedState;if(v=k.destroy,p!==null&&lp(p,k.deps)){x.memoizedState=Eu(a,c,v,p);return}}Tt.flags|=i,x.memoizedState=Eu(1|a,c,v,p)}function jb(i,a){return Vc(8390656,8,i,a)}function pp(i,a){return zc(2048,8,i,a)}function Ub(i,a){return zc(4,2,i,a)}function Hb(i,a){return zc(4,4,i,a)}function Vb(i,a){if(typeof a=="function")return i=i(),a(i),function(){a(null)};if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function zb(i,a,c){return c=c!=null?c.concat([i]):null,zc(4,4,Vb.bind(null,a,i),c)}function mp(){}function Wb(i,a){var c=rr();a=a===void 0?null:a;var p=c.memoizedState;return p!==null&&a!==null&&lp(a,p[1])?p[0]:(c.memoizedState=[i,a],i)}function $b(i,a){var c=rr();a=a===void 0?null:a;var p=c.memoizedState;return p!==null&&a!==null&&lp(a,p[1])?p[0]:(i=i(),c.memoizedState=[i,a],i)}function qb(i,a,c){return(Pi&21)===0?(i.baseState&&(i.baseState=!1,kn=!0),i.memoizedState=c):(gr(c,a)||(c=T1(),Tt.lanes|=c,Ii|=c,i.baseState=!0),a)}function eR(i,a){var c=ut;ut=c!==0&&4>c?c:4,i(!0);var p=up.transition;up.transition={};try{i(!1),a()}finally{ut=c,up.transition=p}}function Yb(){return rr().memoizedState}function tR(i,a,c){var p=Vs(i);if(c={lane:p,action:c,hasEagerState:!1,eagerState:null,next:null},Kb(i))Qb(a,c);else if(c=_b(i,a,c,p),c!==null){var x=vn();vr(c,i,p,x),Gb(c,a,p)}}function nR(i,a,c){var p=Vs(i),x={lane:p,action:c,hasEagerState:!1,eagerState:null,next:null};if(Kb(i))Qb(a,x);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var k=a.lastRenderedState,B=v(k,c);if(x.hasEagerState=!0,x.eagerState=B,gr(B,k)){var j=a.interleaved;j===null?(x.next=x,np(a)):(x.next=j.next,j.next=x),a.interleaved=x;return}}catch{}finally{}c=_b(i,a,x,p),c!==null&&(x=vn(),vr(c,i,p,x),Gb(c,a,p))}}function Kb(i){var a=i.alternate;return i===Tt||a!==null&&a===Tt}function Qb(i,a){yu=Hc=!0;var c=i.pending;c===null?a.next=a:(a.next=c.next,c.next=a),i.pending=a}function Gb(i,a,c){if((c&4194240)!==0){var p=a.lanes;p&=i.pendingLanes,c|=p,a.lanes=c,yh(i,c)}}var Wc={readContext:nr,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useInsertionEffect:ln,useLayoutEffect:ln,useMemo:ln,useReducer:ln,useRef
vendor: 5,550 bytes, lines 38-40
38:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useMutableSource:ln,useSyncExternalStore:ln,useId:ln,unstable_isNewReconciler:!1},rR={readContext:nr,useCallback:function(i,a){return Mr().memoizedState=[i,a===void 0?null:a],i},useContext:nr,useEffect:jb,useImperativeHandle:function(i,a,c){return c=c!=null?c.concat([i]):null,Vc(4194308,4,Vb.bind(null,a,i),c)},useLayoutEffect:function(i,a){return Vc(4194308,4,i,a)},useInsertionEffect:function(i,a){return Vc(4,2,i,a)},useMemo:function(i,a){var c=Mr();return a=a===void 0?null:a,i=i(),c.memoizedState=[i,a],i},useReducer:function(i,a,c){var p=Mr();return a=c!==void 0?c(a):a,p.memoizedState=p.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},p.queue=i,i=i.dispatch=tR.bind(null,Tt,i),[p.memoizedState,i]},useRef:function(i){var a=Mr();return i={current:i},a.memoizedState=i},useState:Bb,useDebugValue:mp,useDeferredValue:function(i){return Mr().memoizedState=i},useTransition:function(){var i=Bb(!1),a=i[0];return i=eR.bind(null,i[1]),Mr().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,c){var p=Tt,x=Mr();if(xt){if(c===void 0)throw Error(n(407));c=c()}else{if(c=a(),zt===null)throw Error(n(349));(Pi&30)!==0||Ib(p,a,c)}x.memoizedState=c;var v={value:c,getSnapshot:a};return x.queue=v,jb(Lb.bind(null,p,v,i),[i]),p.flags|=2048,Eu(9,Ob.bind(null,p,v,c,a),void 0,null),c},useId:function(){var i=Mr(),a=zt.identifierPrefix;if(xt){var c=as,p=os;c=(p&~(1<<32-mr(p)-1)).toString(32)+c,a=":"+a+"R"+c,c=bu++,0<c&&(a+="H"+c.toString(32)),a+=":"}else c=Z3++,a=":"+a+"r"+c.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},sR={readContext:nr,useCallback:Wb,useContext:nr,useEffect:pp,useImperativeHandle:zb,useInsertionEffect:Ub,useLayoutEffect:Hb,useMemo:$b,useReducer:fp,useRef:Fb,useState:function(){return fp(xu)},useDebugValue:mp,useDeferredValue:function(i){var a=rr();return qb(a,jt.memoizedState,i)},useTransition:function(){var i=fp(xu)[0],a=rr().memoizedState;return[i,a]},useMutableSource:Rb,useSyncExternalStore:Pb,useId:Yb,unstable_isNewReconciler:!1},iR={readContext:nr,useCallback:Wb,useContext:nr,useEffect:pp,useImperativeHandle:zb,useInsertionEffect:Ub,useLayoutEffect:Hb,useMemo:$b,useReducer:hp,useRef:Fb,useState:function(){return hp(xu)},useDebugValue:mp,useDeferredValue:function(i){var a=rr();return jt===null?a.memoizedState=i:qb(a,jt.memoizedState,i)},useTransition:function(){var i=hp(xu)[0],a=rr().memoizedState;return[i,a]},useMutableSource:Rb,useSyncExternalStore:Pb,useId:Yb,unstable_isNewReconciler:!1};function br(i,a){if(i&&i.defaultProps){a=I({},a),i=i.defaultProps;for(var c in i)a[c]===void 0&&(a[c]=i[c]);return a}return a}function gp(i,a,c,p){a=i.memoizedState,c=c(p,a),c=c==null?a:I({},a,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var $c={isMounted:function(i){return(i=i._reactInternals)?Si(i)===i:!1},enqueueSetState:function(i,a,c){i=i._reactInternals;var p=vn(),x=Vs(i),v=ls(p,x);v.payload=a,c!=null&&(v.callback=c),a=Fs(i,v,x),a!==null&&(vr(a,i,x,p),Bc(a,i,x))},enqueueReplaceState:function(i,a,c){i=i._reactInternals;var p=vn(),x=Vs(i),v=ls(p,x);v.tag=1,v.payload=a,c!=null&&(v.callback=c),a=Fs(i,v,x),a!==null&&(vr(a,i,x,p),Bc(a,i,x))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var c=vn(),p=Vs(i),x=ls(c,p);x.tag=2,a!=null&&(x.callback=a),a=Fs(i,x,p),a!==null&&(vr(a,i,p,c),Bc(a,i,p))}};function Xb(i,a,c,p,x,v,k){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,v,k):a.prototype&&a.prototype.isPureReactComponent?!ou(c,p)||!ou(x,v):!0}function Jb(i,a,c){var p=!1,x=Ds,v=a.contextType;return typeof v=="object"&&v!==null?v=nr(v):(x=Nn(a)?Ci:un.current,p=a.contextTypes,v=(p=p!=null)?Lo(i,x):Ds),a=new a(c,v),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=$c,i.stateNode=a,a._reactInternals=i,p&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=x,i.__reactInternalMemoizedMaskedChildContext=v),a}function Zb(i,a,c,p){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,p),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,p),a.state!==i&&$c.enqueueReplaceState(a,a.state,null)}function yp(i,a,c,p){var x=i.stateNode;x.props=c,x.state=i.memoizedState,x.refs={},rp(i);var v=a.contextType;typeof v=="object"&&v!==null?x.context=nr(v):(v=Nn(a)?Ci:un.current,x.context=Lo(i,v)),x.state=i.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(gp(i,a,v,c),x.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(a=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),a!==x.state&&$c.enqueueReplaceState(x,x.state,null),Fc(i,c,x,p),x.state=i.memoizedState),typeof x.componentDidMount=="function"&&(i.flags|=4194308)}function Vo(i,a){try{var c="",p=a;do c+=Pe(p),p=p.return;while(p);var x=c}catch(v){x=` 39Error generating stack: `+v.message+` 40`+v.stack}return{value:i,source:a,stack:x,digest:null}}function bp(i,a,c){return{value:i,source:null,stack:c??null,digest:a??null}}function xp(i,a){try{console.error(a.value)}catch(c){setTimeout(function(){throw c})}}var oR=typeof WeakMap=="function"?WeakMap:Map;function ex(i,a,c){c=ls(-1,c),c.tag=3,c.payload={element:null};var p=a.value;
vendor: 13,413 bytes, line 40
40return c.callback=function(){Jc||(Jc=!0,Lp=p),xp(i,a)},c}function tx(i,a,c){c=ls(-1,c),c.tag=3;var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var x=a.value;c.payload=function(){return p(x)},c.callback=function(){xp(i,a)}}var v=i.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(c.callback=function(){xp(i,a),typeof p!="function"&&(Us===null?Us=new Set([this]):Us.add(this));var k=a.stack;this.componentDidCatch(a.value,{componentStack:k!==null?k:""})}),c}function nx(i,a,c){var p=i.pingCache;if(p===null){p=i.pingCache=new oR;var x=new Set;p.set(a,x)}else x=p.get(a),x===void 0&&(x=new Set,p.set(a,x));x.has(c)||(x.add(c),i=ER.bind(null,i,a,c),a.then(i,i))}function rx(i){do{var a;if((a=i.tag===13)&&(a=i.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return i;i=i.return}while(i!==null);return null}function sx(i,a,c,p,x){return(i.mode&1)===0?(i===a?i.flags|=65536:(i.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(a=ls(-1,1),a.tag=2,Fs(c,a,1))),c.lanes|=1),i):(i.flags|=65536,i.lanes=x,i)}var aR=R.ReactCurrentOwner,kn=!1;function En(i,a,c,p){a.child=i===null?Sb(a,null,c,p):Fo(a,i.child,c,p)}function ix(i,a,c,p,x){c=c.render;var v=a.ref;return Uo(a,x),p=cp(i,a,c,p,v,x),c=dp(),i!==null&&!kn?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~x,cs(i,a,x)):(xt&&c&&Yh(a),a.flags|=1,En(i,a,p,x),a.child)}function ox(i,a,c,p,x){if(i===null){var v=c.type;return typeof v=="function"&&!Hp(v)&&v.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(a.tag=15,a.type=v,ax(i,a,v,p,x)):(i=sd(c.type,null,p,a,a.mode,x),i.ref=a.ref,i.return=a,a.child=i)}if(v=i.child,(i.lanes&x)===0){var k=v.memoizedProps;if(c=c.compare,c=c!==null?c:ou,c(k,p)&&i.ref===a.ref)return cs(i,a,x)}return a.flags|=1,i=Ws(v,p),i.ref=a.ref,i.return=a,a.child=i}function ax(i,a,c,p,x){if(i!==null){var v=i.memoizedProps;if(ou(v,p)&&i.ref===a.ref)if(kn=!1,a.pendingProps=p=v,(i.lanes&x)!==0)(i.flags&131072)!==0&&(kn=!0);else return a.lanes=i.lanes,cs(i,a,x)}return Ep(i,a,c,p,x)}function ux(i,a,c){var p=a.pendingProps,x=p.children,v=i!==null?i.memoizedState:null;if(p.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},ft(Wo,Yn),Yn|=c;else{if((c&1073741824)===0)return i=v!==null?v.baseLanes|c:c,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,ft(Wo,Yn),Yn|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},p=v!==null?v.baseLanes:c,ft(Wo,Yn),Yn|=p}else v!==null?(p=v.baseLanes|c,a.memoizedState=null):p=c,ft(Wo,Yn),Yn|=p;return En(i,a,x,c),a.child}function lx(i,a){var c=a.ref;(i===null&&c!==null||i!==null&&i.ref!==c)&&(a.flags|=512,a.flags|=2097152)}function Ep(i,a,c,p,x){var v=Nn(c)?Ci:un.current;return v=Lo(a,v),Uo(a,x),c=cp(i,a,c,p,v,x),p=dp(),i!==null&&!kn?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~x,cs(i,a,x)):(xt&&p&&Yh(a),a.flags|=1,En(i,a,c,x),a.child)}function cx(i,a,c,p,x){if(Nn(c)){var v=!0;kc(a)}else v=!1;if(Uo(a,x),a.stateNode===null)Yc(i,a),Jb(a,c,p),yp(a,c,p,x),p=!0;else if(i===null){var k=a.stateNode,B=a.memoizedProps;k.props=B;var j=k.context,G=c.contextType;typeof G=="object"&&G!==null?G=nr(G):(G=Nn(c)?Ci:un.current,G=Lo(a,G));var ce=c.getDerivedStateFromProps,he=typeof ce=="function"||typeof k.getSnapshotBeforeUpdate=="function";he||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(B!==p||j!==G)&&Zb(a,k,p,G),Bs=!1;var ue=a.memoizedState;k.state=ue,Fc(a,p,k,x),j=a.memoizedState,B!==p||ue!==j||An.current||Bs?(typeof ce=="function"&&(gp(a,c,ce,p),j=a.memoizedState),(B=Bs||Xb(a,c,B,p,ue,j,G))?(he||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(a.flags|=4194308)):(typeof k.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=p,a.memoizedState=j),k.props=p,k.state=j,k.context=G,p=B):(typeof k.componentDidMount=="function"&&(a.flags|=4194308),p=!1)}else{k=a.stateNode,Cb(i,a),B=a.memoizedProps,G=a.type===a.elementType?B:br(a.type,B),k.props=G,he=a.pendingProps,ue=k.context,j=c.contextType,typeof j=="object"&&j!==null?j=nr(j):(j=Nn(c)?Ci:un.current,j=Lo(a,j));var Te=c.getDerivedStateFromProps;(ce=typeof Te=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(B!==he||ue!==j)&&Zb(a,k,p,j),Bs=!1,ue=a.memoizedState,k.state=ue,Fc(a,p,k,x);var Ce=a.memoizedState;B!==he||ue!==Ce||An.current||Bs?(typeof Te=="function"&&(gp(a,c,Te,p),Ce=a.memoizedState),(G=Bs||Xb(a,c,G,p,ue,Ce,j)||!1)?(ce||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(p,Ce,j),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(p,Ce,j)),typeof k.componentDidUpdate=="function"&&(a.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof k.componentDidUpdate!="function"||B===i.memoizedProps&&ue===i.memoizedState||(a.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||B===i.memoizedProps&&ue===i.memoizedState||(a.flags|=1024),a.memoizedProps=p,a.memoizedState=Ce),k.props=p,k.state=Ce,k.context=j,p=G):(typeof k.componentDidUpdate!="function"||B===i.memoizedProps&&ue===i.memoizedState||(a.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||B===i.memoizedProps&&ue===i.memoizedState||(a.flags|=1024),p=!1)}return vp(i,a,c,p,v,x)}function vp(i,a,c,p,x,v){lx(i,a);var k=(a.flags&128)!==0;if(!p&&!k)return x&&mb(a,c,!1),cs(i,a,v);p=a.stateNode,aR.current=a;var B=k&&typeof c.getDerivedStateFromError!="function"?null:p.render();return a.flags|=1,i!==null&&k?(a.child=Fo(a,i.child,null,v),a.child=Fo(a,null,B,v)):En(i,a,B,v),a.memoizedState=p.state,x&&mb(a,c,!0),a.child}function dx(i){var a=i.stateNode;a.pendingContext?hb(i,a.pendingContext,a.pendingContext!==a.context):a.context&&hb(i,a.context,!1),sp(i,a.containerInfo)}function fx(i,a,c,p,x){return Bo(),Xh(x),a.flags|=256,En(i,a,c,p),a.child}var Tp={dehydrated:null,treeContext:null,retryLane:0};function wp(i){return{baseLanes:i,cachePool:null,transitions:null}}function hx(i,a,c){var p=a.pendingProps,x=vt.current,v=!1,k=(a.flags&128)!==0,B;if((B=k)||(B=i!==null&&i.memoizedState===null?!1:(x&2)!==0),B?(v=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(x|=1),ft(vt,x&1),i===null)return Gh(a),i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((a.mode&1)===0?a.lanes=1:i.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(k=p.children,i=p.fallback,v?(p=a.mode,v=a.child,k={mode:"hidden",children:k},(p&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=k):v=id(k,p,0,null),i=Mi(i,p,c,null),v.return=a,i.return=a,v.sibling=i,a.child=v,a.child.memoizedState=wp(c),a.memoizedState=Tp,i):Sp(a,k));if(x=i.memoizedState,x!==null&&(B=x.dehydrated,B!==null))return uR(i,a,k,p,B,x,c);if(v){v=p.fallback,k=a.mode,x=i.child,B=x.sibling;var j={mode:"hidden",children:p.children};return(k&1)===0&&a.child!==x?(p=a.child,p.childLanes=0,p.pendingProps=j,a.deletions=null):(p=Ws(x,j),p.subtreeFlags=x.subtreeFlags&14680064),B!==null?v=Ws(B,v):(v=Mi(v,k,c,null),v.flags|=2),v.return=a,p.return=a,p.sibling=v,a.child=p,p=v,v=a.child,k=i.child.memoizedState,k=k===null?wp(c):{baseLanes:k.baseLanes|c,cachePool:null,transitions:k.transitions},v.memoizedState=k,v.childLanes=i.childLanes&~c,a.memoizedState=Tp,p}return v=i.child,i=v.sibling,p=Ws(v,{mode:"visible",children:p.children}),(a.mode&1)===0&&(p.lanes=c),p.return=a,p.sibling=null,i!==null&&(c=a.deletions,c===null?(a.deletions=[i],a.flags|=16):c.push(i)),a.child=p,a.memoizedState=null,p}function Sp(i,a){return a=id({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function qc(i,a,c,p){return p!==null&&Xh(p),Fo(a,i.child,null,c),i=Sp(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function uR(i,a,c,p,x,v,k){if(c)return a.flags&256?(a.flags&=-257,p=bp(Error(n(422))),qc(i,a,k,p)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(v=p.fallback,x=a.mode,p=id({mode:"visible",children:p.children},x,0,null),v=Mi(v,x,k,null),v.flags|=2,p.return=a,v.return=a,p.sibling=v,a.child=p,(a.mode&1)!==0&&Fo(a,i.child,null,k),a.child.memoizedState=wp(k),a.memoizedState=Tp,v);if((a.mode&1)===0)return qc(i,a,k,null);if(x.data==="$!"){if(p=x.nextSibling&&x.nextSibling.dataset,p)var B=p.dgst;return p=B,v=Error(n(419)),p=bp(v,p,void 0),qc(i,a,k,p)}if(B=(k&i.childLanes)!==0,kn||B){if(p=zt,p!==null){switch(k&-k){case 4:x=2;break;case 16:x=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:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(p.suspendedLanes|k))!==0?0:x,x!==0&&x!==v.retryLane&&(v.retryLane=x,us(i,x),vr(p,i,x,-1))}return Up(),p=bp(Error(n(421))),qc(i,a,k,p)}return x.data==="$?"?(a.flags|=128,a.child=i.child,a=vR.bind(null,i),x._reactRetry=a,null):(i=v.treeContext,qn=Os(x.nextSibling),$n=a,xt=!0,yr=null,i!==null&&(er[tr++]=os,er[tr++]=as,er[tr++]=Ai,os=i.id,as=i.overflow,Ai=a),a=Sp(a,p.children),a.flags|=4096,a)}function px(i,a,c){i.lanes|=a;var p=i.alternate;p!==null&&(p.lanes|=a),tp(i.return,a,c)}function _p(i,a,c,p,x){var v=i.memoizedState;v===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:p,tail:c,tailMode:x}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=p,v.tail=c,v.tailMode=x)}function mx(i,a,c){var p=a.pendingProps,x=p.revealOrder,v=p.tail;if(En(i,a,p.children,c),p=vt.current,(p&2)!==0)p=p&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&px(i,c,a);else if(i.tag===19)px(i,c,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}p&=1}if(ft(vt,p),(a.mode&1)===0)a.memoizedState=null;else switch(x){case"forwards":for(c=a.child,x=null;c!==null;)i=c.alternate,i!==null&&jc(i)===null&&(x=c),c=c.sibling;c=x,c===null?(x=a.child,a.child=null):(x=c.sibling,c.sibling=null),_p(a,!1,x,c,v);break;case"backwards":for(c=null,x=a.child,a.child=null;x!==null;){if(i=x.alternate,i!==null&&jc(i)===null){a.child=x;break}i=x.sibling,x.sibling=c,c=x,x=i}_p(a,!0,c,null,v);break;case"together":_p(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Yc(i,a){(a.mode&1)===0&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=2)}function cs(i,a,c){if(i!==null&&(a.dependencies=i.dependencies),Ii|=a.lanes,(c&a.childLanes)===0)return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,c=Ws(i,i.pendingProps),a.child=c,c.return=a;i.sibling!==null;)i=i.sibling,c=c.sibling=Ws(i,i.pendingProps),c.return=a;c.sibling=null}return a.child}function lR(i,a,c){switch(a.tag){case 3:dx(a),Bo();break;case 5:kb(a);break;case 1:Nn(a.type)&&kc(a);break;case 4:sp(a,a.stateNode.containerInfo);break;case 10:var p=a.type._context,x=a.memoizedProps.value;ft(Dc,p._currentValue),p._currentValue=x;break;case 13:if(p=a.memoizedState,p!==null)return p.dehydrated!==null?(ft(vt,vt.current&1),a.flags|=128,null):(c&a.child.childLanes)!==0?hx(i,a,c):(ft(vt,vt.current&1),i=cs(i,a,c),i!==null?i.sibling:null);ft(vt,vt.current&1);break;case 19:if(p=(c&a.childLanes)!==0,(i.flags&128)!==0){if(p)return mx(i,a,c);a.flags|=128}if(x=a.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),ft(vt,vt.current),p)break;return null;case 22:case 23:return a.lanes=0,ux(i,a,c)}return cs(i,a,c)}var gx,Cp,yx,bx;gx=function(i,a){for(var c=a.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},Cp=function(){},yx=function(i,a,c,p){var x=i.memoizedProps;if(x!==p){i=a.stateNode,Ri(Dr.current);var v=null;switch(c){case"input":x=dt(i,x),p=dt(i,p),v=[];break;case"select":x=I({},x,{value:void 0}),p=I({},p,{value:void 0}),v=[];break;case"textarea":x=_s(i,x),p=_s(i,p),v=[];break;default:typeof x.onClick!="function"&&typeof p.onClick=="function"&&(i.onclick=Cc)}Jt(c,p);var k;c=null;for(G in x)if(!p.hasOwnProperty(G)&&x.hasOwnProperty(G)&&x[G]!=null)if(G==="style"){var B=x[G];for(k in B)B.hasOwnProperty(k)&&(c||(c={}),c[k]="")}else G!=="dangerouslySetInnerHTML"&&G!=="children"&&G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&G!=="autoFocus"&&(s.hasOwnProperty(G)?v||(v=[]):(v=v||[]).push(G,null));for(G in p){var j=p[G];if(B=x!=null?x[G]:void 0,p.hasOwnProperty(G)&&j!==B&&(j!=null||B!=null))if(G==="style")if(B){for(k in B)!B.hasOwnProperty(k)||j&&j.hasOwnProperty(k)||(c||(c={}),c[k]="");for(k in j)j.hasOwnProperty(k)&&B[k]!==j[k]&&(c||(c={}),c[k]=j[k])}else c||(v||(v=[]),v.push(G,c)),c=j;else G==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,B=B?B.__html:void 0,j!=null&&B!==j&&(v=v||[]).push(G,j)):G==="children"?typeof j!="str
40ing"&&typeof j!="number"||(v=v||[]).push(G,""+j):G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&(s.hasOwnProperty(G)?(j!=null&&G==="onScroll"&&yt("scroll",i),v||B===j||(v=[])):(v=v||[]).push(G,j))}c&&(v=v||[]).push("style",c);var G=v;(a.updateQueue=G)&&(a.flags|=4)}},bx=function(i,a,c,p){c!==p&&(a.flags|=4)};function vu(i,a){if(!xt)switch(i.tailMode){case"hidden":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function cn(i){var a=i.alternate!==null&&i.alternate.child===i.child,c=0,p=0;if(a)for(var x=i.child;x!==null;)c|=x.lanes|x.childLanes,p|=x.subtreeFlags&14680064,p|=x.flags&14680064,x.return=i,x=x.sibling;else for(x=i.child;x!==null;)c|=x.lanes|x.childLanes,p|=x.subtreeFlags,p|=x.flags,x.return=i,x=x.sibling;return i.subtreeFlags|=p,i.childLanes=c,a}function cR(i,a,c){var p=a.pendingProps;switch(Kh(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cn(a),null;case 1:return Nn(a.type)&&Nc(),cn(a),null;case 3:return p=a.stateNode,Ho(),bt(An),bt(un),ap(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(Oc(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,yr!==null&&(Bp(yr),yr=null))),Cp(i,a),cn(a),null;case 5:ip(a);var x=Ri(gu.current);if(c=a.type,i!==null&&a.stateNode!=null)yx(i,a,c,p,x),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!p){if(a.stateNode===null)throw Error(n(166));return cn(a),null}if(i=Ri(Dr.current),Oc(a)){p=a.stateNode,c=a.type;var v=a.memoizedProps;switch(p[Lr]=a,p[du]=v,i=(a.mode&1)!==0,c){case"dialog":yt("cancel",p),yt("close",p);break;case"iframe":case"object":case"embed":yt("load",p);break;case"video":case"audio":for(x=0;x<uu.length;x++)yt(uu[x],p);break;case"source":yt("error",p);break;case"img":case"image":case"link":yt("error",p),yt("load",p);break;case"details":yt("toggle",p);break;case"input":Cn(p,v),yt("invalid",p);break;case"select":p._wrapperState={wasMultiple:!!v.multiple},yt("invalid",p);break;case"textarea":To(p,v),yt("invalid",p)}Jt(c,v),x=null;for(var k in v)if(v.hasOwnProperty(k)){var B=v[k];k==="children"?typeof B=="string"?p.textContent!==B&&(v.suppressHydrationWarning!==!0&&_c(p.textContent,B,i),x=["children",B]):typeof B=="number"&&p.textContent!==""+B&&(v.suppressHydrationWarning!==!0&&_c(p.textContent,B,i),x=["children",""+B]):s.hasOwnProperty(k)&&B!=null&&k==="onScroll"&&yt("scroll",p)}switch(c){case"input":We(p),je(p,v,!0);break;case"textarea":We(p),sc(p);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(p.onclick=Cc)}p=x,a.updateQueue=p,p!==null&&(a.flags|=4)}else{k=x.nodeType===9?x:x.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=re(c)),i==="http://www.w3.org/1999/xhtml"?c==="script"?(i=k.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof p.is=="string"?i=k.createElement(c,{is:p.is}):(i=k.createElement(c),c==="select"&&(k=i,p.multiple?k.multiple=!0:p.size&&(k.size=p.size))):i=k.createElementNS(i,c),i[Lr]=a,i[du]=p,gx(i,a,!1,!1),a.stateNode=i;e:{switch(k=Ir(c,p),c){case"dialog":yt("cancel",i),yt("close",i),x=p;break;case"iframe":case"object":case"embed":yt("load",i),x=p;break;case"video":case"audio":for(x=0;x<uu.length;x++)yt(uu[x],i);x=p;break;case"source":yt("error",i),x=p;break;case"img":case"image":case"link":yt("error",i),yt("load",i),x=p;break;case"details":yt("toggle",i),x=p;break;case"input":Cn(i,p),x=dt(i,p),yt("invalid",i);break;case"option":x=p;break;case"select":i._wrapperState={wasMultiple:!!p.multiple},x=I({},p,{value:void 0}),yt("invalid",i);break;case"textarea":To(i,p),x=_s(i,p),yt("invalid",i);break;default:x=p}Jt(c,x),B=x;for(v in B)if(B.hasOwnProperty(v)){var j=B[v];v==="style"?Cs(i,j):v==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&Ke(i,j)):v==="children"?typeof j=="string"?(c!=="textarea"||j!=="")&&Ze(i,j):typeof j=="number"&&Ze(i,""+j):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(s.hasOwnProperty(v)?j!=null&&v==="onScroll"&&yt("scroll",i):j!=null&&S(i,v,j,k))}switch(c){case"input":We(i),je(i,p,!1);break;case"textarea":We(i),sc(i);break;case"option":p.value!=null&&i.setAttribute("value",""+xe(p.value));break;case"select":i.multiple=!!p.multiple,v=p.value,v!=null?an(i,!!p.multiple,v,!1):p.defaultValue!=null&&an(i,!!p.multiple,p.defaultValue,!0);break;default:typeof x.onClick=="function"&&(i.onclick=Cc)}switch(c){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}}p&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}
vendor: 20,094 bytes, line 40
40return cn(a),null;case 6:if(i&&a.stateNode!=null)bx(i,a,i.memoizedProps,p);else{if(typeof p!="string"&&a.stateNode===null)throw Error(n(166));if(c=Ri(gu.current),Ri(Dr.current),Oc(a)){if(p=a.stateNode,c=a.memoizedProps,p[Lr]=a,(v=p.nodeValue!==c)&&(i=$n,i!==null))switch(i.tag){case 3:_c(p.nodeValue,c,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&_c(p.nodeValue,c,(i.mode&1)!==0)}v&&(a.flags|=4)}else p=(c.nodeType===9?c:c.ownerDocument).createTextNode(p),p[Lr]=a,a.stateNode=p}return cn(a),null;case 13:if(bt(vt),p=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(xt&&qn!==null&&(a.mode&1)!==0&&(a.flags&128)===0)vb(),Bo(),a.flags|=98560,v=!1;else if(v=Oc(a),p!==null&&p.dehydrated!==null){if(i===null){if(!v)throw Error(n(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(n(317));v[Lr]=a}else Bo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;cn(a),v=!1}else yr!==null&&(Bp(yr),yr=null),v=!0;if(!v)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=c,a):(p=p!==null,p!==(i!==null&&i.memoizedState!==null)&&p&&(a.child.flags|=8192,(a.mode&1)!==0&&(i===null||(vt.current&1)!==0?Ut===0&&(Ut=3):Up())),a.updateQueue!==null&&(a.flags|=4),cn(a),null);case 4:return Ho(),Cp(i,a),i===null&&lu(a.stateNode.containerInfo),cn(a),null;case 10:return ep(a.type._context),cn(a),null;case 17:return Nn(a.type)&&Nc(),cn(a),null;case 19:if(bt(vt),v=a.memoizedState,v===null)return cn(a),null;if(p=(a.flags&128)!==0,k=v.rendering,k===null)if(p)vu(v,!1);else{if(Ut!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(k=jc(i),k!==null){for(a.flags|=128,vu(v,!1),p=k.updateQueue,p!==null&&(a.updateQueue=p,a.flags|=4),a.subtreeFlags=0,p=c,c=a.child;c!==null;)v=c,i=p,v.flags&=14680066,k=v.alternate,k===null?(v.childLanes=0,v.lanes=i,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=k.childLanes,v.lanes=k.lanes,v.child=k.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=k.memoizedProps,v.memoizedState=k.memoizedState,v.updateQueue=k.updateQueue,v.type=k.type,i=k.dependencies,v.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),c=c.sibling;return ft(vt,vt.current&1|2),a.child}i=i.sibling}v.tail!==null&&kt()>$o&&(a.flags|=128,p=!0,vu(v,!1),a.lanes=4194304)}else{if(!p)if(i=jc(k),i!==null){if(a.flags|=128,p=!0,c=i.updateQueue,c!==null&&(a.updateQueue=c,a.flags|=4),vu(v,!0),v.tail===null&&v.tailMode==="hidden"&&!k.alternate&&!xt)return cn(a),null}else 2*kt()-v.renderingStartTime>$o&&c!==1073741824&&(a.flags|=128,p=!0,vu(v,!1),a.lanes=4194304);v.isBackwards?(k.sibling=a.child,a.child=k):(c=v.last,c!==null?c.sibling=k:a.child=k,v.last=k)}return v.tail!==null?(a=v.tail,v.rendering=a,v.tail=a.sibling,v.renderingStartTime=kt(),a.sibling=null,c=vt.current,ft(vt,p?c&1|2:c&1),a):(cn(a),null);case 22:case 23:return jp(),p=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==p&&(a.flags|=8192),p&&(a.mode&1)!==0?(Yn&1073741824)!==0&&(cn(a),a.subtreeFlags&6&&(a.flags|=8192)):cn(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function dR(i,a){switch(Kh(a),a.tag){case 1:return Nn(a.type)&&Nc(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return Ho(),bt(An),bt(un),ap(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 5:return ip(a),null;case 13:if(bt(vt),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Bo()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return bt(vt),null;case 4:return Ho(),null;case 10:return ep(a.type._context),null;case 22:case 23:return jp(),null;case 24:return null;default:return null}}var Kc=!1,dn=!1,fR=typeof WeakSet=="function"?WeakSet:Set,Se=null;function zo(i,a){var c=i.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(p){_t(i,a,p)}else c.current=null}function Ap(i,a,c){try{c()}catch(p){_t(i,a,p)}}var xx=!1;function hR(i,a){if(jh=pc,i=X1(),Ph(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var p=c.getSelection&&c.getSelection();if(p&&p.rangeCount!==0){c=p.anchorNode;var x=p.anchorOffset,v=p.focusNode;p=p.focusOffset;try{c.nodeType,v.nodeType}catch{c=null;break e}var k=0,B=-1,j=-1,G=0,ce=0,he=i,ue=null;t:for(;;){for(var Te;he!==c||x!==0&&he.nodeType!==3||(B=k+x),he!==v||p!==0&&he.nodeType!==3||(j=k+p),he.nodeType===3&&(k+=he.nodeValue.length),(Te=he.firstChild)!==null;)ue=he,he=Te;for(;;){if(he===i)break t;if(ue===c&&++G===x&&(B=k),ue===v&&++ce===p&&(j=k),(Te=he.nextSibling)!==null)break;he=ue,ue=he.parentNode}he=Te}c=B===-1||j===-1?null:{start:B,end:j}}else c=null}c=c||{start:0,end:0}}else c=null;for(Uh={focusedElem:i,selectionRange:c},pc=!1,Se=a;Se!==null;)if(a=Se,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,Se=i;else for(;Se!==null;){a=Se;try{var Ce=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(Ce!==null){var ke=Ce.memoizedProps,Rt=Ce.memoizedState,Y=a.stateNode,q=Y.getSnapshotBeforeUpdate(a.elementType===a.type?ke:br(a.type,ke),Rt);Y.__reactInternalSnapshotBeforeUpdate=q}break;case 3:var Q=a.stateNode.containerInfo;Q.nodeType===1?Q.textContent="":Q.nodeType===9&&Q.documentElement&&Q.removeChild(Q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ye){_t(a,a.return,ye)}if(i=a.sibling,i!==null){i.return=a.return,Se=i;break}Se=a.return}return Ce=xx,xx=!1,Ce}function Tu(i,a,c){var p=a.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var x=p=p.next;do{if((x.tag&i)===i){var v=x.destroy;x.destroy=void 0,v!==void 0&&Ap(a,c,v)}x=x.next}while(x!==p)}}function Qc(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&i)===i){var p=c.create;c.destroy=p()}c=c.next}while(c!==a)}}function Np(i){var a=i.ref;if(a!==null){var c=i.stateNode;switch(i.tag){case 5:i=c;break;default:i=c}typeof a=="function"?a(i):a.current=i}}function Ex(i){var a=i.alternate;a!==null&&(i.alternate=null,Ex(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[Lr],delete a[du],delete a[Wh],delete a[Q3],delete a[G3])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function vx(i){return i.tag===5||i.tag===3||i.tag===4}function Tx(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||vx(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function kp(i,a,c){var p=i.tag;if(p===5||p===6)i=i.stateNode,a?c.nodeType===8?c.parentNode.insertBefore(i,a):c.insertBefore(i,a):(c.nodeType===8?(a=c.parentNode,a.insertBefore(i,c)):(a=c,a.appendChild(i)),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=Cc));else if(p!==4&&(i=i.child,i!==null))for(kp(i,a,c),i=i.sibling;i!==null;)kp(i,a,c),i=i.sibling}function Rp(i,a,c){var p=i.tag;if(p===5||p===6)i=i.stateNode,a?c.insertBefore(i,a):c.appendChild(i);else if(p!==4&&(i=i.child,i!==null))for(Rp(i,a,c),i=i.sibling;i!==null;)Rp(i,a,c),i=i.sibling}var Zt=null,xr=!1;function js(i,a,c){for(c=c.child;c!==null;)wx(i,a,c),c=c.sibling}function wx(i,a,c){if(Or&&typeof Or.onCommitFiberUnmount=="function")try{Or.onCommitFiberUnmount(uc,c)}catch{}switch(c.tag){case 5:dn||zo(c,a);case 6:var p=Zt,x=xr;Zt=null,js(i,a,c),Zt=p,xr=x,Zt!==null&&(xr?(i=Zt,c=c.stateNode,i.nodeType===8?i.parentNode.removeChild(c):i.removeChild(c)):Zt.removeChild(c.stateNode));break;case 18:Zt!==null&&(xr?(i=Zt,c=c.stateNode,i.nodeType===8?zh(i.parentNode,c):i.nodeType===1&&zh(i,c),eu(i)):zh(Zt,c.stateNode));break;case 4:p=Zt,x=xr,Zt=c.stateNode.containerInfo,xr=!0,js(i,a,c),Zt=p,xr=x;break;case 0:case 11:case 14:case 15:if(!dn&&(p=c.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){x=p=p.next;do{var v=x,k=v.destroy;v=v.tag,k!==void 0&&((v&2)!==0||(v&4)!==0)&&Ap(c,a,k),x=x.next}while(x!==p)}js(i,a,c);break;case 1:if(!dn&&(zo(c,a),p=c.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=c.memoizedProps,p.state=c.memoizedState,p.componentWillUnmount()}catch(B){_t(c,a,B)}js(i,a,c);break;case 21:js(i,a,c);break;case 22:c.mode&1?(dn=(p=dn)||c.memoizedState!==null,js(i,a,c),dn=p):js(i,a,c);break;default:js(i,a,c)}}function Sx(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var c=i.stateNode;c===null&&(c=i.stateNode=new fR),a.forEach(function(p){var x=TR.bind(null,i,p);c.has(p)||(c.add(p),p.then(x,x))})}}function Er(i,a){var c=a.deletions;if(c!==null)for(var p=0;p<c.length;p++){var x=c[p];try{var v=i,k=a,B=k;e:for(;B!==null;){switch(B.tag){case 5:Zt=B.stateNode,xr=!1;break e;case 3:Zt=B.stateNode.containerInfo,xr=!0;break e;case 4:Zt=B.stateNode.containerInfo,xr=!0;break e}B=B.return}if(Zt===null)throw Error(n(160));wx(v,k,x),Zt=null,xr=!1;var j=x.alternate;j!==null&&(j.return=null),x.return=null}catch(G){_t(x,a,G)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)_x(a,i),a=a.sibling}function _x(i,a){var c=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Er(a,i),Br(i),p&4){try{Tu(3,i,i.return),Qc(3,i)}catch(ke){_t(i,i.return,ke)}try{Tu(5,i,i.return)}catch(ke){_t(i,i.return,ke)}}break;case 1:Er(a,i),Br(i),p&512&&c!==null&&zo(c,c.return);break;case 5:if(Er(a,i),Br(i),p&512&&c!==null&&zo(c,c.return),i.flags&32){var x=i.stateNode;try{Ze(x,"")}catch(ke){_t(i,i.return,ke)}}if(p&4&&(x=i.stateNode,x!=null)){var v=i.memoizedProps,k=c!==null?c.memoizedProps:v,B=i.type,j=i.updateQueue;if(i.updateQueue=null,j!==null)try{B==="input"&&v.type==="radio"&&v.name!=null&&xn(x,v),Ir(B,k);var G=Ir(B,v);for(k=0;k<j.length;k+=2){var ce=j[k],he=j[k+1];ce==="style"?Cs(x,he):ce==="dangerouslySetInnerHTML"?Ke(x,he):ce==="children"?Ze(x,he):S(x,ce,he,G)}switch(B){case"input":St(x,v);break;case"textarea":Pr(x,v);break;case"select":var ue=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!v.multiple;var Te=v.value;Te!=null?an(x,!!v.multiple,Te,!1):ue!==!!v.multiple&&(v.defaultValue!=null?an(x,!!v.multiple,v.defaultValue,!0):an(x,!!v.multiple,v.multiple?[]:"",!1))}x[du]=v}catch(ke){_t(i,i.return,ke)}}break;case 6:if(Er(a,i),Br(i),p&4){if(i.stateNode===null)throw Error(n(162));x=i.stateNode,v=i.memoizedProps;try{x.nodeValue=v}catch(ke){_t(i,i.return,ke)}}break;case 3:if(Er(a,i),Br(i),p&4&&c!==null&&c.memoizedState.isDehydrated)try{eu(a.containerInfo)}catch(ke){_t(i,i.return,ke)}break;case 4:Er(a,i),Br(i);break;case 13:Er(a,i),Br(i),x=i.child,x.flags&8192&&(v=x.memoizedState!==null,x.stateNode.isHidden=v,!v||x.alternate!==null&&x.alternate.memoizedState!==null||(Op=kt())),p&4&&Sx(i);break;case 22:if(ce=c!==null&&c.memoizedState!==null,i.mode&1?(dn=(G=dn)||ce,Er(a,i),dn=G):Er(a,i),Br(i),p&8192){if(G=i.memoizedState!==null,(i.stateNode.isHidden=G)&&!ce&&(i.mode&1)!==0)for(Se=i,ce=i.child;ce!==null;){for(he=Se=ce;Se!==null;){switch(ue=Se,Te=ue.child,ue.tag){case 0:case 11:case 14:case 15:Tu(4,ue,ue.return);break;case 1:zo(ue,ue.return);var Ce=ue.stateNode;if(typeof Ce.componentWillUnmount=="function"){p=ue,c=ue.return;try{a=p,Ce.props=a.memoizedProps,Ce.state=a.memoizedState,Ce.componentWillUnmount()}catch(ke){_t(p,c,ke)}}break;case 5:zo(ue,ue.return);break;case 22:if(ue.memoizedState!==null){Nx(he);continue}}Te!==null?(Te.return=ue,Se=Te):Nx(he)}ce=ce.sibling}e:for(ce=null,he=i;;){if(he.tag===5){if(ce===null){ce=he;try{x=he.stateNode,G?(v=x.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(B=he.stateNode,j=he.memoizedProps.style,k=j!=null&&j.hasOwnProperty("display")?j.display:null,B.style.display=Zn("display",k))}catch(ke){_t(i,i.return,ke)}}}else if(he.tag===6){if(ce===null)try{he.stateNode.nodeValue=G?"":he.memoizedProps}catch(ke){_t(i,i.return,ke)}}else if((he.tag!==22&&he.tag!==23||he.memoizedState===null||he===i)&&he.child!==null){he.child.return=he,he=he.child;continue}if(he===i)break e;for(;he.sibling===null;){if(he.return===null||he.return===i)break e;ce===he&&(ce=null),he=he.return}ce===he&&(ce=null),he.sibling.return=he.return,he=he.sibling}}break;case 19:Er(a,i),Br(i),p&4&&Sx(i);break;case 21:break;default:Er(a,i),Br(i)}}function Br(i){var a=i.flags;if(a&2){try{e:{for(var c=i.return;c!==null;){if(vx(c)){var p=c;break e}c=c.return}throw Error(n(160))}switch(p.tag){case 5:var x=p.stateNode;p.flags&32&&(Ze(x,""),p.flags&=-33);var v=Tx(i);Rp(i,v,x);break;case 3:case 4:var k=p.stateNode.containerInfo,B=Tx(i);kp(i,B,k);break;default:throw Error(n(161))}}catch(j){_t(i,i.return,j)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function pR(i,a,c){Se=i,Cx(i)}function Cx(i,a,c){for(var p=(i.mode&1)!==0;Se!==null;){var x=Se,v=x.child;if(x.tag===22&&p){var k=x.memoizedState!==null||Kc;if(!k){var B=x.alternate,j=B!==null&&B.memoizedState!==null||dn;B=Kc;var G=dn;if(Kc=k,(dn=j)&&!G)for(Se=x;Se!==null;)k=Se,j=k.child,k.tag===22&&k.memoizedState!==null?kx(x):j!==null?(j.return=k,Se=j):kx(x);for(;v!==null;)Se=v,Cx(v),v=v.sibling;Se=x,Kc=B,dn=G}Ax(i)}else(x.subtreeFlags&8772)!==0&&v!==null?(v.return=x,Se=v):Ax(i)}}function Ax(i){for(;Se!==null;){var a=Se;if((a.flags&8772)!==0){var c=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:dn||Qc(5,a);break;case 1:var p=a.stateNode;if(a.flags&4&&!dn)if(c===null)p.componentDidMount();else{var x=a.elementType===a.type?c.memoizedProps:br(a.type,c.memoizedProps);p.componentDidUpdate(x,c.memoizedState,p.__reactInternalSnapshotBeforeUpdate)}var v=a.updateQueue;v!==null&&Nb(a,v,p);break;case 3:var k=a.updateQueue;if(k!==null){if(c=null,a.child!==null)switch(a.child.tag){case 5:c=a.child.stateNode;break;case 1:c=a.child.stateNode}Nb(a,k,c)}break;case 5:var B=a.stateNode;if(c===null&&a.flags&4){c=B;var j=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&c.focus();break;case"img":j.src&&(c.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var G=a.alternate;if(G!==null){var ce=G.memoizedState;if(ce!==null){var he=ce.dehydrated;he!==null&&eu(he)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}dn||a.flags&512&&Np(a)}catch(ue){_t(a,a.return,ue)}}if(a===i){Se=null;break}if(c=a.sibling,c!==null){c.return=a.return,Se=c;break}Se=a.return}}function Nx(i){for(;Se!==null;){var a=Se;if(a===i){Se=null;break}var c=a.sibling;if(c!==null){c.return=a.return,Se=c;break}Se=a.return}}function kx(i){for(;Se!==null;){var a=Se;try{switch(a.tag){case 0:case 11:case 15:var c=a.return;try{Qc(4,a)}catch(j){_t(a,c,j)}break;case 1:var p=a.stateNode;if(typeof p.componentDidMount=="function"){var x=a.return;try{p.componentDidMount()}catch(j){_t(a,x,j)}}var v=a.return;try{Np(a)}catch(j){_t(a,v,j)}break;case 5:var k=a.return;try{Np(a)}catch(j){_t(a,k,j)}}}catch(j){_t(a,a.return,j)}if(a===i){Se=null;break}var B=a.sibling;if(B!==null){B.return=a.return,Se=B;break}Se=a.return}}var mR=Math.ceil,Gc=R.ReactCurrentDispatcher,Pp=R.ReactCurrentOwner,sr=R.ReactCurrentBatchConfig,et=0,zt=null,Lt=null,en=0,Yn=0,Wo=Ls(0),Ut=0,wu=null,Ii=0,Xc=0,Ip=0,Su=null,Rn=null,Op=0,$o=1/0,ds=null,Jc=!1,Lp=null,Us=null,Zc=!1,Hs=null,ed=0,_u=0,Dp=null,td=-1,nd=0;function vn(){return(et&6)!==0?kt():td!==-1?td:td=kt()}function Vs(i){return(i.mode&1)===0?1:(et&2)!==0&&en!==0?en&-en:J3.transition!==null?(nd===0&&(nd=T1()),nd):(i=ut,i!==0||(i=window.event,i=i===void 0?16:P1(i.type)),i)}function vr(i,a,c,p){if(50<_u)throw _u=0,Dp=null,Error(n(185));Qa(i,c,p),((et&2)===0||i!==zt)&&(i===zt&&((et&2)===0&&(Xc|=c),Ut===4&&zs(i,en)),Pn(i,p),c===1&&et===0&&(a.mode&1)===0&&($o=kt()+500,Rc&&Ms()))}function Pn(i,a){var c=i.callbackNode;Jk(i,a);var p=dc(i,i===zt?en:0);if(p===0)c!==null&&x1(c),i.callbackNode=null,i.callbackPriority=0;else if(a=p&-p,i.callbackPriority!==a){if(c!=null&&x1(c),a===1)i.tag===0?X3(Px.bind(null,i)):gb(Px.bind(null,i)),Y3(function(){(et&6)===0&&Ms()}),c=null;else{switch(w1(p)){case 1:c=ph;break;case 4:c=E1;break;case 16:c=ac;break;case 536870912:c=v1;break;default:c=ac}c=jx(c,Rx.bind(null,i))}i.callbackPriority=a,i.callbackNode=c}}function Rx(i,a){if(td=-1,nd=0,(et&6)!==0)throw Error(n(327));var c=i.callbackNode;if(qo()&&i.callbackNode!==c)return null;var p=dc(i,i===zt?en:0);if(p===0)return null;if((p&30)!==0||(p&i.expiredLanes)!==0||a)a=rd(i,p);else{a=p;var x=et;et|=2;var v=Ox();(zt!==i||en!==a)&&(ds=null,$o=kt()+500,Li(i,a));do try{bR();break}catch(B){Ix(i,B)}while(!0);Zh(),Gc.current=v,et=x,Lt!==null?a=0:(zt=null,en=0,a=Ut)}if(a!==0){if(a===2&&(x=mh(i),x!==0&&(p=x,a=Mp(i,x))),a===1)throw c=wu,Li(i,0),zs(i,p),Pn(i,kt()),c;if(a===6)zs(i,p);else{if(x=i.current.alternate,(p&30)===0&&!gR(x)&&(a=rd(i,p),a===2&&(v=mh(i),v!==0&&(p=v,a=Mp(i,v))),a===1))throw c=wu,Li(i,0),zs(i,p),Pn(i,kt()),c;switch(i.finishedWork=x,i.finishedLanes=p,a){case 0:case 1:throw Error(n(345));case 2:Di(i,Rn,ds);break;case 3:if(zs(i,p),(p&130023424)===p&&(a=Op+500-kt(),10<a)){if(dc(i,0)!==0)break;if(x=i.suspendedLanes,(x&p)!==p){vn(),i.pingedLanes|=i.suspendedLanes&x;break}i.timeoutHandle=Vh(Di.bind(null,i,Rn,ds),a);break}Di(i,Rn,ds);break;case 4:if(zs(i,p),(p&4194240)===p)break;for(a=i.eventTimes,x=-1;0<p;){var k=31-mr(p);v=1<<k,k=a[k],k>x&&(x=k),p&=~v}if(p=x,p=kt()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*mR(p/1960))-p,10<p){i.timeoutHandle=Vh(Di.bind(null,i,Rn,ds),p);break}Di(i,Rn,ds);break;case 5:Di(i,Rn,ds);break;default:throw Error(n(329))}}}return Pn(i,kt()),i.callbackNode===c?Rx.bind(null,i):null}function Mp(i,a){var c=Su;return i.current.memoizedState.isDehydrated&&(Li(i,a).flags|=256),i=rd(i,a),i!==2&&(a=Rn,Rn=c,a!==null&&Bp(a)),i}function Bp(i){Rn===null?Rn=i:Rn.push.apply(Rn,i)}function gR(i){for(var a=i;;){if(a.flags&16384){var c=a.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var p=0;p<c.length;p++){var x=c[p],v=x.getSnapshot;x=x.value;try{if(!gr(v(),x))return!1}catch{return!1}}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function zs(i,a){for(a&=~Ip,a&=~Xc,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var c=31-mr(a),p=1<<c;i[c]=-1,a&=~p}}function Px(i){if((et&6)!==0)throw Error(n(327));qo();var a=dc(i,0);if((a&1)===0)return Pn(i,kt()),null;var c=rd(i,a);if(i.tag!==0&&c===2){var p=mh(i);p!==0&&(a=p,c=Mp(i,p))}if(c===1)throw c=wu,Li(i,0),zs(i,a),Pn(i,kt()),c;if(c===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,Di(i,Rn,ds),Pn(i,kt()),null}function Fp(i,a){var c=et;et|=1;try{return i(a)}finally{et=c,et===0&&($o=kt()+500,Rc&&Ms())}}function Oi(i){Hs!==null&&Hs.tag===0&&(et&6)===0&&qo();var a=et;et|=1;var c=sr.transition,p=ut;try{if(sr.transition=null,ut=1,i)return i()}finally{ut=p,sr.transition=c,et=a,(et&6)===0&&Ms()}}function jp(){Yn=Wo.current,bt(Wo)}function Li(i,a){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;if(c!==-1&&(i.timeoutHandle=-1,q3(c)),Lt!==null)for(c=Lt.return;c!==null;){var p=c;switch(Kh(p),p.tag){case 1:p=p.type.childContextTypes,p!=null&&Nc();break;case 3:Ho(),bt(An),bt(un),ap();break;case 5:ip(p);break;case 4:Ho();break;case 13:bt(vt);break;case 19:bt(vt);break;case 10:ep(p.type._context);break;case 22:case 23:jp()}c=c.return}if(zt=i,Lt=i=Ws(i.current,null),en=Yn=a,Ut=0,wu=null,Ip=Xc=Ii=0,Rn=Su=null,ki!==null){for(a=0;a<ki.length;a++)if(c=ki[a],p=c.interleaved,p!==null){c.interleaved=null;var x=p.next,v=c.pending;if(v!==null){var k=v.next;v.next=x,p.next=k}c.pending=p}ki=null}return i}function Ix(i,a){do{var c=Lt;try{if(Zh(),Uc.current=Wc,Hc){for(var p=Tt.memoizedState;p!==null;){var x=p.queue;x!==null&&(x.pending=null),p=p.next}Hc=!1}if(Pi=0,Vt=jt=Tt=null,yu=!1,bu=0,Pp.current=null,c===null||c.return===null){Ut=1,wu=a,Lt=null;break}e:{var v=i,k=c.return,B=c,j=a;if(a=en,B.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var G=j,ce=B,he=ce.tag;
vendor: 6,495 bytes, line 40
40if((ce.mode&1)===0&&(he===0||he===11||he===15)){var ue=ce.alternate;ue?(ce.updateQueue=ue.updateQueue,ce.memoizedState=ue.memoizedState,ce.lanes=ue.lanes):(ce.updateQueue=null,ce.memoizedState=null)}var Te=rx(k);if(Te!==null){Te.flags&=-257,sx(Te,k,B,v,a),Te.mode&1&&nx(v,G,a),a=Te,j=G;var Ce=a.updateQueue;if(Ce===null){var ke=new Set;ke.add(j),a.updateQueue=ke}else Ce.add(j);break e}else{if((a&1)===0){nx(v,G,a),Up();break e}j=Error(n(426))}}else if(xt&&B.mode&1){var Rt=rx(k);if(Rt!==null){(Rt.flags&65536)===0&&(Rt.flags|=256),sx(Rt,k,B,v,a),Xh(Vo(j,B));break e}}v=j=Vo(j,B),Ut!==4&&(Ut=2),Su===null?Su=[v]:Su.push(v),v=k;do{switch(v.tag){case 3:v.flags|=65536,a&=-a,v.lanes|=a;var Y=ex(v,j,a);Ab(v,Y);break e;case 1:B=j;var q=v.type,Q=v.stateNode;if((v.flags&128)===0&&(typeof q.getDerivedStateFromError=="function"||Q!==null&&typeof Q.componentDidCatch=="function"&&(Us===null||!Us.has(Q)))){v.flags|=65536,a&=-a,v.lanes|=a;var ye=tx(v,B,a);Ab(v,ye);break e}}v=v.return}while(v!==null)}Dx(c)}catch(Re){a=Re,Lt===c&&c!==null&&(Lt=c=c.return);continue}break}while(!0)}function Ox(){var i=Gc.current;return Gc.current=Wc,i===null?Wc:i}function Up(){(Ut===0||Ut===3||Ut===2)&&(Ut=4),zt===null||(Ii&268435455)===0&&(Xc&268435455)===0||zs(zt,en)}function rd(i,a){var c=et;et|=2;var p=Ox();(zt!==i||en!==a)&&(ds=null,Li(i,a));do try{yR();break}catch(x){Ix(i,x)}while(!0);if(Zh(),et=c,Gc.current=p,Lt!==null)throw Error(n(261));return zt=null,en=0,Ut}function yR(){for(;Lt!==null;)Lx(Lt)}function bR(){for(;Lt!==null&&!zk();)Lx(Lt)}function Lx(i){var a=Fx(i.alternate,i,Yn);i.memoizedProps=i.pendingProps,a===null?Dx(i):Lt=a,Pp.current=null}function Dx(i){var a=i;do{var c=a.alternate;if(i=a.return,(a.flags&32768)===0){if(c=cR(c,a,Yn),c!==null){Lt=c;return}}else{if(c=dR(c,a),c!==null){c.flags&=32767,Lt=c;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Ut=6,Lt=null;return}}if(a=a.sibling,a!==null){Lt=a;return}Lt=a=i}while(a!==null);Ut===0&&(Ut=5)}function Di(i,a,c){var p=ut,x=sr.transition;try{sr.transition=null,ut=1,xR(i,a,c,p)}finally{sr.transition=x,ut=p}return null}function xR(i,a,c,p){do qo();while(Hs!==null);if((et&6)!==0)throw Error(n(327));c=i.finishedWork;var x=i.finishedLanes;if(c===null)return null;if(i.finishedWork=null,i.finishedLanes=0,c===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var v=c.lanes|c.childLanes;if(Zk(i,v),i===zt&&(Lt=zt=null,en=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||Zc||(Zc=!0,jx(ac,function(){return qo(),null})),v=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||v){v=sr.transition,sr.transition=null;var k=ut;ut=1;var B=et;et|=4,Pp.current=null,hR(i,c),_x(c,i),j3(Uh),pc=!!jh,Uh=jh=null,i.current=c,pR(c),Wk(),et=B,ut=k,sr.transition=v}else i.current=c;if(Zc&&(Zc=!1,Hs=i,ed=x),v=i.pendingLanes,v===0&&(Us=null),Yk(c.stateNode),Pn(i,kt()),a!==null)for(p=i.onRecoverableError,c=0;c<a.length;c++)x=a[c],p(x.value,{componentStack:x.stack,digest:x.digest});if(Jc)throw Jc=!1,i=Lp,Lp=null,i;return(ed&1)!==0&&i.tag!==0&&qo(),v=i.pendingLanes,(v&1)!==0?i===Dp?_u++:(_u=0,Dp=i):_u=0,Ms(),null}function qo(){if(Hs!==null){var i=w1(ed),a=sr.transition,c=ut;try{if(sr.transition=null,ut=16>i?16:i,Hs===null)var p=!1;else{if(i=Hs,Hs=null,ed=0,(et&6)!==0)throw Error(n(331));var x=et;for(et|=4,Se=i.current;Se!==null;){var v=Se,k=v.child;if((Se.flags&16)!==0){var B=v.deletions;if(B!==null){for(var j=0;j<B.length;j++){var G=B[j];for(Se=G;Se!==null;){var ce=Se;switch(ce.tag){case 0:case 11:case 15:Tu(8,ce,v)}var he=ce.child;if(he!==null)he.return=ce,Se=he;else for(;Se!==null;){ce=Se;var ue=ce.sibling,Te=ce.return;if(Ex(ce),ce===G){Se=null;break}if(ue!==null){ue.return=Te,Se=ue;break}Se=Te}}}var Ce=v.alternate;if(Ce!==null){var ke=Ce.child;if(ke!==null){Ce.child=null;do{var Rt=ke.sibling;ke.sibling=null,ke=Rt}while(ke!==null)}}Se=v}}if((v.subtreeFlags&2064)!==0&&k!==null)k.return=v,Se=k;else e:for(;Se!==null;){if(v=Se,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:Tu(9,v,v.return)}var Y=v.sibling;if(Y!==null){Y.return=v.return,Se=Y;break e}Se=v.return}}var q=i.current;for(Se=q;Se!==null;){k=Se;var Q=k.child;if((k.subtreeFlags&2064)!==0&&Q!==null)Q.return=k,Se=Q;else e:for(k=q;Se!==null;){if(B=Se,(B.flags&2048)!==0)try{switch(B.tag){case 0:case 11:case 15:Qc(9,B)}}catch(Re){_t(B,B.return,Re)}if(B===k){Se=null;break e}var ye=B.sibling;if(ye!==null){ye.return=B.return,Se=ye;break e}Se=B.return}}if(et=x,Ms(),Or&&typeof Or.onPostCommitFiberRoot=="function")try{Or.onPostCommitFiberRoot(uc,i)}catch{}p=!0}return p}finally{ut=c,sr.transition=a}}return!1}function Mx(i,a,c){a=Vo(c,a),a=ex(i,a,1),i=Fs(i,a,1),a=vn(),i!==null&&(Qa(i,1,a),Pn(i,a))}function _t(i,a,c){if(i.tag===3)Mx(i,i,c);else for(;a!==null;){if(a.tag===3){Mx(a,i,c);break}else if(a.tag===1){var p=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Us===null||!Us.has(p))){i=Vo(c,i),i=tx(a,i,1),a=Fs(a,i,1),i=vn(),a!==null&&(Qa(a,1,i),Pn(a,i));break}}a=a.return}}function ER(i,a,c){var p=i.pingCache;p!==null&&p.delete(a),a=vn(),i.pingedLanes|=i.suspendedLanes&c,zt===i&&(en&c)===c&&(Ut===4||Ut===3&&(en&130023424)===en&&500>kt()-Op?Li(i,0):Ip|=c),Pn(i,a)}function Bx(i,a){a===0&&((i.mode&1)===0?a=1:(a=cc,cc<<=1,(cc&130023424)===0&&(cc=4194304)));var c=vn();i=us(i,a),i!==null&&(Qa(i,a,c),Pn(i,c))}function vR(i){var a=i.memoizedState,c=0;a!==null&&(c=a.retryLane),Bx(i,c)}function TR(i,a){var c=0;switch(i.tag){case 13:var p=i.stateNode,x=i.memoizedState;x!==null&&(c=x.retryLane);break;case 19:p=i.stateNode;break;default:throw Error(n(314))}p!==null&&p.delete(a),Bx(i,c)}var Fx;Fx=function(i,a,c){if(i!==null)if(i.memoizedProps!==a.pendingProps||An.current)kn=!0;else{if((i.lanes&c)===0&&(a.flags&128)===0)return kn=!1,lR(i,a,c);kn=(i.flags&131072)!==0}else kn=!1,xt&&(a.flags&1048576)!==0&&yb(a,Ic,a.index);switch(a.lanes=0,a.tag){case 2:var p=a.type;Yc(i,a),i=a.pendingProps;var x=Lo(a,un.current);Uo(a,c),x=cp(null,a,p,i,x,c);var v=dp();return a.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Nn(p)?(v=!0,kc(a)):v=!1,a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,rp(a),x.updater=$c,a.stateNode=x,x._reactInternals=a,yp(a,p,i,c),a=vp(null,a,p,!0,v,c)):(a.tag=0,xt&&v&&Yh(a),En(null,a,x,c),a=a.child),a;case 16:p=a.elementType;e:{switch(Yc(i,a),i=a.pendingProps,x=p._init,p=x(p._payload),a.type=p,x=a.tag=SR(p),i=br(p,i),x){case 0:a=Ep(null,a,p,i,c
vendor: 10,742 bytes, line 40
40);break e;case 1:a=cx(null,a,p,i,c);break e;case 11:a=ix(null,a,p,i,c);break e;case 14:a=ox(null,a,p,br(p.type,i),c);break e}throw Error(n(306,p,""))}return a;case 0:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:br(p,x),Ep(i,a,p,x,c);case 1:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:br(p,x),cx(i,a,p,x,c);case 3:e:{if(dx(a),i===null)throw Error(n(387));p=a.pendingProps,v=a.memoizedState,x=v.element,Cb(i,a),Fc(a,p,null,c);var k=a.memoizedState;if(p=k.element,v.isDehydrated)if(v={element:p,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){x=Vo(Error(n(423)),a),a=fx(i,a,p,c,x);break e}else if(p!==x){x=Vo(Error(n(424)),a),a=fx(i,a,p,c,x);break e}else for(qn=Os(a.stateNode.containerInfo.firstChild),$n=a,xt=!0,yr=null,c=Sb(a,null,p,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Bo(),p===x){a=cs(i,a,c);break e}En(i,a,p,c)}a=a.child}return a;case 5:return kb(a),i===null&&Gh(a),p=a.type,x=a.pendingProps,v=i!==null?i.memoizedProps:null,k=x.children,Hh(p,x)?k=null:v!==null&&Hh(p,v)&&(a.flags|=32),lx(i,a),En(i,a,k,c),a.child;case 6:return i===null&&Gh(a),null;case 13:return hx(i,a,c);case 4:return sp(a,a.stateNode.containerInfo),p=a.pendingProps,i===null?a.child=Fo(a,null,p,c):En(i,a,p,c),a.child;case 11:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:br(p,x),ix(i,a,p,x,c);case 7:return En(i,a,a.pendingProps,c),a.child;case 8:return En(i,a,a.pendingProps.children,c),a.child;case 12:return En(i,a,a.pendingProps.children,c),a.child;case 10:e:{if(p=a.type._context,x=a.pendingProps,v=a.memoizedProps,k=x.value,ft(Dc,p._currentValue),p._currentValue=k,v!==null)if(gr(v.value,k)){if(v.children===x.children&&!An.current){a=cs(i,a,c);break e}}else for(v=a.child,v!==null&&(v.return=a);v!==null;){var B=v.dependencies;if(B!==null){k=v.child;for(var j=B.firstContext;j!==null;){if(j.context===p){if(v.tag===1){j=ls(-1,c&-c),j.tag=2;var G=v.updateQueue;if(G!==null){G=G.shared;var ce=G.pending;ce===null?j.next=j:(j.next=ce.next,ce.next=j),G.pending=j}}v.lanes|=c,j=v.alternate,j!==null&&(j.lanes|=c),tp(v.return,c,a),B.lanes|=c;break}j=j.next}}else if(v.tag===10)k=v.type===a.type?null:v.child;else if(v.tag===18){if(k=v.return,k===null)throw Error(n(341));k.lanes|=c,B=k.alternate,B!==null&&(B.lanes|=c),tp(k,c,a),k=v.sibling}else k=v.child;if(k!==null)k.return=v;else for(k=v;k!==null;){if(k===a){k=null;break}if(v=k.sibling,v!==null){v.return=k.return,k=v;break}k=k.return}v=k}En(i,a,x.children,c),a=a.child}return a;case 9:return x=a.type,p=a.pendingProps.children,Uo(a,c),x=nr(x),p=p(x),a.flags|=1,En(i,a,p,c),a.child;case 14:return p=a.type,x=br(p,a.pendingProps),x=br(p.type,x),ox(i,a,p,x,c);case 15:return ax(i,a,a.type,a.pendingProps,c);case 17:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:br(p,x),Yc(i,a),a.tag=1,Nn(p)?(i=!0,kc(a)):i=!1,Uo(a,c),Jb(a,p,x),yp(a,p,x,c),vp(null,a,p,!0,i,c);case 19:return mx(i,a,c);case 22:return ux(i,a,c)}throw Error(n(156,a.tag))};function jx(i,a){return b1(i,a)}function wR(i,a,c,p){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ir(i,a,c,p){return new wR(i,a,c,p)}function Hp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function SR(i){if(typeof i=="function")return Hp(i)?1:0;if(i!=null){if(i=i.$$typeof,i===oe)return 11;if(i===me)return 14}return 2}function Ws(i,a){var c=i.alternate;return c===null?(c=ir(i.tag,a,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=a,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&14680064,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,a=i.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c}function sd(i,a,c,p,x,v){var k=2;if(p=i,typeof i=="function")Hp(i)&&(k=1);else if(typeof i=="string")k=5;else e:switch(i){case W:return Mi(c.children,x,v,a);case H:k=8,x|=8;break;case se:return i=ir(12,c,a,x|2),i.elementType=se,i.lanes=v,i;case ie:return i=ir(13,c,a,x),i.elementType=ie,i.lanes=v,i;case ne:return i=ir(19,c,a,x),i.elementType=ne,i.lanes=v,i;case ae:return id(c,x,v,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case J:k=10;break e;case ee:k=9;break e;case oe:k=11;break e;case me:k=14;break e;case de:k=16,p=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return a=ir(k,c,a,x),a.elementType=i,a.type=p,a.lanes=v,a}function Mi(i,a,c,p){return i=ir(7,i,p,a),i.lanes=c,i}function id(i,a,c,p){return i=ir(22,i,p,a),i.elementType=ae,i.lanes=c,i.stateNode={isHidden:!1},i}function Vp(i,a,c){return i=ir(6,i,null,a),i.lanes=c,i}function zp(i,a,c){return a=ir(4,i.children!==null?i.children:[],i.key,a),a.lanes=c,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function _R(i,a,c,p,x){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gh(0),this.expirationTimes=gh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gh(0),this.identifierPrefix=p,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function Wp(i,a,c,p,x,v,k,B,j){return i=new _R(i,a,c,B,j),a===1?(a=1,v===!0&&(a|=8)):a=0,v=ir(3,null,null,a),i.current=v,v.stateNode=i,v.memoizedState={element:p,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},rp(v),i}function CR(i,a,c){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:p==null?null:""+p,children:i,containerInfo:a,implementation:c}}function Ux(i){if(!i)return Ds;i=i._reactInternals;e:{if(Si(i)!==i||i.tag!==1)throw Error(n(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Nn(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(i.tag===1){var c=i.type;if(Nn(c))return pb(i,c,a)}return a}function Hx(i,a,c,p,x,v,k,B,j){return i=Wp(c,p,!0,i,x,v,k,B,j),i.context=Ux(null),c=i.current,p=vn(),x=Vs(c),v=ls(p,x),v.callback=a??null,Fs(c,v,x),i.current.lanes=x,Qa(i,x,p),Pn(i,p),i}function od(i,a,c,p){var x=a.current,v=vn(),k=Vs(x);return c=Ux(c),a.context===null?a.context=c:a.pendingContext=c,a=ls(v,k),a.payload={element:i},p=p===void 0?null:p,p!==null&&(a.callback=p),i=Fs(x,a,k),i!==null&&(vr(i,x,k,v),Bc(i,x,k)),k}function ad(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function Vx(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<a?c:a}}function $p(i,a){Vx(i,a),(i=i.alternate)&&Vx(i,a)}function AR(){return null}var zx=typeof reportError=="function"?reportError:function(i){console.error(i)};function qp(i){this._internalRoot=i}ud.prototype.render=qp.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));od(i,a,null,null)},ud.prototype.unmount=qp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;Oi(function(){od(null,i,null,null)}),a[ss]=null}};function ud(i){this._internalRoot=i}ud.prototype.unstable_scheduleHydration=function(i){if(i){var a=C1();i={blockedOn:null,target:i,priority:a};for(var c=0;c<Rs.length&&a!==0&&a<Rs[c].priority;c++);Rs.splice(c,0,i),c===0&&k1(i)}};function Yp(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function ld(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Wx(){}function NR(i,a,c,p,x){if(x){if(typeof p=="function"){var v=p;p=function(){var G=ad(k);v.call(G)}}var k=Hx(a,p,i,0,null,!1,!1,"",Wx);return i._reactRootContainer=k,i[ss]=k.current,lu(i.nodeType===8?i.parentNode:i),Oi(),k}for(;x=i.lastChild;)i.removeChild(x);if(typeof p=="function"){var B=p;p=function(){var G=ad(j);B.call(G)}}var j=Wp(i,0,!1,null,null,!1,!1,"",Wx);return i._reactRootContainer=j,i[ss]=j.current,lu(i.nodeType===8?i.parentNode:i),Oi(function(){od(a,j,c,p)}),j}function cd(i,a,c,p,x){var v=c._reactRootContainer;if(v){var k=v;if(typeof x=="function"){var B=x;x=function(){var j=ad(k);B.call(j)}}od(a,k,i,x)}else k=NR(c,a,i,x,p);return ad(k)}S1=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var c=Ka(a.pendingLanes);c!==0&&(yh(a,c|1),Pn(a,kt()),(et&6)===0&&($o=kt()+500,Ms()))}break;case 13:Oi(function(){var p=us(i,1);if(p!==null){var x=vn();vr(p,i,1,x)}}),$p(i,1)}},bh=function(i){if(i.tag===13){var a=us(i,134217728);if(a!==null){var c=vn();vr(a,i,134217728,c)}$p(i,134217728)}},_1=function(i){if(i.tag===13){var a=Vs(i),c=us(i,a);if(c!==null){var p=vn();vr(c,i,a,p)}$p(i,a)}},C1=function(){return ut},A1=function(i,a){var c=ut;try{return ut=i,a()}finally{ut=c}},ch=function(i,a,c){switch(a){case"input":if(St(i,c),a=c.name,c.type==="radio"&&a!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<c.length;a++){var p=c[a];if(p!==i&&p.form===i.form){var x=Ac(p);if(!x)throw Error(n(90));Fe(p),St(p,x)}}}break;case"textarea":Pr(i,c);break;case"select":a=c.value,a!=null&&an(i,!!c.multiple,a,!1)}},d1=Fp,f1=Oi;var kR={usingClientEntryPoint:!1,Events:[fu,Io,Ac,l1,c1,Fp]},Cu={findFiberByHostInstance:_i,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},RR={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:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=g1(i),i===null?null:i.stateNode},findFiberByHostInstance:Cu.findFiberByHostInstance||AR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var dd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dd.isDisabled&&dd.supportsFiber)try{uc=dd.inject(RR),Or=dd}catch{}}return In.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kR,In.createPortal=function(i,a){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yp(a))throw Error(n(200));return CR(i,a,null,c)},In.createRoot=function(i,a){if(!Yp(i))throw Error(n(299));var c=!1,p="",x=zx;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=Wp(i,1,!1,null,null,c,!1,p,x),i[ss]=a.current,lu(i.nodeType===8?i.parentNode:i),new qp(a)},In.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=g1(a),i=i===null?null:i.stateNode,i},In.flushSync=function(i){return Oi(i)},In.hydrate=function(i,a,c){if(!ld(a))throw Error(n(200));return cd(null,i,a,!0,c)},In.hydrateRoot=function(i,a,c){if(!Yp(i))throw Error(n(405));var p=c!=null&&c.hydratedSources||null,x=!1,v="",k=zx;if(c!=null&&(c.unstable_strictMode===!0&&(x=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onRecoverableError!==void 0&&(k=c.onRecoverableError)),a=Hx(a,null,i,1,c??null,x,!1,v,k),i[ss]=a.current,lu(i),p)for(i=0;i<p.length;i++)c=p[i],x=c._getVersion,x=x(c._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[c,x]:a.mutableSourceEagerHydrationData.push(c,x);return new ud(a)},In.render=function(i,a,c){if(!ld(a))throw Error(n(200));return cd(null,i,a,!1,c)},In.unmountComponentAtNode=function(i){if(!ld(i))throw Error(n(40));return i._reactRootContainer?(Oi(function(){cd(null,null,i,!1,function(){i._reactRootContainer=null,i[ss]=null})}),!0):!1},In.unstable_batchedUpdates=Fp,In.unstable_renderSubtreeIntoContainer=function(i,a,c,p){if(!ld(c))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return cd(i,a,c,!1,p)},In.version="18.3.1-next-f1338f8080-20240426",In}var Zx;function w2(){if(Zx)return Xp.exports;Zx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Xp.exports=UR(),Xp.exports}var eE;function HR(){if(eE)return hd;eE=1;var e=w2();return hd.createRoot=e.createRoot,hd.hydrateRoot=e.hydrateRoot,hd}var VR=HR();const zR=Ml(VR),WR=20,$R=1e6,bs={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let em=0;function qR(){return em=(em+1)%Number.MAX_VALUE,em.toString()}const tm=new Map,tE=e=>{if(tm.has(e))return;const t=setTimeout(()=>{tm.delete(e),Ju({type:bs.REMOVE_TOAST,toastId:e})},$R);tm.set(e,t)},YR=(e,t)=>{switch(t.type){case bs.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,WR)};case bs.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case bs.DISMISS_TOAST:{const{toastId:n}=t;return n?tE(n):e.toasts.forEach(r=>{tE(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case bs.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ld=[];let Dd={toasts:[]};function Ju(e){Dd=YR(Dd,e),Ld.forEach(t=>{t(Dd)})}function KR({...e}){const t=qR(),n=s=>Ju({type:bs.UPDATE_TOAST,toast:{...s,id:t}}),r=()=>Ju({type:bs.DISMISS_TOAST,toastId:t});return Ju({type:bs.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function QR(){const[e,t]=C.useState(Dd);return C.useEffect(()=>(Ld.push(t),()=>{const n=Ld.indexOf(t);n>-1&&Ld.splice(n,1)}),[e]),{...e,toast:KR,dismiss:n=>Ju({type:bs.DISMISS_TOAST,toastId:n})}}function S2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=S2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _2(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=S2(e))&&(r&&(r+=" "),r+=t);return r}const nE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rE=_2,_g=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return rE(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,u=Object.keys(s).map(f=>{const h=n==null?void 0:n[f],m=o==null?void 0:o[f];if(h===null)return null;const b=nE(h)||nE(m);return s[f][b]}),l=n&&Object.entries(n).reduce((f,h)=>{let[m,b]=h;return b===void 0||(f[m]=b),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,h)=>{let{class:m,className:b,...E}=h;return Object.entries(E).every(_=>{let[w,A]=_;return Array.isArray(A)?A.includes({...o,...l}[w]):{...o,...l}[w]===A})?[...f,m,b]:f},[]);return rE(e,u,d,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.475.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const GR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),C2=(...e)=>
vendor: 5,050 bytes, lines 45-120
45e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.475.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var XR={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"};/** 51 * @license lucide-react v0.475.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const JR=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:u,...l},d)=>C.createElement("svg",{ref:d,...XR,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:C2("lucide",s),...l},[...u.map(([f,h])=>C.createElement(f,h)),...Array.isArray(o)?o:[o]]));/** 56 * @license lucide-react v0.475.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const gt=(e,t)=>{const n=C.forwardRef(({className:r,...s},o)=>C.createElement(JR,{ref:o,iconNode:t,className:C2(`lucide-${GR(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.475.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const ZR=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],vs=gt("ArrowLeft",ZR);/** 66 * @license lucide-react v0.475.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const eP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Cg=gt("ArrowRight",eP);/** 71 * @license lucide-react v0.475.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const tP=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Md=gt("ArrowUpRight",tP);/** 76 * @license lucide-react v0.475.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const nP=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],rP=gt("ChartColumn",nP);/** 81 * @license lucide-react v0.475.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const sP=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ag=gt("Check",sP);/** 86 * @license lucide-react v0.475.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const iP=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ng=gt("ChevronDown",iP);/** 91 * @license lucide-react v0.475.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const oP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],aP=gt("ChevronUp",oP);/** 96 * @license lucide-react v0.475.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const uP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],lP=gt("CircleAlert",uP);/** 101 * @license lucide-react v0.475.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const cP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Bd=gt("CircleCheck",cP);/** 106 * @license lucide-react v0.475.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const dP=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],s0=gt("Download",dP);/** 111 * @license lucide-react v0.475.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const fP=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],A2=gt("Facebook",fP);/** 116 * @license lucide-react v0.475.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const hP=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],pP=gt("FileText",hP);
120/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const mP=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],N2=gt("Linkedin",mP);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const gP=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],k2=gt("LoaderCircle",gP);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const yP=[["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"}]],bP=gt("Mail",yP);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const xP=[["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"}]],EP=gt("Menu",xP);/** 141 * @license lucide-react v0.475.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const vP=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],TP=gt("Pen",vP);/** 146 * @license lucide-react v0.475.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const wP=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],SP=gt("Save",wP);/** 151 * @license lucide-react v0.475.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const _P=[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]],CP=gt("Store",_P);/** 156 * @license lucide-react v0.475.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const AP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],NP=gt("Target",AP);/** 161 * @license lucide-react v0.475.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const kP=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],R2=gt("TrendingUp",kP);/** 166 * @license lucide-react v0.475.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const RP=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],P2=gt("Twitter",RP);/** 171 * @license lucide-react v0.475.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const PP=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],IP=gt("Upload",PP);/** 176 * @license lucide-react v0.475.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const OP=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],LP=gt("Users",OP);/** 181 * @license lucide-react v0.475.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const DP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,020 bytes, lines 185-190
185],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kg=gt("X",DP);/** 186 * @license lucide-react v0.475.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const MP=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],BP=gt("Zap",MP),Rg="-",FP=e=>{const t=UP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{const l=u.split(Rg);return l[0]===""&&l.length!==1&&l.shift(),I2(l,t)||jP(u)},getConflictingClassGroupIds:(u,l)=>{const d=n[u]||[];return l&&r[u]?[...d,...r[u]]:d}}},I2=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?I2(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Rg);return(u=t.validators.find(({validator:l})=>l(o)))==null?void 0:u.classGroupId},sE=/^\[(.+)\]$/,jP=e=>{if(sE.test(e)){const t=sE.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},UP=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const s in n)i0(n[s],r,s,t);return r},i0=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:iE(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(HP(s)){i0(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,u])=>{i0(u,iE(t,o),n,r)})})},iE=(e,t)=>{let n=e;return t.split(Rg).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},HP=e=>e.isThemeGetter,VP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,u)=>{n.set(o,u),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let u=n.get(o);if(u!==void 0)return u;if((u=r.get(o))!==void 0)return s(o,u),u},set(o,u){n.has(o)?n.set(o,u):s(o,u)}}},o0="!",a0=":",zP=a0.length,WP=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const o=[];let u=0,l=0,d=0,f;for(let _=0;_<s.length;_++){let w=s[_];if(u===0&&l===0){if(w===a0){o.push(s.slice(d,_)),d=_+zP;continue}if(w==="/"){f=_;continue}}w==="["?u++:w==="]"?u--:w==="("?l++:w===")"&&l--}const h=o.length===0?s:s.substring(d),m=$P(h),b=m!==h,E=f&&f>d?f-d:void 0;return{modifiers:o,hasImportantModifier:b,baseClassName:m,maybePostfixModifierPosition:E}};if(t){const s=t+a0,o=r;r=u=>u.startsWith(s)?o(u.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(n){const s=r;r=o=>n({className:o,parseClassName:s})}return r},$P=e=>e.endsWith(o0)?e.substring(0,e.length-1):e.startsWith(o0)?e.substring(1):e,qP=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const s=[];let o=[];return r.forEach(u=>{u[0]==="["||t[u]?(s.push(...o.sort(),u),o=[]):o.push(u)}),s.push(...o.sort()),s}},YP=e=>({cache:VP(e.cacheSize),parseClassName:WP(e),sortModifiers:qP(e),...FP(e)}),KP=/\s+/,QP=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:o}=t,u=[],l=e.trim().split(KP);let d="";for(let f=l.length-1;f>=0;f-=1){const h=l[f],{isExternal:m,modifiers:b,hasImportantModifier:E,baseClassName:_,maybePostfixModifierPosition:w}=n(h);if(m){d=h+(d.length>0?" "+d:d);continue}let A=!!w,T=r(A?_.substring(0,w):_);if(!T){if(!A){d=h+(d.length>0?" "+d:d);continue}if(T=r(_),!T){d=h+(d.length>0?" "+d:d);continue}A=!1}const N=o(b).join(":"),S=E?N+o0:N,R=S+T;if(u.includes(R))continue;u.push(R);const D=s(T,A);for(let M=0;M<D.length;++M){const W=D[M];u.push(S+W)}d=h+(d.length>0?" "+d:d)}return d};function GP(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=O2(t))&&(r&&(r+=" "),r+=n);return r}const O2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=O2(e[r]))&&(n&&(n+=" "),n+=t);return n};function XP(e,...t){let n,r,s,o=u;function u(d){const f=t.reduce((h,m)=>m(h),e());return n=YP(f),r=n.cache.get,s=n.cache.set,o=l,l(d)}function l(d){const f=r(d);if(f)return f;const h=QP(d,n);return s(d,h),h}return function(){return o(GP.apply(null,arguments))}}const Ht=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},L2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,D2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,JP=/^\d+\/\d+$/,ZP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eI=/\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$/,tI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yo=e=>JP.test(e),Ye=e=>!!e&&!Number.isNaN(Number(e)),qs=e=>!!e&&Number.isInteger(Number(e)),nm=e=>e.endsWith("%")&&Ye(e.slice(0,-1)),fs=e=>ZP.test(e),sI=()=>!0,iI=e=>eI.test(e)&&!tI.test(e),M2=()=>!1,oI=e=>nI.test(e),aI=e=>rI.test(e),uI=e=>!Ae(e)&&!Ne(e),lI=e=>ka(e,j2,M2),Ae=e=>L2.test(e),Bi=e=>
vendor: 4,165 bytes, line 190
190ka(e,U2,iI),rm=e=>ka(e,pI,Ye),oE=e=>ka(e,B2,M2),cI=e=>ka(e,F2,aI),pd=e=>ka(e,H2,oI),Ne=e=>D2.test(e),Nu=e=>Ra(e,U2),dI=e=>Ra(e,mI),aE=e=>Ra(e,B2),fI=e=>Ra(e,j2),hI=e=>Ra(e,F2),md=e=>Ra(e,H2,!0),ka=(e,t,n)=>{const r=L2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ra=(e,t,n=!1)=>{const r=D2.exec(e);return r?r[1]?t(r[1]):n:!1},B2=e=>e==="position"||e==="percentage",F2=e=>e==="image"||e==="url",j2=e=>e==="length"||e==="size"||e==="bg-size",U2=e=>e==="length",pI=e=>e==="number",mI=e=>e==="family-name",H2=e=>e==="shadow",gI=()=>{const e=Ht("color"),t=Ht("font"),n=Ht("text"),r=Ht("font-weight"),s=Ht("tracking"),o=Ht("leading"),u=Ht("breakpoint"),l=Ht("container"),d=Ht("spacing"),f=Ht("radius"),h=Ht("shadow"),m=Ht("inset-shadow"),b=Ht("text-shadow"),E=Ht("drop-shadow"),_=Ht("blur"),w=Ht("perspective"),A=Ht("aspect"),T=Ht("ease"),N=Ht("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...R(),Ne,Ae],M=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],H=()=>[Ne,Ae,d],se=()=>[Yo,"full","auto",...H()],J=()=>[qs,"none","subgrid",Ne,Ae],ee=()=>["auto",{span:["full",qs,Ne,Ae]},qs,Ne,Ae],oe=()=>[qs,"auto",Ne,Ae],ie=()=>["auto","min","max","fr",Ne,Ae],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],de=()=>["auto",...H()],ae=()=>[Yo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],$=()=>[e,Ne,Ae],fe=()=>[...R(),aE,oE,{position:[Ne,Ae]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",fI,lI,{size:[Ne,Ae]}],X=()=>[nm,Nu,Bi],O=()=>["","none","full",f,Ne,Ae],Ee=()=>["",Ye,Nu,Bi],Pe=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[Ye,nm,aE,oE],xe=()=>["","none",_,Ne,Ae],Ie=()=>["none",Ye,Ne,Ae],Oe=()=>["none",Ye,Ne,Ae],We=()=>[Ye,Ne,Ae],Fe=()=>[Yo,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fs],breakpoint:[fs],color:[sI],container:[fs],"drop-shadow":[fs],ease:["in","out","in-out"],font:[uI],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fs],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fs],shadow:[fs],spacing:["px",Ye],text:[fs],"text-shadow":[fs],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yo,Ae,Ne,A]}],container:["container"],columns:[{columns:[Ye,Ae,Ne,l]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:D()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:se()}],"inset-x":[{"inset-x":se()}],"inset-y":[{"inset-y":se()}],start:[{start:se()}],end:[{end:se()}],top:[{top:se()}
vendor: 11,205 bytes, line 190
190],right:[{right:se()}],bottom:[{bottom:se()}],left:[{left:se()}],visibility:["visible","invisible","collapse"],z:[{z:[qs,"auto",Ne,Ae]}],basis:[{basis:[Yo,"full","auto",l,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ye,Yo,"auto","initial","none",Ae]}],grow:[{grow:["",Ye,Ne,Ae]}],shrink:[{shrink:["",Ye,Ne,Ae]}],order:[{order:[qs,"first","last","none",Ne,Ae]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:de()}],mx:[{mx:de()}],my:[{my:de()}],ms:[{ms:de()}],me:[{me:de()}],mt:[{mt:de()}],mr:[{mr:de()}],mb:[{mb:de()}],ml:[{ml:de()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],w:[{w:[l,"screen",...ae()]}],"min-w":[{"min-w":[l,"screen","none",...ae()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[u]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh",...ae()]}],"font-size":[{text:["base",n,Nu,Bi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ne,rm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nm,Ae]}],"font-family":[{font:[dI,Ae,t]}],"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:[s,Ne,Ae]}],"line-clamp":[{"line-clamp":[Ye,"none",Ne,rm]}],leading:[{leading:[o,...H()]}],"list-image":[{"list-image":["none",Ne,Ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ne,Ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ye,"from-font","auto",Ne,Bi]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[Ye,"auto",Ne,Ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ne,Ae]}],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",Ne,Ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qs,Ne,Ae],radial:["",Ne,Ae],conic:[qs,Ne,Ae]},hI,cI]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:Ee()}],"border-w-x":[{"border-x":Ee()}],"border-w-y":[{"border-y":Ee()}],"border-w-s":[{"border-s":Ee()}],"border-w-e":[{"border-e":Ee()}],"border-w-t":[{"border-t":Ee()}],"border-w-r":[{"border-r":Ee()}],"border-w-b":[{"border-b":Ee()}],"border-w-l":[{"border-l":Ee()}],"divide-x":[{"divide-x":Ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Pe(),"hidden","none"]}],"divide-style":[{divide:[...Pe(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...Pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ye,Ne,Ae]}],"outline-w":[{outline:["",Ye,Nu,Bi]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",h,md,pd]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",m,md,pd]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[Ye,Bi]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":Ee()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",b,md,pd]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[Ye,Ne,Ae]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"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":[Ye]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[Ne,Ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[Ye]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ne,Ae]}],filter:[{filter:["","none",Ne,Ae]}],blur:[{blur:xe()}],brightness:[{brightness:[Ye,Ne,Ae]}],contrast:[{contrast:[Ye,Ne,Ae]}],"drop-shadow":[{"drop-shadow":["","none",E,md,pd]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",Ye,Ne,Ae]}],"hue-rotate":[{"hue-rotate":[Ye,Ne,Ae]}],invert:[{invert:["",Ye,Ne,Ae]}],saturate:[{saturate:[Ye,Ne,Ae]}],sepia:[{sepia:["",Ye,Ne,Ae]}],"backdrop-filter":[{"backdrop-filter":["","none",Ne,Ae]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[Ye,Ne,Ae]}],"backdrop-contrast":[{"backdrop-contrast":[Ye,Ne,Ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ye,Ne,Ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ye,Ne,Ae]}],"backdrop-invert":[{"backdrop-invert":["",Ye,Ne,Ae]}],"backdrop-opacity":[{"backdrop-opacity":[Ye,Ne,Ae]}],"backdrop-saturate":[{"backdrop-saturate":[Ye,Ne,Ae]}],"backdrop-sepia":[{"backdrop-sepia":["",Ye,Ne,Ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ne,Ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ye,"initial",Ne,Ae]}],ease:[{ease:["linear","initial",T,Ne,Ae]}],delay:[{delay:[Ye,Ne,Ae]}],animate:[{animate:["none",N,Ne,Ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,Ne,Ae]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:Ie()}],"rotate-x":[{"rotate-x":Ie()}],"rotate-y":[{"rotate-y":Ie()}],"rotate-z":[{"rotate-z":Ie()}],scale:[{scale:Oe()}],"scale-x":[{"scale-x":Oe()}],"scale-y":[{"scale-y":Oe()}],"scale-z":[{"scale-z":Oe()}],"scale-3d":["scale-3d"],skew:[{skew:We()}],"skew-x":[{"skew-x":We()}
vendor: 7,086 bytes, line 190
190],"skew-y":[{"skew-y":We()}],transform:[{transform:[Ne,Ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fe()}],"translate-x":[{"translate-x":Fe()}],"translate-y":[{"translate-y":Fe()}],"translate-z":[{"translate-z":Fe()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"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-in","zoom-out",Ne,Ae]}],"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":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ne,Ae]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[Ye,Nu,Bi,rm]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},yI=XP(gI);function sn(...e){return yI(_2(e))}const V2=C.forwardRef(({...e},t)=>g.jsx("div",{ref:t,className:"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}));V2.displayName="ToastProvider";const z2=C.forwardRef(({...e},t)=>g.jsx("div",{ref:t,className:"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}));z2.displayName="ToastViewport";const bI=_g("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"}}),W2=C.forwardRef(({className:e,variant:t,...n},r)=>g.jsx("div",{ref:r,className:sn(bI({variant:t}),e),...n}));W2.displayName="Toast";const xI=C.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:sn("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}));xI.displayName="ToastAction";const $2=C.forwardRef(({className:e,...t},n)=>g.jsx("button",{ref:n,className:sn("absolute right-2 top-2 rounded-md p-1 text-foreground
190/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:g.jsx(kg,{className:"h-4 w-4"})}));$2.displayName="ToastClose";const q2=C.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:sn("text-sm font-semibold",e),...t}));q2.displayName="ToastTitle";const Y2=C.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:sn("text-sm opacity-90",e),...t}));Y2.displayName="ToastDescription";function EI(){const{toasts:e}=QR();return g.jsxs(V2,{children:[e.map(function({id:t,title:n,description:r,action:s,...o}){return g.jsxs(W2,{...o,children:[g.jsxs("div",{className:"grid gap-1",children:[n&&g.jsx(q2,{children:n}),r&&g.jsx(Y2,{children:r})]}),s,g.jsx($2,{})]},t)}),g.jsx(z2,{})]})}var Bl=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(){}},vI={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ei,Tg,f2,TI=(f2=class{constructor(){Be(this,ei,vI);Be(this,Tg,!1)}setTimeoutProvider(e){we(this,ei,e)}setTimeout(e,t){return z(this,ei).setTimeout(e,t)}clearTimeout(e){z(this,ei).clearTimeout(e)}setInterval(e,t){return z(this,ei).setInterval(e,t)}clearInterval(e){z(this,ei).clearInterval(e)}},ei=new WeakMap,Tg=new WeakMap,f2),zi=new TI;function wI(e){setTimeout(e,0)}var io=typeof window>"u"||"Deno"in globalThis;function Mn(){}function SI(e,t){return typeof e=="function"?e(t):e}function u0(e){return typeof e=="number"&&e>=0&&e!==1/0}function K2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function di(e,t){return typeof e=="function"?e(t):e}function cr(e,t){return typeof e=="function"?e(t):e}function uE(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:u,stale:l}=e;if(u){if(r){if(t.queryHash!==Pg(u,t.options))return!1}else if(!ml(t.queryKey,u))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||o&&!o(t))}function lE(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(pl(t.options.mutationKey)!==pl(o))return!1}else if(!ml(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Pg(e,t){return((t==null?void 0:t.queryKeyHashFn)||pl)(e)}function pl(e){return JSON.stringify(e,(t,n)=>c0(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ml(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ml(e[n],t[n])):!1}var _I=Object.prototype.hasOwnProperty;function Q2(e,t){if(e===t)return e;const n=cE(e)&&cE(t);if(!n&&!(c0(e)&&c0(t)))return t;const s=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),u=o.length,l=n?new Array(u):{};let d=0;for(let f=0;f<u;f++){const h=n?f:o[f],m=e[h],b=t[h];if(m===b){l[h]=m,(n?f<s:_I.call(e,h))&&d++;continue}if(m===null||b===null||typeof m!="object"||typeof b!="object"){l[h]=b;continue}const E=Q2(m,b);l[h]=E,E===m&&d++}return s===u&&d===s?e:l}function l0(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function cE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function c0(e){if(!dE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!dE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function dE(e){return Object.prototype.toString.call(e)==="[object Object]"}function CI(e){return new Promise(t=>{zi.setTimeout(t,e)})}function d0(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Q2(e,t):t}function AI(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function NI(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ig=Symbol();function G2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ig?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function kI(e,t){return typeof e=="function"?e(...t):!!e}var Yi,ti,fa,h2,RI=(h2=class extends Bl{constructor(){super();Be(this,Yi);Be(this,ti);Be(this,fa);we(this,fa,t=>{if(!io&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){z(this,ti)||this.setEventListener(z(this,fa))}onUnsubscribe(){var t;this.hasListeners()||((t=z(this,ti))==null||t.call(this),we(this,ti,void 0))}setEventListener(t){var n;we(this,fa,t),(n=z(this,ti))==null||n.call(this),we(this,ti,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){z(this,Yi)!==t&&(we(this,Yi,t),this.onFocus())}onFocus(){const t=this.isFocused();
190this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof z(this,Yi)=="boolean"?z(this,Yi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Yi=new WeakMap,ti=new WeakMap,fa=new WeakMap,h2),Og=new RI;function f0(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var PI=wI;function II(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=PI;const o=l=>{t?e.push(l):s(()=>{n(l)})},u=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(d=>{n(d)})})})};return{batch:l=>{let d;t++;try{d=l()}finally{t--,t||u()}return d},batchCalls:l=>(...d)=>{o(()=>{l(...d)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var nn=II(),ha,ni,pa,p2,OI=(p2=class extends Bl{constructor(){super();Be(this,ha,!0);Be(this,ni);Be(this,pa);we(this,pa,t=>{if(!io&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){z(this,ni)||this.setEventListener(z(this,pa))}onUnsubscribe(){var t;this.hasListeners()||((t=z(this,ni))==null||t.call(this),we(this,ni,void 0))}setEventListener(t){var n;we(this,pa,t),(n=z(this,ni))==null||n.call(this),we(this,ni,t(this.setOnline.bind(this)))}setOnline(t){z(this,ha)!==t&&(we(this,ha,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return z(this,ha)}},ha=new WeakMap,ni=new WeakMap,pa=new WeakMap,p2),of=new OI;function LI(e){return Math.min(1e3*2**e,3e4)}function X2(e){return(e??"online")==="online"?of.isOnline():!0}var h0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function J2(e){let t=!1,n=0,r;const s=f0(),o=()=>s.status!=="pending",u=w=>{var A;if(!o()){const T=new h0(w);b(T),(A=e.onCancel)==null||A.call(e,T)}},l=()=>{t=!0},d=()=>{t=!1},f=()=>Og.isFocused()&&(e.networkMode==="always"||of.isOnline())&&e.canRun(),h=()=>X2(e.networkMode)&&e.canRun(),m=w=>{o()||(r==null||r(),s.resolve(w))},b=w=>{o()||(r==null||r(),s.reject(w))},E=()=>new Promise(w=>{var A;r=T=>{(o()||f())&&w(T)},(A=e.onPause)==null||A.call(e)}).then(()=>{var w;r=void 0,o()||(w=e.onContinue)==null||w.call(e)}),_=()=>{if(o())return;let w;const A=n===0?e.initialPromise:void 0;try{w=A??e.fn()}catch(T){w=Promise.reject(T)}Promise.resolve(w).then(m).catch(T=>{var M;if(o())return;const N=e.retry??(io?0:3),S=e.retryDelay??LI,R=typeof S=="function"?S(n,T):S,D=N===!0||typeof N=="number"&&n<N||typeof N=="function"&&N(n,T);
vendor: 5,360 bytes, line 190
190if(t||!D){b(T);return}n++,(M=e.onFail)==null||M.call(e,n,T),CI(R).then(()=>f()?void 0:E()).then(()=>{t?b(T):_()})})};return{promise:s,status:()=>s.status,cancel:u,continue:()=>(r==null||r(),s),cancelRetry:l,continueRetry:d,canStart:h,start:()=>(h()?_():E().then(_),s)}}var Ki,m2,Z2=(m2=class{constructor(){Be(this,Ki)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),u0(this.gcTime)&&we(this,Ki,zi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(io?1/0:300*1e3))}clearGcTimeout(){z(this,Ki)&&(zi.clearTimeout(z(this,Ki)),we(this,Ki,void 0))}},Ki=new WeakMap,m2),Qi,ma,lr,Gi,qt,Pl,Xi,Sr,hs,g2,DI=(g2=class extends Z2{constructor(t){super();Be(this,Sr);Be(this,Qi);Be(this,ma);Be(this,lr);Be(this,Gi);Be(this,qt);Be(this,Pl);Be(this,Xi);we(this,Xi,!1),we(this,Pl,t.defaultOptions),this.setOptions(t.options),this.observers=[],we(this,Gi,t.client),we(this,lr,z(this,Gi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,we(this,Qi,fE(this.options)),this.state=t.state??z(this,Qi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=z(this,qt))==null?void 0:t.promise}setOptions(t){if(this.options={...z(this,Pl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=fE(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),we(this,Qi,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&z(this,lr).remove(this)}setData(t,n){const r=d0(this.state.data,t,this.options);return Xe(this,Sr,hs).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Xe(this,Sr,hs).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=z(this,qt))==null?void 0:r.promise;return(s=z(this,qt))==null||s.cancel(t),n?n.then(Mn).catch(Mn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(z(this,Qi))}isActive(){return this.observers.some(t=>cr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ig||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>di(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!K2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=z(this,qt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=z(this,qt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),z(this,lr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(z(this,qt)&&(z(this,Xi)?z(this,qt).cancel({revert:!0}):z(this,qt).cancelRetry()),this.scheduleGc()),z(this,lr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Xe(this,Sr,hs).call(this,{type:"invalidate"})}async fetch(t,n){var d,f,h,m,b,E,_,w,A,T,N,S;if(this.state.fetchStatus!=="idle"&&((d=z(this,qt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(z(this,qt))return z(this,qt).continueRetry(),z(this,qt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const R=this.observers.find(D=>D.options.queryFn);R&&this.setOptions(R.options)}const r=new AbortController,s=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(we(this,Xi,!0),r.signal)})},o=()=>{const R=G2(this.options,n),M=(()=>{const W={client:z(this,Gi),queryKey:this.queryKey,meta:this.meta};return s(W),W})();return we(this,Xi,!1),this.options.persister?this.options.persister(R,M,this):R(M)},l=(()=>{const R={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:z(this,Gi),state:this.state,fetchFn:o};return s(R),R})();(f=this.options.behavior)==null||f.onFetch(l,this),we(this,ma,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=l.fetchOptions)==null?void 0:h.meta))&&Xe(this,Sr,hs).call(this,{type:"fetch",meta:(m=l.fetchOptions)==null?void 0:m.meta}),we(this,qt,J2({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:R=>{R instanceof h0&&R.revert&&this.setState({...z(this,ma),fetchStatus:"idle"}),r.abort()},onFail:(R,D)=>{Xe(this,Sr,hs).call(this,{type:"failed",failureCount:R,error:D})},onPause:()=>{Xe(this,Sr,hs).call(this,{type:"pause"})},onContinue:()=>{Xe(this,Sr,hs).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const R=await z(this,qt).start();if(R===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(R),(E=(b=z(this,lr).config).onSuccess)==null||E.call(b,R,this),(w=(_=z
190(this,lr).config).onSettled)==null||w.call(_,R,this.state.error,this),R}catch(R){if(R instanceof h0){if(R.silent)return z(this,qt).promise;if(R.revert){if(this.state.data===void 0)throw R;return this.state.data}}throw Xe(this,Sr,hs).call(this,{type:"error",error:R}),(T=(A=z(this,lr).config).onError)==null||T.call(A,R,this),(S=(N=z(this,lr).config).onSettled)==null||S.call(N,this.state.data,R,this),R}finally{this.scheduleGc()}}},Qi=new WeakMap,ma=new WeakMap,lr=new WeakMap,Gi=new WeakMap,qt=new WeakMap,Pl=new WeakMap,Xi=new WeakMap,Sr=new WeakSet,hs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...eS(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return we(this,ma,t.manual?s:void 0),s;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),nn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),z(this,lr).notify({query:this,type:"updated",action:t})})},g2);function eS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:X2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function fE(e){const 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,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Dn,Je,Il,Tn,Ji,ga,ps,ri,Ol,ya,ba,Zi,eo,si,xa,at,zu,p0,m0,g0,y0,b0,x0,E0,tS,y2,MI=(y2=class extends Bl{constructor(t,n){super();Be(this,at);Be(this,Dn);Be(this,Je);Be(this,Il);Be(this,Tn);Be(this,Ji);Be(this,ga);Be(this,ps);Be(this,ri);Be(this,Ol);Be(this,ya);Be(this,ba);Be(this,Zi);Be(this,eo);Be(this,si);Be(this,xa,new Set);this.options=n,we(this,Dn,t),we(this,ri,null),we(this,ps,f0()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(z(this,Je).addObserver(this),hE(z(this,Je),this.options)?Xe(this,at,zu).call(this):this.updateResult(),Xe(this,at,y0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return v0(z(this,Je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return v0(z(this,Je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Xe(this,at,b0).call(this),Xe(this,at,x0).call(this),z(this,Je).removeObserver(this)}setOptions(t){const n=this.options,r=z(this,Je);if(this.options=z(this,Dn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof cr(this.options.enabled,z(this,Je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Xe(this,at,E0).call(this),z(this,Je).setOptions(this.options),n._defaulted&&!l0(this.options,n)&&z(this,Dn).getQueryCache().notify({type:"observerOptionsUpdated",query:z(this,Je),observer:this});const s=this.hasListeners();s&&pE(z(this,Je),r,this.options,n)&&Xe(this,at,zu).call(this),this.updateResult(),s&&(z(this,Je)!==r||cr(this.options.enabled,z(this,Je))!==cr(n.enabled,z(this,Je))||di(this.options.staleTime,z(this,Je))!==di(n.staleTime,z(this,Je)))&&Xe(this,at,p0).call(this);const o=Xe(this,at,m0).call(this);s&&(z(this,Je)!==r||cr(this.options.enabled,z(this,Je))!==cr(n.enabled,z(this,Je))||o!==z(this,si))&&Xe(this,at,g0).call(this,o)}getOptimisticResult(t){const n=z(this,Dn).getQueryCache().build(z(this,Dn),t),r=this.createResult(n,t);return FI(this,r)&&(we(this,Tn,r),we(this,ga,this.options),we(this,Ji,z(this,Je).state)),r}getCurrentResult(){return z(this,Tn)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&!this.options.experimental_prefetchInRender&&z(this,ps).status==="pending"&&z(this,ps).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,s))})}trackProp(t){z(this,xa).add(t)}getCurrentQuery(){return z(this,Je)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=z(this,Dn).defaultQueryOptions(t),r=z(this,Dn).getQueryCache().build(z(this,Dn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Xe(this,at,zu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),z(this,Tn)))}createResult(t,n){var se;const r=z(this,Je),s=this.options,o=z(this,Tn),u=z(this,Ji),l=z(this,ga),f=t!==r?t.state:z(this,Il),{state:h}=t;let m={...h},b=!1,E;if(n._optimisticResults){const J=this.hasListeners(),ee=!J&&hE(t,n),oe=J&&pE(t,r,n,s);(ee||oe)&&(m={...m,...eS(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:_,errorUpdatedAt:w,status:A}=m;E=m.data;let T=!1;if(n.placeholderData!==void 0&&E===void 0&&A==="pending"){let J;o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(J=o.data,T=!0):J=typeof n.placeholderData=="function"?n.placeholderData((se=z(this,ba))==null?void 0:se.state.data,z(this,ba)):n.placeholderData,J!==void 0&&(A="success",E=d0(o==null?void 0:o.data,J,n),b=!0)}if(n.select&&E!==void 0&&!T)if(o&&E===(u==null?void 0:u.data)&&n.select===z(this,Ol))E=z(this,ya);else try{we(this,Ol,n.select),E=n.select(E),E=d0(o==null?void 0:o.data,E,n),we(this,ya,E),we(this,ri,null)}catch(J){we(this,ri,J)}
vendor: 8,860 bytes, line 190
190z(this,ri)&&(_=z(this,ri),E=z(this,ya),w=Date.now(),A="error");const N=m.fetchStatus==="fetching",S=A==="pending",R=A==="error",D=S&&N,M=E!==void 0,H={status:A,fetchStatus:m.fetchStatus,isPending:S,isSuccess:A==="success",isError:R,isInitialLoading:D,isLoading:D,data:E,dataUpdatedAt:m.dataUpdatedAt,error:_,errorUpdatedAt:w,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:N,isRefetching:N&&!S,isLoadingError:R&&!M,isPaused:m.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:R&&M,isStale:Lg(t,n),refetch:this.refetch,promise:z(this,ps),isEnabled:cr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const J=ie=>{H.status==="error"?ie.reject(H.error):H.data!==void 0&&ie.resolve(H.data)},ee=()=>{const ie=we(this,ps,H.promise=f0());J(ie)},oe=z(this,ps);switch(oe.status){case"pending":t.queryHash===r.queryHash&&J(oe);break;case"fulfilled":(H.status==="error"||H.data!==oe.value)&&ee();break;case"rejected":(H.status!=="error"||H.error!==oe.reason)&&ee();break}}return H}updateResult(){const t=z(this,Tn),n=this.createResult(z(this,Je),this.options);if(we(this,Ji,z(this,Je).state),we(this,ga,this.options),z(this,Ji).data!==void 0&&we(this,ba,z(this,Je)),l0(n,t))return;we(this,Tn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!z(this,xa).size)return!0;const u=new Set(o??z(this,xa));return this.options.throwOnError&&u.add("error"),Object.keys(z(this,Tn)).some(l=>{const d=l;return z(this,Tn)[d]!==t[d]&&u.has(d)})};Xe(this,at,tS).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Xe(this,at,y0).call(this)}},Dn=new WeakMap,Je=new WeakMap,Il=new WeakMap,Tn=new WeakMap,Ji=new WeakMap,ga=new WeakMap,ps=new WeakMap,ri=new WeakMap,Ol=new WeakMap,ya=new WeakMap,ba=new WeakMap,Zi=new WeakMap,eo=new WeakMap,si=new WeakMap,xa=new WeakMap,at=new WeakSet,zu=function(t){Xe(this,at,E0).call(this);let n=z(this,Je).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Mn)),n},p0=function(){Xe(this,at,b0).call(this);const t=di(this.options.staleTime,z(this,Je));if(io||z(this,Tn).isStale||!u0(t))return;const r=K2(z(this,Tn).dataUpdatedAt,t)+1;we(this,Zi,zi.setTimeout(()=>{z(this,Tn).isStale||this.updateResult()},r))},m0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(z(this,Je)):this.options.refetchInterval)??!1},g0=function(t){Xe(this,at,x0).call(this),we(this,si,t),!(io||cr(this.options.enabled,z(this,Je))===!1||!u0(z(this,si))||z(this,si)===0)&&we(this,eo,zi.setInterval(()=>{(this.options.refetchIntervalInBackground||Og.isFocused())&&Xe(this,at,zu).call(this)},z(this,si)))},y0=function(){Xe(this,at,p0).call(this),Xe(this,at,g0).call(this,Xe(this,at,m0).call(this))},b0=function(){z(this,Zi)&&(zi.clearTimeout(z(this,Zi)),we(this,Zi,void 0))},x0=function(){z(this,eo)&&(zi.clearInterval(z(this,eo)),we(this,eo,void 0))},E0=function(){const t=z(this,Dn).getQueryCache().build(z(this,Dn),this.options);if(t===z(this,Je))return;const n=z(this,Je);we(this,Je,t),we(this,Il,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},tS=function(t){nn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(z(this,Tn))}),z(this,Dn).getQueryCache().notify({query:z(this,Je),type:"observerResultsUpdated"})})},y2);function BI(e,t){return cr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hE(e,t){return BI(e,t)||e.state.data!==void 0&&v0(e,t,t.refetchOnMount)}function v0(e,t,n){if(cr(t.enabled,e)!==!1&&di(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Lg(e,t)}return!1}function pE(e,t,n,r){return(e!==t||cr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Lg(e,n)}function Lg(e,t){return cr(t.enabled,e)!==!1&&e.isStaleByTime(di(t.staleTime,e))}function FI(e,t){return!l0(e.getCurrentResult(),t)}function mE(e){return{onFetch:(t,n)=>{var h,m,b,E,_;const r=t.options,s=(b=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:b.direction,o=((E=t.state.data)==null?void 0:E.pages)||[],u=((_=t.state.data)==null?void 0:_.pageParams)||[];let l={pages:[],pageParams:[]},d=0;const f=async()=>{let w=!1;const A=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},T=G2(t.options,t.fetchOptions),N=async(S,R,D)=>{if(w)return Promise.reject();if(R==null&&S.pages.length)return Promise.resolve(S);const W=(()=>{const ee={client:t.client,queryKey:t.queryKey,pageParam:R,direction:D?"backward":"forward",meta:t.options.meta};return A(ee),ee})(),H=await T(W),{maxPages:se}=t.options,J=D?NI:AI;return{pages:J(S.pages,H,se),pageParams:J(S.pageParams,R,se)}};if(s&&o.length){const S=s==="backward",R=S?jI:gE,D={pages:o,pageParams:u},M=R(r,D);l=await N(D,M,S)}else{const S=e??o.length;do{const R=d===0?u[0]??r.initialPageParam:gE(r,l);if(d>0&&R==null)break;l=await N(l,R),d++}while(d<S)}return l};t.options.persister?t.fetchFn=()=>{var w,A;return(A=(w=t.options).persister)==null?void 0:A.call(w,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function gE(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function jI(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ll,jr,wn,to,Ur,Ks,b2,UI=(b2=class extends Z2{constructor(t){super();Be(this,Ur);Be(this,Ll);Be(this,jr);Be(this,wn);Be(this,to);we(this,Ll,t.client),this.mutationId=t.mutationId,we(this,wn,t.mutationCache),we(this,jr,[]),this.state=t.state||HI(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){z(this,jr).includes(t)||(z(this,jr).push(t),this.clearGcTimeout(),z(this,wn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){we(this,jr,z(this,jr).filter(n=>n!==t)),this.scheduleGc(),z(this,wn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){z(this,jr).length||(this.state.status==="pending"?this.scheduleGc():z(this,wn).remove(this))}continue(){var t;return((t=z(this,to))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,l,d,f,h,m,b,E,_,w,A,T,N,S,R,D,M,W,H,se;const n=()=>{Xe(this,Ur,Ks).call(this,{type:"continue"})},r={client:z(this,Ll),meta:this.options.meta,mutationKey:this.options.mutationKey};we(this,to,J2({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(J,ee)=>{Xe(this,Ur,Ks).call(this,{type:"failed",failureCount:J,error:ee})},onPause:()=>{Xe(this,Ur,Ks).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>z(this,wn).canRun(this)}));const s=this.state.status==="pending",o=!z(this,to).canStart();try{if(s)n();else{Xe(this,Ur,Ks).call(this,{type:"pending",variables:t,isPaused:o}),await((l=(u=z(this,wn).config).onMutate)==null?void 0:l.call(u,t,this,r));const ee=await((f=(d=this.options).onMutate)==null?void 0:f.call(d,t,r));ee!==this.state.context&&Xe(this,Ur,Ks).call(this,{type:"pending",context:ee,variables:t,isPaused:o})}const J=await z(this,to).start();return await((m=(h=z(this,wn).config).onSuccess)==null?void 0:m.call(h,J,t,this.state.context,this,r)),await((E=(b=this.options).onSuccess)==null?void 0:E.call(b,J,t,this.state.context,r)),await((w=(_=z(this,wn).config).onSettled)==null?void 0:w.call(_,J,null,this.state.variables,this.state.context,this,r)),await((T=(A=this.options).onSettled)==null?void 0:T.call(A,J,null,t,this.state.context,r)),Xe(this,Ur,Ks).call(this,{type:"success",data:J}),J}catch(J){try{throw await((S=(N=z(this,wn).config).onError)==null?void 0:S.call(N,J,t,this.state.context,this,r)),await((D=(R=this.options).onError)==null?void 0:D.call(R,J,t,this.state.context,r)),await((W=(M=z(this,wn).config).onSettled)==null?void 0:W.call(M,void 0,J,this.state.variables,this.state.context,this,r)),await((se=(H=this.options).onSettled)==null?void 0:se.call(H,void 0,J,t,this.state.context,r)),J}finally{Xe(this,Ur,Ks).call(this,{type:"error",error:J})}}finally{z(this,wn).runNext(this)}}},Ll=new WeakMap,jr=new WeakMap,wn=new WeakMap,to=new WeakMap,Ur=new WeakSet,Ks=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
190case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),nn.batch(()=>{z(this,jr).forEach(r=>{r.onMutationUpdate(t)}),z(this,wn).notify({mutation:this,type:"updated",action:t})})},b2);function HI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ms,_r,Dl,x2,VI=(x2=class extends Bl{constructor(t={}){super();Be(this,ms);Be(this,_r);Be(this,Dl);this.config=t,we(this,ms,new Set),we(this,_r,new Map),we(this,Dl,0)}build(t,n,r){const s=new UI({client:t,mutationCache:this,mutationId:++fd(this,Dl)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){z(this,ms).add(t);const n=gd(t);if(typeof n=="string"){const r=z(this,_r).get(n);r?r.push(t):z(this,_r).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(z(this,ms).delete(t)){const n=gd(t);if(typeof n=="string"){const r=z(this,_r).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&z(this,_r).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=gd(t);if(typeof n=="string"){const r=z(this,_r).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=gd(t);if(typeof n=="string"){const s=(r=z(this,_r).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){nn.batch(()=>{z(this,ms).forEach(t=>{this.notify({type:"removed",mutation:t})}),z(this,ms).clear(),z(this,_r).clear()})}getAll(){return Array.from(z(this,ms))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>lE(n,r))}findAll(t={}){return this.getAll().filter(n=>lE(t,n))}notify(t){nn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return nn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Mn))))}},ms=new WeakMap,_r=new WeakMap,Dl=new WeakMap,x2);function gd(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Hr,E2,zI=(E2=class extends Bl{constructor(t={}){super();Be(this,Hr);this.config=t,we(this,Hr,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??Pg(s,n);let u=this.get(o);return u||(u=new DI({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(u)),u}add(t){z(this,Hr).has(t.queryHash)||(z(this,Hr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=z(this,Hr).get(t.queryHash);n&&(t.destroy(),n===t&&z(this,Hr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){nn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return z(this,Hr).get(t)}getAll(){return[...z(this,Hr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>uE(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>uE(t,r)):n}notify(t){nn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){nn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){nn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Hr=new WeakMap,E2),Ct,ii,oi,Ea,va,ai,Ta,wa,v2,WI=(v2=class{constructor(e={}){Be(this,Ct);Be(this,ii);Be(this,oi);Be(this,Ea);Be(this,va);Be(this,ai);Be(this,Ta);Be(this,wa);we(this,Ct,e.queryCache||new zI),we(this,ii,e.mutationCache||new VI),we(this,oi,e.defaultOptions||{}),we(this,Ea,new Map),we(this,va,new Map),we(this,ai,0)}mount(){fd(this,ai)._++,z(this,ai)===1&&(we(this,Ta,Og.subscribe(async e=>{e&&(await this.resumePausedMutations(),z(this,Ct).onFocus())})),we(this,wa,of.subscribe(async e=>{e&&(await this.resumePausedMutations(),z(this,Ct).onOnline())})))}unmount(){var e,t;fd(this,ai)._--,z(this,ai)===0&&((e=z(this,Ta))==null||e.call(this),we(this,Ta,void 0),(t=z(this,wa))==null||t.call(this),we(this,wa,void 0))}isFetching(e){return z(this,Ct).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return z(this,ii).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=z(this,Ct).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=z(this,Ct).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(di(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return z(this,Ct).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=z(this,Ct).get(r.queryHash),o=s==null?void 0:s.state.data,u=SI(t,o);if(u!==void 0)return z(this,Ct).build(this,r).setData(u,{...n,manual:!0})}
190setQueriesData(e,t,n){return nn.batch(()=>z(this,Ct).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=z(this,Ct).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=z(this,Ct);nn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=z(this,Ct);return nn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=nn.batch(()=>z(this,Ct).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Mn).catch(Mn)}invalidateQueries(e,t={}){return nn.batch(()=>(z(this,Ct).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=nn.batch(()=>z(this,Ct).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(Mn)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Mn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=z(this,Ct).build(this,t);return n.isStaleByTime(di(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Mn).catch(Mn)}fetchInfiniteQuery(e){return e.behavior=mE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Mn).catch(Mn)}ensureInfiniteQueryData(e){return e.behavior=mE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return of.isOnline()?z(this,ii).resumePausedMutations():Promise.resolve()}getQueryCache(){return z(this,Ct)}getMutationCache(){return z(this,ii)}getDefaultOptions(){return z(this,oi)}setDefaultOptions(e){we(this,oi,e)}setQueryDefaults(e,t){z(this,Ea).set(pl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...z(this,Ea).values()],n={};return t.forEach(r=>{ml(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){z(this,va).set(pl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...z(this,va).values()],n={};return t.forEach(r=>{ml(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...z(this,oi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pg(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===Ig&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...z(this,oi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){z(this,Ct).clear(),z(this,ii).clear()}},Ct=new WeakMap,ii=new WeakMap,oi=new WeakMap,Ea=new WeakMap,va=new WeakMap,ai=new WeakMap,Ta=new WeakMap,wa=new WeakMap,v2),nS=C.createContext(void 0),Dg=e=>{const t=C.useContext(nS);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},$I=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(nS.Provider,{value:e,children:t})),rS=C.createContext(!1),qI=()=>C.useContext(rS);rS.Provider;function YI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var KI=C.createContext(YI()),QI=()=>C.useContext(KI),GI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},XI=e=>{C.useEffect(()=>{e.clearReset()},[e])},JI=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||kI(n,[e.error,r])),ZI=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},eO=(e,t)=>e.isLoading&&e.isFetching&&!t,tO=(e,t)=>
190(e==null?void 0:e.suspense)&&t.isPending,yE=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function nO(e,t,n){var m,b,E,_,w;const r=qI(),s=QI(),o=Dg(),u=o.defaultQueryOptions(e);(b=(m=o.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||b.call(m,u),u._optimisticResults=r?"isRestoring":"optimistic",ZI(u),GI(u,s),XI(s);const l=!o.getQueryCache().get(u.queryHash),[d]=C.useState(()=>new t(o,u)),f=d.getOptimisticResult(u),h=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(A=>{const T=h?d.subscribe(nn.batchCalls(A)):Mn;return d.updateResult(),T},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),C.useEffect(()=>{d.setOptions(u)},[u,d]),tO(u,f))throw yE(u,d,s);if(JI({result:f,errorResetBoundary:s,throwOnError:u.throwOnError,query:o.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw f.error;if((_=(E=o.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||_.call(E,u,f),u.experimental_prefetchInRender&&!io&&eO(f,r)){const A=l?yE(u,d,s):(w=o.getQueryCache().get(u.queryHash))==null?void 0:w.promise;A==null||A.catch(Mn).finally(()=>{d.updateResult()})}return u.notifyOnChangeProps?f:d.trackResult(f)}function Fl(e,t){return nO(e,MI)}const rO=new WI({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var jl=w2();const sO=Ml(jl);/** 191 * @remix-run/router v1.23.0 192 * 193 * Copyright (c) Remix Software Inc. 194 * 195 * This source code is licensed under the MIT license found in the 196 * LICENSE.md file in the root directory of this source tree. 197 * 198 * @license MIT 199 */function gl(){return gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gl.apply(this,arguments)}var ui;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ui||(ui={}));const bE="popstate";function iO(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:u,hash:l}=r.location;return T0("",{pathname:o,search:u,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:af(s)}return aO(t,n,null,e)}function Ft(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function oO(){return Math.random().toString(36).substr(2,8)}function xE(e,t){return{usr:e.state,key:e.key,idx:t}}function T0(e,t,n,r){return n===void 0&&(n=null),gl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Pa(t):t,{state:n,key:t&&t.key||r||oO()})}function af(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 Pa(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 aO(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,u=s.history,l=ui.Pop,d=null,f=h();f==null&&(f=0,u.replaceState(gl({},u.state,{idx:f}),""));function h(){return(u.state||{idx:null}).idx}function m(){l=ui.Pop;let A=h(),T=A==null?null:A-f;f=A,d&&d({action:l,location:w.location,delta:T})}function b(A,T){l=ui.Push;let N=T0(w.location,A,T);f=h()+1;let S=xE(N,f),R=w.createHref(N);try{u.pushState(S,"",R)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;s.location.assign(R)}o&&d&&d({action:l,location:w.location,delta:1})}function E(A,T){l=ui.Replace;let N=T0(w.location,A,T);f=h();let S=xE(N,f),R=w.createHref(N);u.replaceState(S,"",R),o&&d&&d({action:l,location:w.location,delta:0})}function _(A){let T=s.location.origin!=="null"?s.location.origin:s.location.href,N=typeof A=="string"?A:af(A);return N=N.replace(/ $/,"%20"),Ft(T,"No window.location.(origin|href) available to create URL for href: "+N),new URL(N,T)}let w={get action(){return l},get location(){return e(s,u)},listen(A){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(bE,m),d=A,()=>{s.removeEventListener(bE,m),d=null}},createHref(A){return t(s,A)},createURL:_,encodeLocation(A){let T=_(A);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:E,go(A){return u.go(A)}};return w}var EE;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(EE||(EE={}));function uO(e,t,n){return n===void 0&&(n="/"),lO(e,t,n)}function lO(e,t,n,r){let s=typeof t=="string"?Pa(t):t,o=Mg(s.pathname||"/",n);if(o==null)return null;let u=iS(e);cO(u);let l=null;for(let d=0;l==null&&d<u.length;++d){let f=TO(o);l=xO(u[d],f)}return l}function iS(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,u,l)=>{let d={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:u,route:o};d.relativePath.startsWith("/")&&(Ft(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not val
199id. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let f=fi([r,d.relativePath]),h=n.concat(d);o.children&&o.children.length>0&&(Ft(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),iS(o.children,t,h,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:yO(f,o.index),routesMeta:h})};return e.forEach((o,u)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))s(o,u);else for(let d of oS(o.path))s(o,u,d)}),t}function oS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let u=oS(r.join("/")),l=[];return l.push(...u.map(d=>d===""?o:[o,d].join("/"))),s&&l.push(...u),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function cO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dO=/^:[\w-]+$/,fO=3,hO=2,pO=1,mO=10,gO=-2,vE=e=>e==="*";function yO(e,t){let n=e.split("/"),r=n.length;return n.some(vE)&&(r+=gO),t&&(r+=hO),n.filter(s=>!vE(s)).reduce((s,o)=>s+(dO.test(o)?fO:o===""?pO:mO),r)}function bO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function xO(e,t,n){let{routesMeta:r}=e,s={},o="/",u=[];for(let l=0;l<r.length;++l){let d=r[l],f=l===r.length-1,h=o==="/"?t:t.slice(o.length)||"/",m=EO({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},h),b=d.route;if(!m)return null;
vendor: 9,433 bytes, lines 199-208
199Object.assign(s,m.params),u.push({params:s,pathname:fi([o,m.pathname]),pathnameBase:CO(fi([o,m.pathnameBase])),route:b}),m.pathnameBase!=="/"&&(o=fi([o,m.pathnameBase]))}return u}function EO(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=vO(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],u=o.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((f,h,m)=>{let{paramName:b,isOptional:E}=h;if(b==="*"){let w=l[m]||"";u=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const _=l[m];return E&&!_?f[b]=void 0:f[b]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:u,pattern:e}}function vO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sS(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,l,d)=>(r.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function TO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sS(!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 Mg(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)||"/"}function wO(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Pa(e):e;return{pathname:n?n.startsWith("/")?n:SO(n,t):t,search:AO(r),hash:NO(s)}}function SO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function sm(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 _O(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aS(e,t){let n=_O(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function uS(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Pa(e):(s=gl({},e),Ft(!s.pathname||!s.pathname.includes("?"),sm("?","pathname","search",s)),Ft(!s.pathname||!s.pathname.includes("#"),sm("#","pathname","hash",s)),Ft(!s.search||!s.search.includes("#"),sm("#","search","hash",s)));let o=e===""||s.pathname==="",u=o?"/":s.pathname,l;if(u==null)l=n;else{let m=t.length-1;if(!r&&u.startsWith("..")){let b=u.split("/");for(;b[0]==="..";)b.shift(),m-=1;s.pathname=b.join("/")}l=m>=0?t[m]:"/"}let d=wO(s,l),f=u&&u!=="/"&&u.endsWith("/"),h=(o||u===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||h)&&(d.pathname+="/"),d}const fi=e=>e.join("/").replace(/\/\/+/g,"/"),CO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lS=["post","put","patch","delete"];new Set(lS);const RO=["get",...lS];new Set(RO);/** 200 * React Router v6.30.1 201 * 202 * Copyright (c) Remix Software Inc. 203 * 204 * This source code is licensed under the MIT license found in the 205 * LICENSE.md file in the root directory of this source tree. 206 * 207 * @license MIT 208 */function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yl.apply(this,arguments)}const Bg=C.createContext(null),PO=C.createContext(null),mo=C.createContext(null),Nf=C.createContext(null),go=C.createContext({outlet:null,matches:[],isDataRoute:!1}),cS=C.createContext(null);function IO(e,t){let{relative:n}=t===void 0?{}:t;Ul()||Ft(!1);let{basename:r,navigator:s}=C.useContext(mo),{hash:o,pathname:u,search:l}=fS(e,{relative:n}),d=u;return r!=="/"&&(d=u==="/"?r:fi([r,u])),s.createHref({pathname:d,search:l,hash:o})}function Ul(){return C.useContext(Nf)!=null}function yo(){return Ul()||Ft(!1),C.useContext(Nf).location}function dS(e){C.useContext(mo).static||C.useLayoutEffect(e)}function kf(){let{isDataRoute:e}=C.useContext(go);return e?$O():OO()}function OO(){Ul()||Ft(!1);let e=C.useContext(Bg),{basename:t,future:n,navigator:r}=C.useContext(mo),{matches:s}=C.useContext(go),{pathname:o}=yo(),u=JSON.stringify(aS(s,n.v7_relativeSplatPath)),l=C.useRef(!1);return dS(()=>{l.current=!0}),C.useCallback(function(f,h){if(h===void 0&&(h={}),!l.current)return;if(typeof f=="number"){r.go(f);return}let m=uS(f,JSON.parse(u),o,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:fi([t,m.pathname])),(h.replace?r.replace:r.push)(m,h.state,h)},[t,r,u,o,e])}function fS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(mo),{matches:s}=C.useContext(go),{pathname:o}=yo(),u=JSON.stringify(aS(s,r.v7_relativeSplatPath));return C.useMemo(()=>uS(e,JSON.parse(u),o,n==="path"),[e,u,o,n])}function LO(e,t){return DO(e,t)}function DO(e,t,n,r){Ul()||Ft(!1);let{navigator:s}=C.useContext(mo),{matches:o}=C.useContext(go),u=o[o.length-1],l=u?u.params:{};u&&u.pathname;let d=u?u.pathnameBase:"/";u&&u.route;let f=yo(),h;if(t){var m;let A=typeof t=="string"?Pa(t):t;d==="/"||(m=A.pathname)!=null&&m.startsWith(d)||Ft(!1),h=A}else h=f;let b=h.pathname||"/",E=b;if(d!=="/"){let A=d.replace(/^\//,"").split("/");E="/"+b.replace(/^\//,"").split("/").slice(A.length).join("/")}let _=uO(e,{pathname:E}),w=UO(_&&_.map(A=>Object.assign({},A,{params:Object.assign({},l,A.params),pathname:fi([d,s.encodeLocation?s.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?d:fi([d,s.encodeLocation?s.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),o,n,r);return t&&w?C.createElement(Nf.Provider,{value:{location:yl({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:ui.Pop}},w):w}function MO(){let e=WO(),t=kO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:s},n):null,null)}const BO=C.createElement(MO,null);class FO extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(go.Provider,{value:this.props.routeContext},C.createElement(cS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jO(e){let{routeContext:t,match:n,children:r}=e,s=C.useContext(Bg);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(go.Provider,{value:t},r)}function UO(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let u=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let h=u.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);h>=0||Ft(!1),u=u.slice(0,Math.min(u.length,h+1))}let d=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<u.length;h++){let m=u[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=h),m.route.id){let{loaderData:b,errors:E}=n,_=m.route.loader&&b[m.route.id]===void 0&&(!E||E[m.route.id]===void 0);if(m.route.lazy||_){d=!0,f>=0?u=u.slice(0,f+1):u=[u[0]];break}}}return u.reduceRight((h,m,b)=>{let E,_=!1,w=null,A=null;n&&(E=l&&m.route.id?l[m.route.id]:void 0,w=m.route.errorElement||BO,d&&(f<0&&b===0?(qO("route-fallback"),_=!0,A=null):f===b&&(_=!0,A=m.route.hydrateFallbackElement||null)));let T=t.concat(u.slice(0,b+1)),N=()=>{let S;return E?S=w:_?S=A:m.route.Component?S=C.createElement(m.route.Component,null):m.route.element?S=m.route.element:S=h,C.createElement(jO,{match:m,routeContext:{outlet:h,matches:T,isDataRoute:n!=null},children:S})};return n&&(m.route.ErrorBoundary||m.route.errorElement||b===0)?C.createElement(FO,{location:n.location,revalidation:n.revalidation,component:w,error:E,children:N(),routeC
208ontext:{outlet:null,matches:T,isDataRoute:!0}}):N()},null)}var hS=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(hS||{}),pS=(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})(pS||{});function HO(e){let t=C.useContext(Bg);return t||Ft(!1),t}function VO(e){let t=C.useContext(PO);return t||Ft(!1),t}function zO(e){let t=C.useContext(go);return t||Ft(!1),t}function mS(e){let t=zO(),n=t.matches[t.matches.length-1];return n.route.id||Ft(!1),n.route.id}function WO(){var e;let t=C.useContext(cS),n=VO(),r=mS();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $O(){let{router:e}=HO(hS.UseNavigateStable),t=mS(pS.UseNavigateStable),n=C.useRef(!1);return dS(()=>{n.current=!0}),C.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,yl({fromRouteId:t},o)))},[e,t])}const TE={};function qO(e,t,n){TE[e]||(TE[e]=!0)}function YO(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Fd(e){Ft(!1)}function KO(e){let{basename:t="/",children:n=null,location:r,navigationType:s=ui.Pop,navigator:o,static:u=!1,future:l}=e;Ul()&&Ft(!1);let d=t.replace(/^\/*/,"/"),f=C.useMemo(()=>({basename:d,navigator:o,static:u,future:yl({v7_relativeSplatPath:!1},l)}),[d,l,o,u]);typeof r=="string"&&(r=Pa(r));let{pathname:h="/",search:m="",hash:b="",state:E=null,key:_="default"}=r,w=C.useMemo(()=>{let A=Mg(h,d);return A==null?null:{location:{pathname:A,search:m,hash:b,state:E,key:_},navigationType:s}},[d,h,m,b,E,_,s]);return w==null?null:C.createElement(mo.Provider,{value:f},C.createElement(Nf.Provider,{children:n,value:w}))}function QO(e){let{children:t,location:n}=e;return LO(w0(t),n)}new Promise(()=>{});function w0(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,s)=>{if(!C.isValidElement(r))return;let o=[...t,s];if(r.type===C.Fragment){n.push.apply(n,w0(r.props.children,o));return}r.type!==Fd&&Ft(!1),!r.props.index||!r.props.children||Ft(!1);let u={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=w0(r.props.children,o)),n.push(u)}),n}/** 209 * React Router DOM v6.30.1 210 * 211 * Copyright (c) Remix Software Inc. 212 * 213 * This source code is licensed under the MIT license found in the 214 * LICENSE.md file in the root directory of this source tree. 215 * 216 * @license MIT 217 */function S0(){return S0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S0.apply(this,arguments)}function GO(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function XO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function JO(e,t){return e.button===0&&(!t||t==="_self")&&!XO(e)}function _0(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function ZO(e,t){let n=_0(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(o=>{n.append(s,o)})}),n}const e4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],t4="6";try{window.__reactRouterVersion=t4}catch{}const n4="startTransition",wE=Sg[n4];function r4(e){let{basename:t,children:n,future:r,window:s}=e,o=C.useRef();o.current==null&&(o.current=iO({window:s,v5Compat:!0}));let u=o.current,[l,d]=C.useState({action:u.action,location:u.location}),{v7_startTransition:f}=r||{},h=C.useCallback(m=>{f&&wE?wE(()=>d(m)):d(m)},[d,f]);return C.useLayoutEffect(()=>u.listen(h),[u,h]),C.useEffect(()=>YO(r),[r]),C.createElement(KO,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:u,future:r})}const s4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",i4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ct=C.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:o,replace:u,state:l,target:d,to:f,preventScrollReset:h,viewTransition:m}=t,b=GO(t,e4),{basename:E}=C.useContext(mo),_,w=!1;if(typeof f=="string"&&i4.test(f)&&(_=f,s4))try{let S=new URL(window.location.href),R=f.startsWith("//")?new URL(S.protocol+f):new URL(f),D=Mg(R.pathname,E);R.origin===S.origin&&D!=null?f=D+R.search+R.hash:w=!0}catch{}let A=IO(f,{relative:s}),T=o4(f,{replace:u,state:l,target:d,preventScrollReset:h,relative:s,viewTransition:m});function N(S){r&&r(S),S.defaultPrevented||T(S)}return C.createElement("a",S0({},b,{href:_||A,onClick:w||o?r:N,ref:n,target:d}))});var SE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(SE||(SE={}));var _E;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_E||(_E={}));function o4(e,t){let{target:n,replace:r,state:s,preventScrollReset:o,relative:u,viewTransition:l}=t===void 0?{}:t,d=kf(),f=yo(),h=fS(e,{relative:u});return C.useCallback(m=>{if(JO(m,n)){m.preventDefault();let b=r!==void 0?r:af(f)===af(h);d(e,{replace:b,state:s,preventScrollReset:o,relative:u,viewTransition:l})}},[f,d,h,r,s,n,e,o,u,l])}function a4(e){let t=C.useRef(_0(e)),n=C.useRef(!1),r=yo(),s=C.useMemo(()=>ZO(r.search,n.current?null:t.current),[r.search]),o=kf(),u=C.useCallback((l,d)=>{const f=_0(typeof l=="function"?l(s):l);n.current=!0,o("?"+f,d)},[o,s]);return[s,u]}function gS(e,t){return function(){return e.apply(t,arguments)}}const{toString:u4}=Object.prototype,{getPrototypeOf:pi}=Object,{iterator:Hl,toStringTag:yS}=Symbol,bl=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bS=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),xS=(e,t,n)=>e===Object.prototype||!n&&t===null,l4=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);
vendor: 13,070 bytes, lines 217-219
217return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(bS(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},xl=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const s=pi(n);if(xS(n,s,n===e))return!1;if(bl(n,t))return!0;n=s}return!1},c4=(e,t)=>e!=null&&xl(e,t)?e[t]:void 0,d4=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=pi(e);if(t===null&&l4(e))return e;const n=Object.create(null),r=Object.create(null),s=[];let o=e;for(;o!=null&&s.indexOf(o)===-1;){s.push(o);const u=o===e?t:pi(o);if(xS(o,u,o===e))break;const l=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(o));for(const d of l)bS(d)||bl(r,d)||(n[d]=e[d],r[d]=!0);o=u}return n},Fg=(e=>t=>{const n=u4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pr=e=>(e=e.toLowerCase(),t=>Fg(t)===e),Rf=e=>t=>typeof t===e,{isArray:oo}=Array,ao=Rf("undefined");function Ia(e){return e!==null&&!ao(e)&&e.constructor!==null&&!ao(e.constructor)&&jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ES=pr("ArrayBuffer");function f4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ES(e.buffer),t}const h4=Rf("string"),jn=Rf("function"),vS=Rf("number"),Oa=e=>e!==null&&typeof e=="object",p4=e=>e===!0||e===!1,jd=e=>{if(!Oa(e))return!1;const t=pi(e);return(t===null||t===Object.prototype||pi(t)===null)&&!xl(e,yS)&&!xl(e,Hl)},m4=e=>{if(!Oa(e)||Ia(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},g4=pr("Date"),y4=pr("File"),b4=e=>!!(e&&typeof e.uri<"u"),x4=e=>e&&typeof e.getParts<"u",E4=pr("Blob"),v4=pr("FileList"),T4=pr("Set"),w4=e=>Oa(e)&&jn(e.pipe);function S4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const CE=S4(),AE=typeof CE.FormData<"u"?CE.FormData:void 0,_4=e=>{if(!e)return!1;if(AE&&e instanceof AE)return!0;const t=pi(e);if(!t||t===Object.prototype||!jn(e.append))return!1;const n=Fg(e);return n==="formdata"||n==="object"&&jn(e.toString)&&e.toString()==="[object FormData]"},C4=pr("URLSearchParams"),[A4,N4,k4,R4]=["ReadableStream","Request","Response","Headers"].map(pr),P4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),oo(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Ia(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),u=o.length;let l;for(r=0;r<u;r++)l=o[r],t.call(null,e[l],l,e)}}function TS(e,t){if(Ia(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Wi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wS=e=>!ao(e)&&e!==Wi;function C0(...e){const{caseless:t,skipUndefined:n}=wS(this)&&this||{},r={},s=(o,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const l=t&&typeof u=="string"&&TS(r,u)||u,d=bl(r,l)?r[l]:void 0;jd(d)&&jd(o)?r[l]=C0(d,o):jd(o)?r[l]=C0({},o):oo(o)?r[l]=o.slice():(!n||!ao(o))&&(r[l]=o)};for(let o=0,u=e.length;o<u;o++){const l=e[o];if(!l||Ia(l)||(Vl(l,s),typeof l!="object"||oo(l)))continue;const d=Object.getOwnPropertySymbols(l);for(let f=0;f<d.length;f++){const h=d[f];z4.call(l,h)&&s(l[h],h)}}return r}const I4=(e,t,n,{allOwnKeys:r}={})=>(Vl(t,(s,o)=>{n&&jn(s)?Object.defineProperty(e,o,{__proto__:null,value:gS(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),O4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),L4=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},D4=(e,t,n,r)=>{let s,o,u;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)u=s[o],(!r||r(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&pi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},M4=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},B4=e=>{if(!e)return null;if(oo(e))return e;let t=e.length;if(!vS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},F4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pi(Uint8Array)),j4=(e,t)=>{const r=(e&&e[Hl]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},U4=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},H4=pr("HTMLFormElement"),V4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:z4}=Object.prototype,W4=pr("RegExp"),SS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vl(n,(s,o)=>{let u;(u=t(s,o,e))!==!1&&(r[o]=u||s)}),Object.defineProperties(e,r)},$4=e=>{SS(e,(t,n)=>{if(jn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(jn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},q4=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return oo(e)?r(e):r(String(e).split(t)),n},Y4=()=>{},K4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Q4(e){return!!(e&&jn(e.append)&&e[yS]==="FormData"&&e[Hl])}const G4=e=>{const t=new WeakSet,n=r=>{if(Oa(r)){if(t.has(r))return;if(Ia(r))return r;if(!("toJSON"in r)){t.add(r);let s;if(T4(r)){s=[];for(const o of r){const u=n(o);!ao(u)&&s.push(u)}}else s=oo(r)?[]:{},Vl(r,(o,u)=>{const l=n(o);!ao(l)&&(s[u]=l)});return t.delete(r),s}}return r};return n(e)},X4=pr("AsyncFunction"),J4=e=>e&&(Oa(e)||jn(e))&&jn(e.then)&&jn(e.catch),_S=((e,t)=>e?setImmediate:t?((n,r)=>(Wi.addEventListener("message",({source:s,data:o})=>{s===Wi&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Wi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",jn(Wi.postMessage)),Z4=typeof queueMicrotask<"u"?queueMicrotask.bind(Wi):typeof process<"u"&&process.nextTick||_S,CS=e=>e!=null&&jn(e[Hl]),eL=e=>e!=null&&xl(e,Hl)&&CS(e),V={isArray:oo,isArrayBuffer:ES,isBuffer:Ia,isFormData:_4,isArrayBufferView:f4,isString:h4,isNumber:vS,isBoolean:p4,isObject:Oa,isPlainObject:jd,isEmptyObject:m4,isReadableStream:A4,isRequest:N4,isResponse:k4,isHeaders:R4,isUndefined:ao,isDate:g4,isFile:y4,isReactNativeBlob:b4,isReactNative:x4,isBlob:E4,isRegExp:W4,isFunction:jn,isStream:w4,isURLSearchParams:C4,isTypedArray:F4,isFileList:v4,forEach:Vl,merge:C0,extend:I4,trim:P4,stripBOM:O4,inherits:L4,toFlatObject:D4,kindOf:Fg,kindOfTest:pr,endsWith:M4,toArray:B4,forEachEntry:j4,matchAll:U4,isHTMLForm:H4,hasOwnProperty:bl,hasOwnProp:bl,hasOwnInPrototypeChain:xl,getSafeProp:c4,toSafeFlatObject:d4,reduceDescriptors:SS,freezeMethods:$4,toObjectSet:q4,toCamelCase:V4,noop:Y4,toFiniteNumber:K4,findKey:TS,global:Wi,isContextDefined:wS,isSpecCompliantForm:Q4,toJSONObject:G4,isAsyncFn:X4,isThenable:J4,setImmediate:_S,asap:Z4,isIterable:CS,isSafeIterable:eL},tL=V.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"]),nL=e=>{const t={};let n,r,s;return e&&e.split(` 218`).forEach(function(u){s=u.indexOf(":"),n=u.substring(0,s).trim().toLowerCase(),r=u.substring(s+1).trim();const l=V.hasOwnProp(t,n);!n||l&&V.hasOwnProp(tL,n)||(n==="set-cookie"?l?t[n].push(r):t[n]=[r]:t[n]=l?t[n]+", "+r:r)}),t};function rL(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const sL=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),iL=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function jg(e,t){return V.isArray(e)?e.map(n=>jg(n,t)):rL(String(e).replace(t,""))}const oL=e=>jg(e,sL),aL=e=>jg(e,iL);function AS(e){const t=Object.create(null);return V.forEach(e.toJSON(),(n,r)=>{t[r]=aL(n)}),t}const NE=Symbol("internals");function ku(e){return e&&String(e).trim().toLowerCase()}function Ud(e){return e===!1||e==null?e:V.isArray(e)?e.map(Ud):oL(String(e))}function uL(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const lL=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function im(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function cL(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const s=e.charCodeAt(r);if(s===34||s===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function dL(e){const t=Object.create(null),n=String(e);let r=0,s=!1,o=!1;function u(l){const d=im(n.slice(r,l)),f=d.indexOf("=");if(f<1)return;const h=im(d.slice(0,f));if(!lL.test(h))return;const m=h.toLowerCase();if(m==="__proto__"||m==="constructor"||m==="prototype")return;const b=im(d.slice(f+1));t[m]=cL(b)}for(let l=0;l<n.length;l++){const d=n.charCodeAt(l);s?o?o=!1:d===92?o=!0:d===34&&(s=!1):d===34?s=!0:(d===44||d===59)&&(u(l),r=l+1)}return u(n.length),t}const fL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function om(e,t,n,r,s){if(V.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function hL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function pL(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(s,o,u){return this[r].call(this,t,s,o,u)},configurable:!0})})}let gn=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,d,f){const h=ku(d);if(!h)return;const m=V.findKey(s,h);(!m||s[m]===void 0||f===!0||f===void 0&&s[m]!==!1)&&(s[m||d]=Ud(l))}const u=(l,d)=>V.forEach(l,(f,h)=>o(f,h,d));if(V.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(V.isString(t)&&(t=t.trim())&&!fL(t))u(nL(t),n);else if(V.isObject(t)&&V.isSafeIterable(t)){let l=Object.create(null),d,f;for(const h of t){if(!V.isArray(h))throw new TypeError("Object iterator must return a key-value pair");f=h[0],V.hasOwnProp(l,f)?(d=l[f],l[f]=V.isArray(d)?[...d,h[1]]:[d,h[1]]):l[f]=h[1]}u(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ku(t),t){const r=V.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return uL(s);if(V.isFunction(n))return n.call(this,s,r);if(V.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ku(t),t){const r=V.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||om(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(u){if(u=ku(u),u){const l=V.findKey(r,u);l&&(!n||om(r,r[l],l,n))&&(delete r[l],s=!0)}}return V.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||om(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return V.forEach(this,(s,o)=>{const u=V.findKey(r,o);if(u){n[u]=Ud(s),delete n[o];return}const l=t?hL(o):String(o).trim();l!==o&&delete n[o],n[l]=Ud(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return V.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&V.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 219`)}getSetCookie(){const t=this.get("set-cookie");return V.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return dL(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[NE]=this[NE]={accessors:{}}).accessors,s=this.prototype;function o(u){const l=ku(u);r[l]||(pL(s,u),r[l]=!0)}return V.isArray(t)?t.forEach(o):o(t),this}};gn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(gn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});V.freezeMethods(gn);const uf="[REDACTED ****]";function mL(e){if(V.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(V.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function gL(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>
219{if(o===null||typeof o!="object"||V.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof gn&&(o=o.toJSON()),r.push(o);let u;if(V.isArray(o))u=[],o.forEach((l,d)=>{const f=s(l);V.isUndefined(f)||(u[d]=f)});else{if(!V.isPlainObject(o)&&mL(o))return r.pop(),o;u=Object.create(null);for(const[l,d]of Object.entries(o)){const f=n.has(l.toLowerCase())?uf:s(d);V.isUndefined(f)||(u[l]=f)}}return r.pop(),u};return s(e)}function kE(e){try{return String(e)}catch{return""}}function yL(e){return e.errors.map(n=>{try{return n&&n.message?kE(n.message):kE(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let ve=class NS extends Error{static from(t,n,r,s,o,u){let l=t.message;!l&&V.isArray(t.errors)&&t.errors.length&&(l=yL(t));const d=new NS(l,n||t.code,r,s,o);return Object.defineProperty(d,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),d.name=t.name,t.status!=null&&d.status==null&&(d.status=t.status),u&&Object.assign(d,u),d}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&V.hasOwnProp(t,"redact")?t.redact:void 0,r=V.isArray(n)&&n.length>0?gL(t,n):V.toJSONObject(t);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:r,code:this.code,status:this.status}}};ve.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ve.ERR_BAD_OPTION="ERR_BAD_OPTION";ve.ECONNABORTED="ECONNABORTED";ve.ETIMEDOUT="ETIMEDOUT";ve.ECONNREFUSED="ECONNREFUSED";ve.ERR_NETWORK="ERR_NETWORK";ve.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ve.ERR_DEPRECATED="ERR_DEPRECATED";ve.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ve.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ve.ERR_CANCELED="ERR_CANCELED";ve.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ve.ERR_INVALID_URL="ERR_INVALID_URL";ve.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const bL=null,kS=100;function A0(e){return V.isPlainObject(e)||V.isArray(e)}function RS(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function am(e,t,n){return e?e.concat(t).map(function(s,o){return s=RS(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function xL(e){return V.isArray(e)&&!e.some(A0)}const EL=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function Pf(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(N,S)=>{const R=V.getSafeProp(n,N);return V.isUndefined(R)?S:R},s=r("metaTokens",!0),o=r("visitor")||w,u=r("dots",!1),l=r("indexes",!1),d=r("Blob")||typeof Blob<"u"&&Blob,f=r("maxDepth",kS),h=d&&V.isSpecCompliantForm(t),m=[];if(!V.isFunction(o))throw new TypeError("visitor must be a function");function b(N){if(N===null)return"";if(V.isDate(N))return N.toISOString();if(V.isBoolean(N))return N.toString();if(!h&&V.isBlob(N))throw new ve("Blob is not supported. Use a Buffer instead.");if(V.isArrayBuffer(N)||V.isTypedArray(N)){if(h&&typeof d=="function")return new d([N]);throw new ve("Blob is not supported. Use a Buffer instead.",ve.ERR_NOT_SUPPORT)}return N}function E(N){if(N>f)throw new ve("Object is too deeply nested ("+N+" levels). Max depth: "+f,ve.ERR_FORM_DATA_DEPTH_EXCEEDED)}function _(N,S){if(f===1/0)return JSON.stringify(N);const R=[];return JSON.stringify(N,function(M,W){if(!V.isObject(W))return W;for(;R.length&&R[R.length-1]!==this;)R.pop();return R.push(W),E(S+R.length-1),W})}function w(N,S,R){let D=N;if(V.isReactNative(t)&&V.isReactNativeBlob(N))return t.append(am(R,S,u),b(N)),!1;if(N&&!R&&typeof N=="object"){if(V.endsWith(S,"{}"))S=s?S:S.slice(0,-2),N=_(N,1);else if(V.isArray(N)&&xL(N)||(V.isFileList(N)||V.endsWith(S,"[]"))&&(D=V.toArray(N)))return S=RS(S),D.forEach(function(W,H){!(V.isUndefined(W)||W===null)&&t.append(l===!0?am([S],H,u):l===null?S:S+"[]",b(W))}),!1}return A0(N)?!0:(t.append(am(R,S,u),b(N)),!1)}const A=Object.assign(EL,{defaultVisitor:w,convertValue:b,isVisitable:A0});function T(N,S,R=0){if(!V.isUndefined(N)){if(E(R),m.indexOf(N)!==-1)throw new Error("Circular reference detected in "+S.join("."));
219m.push(N),V.forEach(N,function(M,W){(!(V.isUndefined(M)||M===null)&&o.call(t,M,V.isString(W)?W.trim():W,S,A))===!0&&T(M,S?S.concat(W):[W],R+1)}),m.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return T(e),t}function RE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Ug(e,t){this._pairs=[],e&&Pf(e,this,t)}const PS=Ug.prototype;PS.append=function(t,n){this._pairs.push([t,n])};PS.toString=function(t){const n=t?r=>t.call(this,r,RE):RE;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function vL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function IS(e,t,n){if(!t)return e;e=e||"";const r=V.isFunction(n)?{serialize:n}:n,s=V.getSafeProp(r,"encode")||vL,o=V.getSafeProp(r,"serialize");let u;if(o?u=o(t,r):u=V.isURLSearchParams(t)?t.toString():new Ug(t,r).toString(s),u){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}const Ru=Symbol("internals");function OS(e){return e?e.length:0}function PE(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Pu(e,t){const n=e.handlers,r=OS(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(o,u){n[o.index]!==o.handler&&t.handlerEntries.delete(u)}):t.handlerEntries.clear()),t.handlersLength=r}class IE{constructor(){this.handlers=[],this[Ru]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const s={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},o=this[Ru];this.handlers==null&&(this.handlers=[]),Pu(this,o);const u=o.nextId++;return this.handlers.push(s),o.handlerEntries.set(u,{handler:s,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,u}eject(t){const n=this[Ru];Pu(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(PE(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Pu(this,this[Ru]))}forEach(t){const n=this[Ru];Pu(this,n),n.iterationDepth++;try{V.forEach(this.handlers,function(s){s!==null&&t(s)})}finally{--n.iterationDepth||(Pu(this,n),PE(this.handlers),n.handlersLength=OS(this.handlers))}}}const Hg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},TL=typeof URLSearchParams<"u"?URLSearchParams:Ug,wL=typeof FormData<"u"?FormData:null,SL=typeof Blob<"u"?Blob:null,_L={isBrowser:!0,classes:{URLSearchParams:TL,FormData:wL,Blob:SL},protocols:["http","https","file","blob","url","data"]},Vg=typeof window<"u"&&typeof document<"u",N0=typeof navigator=="object"&&navigator||void 0,CL=Vg&&(!N0||["ReactNative","NativeScript","NS"].indexOf(N0.product)<0),AL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",NL=Vg&&window.location.href||"http://localhost",kL=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vg,hasStandardBrowserEnv:CL,hasStandardBrowserWebWorkerEnv:AL,navigator:N0,origin:NL},Symbol.toStringTag,{value:"Module"})),Kt={...kL,..._L};function RL(e,t){return Pf(e,new Kt.classes.URLSearchParams,{visitor:function(n,r,s,o){return Kt.isNode&&V.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const OE=kS;function LS(e){if(e>OE)throw new ve("FormData field is too deeply nested ("+e+" levels). Max depth: "+OE,ve.ERR_FORM_DATA_DEPTH_EXCEEDED)}function PL(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)LS(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function IL(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function DS(e){function t(n,r,s,o){LS(o);let u=n[o++];if(u==="__proto__")return!0;const l=Number.isFinite(+u),d=o>=n.length;return u=!u&&V.isArray(s)?s.length:u,d?(V.hasOwnProp(s,u)?s[u]=V.isArray(s[u])?s[u].concat(r):[s[u],r]:s[u]=r,!l):((!V.hasOwnProp(s,u)||!V.isObject(s[u]))&&(s[u]=[]),t(n,r,s[u],o)&&V.isArray(s[u])&&(s[u]=IL(s[u])),!l)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};
vendor: 11,743 bytes, line 219
219return V.forEachEntry(e,(r,s)=>{t(PL(r),s,n,0)}),n}return null}const MS=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Ko=(e,t)=>e!=null&&V.hasOwnProp(e,t)?e[t]:void 0;function OL(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const zl={transitional:Hg,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=V.isObject(t);if(o&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return s?JSON.stringify(DS(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){const d=Ko(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return RL(t,d).toString();if((l=V.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=Ko(this,"env"),h=f&&f.FormData;return Pf(l?{"files[]":t}:t,h&&new h,d)}}return o||s?(n.setContentType("application/json",!1),OL(t)):t}],transformResponse:[function(t){const n=Ko(this,"transitional")||zl.transitional,r=n&&n.forcedJSONParsing,s=Ko(this,"responseType"),o=s==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(r&&!s||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,Ko(this,"parseReviver"))}catch(d){if(l)throw d.name==="SyntaxError"?ve.from(d,ve.ERR_BAD_RESPONSE,this,null,Ko(this,"response")):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kt.classes.FormData,Blob:Kt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(MS,e=>{zl.headers[e]={}});function um(e,t){const n=this||zl,r=t||n,s=gn.from(r.headers);let o=r.data;return V.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function BS(e){return!!(e&&e.__CANCEL__)}let Wl=class extends ve{constructor(t,n,r){super(t??"canceled",ve.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function FS(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ve("Request failed with status code "+n.status,n.status>=400&&n.status<500?ve.ERR_BAD_REQUEST:ve.ERR_BAD_RESPONSE,n.config,n.request,n))}const LL=/[\t\n\r]/g;function jS(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(LL,"")}function lm(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function DL(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,u;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),h=r[o];u||(u=f),n[s]=d,r[s]=f;let m=o,b=0;for(;m!==s;)b+=n[m++],m=m%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-u<t)return;const E=h&&f-h;return E?Math.round(b*1e3/E):void 0}}function ML(e,t){let n=0,r=1e3/t,s,o;const u=(h,m=Date.now())=>{n=m,s=null,o&&(clearTimeout(o),o=null),e(...h)};return[(...h)=>{const m=Date.now(),b=m-n;b>=r?u(h,m):(s=h,o||(o=setTimeout(()=>{o=null,u(s)},r-b)))},()=>s&&u(s),(...h)=>u(h)]}const lf=(e,t,n=3)=>{let r=0;const s=DL(50,250);return ML(o=>{if(!o||!V.isNumber(o.loaded))return;const u=o.loaded,l=o.lengthComputable?o.total:void 0,d=Math.max(0,l!=null?Math.min(u,l):u),f=Math.max(0,d-r),h=s(f);r=Math.max(r,d);const m={loaded:d,total:l,progress:l?d/l:void 0,bytes:f,rate:h||void 0,estimated:h&&l?(l-d)/h:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(m)},n)},LE=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},DE=(e,t=V.asap)=>(...n)=>t(()=>e(...n)),BL=Kt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Kt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Kt.origin),Kt.navigator&&/(msie|trident)/i.test(Kt.navigator.userAgent)):()=>!0,FL=Kt.hasStandardBrowserEnv?{write(e,t,n,r,s,o,u){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];V.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),V.isString(r)&&l.push(`path=${r}`),V.isString(s)&&l.push(`domain=${s}`),o===!0&&l.push("secure"),V.isString(u)&&l.push(`SameSite=${u}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),s=r.indexOf("=");if(s!==-1&&r.slice(0,s)===e)try{return decodeURIComponent(r.slice(s+1))}catch{return r.slice(s+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function jL(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function UL(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const HL=/^https?:(?!\/\/)/i;function VL(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${uf}`)}function zL(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${uf}@`),n=t.indexOf("#"),s=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${uf}`);return n===-1?s:`${s}#${VL(t.slice(n+1))}`}function ME(e,t){if(typeof e=="string"){const n=jS(e);if(HL.test(n))throw new ve(`Invalid URL ${JSON.stringify(zL(n))}: missing "//" after protocol`,ve.ERR_INVALID_URL,t)}}function US(e,t,n,r){ME(t,r);let s=!jL(t);return e&&(s||n===!1)?(ME(e,r),UL(e,t)):t}const BE=e=>e instanceof gn?{...e}:e,WL=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function uo(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(h,m,b,E){return V.isPlainObject(h)&&V.isPlainObject(m)?V.merge.call({caseless:E},h,m):V.isPlainObject(m)?V.merge({},m):V.isArray(m)?m.slice():m}function s(h,m,b,E){if(V.isUndefined(m)){if(!V.isUndefined(h))return r(void 0,h,b,E)}else return r(h,m,b,E)}function o(h,m){if(!V.isUndefined(m))return r(void 0,m)}function u(h,m){if(V.isUndefined(m)){if(!V.isUndefined(h))return r(void 0,h)}else return r(void 0,m)}function l(h){const m=V.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!V.isUndefined(m))if(V.isPlainObject(m)){if(V.hasOwnProp(m,h))return m[h]}else return;const b=V.hasOwnProp(e,"transitional")?e.transitional:void 0;if(V.isPlainObject(b)&&V.hasOwnProp(b,h))return b[h]}function d(h,m,b){if(V.hasOwnProp(t,b))return r(h,m);if(V.hasOwnProp(e,b))return r(void 0,h)}const f={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutErrorMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:d,headers:(h,m,b)=>s(BE(h),BE(m),b,!0)};return V.forEach(WL({...e,...t}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const b=V.hasOwnProp(f,m)?f[m]:s,E=V.hasOwnProp(e,m)?e[m]:void 0,_=V.hasOwnProp(t,m)?t[m]:void 0,w=b(E,_,m);V.isUndefined(w)&&b!==d||(n[m]=w)}),V.hasOwnProp(t,"validateStatus")&&V.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(V.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const $L=["content-type","content-length"];function qL(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,s])=>{$L.includes(r.toLowerCase())&&e.set(r,s)})}const YL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function HS(e){const t=uo({},e),n=b=>V.hasOwnProp(t,b)?t[b]:void 0,r=n("data");let s=n("withXSRFToken");const o=n("xsrfHeaderName"),u=n("xsrfCookieName");let l=n("headers");const d=n("auth"),f=n("baseURL"),h=n("allowAbsoluteUrls"),m=n("url");if(t.headers=l=gn.from(l),t.url=IS(US(f,m,h,t),n("params"),n("paramsSerializer")),d){const b=V.getSafeProp(d,"username")||"",E=V.getSafeProp(d,"password")||"";try{l.set("Authorization","Basic "+btoa(b+":"+(E?YL(E):"")))}catch(_){throw ve.from(_,ve.ERR_BAD_OPTION_VALUE,e)}}if(V.isFormData(r)){const b=V.getSafeProp(r,"getHeaders");Kt.hasStandardBrowserEnv||Kt.hasStandardBrowserWebWorkerEnv||V.isReactNative(r)?l.setContentType(void 0):V.isFunction(b)&&qL(l,b.call(r),n("formDataHeaderPolicy"))}if(Kt.hasStandardBrowserEnv&&(V.isFunction(s)&&(s=s(t)),s===!0||s==null&&BL(t.url))){const E=o&&u&&FL.read(u);E&&l.set(o,E)}return t}const KL=typeof XMLHttpRequest<"u",QL=KL&&function(e){return new Promise(function(n,r){const s=HS(e);let o=s.data;const u=gn.from(s.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:f}=s,h,m,b,E,_,w;function A(){E&&E(),_&&_(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let T=new XMLHttpRequest;T.open(s.method.toUpperCase(),s.url,!0),T.timeout=s.timeout;function N(R){if(!T)return;if(T.status===0&&(lm(jS(s.url))||lm(Kt.origin))!=="file"&&!(T.responseURL&&T.responseURL.startsWith("file:"))){r(new ve("Request aborted",ve.ECONNABORTED,e,T)),A(),T=null;return}try{R?w&&w(R):_&&_()}catch(H){setTimeout(()=>{throw H})}if(!T)return;const D=gn.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),W={data:!l||l==="text"||l==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:D,config:e,request:T};FS(function(se){n(se),A()},function(se){r(se),A()},W),T=null}"onloadend"in T?T.onloadend=N:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.startsWith("file:"))||setTimeout(N)},T.onabort=function(){T&&(r(new ve("Request aborted",ve.ECONNABORTED,e,T)),A(),T=null)},T.onerror=function(D){const M=D&&D.message?D.message:"Network Error",W=new ve(M,ve.ERR_NETWORK,e,T);W.event=D||null,r(W),A(),T=null},T.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||Hg;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),r(new ve(D,M.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,T)),A(),T=null},o===void 0&&u.setContentType(null),"setRequestHeader"in T&&V.forEach(AS(u),function(D,M){T.setRequestHeader(M,D)}),V.isUndefined(s.withCredentials)||(T.withCredentials=!!s.withCredentials),l&&l!=="json"&&(T.responseType=s.responseType),f&&([b,_,w]=lf(f,!0),T.addEventListener("progress",b)),d&&T.upload&&([m,E]=lf(d),T.upload.addEventListener("progress",m),T.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(h=R=>{T&&(r(!R||R.type?new Wl(null,e,T):R),T.abort(),A(),T=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const S=lm(s.url);if(S&&!Kt.protocols.includes(S)){r(new ve("Unsupported protocol "+S+":",ve.ERR_BAD_REQUEST,e)),A();return}T.send(o||null)})},GL=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const s=function(d){if(!r){r=!0,u();const f=d instanceof Error?d:this.reason;n.abort(f instanceof ve?f:new Wl(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,s(new ve(`timeout of ${t}ms exceeded`,ve.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>
219{if(!r){if(d.aborted){s.call(d);return}d.addEventListener("abort",s,{once:!0})}});const{signal:l}=n;return l.unsubscribe=()=>V.asap(u),l},XL=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},JL=async function*(e,t){for await(const n of ZL(e))yield*XL(n,t)},ZL=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},FE=(e,t,n,r)=>{const s=JL(e,t);let o=0,u,l=d=>{u||(u=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:h}=await s.next();if(f){l(),d.close();return}let m=h.byteLength;if(n){let b=o+=m;n(b)}d.enqueue(new Uint8Array(h))}catch(f){throw l(f),f}},cancel(d){return l(d),s.return()}},{highWaterMark:2})},jE=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,VS=(e,t,n)=>t+2<n&&jE(e.charCodeAt(t+1))&&jE(e.charCodeAt(t+2)),UE=e=>e<=57?e-48:(e&223)-55,e6=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,t6=e=>e===9||e===10||e===12||e===13||e===32,n6=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},r6=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},s6=e=>{const t=e.length;let n=0,r=0,s=!1;for(let o=0;o<t;o++){let u=e.charCodeAt(o);if(u===37&&VS(e,o,t)&&(u=UE(e.charCodeAt(o+1))*16+UE(e.charCodeAt(o+2)),o+=2),!t6(u)){if(u===61){r++;continue}if(!e6(u)||r>0){s=!0;continue}n++}}return s||r>2||r>0&&(n+r)%4!==0||n%4===1?r6(e):n6(n)},i6=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),s=e.slice(n+1);if(/;base64/i.test(r))return t(s);let u=0;for(let l=0,d=s.length;l<d;l++){const f=s.charCodeAt(l);if(f===37&&VS(s,l,d))u+=1,l+=2;else if(f<128)u+=1;else if(f<2048)u+=2;else if(f>=55296&&f<=56319&&l+1<d){const h=s.charCodeAt(l+1);h>=56320&&h<=57343?(u+=4,l++):u+=3}else u+=3}return u};function o6(e){const t=typeof e=="string"?e.indexOf("#"):-1;return i6(t===-1?e:e.slice(0,t),s6)}const zg="1.20.0",HE=64*1024,a6={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:yd}=V,u6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),VE=e=>{if(!V.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},zE=(e,...t)=>{try{return!!e(...t)}catch{return!1}},l6=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},c6=e=>{const t=V.global!==void 0&&V.global!==null?V.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=V.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:u}=e,l=s?yd(s):typeof fetch=="function",d=yd(o),f=yd(u);if(!l)return!1;const h=l&&yd(n),m=l&&(typeof r=="function"?(T=>N=>T.encode(N))(new r):async T=>new Uint8Array(await new o(T).arrayBuffer())),b=d&&h&&zE(()=>{let T=!1;const N=new o(Kt.origin,{body:new n,method:"POST",get duplex(){return T=!0,"half"}}),S=N.headers.has("Content-Type");return N.body!=null&&N.body.cancel(),T&&!S}),E=f&&h&&zE(()=>V.isReadableStream(new u("").body)),_={stream:E&&(T=>T.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(T=>{!_[T]&&(_[T]=(N,S)=>{let R=N&&N[T];if(R)return R.call(N);throw new ve(`Response type '${T}' is not supported`,ve.ERR_NOT_SUPPORT,S)})});const w=async T=>{if(T==null)return 0;
vendor: 8,885 bytes, lines 219-225
219if(V.isBlob(T))return T.size;if(V.isSpecCompliantForm(T))return(await new o(Kt.origin,{method:"POST",body:T}).arrayBuffer()).byteLength;if(V.isArrayBufferView(T)||V.isArrayBuffer(T))return T.byteLength;if(V.isURLSearchParams(T)&&(T=T+""),V.isString(T))return(await m(T)).byteLength},A=async(T,N)=>{const S=V.toFiniteNumber(T.getContentLength());return S??w(N)};return async T=>{let{url:N,method:S,data:R,signal:D,cancelToken:M,timeout:W,onDownloadProgress:H,onUploadProgress:se,responseType:J,headers:ee,withCredentials:oe="same-origin",fetchOptions:ie,maxContentLength:ne,maxBodyLength:me,maxRedirects:de}=HS(T);const ae=V.isNumber(ne)&&ne>-1,$=V.isNumber(me)&&me>-1,fe=te=>V.hasOwnProp(T,te)?T[te]:void 0;let I=s||fetch;J=J?(J+"").toLowerCase():"text";let U=GL([D,M&&M.toAbortSignal()],W),X=null;const O=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let Ee,Pe=null;const _e=()=>new ve("Request body larger than maxBodyLength limit",ve.ERR_BAD_REQUEST,T,X);try{let te;const xe=fe("auth");if(xe){const je=V.getSafeProp(xe,"username")||"",lt=V.getSafeProp(xe,"password")||"";te={username:je,password:lt}}if(l6(N)){const je=new URL(N,Kt.origin);if(!te&&(je.username||je.password)){const lt=VE(je.username),Gt=VE(je.password);te={username:lt,password:Gt}}(je.username||je.password)&&(je.username="",je.password="",N=je.href)}if(te&&(ee.delete("authorization"),ee.set("Authorization","Basic "+btoa(u6((te.username||"")+":"+(te.password||""))))),ae&&typeof N=="string"&&N.startsWith("data:")&&o6(N)>ne)throw new ve("maxContentLength size of "+ne+" exceeded",ve.ERR_BAD_RESPONSE,T,X);if($&&S!=="get"&&S!=="head"){const je=await w(R);if(typeof je=="number"&&isFinite(je)&&(Ee=je,je>me))throw _e()}const Ie=$&&(V.isReadableStream(R)||V.isStream(R)),Oe=(je,lt,Gt)=>FE(je,HE,an=>{if($&&an>me)throw Pe=_e();lt&<(an)},Gt);if(b&&S!=="get"&&S!=="head"&&(se||Ie)){if(Ee=Ee??await A(ee,R),Ee!==0||Ie){let je=new o(N,{method:"POST",body:R,duplex:"half"}),lt;if(V.isFormData(R)&&(lt=je.headers.get("content-type"))&&ee.setContentType(lt),je.body){const[Gt,an]=se&&LE(Ee,lf(DE(se)))||[];R=Oe(je.body,Gt,an)}}}else if(Ie&&!d&&h&&S!=="get"&&S!=="head")R=Oe(R);else if(Ie&&d&&!b&&S!=="get"&&S!=="head")throw new ve("Stream request bodies are not supported by the current fetch implementation",ve.ERR_NOT_SUPPORT,T,X);V.isString(oe)||(oe=oe?"include":"omit");const We=d&&"credentials"in o.prototype;if(V.isFormData(R)){const je=ee.getContentType();je&&/^multipart\/form-data/i.test(je)&&!/boundary=/i.test(je)&&ee.delete("content-type")}ee.set("User-Agent","axios/"+zg,!1);const Fe=ie==null?ie:Object.assign(Object.create(null),ie);Fe&&(delete Fe.body,delete Fe.headers,delete Fe.method,delete Fe.signal,delete Fe.duplex,delete Fe.credentials);const st=Object.assign(Object.create(null),Fe,{signal:U,method:S.toUpperCase(),headers:AS(ee.normalize()),body:R,duplex:"half",credentials:We?oe:void 0});d&&(V.forEach(a6,(je,lt)=>{st[lt]===void 0&&(st[lt]=je)}),st.signal===void 0&&(st.signal=null),st.body===void 0&&(st.body=null)),de===0&&(st.redirect="manual",Fe&&(Fe.redirect="manual")),X=d&&new o(N,st);let dt=await(d?I(X,Fe):I(N,st));const Cn=gn.from(dt.headers);if(ae){const je=V.toFiniteNumber(Cn.getContentLength());if(je!=null&&je>ne)throw new ve("maxContentLength size of "+ne+" exceeded",ve.ERR_BAD_RESPONSE,T,X)}const xn=E&&(J==="stream"||J==="response");if(E&&dt.body&&(H||ae||xn&&O)){const je={};["status","statusText","headers"].forEach(Pr=>{je[Pr]=dt[Pr]});const lt=V.toFiniteNumber(Cn.getContentLength()),[Gt,an]=H&&LE(lt,lf(DE(H),!0))||[];let _s=0;const To=Pr=>{if(ae&&(_s=Pr,_s>ne))throw new ve("maxContentLength size of "+ne+" exceeded",ve.ERR_BAD_RESPONSE,T,X);Gt&&Gt(Pr)};dt=new u(FE(dt.body,HE,To,()=>{an&&an(),O&&O()}),je)}J=J||"text";let St=await _[V.findKey(_,J)||"text"](dt,T);if(ae&&!E&&!xn){let je;if(St!=null&&(typeof St.byteLength=="number"?je=St.byteLength:typeof St.size=="number"?je=St.size:typeof St=="string"&&(je=typeof r=="function"?new r().encode(St).byteLength:St.length)),typeof je=="number"&&je>ne)throw new ve("maxContentLength size of "+ne+" exceeded",ve.ERR_BAD_RESPONSE,T,X)}return!xn&&O&&O(),await new Promise((je,lt)=>{FS(je,lt,{data:St,headers:gn.from(dt.headers),status:dt.status,statusText:dt.statusText,config:T,request:X})})}catch(te){if(O&&O(),U&&U.aborted&&U.reason instanceof ve){const xe=U.reason;throw xe.config=T,X&&(xe.request=X),te!==xe&&Object.defineProperty(xe,"cause",{__proto__:null,value:te,writable:!0,enumerable:!1,configurable:!0}),xe}if(Pe)throw X&&!Pe.request&&(Pe.request=X),Pe;if(te instanceof ve)throw X&&!te.request&&(te.request=X),te;if(te&&te.name==="TypeError"&&/Load failed|fetch/i.test(te.message)){const xe=new ve("Network Error",ve.ERR_NETWORK,T,X,te&&te.response);throw Object.defineProperty(xe,"cause",{__proto__:null,value:te.cause||te,writable:!0,enumerable:!1,configurable:!0}),xe}throw ve.from(te,te&&te.code,T,X,te&&te.response)}}},d6=new Map,zS=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let u=o.length,l=u,d,f,h=d6;for(;l--;)d=o[l],f=h.get(d),f===void 0&&h.set(d,f=l?new Map:c6(t)),h=f;return f};zS();const Wg={http:bL,xhr:QL,fetch:{get:zS}};V.forEach(Wg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const WE=e=>`- ${e}`,f6=e=>V.isFunction(e)||e===null||e===!1;function h6(e,t){e=V.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let u=0;u<n;u++){r=e[u];let l;if(s=r,!f6(r)&&(s=Wg[(l=String(r)).toLowerCase()],s===void 0))throw new ve(`Unknown adapter '${l}'`);if(s&&(V.isFunction(s)||(s=s.get(t))))break;o[l||"#"+u]=s}if(!s){const u=Object.entries(o).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?u.length>1?`since : 220`+u.map(WE).join(` 221`):" "+WE(u[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+l,ve.ERR_NOT_SUPPORT)}return s}const WS={getAdapter:h6,adapters:Wg};function cm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wl(null,e)}function dm(e){const t=V.toSafeFlatObject(e);return cm(t),t.headers=gn.from(V.getSafeProp(t,"headers")),t.data=um.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),WS.getAdapter(t.adapter||zl.adapter,t)(t).then(function(s){cm(t),t.response=s;try{s.data=um.call(t,t.transformResponse,s)}finally{delete t.response}return s.headers=gn.from(s.headers),s},function(s){if(!BS(s)&&(cm(t),s&&s.response)){t.response=s.response;try{s.response.data=um.call(t,t.transformResponse,s.response)}finally{delete t.response}s.response.headers=gn.from(s.response.headers)}return Promise.reject(s)})}const If={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{If[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $E={};If.transitional=function(t,n,r){function s(o,u){return"[Axios v"+zg+"] Transitional option '"+o+"'"+u+(r?". "+r:"")}return(o,u,l)=>{if(t===!1)throw new ve(s(u," has been removed"+(n?" in "+n:"")),ve.ERR_DEPRECATED);return n&&!$E[u]&&($E[u]=!0,console.warn(s(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,u,l):!0}};If.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function p6(e,t,n){if(typeof e!="object"||e===null)throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],u=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(u){const l=e[o],d=l===void 0||u(l,o,e);if(d!==!0)throw new ve("option "+o+" must be "+d,ve.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ve("Unknown option "+o,ve.ERR_BAD_OPTION)}}const Hd={assertOptions:p6,validators:If},fn=Hd.validators;let no=class{constructor(t){this.defaults=t||{},this.interceptors={request:new IE,response:new IE}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack;let u="";if(typeof o=="string"){const l=o.indexOf(` 222`);u=l===-1?"":o.slice(l+1)}if(!r.stack)r.stack=u;else if(u){const l=u.indexOf(` 223`),d=l===-1?-1:u.indexOf(` 224`,l+1),f=d===-1?"":u.slice(d+1);String(r.stack).endsWith(f)||(r.stack+=` 225`+u)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=uo(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Hd.assertOptions(r,{silentJSONParsing:fn.transitional(fn.boolean),forcedJSONParsing:fn.transitional(fn.boolean),clarifyTimeoutError:fn.transitional(fn.boolean),legacyInterceptorReqResOrdering:fn.transitional(fn.boolean),advertiseZstdAcceptEncoding:fn.transitional(fn.boolean),validateStatusUndefinedResolves:fn.transitional(fn.boolean)}
vendor: 3,302 bytes, line 225
225,!1),s!=null&&(V.isFunction(s)?n.paramsSerializer={serialize:s}:Hd.assertOptions(s,{encode:fn.function,serialize:fn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hd.assertOptions(n,{baseUrl:fn.spelling("baseURL"),withXsrfToken:fn.spelling("withXSRFToken")},!0),n.method=(V.getSafeProp(n,"method")||V.getSafeProp(this.defaults,"method")||"get").toLowerCase();let u=o&&V.merge(o.common,o[n.method]);o&&V.forEach(MS.concat("common"),_=>{delete o[_]}),n.headers=gn.concat(u,o);const l=[];let d=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(n)===!1)return;d=d&&w.synchronous;const A=n.transitional||Hg;A&&A.legacyInterceptorReqResOrdering?l.unshift(w.fulfilled,w.rejected):l.push(w.fulfilled,w.rejected)});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let h,m=0,b;if(!d){const _=[dm.bind(this),void 0];for(_.unshift(...l),_.push(...f),b=_.length,h=Promise.resolve(n);m<b;)h=h.then(_[m++],_[m++]);return h}b=l.length;let E=n;for(;m<b;){const _=l[m++],w=l[m++];try{E=_?_(E):E}catch(A){if(!w){h=Promise.reject(A);break}try{const T=w.call(this,A);V.isThenable(T)&&(h=Promise.resolve(T).then(()=>dm.call(this,E)))}catch(T){h=Promise.reject(T)}break}}if(!h)try{h=dm.call(this,E)}catch(_){h=Promise.reject(_)}for(m=0,b=f.length;m<b;)h=h.then(f[m++],f[m++]);return h}getUri(t){t=uo(this.defaults,t);const n=US(t.baseURL,t.url,t.allowAbsoluteUrls,t);return IS(n,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){no.prototype[t]=function(n,r){return this.request(uo(r||{},{method:t,url:n,data:r&&V.hasOwnProp(r,"data")?r.data:void 0}))}});V.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,u,l){return this.request(uo(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:u}))}}no.prototype[t]=n(),t!=="query"&&(no.prototype[t+"Form"]=n(!0))});let m6=class $S{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const u=new Promise(l=>{r.subscribe(l),o=l}).then(s);return u.cancel=function(){r.unsubscribe(o)},u},t(function(o,u,l){r.reason||(r.reason=new Wl(o,u,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new $S(function(s){t=s}),cancel:t}}};function g6(e){return function(n){return e.apply(null,n)}}function y6(e){return V.isObject(e)&&e.isAxiosError===!0}const Vd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
225alContent: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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Vd).forEach(([e,t])=>{Vd[t]===void 0&&(Vd[t]=e)});function qS(e){const t=new no(e),n=gS(no.prototype.request,t);return V.extend(n,no.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return qS(uo(e,s))},n}const Ot=qS(zl);Ot.Axios=no;Ot.CanceledError=Wl;Ot.CancelToken=m6;Ot.isCancel=BS;Ot.VERSION=zg;Ot.toFormData=Pf;Ot.AxiosError=ve;Ot.Cancel=Ot.CanceledError;Ot.all=function(t){return Promise.all(t)};Ot.spread=g6;Ot.isAxiosError=y6;Ot.mergeConfig=uo;Ot.AxiosHeaders=gn;Ot.formToJSON=e=>DS(V.isHTMLForm(e)?new FormData(e):e);Ot.getAdapter=WS.getAdapter;Ot.HttpStatusCode=Vd;Ot.default=Ot;const{Axios:_Q,AxiosError:CQ,CanceledError:AQ,isCancel:NQ,CancelToken:kQ,VERSION:RQ,all:PQ,Cancel:IQ,isAxiosError:OQ,spread:LQ,toFormData:DQ,AxiosHeaders:MQ,HttpStatusCode:BQ,formToJSON:FQ,getAdapter:jQ,mergeConfig:UQ,create:HQ}=Ot,YS=typeof window>"u",qE=!YS&&window.self!==window.top,b6=!YS&&typeof document>"u",KS=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),tn=[];for(let e=0;e<256;++e)tn.push((e+256).toString(16).slice(1));function x6(e,t=0){return(tn[e[t+0]]+tn[e[t+1]]+tn[e[t+2]]+tn[e[t+3]]+"-"+tn[e[t+4]]+tn[e[t+5]]+"-"+tn[e[t+6]]+tn[e[t+7]]+"-"+tn[e[t+8]]+tn[e[t+9]]+"-"+tn[e[t+10]]+tn[e[t+11]]+tn[e[t+12]]+tn[e[t+13]]+tn[e[t+14]]+tn[e[t+15]]).toLowerCase()}let fm;const E6=new Uint8Array(16);function v6(){if(!fm){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");fm=crypto.getRandomValues.bind(crypto)}return fm(E6)}const T6=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),YE={randomUUID:T6};function w6(e,t,n){var s;e=e||{};const r=e.random??((s=e.rng)==null?void 0:s.call(e))??v6();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,x6(r)}function S6(e,t,n){return YE.randomUUID&&!e?YE.randomUUID():w6(e)}const Iu=typeof window<"u"?window:{base44SharedInstances:{}};function _6(e,t){return Iu.base44SharedInstances||(Iu.base44SharedInstances={}),Iu.base44SharedInstances[e]||(Iu.base44SharedInstances[e]={instance:t()}),Iu.base44SharedInstances[e].instance}const C6="__user_heartbeat_event__",A6="__initialization_event__",N6="__session_duration_event__",KE="analytics-enable",QE="base44_analytics_session_id",k6={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},R6="analytics",it=_6(R6,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...k6,...F6()}})),P6=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r,enabled:s})=>{var o;const{maxQueueSize:u,throttleTime:l,batchSize:d}=it.config;if(!s||!(!((o=it.config)===null||o===void 0)&&o.enabled)||b6)return{track:()=>{},cleanup:()=>{}};let f;const h=`${t}/api/apps/${n}/analytics/track/batch`,m=async R=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:R}})},b=R=>{try{const D=JSON.stringify({events:R}),M=new Blob([D],{type:"application/json"});return typeof navigator>"u"||D.length>6e4||!navigator.sendBeacon(h,M)}catch{return!1}},E=async(R,D={})=>
225{if(R.length===0)return;const M=await B6(r),W=R.map(M6(M));try{(!D.isBeacon||!b(W))&&await m(W)}catch{}},_=()=>{XE(E,{throttleTime:l,batchSize:d})},w=R=>{if(it.requestsQueue.length>=u)return;const D=D6();it.requestsQueue.push({...R,...D}),_()},A=()=>{XE(E,{throttleTime:l,batchSize:d}),f=JE(w),O6()},T=()=>{GE(),f==null||f(),L6(w);const R=it.requestsQueue.splice(0);E(R,{isBeacon:!0})},N=()=>{typeof window>"u"||(document.visibilityState==="hidden"?T():document.visibilityState==="visible"&&A())},S=()=>{GE(),f==null||f(),typeof window<"u"&&window.removeEventListener("visibilitychange",N)};return _(),f=JE(w),I6(w),typeof window<"u"&&window.addEventListener("visibilitychange",N),{track:w,cleanup:S}};function GE(){it.isProcessing=!1}async function XE(e,t){if(it.isProcessing)return;it.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;it.isProcessing&&it.requestsQueue.length>0;){const s=it.requestsQueue.splice(0,r);s.length&&await e(s),await new Promise(o=>setTimeout(o,n))}it.isProcessing=!1}function JE(e){var t;if(typeof window>"u"||it.isHeartBeatProcessing||((t=it.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};it.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:C6})},it.config.heartBeatInterval);return()=>{clearInterval(n),it.isHeartBeatProcessing=!1}}function I6(e){typeof window>"u"||it.wasInitializationTracked||(it.wasInitializationTracked=!0,e({eventName:A6,properties:{referrer:document==null?void 0:document.referrer}}))}function O6(){typeof window>"u"||it.sessionStartTime!==null||(it.sessionStartTime=new Date().toISOString())}function L6(e){if(typeof window>"u"||it.sessionStartTime===null)return;const t=new Date().getTime()-new Date(it.sessionStartTime).getTime();it.sessionStartTime=null,e({eventName:N6,properties:{sessionDuration:t}})}function D6(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function M6(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Wu=null;function ZE(){it.sessionContext=null,Wu=null}async function B6(e){if(!it.sessionContext){if(!e.hasToken())return{user_id:null,session_id:cf()};if(!Wu){const r=cf();Wu=e.me().then(s=>({user_id:s.id,session_id:r})).catch(()=>({user_id:null,session_id:r}))}const t=Wu,n=await t;return Wu===t&&(it.sessionContext=n),n}return it.sessionContext}function F6(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(KE);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(KE);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function ev(){var e;return(e=it.fallbackSessionId)!==null&&e!==void 0?e:it.fallbackSessionId=KS()}function cf(){if(typeof window>"u")return ev();try{const e=localStorage.getItem(QE);if(!e){const t=KS();return localStorage.setItem(QE,t),t}return e}catch{return ev()}}class j6 extends Error{constructor(t,n,r,s,o){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=s,this.originalError=o}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function ta({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:s}){const o=Ot.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(o.defaults.headers.common.Authorization=`Bearer ${n}`),o.interceptors.request.use(u=>{typeof window<"u"&&(window.location&&u.headers.set("X-Origin-URL",window.location.href),u.headers.get("Authorization")||u.headers.set("X-Base44-Anonymous-Id",cf()));const l=S6();if(u.requestId=l,qE)try{window.parent.postMessage({type:"api-request-start",requestId:l,data:{url:e+u.url,method:u.method,body:u.data instanceof FormData?"[FormData object]":u.data}},"*")}catch{}return u}),r&&o.interceptors.response.use(u=>{var l;const d=(l=u.config)===null||l===void 0?void 0:l.requestId;try{qE&&d&&window.parent.postMessage({type:"api-request-end",requestId:d,data:{statusCode:u.status,response:u.data}},"*")}catch{}return u.data},u=>{var l,d,f,h,m,b,E,_,w,A,T,N,S,R,D;const M=((d=(l=u.response)===null||l===void 0?void 0:l.data)===null||d===void 0?void 0:d.message)||((h=(f=u.response)===null||f===void 0?void 0:f.data)===null||h===void 0?void 0:h.detail)||u.message,W=new j6(M,(m=u.response)===null||m===void 0?void 0:m.status,(N=(_=(E=(b=u.response)===null||b===void 0?void 0:b.data)===null||E===void 0?void 0:E.
225code)!==null&&_!==void 0?_:(T=(A=(w=u.response)===null||w===void 0?void 0:w.headers)===null||A===void 0?void 0:A.get)===null||T===void 0?void 0:T.call(A,"x-base44-connector-error"))!==null&&N!==void 0?N:(R=(S=u.response)===null||S===void 0?void 0:S.headers)===null||R===void 0?void 0:R["x-base44-connector-error"],(D=u.response)===null||D===void 0?void 0:D.data,u);return s==null||s(W),Promise.reject(W)}),o}function tv(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(s,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return H6(t,n,o,r)}})}function U6(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function H6(e,t,n,r){const s=`/apps/${t}/entities/${n}`;return{async list(o,u,l,d){const f={};return o&&(f.sort=o),u&&(f.limit=u),l&&(f.skip=l),d&&(f.fields=Array.isArray(d)?d.join(","):d),e.get(s,{params:f})},async filter(o,u,l,d,f){const h={q:JSON.stringify(o)};return u&&(h.sort=u),l&&(h.limit=l),d&&(h.skip=d),f&&(h.fields=Array.isArray(f)?f.join(","):f),e.get(s,{params:h})},async get(o){return e.get(`${s}/${o}`)},async create(o){return e.post(s,o)},async update(o,u){return e.put(`${s}/${o}`,u)},async delete(o){return e.delete(`${s}/${o}`)},async deleteMany(o){return e.delete(s,{data:o})},async bulkCreate(o){return e.post(`${s}/bulk`,o)},async updateMany(o,u){return e.patch(`${s}/update-many`,{query:o,data:u})},async bulkUpdate(o){return e.put(`${s}/bulk`,o)},async importEntities(o){const u=new FormData;return u.append("file",o,o.name),e.post(`${s}/import`,u,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(o){const u=`entities:${t}:${n}`;return r().subscribeToRoom(u,{update_model:f=>{var h;const m=U6(f.data);if(m){m.type!=="delete"&&(!((h=m.data)===null||h===void 0)&&h._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${m.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("${m.id}")\` to fetch the full record.`);try{o(m)}catch(b){console.error("[Base44 SDK] Subscription callback error:",b)}}}})}}}function V6(e,t){return{async call(n,r,s){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:o,queryParams:u,...l}=s??{},d={...l,...o&&{path_params:o},...u&&{query_params:u}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,d)}}}function nv(e,t){const n=V6(e,t);return new Proxy({},{get(r,s){if(!(typeof s!="string"||s==="then"||s.startsWith("_")))return s==="custom"?n:new Proxy({},{get(o,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return async l=>{if(typeof l=="string")throw new Error(`Integration ${u} must receive an object with named parameters, received: ${l}`);let d,f;return l instanceof FormData||l&&Object.values(l).some(h=>h instanceof File)?(d=new FormData,Object.keys(l).forEach(h=>{l[h]instanceof File?d.append(h,l[h],l[h].name):typeof l[h]=="object"&&l[h]!==null?d.append(h,JSON.stringify(l[h])):d.append(h,l[h])}),f="multipart/form-data"):(d=l,f="application/json"),s==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${u}`,d||l,{headers:{"Content-Type":f}}):e.post(`/apps/${t}/integration-endpoints/installable/${s}/integration-endpoints/${u}`,d||l,{headers:{"Content-Type":f}})}}})}})}function z6(){return typeof window>"u"?!1:window!==window.parent}function W6(e,t,n){const o=Math.round(window.screenX+(window.outerWidth-500)/2),u=Math.round(window.screenY+(window.outerHeight-600)/2),l=window.open(e,"base44_auth",`width=500,height=600,left=${o},top=${u},resizable=yes,scrollbars=yes`);if(!l)return;const d=()=>{window.removeEventListener("message",f),clearInterval(h),l.closed||l.close()},f=m=>{var b;if(m.origin!==n||m.source!==l||!(!((b=m.data)===null||b===void 0)&&b.access_token))return;d();const E=new URL(t),{access_token:_,is_new_user:w}=m.data;E.searchParams.set("access_token",_),w!=null&&E.searchParams.set("is_new_user",String(w)),window.location.href=E.toString()},h=setInterval(()=>{l.closed&&d()},500);window.addEventListener("message",f)}function $6(e,t,n,r){let s=null;const o=()=>{s=null};let u=!!r.token;return{hasToken(){return u},async me(){const l=s??e.get(`/apps/${n}/entities/User/me`).finally(()=>{s===l&&(s=null)});return s=l,l},async updateMe(l){return e.put(`/apps/${n}/entities/User/me`,l)},redirectToLogin(l){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const d=l?new URL(l,window.location.origin).toString():window.location.href,f=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(d)}`;window.location.href=f},loginWithProvider(l,d="/"){const f=new URL(d,window.location.origin).toString(),h=`app_id=${n}&from_url=${encodeURIComponent(f)}`;let m;l==="sso"?m=`/apps/${n}/auth/sso/login`:m=`/apps/auth${l==="google"?"":`/${l}`}/login`;const b=`${r.appBaseUrl}/api${m}?${h}`;if(z6()){const E=`${b}&popup_origin=${encodeURIComponent(window.location.origin)}`;return W6(E,f,window.location.origin)}window.location.href=b},logout(l){if(delete e.defaults.headers.common.Authorization,o(),ZE(),u=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(h){console.error("Failed to remove token from localStorage:",h)}const d=l||window.location.href,f=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(d)}`;window.location.href=f}},setToken(l,d=!0){if(l&&(o(),ZE(),u=!0,e.defaults.headers.common.Authorization=`Bearer ${l}`,t.defaults.headers.common.Authorization=`Bearer ${l}
225`,d&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",l),window.localStorage.setItem("token",l)}catch(f){console.error("Failed to save token to localStorage:",f)}},async loginViaEmailPassword(l,d,f){var h;try{const m=await e.post(`/apps/${n}/auth/login`,{email:l,password:d,...f&&{turnstile_token:f}}),{access_token:b,user:E}=m;return b&&this.setToken(b),{access_token:b,user:E}}catch(m){throw((h=m.response)===null||h===void 0?void 0:h.status)===401&&await this.logout(),m}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(l,d){return e.post(`/apps/${n}/users/invite-user`,{user_email:l,role:d})},register(l){return e.post(`/apps/${n}/auth/register`,l)},verifyOtp({email:l,otpCode:d}){return e.post(`/apps/${n}/auth/verify-otp`,{email:l,otp_code:d})},resendOtp(l){return e.post(`/apps/${n}/auth/resend-otp`,{email:l})},resetPasswordRequest(l){return e.post(`/apps/${n}/auth/reset-password-request`,{email:l})},resetPassword({resetToken:l,newPassword:d}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:l,new_password:d})},changePassword({userId:l,currentPassword:d,newPassword:f}){return e.post(`/apps/${n}/auth/change-password`,{user_id:l,current_password:d,new_password:f})}}}function q6(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){const r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}const Y6=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);function K6(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new 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){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const o=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:o.access_token,connectionConfig:(r=o.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const o=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:o.access_token,connectionConfig:(r=o.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new 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){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const o=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:o.access_token,connectionConfig:(r=o.connection_config)!==null&&r!==void 0?r:null}},async callApi(n,r){return QS(n,"Integration type"),Q6(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,r)}}}function QS(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function Q6(e,t,n){var r,s,o,u,l,d,f,h,m;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");QS(n.path,"Request path");const b=(r=n.method)!==null&&r!==void 0?r:"GET";if(!Y6.has(b))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const _=await e.post(t,{method:b,...n.host==null?{}:{host:n.host},path:n.path,query:(s=n.query)!==null&&s!==void 0?s:{},headers:(o=n.headers)!==null&&o!==void 0?o:{},body:(u=n.body)!==null&&u!==void 0?u:null});return{success:_.success,phase:_.phase,status:(l=_.status_code)!==null&&l!==void 0?l:null,data:_.data,dataBase64:(d=_.data_base64)!==null&&d!==void 0?d:null,contentType:(f=_.content_type)!==null&&f!==void 0?f:null,headers:(h=_.headers)!==null&&h!==void 0?h:{},creditsCharged:(m=_.credits_charged)!==null&&m!==void 0?m:0}}function G6(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new 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}
225,async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function li(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:s=!0}=e;let o=null;if(typeof window<"u"&&window.location)try{const u=new URLSearchParams(window.location.search);if(o=u.get(n),o){if(r&&X6(o,{storageKey:t}),s){u.delete(n);const l=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,l)}return o}}catch(u){console.error("Error retrieving token from URL:",u)}if(typeof window<"u"&&window.localStorage)try{return o=window.localStorage.getItem(t),o}catch(u){console.error("Error retrieving token from local storage:",u)}return null}function X6(e,t){const{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(r){return console.error("Error saving token to local storage:",r),!1}}function J6({axios:e,serviceRoleAxios:t,appId:n,serverUrl:r,functionsVersion:s,platformHeaders:o}){const u=new Headers(o),l=d=>{const f=d.defaults.headers.common.Authorization;return typeof f=="string"&&f.startsWith("Bearer ")?f:null};return async function(f,h={}){Z6(f);const{fetch:m=fetch,...b}=h,E=new Headers(h.headers),_=(w,A)=>{A&&!E.has(w)&&E.set(w,A)};return _("Authorization",l(e)),_("Base44-Service-Authorization",l(t)),_("Base44-App-Id",n),_("Base44-Api-Url",r),_("Base44-Functions-Version",s),_("Base44-State",u.get("Base44-State")),_("X-Data-Env",u.get("X-Data-Env")),m(f,{...b,headers:E})}}function Z6(e){if(typeof e!="string"||e==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\"))throw new 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 rv(e,t,n){const r=(o,u)=>o?`${String(o).replace(/\/$/,"")}${u}`:u,s=o=>{const u=new Headers;if(n!=null&&n.getAuthHeaders){const l=n.getAuthHeaders();Object.entries(l).forEach(([d,f])=>{f!=null&&u.set(d,String(f))})}return o&&new Headers(o).forEach((l,d)=>{u.set(d,l)}),u};return{async invoke(o,u){if(typeof u=="string")throw new Error(`Function ${o} must receive an object with named parameters, received: ${u}`);let l,d;return u instanceof FormData||u&&Object.values(u).some(f=>f instanceof File)?(l=new FormData,Object.keys(u).forEach(f=>{u[f]instanceof File?l.append(f,u[f],u[f].name):typeof u[f]=="object"&&u[f]!==null?l.append(f,JSON.stringify(u[f])):l.append(f,u[f])}),d="multipart/form-data"):(l=u,d="application/json"),e.post(`/apps/${t}/functions/${o}`,l||u,{headers:{"Content-Type":d}})},async fetch(o,u={}){const d=`/functions${o.startsWith("/")?o:`/${o}`}`,f=s(u.headers),h={...u,headers:f};return await fetch(r(n==null?void 0:n.baseURL,d),h)}}}function sv({axios:e,getSocket:t,appId:n,serverUrl:r,token:s}){const o=`/apps/${n}/agents`,u={},l=()=>e.get(`${o}/conversations`),d=w=>e.get(`${o}/conversations/${w}`);return{getConversations:l,getConversation:d,listConversations:w=>e.get(`${o}/conversations`,{params:w}),createConversation:w=>e.post(`${o}/conversations`,w),addMessage:async(w,A)=>e.post(`${o}/conversations/v2/${w.id}/messages`,A),subscribeToConversation:(w,A)=>{const T=`/agent-conversations/${w}`,N=t(),S=d(w).then(R=>(u[w]=R,R));return N.subscribeToRoom(T,{connect:()=>{},update_model:async({data:R})=>{const D=JSON.parse(R);if(D._message){await S;const M=D._message,W=u[w];if(W){const H=W.messages||[],se=H.findIndex(ee=>ee.id===M.id),J=se!==-1?H.map((ee,oe)=>oe===se?M:ee):[...H,M];u[w]={...W,messages:J},A==null||A(u[w])}}}})},getWhatsAppConnectURL:w=>{const A=`${r}/api/apps/${n}/agents/${encodeURIComponent(w)}/whatsapp`,T=s??li();return T?`${A}?token=${T}`:A},getTelegramConnectURL:w=>{const A=`${r}/api/apps/${n}/agents/${encodeURIComponent(w)}/telegram`,T=s??li();return T?`${A}?token=${T}`:A}}}function iv({serverUrl:e,token:t,appId:n}){return{connection:()=>{var s;return{baseURL:`${e}/api/apps/${n}/ai/openai/v1`,token:(s=t??li())!==null&&s!==void 0?s:""}}}}function ov(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function eD(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function tD(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new 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})}}}const Jr=Object.create(null);Jr.open="0";Jr.close="1";Jr.ping="2";Jr.pong="3";Jr.message="4";Jr.upgrade="5";Jr.noop="6";
vendor: 6,018 bytes, line 225
225const zd=Object.create(null);Object.keys(Jr).forEach(e=>{zd[Jr[e]]=e});const k0={type:"error",data:"parser error"},GS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",XS=typeof ArrayBuffer=="function",JS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,$g=({type:e,data:t},n,r)=>GS&&t instanceof Blob?n?r(t):av(t,r):XS&&(t instanceof ArrayBuffer||JS(t))?n?r(t):av(new Blob([t]),r):r(Jr[e]+(t||"")),av=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function uv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let hm;function nD(e,t){if(GS&&e.data instanceof Blob)return e.data.arrayBuffer().then(uv).then(t);if(XS&&(e.data instanceof ArrayBuffer||JS(e.data)))return t(uv(e.data));$g(e,!1,n=>{hm||(hm=new TextEncoder),t(hm.encode(n))})}const lv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$u=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<lv.length;e++)$u[lv.charCodeAt(e)]=e;const rD=e=>{let t=e.length*.75,n=e.length,r,s=0,o,u,l,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),h=new Uint8Array(f);for(r=0;r<n;r+=4)o=$u[e.charCodeAt(r)],u=$u[e.charCodeAt(r+1)],l=$u[e.charCodeAt(r+2)],d=$u[e.charCodeAt(r+3)],h[s++]=o<<2|u>>4,h[s++]=(u&15)<<4|l>>2,h[s++]=(l&3)<<6|d&63;return f},sD=typeof ArrayBuffer=="function",qg=(e,t)=>{if(typeof e!="string")return{type:"message",data:ZS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:iD(e.substring(1),t)}:zd[n]?e.length>1?{type:zd[n],data:e.substring(1)}:{type:zd[n]}:k0},iD=(e,t)=>{if(sD){const n=rD(e);return ZS(n,t)}else return{base64:!0,data:e}},ZS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},e_="�",oD=(e,t)=>{const n=e.length,r=new Array(n);let s=0;e.forEach((o,u)=>{$g(o,!1,l=>{r[u]=l,++s===n&&t(r.join(e_))})})},aD=(e,t)=>{const n=e.split(e_),r=[];for(let s=0;s<n.length;s++){const o=qg(n[s],t);if(r.push(o),o.type==="error")break}return r};function uD(){return new TransformStream({transform(e,t){nD(e,n=>{const r=n.length;let s;if(r<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,r);else if(r<65536){s=new Uint8Array(3);const o=new DataView(s.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{s=new Uint8Array(9);const o=new DataView(s.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(s[0]|=128),t.enqueue(s),t.enqueue(n)})}})}let pm;function bd(e){return e.reduce((t,n)=>t+n.length,0)}function xd(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let s=0;s<t;s++)n[s]=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 lD(e,t){pm||(pm=new TextDecoder);const n=[];let r=0,s=-1,o=!1;return new TransformStream({transform(u,l){for(n.push(u);;){if(r===0){if(bd(n)<1)break;const d=xd(n,1);o=(d[0]&128)===128,s=d[0]&127,s<126?r=3:s===126?r=1:r=2}else if(r===1){if(bd(n)<2)break;const d=xd(n,2);s=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),r=3}else if(r===2){if(bd(n)<8)break;const d=xd(n,8),f=new DataView(d.buffer,d.byteOffset,d.length),h=f.getUint32(0);if(h>Math.pow(2,21)-1){l.enqueue(k0);break}s=h*Math.pow(2,32)+f.getUint32(4),r=3}else{if(bd(n)<s)break;const d=xd(n,s);l.enqueue(qg(o?d:pm.decode(d),t)),r=0}if(s===0||s>e){l.enqueue(k0);break}}}})}const t_=4;function Bt(e){if(e)return cD(e)}function cD(e){for(var t in Bt.prototype)e[t]=Bt.prototype[t];return e}Bt.prototype.on=Bt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Bt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Bt.prototype.off=Bt.prototype.removeListener=Bt.prototype.removeAllListeners=Bt.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,s=0;s<n.length;s++)if(r=n[s],r===t||r.fn===t){n.splice(s,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Bt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new 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,s=n.length;r<s;++r)n[r].apply(this,t)}return this};Bt.prototype.emitReserved=Bt.prototype.emit;Bt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Bt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Of=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),dr=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),dD="arraybuffer";function n_(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const fD=dr.setTimeout,hD=dr.clearTimeout;function Lf(e,t){t.useNativeTimers?(e.setTimeoutFn=fD.bind(dr),e.clearTimeoutFn=hD.bind(dr)):(e.setTimeoutFn=dr.setTimeout.bind(dr),e.clearTimeoutFn=dr.clearTimeout.bind(dr))}const pD=1.33;function mD(e){return typeof e=="string"?gD(e):Math.ceil((e.byteLength||e.size)*pD)}function gD(e){let t=0,n=0;for(let r=0,s=e.length;r<s;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 r_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function yD(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function bD(e){let t={},n=e.split("&");for(let r=0,s=n.length;r<s;r++){let o=n[r].split("=");
vendor: 6,261 bytes, line 225
225t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class xD extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Yg extends Bt{constructor(t){super(),this.writable=!1,Lf(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new xD(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=qg(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_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(t){const n=yD(t);return n.length?"?"+n:""}}class ED extends Yg{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};aD(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,oD(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=r_()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let s_=!1;try{s_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const vD=s_;function TD(){}class wD extends ED{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(s,o)=>{this.onError("xhr post error",s,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Kr extends Bt{constructor(t,n,r){super(),this.createRequest=t,Lf(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=n_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const 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 s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&r.setRequestHeader(s,this._opts.extraHeaders[s])}}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===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var s;r.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.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(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=Kr.requestsCount++,Kr.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=TD,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Kr.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Kr.requestsCount=0;Kr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",cv);else if(typeof addEventListener=="function"){const e="onpagehide"in dr?"pagehide":"unload";addEventListener(e,cv,!1)}}function cv(){for(let e in Kr.requests)Kr.requests.hasOwnProperty(e)&&Kr.requests[e].abort()}const SD=(function(){const e=i_({xdomain:!1});return e&&e.responseType!==null})();class _D extends wD{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=SD&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Kr(i_,this.uri(),t)}}function i_(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||vD))return new XMLHttpRequest}catch{}if(!t)try{return new dr[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const o_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class CD extends Yg{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=o_?{}:n_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(s){return this.emitReserved("error",s)}
vendor: 10,324 bytes, line 225
225this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],s=n===t.length-1;$g(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}s&&Of(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=r_()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const mm=dr.WebSocket||dr.MozWebSocket;class AD extends CD{createSocket(t,n,r){return o_?new mm(t,n,r):n?new mm(t,n):new mm(t)}doWrite(t,n){this.ws.send(n)}}class ND extends Yg{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=lD(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),s=uD();s.readable.pipeTo(t.writable),this._writer=s.writable.getWriter();const o=()=>{r.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],s=n===t.length-1;this._writer.write(r).then(()=>{s&&Of(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const kD={websocket:AD,webtransport:ND,polling:_D},RD=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,PD=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function R0(e){if(e.length>8e3)throw"URI too long";const 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 s=RD.exec(e||""),o={},u=14;for(;u--;)o[PD[u]]=s[u]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ID(o,o.path),o.queryKey=OD(o,o.query),o}function ID(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function OD(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,s,o){s&&(n[s]=o)}),n}const P0=typeof addEventListener=="function"&&typeof removeEventListener=="function",Wd=[];P0&&addEventListener("offline",()=>{Wd.forEach(e=>e())},!1);class hi extends Bt{constructor(t,n){if(super(),this.binaryType=dD,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=R0(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=R0(n.host).host);Lf(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const s=r.prototype.name;this.transports.push(s),this._transportsByName[s]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=bD(this.opts.query)),P0&&(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"})},Wd.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=t_,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&hi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",hi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const s=this.writeBuffer[r].data;if(s&&(n+=mD(s)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Of(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,s){if(typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(hi.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(t,n){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(),P0&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Wd.indexOf(this._offlineEventListener);r!==-1&&Wd.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}hi.protocol=t_;class LD extends hi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;hi.priorWebsocketSuccess=!1;const s=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",m=>{if(!r)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;hi.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(h(),this.setTransport(n),n.send([{type:"upgrade"}
vendor: 11,023 bytes, line 225
225]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const b=new Error("probe error");b.transport=n.name,this.emitReserved("upgradeError",b)}}))};function o(){r||(r=!0,h(),n.close(),n=null)}const u=m=>{const b=new Error("probe error: "+m);b.transport=n.name,o(),this.emitReserved("upgradeError",b)};function l(){u("transport closed")}function d(){u("socket closed")}function f(m){n&&m.name!==n.name&&o()}const h=()=>{n.removeListener("open",s),n.removeListener("error",u),n.removeListener("close",l),this.off("close",d),this.off("upgrading",f)};n.once("open",s),n.once("error",u),n.once("close",l),this.once("close",d),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let DD=class extends LD{constructor(t,n={}){const r=typeof t=="object",s=r?{...t}:{...n};(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(o=>kD[o]).filter(o=>!!o)),super(r?s:t,s)}};function MD(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=R0(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const BD=typeof ArrayBuffer=="function",FD=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,a_=Object.prototype.toString,jD=typeof Blob=="function"||typeof Blob<"u"&&a_.call(Blob)==="[object BlobConstructor]",UD=typeof File=="function"||typeof File<"u"&&a_.call(File)==="[object FileConstructor]";function Kg(e){return BD&&(e instanceof ArrayBuffer||FD(e))||jD&&e instanceof Blob||UD&&e instanceof File}function $d(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if($d(e[n]))return!0;return!1}if(Kg(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return $d(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&$d(e[n]))return!0;return!1}function HD(e){const t=[],n=e.data,r=e;return r.data=qd(n,t),r.attachments=t.length,{packet:r,buffers:t}}function qd(e,t,n){if(!e)return e;if(Kg(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let s=0;s<e.length;s++)r[s]=qd(e[s],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){if(e.toJSON&&typeof e.toJSON=="function"&&!n)return qd(e.toJSON(),t,!0);const r={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=qd(e[s],t));return r}return e}function VD(e,t){return e.data=I0(e.data,t),delete e.attachments,e}function I0(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 new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=I0(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=I0(e[n],t));return e}const u_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],zD=5;var qe;(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"})(qe||(qe={}));class WD{constructor(t){this.replacer=t}encode(t){return(t.type===qe.EVENT||t.type===qe.ACK)&&$d(t)?this.encodeAsBinary({type:t.type===qe.EVENT?qe.BINARY_EVENT:qe.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===qe.BINARY_EVENT||t.type===qe.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=HD(t),r=this.encodeAsString(n.packet),s=n.buffers;return s.unshift(r),s}}class Qg extends Bt{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===qe.BINARY_EVENT;r||n.type===qe.BINARY_ACK?(n.type=r?qe.EVENT:qe.ACK,this.reconstructor=new $D(n)):super.emitReserved("decoded",n)}else if(Kg(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(qe[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===qe.BINARY_EVENT||r.type===qe.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(o,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const l=Number(u);if(!l_(l)||l<1)throw new Error("Illegal attachments");if(l>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=l}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const s=t.charAt(n+1);if(s!==""&&Number(s)==s){const o=n+1;for(;++n;){const u=t.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(Qg.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case qe.CONNECT:return df(n);case qe.DISCONNECT:return n===void 0;case qe.CONNECT_ERROR:return typeof n=="string"||df(n);case qe.EVENT:case qe.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&u_.indexOf(n[0])===-1);case qe.ACK:case qe.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class $D{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=VD(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function qD(e){return typeof e=="string"}const l_=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function YD(e){return e===void 0||l_(e)}function df(e){return Object.prototype.toString.call(e)==="[object Object]"}function KD(e,t){switch(e){case qe.CONNECT:return t===void 0||df(t);case qe.DISCONNECT:return t===void 0;case qe.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&u_.indexOf(t[0])===-1);case qe.ACK:return Array.isArray(t);case qe.CONNECT_ERROR:return typeof t=="string"||df(t);default:return!1}}function QD(e){return qD(e.nsp)&&YD(e.id)&&KD(e.type,e.data)}const GD=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Qg,Encoder:WD,get PacketType(){return qe},isPacketValid:QD,protocol:zD},Symbol.toStringTag,{value:"Module"}));function Cr(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const XD=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class c_ extends Bt{constructor(t,n,r){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=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Cr(t,"open",this.onopen.bind(this)),Cr(t,"packet",this.onpacket.bind(this)),Cr(t,"error",this.onerror.bind(this)),Cr(t,"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(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,s,o;if(XD.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:qe.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const h=this.ids++,m=n.pop();this._registerAckCallback(h,m),u.id=h}const l=(s=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||s===void 0?void 0:s.writable,d=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(d?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(t,n){var r;const s=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(s===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},s),u=(...l)=>{this.io.clearTimeoutFn(o),n.apply(this,l)};u.withError=!0,this.acks[t]=u}emitWithAck(t,...n){return new Promise((r,s)=>{const o=(u,l)=>u?s(u):r(l);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((s,...o)=>(this._queue[0],s!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(s)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:qe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 225
225_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case qe.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new 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 qe.EVENT:case qe.BINARY_EVENT:this.onevent(t);break;case qe.ACK:case qe.BINARY_ACK:this.onack(t);break;case qe.DISCONNECT:this.ondisconnect();break;case qe.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...s){r||(r=!0,n.packet({type:qe.ACK,id:t,data:s}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:qe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function La(e){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}La.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};La.prototype.reset=function(){this.attempts=0};La.prototype.setMin=function(e){this.ms=e};La.prototype.setMax=function(e){this.max=e};La.prototype.setJitter=function(e){this.jitter=e};class O0 extends Bt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Lf(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new La({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const s=n.parser||GD;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new DD(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const s=Cr(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},u=Cr(n,"error",o);if(this._timeout!==!1){const l=this._timeout,d=this.setTimeoutFn(()=>{s(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(s),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Cr(t,"ping",this.onping.bind(this)),Cr(t,"data",this.ondata.bind(this)),Cr(t,"error",this.onerror.bind(this)),Cr(t,"close",this.onclose.bind(this)),Cr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Of(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new c_(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
225cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ou={};function Yd(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=MD(e,t.path||"/socket.io"),r=n.source,s=n.id,o=n.path,u=Ou[s]&&o in Ou[s].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let d;return l?d=new O0(r,t):(Ou[s]||(Ou[s]=new O0(r,t)),d=Ou[s]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}Object.assign(Yd,{Manager:O0,Socket:c_,io:Yd,connect:Yd});const JD=250;function dv(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:li(),s={app_id:e.appId,token:r};r||(s.anonymous_id=cf());const o=Yd(e.serverUrl,{path:e.mountPath,transports:e.transports,query:s});return o.on("connect",async()=>{var u;return console.log("connect",o.id),(u=t.connect)===null||u===void 0?void 0:u.call(t)}),o.on("update_model",async u=>{var l;return(l=t.update_model)===null||l===void 0?void 0:l.call(t,u)}),o.on("error",async u=>{var l;return(l=t.error)===null||l===void 0?void 0:l.call(t,u)}),o.on("connect_error",async u=>{var l;return console.error("connect_error",u),(l=t.error)===null||l===void 0?void 0:l.call(t,u)}),o}function ZD({config:e}){let t={...e};const n={},r={},s={connect:async()=>{const T=[];Object.keys(n).forEach(N=>{const S=b(N);S.length!==0&&(f(N),S.forEach(({connect:R})=>{const D=async()=>R==null?void 0:R();T.push(D())}))}),await Promise.all(T)},update_model:async T=>{const S=b(T.room).map(R=>{var D;return(D=R.update_model)===null||D===void 0?void 0:D.call(R,T)});await Promise.all(S)},error:async T=>{console.error("error",T);const N=Object.values(n).flat().map(S=>{var R;return(R=S.error)===null||R===void 0?void 0:R.call(S,T)});await Promise.all(N)}};let o=dv(e,s);function u(){l()}function l(){_(),o&&o.disconnect()}function d(T){u(),t={...t,...T},o=dv(t,s)}function f(T){o.emit("join",T)}function h(T){o.emit("leave",T)}async function m(T,N){var S;const R=JSON.stringify(N);return(S=s.update_model)===null||S===void 0?void 0:S.call(s,{room:T,data:R})}function b(T){var N;return(N=n[T])!==null&&N!==void 0?N:[]}function E(T){const N=r[T];N&&(clearTimeout(N),delete r[T])}function _(){Object.keys(r).forEach(T=>{var N,S;clearTimeout(r[T]),delete r[T],((S=(N=n[T])===null||N===void 0?void 0:N.length)!==null&&S!==void 0?S:0)===0&&delete n[T]})}function w(T){E(T),r[T]=setTimeout(()=>{var N,S;delete r[T],!(((S=(N=n[T])===null||N===void 0?void 0:N.length)!==null&&S!==void 0?S:0)>0)&&(h(T),delete n[T])},JD)}return{socket:o,subscribeToRoom:(T,N)=>{n[T]?E(T):(f(T),n[T]=[]),n[T].push(N);let S=!1;return()=>{var R,D;S||(S=!0,n[T]=(D=(R=n[T])===null||R===void 0?void 0:R.filter(M=>M!==N))!==null&&D!==void 0?D:[],n[T].length===0&&w(T))}},updateConfig:d,updateModel:m,disconnect:l}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(` 226 PartySocket requires a global 'EventTarget' class to be available! 227 You can polyfill this global by adding this to your code before any partysocket imports: 228 229 \`\`\` 230 import 'partysocket/event-target-polyfill'; 231 \`\`\` 232 Please file an issue at https://github.com/partykit/partykit if you're still having trouble. 233`);
vendor: 5,074 bytes, line 233
233var d_=class extends Event{constructor(t,n){super("error",n);ht(this,"message");ht(this,"error");this.message=t.message,this.error=t}},f_=class extends Event{constructor(t=1e3,n="",r){super("close",r);ht(this,"code");ht(this,"reason");ht(this,"wasClean",!0);this.code=t,this.reason=n}},gm={Event,ErrorEvent:d_,CloseEvent:f_};function eM(e,t){if(!e)throw new Error(t)}function tM(e){return new e.constructor(e.type,e)}function nM(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new f_(e.code||1999,e.reason||"unknown reason",e):"error"in e?new d_(e.error,e):new Event(e.type,e)}var T2,rM=typeof process<"u"&&typeof((T2=process.versions)==null?void 0:T2.node)<"u"&&typeof document>"u",Ed=rM?nM:tM,Fi={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},fv=!1,sM=class Ui extends EventTarget{constructor(n,r,s={}){super();ht(this,"_ws");ht(this,"_retryCount",-1);ht(this,"_uptimeTimeout");ht(this,"_connectTimeout");ht(this,"_shouldReconnect",!0);ht(this,"_connectLock",!1);ht(this,"_binaryType","blob");ht(this,"_closeCalled",!1);ht(this,"_messageQueue",[]);ht(this,"_url");ht(this,"_protocols");ht(this,"_options");ht(this,"onclose",null);ht(this,"onerror",null);ht(this,"onmessage",null);ht(this,"onopen",null);ht(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:r=Fi.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),r),eM(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(s=>{var o;return(o=this._ws)==null?void 0:o.send(s)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Ed(n))});ht(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Ed(n))});ht(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Ed(n)),this._connect()});ht(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Ed(n))});this._url=n,this._protocols=r,this._options=s,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 Ui.CONNECTING}get OPEN(){return Ui.OPEN}get CLOSING(){return Ui.CLOSING}get CLOSED(){return Ui.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,s)=>(typeof s=="string"?r+=s.length:s instanceof Blob?r+=s.size:r+=s.byteLength,r),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?Ui.CLOSED:Ui.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,r){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(n,r)}reconnect(n,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,r),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:r=Fi.maxEnqueuedMessages}=this._options;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=Fi.reconnectionDelayGrowFactor,minReconnectionDelay:r=Fi.minReconnectionDelay,maxReconnectionDelay:s=Fi.maxReconnectionDelay}=this._options;let o=0;return this._retryCount>0&&(o=r*Math.pow(n,this._retryCount-1),o>s&&(o=s)),this._debug("next delay",o),o}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const r=n();if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(r.then)return r}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const r=n();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
233const{maxRetries:n=Fi.maxRetries,connectionTimeout:r=Fi.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);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(([s,o])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!fv&&(console.error(`â¼ï¸ No WebSocket implementation available. You should define options.WebSocket. 234 235For example, if you're using node.js, run \`npm install ws\`, and then in your code: 236 237import PartySocket from 'partysocket'; 238import WS from 'ws'; 239 240const partysocket = new PartySocket({ 241 host: "127.0.0.1:1999", 242 room: "test-room", 243 WebSocket: WS 244}); 245 246`),fv=!0);const u=this._options.WebSocket||WebSocket;this._debug("connect",{url:s,protocols:o}),this._ws=o?new u(s,o):new u(s),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),r)}).catch(s=>{this._connectLock=!1,this._handleError(new gm.ErrorEvent(Error(s.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new gm.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,r){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,r),this._handleClose(new gm.CloseEvent(n,r,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_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)}};/*! 247 * Reconnecting WebSocket 248 * by Pedro Ladaria <[email protected]> 249 * https://github.com/pladaria/reconnecting-websocket 250 * License MIT 251 */const iM=1e3,oM=3e3,aM=new Set([405,409,422,503]),uM=new Set([400,403,404]);function lM(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function cM(e){return e instanceof Error?e:new Error(String(e))}class dM{constructor(t,n,r,s,o){var u;this.onClose=o,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(u=s==null?void 0:s.id)!==null&&u!==void 0?u:crypto.randomUUID();let l=r.transport==="proxy";const d=async()=>{var b;if(this.closed)throw new Error("Actor connection is closed");if(!l)try{const{websocket_url:E,token:_}=await r.mintConnectionToken(t,n,this.id),w=E.includes("?")?"&":"?";return`${E}${w}token=${encodeURIComponent(_)}`}catch(E){const _=lM(E);if(!(r.transport!=="direct"&&_!==void 0&&aM.has(_))){_!==void 0&&uM.has(_)&&this.close();try{(b=r.onMintError)===null||b===void 0||b.call(r,cM(E))}catch{}throw E}l=!0}return hM(r.host,t,n,this.id,r.appId,r.getAuthToken(),r.functionsVersion)},f=new sM(d);this.ws=f;let h=Date.now();const m=()=>{h=Date.now()};f.addEventListener("open",m),f.addEventListener("message",b=>{m();let E;try{E=JSON.parse(b.data)}catch{return}if((E&&typeof E=="object"?E.type:void 0)!=="__pong")for(const w of this.listeners)w(E)}),this.heartbeat=setInterval(()=>{if(Date.now()-h>oM){m(),f.readyState===f.OPEN&&f.reconnect();return}try{f.send(JSON.stringify({type:"__ping"}))}catch{}},iM)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function fM(e,t,n,r){let s=null;return{connect(o){if(s)return s;const u=new dM(e,t,n,o,()=>{r.delete(u),s===u&&(s=null)});return s=u,r.add(u),u}}}function hM(e,t,n,r,s,o,u){let l=e.replace(/^(http|https|ws|wss):\/\//,"");l.endsWith("/")&&(l=l.slice(0,-1));const d=l.startsWith("localhost:")||l.startsWith("127.0.0.1:")||l.startsWith("192.168.")||l.startsWith("10.")||l.startsWith("172.")&&l.split(".")[1]>="16"&&l.split(".")[1]<="31"||l.startsWith("[::ffff:7f00:1]:"),f=new URLSearchParams([["_pk",r],["app_id",s],["handler",t]]);return o&&f.append("token",o),u&&f.append("fv",u),`${d?"ws":"wss"}://${l}/parties/${t}/${n}?${f}`}function pM(e,t){return e&&!e.startsWith("/")?e:t??e}function mM(e){const t=new Set;return{module:new Proxy({}
251,{get(r,s){if(!(typeof s!="string"||s==="then"))return o=>fM(s,o,e,t)}}),closeAll:()=>{for(const r of[...t])r.close()}}}function gM(e){var t,n,r,s;const{serverUrl:o="https://base44.app",appId:u,analytics:l,token:d,serviceToken:f,requiresAuth:h=!1,appBaseUrl:m,options:b,functionsVersion:E,headers:_}=e,w=typeof m=="string"?m:"",A={serverUrl:o,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:u,token:d};let T=null;const N=()=>(T||(T=ZD({config:A})),T),S={..._,"X-App-Id":String(u)},R=E?{...S,"Base44-Functions-Version":E}:S,D=ta({baseURL:`${o}/api`,headers:S,token:d,onError:b==null?void 0:b.onError}),M=ta({baseURL:`${o}/api`,headers:R,token:d,interceptResponses:!1,onError:b==null?void 0:b.onError}),W={...S,...d?{"on-behalf-of":`Bearer ${d}`}:{}},H=ta({baseURL:`${o}/api`,headers:W,token:f,onError:b==null?void 0:b.onError}),se=ta({baseURL:`${o}/api`,headers:R,token:f,interceptResponses:!1}),J=ta({baseURL:`${o}/api`,headers:S}),ee=$6(D,M,u,{appBaseUrl:w,token:d});if(typeof window<"u"){const de=d||li();de&&ee.setToken(de)}const oe=mM({appId:u,host:pM(o,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:E,getAuthToken:()=>d||li(),mintConnectionToken:async(de,ae,$)=>{const fe=d||li();return await J.post(`/apps/${u}/actors/${encodeURIComponent(de)}/connection-token`,{room:ae,connection_id:$},{headers:{...fe?{Authorization:`Bearer ${fe}`}:{},...E?{"Base44-Functions-Version":E}:{}}})},transport:b==null?void 0:b.actorsTransport,onMintError:b==null?void 0:b.onError}),ie={entities:tv({axios:D,appId:u,getSocket:N}),integrations:nv(D,u),connectors:G6(D,u),auth:ee,functions:rv(M,u,{getAuthHeaders:()=>{const de={},ae=d||li();return ae&&(de.Authorization=`Bearer ${ae}`),de},baseURL:(n=M.defaults)===null||n===void 0?void 0:n.baseURL}),agents:sv({axios:D,getSocket:N,appId:u,serverUrl:o,token:d}),aiGateway:iv({serverUrl:o,token:d,appId:u}),appLogs:ov(D,u),app:eD(D,u),users:tD(D,u),analytics:P6({axiosClient:D,serverUrl:o,appId:u,userAuthModule:ee,enabled:(r=l==null?void 0:l.enabled)!==null&&r!==void 0?r:!0}),actors:oe.module,cleanup:()=>{ie.analytics.cleanup(),oe.closeAll(),T&&T.disconnect()}},ne={entities:tv({axios:H,appId:u,getSocket:N}),integrations:nv(H,u),sso:q6(H,u),connectors:K6(H,u),functions:rv(se,u,{getAuthHeaders:()=>{const de={};return f&&(de.Authorization=`Bearer ${f}`),de},baseURL:(s=se.defaults)===null||s===void 0?void 0:s.baseURL}),agents:sv({axios:H,getSocket:N,appId:u,serverUrl:o,token:d}),aiGateway:iv({serverUrl:o,token:f,appId:u}),appLogs:ov(H,u),cleanup:()=>{T&&T.disconnect()}};return h&&typeof window<"u"&&setTimeout(async()=>{try{await ie.auth.isAuthenticated()||ie.auth.redirectToLogin(window.location.href)}catch(de){console.error("Authentication check failed:",de),ie.auth.redirectToLogin(window.location.href)}},0),{...ie,fetchWithAuth:J6({axios:D,serviceRoleAxios:H,appId:String(u),serverUrl:o,functionsVersion:E,platformHeaders:_}),setToken(de){ie.auth.setToken(de),T&&T.updateConfig({token:de}),A.token=de},getConfig(){return{serverUrl:o,appId:u,requiresAuth:h}},get asServiceRole(){if(!f)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return ne}}}const h_=typeof window>"u",yM=h_?{localStorage:new Map}:window,Zu=yM.localStorage,bM=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Qo=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(h_)return t;const r=`base44_${bM(e)}`,s=new URLSearchParams(window.location.search),o=s.get(e);if(n){s.delete(e);const l=`${window.location.pathname}${s.toString()?`?${s.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,l)}if(o)return Zu.setItem(r,o),o;if(t)return Zu.setItem(r,t),t;const u=Zu.getItem(r);return u||null},xM=()=>(Qo("clear_access_token")==="true"&&(Zu.removeItem("base44_access_token"),Zu.removeItem("token")),{appId:Qo("app_id",{defaultValue:"69822543e328cc4f9bc9a953"}),token:Qo("access_token",{removeFromUrl:!0}),fromUrl:Qo("from_url",{defaultValue:window.location.href}),functionsVersion:Qo("functions_version",{defaultValue:"prod"}),appBaseUrl:Qo("app_base_url",{defaultValue:void 0})}),qu={...xM()},{appId:EM,token:vM,functionsVersion:TM,appBaseUrl:wM}=qu,rn=gM({appId:EM,token:vM,functionsVersion:TM,serverUrl:"",requiresAuth:!1,appBaseUrl:wM}),p_=C.createContext(),SM=({children:e})=>{const[t,n]=C.useState(null),[r,s]=C.useState(!1),[o,u]=C.useState(!0),[l,d]=C.useState(!0),[f,h]=C.useState(null),[m,b]=C.useState(null);C.useEffect(()=>{E()},[]);const E=async()=>{var T,N;try{d(!0),h(null);const S=ta({baseURL:"/api/apps/public",headers:{"X-App-Id":qu.appId},token:qu.token,interceptResponses:!0});try{const R=await S.get(`/prod/public-settings/by-id/${qu.appId}`);b(R),qu.token?await _():(u(!1),s(!1)),d(!1)}catch(R){if(console.error("App state check failed:",R),R.status===403&&((N=(T=R.data)==null?void 0:T.extra_data)!=null&&N.reason)){const D=R.data.extra_data.reason;h(D==="auth_required"?{type:"auth_required",message:"Authentication required"}:D==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:D,message:R.message})}else h({type:"unknown",message:R.message||"Failed to load app"});d(!1),u(!1)}}catch(S){console.error("Unexpected error:",S),h({type:"unknown",message:S.message||"An unexpected error occurred"}),d(!1),u(!1)}},_=async()=>{try{u(!0);const T=await rn.auth.me();n(T),s(!0),u(!1)}catch(T){console.error("User auth check failed:",T),u(!1),s(!1),(T.status===401||T.status===403)&&h({type:"auth_required",message:"Authentication required"})}},w=(T=!0)=>{n(null),s(!1),T?rn.auth.logout(window.location.href):rn.auth.logout()},A=()=>{rn.auth.redirectToLogin(window.location.href)};return g.jsx(p_.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:o,isLoadingPublicSettings:l,authError:f,appPublicSettings:m,logout:w,navigateToLogin:A,checkAppState:E},children:e})},m_=()=>{const e=C.useContext(p_);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},Df=C.createContext(null);function Da(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Mf=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class _M extends C.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function CM({children:e,isPresent:t}){const n=C.useId(),r=C.useRef(null),s=C.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=C.useContext(Mf);return C.useInsertionEffect(()=>{const{width:u,height:l,top:d,left:f}=s.current;if(t||!r.current||!u||!l)return;r.current.dataset.motionPopId=n;const h=document.createElement("style");return o&&(h.nonce=o),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(` 252 [data-motion-pop-id="${n}"] { 253 position: absolute !important; 254 width: ${u}px !important; 255 height: ${l}px !important; 256 top: ${d}px !important; 257 left: ${f}px !important; 258 } 259 `),()=>{document.head.removeChild(h)}},[t]),g.jsx(_M,{isPresent:t,childRef:r,sizeRef:s,children:C.cloneElement(e,{ref:r})})}const AM=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:u})=>{const l=Da(NM),d=C.useId(),f=C.useCallback(m=>{l.set(m,!0);for(const b of l.values())if(!b)return;r&&r()},[l,r]),h=C.useMemo(()=>({id:d,initial:t,isPresent:n,custom:s,onExitComplete:f,register:m=>(l.set(m,!1),()=>l.delete(m))}),o?[Math.random(),f]:[n,f]);return C.useMemo(()=>{l.forEach((m,b)=>l.set(b,!1))},[n]),C.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),u==="popLayout"&&(e=g.jsx(CM,{isPresent:n,children:e})),g.jsx(Df.Provider,{value:h,children:e})};function NM(){return new Map}const Gg=C.createContext({}),_n=e=>e;let kM=_n,g_=_n;function Xg(e){let t;return()=>(t===void 0&&(t=e()),t)}const lo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},xs=e=>e*1e3,Es=e=>e/1e3,vd=e=>e.key||"";function hv(e){const t=[];
vendor: 40,102 bytes, line 259
259return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const Jg=typeof window<"u",Bf=Jg?C.useLayoutEffect:C.useEffect,Ff=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:u="sync"})=>{const l=C.useMemo(()=>hv(e),[e]),d=l.map(vd),f=C.useRef(!0),h=C.useRef(l),m=Da(()=>new Map),[b,E]=C.useState(l),[_,w]=C.useState(l);Bf(()=>{f.current=!1,h.current=l;for(let N=0;N<_.length;N++){const S=vd(_[N]);d.includes(S)?m.delete(S):m.get(S)!==!0&&m.set(S,!1)}},[_,d.length,d.join("-")]);const A=[];if(l!==b){let N=[...l];for(let S=0;S<_.length;S++){const R=_[S],D=vd(R);d.includes(D)||(N.splice(S,0,R),A.push(R))}u==="wait"&&A.length&&(N=A),w(hv(N)),E(l);return}const{forceRender:T}=C.useContext(Gg);return g.jsx(g.Fragment,{children:_.map(N=>{const S=vd(N),R=l===_||d.includes(S),D=()=>{if(m.has(S))m.set(S,!0);else return;let M=!0;m.forEach(W=>{W||(M=!1)}),M&&(T==null||T(),w(h.current),s&&s())};return g.jsx(AM,{isPresent:R,initial:!f.current||r?void 0:!1,custom:R?void 0:n,presenceAffectsLayout:o,mode:u,onExitComplete:R?void 0:D,children:N},S)})})},RM={useManualTiming:!1};function PM(e){let t=new Set,n=new Set,r=!1,s=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(f){o.has(f)&&(d.schedule(f),e()),f(u)}const d={schedule:(f,h=!1,m=!1)=>{const E=m&&r?t:n;return h&&o.add(f),E.has(f)||E.add(f),f},cancel:f=>{n.delete(f),o.delete(f)},process:f=>{if(u=f,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,s&&(s=!1,d.process(f))}};return d}const Td=["read","resolveKeyframes","update","preRender","render","postRender"],IM=40;function y_(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,u=Td.reduce((T,N)=>(T[N]=PM(o),T),{}),{read:l,resolveKeyframes:d,update:f,preRender:h,render:m,postRender:b}=u,E=()=>{const T=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(T-s.timestamp,IM),1),s.timestamp=T,s.isProcessing=!0,l.process(s),d.process(s),f.process(s),h.process(s),m.process(s),b.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(E))},_=()=>{n=!0,r=!0,s.isProcessing||e(E)};return{schedule:Td.reduce((T,N)=>{const S=u[N];return T[N]=(R,D=!1,M=!1)=>(n||_(),S.schedule(R,D,M)),T},{}),cancel:T=>{for(let N=0;N<Td.length;N++)u[Td[N]].cancel(T)},state:s,steps:u}}const{schedule:rt,cancel:Ar,state:Yt,steps:ym}=y_(typeof requestAnimationFrame<"u"?requestAnimationFrame:_n,!0),b_=C.createContext({strict:!1}),pv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Sa={};for(const e in pv)Sa[e]={isEnabled:t=>pv[e].some(n=>!!t[n])};function OM(e){for(const t in e)Sa[t]={...Sa[t],...e[t]}}const LM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ff(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||LM.has(e)}let x_=e=>!ff(e);function DM(e){e&&(x_=t=>t.startsWith("on")?!ff(t):e(t))}try{DM(require("@emotion/is-prop-valid").default)}catch{}function MM(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(x_(s)||n===!0&&ff(s)||!t&&!ff(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function BM(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const jf=C.createContext({});function El(e){return typeof e=="string"||Array.isArray(e)}function Uf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Zg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ey=["initial",...Zg];function Hf(e){return Uf(e.animate)||ey.some(t=>El(e[t]))}function E_(e){return!!(Hf(e)||e.variants)}function FM(e,t){if(Hf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||El(n)?n:void 0,animate:El(r)?r:void 0}}return e.inherit!==!1?t:{}}function jM(e){const{initial:t,animate:n}=FM(e,C.useContext(jf));return C.useMemo(()=>({initial:t,animate:n}),[mv(t),mv(n)])}function mv(e){return Array.isArray(e)?e.join(" "):e}const UM=Symbol.for("motionComponentSymbol");function na(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function HM(e,t,n){return C.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):na(n)&&(n.current=r))},[t])}const ty=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),VM="framerAppearId",v_="data-"+ty(VM),{schedule:ny}=y_(queueMicrotask,!1),T_=C.createContext({});function zM(e,t,n,r,s){var o,u;const{visualElement:l}=C.useContext(jf),d=C.useContext(b_),f=C.useContext(Df),h=C.useContext(Mf).reducedMotion,m=C.useRef(null);r=r||d.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const b=m.current,E=C.useContext(T_);b&&!b.projection&&s&&(b.type==="html"||b.type==="svg")&&WM(m.current,n,s,E);const _=C.useRef(!1);C.useInsertionEffect(()=>{b&&_.current&&b.update(n,f)});const w=n[v_],A=C.useRef(!!w&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,w))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,w)));return Bf(()=>{b&&(_.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),ny.render(b.render),A.current&&b.animationState&&b.animationState.animateChanges())}),C.useEffect(()=>{b&&(!A.current&&b.animationState&&b.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)===null||T===void 0||T.call(window,w)}),A.current=!1))}),b}function WM(e,t,n,r){const{layoutId:s,layout:o,drag:u,dragConstraints:l,layoutScroll:d,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:w_(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!u||l&&na(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:d,layoutRoot:f})}function w_(e){if(e)return e.options.allowProjection!==!1?e.projection:w_(e.parent)}function $M({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var o,u;e&&OM(e);function l(f,h){let m;const b={...C.useContext(Mf),...f,layoutId:qM(f)},{isStatic:E}=b,_=jM(f),w=r(f,E);if(!E&&Jg){YM();const A=KM(b);m=A.MeasureLayout,_.visualElement=zM(s,w,b,t,A.ProjectionNode)}return g.jsxs(jf.Provider,{value:_,children:[m&&_.visualElement?g.jsx(m,{visualElement:_.visualElement,...b}):null,n(s,f,HM(w,_.visualElement,h),w,E,_.visualElement)]})}l.displayName=`motion.${typeof s=="string"?s:`create(${(u=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&u!==void 0?u:""})`}`;const d=C.forwardRef(l);return d[UM]=s,d}function qM({layoutId:e}){const t=C.useContext(Gg).id;return t&&e!==void 0?t+"-"+e:e}function YM(e,t){C.useContext(b_).strict}function KM(e){const{drag:t,layout:n}=Sa;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const QM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ry(e){return typeof e!="string"||e.includes("-")?!1:!!(QM.indexOf(e)>-1||/[A-Z]/u.test(e))}function S_(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const __=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function C_(e,t,n,r){S_(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(__.has(s)?s:ty(s),t.attrs[s])}const mn=e=>!!(e&&e.getVelocity),hf={};function GM(e){Object.assign(hf,e)}const $l=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bo=new Set($l);function A_(e,{layout:t,layoutId:n}){return bo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!hf[e]||e==="opacity")}function sy(e,t,n){var r;const{style:s}=e,o={};for(const u in s)(mn(s[u])||t.style&&mn(t.style[u])||A_(u,e)||((r=n==null?void 0:n.getValue(u))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[u]=s[u]);return o}function N_(e,t,n){const r=sy(e,t,n);for(const s in e)if(mn(e[s])||mn(t[s])){const o=$l.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}function gv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function iy(e,t,n,r){if(typeof t=="function"){const[s,o]=gv(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=gv(r);t=t(n!==void 0?n:e.custom,s,o)}return t}const L0=e=>Array.isArray(e),XM=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),JM=e=>L0(e)?e[e.length-1]||0:e;function Kd(e){const t=mn(e)?e.get():e;return XM(t)?t.toValue():t}function ZM({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,s,o){const u={latestValues:e5(r,s,o,e),renderState:t()};return n&&(u.mount=l=>n(r,l,u)),u}const k_=e=>(t,n)=>{const r=C.useContext(jf),s=C.useContext(Df),o=()=>ZM(e,t,r,s);return n?o():Da(o)};function e5(e,t,n,r){const s={},o=r(e,{});for(const b in o)s[b]=Kd(o[b]);let{initial:u,animate:l}=e;const d=Hf(e),f=E_(e);t&&f&&!d&&e.inherit!==!1&&(u===void 0&&(u=t.initial),l===void 0&&(l=t.animate));let h=n?n.initial===!1:!1;h=h||u===!1;const m=h?l:u;if(m&&typeof m!="boolean"&&!Uf(m)){const b=Array.isArray(m)?m:[m];for(let E=0;E<b.length;E++){const _=iy(e,b[E]);if(_){const{transitionEnd:w,transition:A,...T}=_;for(const N in T){let S=T[N];if(Array.isArray(S)){const R=h?S.length-1:0;S=S[R]}S!==null&&(s[N]=S)}for(const N in w)s[N]=w[N]}}}return s}const oy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),R_=()=>({...oy(),attrs:{}}),P_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ts=(e,t,n)=>n>t?t:n<e?e:n,Ma={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vl={...Ma,transform:e=>Ts(0,1,e)},wd={...Ma,default:1},ql=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qs=ql("deg"),Qr=ql("%"),Ue=ql("px"),t5=ql("vh"),n5=ql("vw"),yv={...Qr,parse:e=>Qr.parse(e)/100,transform:e=>Qr.transform(e*100)},r5={borderWidth:Ue,borderTopWidth:Ue,borderRightWidth:Ue,borderBottomWidth:Ue,borderLeftWidth:Ue,borderRadius:Ue,radius:Ue,borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomRightRadius:Ue,borderBottomLeftRadius:Ue,width:Ue,maxWidth:Ue,height:Ue,maxHeight:Ue,top:Ue,right:Ue,bottom:Ue,left:Ue,padding:Ue,paddingTop:Ue,paddingRight:Ue,paddingBottom:Ue,paddingLeft:Ue,margin:Ue,marginTop:Ue,marginRight:Ue,marginBottom:Ue,marginLeft:Ue,backgroundPositionX:Ue,backgroundPositionY:Ue},s5={rotate:Qs,rotateX:Qs,rotateY:Qs,rotateZ:Qs,scale:wd,scaleX:wd,scaleY:wd,scaleZ:wd,skew:Qs,skewX:Qs,skewY:Qs,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:vl,originX:yv,originY:yv,originZ:Ue},bv={...Ma,transform:Math.round},ay={...r5,...s5,zIndex:bv,size:Ue,fillOpacity:vl,strokeOpacity:vl,numOctaves:bv},i5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o5=$l.length;function a5(e,t,n){let r="",s=!0;for(let o=0;o<o5;o++){const u=$l[o],l=e[u];if(l===void 0)continue;let d=!0;if(typeof l=="number"?d=l===(u.startsWith("scale")?1:0):d=parseFloat(l)===0,!d||n){const f=P_(l,ay[u]);if(!d){s=!1;const h=i5[u]||u;r+=`${h}(${f}) `}n&&(t[u]=f)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}const I_=e=>t=>typeof t=="string"&&t.startsWith(e),O_=I_("--"),u5=I_("var(--"),uy=e=>u5(e)?l5.test(e.split("/*")[0].trim()):!1,l5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ly(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let u=!1,l=!1;for(const d in t){const f=t[d];if(bo.has(d)){u=!0;continue}else if(O_(d)){s[d]=f;continue}else{const h=P_(f,ay[d]);d.startsWith("origin")?(l=!0,o[d]=h):r[d]=h}}if(t.transform||(u||n?r.transform=a5(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:d="50%",originY:f="50%",originZ:h=0}=o;r.transformOrigin=`${d} ${f} ${h}`}}function xv(e,t,n){return typeof e=="string"?e:Ue.transform(t+n*e)}function c5(e,t,n){const r=xv(t,e.x,e.width),s=xv(n,e.y,e.height);return`${r} ${s}`}const d5={offset:"stroke-dashoffset",array:"stroke-dasharray"},f5={offset:"strokeDashoffset",array:"strokeDasharray"};function h5(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?d5:f5;e[o.offset]=Ue.transform(-r);const u=Ue.transform(t),l=Ue.transform(n);e[o.array]=`${u} ${l}`}function cy(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:o,pathLength:u,pathSpacing:l=1,pathOffset:d=0,...f},h,m){if(ly(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:E,dimensions:_}=e;b.transform&&(_&&(E.transform=b.transform),delete b.transform),_&&(s!==void 0||o!==void 0||E.transform)&&(E.transformOrigin=c5(_,s!==void 0?s:.5,o!==void 0?o:.5)),t!==void 0&&(b.x=t),n!==void 0&&(b.y=n),r!==void 0&&(b.scale=r),u!==void 0&&h5(b,u,l,d,!1)}const dy=e=>typeof e=="string"&&e.toLowerCase()==="svg",p5={useVisualState:k_({scrapeMotionValuesFromProps:N_,createRenderState:R_,onMount:(e,t,{renderState:n,latestValues:r})=>{rt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),rt.render(()=>{cy(n,r,dy(t.tagName),e.transformTemplate),C_(t,n)})}})},m5={useVisualState:k_({scrapeMotionValuesFromProps:sy,createRenderState:oy})};function L_(e,t,n){for(const r in t)!mn(t[r])&&!A_(r,n)&&(e[r]=t[r])}function g5({transformTemplate:e},t){return C.useMemo(()=>{const n=oy();return ly(n,t,e),Object.assign({},n.vars,n.style)},[t])}function y5(e,t){const n=e.style||{},r={};return L_(r,n,e),Object.assign(r,g5(e,t)),r}function b5(e,t){const n={},r=y5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function x5(e,t,n,r){const s=C.useMemo(()=>{const o=R_();return cy(o,t,dy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};L_(o,e.style,e),s.style={...o,...s.style}}return s}function E5(e=!1){return(n,r,s,{latestValues:o},u)=>{const d=(ry(n)?x5:b5)(r,o,u,n),f=MM(r,typeof n=="string",e),h=n!==C.Fragment?{...f,...d,ref:s}:{},{children:m}=r,b=C.useMemo(()=>mn(m)?m.get():m,[m]);return C.createElement(n,{...h,children:b})}}function v5(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const u={...ry(r)?p5:m5,preloadedFeatures:e,useRender:E5(s),createVisualElement:t,Component:r};return $M(u)}}function D_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Vf(e,t,n){const r=e.getProps();return iy(r,t,n!==void 0?n:r.custom,e)}const M_=Xg(()=>window.ScrollTimeline!==void 0);class T5{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(M_()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,o)=>{s&&s(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class w5 extends T5{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function fy(e,t){return e?e[t]||e.default||e:void 0}const D0=2e4;function B_(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<D0;)t+=n,r=e.next(t);return t>=D0?1/0:t}function hy(e){return typeof e=="function"}function Ev(e,t){e.timeline=t,e.onfinish=null}const py=e=>Array.isArray(e)&&typeof e[0]=="number",S5={linearEasing:void 0};function _5(e,t){const n=Xg(e);return()=>{var r;return(r=S5[t])!==null&&r!==void 0?r:n()}}const pf=_5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),F_=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=e(lo(0,s-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function j_(e){return!!(typeof e=="function"&&pf()||!e||typeof e=="string"&&(e in M0||pf())||py(e)||Array.isArray(e)&&e.every(j_))}const Yu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,M0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yu([0,.65,.55,1]),circOut:Yu([.55,0,1,.45]),backIn:Yu([.31,.01,.66,-.59]),backOut:Yu([.33,1.53,.69,.99])};function U_(e,t){if(e)return typeof e=="function"&&pf()?F_(e,t):py(e)?Yu(e):Array.isArray(e)?e.map(n=>U_(n,t)||M0.easeOut):M0[e]}const Tr={x:!1,y:!1};function H_(){return Tr.x||Tr.y}function my(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const o=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function V_(e,t){const n=my(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function vv(e){return t=>{t.pointerType==="touch"||H_()||e(t)}}function C5(e,t,n={}){const[r,s,o]=V_(e,n),u=vv(l=>{const{target:d}=l,f=t(l);if(typeof f!="function"||!d)return;const h=vv(m=>{f(m),d.removeEventListener("pointerleave",h)});d.addEventListener("pointerleave",h,s)});return r.forEach(l=>{l.addEventListener("pointerenter",u,s)}),o}const z_=(e,t)=>t?e===t?!0:z_(e,t.parentElement):!1,gy=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,A5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function N5(e){return A5.has(e.tagName)||e.tabIndex!==-1}const Ku=new WeakSet;function Tv(e){return t=>{t.key==="Enter"&&e(t)}}function bm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const k5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Tv(()=>{if(Ku.has(n))return;bm(n,"down");const s=Tv(()=>{bm(n,"up")}),o=()=>bm(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function wv(e){return gy(e)&&!H_()}function R5(e,t,n={}){const[r,s,o]=V_(e,n),u=l=>{const d=l.currentTarget;if(!wv(l)||Ku.has(d))return;Ku.add(d);const f=t(l),h=(E,_)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",b),!(!wv(E)||!Ku.has(d))&&(Ku.delete(d),typeof f=="function"&&f(E,{success:_}))},m=E=>{h(E,n.useGlobalTarget||z_(d,E.target))},b=E=>{h(E,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",b,s)};return r.forEach(l=>{!N5(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",u,s),l.addEventListener("focus",f=>k5(f,s),s)}),o}function P5(e){return e==="x"||e==="y"?Tr[e]?null:(Tr[e]=!0,()=>{Tr[e]=!1}):Tr.x||Tr.y?null:(Tr.x=Tr.y=!0,()=>{Tr.x=Tr.y=!1})}let Qd;function I5(){Qd=void 0}const Gr={now:()=>(Qd===void 0&&Gr.set(Yt.isProcessing||RM.useManualTiming?Yt.timestamp:performance.now()),Qd),set:e=>{Qd=e,queueMicrotask(I5)}};function yy(e,t){e.indexOf(t)===-1&&e.push(t)}function by(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class xy{constructor(){this.subscriptions=[]}add(t){return yy(this.subscriptions,t),()=>by(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const u=this.subscriptions[o];u&&u(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Ey(e,t){return t?e*(1e3/t):0}const Sv=30,O5=e=>!isNaN(parseFloat(e)),el={current:void 0};class L5{constructor(t,n={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const o=Gr.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Gr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=O5(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new xy);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return el.current&&el.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Gr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Sv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Sv);return Ey(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qr(e,t){return new L5(e,t)}function D5(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qr(n))}function M5(e,t){const n=Vf(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const u in o){const l=JM(o[u]);D5(e,u,l)}}function B5(e){return!!(mn(e)&&e.add)}function B0(e,t){const n=e.getValue("willChange");if(B5(n))return n.add(t)}function W_(e){return e.props[v_]}const $_=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,F5=1e-7,j5=12;function U5(e,t,n,r,s){let o,u,l=0;do u=t+(n-t)/2,o=$_(u,r,s)-e,o>0?n=u:t=u;while(Math.abs(o)>F5&&++l<j5);return u}function Yl(e,t,n,r){if(e===t&&n===r)return _n;const s=o=>U5(o,0,1,e,n);return o=>o===0||o===1?o:$_(s(o),t,r)}const q_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Y_=e=>t=>1-e(1-t),K_=Yl(.33,1.53,.69,.99),vy=Y_(K_),Q_=q_(vy),G_=e=>(e*=2)<1?.5*vy(e):.5*(2-Math.pow(2,-10*(e-1))),Ty=e=>1-Math.sin(Math.acos(e)),X_=Y_(Ty),J_=q_(Ty),Z_=e=>/^0[^.\s]+$/u.test(e);function H5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Z_(e):!0}const eC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),V5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function z5(e){const t=V5.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function tC(e,t,n=1){const[r,s]=z5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const u=o.trim();return eC(u)?parseFloat(u):u}return uy(s)?tC(s,t,n+1):s}const W5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),_v=e=>e===Ma||e===Ue,Cv=(e,t)=>parseFloat(e.split(", ")[t]),Av=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Cv(s[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Cv(o[1],e):0}},$5=new Set(["x","y","z"]),q5=$l.filter(e=>!$5.has(e));function Y5(e){const t=[];return q5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const _a={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Av(4,13),y:Av(5,14)};_a.translateX=_a.x;_a.translateY=_a.y;const nC=e=>t=>t.test(e),K5={test:e=>e==="auto",parse:e=>e},rC=[Ma,Ue,Qr,Qs,n5,t5,K5],Nv=e=>rC.find(nC(e)),ro=new Set;let F0=!1,j0=!1;function sC(){if(j0){const e=Array.from(ro).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=Y5(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([o,u])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(u)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}j0=!1,F0=!1,ro.forEach(e=>e.complete()),ro.clear()}function iC(){ro.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(j0=!0)})}function Q5(){iC(),sC()}class wy{constructor(t,n,r,s,o,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=o,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ro.add(this),F0||(F0=!0,rt.read(iC),rt.resolveKeyframes(sC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const u=s==null?void 0:s.get(),l=t[t.length-1];if(u!==void 0)t[0]=u;else if(r&&n){const d=r.readValue(n,l);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=l),s&&u===void 0&&s.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ro.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ro.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const tl=e=>Math.round(e*1e5)/1e5,Sy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function G5(e){return e==null}const X5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_y=(e,t)=>n=>!!(typeof n=="string"&&X5.test(n)&&n.startsWith(e)||t&&!G5(n)&&Object.prototype.hasOwnProperty.call(n,t)),oC=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,u,l]=r.match(Sy);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(u),alpha:l!==void 0?parseFloat(l):1}},J5=e=>Ts(0,255,e),xm={...Ma,transform:e=>Math.round(J5(e))},$i={test:_y("rgb","red"),parse:oC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xm.transform(e)+", "+xm.transform(t)+", "+xm.transform(n)+", "+tl(vl.transform(r))+")"};function Z5(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const U0={test:_y("#"),parse:Z5,transform:$i.transform},ra={test:_y("hsl","hue"),parse:oC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Qr.transform(tl(t))+", "+Qr.transform(tl(n))+", "+tl(vl.transform(r))+")"},hn={test:e=>$i.test(e)||U0.test(e)||ra.test(e),parse:e=>$i.test(e)?$i.parse(e):ra.test(e)?ra.parse(e):U0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?$i.transform(e):ra.transform(e)},e8=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function t8(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Sy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(e8))===null||n===void 0?void 0:n.length)||0)>0}const aC="number",uC="color",n8="var",r8="var(",kv="${}",s8=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const l=t.replace(s8,d=>(hn.test(d)?(r.color.push(o),s.push(uC),n.push(hn.parse(d))):d.startsWith(r8)?(r.var.push(o),s.push(n8),n.push(d)):(r.number.push(o),s.push(aC),n.push(parseFloat(d))),++o,kv)).split(kv);return{values:n,split:l,indexes:r,types:s}}function lC(e){return Tl(e).values}function cC(e){const{split:t,types:n}=Tl(e),r=t.length;return s=>{let o="";for(let u=0;u<r;u++)if(o+=t[u],s[u]!==void 0){const l=n[u];l===aC?o+=tl(s[u]):l===uC?o+=hn.transform(s[u]):o+=s[u]}return o}}const i8=e=>typeof e=="number"?0:e;function o8(e){const t=lC(e);return cC(e)(t.map(i8))}const mi={test:t8,parse:lC,createTransformer:cC,getAnimatableNone:o8},a8=new Set(["brightness","contrast","saturate","opacity"]);function u8(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Sy)||[];if(!r)return e;const s=n.replace(r,"");let o=a8.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const l8=/\b([a-z-]*)\(.*?\)/gu,H0={...mi,getAnimatableNone:e=>{const t=e.match(l8);return t?t.map(u8).join(" "):e}},c8={...ay,color:hn,backgroundColor:hn,outlineColor:hn,fill:hn,stroke:hn,borderColor:hn,borderTopColor:hn,borderRightColor:hn,borderBottomColor:hn,borderLeftColor:hn,filter:H0,WebkitFilter:H0},Cy=e=>c8[e];function dC(e,t){let n=Cy(e);return n!==H0&&(n=mi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const d8=new Set(["auto","none","0"]);function f8(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!d8.has(o)&&Tl(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=dC(n,s)}class fC extends wy{constructor(t,n,r,s,o){super(t,n,r,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),uy(f))){const h=tC(f,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!W5.has(r)||t.length!==2)return;const[s,o]=t,u=Nv(s),l=Nv(o);if(u!==l)if(_v(u)&&_v(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)H5(t[s])&&r.push(s);r.length&&f8(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_a[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const u=s.length-1,l=s[u];s[u]=_a[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([d,f])=>{n.getValue(d).set(f)}),this.resolveNoneKeyframes()}}const Rv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(mi.test(e)||e==="0")&&!e.startsWith("url("));function h8(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function p8(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],u=Rv(s,t),l=Rv(o,t);return!u||!l?!1:h8(e)||(n==="spring"||hy(n))&&r}const m8=e=>e!==null;function zf(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(m8),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const g8=40;class hC{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:u="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Gr.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:u,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>g8?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Q5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Gr.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:o,delay:u,onComplete:l,onUpdate:d,isGenerator:f}=this.options;if(!f&&!p8(t,r,s,o))if(u)this.options.duration=0;else{d==null||d(zf(t,this.options,n)),l==null||l(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const wt=(e,t,n)=>e+(t-e)*n;function Em(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function y8({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,u=0;if(!t)s=o=u=n;else{const l=n<.5?n*(1+t):n+t-n*t,d=2*n-l;s=Em(d,l,e+1/3),o=Em(d,l,e),u=Em(d,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(u*255),alpha:r}}function mf(e,t){return n=>n>0?t:e}const vm=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},b8=[U0,$i,ra],x8=e=>b8.find(t=>t.test(e));function Pv(e){const t=x8(e);if(!t)return!1;let n=t.parse(e);return t===ra&&(n=y8(n)),n}const Iv=(e,t)=>{const n=Pv(e),r=Pv(t);if(!n||!r)return mf(e,t);const s={...n};return o=>(s.red=vm(n.red,r.red,o),s.green=vm(n.green,r.green,o),s.blue=vm(n.blue,r.blue,o),s.alpha=wt(n.alpha,r.alpha,o),$i.transform(s))},E8=(e,t)=>n=>t(e(n)),Kl=(...e)=>e.reduce(E8),V0=new Set(["none","hidden"]);function v8(e,t){return V0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function T8(e,t){return n=>wt(e,t,n)}function Ay(e){return typeof e=="number"?T8:typeof e=="string"?uy(e)?mf:hn.test(e)?Iv:_8:Array.isArray(e)?pC:typeof e=="object"?hn.test(e)?Iv:w8:mf}function pC(e,t){const n=[...e],r=n.length,s=e.map((o,u)=>Ay(o)(o,t[u]));return o=>{for(let u=0;u<r;u++)n[u]=s[u](o);return n}}function w8(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Ay(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function S8(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const u=t.types[o],l=e.indexes[u][s[u]],d=(n=e.values[l])!==null&&n!==void 0?n:0;r[o]=d,s[u]++}return r}const _8=(e,t)=>{const n=mi.createTransformer(t),r=Tl(e),s=Tl(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?V0.has(e)&&!s.values.length||V0.has(t)&&!r.values.length?v8(e,t):Kl(pC(S8(r,s),s.values),n):mf(e,t)};function mC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?wt(e,t,n):Ay(e)(e,t)}const C8=5;function gC(e,t,n){const r=Math.max(t-C8,0);return Ey(n-e(r),t-r)}const At={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Tm=.001;function A8({duration:e=At.duration,bounce:t=At.bounce,velocity:n=At.velocity,mass:r=At.mass}){let s,o,u=1-t;u=Ts(At.minDamping,At.maxDamping,u),e=Ts(At.minDuration,At.maxDuration,Es(e)),u<1?(s=f=>{const h=f*u,m=h*e,b=h-n,E=z0(f,u),_=Math.exp(-m);return Tm-b/E*_},o=f=>{const m=f*u*e,b=m*n+n,E=Math.pow(u,2)*Math.pow(f,2)*e,_=Math.exp(-m),w=z0(Math.pow(f,2),u);return(-s(f)+Tm>0?-1:1)*((b-E)*_)/w}):(s=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-Tm+h*m},o=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const l=5/e,d=k8(s,o,l);if(e=xs(e),isNaN(d))return{stiffness:At.stiffness,damping:At.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:u*2*Math.sqrt(r*f),duration:e}}}const N8=12;function k8(e,t,n){let r=n;for(let s=1;s<N8;s++)r=r-e(r)/t(r);return r}function z0(e,t){return e*Math.sqrt(1-t*t)}const R8=["duration","bounce"],P8=["stiffness","damping","mass"];function Ov(e,t){return t.some(n=>e[n]!==void 0)}function I8(e){let t={velocity:At.velocity,stiffness:At.stiffness,damping:At.damping,mass:At.mass,isResolvedFromDuration:!1,...e};if(!Ov(e,P8)&&Ov(e,R8))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*Ts(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:At.mass,stiffness:s,damping:o}}else{const n=A8(e);t={...t,...n,mass:At.mass},t.isResolvedFromDuration=!0}return t}function yC(e=At.visualDuration,t=At.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const o=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:d,damping:f,mass:h,duration:m,velocity:b,isResolvedFromDuration:E}=I8({...n,velocity:-Es(n.velocity||0)}),_=b||0,w=f/(2*Math.sqrt(d*h)),A=u-o,T=Es(Math.sqrt(d/h)),N=Math.abs(A)<5;r||(r=N?At.restSpeed.granular:At.restSpeed.default),s||(s=N?At.restDelta.granular:At.restDelta.default);let S;if(w<1){const D=z0(T,w);S=M=>{const W=Math.exp(-w*T*M);return u-W*((_+w*T*A)/D*Math.sin(D*M)+A*Math.cos(D*M))}}else if(w===1)S=D=>u-Math.exp(-T*D)*(A+(_+T*A)*D);else{const D=T*Math.sqrt(w*w-1);S=M=>{const W=Math.exp(-w*T*M),H=Math.min(D*M,300);return u-W*((_+w*T*A)*Math.sinh(H)+D*A*Math.cosh(H))/D}}const R={calculatedDuration:E&&m||null,next:D=>{const M=S(D);if(E)l.done=D>=m;else{let W=0;w<1&&(W=D===0?xs(_):gC(S,D,M));const H=Math.abs(W)<=r,se=Math.abs(u-M)<=s;l.done=H&&se}return l.value=l.done?u:M,l},toString:()=>{const D=Math.min(B_(R),D0),M=F_(W=>R.next(D*W).value,D,30);return D+"ms "+M}};return R}function Lv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:u,min:l,max:d,restDelta:f=.5,restSpeed:h}){const m=e[0],b={done:!1,value:m},E=H=>l!==void 0&&H<l||d!==void 0&&H>d,_=H=>l===void 0?d:d===void 0||Math.abs(l-H)<Math.abs(d-H)?l:d;let w=n*t;
vendor: 4,831 bytes, line 259
259const A=m+w,T=u===void 0?A:u(A);T!==A&&(w=T-m);const N=H=>-w*Math.exp(-H/r),S=H=>T+N(H),R=H=>{const se=N(H),J=S(H);b.done=Math.abs(se)<=f,b.value=b.done?T:J};let D,M;const W=H=>{E(b.value)&&(D=H,M=yC({keyframes:[b.value,_(b.value)],velocity:gC(S,H,b.value),damping:s,stiffness:o,restDelta:f,restSpeed:h}))};return W(0),{calculatedDuration:null,next:H=>{let se=!1;return!M&&D===void 0&&(se=!0,R(H),W(H)),D!==void 0&&H>=D?M.next(H-D):(!se&&R(H),b)}}}const O8=Yl(.42,0,1,1),L8=Yl(0,0,.58,1),bC=Yl(.42,0,.58,1),D8=e=>Array.isArray(e)&&typeof e[0]!="number",M8={linear:_n,easeIn:O8,easeInOut:bC,easeOut:L8,circIn:Ty,circInOut:J_,circOut:X_,backIn:vy,backInOut:Q_,backOut:K_,anticipate:G_},Dv=e=>{if(py(e)){g_(e.length===4);const[t,n,r,s]=e;return Yl(t,n,r,s)}else if(typeof e=="string")return M8[e];return e};function B8(e,t,n){const r=[],s=n||mC,o=e.length-1;for(let u=0;u<o;u++){let l=s(e[u],e[u+1]);if(t){const d=Array.isArray(t)?t[u]||_n:t;l=Kl(d,l)}r.push(l)}return r}function Ny(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if(g_(o===t.length),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=B8(t,r,s),l=u.length,d=f=>{let h=0;if(l>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=lo(e[h],e[h+1],f);return u[h](m)};return n?f=>d(Ts(e[0],e[o-1],f)):d}function F8(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=lo(0,t,r);e.push(wt(n,1,s))}}function xC(e){const t=[0];return F8(t,e.length-1),t}function j8(e,t){return e.map(n=>n*t)}function U8(e,t){return e.map(()=>t||bC).splice(0,e.length-1)}function gf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=D8(r)?r.map(Dv):Dv(r),o={done:!1,value:t[0]},u=j8(n&&n.length===t.length?n:xC(t),e),l=Ny(u,t,{ease:Array.isArray(s)?s:U8(t,s)});return{calculatedDuration:e,next:d=>(o.value=l(d),o.done=d>=e,o)}}const H8=e=>{const t=({timestamp:n})=>e(n);return{start:()=>rt.update(t,!0),stop:()=>Ar(t),now:()=>Yt.isProcessing?Yt.timestamp:Gr.now()}},V8={decay:Lv,inertia:Lv,tween:gf,keyframes:gf,spring:yC},z8=e=>e/100;class ky extends hC{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:d}=this.options;d&&d()};const{name:n,motionValue:r,element:s,keyframes:o}=this.options,u=(s==null?void 0:s.KeyframeResolver)||wy,l=(d,f)=>this.onKeyframesResolved(d,f);this.resolver=new u(o,l,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:u=0}=this.options,l=hy(n)?n:V8[n]||gf;let d,f;l!==gf&&typeof t[0]!="number"&&(d=Kl(z8,mC(t[0],t[1])),t=[0,100]);const h=l({...this.options,keyframes:t});o==="mirror"&&(f=l({...this.options,keyframes:[...t].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=B_(h));const{calculatedDuration:m}=h,b=m+s,E=b*(r+1)-s;return{generator:h,mirroredGenerator:f,mapPercentToKeyframes:d,calculatedDuration:m,resolvedDuration:b,totalDuration:E}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:H}=this.options;return{done:!0,value:H[H.length-1]}}const{finalKeyframe:s,generator:o,mirroredGenerator:u,mapPercentToKeyframes:l,keyframes:d,calculatedDuration:f,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:b,repeat:E,repeatType:_,repeatDelay:w,onUpdate:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const T=this.currentTime-b*(this.speed>=0?1:-1),N=this.speed>=0?T<0:T>h;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let S=this.currentTime,R=o;if(E){const H=Math.min(this.currentTime,h)/m;let se=Math.floor(H),J=H%1;!J&&H>=1&&(J=1),J===1&&se--,se=Math.min(se,E+1),!!(se%2)&&(_==="reverse"?(J=1-J,w&&(J-=w/m)):_==="mirror"&&(R=u)),S=Ts(0,1,J)*m}const D=N?{done:!1,value:d[0]}:R.next(S);l&&(D.value=l(D.value));let{done:M}=D;!N&&f!==null&&(M=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const W=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return W&&s!==void 0&&(D.value=zf(d,this.options,s)),A&&A(D.value),W&&this.finish(),D}get duration(){const{resolved:t}=this;return t?Es(t.calculatedDuration):0}
vendor: 59,003 bytes, line 259
259get time(){return Es(this.currentTime)}set time(t){t=xs(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Es(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=H8,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const W8=new Set(["opacity","clipPath","filter","transform"]);function $8(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:u="loop",ease:l="easeInOut",times:d}={}){const f={[t]:n};d&&(f.offset=d);const h=U_(l,s);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:u==="reverse"?"alternate":"normal"})}const q8=Xg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),yf=10,Y8=2e4;function K8(e){return hy(e.type)||e.type==="spring"||!j_(e.ease)}function Q8(e,t){const n=new ky({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let o=0;for(;!r.done&&o<Y8;)r=n.sample(o),s.push(r.value),o+=yf;return{times:void 0,keyframes:s,duration:o-yf,ease:"linear"}}const EC={anticipate:G_,backInOut:Q_,circInOut:J_};function G8(e){return e in EC}class Mv extends hC{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:o}=this.options;this.resolver=new fC(o,(u,l)=>this.onKeyframesResolved(u,l),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:s=300,times:o,ease:u,type:l,motionValue:d,name:f,startTime:h}=this.options;if(!(!((r=d.owner)===null||r===void 0)&&r.current))return!1;if(typeof u=="string"&&pf()&&G8(u)&&(u=EC[u]),K8(this.options)){const{onComplete:b,onUpdate:E,motionValue:_,element:w,...A}=this.options,T=Q8(t,A);t=T.keyframes,t.length===1&&(t[1]=t[0]),s=T.duration,o=T.times,u=T.ease,l="keyframes"}const m=$8(d.owner.current,f,t,{...this.options,duration:s,times:o,ease:u});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(Ev(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:b}=this.options;d.set(zf(t,this.options,n)),b&&b(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:s,times:o,type:l,ease:u,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Es(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Es(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=xs(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return _n;const{animation:r}=n;Ev(r,t)}return _n}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:o,ease:u,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:h,onComplete:m,element:b,...E}=this.options,_=new ky({...E,keyframes:r,duration:s,type:o,ease:u,times:l,isGenerator:!0}),w=xs(this.time);f.setWithVelocity(_.sample(w-yf).value,_.sample(w).value,yf)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:o,damping:u,type:l}=t;return q8()&&r&&W8.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!s&&o!=="mirror"&&u!==0&&l!=="inertia"}}const X8={type:"spring",stiffness:500,damping:25,restSpeed:10},J8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Z8={type:"keyframes",duration:.8},eB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tB=(e,{keyframes:t})=>t.length>2?Z8:bo.has(e)?e.startsWith("scale")?J8(t[1]):X8:eB;function nB({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:u,repeatDelay:l,from:d,elapsed:f,...h}){return!!Object.keys(h).length}const Ry=(e,t,n,r={},s,o)=>u=>{const l=fy(r,e)||{},d=l.delay||r.delay||0;let{elapsed:f=0}=r;f=f-xs(d);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-f,onUpdate:b=>{t.set(b),l.onUpdate&&l.onUpdate(b)},onComplete:()=>{u(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:s};nB(l)||(h={...h,...tB(e,h)}),h.duration&&(h.duration=xs(h.duration)),h.repeatDelay&&(h.repeatDelay=xs(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),m&&!o&&t.get()!==void 0){const b=zf(h.keyframes,l);if(b!==void 0)return rt.update(()=>{h.onUpdate(b),h.onComplete()}),new w5([])}return!o&&Mv.supports(h)?new Mv(h):new ky(h)};function rB({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vC(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:u=e.getDefaultTransition(),transitionEnd:l,...d}=t;r&&(u=r);const f=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const m in d){const b=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),E=d[m];if(E===void 0||h&&rB(h,m))continue;const _={delay:n,...fy(u||{},m)};let w=!1;if(window.MotionHandoffAnimation){const T=W_(e);if(T){const N=window.MotionHandoffAnimation(T,m,rt);N!==null&&(_.startTime=N,w=!0)}}B0(e,m),b.start(Ry(m,b,E,e.shouldReduceMotion&&bo.has(m)?{type:!1}:_,e,w));const A=b.animation;A&&f.push(A)}return l&&Promise.all(f).then(()=>{rt.update(()=>{l&&M5(e,l)})}),f}function W0(e,t,n={}){var r;const s=Vf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const u=s?()=>Promise.all(vC(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:b}=o;return sB(e,t,h+f,m,b,n)}:()=>Promise.resolve(),{when:d}=o;if(d){const[f,h]=d==="beforeChildren"?[u,l]:[l,u];return f().then(()=>h())}else return Promise.all([u(),l(n.delay)])}function sB(e,t,n=0,r=0,s=1,o){const u=[],l=(e.variantChildren.size-1)*r,d=s===1?(f=0)=>f*r:(f=0)=>l-f*r;return Array.from(e.variantChildren).sort(iB).forEach((f,h)=>{f.notify("AnimationStart",t),u.push(W0(f,t,{...o,delay:n+d(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(u)}function iB(e,t){return e.sortNodePosition(t)}function oB(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(o=>W0(e,o,n));r=Promise.all(s)}else if(typeof t=="string")r=W0(e,t,n);else{const s=typeof t=="function"?Vf(e,t,n.custom):t;r=Promise.all(vC(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const aB=ey.length;function TC(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?TC(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<aB;n++){const r=ey[n],s=e.props[r];(El(s)||s===!1)&&(t[r]=s)}return t}const uB=[...Zg].reverse(),lB=Zg.length;function cB(e){return t=>Promise.all(t.map(({animation:n,options:r})=>oB(e,n,r)))}function dB(e){let t=cB(e),n=Bv(),r=!0;const s=d=>(f,h)=>{var m;const b=Vf(e,h,d==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(b){const{transition:E,transitionEnd:_,...w}=b;f={...f,...w,..._}}return f};function o(d){t=d(e)}function u(d){const{props:f}=e,h=TC(e.parent)||{},m=[],b=new Set;let E={},_=1/0;for(let A=0;A<lB;A++){const T=uB[A],N=n[T],S=f[T]!==void 0?f[T]:h[T],R=El(S),D=T===d?N.isActive:null;D===!1&&(_=A);let M=S===h[T]&&S!==f[T]&&R;if(M&&r&&e.manuallyAnimateOnMount&&(M=!1),N.protectedKeys={...E},!N.isActive&&D===null||!S&&!N.prevProp||Uf(S)||typeof S=="boolean")continue;const W=fB(N.prevProp,S);let H=W||T===d&&N.isActive&&!M&&R||A>_&&R,se=!1;const J=Array.isArray(S)?S:[S];let ee=J.reduce(s(T),{});D===!1&&(ee={});const{prevResolvedValues:oe={}}=N,ie={...oe,...ee},ne=ae=>{H=!0,b.has(ae)&&(se=!0,b.delete(ae)),N.needsAnimating[ae]=!0;const $=e.getValue(ae);$&&($.liveStyle=!1)};for(const ae in ie){const $=ee[ae],fe=oe[ae];if(E.hasOwnProperty(ae))continue;let I=!1;L0($)&&L0(fe)?I=!D_($,fe):I=$!==fe,I?$!=null?ne(ae):b.add(ae):$!==void 0&&b.has(ae)?ne(ae):N.protectedKeys[ae]=!0}N.prevProp=S,N.prevResolvedValues=ee,N.isActive&&(E={...E,...ee}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(M&&W)||se)&&m.push(...J.map(ae=>({animation:ae,options:{type:T}})))}if(b.size){const A={};b.forEach(T=>{const N=e.getBaseTarget(T),S=e.getValue(T);S&&(S.liveStyle=!0),A[T]=N??null}),m.push({animation:A})}let w=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(m):Promise.resolve()}function l(d,f){var h;if(n[d].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(b=>{var E;return(E=b.animationState)===null||E===void 0?void 0:E.setActive(d,f)}),n[d].isActive=f;const m=u(d);for(const b in n)n[b].protectedKeys={};return m}return{animateChanges:u,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Bv(),r=!0}}}function fB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!D_(t,e):!1}function ji(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bv(){return{animate:ji(!0),whileInView:ji(),whileHover:ji(),whileTap:ji(),whileDrag:ji(),whileFocus:ji(),exit:ji()}}class bi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class hB extends bi{constructor(t){super(t),t.animationState||(t.animationState=dB(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Uf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let pB=0;class mB extends bi{constructor(){super(...arguments),this.id=pB++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const gB={animation:{Feature:hB},exit:{Feature:mB}};function wl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ql(e){return{point:{x:e.pageX,y:e.pageY}}}const yB=e=>t=>gy(t)&&e(t,Ql(t));function nl(e,t,n,r){return wl(e,t,yB(n),r)}const Fv=(e,t)=>Math.abs(e-t);function bB(e,t){const n=Fv(e.x,t.x),r=Fv(e.y,t.y);return Math.sqrt(n**2+r**2)}class wC{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Sm(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,E=bB(m.offset,{x:0,y:0})>=3;if(!b&&!E)return;const{point:_}=m,{timestamp:w}=Yt;this.history.push({..._,timestamp:w});const{onStart:A,onMove:T}=this.handlers;b||(A&&A(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,m)},this.handlePointerMove=(m,b)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=wm(b,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(m,b)=>{this.end();const{onEnd:E,onSessionEnd:_,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=Sm(m.type==="pointercancel"?this.lastMoveEventInfo:wm(b,this.transformPagePoint),this.history);this.startEvent&&E&&E(m,A),_&&_(m,A)},!gy(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const u=Ql(t),l=wm(u,this.transformPagePoint),{point:d}=l,{timestamp:f}=Yt;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,Sm(l,this.history)),this.removeListeners=Kl(nl(this.contextWindow,"pointermove",this.handlePointerMove),nl(this.contextWindow,"pointerup",this.handlePointerUp),nl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ar(this.updatePoint)}}function wm(e,t){return t?{point:t(e.point)}:e}function jv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Sm({point:e},t){return{point:e,delta:jv(e,SC(t)),offset:jv(e,xB(t)),velocity:EB(t,.1)}}function xB(e){return e[0]}function SC(e){return e[e.length-1]}function EB(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=SC(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>xs(t)));)n--;if(!r)return{x:0,y:0};const o=Es(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const u={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const _C=1e-4,vB=1-_C,TB=1+_C,CC=.01,wB=0-CC,SB=0+CC;function Jn(e){return e.max-e.min}function _B(e,t,n){return Math.abs(e-t)<=n}function Uv(e,t,n,r=.5){e.origin=r,e.originPoint=wt(t.min,t.max,e.origin),e.scale=Jn(n)/Jn(t),e.translate=wt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=vB&&e.scale<=TB||isNaN(e.scale))&&(e.scale=1),(e.translate>=wB&&e.translate<=SB||isNaN(e.translate))&&(e.translate=0)}function rl(e,t,n,r){Uv(e.x,t.x,n.x,r?r.originX:void 0),Uv(e.y,t.y,n.y,r?r.originY:void 0)}function Hv(e,t,n){e.min=n.min+t.min,e.max=e.min+Jn(t)}function CB(e,t,n){Hv(e.x,t.x,n.x),Hv(e.y,t.y,n.y)}function Vv(e,t,n){e.min=t.min-n.min,e.max=e.min+Jn(t)}function sl(e,t,n){Vv(e.x,t.x,n.x),Vv(e.y,t.y,n.y)}function AB(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?wt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?wt(n,e,r.max):Math.min(e,n)),e}function zv(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function NB(e,{top:t,left:n,bottom:r,right:s}){return{x:zv(e.x,n,s),y:zv(e.y,t,r)}}function Wv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function kB(e,t){return{x:Wv(e.x,t.x),y:Wv(e.y,t.y)}}function RB(e,t){let n=.5;const r=Jn(e),s=Jn(t);return s>r?n=lo(t.min,t.max-r,e.min):r>s&&(n=lo(e.min,e.max-s,t.min)),Ts(0,1,n)}function PB(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const $0=.35;function IB(e=$0){return e===!1?e=0:e===!0&&(e=$0),{x:$v(e,"left","right"),y:$v(e,"top","bottom")}}function $v(e,t,n){return{min:qv(e,t),max:qv(e,n)}}function qv(e,t){return typeof e=="number"?e:e[t]||0}const Yv=()=>({translate:0,scale:1,origin:0,originPoint:0}),sa=()=>({x:Yv(),y:Yv()}),Kv=()=>({min:0,max:0}),Pt=()=>({x:Kv(),y:Kv()});function ar(e){return[e("x"),e("y")]}function AC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function OB({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function LB(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _m(e){return e===void 0||e===1}function q0({scale:e,scaleX:t,scaleY:n}){return!_m(e)||!_m(t)||!_m(n)}function Hi(e){return q0(e)||NC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function NC(e){return Qv(e.x)||Qv(e.y)}function Qv(e){return e&&e!=="0%"}function bf(e,t,n){const r=e-n,s=t*r;return n+s}function Gv(e,t,n,r,s){return s!==void 0&&(e=bf(e,s,r)),bf(e,n,r)+t}function Y0(e,t=0,n=1,r,s){e.min=Gv(e.min,t,n,r,s),e.max=Gv(e.max,t,n,r,s)}function kC(e,{x:t,y:n}){Y0(e.x,t.translate,t.scale,t.originPoint),Y0(e.y,n.translate,n.scale,n.originPoint)}const Xv=.999999999999,Jv=1.0000000000001;function DB(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let o,u;for(let l=0;l<s;l++){o=n[l],u=o.projectionDelta;const{visualElement:d}=o.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&oa(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,kC(e,u)),r&&Hi(o.latestValues)&&oa(e,o.latestValues))}t.x<Jv&&t.x>Xv&&(t.x=1),t.y<Jv&&t.y>Xv&&(t.y=1)}function ia(e,t){e.min=e.min+t,e.max=e.max+t}function Zv(e,t,n,r,s=.5){const o=wt(e.min,e.max,s);Y0(e,t,n,o,r)}function oa(e,t){Zv(e.x,t.x,t.scaleX,t.scale,t.originX),Zv(e.y,t.y,t.scaleY,t.scale,t.originY)}function RC(e,t){return AC(LB(e.getBoundingClientRect(),t))}function MB(e,t,n){const r=RC(e,n),{scroll:s}=t;return s&&(ia(r.x,s.offset.x),ia(r.y,s.offset.y)),r}const PC=({current:e})=>e?e.ownerDocument.defaultView:null,BB=new WeakMap;class FB{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ql(h).point)},o=(h,m)=>{const{drag:b,dragPropagation:E,onDragStart:_}=this.getProps();if(b&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=P5(b),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ar(A=>{let T=this.getAxisMotionValue(A).get()||0;if(Qr.test(T)){const{projection:N}=this.visualElement;if(N&&N.layout){const S=N.layout.layoutBox[A];S&&(T=Jn(S)*(parseFloat(T)/100))}}this.originPoint[A]=T}),_&&rt.postRender(()=>_(h,m)),B0(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},u=(h,m)=>{const{dragPropagation:b,dragDirectionLock:E,onDirectionLock:_,onDrag:w}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:A}=m;if(E&&this.currentDirection===null){this.currentDirection=jB(A),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",m.point,A),this.updateAxis("y",m.point,A),this.visualElement.render(),w&&w(h,m)},l=(h,m)=>this.stop(h,m),d=()=>ar(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new wC(t,{onSessionStart:s,onStart:o,onMove:u,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:PC(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Sd(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=AB(u,this.constraints[t],this.elastic[t])),o.set(u)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&na(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=NB(s.layoutBox,n):this.constraints=!1,this.elastic=IB(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ar(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=PB(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!na(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=MB(r,s.root,this.visualElement.getTransformPagePoint());let u=kB(s.layout.layoutBox,o);if(n){const l=n(OB(u));this.hasMutatedConstraints=!!l,l&&(u=AC(l))}return u}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:u,onDragTransitionEnd:l}=this.getProps(),d=this.constraints||{},f=ar(h=>{if(!Sd(h,n,this.currentDirection))return;let m=d&&d[h]||{};u&&(m={min:0,max:0});const b=s?200:1e6,E=s?40:1e7,_={type:"inertia",velocity:r?t[h]:0,bounceStiffness:b,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,_)});return Promise.all(f).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return B0(this.visualElement,t),r.start(Ry(t,r,0,n,this.visualElement,!1))}stopAnimation(){ar(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ar(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ar(n=>{const{drag:r}=this.getProps();if(!Sd(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:u,max:l}=s.layout.layoutBox[n];o.set(t[n]-wt(u,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!na(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ar(u=>{const l=this.getAxisMotionValue(u);if(l&&this.constraints!==!1){const d=l.get();s[u]=RB({min:d,max:d},this.constraints[u])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ar(u=>{if(!Sd(u,t,null))return;const l=this.getAxisMotionValue(u),{min:d,max:f}=this.constraints[u];l.set(wt(d,f,s[u]))})}addListeners(){if(!this.visualElement.current)return;BB.set(this.visualElement,this);const t=this.visualElement.current,n=nl(t,"pointerdown",d=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();na(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),rt.read(r);const u=wl(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(ar(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=d[h].translate,m.set(m.get()+d[h].translate))}),this.visualElement.render())}));return()=>{u(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:u=$0,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:u,dragMomentum:l}}}function Sd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jB(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class UB extends bi{constructor(t){super(t),this.removeGroupControls=_n,this.removeListeners=_n,this.controls=new FB(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_n}unmount(){this.removeGroupControls(),this.removeListeners()}}const eT=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class HB extends bi{constructor(){super(...arguments),this.removePointerDownListener=_n}onPointerDown(t){this.session=new wC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:PC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:eT(t),onStart:eT(n),onMove:r,onEnd:(o,u)=>{delete this.session,s&&rt.postRender(()=>s(o,u))}}}mount(){this.removePointerDownListener=nl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function VB(){const e=C.useContext(Df);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,s=C.useId();C.useEffect(()=>r(s),[]);const o=C.useCallback(()=>n&&n(s),[s,n]);return!t&&n?[!1,o]:[!0]}const Gd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Lu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const n=tT(e,t.target.x),r=tT(e,t.target.y);return`${n}% ${r}%`}},zB={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=mi.parse(e);if(s.length>5)return r;const o=mi.createTransformer(e),u=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,d=n.y.scale*t.y;s[0+u]/=l,s[1+u]/=d;const f=wt(l,d,.5);return typeof s[2+u]=="number"&&(s[2+u]/=f),typeof s[3+u]=="number"&&(s[3+u]/=f),o(s)}};class WB extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=t;GM($B),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Gd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,u=r.projection;return u&&(u.isPresent=o,s||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?u.promote():u.relegate()||rt.postRender(()=>{const l=u.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ny.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function IC(e){const[t,n]=VB(),r=C.useContext(Gg);return g.jsx(WB,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(T_),isPresent:t,safeToRemove:n})}const $B={borderRadius:{...Lu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Lu,borderTopRightRadius:Lu,borderBottomLeftRadius:Lu,borderBottomRightRadius:Lu,boxShadow:zB};function qB(e,t,n){const r=mn(e)?e:qr(e);return r.start(Ry("",r,t,n)),r.animation}function YB(e){return e instanceof SVGElement&&e.tagName!=="svg"}const KB=(e,t)=>e.depth-t.depth;class QB{constructor(){this.children=[],this.isDirty=!1}add(t){yy(this.children,t),this.isDirty=!0}remove(t){by(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(KB),this.isDirty=!1,this.children.forEach(t)}}function GB(e,t){const n=Gr.now(),r=({timestamp:s})=>{const o=s-n;o>=t&&(Ar(r),e(o-t))};return rt.read(r,!0),()=>Ar(r)}const OC=["TopLeft","TopRight","BottomLeft","BottomRight"],XB=OC.length,nT=e=>typeof e=="string"?parseFloat(e):e,rT=e=>typeof e=="number"||Ue.test(e);function JB(e,t,n,r,s,o){s?(e.opacity=wt(0,n.opacity!==void 0?n.opacity:1,ZB(r)),e.opacityExit=wt(t.opacity!==void 0?t.opacity:1,0,eF(r))):o&&(e.opacity=wt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let u=0;u<XB;u++){const l=`border${OC[u]}Radius`;let d=sT(t,l),f=sT(n,l);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||rT(d)===rT(f)?(e[l]=Math.max(wt(nT(d),nT(f),r),0),(Qr.test(f)||Qr.test(d))&&(e[l]+="%")):e[l]=f}(t.rotate||n.rotate)&&(e.rotate=wt(t.rotate||0,n.rotate||0,r))}function sT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ZB=LC(0,.5,X_),eF=LC(.5,.95,_n);function LC(e,t,n){return r=>r<e?0:r>t?1:n(lo(e,t,r))}function iT(e,t){e.min=t.min,e.max=t.max}function or(e,t){iT(e.x,t.x),iT(e.y,t.y)}function oT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function aT(e,t,n,r,s){return e-=t,e=bf(e,1/n,r),s!==void 0&&(e=bf(e,1/s,r)),e}function tF(e,t=0,n=1,r=.5,s,o=e,u=e){if(Qr.test(t)&&(t=parseFloat(t),t=wt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let l=wt(o.min,o.max,r);e===o&&(l-=t),e.min=aT(e.min,t,n,l,s),e.max=aT(e.max,t,n,l,s)}function uT(e,t,[n,r,s],o,u){tF(e,t[n],t[r],t[s],t.scale,o,u)}const nF=["x","scaleX","originX"],rF=["y","scaleY","originY"];function lT(e,t,n,r){uT(e.x,t,nF,n?n.x:void 0,r?r.x:void 0),uT(e.y,t,rF,n?n.y:void 0,r?r.y:void 0)}function cT(e){return e.translate===0&&e.scale===1}function DC(e){return cT(e.x)&&cT(e.y)}function dT(e,t){return e.min===t.min&&e.max===t.max}function sF(e,t){return dT(e.x,t.x)&&dT(e.y,t.y)}function fT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function MC(e,t){return fT(e.x,t.x)&&fT(e.y,t.y)}function hT(e){return Jn(e.x)/Jn(e.y)}function pT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iF{constructor(){this.members=[]}add(t){yy(this.members,t),t.scheduleRender()}remove(t){if(by(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function oF(e,t,n){let r="";const s=e.x.translate/t.x,o=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((s||o||u)&&(r=`translate3d(${s}px, ${o}px, ${u}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:h,rotateX:m,rotateY:b,skewX:E,skewY:_}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),b&&(r+=`rotateY(${b}deg) `),E&&(r+=`skewX(${E}deg) `),_&&(r+=`skewY(${_}deg) `)}const l=e.x.scale*t.x,d=e.y.scale*t.y;return(l!==1||d!==1)&&(r+=`scale(${l}, ${d})`),r||"none"}const Vi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Qu=typeof window<"u"&&window.MotionDebug!==void 0,Cm=["","X","Y","Z"],aF={visibility:"hidden"},mT=1e3;let uF=0;function Am(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function BC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=W_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(s||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&BC(r)}function FC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(u={},l=t==null?void 0:t()){this.id=uF++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qu&&(Vi.totalNodes=Vi.resolvedTargetDeltas=Vi.recalculatedProjection=0),this.nodes.forEach(dF),this.nodes.forEach(gF),this.nodes.forEach(yF),this.nodes.forEach(fF),Qu&&window.MotionDebug.record(Vi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new QB)}addEventListener(u,l){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new xy),this.eventHandlers.get(u).add(l)}notifyListeners(u,...l){const d=this.eventHandlers.get(u);d&&d.notify(...l)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=YB(u),this.instance=u;const{layoutId:d,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(f||d)&&(this.isLayoutDirty=!0),e){let m;const b=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=GB(b,250),Gd.hasAnimatedSinceResize&&(Gd.hasAnimatedSinceResize=!1,this.nodes.forEach(yT))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&h&&(d||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:b,hasRelativeTargetChanged:E,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||h.getDefaultTransition()||TF,{onLayoutAnimationStart:A,onLayoutAnimationComplete:T}=h.getProps(),N=!this.targetLayout||!MC(this.targetLayout,_)||E,S=!b&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||b&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,S);const R={...fy(w,"layout"),onPlay:A,onComplete:T};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R)}else b||yT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ar(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bF),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&BC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:l,layout:d}=this.options;if(l===void 0&&!d)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(gT);return}this.isUpdating||this.nodes.forEach(pF),this.isUpdating=!1,this.nodes.forEach(mF),this.nodes.forEach(lF),this.nodes.forEach(cF),this.clearAllSnapshots();const l=Gr.now();Yt.delta=Ts(0,1e3/60,l-Yt.timestamp),Yt.timestamp=l,Yt.isProcessing=!0,ym.update.process(Yt),ym.preRender.process(Yt),ym.render.process(Yt),Yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ny.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hF),this.sharedNodes.forEach(xF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(l=!1),l){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!s)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!DC(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;u&&(l||Hi(this.latestValues)||h)&&(s(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const l=this.measurePageBox();let d=this.removeElementScroll(l);return u&&(d=this.removeTransform(d)),wF(d),{animationId:this.root.animationId,measuredBox:l,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:l}=this.options;if(!l)return Pt();const d=l.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(SF))){const{scroll:h}=this.root;h&&(ia(d.x,h.offset.x),ia(d.y,h.offset.y))}return d}removeElementScroll(u){var l;const d=Pt();if(or(d,u),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return d;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:b}=h;h!==this.root&&m&&b.layoutScroll&&(m.wasRoot&&or(d,u),ia(d.x,m.offset.x),ia(d.y,m.offset.y))}return d}applyTransform(u,l=!1){const d=Pt();or(d,u);for(let f=0;f<this.path.length;f++){const h=this.path[f];!l&&h.options.layoutScroll&&h.scroll&&h!==h.root&&oa(d,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Hi(h.latestValues)&&oa(d,h.latestValues)}return Hi(this.latestValues)&&oa(d,this.latestValues),d}removeTransform(u){const l=Pt();or(l,u);for(let d=0;d<this.path.length;d++){const f=this.path[d];if(!f.instance||!Hi(f.latestValues))continue;q0(f.latestValues)&&f.updateSnapshot();const h=Pt(),m=f.measurePageBox();or(h,m),lT(l,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return Hi(this.latestValues)&&lT(l,this.latestValues),l}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var l;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==d;if(!(u||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:b}=this.options;if(!(!this.layout||!(m||b))){if(this.resolvedRelativeTargetAt=Yt.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),sl(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),or(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Pt(),this.targetWithTransforms=Pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),CB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):or(this.target,this.layout.layoutBox),kC(this.target,this.targetDelta)):or(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),sl(this.relativeTargetOrigin,this.target,E.target),or(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qu&&Vi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||q0(this.parent.latestValues)||NC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const l=this.getLead(),d=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(f=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Yt.timestamp&&(f=!1),f)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;or(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,E=this.treeScale.y;DB(this.layoutCorrected,this.treeScale,this.path,d),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Pt());const{target:_}=l;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(oT(this.prevProjectionDelta.x,this.projectionDelta.x),oT(this.prevProjectionDelta.y,this.projectionDelta.y)),rl(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==E||!pT(this.projectionDelta.x,this.prevProjectionDelta.x)||!pT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Qu&&Vi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),u){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=sa(),this.projectionDelta=sa(),this.projectionDeltaWithTransform=sa()}setAnimationOrigin(u,l=!1){const d=this.snapshot,f=d?d.latestValues:{},h={...this.latestValues},m=sa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const b=Pt(),E=d?d.source:void 0,_=this.layout?this.layout.source:void 0,w=E!==_,A=this.getStack(),T=!A||A.members.length<=1,N=!!(w&&!T&&this.options.crossfade===!0&&!this.path.some(vF));this.animationProgress=0;let S;this.mixTargetDelta=R=>{const D=R/1e3;bT(m.x,u.x,D),bT(m.y,u.y,D),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sl(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),EF(this.relativeTarget,this.relativeTargetOrigin,b,D),S&&sF(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Pt()),or(S,this.relativeTarget)),w&&(this.animationValues=h,JB(h,f,this.latestValues,D,N,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ar(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{Gd.hasAnimatedSinceResize=!0,this.currentAnimation=qB(0,mT,{...u,onUpdate:l=>{this.mixTargetDelta(l),u.onUpdate&&u.onUpdate(l)},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:l,target:d,layout:f,latestValues:h}=u;if(!(!l||!d||!f)){if(this!==u&&this.layout&&f&&jC(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||Pt();const m=Jn(this.layout.layoutBox.x);d.x.min=u.target.x.min,d.x.max=d.x.min+m;const b=Jn(this.layout.layoutBox.y);d.y.min=u.target.y.min,d.y.max=d.y.min+b}or(l,d),oa(l,h),rl(this.projectionDeltaWithTransform,this.layoutCorrected,l,h)}}registerSharedNode(u,l){this.sharedNodes.has(u)||this.sharedNodes.set(u,new iF),this.sharedNodes.get(u).add(l);const f=l.options.initialPromotionConfig;l.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(l):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:l}=this.options;return l?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:l}=this.options;return l?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:l,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),u&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let l=!1;const{latestValues:d}=u;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(l=!0),!l)return;const f={};d.z&&Am("z",u,f,this.animationValues);for(let h=0;h<Cm.length;h++)Am(`rotate${Cm[h]}`,u,f,this.animationValues),Am(`skew${Cm[h]}`,u,f,this.animationValues);u.render();for(const h in f)u.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);u.scheduleRender()}getProjectionStyles(u){var l,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return aF;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Kd(u==null?void 0:u.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=Kd(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!Hi(this.latestValues)&&(w.transform=h?h({},""):"none",this.hasProjected=!1),w}const b=m.animationValues||m.latestValues;this.applyTransformsToTarget(),f.transform=oF(this.projectionDeltaWithTransform,this.treeScale,b),h&&(f.transform=h(b,f.transform));const{x:E,y:_}=this.projectionDelta;f.transformOrigin=`${E.origin*100}% ${_.origin*100}% 0`,m.animationValues?f.opacity=m===this?(d=(l=b.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:f.opacity=m===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const w in hf){if(b[w]===void 0)continue;const{correct:A,applyTo:T}=hf[w],N=f.transform==="none"?b[w]:A(b[w],m);if(T){const S=T.length;for(let R=0;R<S;R++)f[T[R]]=N}else f[w]=N}return this.options.layoutId&&(f.pointerEvents=m===this?Kd(u==null?void 0:u.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var l;return(l=u.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(gT),this.root.sharedNodes.clear()}}}function lF(e){e.updateLayout()}function cF(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:o}=e.options,u=n.source!==e.layout.source;o==="size"?ar(m=>{const b=u?n.measuredBox[m]:n.layoutBox[m],E=Jn(b);b.min=r[m].min,b.max=b.min+E}):jC(o,n.layoutBox,r)&&ar(m=>{const b=u?n.measuredBox[m]:n.layoutBox[m],E=Jn(r[m]);b.max=b.min+E,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+E)});const l=sa();rl(l,r,n.layoutBox);const d=sa();u?rl(d,e.applyTransform(s,!0),n.measuredBox):rl(d,r,n.layoutBox);const f=!DC(l);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:b,layout:E}=m;if(b&&E){const _=Pt();sl(_,n.layoutBox,b.layoutBox);const w=Pt();sl(w,r,E.layoutBox),MC(_,w)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=_,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function dF(e){Qu&&Vi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function fF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hF(e){e.clearSnapshot()}function gT(e){e.clearMeasurements()}function pF(e){e.isLayoutDirty=!1}function mF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function yT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gF(e){e.resolveTargetDelta()}function yF(e){e.calcProjection()}function bF(e){e.resetSkewAndRotation()}function xF(e){e.removeLeadSnapshot()}function bT(e,t,n){e.translate=wt(t.translate,0,n),e.scale=wt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xT(e,t,n,r){e.min=wt(t.min,n.min,r),e.max=wt(t.max,n.max,r)}function EF(e,t,n,r){xT(e.x,t.x,n.x,r),xT(e.y,t.y,n.y,r)}function vF(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const TF={duration:.45,ease:[.4,0,.1,1]},ET=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),vT=ET("applewebkit/")&&!ET("chrome/")?Math.round:_n;function TT(e){e.min=vT(e.min),e.max=vT(e.max)}function wF(e){TT(e.x),TT(e.y)}function jC(e,t,n){return e==="position"||e==="preserve-aspect"&&!_B(hT(t),hT(n),.2)}function SF(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const _F=FC({attachResizeListener:(e,t)=>wl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Nm={current:void 0},UC=FC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Nm.current){const e=new _F({});e.mount(window),e.setOptions({layoutScroll:!0}),Nm.current=e}return Nm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),CF={pan:{Feature:HB},drag:{Feature:UB,ProjectionNode:UC,MeasureLayout:IC}};function wT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=r[s];o&&rt.postRender(()=>o(t,Ql(t)))}class AF extends bi{mount(){const{current:t}=this.node;t&&(this.unmount=C5(t,n=>(wT(this.node,n,"Start"),r=>wT(this.node,r,"End"))))}unmount(){}}class NF extends bi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Kl(wl(this.node.current,"focus",()=>this.onFocus()),wl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ST(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),o=r[s];o&&rt.postRender(()=>o(t,Ql(t)))}class kF extends bi{mount(){const{current:t}=this.node;t&&(this.unmount=R5(t,n=>(ST(this.node,n,"Start"),(r,{success:s})=>ST(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const K0=new WeakMap,km=new WeakMap,RF=e=>{const t=K0.get(e.target);t&&t(e)},PF=e=>{e.forEach(RF)};function IF({root:e,...t}){const n=e||document;km.has(n)||km.set(n,{});const r=km.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(PF,{root:e,...t})),r[s]}function OF(e,t,n){const r=IF(t);return K0.set(e,n),r.observe(e),()=>{K0.delete(e),r.unobserve(e)}}const LF={some:0,all:1};class DF extends bi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=t,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:LF[s]},l=d=>{const{isIntersecting:f}=d;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),b=f?h:m;b&&b(d)};return OF(this.node.current,u,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(MF(t,n))&&this.startObserver()}unmount(){}}function MF({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const BF={inView:{Feature:DF},tap:{Feature:kF},focus:{Feature:NF},hover:{Feature:AF}},FF={layout:{ProjectionNode:UC,MeasureLayout:IC}},Q0={current:null},HC={current:!1};function jF(){if(HC.current=!0,!!Jg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Q0.current=e.matches;e.addListener(t),t()}else Q0.current=!1}
vendor: 4,946 bytes, line 259
259function UF(e,t,n){for(const r in t){const s=t[r],o=n[r];if(mn(s))e.addValue(r,s);else if(mn(o))e.addValue(r,qr(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const u=e.getValue(r);u.liveStyle===!0?u.jump(s):u.hasAnimated||u.set(s)}else{const u=e.getStaticValue(r);e.addValue(r,qr(u!==void 0?u:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const _T=new WeakMap,HF=[...rC,hn,mi],VF=e=>HF.find(nC(e)),CT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class zF{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:o,visualState:u},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Gr.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,rt.render(this.render,!1,!0))};const{latestValues:d,renderState:f}=u;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Hf(n),this.isVariantNode=E_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in m){const E=m[b];d[b]!==void 0&&mn(E)&&E.set(d[b],!1)}}mount(t){this.current=t,_T.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),HC.current||jF(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Q0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_T.delete(this.current),this.projection&&this.projection.unmount(),Ar(this.notifyUpdate),Ar(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=bo.has(t),s=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),o(),u&&u(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Sa){const n=Sa[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<CT.length;r++){const s=CT[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,u=t[o];u&&(this.propEventSubscriptions[s]=this.on(s,u))}this.prevMotionValues=UF(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
259addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=qr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(eC(s)||Z_(s))?s=parseFloat(s):!VF(s)&&mi.test(n)&&(s=dC(t,n)),this.setBaseTarget(t,mn(s)?s.get():s)),mn(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const u=iy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(s=u[t])}if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!mn(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new xy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class VC extends zF{constructor(){super(...arguments),this.KeyframeResolver=fC}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;mn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function WF(e){return window.getComputedStyle(e)}class $F extends VC{constructor(){super(...arguments),this.type="html",this.renderInstance=S_}readValueFromInstance(t,n){if(bo.has(n)){const r=Cy(n);return r&&r.default||0}else{const r=WF(t),s=(O_(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return RC(t,n)}build(t,n,r){ly(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return sy(t,n,r)}}class qF extends VC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bo.has(n)){const r=Cy(n);return r&&r.default||0}return n=__.has(n)?n:ty(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return N_(t,n,r)}build(t,n,r){cy(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){C_(t,n,r,s)}mount(t){this.isSVGTag=dy(t.tagName),super.mount(t)}}const YF=(e,t)=>ry(e)?new qF(t):new $F(t,{allowProjection:e!==C.Fragment}),KF=v5({...gB,...BF,...CF,...FF},YF),Le=BM(KF);function zC(e,t){let n;const r=()=>{const{currentTime:s}=t,u=(s===null?0:s.value)/100;n!==u&&e(u),n=u};return rt.update(r,!0),()=>Ar(r)}const Xd=new WeakMap;let Gs;function QF(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function GF({target:e,contentRect:t,borderBoxSize:n}){var r;(r=Xd.get(e))===null||r===void 0||r.forEach(s=>{s({target:e,contentSize:t,get size(){return QF(e,n)}})})}function XF(e){e.forEach(GF)}function JF(){typeof ResizeObserver>"u"||(Gs=new ResizeObserver(XF))}function ZF(e,t){Gs||JF();const n=my(e);return n.forEach(r=>{let s=Xd.get(r);s||(s=new Set,Xd.set(r,s)),s.add(t),Gs==null||Gs.observe(r)}),()=>{n.forEach(r=>{const s=Xd.get(r);s==null||s.delete(t),s!=null&&s.size||Gs==null||Gs.unobserve(r)})}}const Jd=new Set;let il;function e9(){il=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Jd.forEach(n=>n(t))},window.addEventListener("resize",il)}function t9(e){return Jd.add(e),il||e9(),()=>{Jd.delete(e),!Jd.size&&il&&(il=void 0)}}function n9(e,t){return typeof e=="function"?t9(e):ZF(e,t)}const r9=50,AT=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),s9=()=>({time:0,x:AT(),y:AT()}),i9={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function NT(e,t,n,r){const s=n[t],{length:o,position:u}=i9[t],l=s.current,d=n.time;s.current=e[`scroll${u}`],s.scrollLength=e[`scroll${o}`]-e[`client${o}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=lo(0,s.scrollLength,s.current);const f=r-d;s.velocity=f>r9?0:Ey(s.current-l,f)}function o9(e,t,n){NT(e,"x",t,n),NT(e,"y",t,n),t.time=n}function a9(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const s=r.getBoundingClientRect();r=r.parentElement;const o=r.getBoundingClientRect();n.x+=s.left-o.left,n.y+=s.top-o.top}else if(r instanceof SVGGraphicsElement){const{x:s,y:o}=r.getBBox();n.x+=s,n.y+=o;let u=null,l=r.parentNode;for(;!u;)l.tagName==="svg"&&(u=l),l=r.parentNode;r=u}else break;return n}const u9={All:[[0,0],[1,1]]},G0={start:0,center:.5,end:1};function kT(e,t,n=0){let r=0;if(e in G0&&(e=G0[e]),typeof e=="string"){const s=parseFloat(e);e.endsWith("px")?r=s:e.endsWith("%")?e=s/100:e.endsWith("vw")?r=s/100*document.documentElement.clientWidth:e.endsWith("vh")?r=s/100*document.documentElement.clientHeight:e=s}return typeof e=="number"&&(r=t*e),n+r}const l9=[0,0];function c9(e,t,n,r){let s=Array.isArray(e)?e:l9,o=0,u=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,G0[e]?e:"0"]),o=kT(s[0],n,r),u=kT(s[1],t),o-u}const d9={x:0,y:0};function f9(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function h9(e,t,n){const{offset:r=u9.All}=n,{target:s=e,axis:o="y"}=n,u=o==="y"?"height":"width",l=s!==e?a9(s,e):d9,d=s===e?{width:e.scrollWidth,height:e.scrollHeight}:f9(s),f={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let h=!t[o].interpolate;const m=r.length;for(let b=0;b<m;b++){const E=c9(r[b],f[u],d[u],l[o]);
259!h&&E!==t[o].interpolatorOffsets[b]&&(h=!0),t[o].offset[b]=E}h&&(t[o].interpolate=Ny(t[o].offset,xC(r)),t[o].interpolatorOffsets=[...t[o].offset]),t[o].progress=t[o].interpolate(t[o].current)}function p9(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function m9(e,t,n,r={}){return{measure:()=>p9(e,r.target,n),update:s=>{o9(e,n,s),(r.offset||r.target)&&h9(e,n,r)},notify:()=>t(n)}}const Du=new WeakMap,RT=new WeakMap,Rm=new WeakMap,PT=e=>e===document.documentElement?window:e;function Py(e,{container:t=document.documentElement,...n}={}){let r=Rm.get(t);r||(r=new Set,Rm.set(t,r));const s=s9(),o=m9(t,e,s,n);if(r.add(o),!Du.has(t)){const l=()=>{for(const b of r)b.measure()},d=()=>{for(const b of r)b.update(Yt.timestamp)},f=()=>{for(const b of r)b.notify()},h=()=>{rt.read(l,!1,!0),rt.read(d,!1,!0),rt.update(f,!1,!0)};Du.set(t,h);const m=PT(t);window.addEventListener("resize",h,{passive:!0}),t!==document.documentElement&&RT.set(t,n9(t,h)),m.addEventListener("scroll",h,{passive:!0})}const u=Du.get(t);return rt.read(u,!1,!0),()=>{var l;Ar(u);const d=Rm.get(t);if(!d||(d.delete(o),d.size))return;const f=Du.get(t);Du.delete(t),f&&(PT(t).removeEventListener("scroll",f),(l=RT.get(t))===null||l===void 0||l(),window.removeEventListener("resize",f))}}function g9({source:e,container:t,axis:n="y"}){e&&(t=e);const r={value:0},s=Py(o=>{r.value=o[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:s}}const Pm=new Map;function WC({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),Pm.has(t)||Pm.set(t,{});const r=Pm.get(t);return r[n]||(r[n]=M_()?new ScrollTimeline({source:t,axis:n}):g9({source:t,axis:n})),r[n]}function y9(e){return e.length===2}function $C(e){return e&&(e.target||e.offset)}function b9(e,t){return y9(e)||$C(t)?Py(n=>{e(n[t.axis].progress,n)},t):zC(e,WC(t))}function x9(e,t){if(e.flatten(),$C(t))return e.pause(),Py(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=WC(t);return e.attachTimeline?e.attachTimeline(n,r=>(r.pause(),zC(s=>{r.time=r.duration*s},n))):_n}}function E9(e,{axis:t="y",...n}={}){const r={axis:t,...n};return typeof e=="function"?b9(e,r):x9(e,r)}function IT(e,t){kM(!!(!t||t.current))}const v9=()=>({scrollX:qr(0),scrollY:qr(0),scrollXProgress:qr(0),scrollYProgress:qr(0)});function T9({container:e,target:t,layoutEffect:n=!0,...r}={}){const s=Da(v9);return(n?Bf:C.useEffect)(()=>(IT("target",t),IT("container",e),E9((u,{x:l,y:d})=>{s.scrollX.set(l.current),s.scrollXProgress.set(l.progress),s.scrollY.set(d.current),s.scrollYProgress.set(d.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),s}function w9(e){const t=Da(()=>qr(e)),{isStatic:n}=C.useContext(Mf);if(n){const[,r]=C.useState(e);C.useEffect(()=>t.on("change",r),[])}return t}function qC(e,t){const n=w9(t()),r=()=>n.set(t());return r(),Bf(()=>{const s=()=>rt.preRender(r,!1,!0),o=e.map(u=>u.on("change",s));return()=>{o.forEach(u=>u()),Ar(r)}}),n}const S9=e=>e&&typeof e=="object"&&e.mix,_9=e=>S9(e)?e.mix:void 0;function C9(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],o=e[2+n],u=e[3+n],l=Ny(s,o,{mixer:_9(o[0]),...u});return t?l(r):l}function A9(e){el.current=[],e();const t=qC(el.current,e);return el.current=void 0,t}function N9(e,t,n,r){if(typeof e=="function")return A9(e);const s=typeof t=="function"?t:C9(t,n,r);return Array.isArray(e)?OT(e,s):OT([e],([o])=>s(o))}function OT(e,t){const n=Da(()=>[]);return qC(e,()=>{n.length=0;const r=e.length;for(let s=0;s<r;s++)n[s]=e[s].get();return t(n)})}const k9={some:0,all:1};function R9(e,t,{root:n,margin:r,amount:s="some"}={}){const o=my(e),u=new WeakMap,l=f=>{f.forEach(h=>{const m=u.get(h.target);if(h.isIntersecting!==!!m)if(h.isIntersecting){const b=t(h);typeof b=="function"?u.set(h.target,b):d.unobserve(h.target)}else typeof m=="function"&&(m(h),u.delete(h.target))})},d=new IntersectionObserver(l,{root:n,rootMargin:r,threshold:typeof s=="number"?s:k9[s]});return o.forEach(f=>d.observe(f)),()=>d.disconnect()}function xo(e,{root:t,margin:n,amount:r,once:s=!1}={}){const[o,u]=C.useState(!1);return C.useEffect(()=>{if(!e.current||s&&o)return;const l=()=>(u(!0),s?void 0:()=>u(!1)),d={root:t&&t.current||void 0,margin:n,amount:r};return R9(e.current,l,d)},[t,e,n,s,r]),o}function ot(e){return"/"+e.replace(/ /g,"-")}function LT(e,t){if(typeof e=="function")return e(t);
vendor: 4,766 bytes, line 259
259e!=null&&(e.current=t)}function YC(...e){return t=>{let n=!1;const r=e.map(s=>{const o=LT(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():LT(e[s],null)}}}}function on(...e){return C.useCallback(YC(...e),e)}function Sl(e){const t=I9(e),n=C.forwardRef((r,s)=>{const{children:o,...u}=r,l=C.Children.toArray(o),d=l.find(L9);if(d){const f=d.props.children,h=l.map(m=>m===d?C.Children.count(f)>1?C.Children.only(null):C.isValidElement(f)?f.props.children:null:m);return g.jsx(t,{...u,ref:s,children:C.isValidElement(f)?C.cloneElement(f,void 0,h):null})}return g.jsx(t,{...u,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}var P9=Sl("Slot");function I9(e){const t=C.forwardRef((n,r)=>{const{children:s,...o}=n;if(C.isValidElement(s)){const u=M9(s),l=D9(o,s.props);return s.type!==C.Fragment&&(l.ref=r?YC(r,u):u),C.cloneElement(s,l)}return C.Children.count(s)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var O9=Symbol("radix.slottable");function L9(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===O9}function D9(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...l)=>{const d=o(...l);return s(...l),d}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function M9(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const B9=_g("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),zr=C.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const u=r?P9:"button";return g.jsx(u,{className:sn(B9({variant:t,size:n,className:e})),ref:o,...s})});zr.displayName="Button";const Bn=C.forwardRef(({className:e,type:t,...n},r)=>g.jsx("input",{type:t,className:sn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Bn.displayName="Input";const _l=C.forwardRef(({className:e,...t},n)=>g.jsx("textarea",{className:sn("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));_l.displayName="Textarea";function DT(e,[t,n]){return Math.min(n,Math.max(t,e))}function Mt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Iy(e,t=[]){let n=[];function r(o,u){const l=C.createContext(u),d=n.length;n=[...n,u];const f=m=>{var T;const{scope:b,children:E,..._}=m,w=((T=b==null?void 0:b[e])==null?void 0:T[d])||l,A=C.useMemo(()=>_,Object.values(_));return g.jsx(w.Provider,{value:A,children:E})};f.displayName=o+"Provider";function h(m,b){var w;const E=((w=b==null?void 0:b[e])==null?void 0:w[d])||l,_=C.useContext(E);if(_)return _;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[f,h]}const s=()=>{const o=n.map(u=>C.createContext(u));return function(l){const d=(l==null?void 0:l[e])||o;return C.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};return s.scopeName=e,[r,F9(s,...t)]}function F9(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));
vendor: 36,041 bytes, line 259
259return function(o){const u=r.reduce((l,{useScope:d,scopeName:f})=>{const m=d(o)[`__scope${f}`];return{...l,...m}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function j9(e){const t=e+"CollectionProvider",[n,r]=Iy(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=w=>{const{scope:A,children:T}=w,N=pn.useRef(null),S=pn.useRef(new Map).current;return g.jsx(s,{scope:A,itemMap:S,collectionRef:N,children:T})};u.displayName=t;const l=e+"CollectionSlot",d=Sl(l),f=pn.forwardRef((w,A)=>{const{scope:T,children:N}=w,S=o(l,T),R=on(A,S.collectionRef);return g.jsx(d,{ref:R,children:N})});f.displayName=l;const h=e+"CollectionItemSlot",m="data-radix-collection-item",b=Sl(h),E=pn.forwardRef((w,A)=>{const{scope:T,children:N,...S}=w,R=pn.useRef(null),D=on(A,R),M=o(h,T);return pn.useEffect(()=>(M.itemMap.set(R,{ref:R,...S}),()=>void M.itemMap.delete(R))),g.jsx(b,{[m]:"",ref:D,children:N})});E.displayName=h;function _(w){const A=o(e+"CollectionConsumer",w);return pn.useCallback(()=>{const N=A.collectionRef.current;if(!N)return[];const S=Array.from(N.querySelectorAll(`[${m}]`));return Array.from(A.itemMap.values()).sort((M,W)=>S.indexOf(M.ref.current)-S.indexOf(W.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:u,Slot:f,ItemSlot:E},_,r]}var U9=C.createContext(void 0);function H9(e){const t=C.useContext(U9);return e||t||"ltr"}var V9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nt=V9.reduce((e,t)=>{const n=Sl(`Primitive.${t}`),r=C.forwardRef((s,o)=>{const{asChild:u,...l}=s,d=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(d,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function z9(e,t){e&&jl.flushSync(()=>e.dispatchEvent(t))}function co(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function W9(e,t=globalThis==null?void 0:globalThis.document){const n=co(e);C.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var $9="DismissableLayer",X0="dismissableLayer.update",q9="dismissableLayer.pointerDownOutside",Y9="dismissableLayer.focusOutside",MT,KC=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),QC=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:u,onDismiss:l,...d}=e,f=C.useContext(KC),[h,m]=C.useState(null),b=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=C.useState({}),_=on(t,W=>m(W)),w=Array.from(f.layers),[A]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),T=w.indexOf(A),N=h?w.indexOf(h):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,R=N>=T,D=G9(W=>{const H=W.target,se=[...f.branches].some(J=>J.contains(H));!R||se||(s==null||s(W),u==null||u(W),W.defaultPrevented||l==null||l())},b),M=X9(W=>{const H=W.target;[...f.branches].some(J=>J.contains(H))||(o==null||o(W),u==null||u(W),W.defaultPrevented||l==null||l())},b);return W9(W=>{N===f.layers.size-1&&(r==null||r(W),!W.defaultPrevented&&l&&(W.preventDefault(),l()))},b),C.useEffect(()=>{if(h)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(MT=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(h)),f.layers.add(h),BT(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=MT)}},[h,b,n,f]),C.useEffect(()=>()=>{h&&(f.layers.delete(h),f.layersWithOutsidePointerEventsDisabled.delete(h),BT())},[h,f]),C.useEffect(()=>{const W=()=>E({});return document.addEventListener(X0,W),()=>document.removeEventListener(X0,W)},[]),g.jsx(Nt.div,{...d,ref:_,style:{pointerEvents:S?R?"auto":"none":void 0,...e.style},onFocusCapture:Mt(e.onFocusCapture,M.onFocusCapture),onBlurCapture:Mt(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Mt(e.onPointerDownCapture,D.onPointerDownCapture)})});QC.displayName=$9;var K9="DismissableLayerBranch",Q9=C.forwardRef((e,t)=>{const n=C.useContext(KC),r=C.useRef(null),s=on(t,r);return C.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),g.jsx(Nt.div,{...e,ref:s})});Q9.displayName=K9;function G9(e,t=globalThis==null?void 0:globalThis.document){const n=co(e),r=C.useRef(!1),s=C.useRef(()=>{});return C.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let d=function(){GC(q9,n,f,{discrete:!0})};const f={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=d,t.addEventListener("click",s.current,{once:!0})):d()}else t.removeEventListener("click",s.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function X9(e,t=globalThis==null?void 0:globalThis.document){const n=co(e),r=C.useRef(!1);return C.useEffect(()=>{const s=o=>{o.target&&!r.current&&GC(Y9,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function BT(){const e=new CustomEvent(X0);document.dispatchEvent(e)}function GC(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?z9(s,o):s.dispatchEvent(o)}var Im=0;function J9(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FT()),document.body.insertAdjacentElement("beforeend",e[1]??FT()),Im++,()=>{Im===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Im--}},[])}function FT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Om="focusScope.autoFocusOnMount",Lm="focusScope.autoFocusOnUnmount",jT={bubbles:!1,cancelable:!0},Z9="FocusScope",XC=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...u}=e,[l,d]=C.useState(null),f=co(s),h=co(o),m=C.useRef(null),b=on(t,w=>d(w)),E=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let w=function(S){if(E.paused||!l)return;const R=S.target;l.contains(R)?m.current=R:Xs(m.current,{select:!0})},A=function(S){if(E.paused||!l)return;const R=S.relatedTarget;R!==null&&(l.contains(R)||Xs(m.current,{select:!0}))},T=function(S){if(document.activeElement===document.body)for(const D of S)D.removedNodes.length>0&&Xs(l)};document.addEventListener("focusin",w),document.addEventListener("focusout",A);const N=new MutationObserver(T);return l&&N.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",A),N.disconnect()}}},[r,l,E.paused]),C.useEffect(()=>{if(l){HT.add(E);const w=document.activeElement;if(!l.contains(w)){const T=new CustomEvent(Om,jT);l.addEventListener(Om,f),l.dispatchEvent(T),T.defaultPrevented||(ej(ij(JC(l)),{select:!0}),document.activeElement===w&&Xs(l))}return()=>{l.removeEventListener(Om,f),setTimeout(()=>{const T=new CustomEvent(Lm,jT);l.addEventListener(Lm,h),l.dispatchEvent(T),T.defaultPrevented||Xs(w??document.body,{select:!0}),l.removeEventListener(Lm,h),HT.remove(E)},0)}}},[l,f,h,E]);const _=C.useCallback(w=>{if(!n&&!r||E.paused)return;const A=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,T=document.activeElement;if(A&&T){const N=w.currentTarget,[S,R]=tj(N);S&&R?!w.shiftKey&&T===R?(w.preventDefault(),n&&Xs(S,{select:!0})):w.shiftKey&&T===S&&(w.preventDefault(),n&&Xs(R,{select:!0})):T===N&&w.preventDefault()}},[n,r,E.paused]);return g.jsx(Nt.div,{tabIndex:-1,...u,ref:b,onKeyDown:_})});XC.displayName=Z9;function ej(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Xs(r,{select:t}),document.activeElement!==n)return}function tj(e){const t=JC(e),n=UT(t,e),r=UT(t.reverse(),e);return[n,r]}function JC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function UT(e,t){for(const n of e)if(!nj(n,{upTo:t}))return n}function nj(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rj(e){return e instanceof HTMLInputElement&&"select"in e}function Xs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rj(e)&&t&&e.select()}}var HT=sj();function sj(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=VT(e,t),e.unshift(t)},remove(t){var n;e=VT(e,t),(n=e[0])==null||n.resume()}}}function VT(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ij(e){return e.filter(t=>t.tagName!=="A")}var Hn=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},oj=Sg[" useId ".trim().toString()]||(()=>{}),aj=0;function Oy(e){const[t,n]=C.useState(oj());return Hn(()=>{n(r=>r??String(aj++))},[e]),t?`radix-${t}`:""}const uj=["top","right","bottom","left"],gi=Math.min,Qn=Math.max,xf=Math.round,_d=Math.floor,Xr=e=>({x:e,y:e}),lj={left:"right",right:"left",bottom:"top",top:"bottom"},cj={start:"end",end:"start"};function J0(e,t,n){return Qn(e,gi(t,n))}function ws(e,t){return typeof e=="function"?e(t):e}function Ss(e){return e.split("-")[0]}function Ba(e){return e.split("-")[1]}function Ly(e){return e==="x"?"y":"x"}function Dy(e){return e==="y"?"height":"width"}const dj=new Set(["top","bottom"]);function Yr(e){return dj.has(Ss(e))?"y":"x"}function My(e){return Ly(Yr(e))}function fj(e,t,n){n===void 0&&(n=!1);const r=Ba(e),s=My(e),o=Dy(s);let u=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(u=Ef(u)),[u,Ef(u)]}function hj(e){const t=Ef(e);return[Z0(e),t,Z0(t)]}function Z0(e){return e.replace(/start|end/g,t=>cj[t])}const zT=["left","right"],WT=["right","left"],pj=["top","bottom"],mj=["bottom","top"];function gj(e,t,n){switch(e){case"top":case"bottom":return n?t?WT:zT:t?zT:WT;case"left":case"right":return t?pj:mj;default:return[]}}function yj(e,t,n,r){const s=Ba(e);let o=gj(Ss(e),n==="start",r);return s&&(o=o.map(u=>u+"-"+s),t&&(o=o.concat(o.map(Z0)))),o}function Ef(e){return e.replace(/left|right|bottom|top/g,t=>lj[t])}function bj(e){return{top:0,right:0,bottom:0,left:0,...e}}function ZC(e){return typeof e!="number"?bj(e):{top:e,right:e,bottom:e,left:e}}function vf(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function $T(e,t,n){let{reference:r,floating:s}=e;const o=Yr(t),u=My(t),l=Dy(u),d=Ss(t),f=o==="y",h=r.x+r.width/2-s.width/2,m=r.y+r.height/2-s.height/2,b=r[l]/2-s[l]/2;let E;switch(d){case"top":E={x:h,y:r.y-s.height};break;case"bottom":E={x:h,y:r.y+r.height};break;case"right":E={x:r.x+r.width,y:m};break;case"left":E={x:r.x-s.width,y:m};break;default:E={x:r.x,y:r.y}}switch(Ba(t)){case"start":E[u]-=b*(n&&f?-1:1);break;case"end":E[u]+=b*(n&&f?-1:1);break}return E}const xj=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:u}=n,l=o.filter(Boolean),d=await(u.isRTL==null?void 0:u.isRTL(t));let f=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:h,y:m}=$T(f,r,d),b=r,E={},_=0;for(let w=0;w<l.length;w++){const{name:A,fn:T}=l[w],{x:N,y:S,data:R,reset:D}=await T({x:h,y:m,initialPlacement:r,placement:b,strategy:s,middlewareData:E,rects:f,platform:u,elements:{reference:e,floating:t}});h=N??h,m=S??m,E={...E,[A]:{...E[A],...R}},D&&_<=50&&(_++,typeof D=="object"&&(D.placement&&(b=D.placement),D.rects&&(f=D.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):D.rects),{x:h,y:m}=$T(f,b,d)),w=-1)}return{x:h,y:m,placement:b,strategy:s,middlewareData:E}};async function Cl(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:u,elements:l,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:b=!1,padding:E=0}=ws(t,e),_=ZC(E),A=l[b?m==="floating"?"reference":"floating":m],T=vf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(A)))==null||n?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:f,rootBoundary:h,strategy:d})),N=m==="floating"?{x:r,y:s,width:u.floating.width,height:u.floating.height}:u.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),R=await(o.isElement==null?void 0:o.isElement(S))?await(o.getScale==null?void 0:o.getScale(S))||{x:1,y:1}:{x:1,y:1},D=vf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:S,strategy:d}):N);return{top:(T.top-D.top+_.top)/R.y,bottom:(D.bottom-T.bottom+_.bottom)/R.y,left:(T.left-D.left+_.left)/R.x,right:(D.right-T.right+_.right)/R.x}}const Ej=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:u,elements:l,middlewareData:d}=t,{element:f,padding:h=0}=ws(e,t)||{};if(f==null)return{};const m=ZC(h),b={x:n,y:r},E=My(s),_=Dy(E),w=await u.getDimensions(f),A=E==="y",T=A?"top":"left",N=A?"bottom":"right",S=A?"clientHeight":"clientWidth",R=o.reference[_]+o.reference[E]-b[E]-o.floating[_],D=b[E]-o.reference[E],M=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f));let W=M?M[S]:0;(!W||!await(u.isElement==null?void 0:u.isElement(M)))&&(W=l.floating[S]||o.floating[_]);const H=R/2-D/2,se=W/2-w[_]/2-1,J=gi(m[T],se),ee=gi(m[N],se),oe=J,ie=W-w[_]-ee,ne=W/2-w[_]/2+H,me=J0(oe,ne,ie),de=!d.arrow&&Ba(s)!=null&&ne!==me&&o.reference[_]/2-(ne<oe?J:ee)-w[_]/2<0,ae=de?ne<oe?ne-oe:ne-ie:0;return{[E]:b[E]+ae,data:{[E]:me,centerOffset:ne-me-ae,...de&&{alignmentOffset:ae}},reset:de}}}),vj=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:u,initialPlacement:l,platform:d,elements:f}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:w=!0,...A}=ws(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const T=Ss(s),N=Yr(l),S=Ss(l)===l,R=await(d.isRTL==null?void 0:d.isRTL(f.floating)),D=b||(S||!w?[Ef(l)]:hj(l)),M=_!=="none";!b&&M&&D.push(...yj(l,w,_,R));const W=[l,...D],H=await Cl(t,A),se=[];let J=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&se.push(H[T]),m){const ne=fj(s,u,R);se.push(H[ne[0]],H[ne[1]])}if(J=[...J,{placement:s,overflows:se}],!se.every(ne=>ne<=0)){var ee,oe;const ne=(((ee=o.flip)==null?void 0:ee.index)||0)+1,me=W[ne];if(me&&(!(m==="alignment"?N!==Yr(me):!1)||J.every($=>Yr($.placement)===N?$.overflows[0]>0:!0)))return{data:{index:ne,overflows:J},reset:{placement:me}};let de=(oe=J.filter(ae=>ae.overflows[0]<=0).sort((ae,$)=>ae.overflows[1]-$.overflows[1])[0])==null?void 0:oe.placement;if(!de)switch(E){case"bestFit":{var ie;const ae=(ie=J.filter($=>{if(M){const fe=Yr($.placement);return fe===N||fe==="y"}return!0}).map($=>[$.placement,$.overflows.filter(fe=>fe>0).reduce((fe,I)=>fe+I,0)]).sort(($,fe)=>$[1]-fe[1])[0])==null?void 0:ie[0];ae&&(de=ae);break}case"initialPlacement":de=l;break}if(s!==de)return{reset:{placement:de}}}return{}}}};function qT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function YT(e){return uj.some(t=>e[t]>=0)}const Tj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=ws(e,t);switch(r){case"referenceHidden":{const o=await Cl(t,{...s,elementContext:"reference"}),u=qT(o,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:YT(u)}}}case"escaped":{const o=await Cl(t,{...s,altBoundary:!0}),u=qT(o,n.floating);return{data:{escapedOffsets:u,escaped:YT(u)}}}default:return{}}}}},eA=new Set(["left","top"]);async function wj(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),u=Ss(n),l=Ba(n),d=Yr(n)==="y",f=eA.has(u)?-1:1,h=o&&d?-1:1,m=ws(t,e);let{mainAxis:b,crossAxis:E,alignmentAxis:_}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof _=="number"&&(E=l==="end"?_*-1:_),d?{x:E*h,y:b*f}:{x:b*f,y:E*h}}const Sj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:u,middlewareData:l}=t,d=await wj(t,e);return u===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+d.x,y:o+d.y,data:{...d,placement:u}}}}},_j=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:u=!1,limiter:l={fn:A=>{let{x:T,y:N}=A;return{x:T,y:N}}},...d}=ws(e,t),f={x:n,y:r},h=await Cl(t,d),m=Yr(Ss(s)),b=Ly(m);let E=f[b],_=f[m];if(o){const A=b==="y"?"top":"left",T=b==="y"?"bottom":"right",N=E+h[A],S=E-h[T];E=J0(N,E,S)}if(u){const A=m==="y"?"top":"left",T=m==="y"?"bottom":"right",N=_+h[A],S=_-h[T];_=J0(N,_,S)}const w=l.fn({...t,[b]:E,[m]:_});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[b]:o,[m]:u}}}}}},Cj=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:u}=t,{offset:l=0,mainAxis:d=!0,crossAxis:f=!0}=ws(e,t),h={x:n,y:r},m=Yr(s),b=Ly(m);let E=h[b],_=h[m];const w=ws(l,t),A=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(d){const S=b==="y"?"height":"width",R=o.reference[b]-o.floating[S]+A.mainAxis,D=o.reference[b]+o.reference[S]-A.mainAxis;E<R?E=R:E>D&&(E=D)}if(f){var T,N;const S=b==="y"?"width":"height",R=eA.has(Ss(s)),D=o.reference[m]-o.floating[S]+(R&&((T=u.offset)==null?void 0:T[m])||0)+(R?0:A.crossAxis),M=o.reference[m]+o.reference[S]+(R?0:((N=u.offset)==null?void 0:N[m])||0)-(R?A.crossAxis:0);_<D?_=D:_>M&&(_=M)}return{[b]:E,[m]:_}}}},Aj=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:u,elements:l}=t,{apply:d=()=>{},...f}=ws(e,t),h=await Cl(t,f),m=Ss(s),b=Ba(s),E=Yr(s)==="y",{width:_,height:w}=o.floating;let A,T;m==="top"||m==="bottom"?(A=m,T=b===(await(u.isRTL==null?void 0:u.isRTL(l.floating))?"start":"end")?"left":"right"):(T=m,A=b==="end"?"top":"bottom");const N=w-h.top-h.bottom,S=_-h.left-h.right,R=gi(w-h[A],N),D=gi(_-h[T],S),M=!t.middlewareData.shift;let W=R,H=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(W=N),M&&!b){const J=Qn(h.left,0),ee=Qn(h.right,0),oe=Qn(h.top,0),ie=Qn(h.bottom,0);E?H=_-2*(J!==0||ee!==0?J+ee:Qn(h.left,h.right)):W=w-2*(oe!==0||ie!==0?oe+ie:Qn(h.top,h.bottom))}await d({...t,availableWidth:H,availableHeight:W});const se=await u.getDimensions(l.floating);return _!==se.width||w!==se.height?{reset:{rects:!0}}:{}}}};function Wf(){return typeof window<"u"}function Fa(e){return tA(e)?(e.nodeName||"").toLowerCase():"#document"}function Xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ts(e){var t;return(t=(tA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tA(e){return Wf()?e instanceof Node||e instanceof Xn(e).Node:!1}function Nr(e){return Wf()?e instanceof Element||e instanceof Xn(e).Element:!1}function Zr(e){return Wf()?e instanceof HTMLElement||e instanceof Xn(e).HTMLElement:!1}function KT(e){return!Wf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xn(e).ShadowRoot}const Nj=new Set(["inline","contents"]);function Gl(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=kr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Nj.has(s)}const kj=new Set(["table","td","th"]);function Rj(e){return kj.has(Fa(e))}const Pj=[":popover-open",":modal"];function $f(e){return Pj.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ij=["transform","translate","scale","rotate","perspective"],Oj=["transform","translate","scale","rotate","perspective","filter"],Lj=["paint","layout","strict","content"];function By(e){const t=Fy(),n=Nr(e)?kr(e):e;return Ij.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Oj.some(r=>(n.willChange||"").includes(r))||Lj.some(r=>(n.contain||"").includes(r))}function Dj(e){let t=yi(e);for(;Zr(t)&&!Ca(t);){if(By(t))return t;if($f(t))return null;t=yi(t)}return null}function Fy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Mj=new Set(["html","body","#document"]);function Ca(e){return Mj.has(Fa(e))}function kr(e){return Xn(e).getComputedStyle(e)}function qf(e){return Nr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yi(e){if(Fa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||KT(e)&&e.host||ts(e);return KT(t)?t.host:t}function nA(e){const t=yi(e);return Ca(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zr(t)&&Gl(t)?t:nA(t)}function Al(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=nA(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),u=Xn(s);if(o){const l=eg(u);return t.concat(u,u.visualViewport||[],Gl(s)?s:[],l&&n?Al(l):[])}return t.concat(s,Al(s,[],n))}function eg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rA(e){const t=kr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Zr(e),o=s?e.offsetWidth:n,u=s?e.offsetHeight:r,l=xf(n)!==o||xf(r)!==u;return l&&(n=o,r=u),{width:n,height:r,$:l}}function jy(e){return Nr(e)?e:e.contextElement}function ua(e){const t=jy(e);if(!Zr(t))return Xr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=rA(t);let u=(o?xf(n.width):n.width)/r,l=(o?xf(n.height):n.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const Bj=Xr(0);function sA(e){const t=Xn(e);return!Fy()||!t.visualViewport?Bj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fj(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xn(e)?!1:t}function fo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=jy(e);let u=Xr(1);t&&(r?Nr(r)&&(u=ua(r)):u=ua(e));const l=Fj(o,n,r)?sA(o):Xr(0);let d=(s.left+l.x)/u.x,f=(s.top+l.y)/u.y,h=s.width/u.x,m=s.height/u.y;if(o){const b=Xn(o),E=r&&Nr(r)?Xn(r):r;let _=b,w=eg(_);for(;w&&r&&E!==_;){const A=ua(w),T=w.getBoundingClientRect(),N=kr(w),S=T.left+(w.clientLeft+parseFloat(N.paddingLeft))*A.x,R=T.top+(w.clientTop+parseFloat(N.paddingTop))*A.y;d*=A.x,f*=A.y,h*=A.x,m*=A.y,d+=S,f+=R,_=Xn(w),w=eg(_)}}return vf({width:h,height:m,x:d,y:f})}function Yf(e,t){const n=qf(e).scrollLeft;return t?t.left+n:fo(ts(e)).left+n}function iA(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Yf(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function jj(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",u=ts(r),l=t?$f(t.floating):!1;if(r===u||l&&o)return n;let d={scrollLeft:0,scrollTop:0},f=Xr(1);const h=Xr(0),m=Zr(r);if((m||!m&&!o)&&((Fa(r)!=="body"||Gl(u))&&(d=qf(r)),Zr(r))){const E=fo(r);f=ua(r),h.x=E.x+r.clientLeft,h.y=E.y+r.clientTop}const b=u&&!m&&!o?iA(u,d):Xr(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+h.x+b.x,y:n.y*f.y-d.scrollTop*f.y+h.y+b.y}}function Uj(e){return Array.from(e.getClientRects())}function Hj(e){const t=ts(e),n=qf(e),r=e.ownerDocument.body,s=Qn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Qn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+Yf(e);const l=-n.scrollTop;return kr(r).direction==="rtl"&&(u+=Qn(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:u,y:l}}const QT=25;function Vj(e,t){const n=Xn(e),r=ts(e),s=n.visualViewport;let o=r.clientWidth,u=r.clientHeight,l=0,d=0;if(s){o=s.width,u=s.height;const h=Fy();(!h||h&&t==="fixed")&&(l=s.offsetLeft,d=s.offsetTop)}const f=Yf(r);if(f<=0){const h=r.ownerDocument,m=h.body,b=getComputedStyle(m),E=h.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,_=Math.abs(r.clientWidth-m.clientWidth-E);_<=QT&&(o-=_)}else f<=QT&&(o+=f);return{width:o,height:u,x:l,y:d}}const zj=new Set(["absolute","fixed"]);function Wj(e,t){const n=fo(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Zr(e)?ua(e):Xr(1),u=e.clientWidth*o.x,l=e.clientHeight*o.y,d=s*o.x,f=r*o.y;return{width:u,height:l,x:d,y:f}}function GT(e,t,n){let r;if(t==="viewport")r=Vj(e,n);else if(t==="document")r=Hj(ts(e));else if(Nr(t))r=Wj(t,n);else{const s=sA(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return vf(r)}function oA(e,t){const n=yi(e);return n===t||!Nr(n)||Ca(n)?!1:kr(n).position==="fixed"||oA(n,t)}function $j(e,t){const n=t.get(e);if(n)return n;let r=Al(e,[],!1).filter(l=>Nr(l)&&Fa(l)!=="body"),s=null;const o=kr(e).position==="fixed";let u=o?yi(e):e;for(;Nr(u)&&!Ca(u);){const l=kr(u),d=By(u);!d&&l.position==="fixed"&&(s=null),(o?!d&&!s:!d&&l.position==="static"&&!!s&&zj.has(s.position)||Gl(u)&&!d&&oA(e,u))?r=r.filter(h=>h!==u):s=l,u=yi(u)}return t.set(e,r),r}function qj(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const u=[...n==="clippingAncestors"?$f(t)?[]:$j(t,this._c):[].concat(n),r],l=u[0],d=u.reduce((f,h)=>{const m=GT(t,h,s);return f.top=Qn(m.top,f.top),f.right=gi(m.right,f.right),f.bottom=gi(m.bottom,f.bottom),f.left=Qn(m.left,f.left),f},GT(t,l,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Yj(e){const{width:t,height:n}=rA(e);return{width:t,height:n}}function Kj(e,t,n){const r=Zr(t),s=ts(t),o=n==="fixed",u=fo(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const d=Xr(0);function f(){d.x=Yf(s)}if(r||!r&&!o)if((Fa(t)!=="body"||Gl(s))&&(l=qf(t)),r){const E=fo(t,!0,o,t);d.x=E.x+t.clientLeft,d.y=E.y+t.clientTop}else s&&f();o&&!r&&s&&f();const h=s&&!r&&!o?iA(s,l):Xr(0),m=u.left+l.scrollLeft-d.x-h.x,b=u.top+l.scrollTop-d.y-h.y;return{x:m,y:b,width:u.width,height:u.height}}function Dm(e){return kr(e).position==="static"}function XT(e,t){if(!Zr(e)||kr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ts(e)===n&&(n=n.ownerDocument.body),n}function aA(e,t){const n=Xn(e);if($f(e))return n;if(!Zr(e)){let s=yi(e);for(;s&&!Ca(s);){if(Nr(s)&&!Dm(s))return s;s=yi(s)}return n}let r=XT(e,t);for(;r&&Rj(r)&&Dm(r);)r=XT(r,t);return r&&Ca(r)&&Dm(r)&&!By(r)?n:r||Dj(e)||n}const Qj=async function(e){const t=this.getOffsetParent||aA,n=this.getDimensions,r=await n(e.floating);return{reference:Kj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gj(e){return kr(e).direction==="rtl"}const Xj={convertOffsetParentRelativeRectToViewportRelativeRect:jj,getDocumentElement:ts,getClippingRect:qj,getOffsetParent:aA,getElementRects:Qj,getClientRects:Uj,getDimensions:Yj,getScale:ua,isElement:Nr,isRTL:Gj};function uA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jj(e,t){let n=null,r;const s=ts(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function u(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),o();const f=e.getBoundingClientRect(),{left:h,top:m,width:b,height:E}=f;if(l||t(),!b||!E)return;const _=_d(m),w=_d(s.clientWidth-(h+b)),A=_d(s.clientHeight-(m+E)),T=_d(h),S={rootMargin:-_+"px "+-w+"px "+-A+"px "+-T+"px",threshold:Qn(0,gi(1,d))||1};let R=!0;function D(M){const W=M[0].intersectionRatio;if(W!==d){if(!R)return u();W?u(!1,W):r=setTimeout(()=>{u(!1,1e-7)},1e3)}W===1&&!uA(f,e.getBoundingClientRect())&&u(),R=!1}try{n=new IntersectionObserver(D,{...S,root:s.ownerDocument})}catch{n=new IntersectionObserver(D,S)}n.observe(e)}return u(!0),o}function Zj(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=jy(e),h=s||o?[...f?Al(f):[],...Al(t)]:[];h.forEach(T=>{s&&T.addEventListener("scroll",n,{passive:!0}),o&&T.addEventListener("resize",n)});const m=f&&l?Jj(f,n):null;let b=-1,E=null;u&&(E=new ResizeObserver(T=>{let[N]=T;N&&N.target===f&&E&&(E.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var S;(S=E)==null||S.observe(t)})),n()}),f&&!d&&E.observe(f),E.observe(t));let _,w=d?fo(e):null;d&&A();function A(){const T=fo(e);w&&!uA(w,T)&&n(),w=T,_=requestAnimationFrame(A)}return n(),()=>{var T;h.forEach(N=>{s&&N.removeEventListener("scroll",n),o&&N.removeEventListener("resize",n)}),m==null||m(),(T=E)==null||T.disconnect(),E=null,d&&cancelAnimationFrame(_)}}const eU=Sj,tU=_j,nU=vj,rU=Aj,sU=Tj,JT=Ej,iU=Cj,oU=(e,t,n)=>{const r=new Map,s={platform:Xj,...n},o={...s.platform,_c:r};return xj(e,t,{...s,platform:o})};var aU=typeof document<"u",uU=function(){},Zd=aU?C.useLayoutEffect:uU;function Tf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Tf(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!Tf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function lA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ZT(e,t){const n=lA(e);return Math.round(t*n)/n}function Mm(e){const t=C.useRef(e);return Zd(()=>{t.current=e}),t}function lU(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:u}={},transform:l=!0,whileElementsMounted:d,open:f}=e,[h,m]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,E]=C.useState(r);Tf(b,r)||E(r);const[_,w]=C.useState(null),[A,T]=C.useState(null),N=C.useCallback($=>{$!==M.current&&(M.current=$,w($))},[]),S=C.useCallback($=>{$!==W.current&&(W.current=$,T($))},[]),R=o||_,D=u||A,M=C.useRef(null),W=C.useRef(null),H=C.useRef(h),se=d!=null,J=Mm(d),ee=Mm(s),oe=Mm(f),ie=C.useCallback(()=>{if(!M.current||!W.current)return;const $={placement:t,strategy:n,middleware:b};ee.current&&($.platform=ee.current),oU(M.current,W.current,$).then(fe=>{const I={...fe,isPositioned:oe.current!==!1};ne.current&&!Tf(H.current,I)&&(H.current=I,jl.flushSync(()=>{m(I)}))})},[b,t,n,ee,oe]);Zd(()=>{f===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,m($=>({...$,isPositioned:!1})))},[f]);const ne=C.useRef(!1);Zd(()=>(ne.current=!0,()=>{ne.current=!1}),[]),Zd(()=>{if(R&&(M.current=R),D&&(W.current=D),R&&D){if(J.current)return J.current(R,D,ie);ie()}},[R,D,ie,J,se]);const me=C.useMemo(()=>({reference:M,floating:W,setReference:N,setFloating:S}),[N,S]),de=C.useMemo(()=>({reference:R,floating:D}),[R,D]),ae=C.useMemo(()=>{const $={position:n,left:0,top:0};if(!de.floating)return $;const fe=ZT(de.floating,h.x),I=ZT(de.floating,h.y);return l?{...$,transform:"translate("+fe+"px, "+I+"px)",...lA(de.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:fe,top:I}},[n,l,de.floating,h.x,h.y]);return C.useMemo(()=>({...h,update:ie,refs:me,elements:de,floatingStyles:ae}),[h,ie,me,de,ae])}const cU=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?JT({element:r.current,padding:s}).fn(n):{}:r?JT({element:r,padding:s}).fn(n):{}}}},dU=(e,t)=>({...eU(e),options:[e,t]}),fU=(e,t)=>({...tU(e),options:[e,t]}),hU=(e,t)=>({...iU(e),options:[e,t]}),pU=(e,t)=>({...nU(e),options:[e,t]}),mU=(e,t)=>({...rU(e),options:[e,t]}),gU=(e,t)=>({...sU(e),options:[e,t]}),yU=(e,t)=>({...cU(e),options:[e,t]});var bU="Arrow",cA=C.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...o}=e;return g.jsx(Nt.svg,{...o,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});cA.displayName=bU;var xU=cA;function EU(e){const[t,n]=C.useState(void 0);return Hn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let u,l;if("borderBoxSize"in o){const d=o.borderBoxSize,f=Array.isArray(d)?d[0]:d;u=f.inlineSize,l=f.blockSize}else u=e.offsetWidth,l=e.offsetHeight;n({width:u,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Uy="Popper",[dA,fA]=Iy(Uy),[vU,hA]=dA(Uy),pA=e=>{const{__scopePopper:t,children:n}=e,[r,s]=C.useState(null);return g.jsx(vU,{scope:t,anchor:r,onAnchorChange:s,children:n})};pA.displayName=Uy;var mA="PopperAnchor",gA=C.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,o=hA(mA,n),u=C.useRef(null),l=on(t,u),d=C.useRef(null);return C.useEffect(()=>{const f=d.current;d.current=(r==null?void 0:r.current)||u.current,f!==d.current&&o.onAnchorChange(d.current)}),r?null:g.jsx(Nt.div,{...s,ref:l})});gA.displayName=mA;var Hy="PopperContent",[TU,wU]=dA(Hy),yA=C.forwardRef((e,t)=>{var te,xe,Ie,Oe,We,Fe;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:u=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:b=!1,updatePositionStrategy:E="optimized",onPlaced:_,...w}=e,A=hA(Hy,n),[T,N]=C.useState(null),S=on(t,st=>N(st)),[R,D]=C.useState(null),M=EU(R),W=(M==null?void 0:M.width)??0,H=(M==null?void 0:M.height)??0,se=r+(o!=="center"?"-"+o:""),J=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},ee=Array.isArray(f)?f:[f],oe=ee.length>0,ie={padding:J,boundary:ee.filter(_U),altBoundary:oe},{refs:ne,floatingStyles:me,placement:de,isPositioned:ae,middlewareData:$}=lU({strategy:"fixed",placement:se,whileElementsMounted:(...st)=>Zj(...st,{animationFrame:E==="always"}),elements:{reference:A.anchor},middleware:[dU({mainAxis:s+H,alignmentAxis:u}),d&&fU({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?hU():void 0,...ie}),d&&pU({...ie}),mU({...ie,apply:({elements:st,rects:dt,availableWidth:Cn,availableHeight:xn})=>{const{width:St,height:je}=dt.reference,lt=st.floating.style;lt.setProperty("--radix-popper-available-width",`${Cn}px`),lt.setProperty("--radix-popper-available-height",`${xn}px`),lt.setProperty("--radix-popper-anchor-width",`${St}px`),lt.setProperty("--radix-popper-anchor-height",`${je}px`)}}),R&&yU({element:R,padding:l}),CU({arrowWidth:W,arrowHeight:H}),b&&gU({strategy:"referenceHidden",...ie})]}),[fe,I]=EA(de),U=co(_);Hn(()=>{ae&&(U==null||U())},[ae,U]);const X=(te=$.arrow)==null?void 0:te.x,O=(xe=$.arrow)==null?void 0:xe.y,Ee=((Ie=$.arrow)==null?void 0:Ie.centerOffset)!==0,[Pe,_e]=C.useState();return Hn(()=>{T&&_e(window.getComputedStyle(T).zIndex)},[T]),g.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:ae?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pe,"--radix-popper-transform-origin":[(Oe=$.transformOrigin)==null?void 0:Oe.x,(We=$.transformOrigin)==null?void 0:We.y].join(" "),...((Fe=$.hide)==null?void 0:Fe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(TU,{scope:n,placedSide:fe,onArrowChange:D,arrowX:X,arrowY:O,shouldHideArrow:Ee,children:g.jsx(Nt.div,{"data-side":fe,"data-align":I,...w,ref:S,style:{...w.style,animation:ae?void 0:"none"}})})})});yA.displayName=Hy;var bA="PopperArrow",SU={top:"bottom",right:"left",bottom:"top",left:"r
259ight"},xA=C.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,o=wU(bA,r),u=SU[o.placedSide];return g.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:g.jsx(xU,{...s,ref:n,style:{...s.style,display:"block"}})})});xA.displayName=bA;function _U(e){return e!==null}var CU=e=>({name:"transformOrigin",options:e,fn(t){var A,T,N;const{placement:n,rects:r,middlewareData:s}=t,u=((A=s.arrow)==null?void 0:A.centerOffset)!==0,l=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[f,h]=EA(n),m={start:"0%",center:"50%",end:"100%"}[h],b=(((T=s.arrow)==null?void 0:T.x)??0)+l/2,E=(((N=s.arrow)==null?void 0:N.y)??0)+d/2;let _="",w="";return f==="bottom"?(_=u?m:`${b}px`,w=`${-d}px`):f==="top"?(_=u?m:`${b}px`,w=`${r.floating.height+d}px`):f==="right"?(_=`${-d}px`,w=u?m:`${E}px`):f==="left"&&(_=`${r.floating.width+d}px`,w=u?m:`${E}px`),{data:{x:_,y:w}}}});function EA(e){const[t,n="center"]=e.split("-");return[t,n]}var AU=pA,NU=gA,kU=yA,RU=xA,PU="Portal",vA=C.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[s,o]=C.useState(!1);Hn(()=>o(!0),[]);const u=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return u?sO.createPortal(g.jsx(Nt.div,{...r,ref:t}),u):null});vA.displayName=PU;var IU=Sg[" useInsertionEffect ".trim().toString()]||Hn;function ew({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,o,u]=OU({defaultProp:t,onChange:n}),l=e!==void 0,d=l?e:s;{const h=C.useRef(e!==void 0);C.useEffect(()=>{const m=h.current;m!==l&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${l?"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.`),h.current=l},[l,r])}const f=C.useCallback(h=>{var m;if(l){const b=LU(h)?h(e):h;b!==e&&((m=u.current)==null||m.call(u,b))}else o(h)},[l,e,o,u]);return[d,f]}function OU({defaultProp:e,onChange:t}){const[n,r]=C.useState(e),s=C.useRef(n),o=C.useRef(t);return IU(()=>{o.current=t},[t]),C.useEffect(()=>{var u;s.current!==n&&((u=o.current)==null||u.call(o,n),s.current=n)},[n,s]),[n,r,o]}function LU(e){return typeof e=="function"}function DU(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var TA=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"}),MU="VisuallyHidden",BU=C.forwardRef((e,t)=>g.jsx(Nt.span,{...e,ref:t,style:{...TA,...e.style}}));BU.displayName=MU;var FU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Go=new WeakMap,Cd=new WeakMap,Ad={},Bm=0,wA=function(e){return e&&(e.host||wA(e.parentNode))},jU=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=wA(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},UU=function(e,t,n,r){var s=jU(t,Array.isArray(e)?e:[e]);Ad[n]||(Ad[n]=new WeakMap);var o=Ad[n],u=[],l=new Set,d=new Set(s),f=function(m){!m||l.has(m)||(l.add(m),f(m.parentNode))};s.forEach(f);var h=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(b){if(l.has(b))h(b);else try{var E=b.getAttribute(r),_=E!==null&&E!=="false",w=(Go.get(b)||0)+1,A=(o.get(b)||0)+1;Go.set(b,w),o.set(b,A),u.push(b),w===1&&_&&Cd.set(b,!0),A===1&&b.setAttribute(n,"true"),_||b.setAttribute(r,"true")}catch(T){console.error("aria-hidden: cannot operate on ",b,T)}})};return h(t),l.clear(),Bm++,function(){u.forEach(function(m){var b=Go.get(m)-1,E=o.get(m)-1;Go.set(m,b),o.set(m,E),b||(Cd.has(m)||m.removeAttribute(r),Cd.delete(m)),E||m.removeAttribute(n)}),Bm--,Bm||(Go=new WeakMap,Go=new WeakMap,Cd=new WeakMap,Ad={})}},HU=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=FU(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live], script"))),UU(r,s,n,"aria-hidden")):function(){return null}},Wr=function(){return Wr=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Wr.apply(this,arguments)};function SA(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function VU(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var ef="right-scroll-bar-position",tf="width-before-scroll-bar",zU="with-scroll-bars-hidden",WU="--removed-body-scroll-bar-size";function Fm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $U(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var qU=typeof window<"u"?C.useLayoutEffect:C.useEffect,tw=new WeakMap;function YU(e,t){var n=$U(null,function(r){return e.forEach(function(s){return Fm(s,r)})});return qU(function(){var r=tw.get(n);if(r){var s=new Set(r),o=new Set(e),u=n.current;
vendor: 4,196 bytes, lines 259-274
259s.forEach(function(l){o.has(l)||Fm(l,null)}),o.forEach(function(l){s.has(l)||Fm(l,u)})}tw.set(n,e)},[e]),n}function KU(e){return e}function QU(e,t){t===void 0&&(t=KU);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var u=t(o,r);return n.push(u),function(){n=n.filter(function(l){return l!==u})}},assignSyncMedium:function(o){for(r=!0;n.length;){var u=n;n=[],u.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var u=[];if(n.length){var l=n;n=[],l.forEach(o),u=n}var d=function(){var h=u;u=[],h.forEach(o)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(h){u.push(h),f()},filter:function(h){return u=u.filter(h),n}}}};return s}function GU(e){e===void 0&&(e={});var t=QU(null);return t.options=Wr({async:!0,ssr:!1},e),t}var _A=function(e){var t=e.sideCar,n=SA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,Wr({},n))};_A.isSideCarExport=!0;function XU(e,t){return e.useMedium(t),_A}var CA=GU(),jm=function(){},Kf=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:jm,onWheelCapture:jm,onTouchMoveCapture:jm}),s=r[0],o=r[1],u=e.forwardProps,l=e.children,d=e.className,f=e.removeScrollBar,h=e.enabled,m=e.shards,b=e.sideCar,E=e.noRelative,_=e.noIsolation,w=e.inert,A=e.allowPinchZoom,T=e.as,N=T===void 0?"div":T,S=e.gapMode,R=SA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=b,M=YU([n,t]),W=Wr(Wr({},R),s);return C.createElement(C.Fragment,null,h&&C.createElement(D,{sideCar:CA,removeScrollBar:f,shards:m,noRelative:E,noIsolation:_,inert:w,setCallbacks:o,allowPinchZoom:!!A,lockRef:n,gapMode:S}),u?C.cloneElement(C.Children.only(l),Wr(Wr({},W),{ref:M})):C.createElement(N,Wr({},W,{className:d,ref:M}),l))});Kf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kf.classNames={fullWidth:tf,zeroRight:ef};var JU=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ZU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=JU();return t&&e.setAttribute("nonce",t),e}function e7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function t7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var n7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ZU())&&(e7(t,n),t7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},r7=function(){var e=n7();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},AA=function(){var e=r7(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},s7={left:0,top:0,right:0,gap:0},Um=function(e){return parseInt(e||"",10)||0},i7=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Um(n),Um(r),Um(s)]},o7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return s7;var t=i7(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},a7=AA(),la="data-scroll-locked",u7=function(e,t,n,r){var s=e.left,o=e.top,u=e.right,l=e.gap;return n===void 0&&(n="margin"),` 260 .`.concat(zU,` { 261 overflow: hidden `).concat(r,`; 262 padding-right: `).concat(l,"px ").concat(r,`; 263 } 264 body[`).concat(la,`] { 265 overflow: hidden `).concat(r,`; 266 overscroll-behavior: contain; 267 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 268 padding-left: `.concat(s,`px; 269 padding-top: `).concat(o,`px; 270 padding-right: `).concat(u,`px; 271 margin-left:0; 272 margin-top:0; 273 margin-right: `).concat(l,"px ").concat(r,`; 274 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
274")].filter(Boolean).join(""),` 275 } 276 277 .`).concat(ef,` { 278 right: `).concat(l,"px ").concat(r,`; 279 } 280 281 .`).concat(tf,` { 282 margin-right: `).concat(l,"px ").concat(r,`; 283 } 284 285 .`).concat(ef," .").concat(ef,` { 286 right: 0 `).concat(r,`; 287 } 288 289 .`).concat(tf," .").concat(tf,` { 290 margin-right: 0 `).concat(r,`; 291 } 292 293 body[`).concat(la,`] { 294 `).concat(WU,": ").concat(l,`px; 295 } 296`)},nw=function(){var e=parseInt(document.body.getAttribute(la)||"0",10);return isFinite(e)?e:0},l7=function(){C.useEffect(function(){return document.body.setAttribute(la,(nw()+1).toString()),function(){var e=nw()-1;e<=0?document.body.removeAttribute(la):document.body.setAttribute(la,e.toString())}},[])},c7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;l7();var o=C.useMemo(function(){return o7(s)},[s]);return C.createElement(a7,{styles:u7(o,!t,s,n?"":"!important")})},tg=!1;if(typeof window<"u")try{var Nd=Object.defineProperty({},"passive",{get:function(){return tg=!0,!0}});window.addEventListener("test",Nd,Nd),window.removeEventListener("test",Nd,Nd)}catch{tg=!1}var Xo=tg?{passive:!1}:!1,d7=function(e){return e.tagName==="TEXTAREA"},NA=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!d7(e)&&n[t]==="visible")},f7=function(e){return NA(e,"overflowY")},h7=function(e){return NA(e,"overflowX")},rw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=kA(e,r);if(s){var o=RA(e,r),u=o[1],l=o[2];if(u>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},p7=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},m7=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},kA=function(e,t){return e==="v"?f7(t):h7(t)},RA=function(e,t){return e==="v"?p7(t):m7(t)},g7=function(e,t){return e==="h"&&t==="rtl"?-1:1},y7=function(e,t,n,r,s){var o=g7(e,window.getComputedStyle(t).direction),u=o*r,l=n.target,d=t.contains(l),f=!1,h=u>0,m=0,b=0;do{if(!l)break;var E=RA(e,l),_=E[0],w=E[1],A=E[2],T=w-A-o*_;(_||T)&&kA(e,l)&&(m+=T,b+=_);var N=l.parentNode;l=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!d&&l!==document.body||d&&(t.contains(l)||t===l));return(h&&Math.abs(m)<1||!h&&Math.abs(b)<1)&&(f=!0),f},kd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sw=function(e){return[e.deltaX,e.deltaY]},iw=function(e){return e&&"current"in e?e.current:e},b7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},x7=function(e){return` 297 .block-interactivity-`.concat(e,` {pointer-events: none;} 298 .allow-interactivity-`).concat(e,` {pointer-events: all;} 299`)},E7=0,Jo=[];function v7(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),s=C.useState(E7++)[0],o=C.useState(AA)[0],u=C.useRef(e);C.useEffect(function(){u.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var w=VU([e.lockRef.current],(e.shards||[]).map(iw),!0).filter(Boolean);return w.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEac
vendor: 4,648 bytes, line 299
299h(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=C.useCallback(function(w,A){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var T=kd(w),N=n.current,S="deltaX"in w?w.deltaX:N[0]-T[0],R="deltaY"in w?w.deltaY:N[1]-T[1],D,M=w.target,W=Math.abs(S)>Math.abs(R)?"h":"v";if("touches"in w&&W==="h"&&M.type==="range")return!1;var H=rw(W,M);if(!H)return!0;if(H?D=W:(D=W==="v"?"h":"v",H=rw(W,M)),!H)return!1;if(!r.current&&"changedTouches"in w&&(S||R)&&(r.current=D),!D)return!0;var se=r.current||D;return y7(se,A,w,se==="h"?S:R)},[]),d=C.useCallback(function(w){var A=w;if(!(!Jo.length||Jo[Jo.length-1]!==o)){var T="deltaY"in A?sw(A):kd(A),N=t.current.filter(function(D){return D.name===A.type&&(D.target===A.target||A.target===D.shadowParent)&&b7(D.delta,T)})[0];if(N&&N.should){A.cancelable&&A.preventDefault();return}if(!N){var S=(u.current.shards||[]).map(iw).filter(Boolean).filter(function(D){return D.contains(A.target)}),R=S.length>0?l(A,S[0]):!u.current.noIsolation;R&&A.cancelable&&A.preventDefault()}}},[]),f=C.useCallback(function(w,A,T,N){var S={name:w,delta:A,target:T,should:N,shadowParent:T7(T)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(R){return R!==S})},1)},[]),h=C.useCallback(function(w){n.current=kd(w),r.current=void 0},[]),m=C.useCallback(function(w){f(w.type,sw(w),w.target,l(w,e.lockRef.current))},[]),b=C.useCallback(function(w){f(w.type,kd(w),w.target,l(w,e.lockRef.current))},[]);C.useEffect(function(){return Jo.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:b}),document.addEventListener("wheel",d,Xo),document.addEventListener("touchmove",d,Xo),document.addEventListener("touchstart",h,Xo),function(){Jo=Jo.filter(function(w){return w!==o}),document.removeEventListener("wheel",d,Xo),document.removeEventListener("touchmove",d,Xo),document.removeEventListener("touchstart",h,Xo)}},[]);var E=e.removeScrollBar,_=e.inert;return C.createElement(C.Fragment,null,_?C.createElement(o,{styles:x7(s)}):null,E?C.createElement(c7,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function T7(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const w7=XU(CA,v7);var PA=C.forwardRef(function(e,t){return C.createElement(Kf,Wr({},e,{ref:t,sideCar:w7}))});PA.classNames=Kf.classNames;var S7=[" ","Enter","ArrowUp","ArrowDown"],_7=[" ","Enter"],ho="Select",[Qf,Gf,C7]=j9(ho),[ja]=Iy(ho,[C7,fA]),Xf=fA(),[A7,xi]=ja(ho),[N7,k7]=ja(ho),IA=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:o,value:u,defaultValue:l,onValueChange:d,dir:f,name:h,autoComplete:m,disabled:b,required:E,form:_}=e,w=Xf(t),[A,T]=C.useState(null),[N,S]=C.useState(null),[R,D]=C.useState(!1),M=H9(f),[W,H]=ew({prop:r,defaultProp:s??!1,onChange:o,caller:ho}),[se,J]=ew({prop:u,defaultProp:l,onChange:d,caller:ho}),ee=C.useRef(null),oe=A?_||!!A.closest("form"):!0,[ie,ne]=C.useState(new Set),me=Array.from(ie).map(de=>de.props.value).join(";");return g.jsx(AU,{...w,children:g.jsxs(A7,{required:E,scope:t,trigger:A,onTriggerChange:T,valueNode:N,onValueNodeChange:S,valueNodeHasChildren:R,onValueNodeHasChildrenChange:D,contentId:Oy(),value:se,onValueChange:J,open:W,onOpenChange:H,dir:M,triggerPointerDownPosRef:ee,disabled:b,children:[g.jsx(Qf.Provider,{scope:t,children:g.jsx(N7,{scope:e.__scopeSelect,onNativeOptionAdd:C.useCallback(de=>{ne(ae=>new Set(ae).add(de))},[]),onNativeOptionRemove:C.useCallback(de=>{ne(ae=>{const $=new Set(ae);return $.delete(de),$})},[]),children:n})}),oe?g.jsxs(nN,{"aria-hidden":!0,required:E,tabIndex:-1,name:h,autoComplete:m,value:se,onChange:de=>J(de.target.value),disabled:b,form:_,children:[se===void 0?g.jsx("option",{value:""}):null,Array.from(ie)]},me):null]})})};IA.displayName=ho;var OA="SelectTrigger",LA=C.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,o=Xf(n),u=xi(OA,n),l=u.disabled||r,d=on(t,u.onTriggerChange),f=Gf(n),h=C.useRef("touch"),[m,b,E]=sN(w=>{const A=f().filter(S=>!S.disabled),T=A.find(S=>S.value===u.value),N=iN(A,w,T);N!==void 0&&u.onValueChange(N.value)}),_=w=>{l||(u.onOpenChange(!0),E()),w&&(u.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return g.jsx(NU,{asChild:!0,...o,children:g.jsx(Nt.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":rN(u.value)?"":void 0,...s,ref:d,onClick:Mt(s.onClick,w=>
vendor: 14,420 bytes, line 299
299{w.currentTarget.focus(),h.current!=="mouse"&&_(w)}),onPointerDown:Mt(s.onPointerDown,w=>{h.current=w.pointerType;const A=w.target;A.hasPointerCapture(w.pointerId)&&A.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(_(w),w.preventDefault())}),onKeyDown:Mt(s.onKeyDown,w=>{const A=m.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&b(w.key),!(A&&w.key===" ")&&S7.includes(w.key)&&(_(),w.preventDefault())})})})});LA.displayName=OA;var DA="SelectValue",MA=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:o,placeholder:u="",...l}=e,d=xi(DA,n),{onValueNodeHasChildrenChange:f}=d,h=o!==void 0,m=on(t,d.onValueNodeChange);return Hn(()=>{f(h)},[f,h]),g.jsx(Nt.span,{...l,ref:m,style:{pointerEvents:"none"},children:rN(d.value)?g.jsx(g.Fragment,{children:u}):o})});MA.displayName=DA;var R7="SelectIcon",BA=C.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return g.jsx(Nt.span,{"aria-hidden":!0,...s,ref:t,children:r||"â¼"})});BA.displayName=R7;var P7="SelectPortal",FA=e=>g.jsx(vA,{asChild:!0,...e});FA.displayName=P7;var po="SelectContent",jA=C.forwardRef((e,t)=>{const n=xi(po,e.__scopeSelect),[r,s]=C.useState();if(Hn(()=>{s(new DocumentFragment)},[]),!n.open){const o=r;return o?jl.createPortal(g.jsx(UA,{scope:e.__scopeSelect,children:g.jsx(Qf.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),o):null}return g.jsx(HA,{...e,ref:t})});jA.displayName=po;var wr=10,[UA,Ei]=ja(po),I7="SelectContentImpl",O7=Sl("SelectContent.RemoveScroll"),HA=C.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:o,onPointerDownOutside:u,side:l,sideOffset:d,align:f,alignOffset:h,arrowPadding:m,collisionBoundary:b,collisionPadding:E,sticky:_,hideWhenDetached:w,avoidCollisions:A,...T}=e,N=xi(po,n),[S,R]=C.useState(null),[D,M]=C.useState(null),W=on(t,te=>R(te)),[H,se]=C.useState(null),[J,ee]=C.useState(null),oe=Gf(n),[ie,ne]=C.useState(!1),me=C.useRef(!1);C.useEffect(()=>{if(S)return HU(S)},[S]),J9();const de=C.useCallback(te=>{const[xe,...Ie]=oe().map(Fe=>Fe.ref.current),[Oe]=Ie.slice(-1),We=document.activeElement;for(const Fe of te)if(Fe===We||(Fe==null||Fe.scrollIntoView({block:"nearest"}),Fe===xe&&D&&(D.scrollTop=0),Fe===Oe&&D&&(D.scrollTop=D.scrollHeight),Fe==null||Fe.focus(),document.activeElement!==We))return},[oe,D]),ae=C.useCallback(()=>de([H,S]),[de,H,S]);C.useEffect(()=>{ie&&ae()},[ie,ae]);const{onOpenChange:$,triggerPointerDownPosRef:fe}=N;C.useEffect(()=>{if(S){let te={x:0,y:0};const xe=Oe=>{var We,Fe;te={x:Math.abs(Math.round(Oe.pageX)-(((We=fe.current)==null?void 0:We.x)??0)),y:Math.abs(Math.round(Oe.pageY)-(((Fe=fe.current)==null?void 0:Fe.y)??0))}},Ie=Oe=>{te.x<=10&&te.y<=10?Oe.preventDefault():S.contains(Oe.target)||$(!1),document.removeEventListener("pointermove",xe),fe.current=null};return fe.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",Ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",Ie,{capture:!0})}}},[S,$,fe]),C.useEffect(()=>{const te=()=>$(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[$]);const[I,U]=sN(te=>{const xe=oe().filter(We=>!We.disabled),Ie=xe.find(We=>We.ref.current===document.activeElement),Oe=iN(xe,te,Ie);Oe&&setTimeout(()=>Oe.ref.current.focus())}),X=C.useCallback((te,xe,Ie)=>{const Oe=!me.current&&!Ie;(N.value!==void 0&&N.value===xe||Oe)&&(se(te),Oe&&(me.current=!0))},[N.value]),O=C.useCallback(()=>S==null?void 0:S.focus(),[S]),Ee=C.useCallback((te,xe,Ie)=>{const Oe=!me.current&&!Ie;(N.value!==void 0&&N.value===xe||Oe)&&ee(te)},[N.value]),Pe=r==="popper"?ng:VA,_e=Pe===ng?{side:l,sideOffset:d,align:f,alignOffset:h,arrowPadding:m,collisionBoundary:b,collisionPadding:E,sticky:_,hideWhenDetached:w,avoidCollisions:A}:{};return g.jsx(UA,{scope:n,content:S,viewport:D,onViewportChange:M,itemRefCallback:X,selectedItem:H,onItemLeave:O,itemTextRefCallback:Ee,focusSelectedItem:ae,selectedItemText:J,position:r,isPositioned:ie,searchRef:I,children:g.jsx(PA,{as:O7,allowPinchZoom:!0,children:g.jsx(XC,{asChild:!0,trapped:N.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:Mt(s,te=>{var xe;(xe=N.trigger)==null||xe.focus({preventScroll:!0}),te.preventDefault()}),children:g.jsx(QC,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:g.jsx(Pe,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:te=>te.preventDefault(),...T,..._e,onPlaced:()=>ne(!0),ref:W,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:Mt(T.onKeyDown,te=>{const xe=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!xe&&te.key.length===1&&U(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let Oe=oe().filter(We=>!We.disabled).map(We=>We.ref.current);if(["ArrowUp","End"].includes(te.key)&&(Oe=Oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const We=te.target,Fe=Oe.indexOf(We);Oe=Oe.slice(Fe+1)}setTimeout(()=>de(Oe)),te.preventDefault()}})})})})})})});HA.displayName=I7;var L7="SelectItemAlignedPosition",VA=C.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,o=xi(po,n),u=Ei(po,n),[l,d]=C.useState(null),[f,h]=C.useState(null),m=on(t,W=>h(W)),b=Gf(n),E=C.useRef(!1),_=C.useRef(!0),{viewport:w,selectedItem:A,selectedItemText:T,focusSelectedItem:N}=u,S=C.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&f&&w&&A&&T){const W=o.trigger.getBoundingClientRect(),H=f.getBoundingClientRect(),se=o.valueNode.getBoundingClientRect(),J=T.getBoundingClientRect();if(o.dir!=="rtl"){const We=J.left-H.left,Fe=se.left-We,st=W.left-Fe,dt=W.width+st,Cn=Math.max(dt,H.width),xn=window.innerWidth-wr,St=DT(Fe,[wr,Math.max(wr,xn-Cn)]);l.style.minWidth=dt+"px",l.style.left=St+"px"}else{const We=H.right-J.right,Fe=window.innerWidth-se.right-We,st=window.innerWidth-W.right-Fe,dt=W.width+st,Cn=Math.max(dt,H.width),xn=window.innerWidth-wr,St=DT(Fe,[wr,Math.max(wr,xn-Cn)]);l.style.minWidth=dt+"px",l.style.right=St+"px"}const ee=b(),oe=window.innerHeight-wr*2,ie=w.scrollHeight,ne=window.getComputedStyle(f),me=parseInt(ne.borderTopWidth,10),de=parseInt(ne.paddingTop,10),ae=parseInt(ne.borderBottomWidth,10),$=parseInt(ne.paddingBottom,10),fe=me+de+ie+$+ae,I=Math.min(A.offsetHeight*5,fe),U=window.getComputedStyle(w),X=parseInt(U.paddingTop,10),O=parseInt(U.paddingBottom,10),Ee=W.top+W.height/2-wr,Pe=oe-Ee,_e=A.offsetHeight/2,te=A.offsetTop+_e,xe=me+de+te,Ie=fe-xe;if(xe<=Ee){const We=ee.length>0&&A===ee[ee.length-1].ref.current;l.style.bottom="0px";const Fe=f.clientHeight-w.offsetTop-w.offsetHeight,st=Math.max(Pe,_e+(We?O:0)+Fe+ae),dt=xe+st;l.style.height=dt+"px"}else{const We=ee.length>0&&A===ee[0].ref.current;l.style.top="0px";const st=Math.max(Ee,me+w.offsetTop+(We?X:0)+_e)+Ie;l.style.height=st+"px",w.scrollTop=xe-Ee+w.offsetTop}l.style.margin=`${wr}px 0`,l.style.minHeight=I+"px",l.style.maxHeight=oe+"px",r==null||r(),requestAnimationFrame(()=>E.current=!0)}},[b,o.trigger,o.valueNode,l,f,w,A,T,o.dir,r]);Hn(()=>S(),[S]);const[R,D]=C.useState();Hn(()=>{f&&D(window.getComputedStyle(f).zIndex)},[f]);const M=C.useCallback(W=>{W&&_.current===!0&&(S(),N==null||N(),_.current=!1)},[S,N]);return g.jsx(M7,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:E,onScrollButtonChange:M,children:g.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:g.jsx(Nt.div,{...s,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});VA.displayName=L7;var D7="SelectPopperPosition",ng=C.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=wr,...o}=e,u=Xf(n);return g.jsx(kU,{...u,...o,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ng.displayName=D7;var[M7,Vy]=ja(po,{}),rg="SelectViewport",zA=C.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,o=Ei(rg,n),u=Vy(rg,n),l=on(t,o.onViewportChange),d=C.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),g.jsx(Qf.Slot,{scope:n,children:g.jsx(Nt.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Mt(s.onScroll,f=>{const h=f.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:b}=u;if(b!=null&&b.current&&m){const E=Math.abs(d.current-h.scrollTop);if(E>0){const _=window.innerHeight-wr*2,w=parseFloat(m.style.minHeight),A=parseFloat(m.style.height),T=Math.max(w,A);if(T<_){const N=T+E,S=Math.min(_,N),R=N-S;m.style.height=S+"px",m.style.bottom==="0px"&&(h.scrollTop=R>0?R:0,m.style.justifyContent="flex-end")}}}d.current=h.scrollTop})})})]})});zA.displayName=rg;var WA="SelectGroup",[B7,F7]=ja(WA),j7=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Oy();return g.jsx(B7,{scope:n,id:s,children:g.jsx(Nt.div,{role:"group","aria-labelledby":s,...r,ref:t})})});j7.displayName=WA;var $A="SelectLabel",qA=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=F7($A,n);return g.jsx(Nt.div,{id:s.id,...r,ref:t})});qA.displayName=$A;var wf="SelectItem",[U7,YA]=ja(wf),KA=C.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:o,...u}=e,l=xi(wf,n),d=Ei(wf,n),f=l.value===r,[h,m]=C.useState(o??""),[b,E]=C.useState(!1),_=on(t,N=>{var S;return(S=d.itemRefCallback)==null?void 0:S.call(d,N,r,s)}),w=Oy(),A=C.useRef("touch"),T=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(U7,{scope:n,value:r,disabled:s,textId:w,isSelected:f,onItemTextChange:C.useCallback(N=>{m(S=>S||((N==null?void 0:N.textContent)??"").trim())},[]),children:g.jsx(Qf.ItemSlot,{scope:n,value:r,disabled:s,textValue:h,children:g.jsx(Nt.div,{role:"option","aria-labelledby":w,"data-highlighted":b?"":void 0,"aria-selected":f&&b,"data-state":f?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...u,ref:_,onFocus:Mt(u.onFocus,()=>E(!0)),onBlur:Mt(u.onBlur,()=>E(!1)),onClick:Mt(u.onClick,()=>{A.current!=="mouse"&&T()}),onPointerUp:Mt(u.onPointerUp,()=>{A.current==="mouse"&&T()}),onPointerDown:Mt(u.onPointerDown,N=>{A.current=N.pointerType}),onPointerMove:Mt(u.onPointerMove,N=>{var S;A.current=N.pointerType,s?(S=d.onItemLeave)==null||S.call(d):A.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Mt(u.onPointerLeave,N=>{var S;N.currentTarget===document.activeElement&&((S=d.onItemLeave)==null||S.call(d))}),onKeyDown:Mt(u.onKeyDown,N=>{var R;((R=d.searchRef)==null?void 0:R.current)!==""&&N.key===" "||(_7.includes(N.key)&&T(),N.key===" "&&N.preventDefault())})})})})});KA.displayName=wf;var Gu="SelectItemText",QA=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...o}=e,u=xi(Gu,n),l=Ei(Gu,n),d=YA(Gu,n),f=k7(Gu,n),[h,m]=C.useState(null),b=on(t,T=>m(T),d.onItemTextChange,T=>{var N;return(N=l.itemTextRefCallback)==null?void 0:N.call(l,T,d.value,d.disabled)}),E=h==null?void 0:h.textContent,_=C.useMemo(()=>g.jsx("option",{value:d.value,disabled:d.disabled,children:E},d.value),[d.disabled,d.value,E]),{onNativeOptionAdd:w,onNativeOptionRemove:A}=f;return Hn(()=>(w(_),()=>A(_)),[w,A,_]),g.jsxs(g.Fragment,{children:[g.jsx(Nt.span,{id:d.textId,...o,ref:b}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?jl.createPortal(o.children,u.valueNode):null]})});QA.displayName=Gu;var GA="SelectItemIndicator",XA=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return YA(GA,n).isSelected?g.jsx(Nt.span,{"aria-hidden":!0,...r,ref:t}):null});XA.displayName=GA;var sg="SelectScrollUpButton",JA=C.forwardRef((e,t)=>{const n=Ei(sg,e.__scopeSelect),r=Vy(sg,e.__scopeSelect),[s,o]=C.useState(!1),u=on(t,r.onScrollButtonChange);return Hn(()=>{if(n.viewport&&n.isPositioned){let l=function(){const f=d.scrollTop>0;o(f)};const d=n.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?g.jsx(eN,{...e,ref:u,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=n;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});JA.displayName=sg;var ig="SelectScrollDownButton",ZA=C.forwardRef((e,t)=>{const n=Ei(ig,e.__scopeSelect),r=Vy(ig,e.__scopeSelect),[s,o]=C.useState(!1),u=on(t,r.onScrollButtonChange);return Hn(()=>{if(n.viewport&&n.isPositioned){let l=function(){const f=d.scrollHeight-d.clientHeight,h=Math.ceil(d.scrollTop)<f;o(h)};const d=n.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?g.jsx(eN,{...e,ref:u,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=n;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});ZA.displayName=ig;var eN=C.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,o=Ei("SelectScrollButton",n),u=C.useRef(null),l=Gf(n),d=C.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return C.useEffect(()=>()=>d(),[d]),Hn(()=>{var h;const f=l().find(m=>m.ref.current===document.activeElement);(h=f==null?void 0:f.ref.current)==null||h.scrollIntoView({block:"nearest"})},[l]),g.jsx(Nt.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:Mt(s.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(r,50))}),onPointerMove:Mt(s.onPointerMove,()=>{var f;(f=o.onItemLeave)==null||f.call(o),u.current===null&&(u.current=window.setInterval(r,50))}),onPointerLeave:Mt(s.onPointerLeave,()=>{d()})})}),H7="SelectSeparator",tN=C.forwardRef((e,t)=>
vendor: 4,358 bytes, line 299
299{const{__scopeSelect:n,...r}=e;return g.jsx(Nt.div,{"aria-hidden":!0,...r,ref:t})});tN.displayName=H7;var og="SelectArrow",V7=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Xf(n),o=xi(og,n),u=Ei(og,n);return o.open&&u.position==="popper"?g.jsx(RU,{...s,...r,ref:t}):null});V7.displayName=og;var z7="SelectBubbleInput",nN=C.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const s=C.useRef(null),o=on(r,s),u=DU(t);return C.useEffect(()=>{const l=s.current;if(!l)return;const d=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(d,"value").set;if(u!==t&&h){const m=new Event("change",{bubbles:!0});h.call(l,t),l.dispatchEvent(m)}},[u,t]),g.jsx(Nt.select,{...n,style:{...TA,...n.style},ref:o,defaultValue:t})});nN.displayName=z7;function rN(e){return e===""||e===void 0}function sN(e){const t=co(e),n=C.useRef(""),r=C.useRef(0),s=C.useCallback(u=>{const l=n.current+u;t(l),(function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(l)},[t]),o=C.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,o]}function iN(e,t,n){const s=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let u=W7(e,Math.max(o,0));s.length===1&&(u=u.filter(f=>f!==n));const d=u.find(f=>f.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==n?d:void 0}function W7(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $7=IA,oN=LA,q7=MA,Y7=BA,K7=FA,aN=jA,Q7=zA,uN=qA,lN=KA,G7=QA,X7=XA,cN=JA,dN=ZA,fN=tN;const Jf=$7,Zf=q7,Xl=C.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(oN,{ref:r,className:sn("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,g.jsx(Y7,{asChild:!0,children:g.jsx(Ng,{className:"h-4 w-4 opacity-50"})})]}));Xl.displayName=oN.displayName;const hN=C.forwardRef(({className:e,...t},n)=>g.jsx(cN,{ref:n,className:sn("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(aP,{className:"h-4 w-4"})}));hN.displayName=cN.displayName;const pN=C.forwardRef(({className:e,...t},n)=>g.jsx(dN,{ref:n,className:sn("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(Ng,{className:"h-4 w-4"})}));pN.displayName=dN.displayName;const Jl=C.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>g.jsx(K7,{children:g.jsxs(aN,{ref:s,className:sn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[g.jsx(hN,{}),g.jsx(Q7,{className:sn("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),g.jsx(pN,{})]})}));Jl.displayName=aN.displayName;const J7=C.forwardRef(({className:e,...t},n)=>g.jsx(uN,{ref:n,className:sn("px-2 py-1.5 text-sm font-semibold",e),...t}));J7.displayName=uN.displayName;const Fn=C.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(lN,{ref:r,className:sn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[g.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(X7,{children:g.jsx(Ag,{className:"h-4 w-4"})})}),g.jsx(G7,{children:t})]}));Fn.displayName=lN.displayName;const Z7=C.forwardRef(({className:e,...t},n)=>g.jsx(fN,{ref:n,className:sn("-mx-1 my-1 h-px bg-muted",e),...t}));Z7.displayName=fN.displayName;var eH="Label",mN=C.forwardRef((e,t)=>
299g.jsx(Nt.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));mN.displayName=eH;var gN=mN;const tH=_g("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Sn=C.forwardRef(({className:e,...t},n)=>g.jsx(gN,{ref:n,className:sn(tH(),e),...t}));Sn.displayName=gN.displayName;function nH(){kf();const[e,t]=C.useState(!1),[n,r]=C.useState(!1),[s,o]=C.useState({}),[u,l]=C.useState({name:"",email:"",company_name:"",role:"",inquiry_type:"",message:""}),d=(m,b)=>{l(E=>({...E,[m]:b})),s[m]&&o(E=>({...E,[m]:""}))},f=()=>{const m={};return u.name.trim()||(m.name="Name is required"),u.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(u.email)||(m.email="Please enter a valid email"):m.email="Email is required",u.company_name.trim()||(m.company_name="Company name is required"),u.role.trim()||(m.role="Role is required"),u.inquiry_type||(m.inquiry_type="Please select an inquiry type"),u.message.trim()?u.message.trim().length<10&&(m.message="Message must be at least 10 characters"):m.message="Message is required",o(m),Object.keys(m).length===0},h=async m=>{m.preventDefault(),f()&&(t(!0),await rn.entities.ContactInquiry.create(u),t(!1),r(!0))};return n?g.jsx("div",{className:"min-h-screen bg-[#fffdf9] flex items-center justify-center px-6",children:g.jsxs(Le.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"text-center max-w-md",children:[g.jsx(Le.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},className:"w-20 h-20 rounded-full bg-[#4bb943]/20 flex items-center justify-center mx-auto mb-8",children:g.jsx(Ag,{className:"w-10 h-10 text-[#4bb943]"})}),g.jsx("h1",{className:"text-black text-3xl md:text-4xl font-light mb-4",children:"Thank you for reaching out"}),g.jsx("p",{className:"text-[#4a5147] text-lg mb-8",children:"We've received your inquiry and will get back to you within 24-48 hours."}),g.jsxs(ct,{to:ot("Home"),className:"inline-flex items-center gap-2 text-black hover:text-[#4a5147] transition-colors",children:[g.jsx(vs,{className:"w-4 h-4"}),"Back to home"]})]})}):g.jsxs("div",{className:"min-h-screen bg-[#fffdf9]",children:[g.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 bg-[#fffdf9]/90 backdrop-blur-xl border-b border-black/5",children:g.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:g.jsxs("div",{className:"flex items-center justify-between h-20",children:[g.jsx(ct,{to:ot("Home"),children:g.jsx("div",{className:"h-12 md:h-14 lg:h-20 w-[190px] md:w-[240px] lg:w-[290px] overflow-hidden flex items-center",children:g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/8b1899c6a_image.png",alt:"Simple Food Ventures",className:"w-full h-auto object-contain"})})}),g.jsxs(ct,{to:ot("Home"),className:"flex items-center gap-2 text-black/50 hover:text-black text-sm transition-colors",children:[g.jsx(vs,{className:"w-4 h-4"}),"Back"]})]})})}),g.jsx("div",{className:"pt-32 pb-20 px-6",children:g.jsxs("div",{className:"max-w-2xl mx-auto",children:[g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:[g.jsx("div",{className:"w-16 h-16 rounded-full bg-[#4bb943]/10 flex items-center justify-center mb-6",children:g.jsx(bP,{className:"w-8 h-8 text-[#4bb943]"})}),g.jsx("h1",{className:"text-black text-4xl md:text-5xl font-light mb-4",children:"Get in touch"}),g.jsx("p",{className:"text-[#4a5147] text-lg",children:"Whether you're interested in investment, partnership opportunities, or press inquiries, we'd love to hear from you."})]}),g.jsxs(Le.form,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},onSubmit:h,className:"space-y-6",children:[g.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black text-sm",children:"Your name *"}),g.jsx(Bn,{value:u.name,onChange:m=>d("name",m.target.value),className:"bg-white border-black/20 text-black h-12 focus:border-[#4bb943] placeholder:text-black/40",placeholder:"First and last name"}),s.name&&g.jsx("p",{className:"text-red-500 text-sm",children:s.name})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black text-sm",children:"Email *"}),g.jsx(Bn,{type:"email",value:u.email,onChange:m=>d("email",m.target.value),className:"bg-white border-black/20 text-black h-12 focus:border-[#4bb943] placeholder:text-black/40",placeholder:"[email protected]"}),s.email&&g.jsx("p",{className:"text-red-500 text-sm",children:s.email})]})]}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black text-sm",children:"Company name *"}),g.jsx(Bn,{value:u.company_name,onChange:m=>d("company_name",m.target.value),className:"bg-white border-black/20 text-black h-12 focus:border-[#4bb943] placeholder:text-black/40",placeholder:"Your company"}),s.company_name&&g.jsx("p",{className:"text-red-500 text-sm",children:s.company_name})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black text-sm",children:"Your role *"}),g.jsx(Bn,{value:u.role,onChange:m=>d("role",m.target.value),className:"bg-white border-black/20 text-black h-12 focus:border-[#4bb943] placeholder:text-black/40",placeholder:"e.g., Founder, CEO, Partner"}),s.role&&g.jsx("p",{className:"text-red-500 text-sm",children:s.role})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black text-sm",children:"Inquiry type *"}),g.jsxs(Jf,{value:u.inquiry_type,onValueChange:m=>d("inquiry_type",m),children:[g.jsx(Xl,{className:"bg-white border-black/20 text-black h-12 focus:border-[#4bb943]",children:g.jsx(Zf,{placeholder:"Select inquiry type"})}),g.jsxs(Jl,{className:"bg-white border-black/20",children:[g.jsx(Fn,{value:"investment",className:"text-black",children:"Investment Inquiry"}),g.jsx(Fn,{value:"partnership",className:"text-black",children:"Partnership Opp
299ortunity"}),g.jsx(Fn,{value:"press",className:"text-black",children:"Press / Media"}),g.jsx(Fn,{value:"other",className:"text-black",children:"Other"})]})]}),s.inquiry_type&&g.jsx("p",{className:"text-red-400 text-sm",children:s.inquiry_type})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black text-sm",children:"Message *"}),g.jsx(_l,{value:u.message,onChange:m=>d("message",m.target.value),className:"bg-white border-black/20 text-black min-h-[150px] focus:border-[#4bb943] placeholder:text-black/40",placeholder:"Tell us about your inquiry..."}),s.message&&g.jsx("p",{className:"text-red-400 text-sm",children:s.message})]}),g.jsx("div",{className:"pt-4",children:g.jsx(zr,{type:"submit",disabled:e,className:"w-full px-8 py-3 bg-[#0F2419] hover:bg-[#1A3A2E] text-white font-medium text-sm rounded-full transition-all duration-300",children:e?g.jsx(k2,{className:"w-5 h-5 animate-spin"}):g.jsxs(g.Fragment,{children:["Send message",g.jsx(Cg,{className:"w-5 h-5 ml-2"})]})})})]})]})})]})}function rH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let ag=1;class sH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...s}=t,o=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:ag++,u=this.toasts.find(d=>d.id===o),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),u?this.toasts=this.toasts.map(d=>d.id===o?(this.publish({...d,...t,id:o,title:r}
vendor: 3,209 bytes, line 299
299),{...d,...t,id:o,dismissible:l,title:r}):d):this.addToast({title:r,...s,dismissible:l,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,u;const l=s.then(async f=>{if(u=["resolve",f],pn.isValidElement(f))o=!1,this.create({id:r,type:"default",message:f});else if(oH(f)&&!f.ok){o=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${f.status}`):n.error,b=typeof n.description=="function"?await n.description(`HTTP error! status: ${f.status}`):n.description,_=typeof m=="object"&&!pn.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:b,..._})}else if(f instanceof Error){o=!1;const m=typeof n.error=="function"?await n.error(f):n.error,b=typeof n.description=="function"?await n.description(f):n.description,_=typeof m=="object"&&!pn.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:b,..._})}else if(n.success!==void 0){o=!1;const m=typeof n.success=="function"?await n.success(f):n.success,b=typeof n.description=="function"?await n.description(f):n.description,_=typeof m=="object"&&!pn.isValidElement(m)?m:{message:m};this.create({id:r,type:"success",description:b,..._})}}).catch(async f=>{if(u=["reject",f],n.error!==void 0){o=!1;const h=typeof n.error=="function"?await n.error(f):n.error,m=typeof n.description=="function"?await n.description(f):n.description,E=typeof h=="object"&&!pn.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:m,...E})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),d=()=>new Promise((f,h)=>l.then(()=>u[0]==="reject"?h(u[1]):f(u[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||ag++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ur=new sH,iH=(e,t)=>{const n=(t==null?void 0:t.id)||ag++;return ur.addToast({title:e,...t,id:n}),n},oH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",aH=iH,uH=()=>ur.toasts,lH=()=>ur.getActiveToasts(),gs=Object.assign(aH,{success:ur.success,info:ur.info,warning:ur.warning,error:ur.error,custom:ur.custom,message:ur.message,promise:ur.promise,dismiss:ur.dismiss,loading:ur.loading},{getHistory:uH,getToasts:lH});rH
vendor: 14,873 bytes, line 299
299("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
299cH(){const[e,t]=C.useState(!1),n=async()=>{t(!0);try{const r=await rn.functions.invoke("exportToWordPressXML",{}),s=new Blob([r.data],{type:"application/xml"}),o=window.URL.createObjectURL(s),u=document.createElement("a");u.href=o,u.download="simplefoodventures-export.xml",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(o),u.remove(),gs.success("Export file downloaded successfully!")}catch(r){gs.error(r.message||"Failed to export")}finally{t(!1)}};return g.jsxs("div",{className:"min-h-screen bg-[var(--color-off-white)]",children:[g.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 bg-[#fffdf9]/90 backdrop-blur-xl border-b border-black/5",children:g.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:g.jsxs("div",{className:"flex items-center justify-between h-20",children:[g.jsx(ct,{to:ot("Home"),children:g.jsx("div",{className:"h-8 md:h-10 lg:h-12 w-[120px] md:w-[140px] lg:w-[160px] overflow-hidden flex items-center rounded-lg",children:g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/9ed8fb529_Screenshot2026-02-09at35844PM.png",alt:"Simple Food Ventures",className:"w-full h-auto object-contain",style:{transform:"scale(1.15)",transformOrigin:"center center"}})})}),g.jsxs(ct,{to:ot("Home"),className:"flex items-center gap-2 text-black/40 hover:text-black/60 text-sm transition-colors",children:[g.jsx(vs,{className:"w-4 h-4"}),"Back"]})]})})}),g.jsx("div",{className:"pt-32 pb-20 px-6",children:g.jsx("div",{className:"max-w-3xl mx-auto",children:g.jsxs("div",{className:"bg-white rounded-2xl p-8 shadow-sm border border-black/5",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[g.jsx("div",{className:"w-12 h-12 rounded-full bg-[var(--color-green)]/10 flex items-center justify-center",children:g.jsx(pP,{className:"w-6 h-6 text-[var(--color-green)]"})}),g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-light text-[var(--color-dark)]",children:"Export to WordPress XML"}),g.jsx("p",{className:"text-sm text-[var(--color-text-muted)]",children:"Alternative migration method"})]})]}),g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[g.jsx("h3",{className:"font-medium text-blue-900 mb-2",children:"How This Works"}),g.jsxs("ol",{className:"text-sm text-blue-800 space-y-2 ml-4 list-decimal",children:[g.jsx("li",{children:"Download the XML export file by clicking the button below"}),g.jsx("li",{children:"Log into your WordPress admin panel"}),g.jsxs("li",{children:["Go to ",g.jsx("strong",{children:"Tools â Import â WordPress"})]}),g.jsx("li",{children:"Install the WordPress Importer plugin if prompted"}),g.jsx("li",{children:"Upload the downloaded XML file"}),g.jsx("li",{children:'Click "Submit" and follow the import wizard'})]})]}),g.jsxs("div",{className:"bg-[var(--color-cream)] rounded-lg p-6 space-y-3",children:[g.jsx("h3",{className:"font-medium text-[var(--color-dark)] mb-3",children:"What Will Be Exported:"}),g.jsxs("div",{className:"space-y-2 text-sm text-[var(--color-text-body)]",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 rounded-full bg-[var(--color-green)]"}),"All Insights (Articles & SFV Bites)"]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 rounded-full bg-[var(--color-green)]"}),"All Portfolio Companies"]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 rounded-full bg-[var(--color-green)]"}),"Categories (Insights, SFV Bites, Portfolio)"]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 rounded-full bg-[var(--color-green)]"}),"SEO metadata (if you have Yoast SEO installed)"]})]})]}),g.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:[g.jsx("h3",{className:"font-medium text-yellow-900 mb-2",children:"Note About Images"}),g.jsx("p",{className:"text-sm text-yellow-800",children:`Image URLs are included in the content but won't be automatically downloaded to WordPress. You may need to manually re-upload some images after import, or use a plugin like "Auto Upload Images" to automatically download external images.`})]}),g.jsxs(zr,{onClick:n,disabled:e,size:"lg",className:"w-full bg-[var(--color-green)] hover:bg-[var(--color-green-dark)] text-white",children:[g.jsx(s0,{className:"w-5 h-5 mr-2"}),e?"Generating Export...":"Download WordPress XML Export"]})]})]})})})]})}const dH=["Food and beverage brands at pre-seed through Series A","Companies with demonstrated or emerging retail velocity","Founders building toward national distribution","Better-for-you categories with structural tailwinds"],fH=["Organic repeat purchase â not promotion-driven","Cultural resonance with modern consumers","Clean, differentiated product with a clear 'why now'","A founder with deep category conviction","Unit economics that improve as you scale"],hH=["Retail strategy, buyer targeting, and go-to-market planning","Financial modeling, FP&A, and capital strategy","Distribution expansion and velocity optimization","Strategic introductions to retail partners and co-packers"],pH=[{step:"01",title:"Submit your overview",body:"Share your company, deck, and a short note on what you're building and where you are."},{step:"02",title:"Initial review",body:"We review every submission. If there's a potential fit, we respond within two weeks."},{step:"03",title:"Introductory call",body:"A focused 30-minute c
299onversation to understand your brand, vision, and current traction."},{step:"04",title:"Deep dive",body:"We go deeper on your retail strategy, financials, and category dynamics."},{step:"05",title:"Decision",body:"We move quickly. If we're aligned, we share terms and work toward closing efficiently."}];function mH(){return g.jsxs("div",{className:"min-h-screen bg-[#fffdf9]",children:[g.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 bg-[#fffdf9]/90 backdrop-blur-xl border-b border-black/5",children:g.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:g.jsxs("div",{className:"flex items-center justify-between h-20",children:[g.jsx(ct,{to:ot("Home"),children:g.jsx("div",{className:"h-12 md:h-14 lg:h-20 w-[190px] md:w-[240px] lg:w-[290px] overflow-hidden flex items-center",children:g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/8b1899c6a_image.png",alt:"Simple Food Ventures",className:"w-full h-auto object-contain"})})}),g.jsxs(ct,{to:ot("Home"),className:"inline-flex items-center gap-2 px-4 py-2.5 text-sm font-normal border border-black/10 rounded-lg text-black hover:border-[#4bb943] hover:text-[#4bb943] transition-all",children:[g.jsx(vs,{className:"w-4 h-4"}),"Back"]})]})})}),g.jsx("div",{className:"pt-32 pb-24 px-6",children:g.jsxs("div",{className:"max-w-3xl mx-auto",children:[g.jsxs(Le.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.22,1,.36,1]},className:"mb-20",children:[g.jsx("span",{className:"bg-[#4bb943] text-white text-xs uppercase tracking-[0.2em] px-3 py-2 rounded-lg font-normal w-fit block mb-6",children:"For Founders"}),g.jsx("h1",{className:"text-[#121C18] text-4xl md:text-5xl lg:text-6xl font-light leading-tight mb-6",style:{letterSpacing:"-0.01em"},children:"We back founders building the next great consumer brand."}),g.jsx("p",{className:"text-[#4a5147] text-base md:text-lg font-light leading-relaxed mb-8",children:"Simple Food Ventures partners early with food and beverage founders who are building brands with real retail velocity and national scale potential. We're operators first â we've built CPG companies, managed retail relationships, and navigated the exact challenges you're facing."}),g.jsxs(ct,{to:ot("Submit"),className:"inline-flex items-center gap-2 px-7 py-3.5 bg-[#4bb943] text-white rounded-lg text-base font-medium hover:bg-[#3a9035] transition-colors duration-200",children:["Submit your company ",g.jsx(Cg,{className:"w-4 h-4"})]})]}),g.jsx(Mu,{title:"What we invest in",delay:.1,children:g.jsx("ul",{className:"space-y-3",children:dH.map((e,t)=>g.jsx(Hm,{text:e},t))})}),g.jsx(Mu,{title:"What we look for",delay:.15,children:g.jsx("ul",{className:"space-y-3",children:fH.map((e,t)=>g.jsx(Hm,{text:e},t))})}),g.jsxs(Mu,{title:"How we help",delay:.2,children:[g.jsx("p",{className:"text-[#4a5147] text-base font-light leading-relaxed mb-5",children:"We're hands-on partners â not just check writers. Once we invest, we work alongside you on the things that matter most in early retail growth."}),g.jsx("ul",{className:"space-y-3",children:hH.map((e,t)=>g.jsx(Hm,{text:e},t))})]}),g.jsxs(Mu,{title:"How to pitch us",delay:.25,children:[g.jsx("p",{className:"text-[#4a5147] text-base font-light leading-relaxed mb-5",children:"No pitch deck required to start. A short overview of what you're building, current traction, and your ask is enough to get a conversation going."}),g.jsx("p",{className:"text-[#4a5147] text-base font-light leading-relaxed",children:"If you have a deck, include it. Keep your intro concise â we read everything and respond when there's a fit."})]}),g.jsx(Mu,{title:"What happens next",delay:.3,children:g.jsx("div",{className:"space-y-0 divide-y divide-black/[0.06]",children:pH.map((e,t)=>g.jsxs(Le.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.07},className:"flex gap-5 py-5",children:[g.jsx("span",{className:"text-[#4bb943] font-light text-base w-8 flex-shrink-0",children:e.step}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[#121C18] text-base font-medium mb-1",children:e.title}),g.jsx("p",{className:"text-[#4a5147] text-sm font-light leading-relaxed",children:e.body})]})]},t))})}),g.jsxs(Le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"mt-16 pt-12 border-t border-black/[0.06] text-center",children:[g.jsx("h2",{className:"text-[#121C18] text-2xl md:text-3xl font-light mb-4",children:"Ready to connect?"}),g.jsx("p",{className:"text-[#4a5147] text-base font-light mb-8",children:"Send a short overview and deck. We review inbound quickly and respond when there is a fit."}),g.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3",children:[g.jsx(ct,{to:ot("Submit"),className:"px-7 py-3.5 bg-[#4bb943] text-white rounded-lg text-base font-medium hover:bg-[#3a9035] transition-colors duration-200",children:"Submit your company"}),g.jsx(ct,{to:ot("Contact"),className:"px-7 py-3.5 bg-white text-black border border-black/20 rounded-lg text-base font-medium hover:border-[#4bb943] hover:text-[#4bb943] transition-all duration-200",children:"Start a conversation"})]})]})]})})]})}function Mu({title:e,children:t,delay:n=0}){return g.jsxs(Le.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:n,ease:[.22,1,.36,1]},className:"mb-14 pb-14 border-b border-black/[0.06]",children:[g.jsx("h2",{className:"text-[#121C18] text-xl md:text-2xl font-light mb-6",children:e}),t]})}function Hm({text:e}){return g.jsxs("li",{className:"flex items-start gap-3 text-[#4a5147] text-base font-light",children:[g.jsx(Bd,{className:"w-4 h-4 text-[#4bb943] flex-shrink-0 mt-0.5"}),e]})}function gH(){const e=C.useRef(null),{scrollYProgress:t}=T9({target:e,offset:["start start","end start"]}),n=N9(t,[0,.5],[1,0]),r=()=>{const s=document.getElementById("portfolio");s&&s.scrollIntoView({behavior:"smooth"})};return g.jsxs(Le.section,{ref:e,className:"relative",style:{opacity:n},children:[g.jsxs("div",{className:"md:hidden flex flex-col min-h-screen bg-[#fffdf9]",children:[g.jsx("div",{className:"relative w-full",style:{height:"55vw",minHeight:"240px",maxHeight:"420px"},children:g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/73fee8518_image.png",alt:"Hero",className:"w-full h-full object-cover object-top",style:{filter:"brightness(1.02) contrast(1.06) saturate(0.95)"}})}),g.jsxs("div",{className:"flex-1 flex flex-col justify-center px-6 pt-10 pb-14 bg-[#fffdf9]",children:[g.jsxs(Le.h1,{initial:{opacity:0,y:30}
299,animate:{opacity:1,y:0},transition:{duration:.7,delay:.1,ease:[.22,1,.36,1]},className:"text-black text-2xl sm:text-3xl leading-tight mb-4",style:{fontFamily:"'Manrope', Arial, sans-serif",fontWeight:500,letterSpacing:"-0.01em"},children:["Backing the next generation of"," ",g.jsx("span",{style:{textDecoration:"underline",textDecorationColor:"#4bb943",textDecorationThickness:"3px",textUnderlineOffset:"6px"},children:"consumer brands"})," ","built for modern retail."]}),g.jsx(Le.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.2,ease:[.22,1,.36,1]},className:"text-[#4a5147] text-base font-light leading-relaxed mb-8",children:"We back pre-seed to Series A consumer brands with real retail potential â and stay hands-on until they scale."}),g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3,ease:[.22,1,.36,1]},className:"flex flex-col gap-3",children:[g.jsx(ct,{to:ot("Submit"),className:"px-6 py-3.5 bg-[#4bb943] text-white border-2 border-[#4bb943] rounded-lg hover:bg-[#3a9035] hover:border-[#3a9035] transition-all duration-200 text-sm font-medium text-center",style:{fontFamily:"'Manrope', Arial, sans-serif"},children:"Submit your company"}),g.jsx("button",{onClick:r,className:"px-6 py-3.5 bg-white text-black border border-black/20 rounded-lg hover:border-black/40 transition-all duration-200 text-sm font-medium text-center",style:{fontFamily:"'Manrope', Arial, sans-serif"},children:"View portfolio"})]})]})]}),g.jsxs("div",{className:"hidden md:flex relative w-full h-screen bg-[#fffdf9] overflow-hidden",children:[g.jsx("div",{className:"absolute inset-y-0 right-0 w-1/2 lg:w-[55%] top-0 z-10 h-[45%] pointer-events-none",style:{background:"linear-gradient(rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.18) 30%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0) 100%)"}}),g.jsx("div",{className:"relative w-1/2 lg:w-[45%] flex items-center px-14 lg:px-20 z-20",children:g.jsxs(Le.div,{className:"flex flex-col w-full",initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.8,delay:.1,ease:[.22,1,.36,1]},children:[g.jsxs("h1",{className:"text-black text-3xl md:text-4xl leading-tight mb-5",style:{fontFamily:"'Manrope', Arial, sans-serif",fontWeight:500,letterSpacing:"-0.01em"},children:["Backing the next generation of"," ",g.jsx("span",{style:{textDecoration:"underline",textDecorationColor:"#4bb943",textDecorationThickness:"3px",textUnderlineOffset:"6px"},children:"consumer brands"})," ","built for modern retail."]}),g.jsx("p",{className:"text-[#4a5147] text-base md:text-lg font-light leading-relaxed mb-8",children:"We back pre-seed to Series A consumer brands with real retail potential â and stay hands-on until they scale."}),g.jsxs("div",{className:"flex flex-row gap-3",children:[g.jsx(ct,{to:ot("Submit"),className:"px-6 py-3 bg-[#4bb943] text-white border-2 border-[#4bb943] rounded-lg hover:bg-[#3a9035] hover:border-[#3a9035] transition-all duration-200 text-sm md:text-base font-medium text-center whitespace-nowrap",style:{fontFamily:"'Manrope', Arial, sans-serif",letterSpacing:"0.01em"},children:"Submit your company"}),g.jsx("button",{onClick:r,className:"px-6 py-3 bg-white text-black border border-black/20 rounded-lg hover:border-black/40 transition-all duration-200 text-sm md:text-base font-medium text-center whitespace-nowrap",style:{fontFamily:"'Manrope', Arial, sans-serif",letterSpacing:"0.01em"},children:"View portfolio"})]})]})}),g.jsx("div",{className:"absolute inset-y-0 right-0 w-1/2 lg:w-[55%] overflow-hidden",children:g.jsx(Le.img,{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/73fee8518_image.png",alt:"Hero",className:"w-full h-full object-cover object-top",style:{filter:"brightness(1.05) contrast(1.08) saturate(0.95)",willChange:"transform"},initial:{scale:1.08},animate:{scale:1},transition:{duration:8,ease:"easeOut"}})})]})]})}const yH=[{value:"$20M+",label:"Deployed across consumer brands"},{value:"20+",label:"Brands scaled to retail"},{value:"2+",label:"Successful exits"},{value:"20K+",label:"POS Secured"}];function bH(){const e=C.useRef(null),t=xo(e,{once:!0,margin:"-100px"});return g.jsx("section",{ref:e,className:"py-12 md:py-16 bg-[#0F2419]",children:g.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:g.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 md:gap-12",children:yH.map((n,r)=>g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:r*.1,ease:[.22,1,.36,1]},className:"text-center",children:[g.jsx("p",{className:"text-[#4bb943] text-3xl md:text-4xl font-light mb-2",style:{fontFamily:"'Manrope', Arial, sans-serif"},children:n.value}),g.jsx("p",{className:"text-sm font-light leading-snug",style:{color:"#fffdf9"},children:n.label})]},r))})})})}const xH=[{icon:R2,title:"Growth problems create opportunity.",body:"The best outcomes emerge where large incumbents face slowing growth or declining relevance â and need real solutions, not line extensions."},{icon:LP,title:"Modern consumers move markets.",body:"Younger consumers rewire demand faster than legacy portfolios can adapt. Taste, nutrition, and cultural signaling are all shifting."},{icon:BP,title:"Velocity matters more than size.",body:"Early repeat behavior and organic pull are far more predictive of future outcomes than short-term revenue alone."},{icon:NP,title:"Build toward inevitability.",body:"Great brands answer harder questions: What economic gap am I solving? Why does this deserve to exist? Who will need this growth?"}];function EH(){const e=C.useRef(null),t=xo(e,{once:!0,margin:"-100px"});return g.jsxs(g.Fragment,{children:[g.jsx("section",{id:"thesis",ref:e,className:"relative py-20 md:py-32 lg:py-40 bg-white border-t border-black/[0.06]",children:g.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 lg:gap-24 items-start",children:[g.jsxs(Le.div,{initial:{opacity:0,y:40},animate:t?{opacity:1,y:0}:{},transition:{duration:.8,ease:[.22,1,.36,1]},className:"lg:sticky lg:top-32",children:[g.jsx("span",{className:"bg-[#4bb943] text-[#fffdf9] text-xs uppercase tracking-[0.2em] px-3 py-2 rounded-lg font-normal w-fit block mb-6",children:"Our approach"}),g.jsx("h2",{className:"text-[#121C18] text-3xl md:text-4xl lg:text-5xl font-light leading-tight mb-4 max-w-sm",children:"How we identify and compound category-defining brands."}),g.jsx("p",{className:"text-[#4a5147] text-base md:text-lg font-light leading-relaxed",children:"We invest with a clear end in mind: brands that change the growth trajectory of large, incumbent portfolios."})]}),g.jsx("div",{className:"flex flex-col divide-y divide-black/[0.06]",children:xH.map((n,r)=>{const s=n.icon;return g.jsxs(Le.div,{initial:{opacity:0,y:24},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.1+r*.1,ease:[.22,1,.36,1]},className:"py-7 flex items-start gap-5 group",children:[g.jsx("div",{className:"p-2 rounded-lg bg-[#4bb943]/10 flex-shrink-0 mt-0.5 group-hover:bg-[#4bb943]/20 transition-colors duration-300",children:g.jsx(s,{className:"w-4 h-4 text-[#4bb943]"})}),g.jsxs("div",{children:[g.jsx("h3",{className:"text-[#121C18] text-base md:text-lg font-medium mb-1 leading-snug",children:n.title}),g.jsx("p",{className:"text-[#4a5147] text-sm md:text-base font-light leading-relaxed",children:n.body})]})]},r)})})]})})}),g.jsx("div",{className:"bg-[#121C18] py-16 md:py-20",children:g.jsxs(Le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"max-w-4xl mx-auto px-6 lg:px-12 text-center",children:[g.jsx("p",{className:"text-2xl md:text-4xl font-light italic mb-4 leading-tight",style:{color:"#4bb943",fontFamily:"'Manrope', Arial, sans-serif"},children:'"Velocity matters more than size."'}),g.jsx("p",{className:"text-base md:text-lg font-light",style:{color:"#fffdf9",fontFamily:"'Manrope', Arial, sans-serif"},children:"Repeat purchase and organic demand are the strongest signals of long-term category winners."})]})})]})}const vH=[{number:1,title:"Growth Slope",body:"Is momentum outpacing the category? We look for sustained velocity, high repeat rates, and demand-led growth that doesn't depend on promotions."},{number:2,title:"Velocity Quality",body:"Is demand stable without promotional support? Strong turns at shelf and repeat resilience signal real consumer love."},{number:3,title:"Cultural Relevance",body:"Is the brand culturally resonant? We look for Gen Z alignment, authentic brand voice, and organic community presence."},{number:4,title:"Product & Nutrition",body:"Does the product pass the 'why now' test? Clean ingredients, better-for-you cues, and transparency drive modern trial and loyalty."},{number:5,title:"Expandability",body:"Can this brand extend into adjacencies? Buyers want platforms, not just SKUs â we look for clear extension paths and multi-channel fit."},{number:6,title:"Operating Leverage",body:"Can a buyer scale this seamlessly? Strong unit economics, a scalable supply chain, and retail-ready ops reduce integration risk."}
299,{number:7,title:"Portfolio Fit",body:"Does this solve a portfolio gap? Winning brands attract new demographics, create incremental occasions, and offset maturity curves."}];function TH({item:e,isInView:t}){const[n,r]=C.useState(!1);return g.jsxs(Le.div,{initial:{opacity:0,y:16},animate:t?{opacity:1,y:0}:{},transition:{duration:.5,delay:.05*e.number,ease:[.22,1,.36,1]},className:"border-b border-black/[0.06] last:border-0",children:[g.jsxs("button",{className:"w-full flex items-center gap-5 py-5 text-left group",onClick:()=>r(s=>!s),children:[g.jsx("span",{className:"text-[#4bb943] font-light text-lg w-8 flex-shrink-0",children:String(e.number).padStart(2,"0")}),g.jsx("span",{className:"flex-1 text-[#121C18] text-base md:text-lg font-medium group-hover:text-[#4bb943] transition-colors duration-200",children:e.title}),g.jsx(Ng,{className:`w-4 h-4 text-[#6B7566] flex-shrink-0 transition-transform duration-300 ${n?"rotate-180":""}`})]}),g.jsx(Ff,{children:n&&g.jsx(Le.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:[.22,1,.36,1]},className:"overflow-hidden",children:g.jsx("p",{className:"pl-13 pb-5 text-[#4a5147] text-sm md:text-base font-light leading-relaxed",style:{paddingLeft:"3.25rem"},children:e.body})})})]})}function wH(){const e=C.useRef(null),t=xo(e,{once:!0,margin:"-100px"});return g.jsx("section",{id:"rubric",ref:e,className:"py-20 md:py-32 lg:py-40 bg-[#F8F4EB]",children:g.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:[g.jsxs(Le.div,{initial:{opacity:0,y:40},animate:t?{opacity:1,y:0}:{},transition:{duration:.8,ease:[.22,1,.36,1]},className:"mb-12 md:mb-16",children:[g.jsx("span",{className:"bg-[#4bb943] text-[#fffdf9] text-xs uppercase tracking-[0.2em] px-3 py-2 rounded-lg font-normal w-fit block mb-6",children:"Investment Framework"}),g.jsx("h2",{className:"text-[#121C18] text-3xl md:text-4xl lg:text-5xl font-light leading-tight mb-3 max-w-2xl",children:"The Simple Food Ventures Investment Rubric"}),g.jsx("p",{className:"text-[#4a5147] text-base md:text-lg font-light leading-relaxed max-w-xl",children:"When we evaluate a brand, we ask seven questions."})]}),g.jsxs("div",{className:"flex flex-col gap-12 lg:gap-16 lg:flex-row lg:items-start",children:[g.jsx("div",{className:"w-full lg:max-w-sm flex-shrink-0",children:vH.map(n=>g.jsx(TH,{item:n,isInView:t},n.number))}),g.jsx("div",{className:"w-full lg:flex-shrink-0 lg:w-[768px] xl:w-[896px] lg:sticky lg:top-32 -mr-12 xl:-mr-24 lg:self-start -mt-2",children:g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/415d35eec_image.png",alt:"Product sketch",className:"w-full h-auto rounded-xl opacity-90"})})]}),g.jsx(Le.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.7,delay:.5},className:"mt-12 md:mt-16 pt-10 border-t border-black/[0.06] flex flex-col sm:flex-row sm:items-center gap-5",children:g.jsx("p",{className:"text-[#4a5147] text-base font-light leading-relaxed",children:"If your brand fits this profile, we would love to meet you."})})]})})}function SH(){const[e,t]=C.useState("cpg"),n=C.useRef(null),r=xo(n,{once:!0,margin:"-100px"}),s=Dg();C.useEffect(()=>{s.invalidateQueries({queryKey:["portfolio"]})},[s]);const{data:o}=Fl({queryKey:["portfolio"],queryFn:()=>rn.entities.PortfolioCompany.list(),initialData:[],staleTime:0,cacheTime:0}),u=o.filter(h=>h.company_type==="cpg").sort((h,m)=>(h.order||999)-(m.order||999)),l=o.filter(h=>h.company_type==="consumer-tech").sort((h,m)=>(h.order||999)-(m.order||999)),d=o.filter(h=>h.company_type==="exited").sort((h,m)=>(h.order||999)-(m.order||999)),f=e==="cpg"?u:e==="consumer-tech"?l:d;return g.jsx("section",{id:"portfolio",ref:n,className:"relative py-16 md:py-24 lg:py-32 bg-[#f7f7f2]",children:g.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:[g.jsxs(Le.div,{initial:{opacity:0,y:40},animate:r?{opacity:1,y:0}:{},transition:{duration:.8,ease:[.22,1,.36,1]},className:"mb-12 md:mb-16 lg:mb-20",children:[g.jsx("span",{className:"bg-[#4bb943] text-[#fffdf9] text-xs md:text-sm uppercase tracking-[0.2em] px-3 py-2 md:px-4 md:py-2.5 w-fit roun
299ded-lg block font-normal mb-6",children:"Our Portfolio"}),g.jsx("h2",{className:"text-[#121C18] text-3xl md:text-4xl lg:text-5xl font-light leading-tight mb-3 md:mb-4 max-w-3xl",children:"Companies we are proud to partner with"}),g.jsx("p",{className:"text-[#4a5147] text-base md:text-lg font-light leading-relaxed max-w-2xl",children:"From emerging challengers to category leaders across food, beverage, and wellness."})]}),g.jsx(Le.div,{initial:{opacity:0,y:20},animate:r?{opacity:1,y:0}:{},transition:{duration:.8,delay:.2,ease:[.22,1,.36,1]},className:"flex flex-wrap gap-6 md:gap-8 mb-12 md:mb-14 lg:mb-16",children:[{id:"cpg",label:"CPG"},{id:"consumer-tech",label:"Consumer Tech"},{id:"exited",label:"Exited"}].map(h=>g.jsx("button",{onClick:()=>t(h.id),className:`text-sm md:text-base font-medium text-black transition-all duration-200 border-b-2 pb-1 ${e===h.id?"border-[#4bb943]":"border-transparent hover:border-[#4bb943]"}`,children:h.label},h.id))}),g.jsx(Ff,{mode:"wait",children:g.jsx(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",children:f.map((h,m)=>g.jsx(_H,{company:h,index:m,isExited:e==="exited"},h.id))},e)})]})})}function _H({company:e,index:t,isExited:n}){const[r,s]=C.useState(!1);return g.jsx("a",{href:e.website_url,target:"_blank",rel:"noopener noreferrer",className:"group relative aspect-[4/5] rounded-2xl overflow-hidden cursor-pointer block",children:g.jsxs(Le.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.6,delay:t*.1,ease:[.22,1,.36,1]},className:"relative aspect-[4/5] rounded-2xl overflow-hidden h-full",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[g.jsx("div",{className:"absolute inset-0",children:g.jsx("img",{src:e.image_url,alt:e.name,className:`w-full h-full object-cover object-center transition-transform duration-700 ${r?"scale-110":"scale-100"}`})}),g.jsx("div",{className:"absolute inset-0 p-6 flex flex-col justify-end",children:g.jsx(Ff,{mode:"wait",children:r&&g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3},className:"space-y-3 bg-white/95 rounded-2xl p-4 md:p-6",children:[g.jsx("h3",{className:"text-black text-xl md:text-2xl font-medium",children:e.name}),g.jsxs("div",{className:"space-y-2 text-sm",children:[g.jsx("p",{className:"text-black/80",children:e.category}),n?g.jsxs(g.Fragment,{children:[g.jsx("p",{className:"text-black text-xs uppercase tracking-wider underline decoration-[#4bb943] decoration-2",children:e.outcome}),g.jsx("p",{className:"text-black/70 text-xs leading-relaxed",children:e.outcome_detail})]}):g.jsxs(g.Fragment,{children:[g.jsx("p",{className:"text-black text-xs uppercase tracking-wider underline decoration-[#4bb943] decoration-2",children:e.stage}),g.jsx("p",{className:"text-black/70 text-xs leading-relaxed",children:e.why_invested})]})]})]},"details")})}),g.jsx("div",{className:`absolute inset-0 border-2 rounded-2xl transition-colors duration-300 ${r?"border-white/20":"border-transparent"}`})]})})}const CH=[{icon:CP,title:"Retail strategy and execution",body:"From initial buyer engagement to national distribution â we guide every step, optimizing assortment, pricing, trade spend, and retail economics.",benefit:"Retail strategy and distribution support"},{icon:R2,title:"Growth through retail",body:"We help founders manage increased velocity, expand distribution, and strategically allocate working c
299apital as they scale.",benefit:"Introductions to strategic partners"},{icon:rP,title:"Institutional-grade financial operations",body:"Robust FP&A, detailed financial models, and scenario planning to prepare your company for future capital raises or a successful exit.",benefit:"Financial modeling and capital strategy"}];function AH(){const e=C.useRef(null),t=xo(e,{once:!0,margin:"-100px"});return g.jsx("section",{id:"support",ref:e,className:"relative py-20 md:py-32 lg:py-40 bg-[#f7f7f2]",children:g.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:[g.jsxs(Le.div,{initial:{opacity:0,y:40},animate:t?{opacity:1,y:0}:{},transition:{duration:.8,ease:[.22,1,.36,1]},className:"mb-12 md:mb-16 lg:mb-20",children:[g.jsx("span",{className:"bg-[#4bb943] text-[#fffdf9] text-xs uppercase tracking-[0.2em] px-3 py-2 rounded-lg font-normal w-fit block mb-6",children:"How we support founders"}),g.jsx("h2",{className:"text-[#121C18] text-3xl md:text-4xl lg:text-5xl font-light leading-tight mb-3 max-w-3xl",children:"Hands-on operating support where it matters most."}),g.jsx("p",{className:"text-[#4a5147] text-base md:text-lg font-light leading-relaxed max-w-2xl",children:"We are hands-on partners for founders navigating retail growth, operations, and capital strategy."})]}),g.jsx("div",{className:"max-w-3xl flex flex-col divide-y divide-black/[0.06] mb-14 md:mb-20",children:CH.map((n,r)=>g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.1+r*.1,ease:[.22,1,.36,1]},className:"py-7 flex items-start gap-5",children:[g.jsx("div",{className:"w-9 h-9 rounded-lg bg-[#4bb943]/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:g.jsx(n.icon,{className:"w-4.5 h-4.5 text-[#4bb943]",strokeWidth:1.5,style:{width:"1.125rem",height:"1.125rem"}})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("h3",{className:"text-[#121C18] text-base md:text-lg font-medium mb-1.5",children:n.title}),g.jsx("p",{className:"text-[#4a5147] text-sm md:text-base font-light leading-relaxed mb-3",children:n.body}),g.jsxs("div",{className:"flex items-center gap-2 text-[#4a5147] text-sm md:text-base font-light",children:[g.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#4bb943] flex-shrink-0"}),n.benefit]})]})]},r))})]})})}const NH=[{id:1,title:"Bachan's $400M Exit: Why Strategics Buy Momentum When Legacy Growth Stalls",excerpt:"Bachan's acquisition is best understood not as a condiment deal, but as a capital reallocation decision by a scaled incumbent seeking to correct its growth trajectory.",image_url:"https://miro.medium.com/v2/resize:fit:700/1*yBPSbjiVTm4pK-Xd1y2s3w.png",featured:!0,type:"article",published_date:"2026-02-10"},{id:2,title:"Plant-based Functional Drink Mix Brand Cure Launches Rebranded Packaging",excerpt:"Cure, the functional drink mix brand celebrated for its all-natural electrolytes, launched rebranded packaging to better communicate its value proposition at shelf.",image_url:"https://images.unsplash.com/photo-1544145945-f90425340c7e?w=800&q=80",featured:!1,type:"blog-post",published_date:"2026-01-20"},{id:3,title:"The Rise of Better-for-You Consumer Brands",excerpt:"How health-conscious consumer trends are reshaping the food and beverage industry landscape, and what it means for emerging brand builders.",image_url:"https://images.unsplash.com/photo-1498837167922-ddd27525d352?w=800&q=80",featured:!1,type:"blog-post",published_date:"2026-01-05"}];function kH(){const e=C.useRef(null),t=xo(e,{once:!0,margin:"-100px"}),{data:n}=Fl({queryKey:["insights"],queryFn:()=>rn.entities.Insight.list(),initialData:[]}),r=(n.length>0?n.sort((s,o)=>new Date(o.published_date)-new Date(s.published_date)):NH).slice(0,3);return g.jsx("section",{id:"insights",ref:e,className:"relative py-20 md:py-32 lg:py-40 bg-white border-t border-black/[0.06]",children:g.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:[g.jsxs(Le.div,{initial:{opacity:0,y:40},animate:t?{opacity:1,y:0}:{},transition:{duration:.8,ease:[.22,1,.36,1]},className:"flex items-end justify-between gap-8 mb-12 md:mb-16",children:[g.jsxs("div",{children:[g.jsx("span",{className:"bg-[#4bb943] text-[#fffdf9] text-xs uppercase tracking-[0.2em] px-3 py-2 rounded-lg font-normal w-fit block mb-6",children:"Our Latest Insights"}),g.jsx("h2",{className:"text-[#121C18] text-3xl md:text-4xl lg:text-5xl font-light leading-tight max-w-2xl",children:"Thoughts on the future of food, beverage, and wellness."})]}),g.jsxs(ct,{to:ot("Insights"),className:"hidden lg:flex items-center gap-2 px-5 py-2.5 bg-white text-black border border-black/20 rounded-lg hover:border-[#4bb943] hover:text-[#4bb943] transition-all duration-200 text-sm font-normal whitespace-nowrap flex-shrink-0",children:["View all insights",g.jsx(Md,{className:"w-4 h-4"})]})]}),g.jsx("div",{className:"flex flex-col divide-y divide-black/[0.06]",children:r.map((s,o)=>{const u=s.content_body?ot(`InsightDetail?id=${s.id}`):s.link||"#",l=!!s.content_body;return g.jsxs(Le.a,{href:u,target:l?void 0:"_blank",rel:l?void 0:"noopener noreferrer",initial:{opacity:0,y:24},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:.1+o*.1,ease:[.22,1,.36,1]},className:"group flex flex-col sm:flex-row gap-6 py-8 hover:bg-[#f9f9f6] -mx-4 px-4 roun
299ded-xl transition-colors duration-200",children:[g.jsx("div",{className:"w-full sm:w-48 md:w-56 flex-shrink-0 aspect-[16/9] sm:aspect-[4/3] rounded-xl overflow-hidden bg-[#f0f0eb]",children:g.jsx("img",{src:s.image_url,alt:s.title,className:"w-full h-full object-cover group-hover:scale-[1.03] transition-transform duration-500"})}),g.jsxs("div",{className:"flex flex-col justify-center",children:[g.jsx("span",{className:"text-[#4bb943] text-xs uppercase tracking-wider font-semibold mb-2",children:s.type==="blog-post"?"SFV Bites":"Article"}),g.jsx("h3",{className:"text-[#121C18] text-lg md:text-xl font-medium leading-snug mb-2 group-hover:text-[#4bb943] transition-colors duration-200",children:s.title}),g.jsx("p",{className:"text-[#4a5147] text-sm font-light leading-relaxed mb-4 line-clamp-2",children:s.excerpt}),g.jsxs("span",{className:"inline-flex items-center gap-1 text-[#4bb943] text-sm font-medium",children:["Read more ",g.jsx(Md,{className:"w-3.5 h-3.5"})]})]})]},s.id)})}),g.jsx("div",{className:"mt-10 lg:hidden text-center",children:g.jsxs(ct,{to:ot("Insights"),className:"inline-flex items-center gap-2 px-5 py-2.5 bg-white text-black border border-black/20 rounded-lg hover:border-[#4bb943] hover:text-[#4bb943] transition-all duration-200 text-sm font-normal",children:["View all insights",g.jsx(Md,{className:"w-4 h-4"})]})})]})})}function RH(){const e=C.useRef(null),t=xo(e,{once:!0,margin:"-100px"});return g.jsx("footer",{ref:e,className:"relative py-16 md:py-24 lg:py-32 bg-[#fffdf9] border-t border-black/[0.03]",children:g.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 lg:px-12",children:[g.jsxs(Le.div,{initial:{opacity:0,y:40},animate:t?{opacity:1,y:0}:{},transition:{duration:.8,ease:[.22,1,.36,1]},className:"text-center mb-16 md:mb-20 lg:mb-24",children:[g.jsx("h2",{className:"text-[#121C18] text-3xl md:text-4xl lg:text-5xl font-light leading-tight mb-3 md:mb-4",children:"Building the next great consumer brand?"}),g.jsx("p",{className:"text-[#4a5147] text-base md:text-lg font-light leading-relaxed mb-3 md:mb-4 max-w-2xl mx-auto",children:"We invest in founders building food and beverage companies with real retail potential."}),g.jsx("p",{className:"text-[#6B7566] text-sm font-light mb-8 md:mb-10",children:"Hear back within 2 weeks. No pitch deck required to start."}),g.jsx("div",{className:"flex items-center justify-center",children:g.jsx(ct,{to:ot("Submit"),className:"px-6 py-3 bg-[#4bb943] text-white border-2 border-[#4bb943] rounded-full hover:bg-[#3a9035] hover:border-[#3a9035] transition-all duration-200 text-sm md:text-base font-medium text-center whitespace-nowrap",style:{fontFamily:"'Manrope', Arial, sans-serif",letterSpacing:"0.01em"},children:"Submit your company"})})]}),g.jsxs(Le.div,{initial:{opacity:0}
299,animate:t?{opacity:1}:{},transition:{duration:.8,delay:.3,ease:[.22,1,.36,1]},className:"pt-12 md:pt-16 border-t border-black/[0.03]",children:[g.jsxs("div",{className:"flex flex-col items-center justify-center gap-8 md:gap-12 mb-12 md:mb-16",children:[g.jsxs("div",{className:"text-center",children:[g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/d6e196e7e_Screenshot2026-02-09at35514PM.png",alt:"Simple Food Ventures",className:"h-8 md:h-10 w-auto mb-4"}),g.jsx("p",{className:"text-[#6b7268] text-xs md:text-sm",children:"Early conviction in what people choose next."})]}),g.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-sm mb-8",children:[{label:"Thesis",id:"thesis"},{label:"Portfolio",id:"portfolio"},{label:"Support",id:"support"},{label:"Insights",id:"insights"}].map(n=>g.jsx("button",{onClick:()=>{const r=document.getElementById(n.id);r&&r.scrollIntoView({behavior:"smooth",block:"start"})},className:"text-[#4a5147] hover:text-[#121C18] transition-colors text-sm",children:n.label},n.id))}),g.jsxs("div",{className:"flex items-center justify-center gap-4",children:[g.jsx("a",{href:"https://linkedin.com/company/simple-food-ventures",target:"_blank",rel:"noopener noreferrer",className:"text-[#4a5147] hover:text-[#4bb943] transition-colors","aria-label":"LinkedIn",children:g.jsx(N2,{className:"w-5 h-5"})}),g.jsx("a",{href:"https://twitter.com/simplefoodvc",target:"_blank",rel:"noopener noreferrer",className:"text-[#4a5147] hover:text-[#4bb943] transition-colors","aria-label":"Twitter",children:g.jsx(P2,{className:"w-5 h-5"})}),g.jsx("a",{href:"https://facebook.com/simplefoodventures",target:"_blank",rel:"noopener noreferrer",className:"text-[#4a5147] hover:text-[#4bb943] transition-colors","aria-label":"Facebook",children:g.jsx(A2,{className:"w-5 h-5"})})]})]}),g.jsx("div",{className:"text-center",children:g.jsxs("p",{className:"text-[#6b7268] text-xs md:text-sm",children:["© ",new Date().getFullYear()," Simple Food Ventures. All rights reserved."]})})]})]})})}function PH({scrolled:e}){const[t,n]=C.useState(!1),r=s=>{const o=document.getElementById(s);o&&o.scrollIntoView({behavior:"smooth",block:"start"}),n(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(Le.nav,{initial:{y:-100},animate:{y:0},transition:{duration:.8,ease:[.22,1,.36,1]},className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${e?"bg-white/85 backdrop-blur-md border-b border-black/[0.06]":"bg-transparent"}`,children:g.jsxs("div",{className:"w-full flex items-center justify-between h-16 md:h-20 lg:h-24",children:[g.jsx("div",{className:"flex items-center px-6 md:px-8 lg:px-16",children:g.jsx("a",{href:"#",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"relative group",children:g.jsx("div",{className:`h-12 md:h-14 lg:h-20 w-[190px] md:w-[240px] lg:w-[290px] overflow-hidden flex items-center rounded-lg transition-all duration-300 ${e?"":"bg-white/80 backdrop-blur-sm px-2 rounded-md"}`,children:g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/8b1899c6a_image.png",alt:"Simple Food Ventures",className:"w-full h-auto object-contain"})})})}),g.jsxs("div",{className:"hidden md:flex items-center gap-6 lg:gap-10 px-6 lg:px-12 flex-1 justify-end pr-6",children:[[{label:"Thesis",id:"thesis"},{label:"Portfolio",id:"portfolio"},{label:"Support",id:"support"}].map(s=>g.jsx("button",{onClick:()=>r(s.id),className:`text-[0.8125rem] font-medium tracking-[0.02em] transition-all duration-200 uppercase border-b-2 border-transparent hover:border-[#4bb943] ${e?"text-black hover:text-black":"text-white hover:text-white"}`,children:s.label},s.id)),g.jsx(ct,{to:ot("Insights"),className:`text-[0.8125rem] font-medium tracking-[0.02em] transition-all duration-200 uppercase border-b-2 border-transparent hover:border-[#4bb943] ${e?"text-black hover:text-black":"text-white hover:text-white"}`,children:"Insights"}),g.jsx(ct,{to:ot("Submit"),className:"px-6 py-2.5 font-normal rounded-lg transition-all duration-200 whitespace-nowrap bg-[#4bb943] text-white border-2 border-[#4bb943] hover:bg-[#3a9035]",style:{fontFamily:"'Neue Haas Grotesk', 'Helvetica Neue', Arial, sans-serif",fontSize:"0.875rem",letterSpacing:"0"},children:"Submit your company"})]}),g.jsx("button",{onClick:()=>n(!t),className:"md:hidden p-2 text-black mr-6",children:t?g.jsx(kg,{className:"w-6 h-6"}):g.jsx(EP,{className:"w-6 h-6"})})]})}),g.jsx(Ff,{children:t&&g.jsx(Le.div,{initial:{opacity:0}
299,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-white md:hidden",children:g.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-8 pt-20",children:[[{label:"Thesis",id:"thesis"},{label:"Portfolio",id:"portfolio"},{label:"Support",id:"support"}].map((s,o)=>g.jsx(Le.button,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:o*.1},onClick:()=>r(s.id),className:"text-black text-2xl font-normal tracking-wide uppercase",children:s.label},s.id)),g.jsx(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:g.jsx(ct,{to:ot("Insights"),className:"text-black text-2xl font-normal tracking-wide uppercase",children:"Insights"})},"insights"),g.jsx(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:g.jsx(ct,{to:ot("Submit"),className:"px-8 py-3 bg-black text-white text-lg font-normal tracking-wide rounded-lg uppercase",children:"Submit"})})]})})})]})}function IH(){const[e,t]=C.useState(!1);return C.useEffect(()=>{const n=()=>{t(window.scrollY>100)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[]),g.jsxs("div",{className:"bg-white min-h-screen overflow-x-hidden",children:[g.jsx(PH,{scrolled:e}),g.jsx(gH,{}),g.jsx(bH,{}),g.jsx(EH,{}),g.jsx(wH,{}),g.jsx(SH,{}),g.jsx(AH,{}),g.jsx(kH,{}),g.jsx(RH,{})]})}function ow(e){const t=[],n=String(e||"");let r=n.indexOf(","),s=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const u=n.slice(s,r).trim();(u||!o)&&t.push(u),s=r+1,r=n.indexOf(",",s)}return t}function yN(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const OH=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,LH=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,DH={};function aw(e,t){return(DH.jsx?LH:OH).test(e)}const MH=/[ \t\n\f\r]/g;function BH(e){return typeof e=="object"?e.type==="text"?uw(e.value):!1:uw(e)}function uw(e){return e.replace(MH,"")===""}class Zl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Zl.prototype.normal={};Zl.prototype.property={};Zl.prototype.space=void 0;function bN(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new Zl(n,r,t)}function Nl(e){return e.toLowerCase()}class Vn{constructor(t,n){this.attribute=n,this.property=t}}Vn.prototype.attribute="";Vn.prototype.booleanish=!1;Vn.prototype.boolean=!1;Vn.prototype.commaOrSpaceSeparated=!1;Vn.prototype.commaSeparated=!1;Vn.prototype.defined=!1;Vn.prototype.mustUseProperty=!1;Vn.prototype.number=!1;Vn.prototype.overloadedBoolean=!1;Vn.prototype.property="";Vn.prototype.spaceSeparated=!1;Vn.prototype.space=void 0;let FH=0;const $e=Eo(),Dt=Eo(),ug=Eo(),ge=Eo(),pt=Eo(),ca=Eo(),Kn=Eo();function Eo(){return 2**++FH}const lg=Object.freeze(Object.defineProperty({__proto__:null,boolean:$e,booleanish:Dt,commaOrSpaceSeparated:Kn,commaSeparated:ca,number:ge,overloadedBoolean:ug,spaceSeparated:pt},Symbol.toStringTag,{value:"Module"})),Vm=Object.keys(lg);class zy extends Vn{constructor(t,n,r,s){let o=-1;if(super(t,n),lw(this,"space",s),typeof r=="number")for(;++o<Vm.length;){const u=Vm[o];lw(this,Vm[o],(r&lg[u])===lg[u])}}}zy.prototype.defined=!0;function lw(e,t,n){n&&(e[t]=n)}function Ua(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new zy(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Nl(r)]=r,n[Nl(o.attribute)]=r}return new Zl(t,n,e.space)}const xN=Ua({properties:{ariaActiveDescendant:null,ariaAtomic:Dt,ariaAutoComplete:null,ariaBusy:Dt,ariaChecked:Dt,ariaColCount:ge,ariaColIndex:ge,ariaColSpan:ge,ariaControls:pt,ariaCurrent:null,ariaDescribedBy:pt,ariaDetails:null,ariaDisabled:Dt,ariaDropEffect:pt,ariaErrorMessage:null,ariaExpanded:Dt,ariaFlowTo:pt,ariaGrabbed:Dt,ariaHasPopup:null,ariaHidden:Dt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pt,ariaLevel:ge,ariaLive:null,ariaModal:Dt,ariaMultiLine:Dt,ariaMultiSelectable:Dt,ariaOrientation:null,ariaOwns:pt,ariaPlaceholder:null,ariaPosInSet:ge,ariaPressed:Dt,ariaReadOnly:Dt,ariaRelevant:null,ariaRequired:Dt,ariaRoleDescription:pt,ariaRowCount:ge,ariaRowIndex:ge,ariaRowSpan:ge,ariaSelected:Dt,ariaSetSize:ge,ariaSort:null,ariaValueMax:ge,ariaValueMin:ge,ariaValueNow:ge,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function EN(e,t){return t in e?e[t]:t}function vN(e,t){return EN(e,t.toLowerCase())}const jH=Ua({attributes:{acceptcharset:"accept-charset",classname:"
299class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ca,acceptCharset:pt,accessKey:pt,action:null,allow:null,allowFullScreen:$e,allowPaymentRequest:$e,allowUserMedia:$e,alt:null,as:null,async:$e,autoCapitalize:null,autoComplete:pt,autoFocus:$e,autoPlay:$e,blocking:pt,capture:null,charSet:null,checked:$e,cite:null,className:pt,cols:ge,colSpan:null,content:null,contentEditable:Dt,controls:$e,controlsList:pt,coords:ge|ca,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$e,defer:$e,dir:null,dirName:null,disabled:$e,download:ug,draggable:Dt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$e,formTarget:null,headers:pt,height:ge,hidden:ug,high:ge,href:null,hrefLang:null,htmlFor:pt,httpEquiv:pt,id:null,imageSizes:null,imageSrcSet:null,inert:$e,inputMode:null,integrity:null,is:null,isMap:$e,itemId:null,itemProp:pt,itemRef:pt,itemScope:$e,itemType:pt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$e,low:ge,manifest:null,max:null,maxLength:ge,media:null,method:null,min:null,minLength:ge,multiple:$e,muted:$e,name:null,nonce:null,noModule:$e,noValidate:$e,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$e,optimum:ge,pattern:null,ping:pt,placeholder:null,playsInline:$e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$e,referrerPolicy:null,rel:pt,required:$e,reversed:$e,rows:ge,rowSpan:ge,sandbox:pt,scope:null,scoped:$e,seamless:$e,selected:$e,shadowRootClonable:$e,shadowRootDelegatesFocus:$e,shadowRootMode:null,shape:null,size:ge,sizes:null,slot:null,span:ge,spellCheck:Dt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ge,step:null,style:null,tabIndex:ge,target:null,title:null,translate:null,type:null,typeMustMatch:$e,useMap:null,value:Dt,width:ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pt,axis:null,background:null,bgColor:null,border:ge,borderColor:null,bottomMargin:ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$e,declare:$e,event:null,face:null,frame:null,frameBorder:null,hSpace:ge,leftMargin:ge,link:null,longDesc:null,lowSrc:null,marginHeight:ge,marginWidth:ge,noResize:$e,noHref:$e,noShade:$e,noWrap:$e,object:null,profile:null,prompt:null,rev:null,rightMargin:ge,rules:null,scheme:null,scrolling:Dt,standby:null,summary:null,text:null,topMargin:ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$e,disableRemotePlayback:$e,prefix:null,property:null,results:ge,security:null,unselectable:null},space:"html",transform:vN}),UH=Ua({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
299dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Kn,accentHeight:ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ge,amplitude:ge,arabicForm:null,ascent:ge,attributeName:null,attributeType:null,azimuth:ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ge,by:null,calcMode:null,capHeight:ge,className:pt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
299dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ge,diffuseConstant:ge,direction:null,display:null,dur:null,divisor:ge,dominantBaseline:null,download:$e,dx:null,dy:null,edgeMode:null,editable:null,elevation:ge,enableBackground:null,end:null,event:null,exponent:ge,externalResourcesRequired:null,fill:null,fillOpacity:ge,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ca,g2:ca,glyphName:ca,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ge,horizOriginX:ge,horizOriginY:ge,id:null,ideographic:ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ge,k:ge,k1:ge,k2:ge,k3:ge,k4:ge,kernelMatrix:Kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ge,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ge,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ge,overlineThickness:ge,paintOrder:null,panose1:null,path:null,pathLength:ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ge,pointsAtY:ge,pointsAtZ:ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kn,rev:Kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kn,requiredFeatures:Kn,requiredFonts:Kn,requiredFormats:Kn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ge,specularExponent:ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ge,strikethroughThickness:ge,string:null,stroke:null,strokeDashArray:Kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ge,strokeOpacity:ge,strokeWidth:null,style:null,surfaceScale:ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kn,tabIndex:ge,tableValues:null,target:null,targetX:ge,targetY:ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ge,underlineThickness:ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ge,values:null,vAlphabetic:ge,vMathematical:ge,vectorEffect:null,vHanging:ge,vIdeographic:ge,version:null,vertAdvY:ge,vertOriginX:ge,vertOriginY:ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:EN}),TN=Ua({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,246 bytes, lines 299-300
299,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),wN=Ua({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vN}),SN=Ua({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),HH={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},VH=/[A-Z]/g,cw=/-[a-z]/g,zH=/^data[-\w.:]+$/i;function eh(e,t){const n=Nl(t);let r=t,s=Vn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&zH.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(cw,$H);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!cw.test(o)){let u=o.replace(VH,WH);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=zy}return new s(r,t)}function WH(e){return"-"+e.toLowerCase()}function $H(e){return e.charAt(1).toUpperCase()}const ec=bN([xN,jH,TN,wN,SN],"html"),vi=bN([xN,UH,TN,wN,SN],"svg");function dw(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _N(e){return e.join(" ").trim()}var Zo={},zm,fw;function qH(){if(fw)return zm;fw=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,l=/^\s+|\s+$/g,d=` 300`,f="/",h="*",m="",b="comment",E="declaration";zm=function(w,A){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];A=A||{};var T=1,N=1;function S(ie){var ne=ie.match(t);ne&&(T+=ne.length);var me=ie.lastIndexOf(d);N=~me?ie.length-me:N+ie.length}function R(){var ie={line:T,column:N};return function(ne){return ne.position=new D(ie),H(),ne}}function D(ie){this.start=ie,this.end={line:T,column:N},this.source=A.source}D.prototype.content=w;function M(ie){var ne=new Error(A.source+":"+T+":"+N+": "+ie);if(ne.reason=ie,ne.filename=A.source,ne.line=T,ne.column=N,ne.source=w,!A.silent)throw ne}function W(ie){var ne=ie.exec(w);if(ne){var me=ne[0];return S(me),w=w.slice(me.length),ne}}function H(){W(n)}function se(ie){var ne;for(ie=ie||[];ne=J();)ne!==!1&&ie.push(ne);return ie}function J(){var ie=R();if(!(f!=w.charAt(0)||h!=w.charAt(1))){for(var ne=2;m!=w.charAt(ne)&&(h!=w.charAt(ne)||f!=w.charAt(ne+1));)++ne;if(ne+=2,m===w.charAt(ne-1))return M("End of comment missing");var me=w.slice(2,ne-2);return N+=2,S(me),w=w.slice(ne),N+=2,ie({type:b,comment:me})}}function ee(){var ie=R(),ne=W(r);if(ne){if(J(),!W(s))return M("property missing ':'");var me=W(o),de=ie({type:E,property:_(ne[0].replace(e,m)),value:me?_(me[0].replace(e,m)):m});return W(u),de}}function oe(){var ie=[];se(ie);for(var ne;ne=ee();)ne!==!1&&(ie.push(ne),se(ie));return ie}return H(),oe()};function _(w){return w?w.replace(l,m):m}return zm}var hw;function YH(){if(hw)return Zo;hw=1;var e=Zo&&Zo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.default=n;var t=e(qH());function n(r,s){var o=null;if(!r||typeof r!="string")return o;var u=(0,t.default)(r),l=typeof s=="function";return u.forEach(function(d){if(d.type==="declaration"){var f=d.property,h=d.value;l?s(f,h,d):h&&(o=o||{},o[f]=h)}}),o}return Zo}var Bu={},pw;function KH(){if(pw)return Bu;pw=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(f){return!f||n.test(f)||e.test(f)},u=function(f,h){return h.toUpperCase()},l=function(f,h){return"".concat(h,"-")},d=function(f,h){return h===void 0&&(h={}),o(f)?f:(f=f.toLowerCase(),h.reactCompat?f=f.replace(s,l):f=f.replace(r,l),f.replace(t,u))};return Bu.camelCase=d,Bu}var Fu,mw;function QH(){if(mw)return Fu;mw=1;var e=Fu&&Fu.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(YH()),n=KH();function r(s,o){var u={};
vendor: 2,733 bytes, line 300
300return!s||typeof s!="string"||(0,t.default)(s,function(l,d){l&&d&&(u[(0,n.camelCase)(l,o)]=d)}),u}return r.default=r,Fu=r,Fu}var GH=QH();const XH=Ml(GH),th=CN("end"),ns=CN("start");function CN(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function JH(e){const t=ns(e),n=th(e);if(t&&n)return{start:t,end:n}}function ol(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?gw(e.position):"start"in e||"end"in e?gw(e):"line"in e||"column"in e?cg(e):""}function cg(e){return yw(e&&e.line)+":"+yw(e&&e.column)}function gw(e){return cg(e&&e.start)+"-"+cg(e&&e.end)}function yw(e){return e&&typeof e=="number"?e:1}class yn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let s="",o={},u=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?s=t:!o.cause&&t&&(u=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?o.ruleId=r:(o.source=r.slice(0,d),o.ruleId=r.slice(d+1))}if(!o.place&&o.ancestors&&o.ancestors){const d=o.ancestors[o.ancestors.length-1];d&&(o.place=d.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=l?l.line:void 0,this.name=ol(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=u&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}yn.prototype.file="";yn.prototype.name="";yn.prototype.reason="";yn.prototype.message="";yn.prototype.stack="";yn.prototype.column=void 0;yn.prototype.line=void 0;yn.prototype.ancestors=void 0;yn.prototype.cause=void 0;yn.prototype.fatal=void 0;yn.prototype.place=void 0;yn.prototype.ruleId=void 0;yn.prototype.source=void 0;const Wy={}.hasOwnProperty,ZH=new Map,eV=/[A-Z]/g,tV=new Set(["table","tbody","thead","tfoot","tr"]),nV=new Set(["td","th"]),AN="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rV(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=dV(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,302 bytes, line 300
300if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=cV(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?vi:ec,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=NN(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function NN(e,t,n){if(t.type==="element")return sV(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return iV(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return aV(e,t,n);if(t.type==="mdxjsEsm")return oV(e,t);if(t.type==="root")return uV(e,t,n);if(t.type==="text")return lV(e,t)}function sV(e,t,n){const r=e.schema;let s=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(s=vi,e.schema=s),e.ancestors.push(t);const o=RN(e,t.tagName,!1),u=fV(e,t);let l=qy(e,t);return tV.has(t.tagName)&&(l=l.filter(function(d){return typeof d=="string"?!BH(d):!0})),kN(e,u,o,t),$y(u,l),e.ancestors.pop(),e.schema=r,e.create(t,o,u,n)}function iV(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}kl(e,t.position)}function oV(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);kl(e,t.position)}function aV(e,t,n){const r=e.schema;let s=r;t.name==="svg"&&r.space==="html"&&(s=vi,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:RN(e,t.name,!0),u=hV(e,t),l=qy(e,t);return kN(e,u,o,t),$y(u,l),e.ancestors.pop(),e.schema=r,e.create(t,o,u,n)}function uV(e,t,n){const r={};return $y(r,qy(e,t)),e.create(t,e.Fragment,r,n)}function lV(e,t){return t.value}function kN(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function $y(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function cV(e,t,n){return r;function r(s,o,u,l){const f=Array.isArray(u.children)?n:t;return l?f(o,u,l):f(o,u)}}function dV(e,t){return n;function n(r,s,o,u){const l=Array.isArray(o.children),d=ns(r);return t(s,o,u,l,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function fV(e,t){const n={};let r,s;for(s in t.properties)if(s!=="children"&&Wy.call(t.properties,s)){const o=pV(e,s,t.properties[s]);if(o){const[u,l]=o;e.tableCellAlignToStyle&&u==="align"&&typeof l=="string"&&nV.has(t.tagName)?r=l:n[u]=l}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function hV(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const u=o.expression;u.type;const l=u.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else kl(e,t.position);else{const s=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else kl(e,t.position);else o=r.value===null?!0:r.value;n[s]=o}return n}function qy(e,t){const n=[];let r=-1;const s=e.passKeys?new Map:ZH;for(;++r<t.children.length;){const o=t.children[r];let u;if(e.passKeys){const d=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(d){const f=s.get(d)||0;u=d+"-"+f,s.set(d,f+1)}}const l=NN(e,o,u);l!==void 0&&n.push(l)}return n}function pV(e,t,n){const r=eh(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?yN(n):_N(n)),r.property==="style"){let s=typeof n=="object"?n:mV(e,String(n));return e.stylePropertyNameCase==="css"&&(s=gV(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&r.space?HH[r.property]||r.property:r.attribute,n]}}function mV(e,t){try{return XH(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,s=new yn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=AN+"#cannot-parse-style-attribute",s}}function RN(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let o=-1,u;for(;++o<s.length;){const l=aw(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};u=u?{type:"MemberExpression",object:u,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=u}else r=aw(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const s=r.value;return Wy.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(r);kl(e)}function kl(e,t){const n=new yn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=AN+"#cannot-handle-mdx-estrees-without-createevaluater",n}function gV(e){const t={};let n;for(n in e)Wy.call(e,n)&&(t[yV(n)]=e[n]);return t}function yV(e){let t=e.replace(eV,bV);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function bV(e){return"-"+e.toLowerCase()}const Wm={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},xV={};function EV(e,t){const n=xV,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return PN(e,r,s)}function PN(e,t,n){if(vV(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return bw(e.children,t,n)}return Array.isArray(e)?bw(e,t,n):""}function bw(e,t,n){const r=[];let s=-1;for(;++s<e.length;)r[s]=PN(e[s],t,n);return r.join("")}function vV(e){return!!(e&&typeof e=="object")}const xw=document.createElement("i");function Yy(e){const t="&"+e+";";xw.innerHTML=t;const n=xw.textContent;
vendor: 14,518 bytes, line 300
300return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function es(e,t,n,r){const s=e.length;let o=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);o<r.length;)u=r.slice(o,o+1e4),u.unshift(t,0),e.splice(...u),o+=1e4,t+=1e4}function fr(e,t){return e.length>0?(es(e,e.length,0,t),e):t}const Ew={}.hasOwnProperty;function TV(e){const t={};let n=-1;for(;++n<e.length;)wV(t,e[n]);return t}function wV(e,t){let n;for(n in t){const s=(Ew.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let u;if(o)for(u in o){Ew.call(s,u)||(s[u]=[]);const l=o[u];SV(s[u],Array.isArray(l)?l:l?[l]:[])}}}function SV(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);es(e,0,0,r)}function IN(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function da(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $r=Ti(/[A-Za-z]/),Gn=Ti(/[\dA-Za-z]/),_V=Ti(/[#-'*+\--9=?A-Z^-~]/);function dg(e){return e!==null&&(e<32||e===127)}const fg=Ti(/\d/),CV=Ti(/[\dA-Fa-f]/),AV=Ti(/[!-/:-@[-`{-~]/);function ze(e){return e!==null&&e<-2}function Un(e){return e!==null&&(e<0||e===32)}function nt(e){return e===-2||e===-1||e===32}const NV=Ti(new RegExp("\\p{P}|\\p{S}","u")),kV=Ti(/\s/);function Ti(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ha(e){const t=[];let n=-1,r=0,s=0;for(;++n<e.length;){const o=e.charCodeAt(n);let u="";if(o===37&&Gn(e.charCodeAt(n+1))&&Gn(e.charCodeAt(n+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(u=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(u=String.fromCharCode(o,l),s=1):u="�"}else u=String.fromCharCode(o);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+s+1,u=""),s&&(n+=s,s=0)}return t.join("")+e.slice(r)}function mt(e,t,n,r){const s=r?r-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(d){return nt(d)?(e.enter(n),l(d)):t(d)}function l(d){return nt(d)&&o++<s?(e.consume(d),l):(e.exit(n),t(d))}}const RV={tokenize:PV};function PV(e){const t=e.attempt(this.parser.constructs.contentInitial,r,s);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),mt(e,t,"linePrefix")}function s(l){return e.enter("paragraph"),o(l)}function o(l){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(l)}function u(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return ze(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),u)}}const IV={tokenize:OV},vw={tokenize:LV};function OV(e){const t=this,n=[];let r=0,s,o,u;return l;function l(S){if(r<n.length){const R=n[r];return t.containerState=R[1],e.attempt(R[0].continuation,d,f)(S)}return f(S)}function d(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&N();const R=t.events.length;let D=R,M;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){M=t.events[D][1].end;break}T(r);let W=R;for(;W<t.events.length;)t.events[W][1].end={...M},W++;return es(t.events,D+1,0,t.events.slice(R)),t.events.length=W,f(S)}return l(S)}function f(S){if(r===n.length){if(!s)return b(S);if(s.currentConstruct&&s.currentConstruct.concrete)return _(S);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(vw,h,m)(S)}function h(S){return s&&N(),T(r),b(S)}function m(S){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,_(S)}function b(S){return t.containerState={},e.attempt(vw,E,_)(S)}function E(S){return r++,n.push([t.currentConstruct,t.containerState]),b(S)}function _(S){if(S===null){s&&N(),T(0),e.consume(S);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),w(S)}function w(S){if(S===null){A(e.exit("chunkFlow"),!0),T(0),e.consume(S);return}return ze(S)?(e.consume(S),A(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(S),w)}function A(S,R){const D=t.sliceStream(S);if(R&&D.push(null),S.previous=o,o&&(o.next=S),o=S,s.defineSkip(S.start),s.write(D),t.parser.lazy[S.start.line]){let M=s.events.length;for(;M--;)if(s.events[M][1].start.offset<u&&(!s.events[M][1].end||s.events[M][1].end.offset>u))return;const W=t.events.length;let H=W,se,J;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(se){J=t.events[H][1].end;break}se=!0}for(T(r),M=W;M<t.events.length;)t.events[M][1].end={...J},M++;es(t.events,H+1,0,t.events.slice(W)),t.events.length=M}}function T(S){let R=n.length;for(;R-- >S;){const D=n[R];t.containerState=D[1],D[0].exit.call(t,e)}n.length=S}function N(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function LV(e,t,n){return mt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Tw(e){if(e===null||Un(e)||kV(e))return 1;if(NV(e))return 2}function Ky(e,t,n){const r=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const hg={name:"attention",resolveAll:DV,tokenize:MV};function DV(e,t){let n=-1,r,s,o,u,l,d,f,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[r][1].end},b={...e[n][1].start};ww(m,-d),ww(b,d),u={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},l={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},o={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},s={type:d>1?"strong":"emphasis",start:{...u.start},end:{...l.end}},e[r][1].end={...u.start},e[n][1].start={...l.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=fr(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=fr(f,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",o,t]]),f=fr(f,Ky(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=fr(f,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,f=fr(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,es(e,r-1,n-r+3,f),n=r+f.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function MV(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,s=Tw(r);let o;return u;function u(d){return o=d,e.enter("attentionSequence"),l(d)}function l(d){if(d===o)return e.consume(d),l;const f=e.exit("attentionSequence"),h=Tw(d),m=!h||h===2&&s||n.includes(d),b=!s||s===2&&h||n.includes(r);return f._open=!!(o===42?m:m&&(s||!b)),f._close=!!(o===42?b:b&&(h||!m)),t(d)}}function ww(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const BV={name:"autolink",tokenize:FV};function FV(e,t,n){let r=0;return s;function s(E){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(E){return $r(E)?(e.consume(E),u):E===64?n(E):f(E)}function u(E){return E===43||E===45||E===46||Gn(E)?(r=1,l(E)):f(E)}function l(E){return E===58?(e.consume(E),r=0,d):(E===43||E===45||E===46||Gn(E))&&r++<32?(e.consume(E),l):(r=0,f(E))}function d(E){return E===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.exit("autolink"),t):E===null||E===32||E===60||dg(E)?n(E):(e.consume(E),d)}function f(E){return E===64?(e.consume(E),h):_V(E)?(e.consume(E),f):n(E)}function h(E){return Gn(E)?m(E):n(E)}function m(E){return E===46?(e.consume(E),r=0,h):E===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.exit("autolink"),t):b(E)}function b(E){if((E===45||Gn(E))&&r++<63){const _=E===45?b:m;return e.consume(E),_}return n(E)}}const nh={partial:!0,tokenize:jV};function jV(e,t,n){return r;function r(o){return nt(o)?mt(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||ze(o)?t(o):n(o)}}const ON={continuation:{tokenize:HV},exit:VV,name:"blockQuote",tokenize:UV};function UV(e,t,n){const r=this;return s;function s(u){if(u===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return n(u)}function o(u){return nt(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function HV(e,t,n){const r=this;return s;function s(u){return nt(u)?mt(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(ON,t,n)(u)}}function VV(e){e.exit("blockQuote")}const LN={name:"characterEscape",tokenize:zV};function zV(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return AV(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const DN={name:"characterReference",tokenize:WV};function WV(e,t,n){const r=this;let s=0,o,u;return l;function l(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,u=Gn,h(m))}function f(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=CV,h):(e.enter("characterReferenceValue"),o=7,u=fg,h(m))}function h(m){if(m===59&&s){const b=e.exit("characterReferenceValue");return u===Gn&&!Yy(r.sliceSerialize(b))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(m)&&s++<o?(e.consume(m),h):n(m)}}const Sw={partial:!0,tokenize:qV},_w={concrete:!0,name:"codeFenced",tokenize:$V};function $V(e,t,n){const r=this,s={partial:!0,tokenize:D};let o=0,u=0,l;return d;function d(M){return f(M)}function f(M){const W=r.events[r.events.length-1];return o=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,l=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(M)}function h(M){return M===l?(u++,e.consume(M),h):u<3?n(M):(e.exit("codeFencedFenceSequence"),nt(M)?mt(e,m,"whitespace")(M):m(M))}function m(M){return M===null||ze(M)?(e.exit("codeFencedFence"),r.interrupt?t(M):e.check(Sw,w,R)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(M))}function b(M){return M===null||ze(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(M)):nt(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),mt(e,E,"whitespace")(M)):M===96&&M===l?n(M):(e.consume(M),b)}function E(M){return M===null||ze(M)?m(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(M))}function _(M){return M===null||ze(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(M)):M===96&&M===l?n(M):(e.consume(M),_)}function w(M){return e.attempt(s,R,A)(M)}function A(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),T}function T(M){return o>0&&nt(M)?mt(e,N,"linePrefix",o+1)(M):N(M)}function N(M){return M===null||ze(M)?e.check(Sw,w,R)(M):(e.enter("codeFlowValue"),S(M))}function S(M){return M===null||ze(M)?(e.exit("codeFlowValue"),N(M)):(e.consume(M),S)}function R(M){return e.exit("codeFenced"),t(M)}function D(M,W,H){let se=0;return J;function J(me){return M.enter("lineEnding"),M.consume(me),M.exit("lineEnding"),ee}function ee(me){return M.enter("codeFencedFence"),nt(me)?mt(M,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(me):oe(me)}function oe(me){return me===l?(M.enter("codeFencedFenceSequence"),ie(me)):H(me)}function ie(me){return me===l?(se++,M.consume(me),ie):se>=u?(M.exit("codeFencedFenceSequence"),nt(me)?mt(M,ne,"whitespace")(me):ne(me)):H(me)}function ne(me){return me===null||ze(me)?(M.exit("codeFencedFence"),W(me)):H(me)}}}function qV(e,t,n){const r=this;return s;function s(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const $m={name:"codeIndented",tokenize:KV},YV={partial:!0,tokenize:QV};function KV(e,t,n){const r=this;return s;function s(f){return e.enter("codeIndented"),mt(e,o,"linePrefix",5)(f)}function o(f){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?u(f):n(f)}function u(f){return f===null?d(f):ze(f)?e.attempt(YV,u,d)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||ze(f)?(e.exit("codeFlowValue"),u(f)):(e.consume(f),l)}function d(f){return e.exit("codeIndented"),t(f)}}function QV(e,t,n){const r=this;return s;function s(u){return r.parser.lazy[r.now().line]?n(u):ze(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):mt(e,o,"linePrefix",5)(u)}function o(u){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(u):ze(u)?s(u):n(u)}}const GV={name:"codeText",previous:JV,resolve:XV,tokenize:ZV};function XV(e){let t=e.length-4,n=3,r,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)s===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(s=r):(r===t||e[r][1].type==="lineEnding")&&(e[s][1].type="codeTextData",r!==s+2&&(e[s][1].end=e[r-1][1].end,e.splice(s+2,r-s-2),t-=r-s-2,r=s+2),s=void 0);return e}function JV(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ZV(e,t,n){let r=0,s,o;return u;
vendor: 6,645 bytes, line 300
300function u(m){return e.enter("codeText"),e.enter("codeTextSequence"),l(m)}function l(m){return m===96?(e.consume(m),r++,l):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(o=e.enter("codeTextSequence"),s=0,h(m)):ze(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(m))}function f(m){return m===null||m===32||m===96||ze(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),f)}function h(m){return m===96?(e.consume(m),s++,h):s===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(o.type="codeTextData",f(m))}}class ez{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const s=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&ju(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ju(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ju(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ju(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ju(this.left,n.reverse())}}}function ju(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function MN(e){const t={};let n=-1,r,s,o,u,l,d,f;const h=new ez(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type==="lineEndingBlank"&&(o+=2),o<d.length&&d[o][1].type==="content"))for(;++o<d.length&&d[o][1].type!=="content";)d[o][1].type==="chunkText"&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,tz(h,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,s=void 0;o--;)if(u=h.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(h.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=o);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(r[1].end={...h.get(s)[1].start},l=h.slice(s,n),l.unshift(r),h.splice(s,n-s+1,l))}}return es(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!f}function tz(e,t){const n=e.get(t)[1],r=e.get(t)[2];let s=t-1;const o=[];let u=n._tokenizer;u||(u=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const l=u.events,d=[],f={};let h,m,b=-1,E=n,_=0,w=0;const A=[w];for(;E;){for(;e.get(++s)[1]!==E;);o.push(s),E._tokenizer||(h=r.sliceStream(E),E.next||h.push(null),m&&u.defineSkip(E.start),E._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(h),E._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),m=E,E=E.next}for(E=n;++b<l.length;)l[b][0]==="exit"&&l[b-1][0]==="enter"&&l[b][1].type===l[b-1][1].type&&l[b][1].start.line!==l[b][1].end.line&&(w=b+1,A.push(w),E._tokenizer=void 0,E.previous=void 0,E=E.next);for(u.events=[],E?(E._tokenizer=void 0,E.previous=void 0):A.pop(),b=A.length;b--;){const T=l.slice(A[b],A[b+1]),N=o.pop();d.push([N,N+T.length-1]),e.splice(N,2,T)}for(d.reverse(),b=-1;++b<d.length;)f[_+d[b][0]]=_+d[b][1],_+=d[b][1]-d[b][0]-1;return f}const nz={resolve:sz,tokenize:iz},rz={partial:!0,tokenize:oz};function sz(e){return MN(e),e}function iz(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(l)}function s(l){return l===null?o(l):ze(l)?e.check(rz,u,o)(l):(e.consume(l),s)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function u(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function oz(e,t,n){const r=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),mt(e,o,"linePrefix")}function o(u){if(u===null||ze(u))return n(u);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function BN(e,t,n,r,s,o,u,l,d){const f=d||Number.POSITIVE_INFINITY;let h=0;return m;function m(T){return T===60?(e.enter(r),e.enter(s),e.enter(o),e.consume(T),e.exit(o),b):T===null||T===32||T===41||dg(T)?n(T):(e.enter(r),e.enter(u),e.enter(l),e.enter("chunkString",{contentType:"string"}),w(T))}function b(T){return T===62?(e.enter(o),e.consume(T),e.exit(o),e.exit(s),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),E(T))}function E(T){return T===62?(e.exit("chunkString"),e.exit(l),b(T)):T===null||T===60||ze(T)?n(T):(e.consume(T),T===92?_:E)}function _(T){return T===60||T===62||T===92?(e.consume(T),E):E(T)}function w(T){return!h&&(T===null||T===41||Un(T))?(e.exit("chunkString"),e.exit(l),e.exit(u),e.exit(r),t(T)):h<f&&T===40?(e.consume(T),h++,w):T===41?(e.consume(T),h--,w):T===null||T===32||T===40||dg(T)?n(T):(e.consume(T),T===92?A:w)}function A(T){return T===40||T===41||T===92?(e.consume(T),w):w(T)}}function FN(e,t,n,r,s,o){const u=this;let l=0,d;return f;function f(E){return e.enter(r),e.enter(s),e.consume(E),e.exit(s),e.enter(o),h}function h(E){return l>999||E===null||E===91||E===93&&!d||E===94&&!l&&"_hiddenFootnoteSupport"in u.parser.constructs?n(E):E===93?(e.exit(o),e.enter(s),e.consume(E),e.exit(s),e.exit(r),t):ze(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===null||E===91||E===93||ze(E)||l++>999?(e.exit("chunkString"),h(E)):(e.consume(E),d||(d=!nt(E)),E===92?b:m)}
vendor: 15,573 bytes, line 300
300function b(E){return E===91||E===92||E===93?(e.consume(E),l++,m):m(E)}}function jN(e,t,n,r,s,o){let u;return l;function l(b){return b===34||b===39||b===40?(e.enter(r),e.enter(s),e.consume(b),e.exit(s),u=b===40?41:b,d):n(b)}function d(b){return b===u?(e.enter(s),e.consume(b),e.exit(s),e.exit(r),t):(e.enter(o),f(b))}function f(b){return b===u?(e.exit(o),d(u)):b===null?n(b):ze(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),mt(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===u||b===null||ze(b)?(e.exit("chunkString"),f(b)):(e.consume(b),b===92?m:h)}function m(b){return b===u||b===92?(e.consume(b),h):h(b)}}function al(e,t){let n;return r;function r(s){return ze(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,r):nt(s)?mt(e,r,n?"linePrefix":"lineSuffix")(s):t(s)}}const az={name:"definition",tokenize:lz},uz={partial:!0,tokenize:cz};function lz(e,t,n){const r=this;let s;return o;function o(E){return e.enter("definition"),u(E)}function u(E){return FN.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(E)}function l(E){return s=da(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),d):n(E)}function d(E){return Un(E)?al(e,f)(E):f(E)}function f(E){return BN(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(E)}function h(E){return e.attempt(uz,m,m)(E)}function m(E){return nt(E)?mt(e,b,"whitespace")(E):b(E)}function b(E){return E===null||ze(E)?(e.exit("definition"),r.parser.defined.push(s),t(E)):n(E)}}function cz(e,t,n){return r;function r(l){return Un(l)?al(e,s)(l):n(l)}function s(l){return jN(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return nt(l)?mt(e,u,"whitespace")(l):u(l)}function u(l){return l===null||ze(l)?t(l):n(l)}}const dz={name:"hardBreakEscape",tokenize:fz};function fz(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return ze(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const hz={name:"headingAtx",resolve:pz,tokenize:mz};function pz(e,t){let n=e.length-2,r=3,s,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(s={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},es(e,r,n-r+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function mz(e,t,n){let r=0;return s;function s(h){return e.enter("atxHeading"),o(h)}function o(h){return e.enter("atxHeadingSequence"),u(h)}function u(h){return h===35&&r++<6?(e.consume(h),u):h===null||Un(h)?(e.exit("atxHeadingSequence"),l(h)):n(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),d(h)):h===null||ze(h)?(e.exit("atxHeading"),t(h)):nt(h)?mt(e,l,"whitespace")(h):(e.enter("atxHeadingText"),f(h))}function d(h){return h===35?(e.consume(h),d):(e.exit("atxHeadingSequence"),l(h))}function f(h){return h===null||h===35||Un(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),f)}}const gz=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Cw=["pre","script","style","textarea"],yz={concrete:!0,name:"htmlFlow",resolveTo:Ez,tokenize:vz},bz={partial:!0,tokenize:wz},xz={partial:!0,tokenize:Tz};function Ez(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function vz(e,t,n){const r=this;let s,o,u,l,d;return f;function f(O){return h(O)}function h(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),m}function m(O){return O===33?(e.consume(O),b):O===47?(e.consume(O),o=!0,w):O===63?(e.consume(O),s=3,r.interrupt?t:I):$r(O)?(e.consume(O),u=String.fromCharCode(O),A):n(O)}function b(O){return O===45?(e.consume(O),s=2,E):O===91?(e.consume(O),s=5,l=0,_):$r(O)?(e.consume(O),s=4,r.interrupt?t:I):n(O)}function E(O){return O===45?(e.consume(O),r.interrupt?t:I):n(O)}function _(O){const Ee="CDATA[";return O===Ee.charCodeAt(l++)?(e.consume(O),l===Ee.length?r.interrupt?t:oe:_):n(O)}function w(O){return $r(O)?(e.consume(O),u=String.fromCharCode(O),A):n(O)}function A(O){if(O===null||O===47||O===62||Un(O)){const Ee=O===47,Pe=u.toLowerCase();return!Ee&&!o&&Cw.includes(Pe)?(s=1,r.interrupt?t(O):oe(O)):gz.includes(u.toLowerCase())?(s=6,Ee?(e.consume(O),T):r.interrupt?t(O):oe(O)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(O):o?N(O):S(O))}return O===45||Gn(O)?(e.consume(O),u+=String.fromCharCode(O),A):n(O)}function T(O){return O===62?(e.consume(O),r.interrupt?t:oe):n(O)}function N(O){return nt(O)?(e.consume(O),N):J(O)}function S(O){return O===47?(e.consume(O),J):O===58||O===95||$r(O)?(e.consume(O),R):nt(O)?(e.consume(O),S):J(O)}function R(O){return O===45||O===46||O===58||O===95||Gn(O)?(e.consume(O),R):D(O)}function D(O){return O===61?(e.consume(O),M):nt(O)?(e.consume(O),D):S(O)}function M(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),d=O,W):nt(O)?(e.consume(O),M):H(O)}function W(O){return O===d?(e.consume(O),d=null,se):O===null||ze(O)?n(O):(e.consume(O),W)}function H(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Un(O)?D(O):(e.consume(O),H)}function se(O){return O===47||O===62||nt(O)?S(O):n(O)}function J(O){return O===62?(e.consume(O),ee):n(O)}function ee(O){return O===null||ze(O)?oe(O):nt(O)?(e.consume(O),ee):n(O)}function oe(O){return O===45&&s===2?(e.consume(O),de):O===60&&s===1?(e.consume(O),ae):O===62&&s===4?(e.consume(O),U):O===63&&s===3?(e.consume(O),I):O===93&&s===5?(e.consume(O),fe):ze(O)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(bz,X,ie)(O)):O===null||ze(O)?(e.exit("htmlFlowData"),ie(O)):(e.consume(O),oe)}function ie(O){return e.check(xz,ne,X)(O)}function ne(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),me}function me(O){return O===null||ze(O)?ie(O):(e.enter("htmlFlowData"),oe(O))}function de(O){return O===45?(e.consume(O),I):oe(O)}function ae(O){return O===47?(e.consume(O),u="",$):oe(O)}function $(O){if(O===62){const Ee=u.toLowerCase();return Cw.includes(Ee)?(e.consume(O),U):oe(O)}return $r(O)&&u.length<8?(e.consume(O),u+=String.fromCharCode(O),$):oe(O)}function fe(O){return O===93?(e.consume(O),I):oe(O)}function I(O){return O===62?(e.consume(O),U):O===45&&s===2?(e.consume(O),I):oe(O)}function U(O){return O===null||ze(O)?(e.exit("htmlFlowData"),X(O)):(e.consume(O),U)}function X(O){return e.exit("htmlFlow"),t(O)}}function Tz(e,t,n){const r=this;return s;function s(u){return ze(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):n(u)}function o(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function wz(e,t,n){return r;function r(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(nh,t,n)}}const Sz={name:"htmlText",tokenize:_z};function _z(e,t,n){const r=this;let s,o,u;return l;function l(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),d}function d(I){return I===33?(e.consume(I),f):I===47?(e.consume(I),D):I===63?(e.consume(I),S):$r(I)?(e.consume(I),H):n(I)}function f(I){return I===45?(e.consume(I),h):I===91?(e.consume(I),o=0,_):$r(I)?(e.consume(I),N):n(I)}function h(I){return I===45?(e.consume(I),E):n(I)}function m(I){return I===null?n(I):I===45?(e.consume(I),b):ze(I)?(u=m,ae(I)):(e.consume(I),m)}function b(I){return I===45?(e.consume(I),E):m(I)}function E(I){return I===62?de(I):I===45?b(I):m(I)}function _(I){const U="CDATA[";return I===U.charCodeAt(o++)?(e.consume(I),o===U.length?w:_):n(I)}function w(I){return I===null?n(I):I===93?(e.consume(I),A):ze(I)?(u=w,ae(I)):(e.consume(I),w)}function A(I){return I===93?(e.consume(I),T):w(I)}function T(I){return I===62?de(I):I===93?(e.consume(I),T):w(I)}function N(I){return I===null||I===62?de(I):ze(I)?(u=N,ae(I)):(e.consume(I),N)}function S(I){return I===null?n(I):I===63?(e.consume(I),R):ze(I)?(u=S,ae(I)):(e.consume(I),S)}function R(I){return I===62?de(I):S(I)}function D(I){return $r(I)?(e.consume(I),M):n(I)}function M(I){return I===45||Gn(I)?(e.consume(I),M):W(I)}function W(I){return ze(I)?(u=W,ae(I)):nt(I)?(e.consume(I),W):de(I)}function H(I){return I===45||Gn(I)?(e.consume(I),H):I===47||I===62||Un(I)?se(I):n(I)}function se(I){return I===47?(e.consume(I),de):I===58||I===95||$r(I)?(e.consume(I),J):ze(I)?(u=se,ae(I)):nt(I)?(e.consume(I),se):de(I)}function J(I){return I===45||I===46||I===58||I===95||Gn(I)?(e.consume(I),J):ee(I)}function ee(I){return I===61?(e.consume(I),oe):ze(I)?(u=ee,ae(I)):nt(I)?(e.consume(I),ee):se(I)}function oe(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),s=I,ie):ze(I)?(u=oe,ae(I)):nt(I)?(e.consume(I),oe):(e.consume(I),ne)}function ie(I){return I===s?(e.consume(I),s=void 0,me):I===null?n(I):ze(I)?(u=ie,ae(I)):(e.consume(I),ie)}function ne(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||Un(I)?se(I):(e.consume(I),ne)}function me(I){return I===47||I===62||Un(I)?se(I):n(I)}function de(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function ae(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),$}function $(I){return nt(I)?mt(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):fe(I)}function fe(I){return e.enter("htmlTextData"),u(I)}}const Qy={name:"labelEnd",resolveAll:kz,resolveTo:Rz,tokenize:Pz},Cz={tokenize:Iz},Az={tokenize:Oz},Nz={tokenize:Lz};function kz(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const s=r.type==="labelImage"?4:2;r.type="data",t+=s}}return e.length!==n.length&&es(e,0,e.length,n),e}function Rz(e,t){let n=e.length,r=0,s,o,u,l;for(;n--;)if(s=e[n][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=n,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(u=n);const d={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[u][1].end}},h={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[u-2][1].start}};return l=[["enter",d,t],["enter",f,t]],l=fr(l,e.slice(o+1,o+r+3)),l=fr(l,[["enter",h,t]]),l=fr(l,Ky(t.parser.constructs.insideSpan.null,e.slice(o+r+4,u-3),t)),l=fr(l,[["exit",h,t],e[u-2],e[u-1],["exit",f,t]]),l=fr(l,e.slice(u+1)),l=fr(l,[["exit",d,t]]),es(e,o,e.length,l),e}function Pz(e,t,n){const r=this;let s=r.events.length,o,u;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){o=r.events[s][1];break}return l;function l(b){return o?o._inactive?m(b):(u=r.parser.defined.includes(da(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):n(b)}function d(b){return b===40?e.attempt(Cz,h,u?h:m)(b):b===91?e.attempt(Az,h,u?f:m)(b):u?h(b):m(b)}function f(b){return e.attempt(Nz,h,m)(b)}function h(b){return t(b)}function m(b){return o._balanced=!0,n(b)}}function Iz(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),s}function s(m){return Un(m)?al(e,o)(m):o(m)}function o(m){return m===41?h(m):BN(e,u,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function u(m){return Un(m)?al(e,d)(m):h(m)}function l(m){return n(m)}function d(m){return m===34||m===39||m===40?jN(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):h(m)}function f(m){return Un(m)?al(e,h)(m):h(m)}function h(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function Oz(e,t,n){const r=this;return s;function s(l){return FN.call(r,e,o,u,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(da(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function u(l){return n(l)}}function Lz(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Dz={name:"labelStartImage",resolveAll:Qy.resolveAll,tokenize:Mz};function Mz(e,t,n){const r=this;return s;function s(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),u):n(l)}function u(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Bz={name:"labelStartLink",resolveAll:Qy.resolveAll,tokenize:Fz};function Fz(e,t,n){const r=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o}function o(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const qm={name:"lineEnding",tokenize:jz};function jz(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),mt(e,t,"linePrefix")}}const nf={name:"thematicBreak",tokenize:Uz};function Uz(e,t,n){let r=0,s;return o;function o(f){return e.enter("thematicBreak"),u(f)}function u(f){return s=f,l(f)}function l(f){return f===s?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||ze(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===s?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),nt(f)?mt(e,l,"whitespace")(f):l(f))}}const Ln={continuation:{tokenize:Wz},exit:qz,name:"list",tokenize:zz},Hz={partial:!0,tokenize:Yz},Vz={partial:!0,tokenize:$z};function zz(e,t,n){const r=this,s=r.events[r.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return l;function l(E){const _=r.containerState.type||(E===42||E===43||E===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!r.containerState.marker||E===r.containerState.marker:fg(E)){if(r.containerState.type||(r.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),E===42||E===45?e.check(nf,n,f)(E):f(E);if(!r.interrupt||E===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(E)}return n(E)}function d(E){return fg(E)&&++u<10?(e.consume(E),d):(!r.interrupt||u<2)&&(r.containerState.marker?E===r.containerState.marker:E===41||E===46)?(e.exit("listItemValue"),f(E)):n(E)}function f(E){return e.enter("listItemMarker"),e.consume(E),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||E,e.check(nh,r.interrupt?n:h,e.attempt(Hz,b,m))}
vendor: 8,919 bytes, lines 300-302
300function h(E){return r.containerState.initialBlankLine=!0,o++,b(E)}function m(E){return nt(E)?(e.enter("listItemPrefixWhitespace"),e.consume(E),e.exit("listItemPrefixWhitespace"),b):n(E)}function b(E){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(E)}}function Wz(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(nh,s,o);function s(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,mt(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!nt(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Vz,t,u)(l))}function u(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,mt(e,e.attempt(Ln,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function $z(e,t,n){const r=this;return mt(e,s,"listItemIndent",r.containerState.size+1);function s(o){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(o):n(o)}}function qz(e){e.exit(this.containerState.type)}function Yz(e,t,n){const r=this;return mt(e,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const u=r.events[r.events.length-1];return!nt(o)&&u&&u[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Aw={name:"setextUnderline",resolveTo:Kz,tokenize:Qz};function Kz(e,t){let n=e.length,r,s,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const u={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",u,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=u,e.push(["exit",u,t]),e}function Qz(e,t,n){const r=this;let s;return o;function o(f){let h=r.events.length,m;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){m=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),s=f,u(f)):n(f)}function u(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===s?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),nt(f)?mt(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||ze(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const Gz={tokenize:Xz};function Xz(e){const t=this,n=e.attempt(nh,r,e.attempt(this.parser.constructs.flowInitial,s,mt(e,e.attempt(this.parser.constructs.flow,s,e.attempt(nz,s)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Jz={resolveAll:HN()},Zz=UN("string"),eW=UN("text");function UN(e){return{resolveAll:HN(e==="text"?tW:void 0),tokenize:t};function t(n){const r=this,s=this.parser.constructs[e],o=n.attempt(s,u,l);return u;function u(h){return f(h)?o(h):l(h)}function l(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),d}function d(h){return f(h)?(n.exit("data"),o(h)):(n.consume(h),d)}function f(h){if(h===null)return!0;const m=s[h];let b=-1;if(m)for(;++b<m.length;){const E=m[b];if(!E.previous||E.previous.call(r,r.previous))return!0}return!1}}}function HN(e){return t;function t(n,r){let s=-1,o;for(;++s<=n.length;)o===void 0?n[s]&&n[s][1].type==="data"&&(o=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==o+2&&(n[o][1].end=n[s-1][1].end,n.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(n,r):n}}function tW(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],s=t.sliceStream(r);let o=s.length,u=-1,l=0,d;for(;o--;){const f=s[o];if(typeof f=="string"){for(u=f.length;f.charCodeAt(u-1)===32;)l++,u--;if(u)break;u=-1}else if(f===-2)d=!0,l++;else if(f!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const f={type:n===e.length||d||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?u:r.start._bufferIndex+u,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const nW={42:Ln,43:Ln,45:Ln,48:Ln,49:Ln,50:Ln,51:Ln,52:Ln,53:Ln,54:Ln,55:Ln,56:Ln,57:Ln,62:ON},rW={91:az},sW={[-2]:$m,[-1]:$m,32:$m},iW={35:hz,42:nf,45:[Aw,nf],60:yz,61:Aw,95:nf,96:_w,126:_w},oW={38:DN,92:LN},aW={[-5]:qm,[-4]:qm,[-3]:qm,33:Dz,38:DN,42:hg,60:[BV,Sz],91:Bz,92:[dz,LN],93:Qy,95:hg,96:GV},uW={null:[hg,Jz]},lW={null:[42,95]},cW={null:[]},dW=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:lW,contentInitial:rW,disable:cW,document:nW,flow:iW,flowInitial:sW,insideSpan:uW,string:oW,text:aW},Symbol.toStringTag,{value:"Module"}));function fW(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},o=[];let u=[],l=[];const d={attempt:W(D),check:W(M),consume:N,enter:S,exit:R,interrupt:W(M,{interrupt:!0})},f={code:null,containerState:{},defineSkip:w,events:[],now:_,parser:e,previous:null,sliceSerialize:b,sliceStream:E,write:m};let h=t.tokenize.call(f,d);return t.resolveAll&&o.push(t),f;function m(ee){return u=fr(u,ee),A(),u[u.length-1]!==null?[]:(H(t,0),f.events=Ky(o,f.events,f),f.events)}function b(ee,oe){return pW(E(ee),oe)}function E(ee){return hW(u,ee)}function _(){const{_bufferIndex:ee,_index:oe,line:ie,column:ne,offset:me}=r;return{_bufferIndex:ee,_index:oe,line:ie,column:ne,offset:me}}function w(ee){s[ee.line]=ee.column,J()}function A(){let ee;for(;r._index<u.length;){const oe=u[r._index];if(typeof oe=="string")for(ee=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===ee&&r._bufferIndex<oe.length;)T(oe.charCodeAt(r._bufferIndex));else T(oe)}}function T(ee){h=h(ee)}function N(ee){ze(ee)?(r.line++,r.column=1,r.offset+=ee===-3?2:1,J()):ee!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=ee}function S(ee,oe){const ie=oe||{};return ie.type=ee,ie.start=_(),f.events.push(["enter",ie,f]),l.push(ie),ie}function R(ee){const oe=l.pop();return oe.end=_(),f.events.push(["exit",oe,f]),oe}function D(ee,oe){H(ee,oe.from)}function M(ee,oe){oe.restore()}function W(ee,oe){return ie;function ie(ne,me,de){let ae,$,fe,I;return Array.isArray(ne)?X(ne):"tokenize"in ne?X([ne]):U(ne);function U(_e){return te;function te(xe){const Ie=xe!==null&&_e[xe],Oe=xe!==null&&_e.null,We=[...Array.isArray(Ie)?Ie:Ie?[Ie]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return X(We)(xe)}}function X(_e){return ae=_e,$=0,_e.length===0?de:O(_e[$])}function O(_e){return te;function te(xe){return I=se(),fe=_e,_e.partial||(f.currentConstruct=_e),_e.name&&f.parser.constructs.disable.null.includes(_e.name)?Pe():_e.tokenize.call(oe?Object.assign(Object.create(f),oe):f,d,Ee,Pe)(xe)}}function Ee(_e){return ee(fe,I),me}function Pe(_e){return I.restore(),++$<ae.length?O(ae[$]):de}}}function H(ee,oe){ee.resolveAll&&!o.includes(ee)&&o.push(ee),ee.resolve&&es(f.events,oe,f.events.length-oe,ee.resolve(f.events.slice(oe),f)),ee.resolveTo&&(f.events=ee.resolveTo(f.events,f))}function se(){const ee=_(),oe=f.previous,ie=f.currentConstruct,ne=f.events.length,me=Array.from(l);return{from:ne,restore:de};function de(){r=ee,f.previous=oe,f.currentConstruct=ie,f.events.length=ne,l=me,J()}}function J(){r.line in s&&r.column<2&&(r.column=s[r.line],r.offset+=s[r.line]-1)}}function hW(e,t){const n=t.start._index,r=t.start._bufferIndex,s=t.end._index,o=t.end._bufferIndex;let u;if(n===s)u=[e[n].slice(r,o)];else{if(u=e.slice(n,s),r>-1){const l=u[0];typeof l=="string"?u[0]=l.slice(r):u.shift()}o>0&&u.push(e[s].slice(0,o))}return u}function pW(e,t){let n=-1;const r=[];let s;for(;++n<e.length;){const o=e[n];let u;if(typeof o=="string")u=o;else switch(o){case-5:{u="\r";break}case-4:{u=` 301`;break}case-3:{u=`\r 302`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(o)}s=o===-2,r.push(u)}return r.join("")}function mW(e){const r={constructs:TV([dW,...(e||{}).extensions||[]]),content:s(RV),defined:[],document:s(IV),flow:s(Gz),lazy:{},string:s(Zz),text:s(eW)};return r;function s(o){return u;function u(l){return fW(r,o,l)}}}function gW(e){for(;!MN(e););return e}const Nw=/[\0\t\n\r]/g;function yW(){let e=1,t="",n=!0,r;return s;function s(o,u,l){const d=[];let f,h,m,b,E;
vendor: 19,099 bytes, lines 302-306
302for(o=t+(typeof o=="string"?o.toString():new TextDecoder(u||void 0).decode(o)),m=0,t="",n&&(o.charCodeAt(0)===65279&&m++,n=void 0);m<o.length;){if(Nw.lastIndex=m,f=Nw.exec(o),b=f&&f.index!==void 0?f.index:o.length,E=o.charCodeAt(b),!f){t=o.slice(m);break}if(E===10&&m===b&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),m<b&&(d.push(o.slice(m,b)),e+=b-m),E){case 0:{d.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,d.push(-2);e++<h;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}m=b+1}return l&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const bW=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xW(e){return e.replace(bW,EW)}function EW(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),o=s===120||s===88;return IN(n.slice(o?2:1),o?16:10)}return Yy(n)||e}const VN={}.hasOwnProperty;function vW(e,t,n){return typeof t!="string"&&(n=t,t=void 0),TW(n)(gW(mW(n).document().write(yW()(e,t,!0))))}function TW(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(lt),autolinkProtocol:se,autolinkEmail:se,atxHeading:o(Cn),blockQuote:o(Oe),characterEscape:se,characterReference:se,codeFenced:o(We),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:o(We,u),codeText:o(Fe,u),codeTextData:se,data:se,codeFlowValue:se,definition:o(st),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:o(dt),hardBreakEscape:o(xn),hardBreakTrailing:o(xn),htmlFlow:o(St,u),htmlFlowData:se,htmlText:o(St,u),htmlTextData:se,image:o(je),label:u,link:o(lt),listItem:o(an),listItemValue:b,listOrdered:o(Gt,m),listUnordered:o(Gt),paragraph:o(_s),reference:O,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:o(Cn),strong:o(To),thematicBreak:o(sc)},exit:{atxHeading:d(),atxHeadingSequence:D,autolink:d(),autolinkEmail:Ie,autolinkProtocol:xe,blockQuote:d(),characterEscapeValue:J,characterReferenceMarkerHexadecimal:Pe,characterReferenceMarkerNumeric:Pe,characterReferenceValue:_e,characterReference:te,codeFenced:d(A),codeFencedFence:w,codeFencedFenceInfo:E,codeFencedFenceMeta:_,codeFlowValue:J,codeIndented:d(T),codeText:d(me),codeTextData:J,data:J,definition:d(),definitionDestinationString:R,definitionLabelString:N,definitionTitleString:S,emphasis:d(),hardBreakEscape:d(oe),hardBreakTrailing:d(oe),htmlFlow:d(ie),htmlFlowData:J,htmlText:d(ne),htmlTextData:J,image:d(ae),label:fe,labelText:$,lineEnding:ee,link:d(de),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Ee,resourceDestinationString:I,resourceTitleString:U,resource:X,setextHeading:d(H),setextHeadingLineSequence:W,setextHeadingText:M,strong:d(),thematicBreak:d()}};zN(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(re){let be={type:"root",children:[]};const He={stack:[be],tokenStack:[],config:t,enter:l,exit:f,buffer:u,resume:h,data:n},Ke=[];let Ze=-1;for(;++Ze<re.length;)if(re[Ze][1].type==="listOrdered"||re[Ze][1].type==="listUnordered")if(re[Ze][0]==="enter")Ke.push(Ze);else{const Xt=Ke.pop();Ze=s(re,Xt,Ze)}for(Ze=-1;++Ze<re.length;){const Xt=t[re[Ze][0]];VN.call(Xt,re[Ze][1].type)&&Xt[re[Ze][1].type].call(Object.assign({sliceSerialize:re[Ze][2].sliceSerialize},He),re[Ze][1])}if(He.tokenStack.length>0){const Xt=He.tokenStack[He.tokenStack.length-1];(Xt[1]||kw).call(He,void 0,Xt[0])}for(be.position={start:Ys(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:Ys(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze<t.transforms.length;)be=t.transforms[Ze](be)||be;return be}function s(re,be,He){let Ke=be-1,Ze=-1,Xt=!1,rs,Zn,Cs,wi;for(;++Ke<=He;){const Jt=re[Ke];switch(Jt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Jt[0]==="enter"?Ze++:Ze--,wi=void 0;break}case"lineEndingBlank":{Jt[0]==="enter"&&(rs&&!wi&&!Ze&&!Cs&&(Cs=Ke),wi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wi=void 0}if(!Ze&&Jt[0]==="enter"&&Jt[1].type==="listItemPrefix"||Ze===-1&&Jt[0]==="exit"&&(Jt[1].type==="listUnordered"||Jt[1].type==="listOrdered")){if(rs){let Ir=Ke;for(Zn=void 0;Ir--;){const zn=re[Ir];if(zn[1].type==="lineEnding"||zn[1].type==="lineEndingBlank"){if(zn[0]==="exit")continue;Zn&&(re[Zn][1].type="lineEndingBlank",Xt=!0),zn[1].type="lineEnding",Zn=Ir}else if(!(zn[1].type==="linePrefix"||zn[1].type==="blockQuotePrefix"||zn[1].type==="blockQuotePrefixWhitespace"||zn[1].type==="blockQuoteMarker"||zn[1].type==="listItemIndent"))break}Cs&&(!Zn||Cs<Zn)&&(rs._spread=!0),rs.end=Object.assign({},Zn?re[Zn][1].start:Jt[1].end),re.splice(Zn||Ke,0,["exit",rs,Jt[2]]),Ke++,He++}if(Jt[1].type==="listItemPrefix"){const Ir={type:"listItem",_spread:!1,start:Object.assign({},Jt[1].start),end:void 0};rs=Ir,re.splice(Ke,0,["enter",Ir,Jt[2]]),Ke++,He++,Cs=void 0,wi=!0}}}return re[be][1]._spread=Xt,He}function o(re,be){return He;function He(Ke){l.call(this,re(Ke),Ke),be&&be.call(this,Ke)}}function u(){this.stack.push({type:"fragment",children:[]})}function l(re,be,He){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([be,He||void 0]),re.position={start:Ys(be.start),end:void 0}}function d(re){return be;function be(He){re&&re.call(this,He),f.call(this,He)}}function f(re,be){const He=this.stack.pop(),Ke=this.tokenStack.pop();if(Ke)Ke[0].type!==re.type&&(be?be.call(this,re,Ke[0]):(Ke[1]||kw).call(this,re,Ke[0]));else throw new Error("Cannot close `"+re.type+"` ("+ol({start:re.start,end:re.end})+"): itâs not open");He.position.end=Ys(re.end)}function h(){return EV(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function b(re){if(this.data.expectingFirstListItemValue){const be=this.stack[this.stack.length-2];be.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function E(){const re=this.resume(),be=this.stack[this.stack.length-1];be.lang=re}function _(){const re=this.resume(),be=this.stack[this.stack.length-1];be.meta=re}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const re=this.resume(),be=this.stack[this.stack.length-1];be.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const re=this.resume(),be=this.stack[this.stack.length-1];be.value=re.replace(/(\r?\n|\r)$/g,"")}function N(re){const be=this.resume(),He=this.stack[this.stack.length-1];He.label=be,He.identifier=da(this.sliceSerialize(re)).toLowerCase()}function S(){const re=this.resume(),be=this.stack[this.stack.length-1];be.title=re}function R(){const re=this.resume(),be=this.stack[this.stack.length-1];be.url=re}function D(re){const be=this.stack[this.stack.length-1];if(!be.depth){const He=this.sliceSerialize(re).length;be.depth=He}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function W(re){const be=this.stack[this.stack.length-1];be.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function se(re){const He=this.stack[this.stack.length-1].children;let Ke=He[He.length-1];(!Ke||Ke.type!=="text")&&(Ke=Pr(),Ke.position={start:Ys(re.start),end:void 0},He.push(Ke)),this.stack.push(Ke)}function J(re){const be=this.stack.pop();be.value+=this.sliceSerialize(re),be.position.end=Ys(re.end)}function ee(re){const be=this.stack[this.stack.length-1];if(this.data.atHardBreak){const He=be.children[be.children.length-1];He.position.end=Ys(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(be.type)&&(se.call(this,re),J.call(this,re))}function oe(){this.data.atHardBreak=!0}function ie(){const re=this.resume(),be=this.stack[this.stack.length-1];be.value=re}function ne(){const re=this.resume(),be=this.stack[this.stack.length-1];be.value=re}function me(){const re=this.resume(),be=this.stack[this.stack.length-1];be.value=re}function de(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const be=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=be,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function ae(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const be=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=be,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function $(re){const be=this.sliceSerialize(re),He=this.stack[this.stack.length-2];He.label=xW(be),He.identifier=da(be).toLowerCase()}function fe(){const re=this.stack[this.stack.length-1],be=this.resume(),He=this.stack[this.stack.length-1];if(this.data.inReference=!0,He.type==="link"){const Ke=re.children;He.children=Ke}else He.alt=be}function I(){const re=this.resume(),be=this.stack[this.stack.length-1];be.url=re}function U(){const re=this.resume(),be=this.stack[this.stack.length-1];be.title=re}function X(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function Ee(re){const be=this.resume(),He=this.stack[this.stack.length-1];He.label=be,He.identifier=da(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function Pe(re){this.data.characterReferenceType=re.type}function _e(re){const be=this.sliceSerialize(re),He=this.data.characterReferenceType;let Ke;He?(Ke=IN(be,He==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ke=Yy(be);const Ze=this.stack[this.stack.length-1];Ze.value+=Ke}function te(re){const be=this.stack.pop();be.position.end=Ys(re.end)}function xe(re){J.call(this,re);const be=this.stack[this.stack.length-1];be.url=this.sliceSerialize(re)}function Ie(re){J.call(this,re);const be=this.stack[this.stack.length-1];be.url="mailto:"+this.sliceSerialize(re)}function Oe(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function Fe(){return{type:"inlineCode",value:""}}function st(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function dt(){return{type:"emphasis",children:[]}}function Cn(){return{type:"heading",depth:0,children:[]}}function xn(){return{type:"break"}}function St(){return{type:"html",value:""}}function je(){return{type:"image",title:null,url:"",alt:null}}function lt(){return{type:"link",title:null,url:"",children:[]}}function Gt(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function an(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function _s(){return{type:"paragraph",children:[]}}function To(){return{type:"strong",children:[]}}function Pr(){return{type:"text",value:""}}function sc(){return{type:"thematicBreak"}}}function Ys(e){return{line:e.line,column:e.column,offset:e.offset}}function zN(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?zN(e,r):wW(e,r)}}function wW(e,t){let n;for(n in t)if(VN.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function kw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ol({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ol({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ol({start:t.start,end:t.end})+") is still open")}function SW(e){const t=this;t.parser=n;function n(r){return vW(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function _W(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function CW(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 303`}]}function AW(e,t){const n=t.value?t.value+` 304`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function NW(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kW(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RW(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),s=Ha(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let u,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),u=e.footnoteOrder.length):u=o+1,l+=1,e.footnoteCounts.set(r,l);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,f),e.applyData(t,f)}function PW(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IW(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function WN(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=r:s.push({type:"text",value:r}),s}function OW(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return WN(e,t);const s={src:Ha(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(s.title=r.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function LW(e,t){const n={src:Ha(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function DW(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function MW(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return WN(e,t);const s={href:Ha(r.url||"")};r.title!==null&&r.title!==void 0&&(s.title=r.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function BW(e,t){const n={href:Ha(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function FW(e,t,n){const r=e.all(t),s=n?jW(n):$N(t),o={},u=[];if(typeof t.checked=="boolean"){const h=r[0];let m;h&&h.type==="element"&&h.tagName==="p"?m=h:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const h=r[l];(s||l!==0||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:` 305`}),h.type==="element"&&h.tagName==="p"&&!s?u.push(...h.children):u.push(h)}const d=r[r.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:` 306`});const f={type:"element",tagName:"li",properties:o,children:u};return e.patch(t,f),e.applyData(t,f)}function jW(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=$N(n[r])}return t}function $N(e){const t=e.spread;return t??e.children.length>1}function UW(e,t){const n={},r=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<r.length;){const u=r[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function HW(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function VW(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function zW(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WW(e,t){const n=e.all(t),r=n.shift(),s=[];if(r){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],u),s.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=ns(t.children[1]),d=th(t.children[t.children.length-1]);l&&d&&(u.position={start:l,end:d}),s.push(u)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function $W(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,l=u?u.length:t.children.length;let d=-1;const f=[];for(;++d<l;){const m=t.children[d],b={},E=u?u[d]:void 0;E&&(b.align=E);let _={type:"element",tagName:o,properties:b,children:[]};m&&(_.children=e.all(m),e.patch(m,_),_=e.applyData(m,_)),f.push(_)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,h),e.applyData(t,h)}function qW(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Rw=9,Pw=32;function YW(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),s=0;const o=[];for(;r;)o.push(Iw(t.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=n.exec(t);return o.push(Iw(t.slice(s),s>0,!1)),o.join("")}function Iw(e,t,n){let r=0,s=e.length;if(t){let o=e.codePointAt(r);for(;o===Rw||o===Pw;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(s-1);for(;o===Rw||o===Pw;)s--,o=e.codePointAt(s-1)}return s>r?e.slice(r,s):""}function KW(e,t){const n={type:"text",value:YW(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function QW(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const GW={blockquote:_W,break:CW,code:AW,delete:NW,emphasis:kW,footnoteReference:RW,heading:PW,html:IW,imageReference:OW,image:LW,inlineCode:DW,linkReference:MW,link:BW,listItem:FW,list:UW,paragraph:HW,root:VW,strong:zW,table:WW,tableCell:qW,tableRow:$W,text:KW,thematicBreak:QW,toml:Rd,yaml:Rd,definition:Rd,footnoteDefinition:Rd};function Rd(){}const qN=-1,rh=0,ul=1,Sf=2,Gy=3,Xy=4,Jy=5,Zy=6,YN=7,KN=8,Ow=typeof self=="object"?self:globalThis,XW=(e,t)=>
vendor: 4,517 bytes, lines 306-308
306{const n=(s,o)=>(e.set(o,s),s),r=s=>{if(e.has(s))return e.get(s);const[o,u]=t[s];switch(o){case rh:case qN:return n(u,s);case ul:{const l=n([],s);for(const d of u)l.push(r(d));return l}case Sf:{const l=n({},s);for(const[d,f]of u)l[r(d)]=r(f);return l}case Gy:return n(new Date(u),s);case Xy:{const{source:l,flags:d}=u;return n(new RegExp(l,d),s)}case Jy:{const l=n(new Map,s);for(const[d,f]of u)l.set(r(d),r(f));return l}case Zy:{const l=n(new Set,s);for(const d of u)l.add(r(d));return l}case YN:{const{name:l,message:d}=u;return n(new Ow[l](d),s)}case KN:return n(BigInt(u),s);case"BigInt":return n(Object(BigInt(u)),s);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:l}=new Uint8Array(u);return n(new DataView(l),u)}}return n(new Ow[o](u),s)};return r},Lw=e=>XW(new Map,e)(0),ea="",{toString:JW}={},{keys:ZW}=Object,Uu=e=>{const t=typeof e;if(t!=="object"||!e)return[rh,t];const n=JW.call(e).slice(8,-1);switch(n){case"Array":return[ul,ea];case"Object":return[Sf,ea];case"Date":return[Gy,ea];case"RegExp":return[Xy,ea];case"Map":return[Jy,ea];case"Set":return[Zy,ea];case"DataView":return[ul,n]}return n.includes("Array")?[ul,n]:n.includes("Error")?[YN,n]:[Sf,n]},Pd=([e,t])=>e===rh&&(t==="function"||t==="symbol"),e$=(e,t,n,r)=>{const s=(u,l)=>{const d=r.push(u)-1;return n.set(l,d),d},o=u=>{if(n.has(u))return n.get(u);let[l,d]=Uu(u);switch(l){case rh:{let h=u;switch(d){case"bigint":l=KN,h=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);h=null;break;case"undefined":return s([qN],u)}return s([l,h],u)}case ul:{if(d){let b=u;return d==="DataView"?b=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(u)),s([d,[...b]],u)}const h=[],m=s([l,h],u);for(const b of u)h.push(o(b));return m}case Sf:{if(d)switch(d){case"BigInt":return s([d,u.toString()],u);case"Boolean":case"Number":case"String":return s([d,u.valueOf()],u)}if(t&&"toJSON"in u)return o(u.toJSON());const h=[],m=s([l,h],u);for(const b of ZW(u))(e||!Pd(Uu(u[b])))&&h.push([o(b),o(u[b])]);return m}case Gy:return s([l,u.toISOString()],u);case Xy:{const{source:h,flags:m}=u;return s([l,{source:h,flags:m}],u)}case Jy:{const h=[],m=s([l,h],u);for(const[b,E]of u)(e||!(Pd(Uu(b))||Pd(Uu(E))))&&h.push([o(b),o(E)]);return m}case Zy:{const h=[],m=s([l,h],u);for(const b of u)(e||!Pd(Uu(b)))&&h.push(o(b));return m}}const{message:f}=u;return s([l,{name:d,message:f}],u)};return o},Dw=(e,{json:t,lossy:n}={})=>{const r=[];return e$(!(t||n),!!t,new Map,r)(e),r},Aa=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Lw(Dw(e,t)):structuredClone(e):(e,t)=>Lw(Dw(e,t));function t$(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function n$(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function r$(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||t$,r=e.options.footnoteBackLabel||n$,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const h=e.all(f),m=String(f.identifier).toUpperCase(),b=Ha(m.toLowerCase());let E=0;const _=[],w=e.footnoteCounts.get(m);for(;w!==void 0&&++E<=w;){_.length>0&&_.push({type:"text",value:" "});let N=typeof n=="string"?n:n(d,E);typeof N=="string"&&(N={type:"text",value:N}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(E>1?"-"+E:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,E),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const A=h[h.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const N=A.children[A.children.length-1];N&&N.type==="text"?N.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(..._)}else h.push(..._);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(h,!0)};e.patch(f,T),l.push(T)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Aa(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:` 307`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` 308`}]}}const QN=(function(e){if(e==null)return a$;if(typeof e=="function")return sh(e);
vendor: 4,819 bytes, lines 308-312
308if(typeof e=="object")return Array.isArray(e)?s$(e):i$(e);if(typeof e=="string")return o$(e);throw new Error("Expected function, string, or object as test")});function s$(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=QN(e[n]);return sh(r);function r(...s){let o=-1;for(;++o<t.length;)if(t[o].apply(this,s))return!0;return!1}}function i$(e){const t=e;return sh(n);function n(r){const s=r;let o;for(o in e)if(s[o]!==t[o])return!1;return!0}}function o$(e){return sh(t);function t(n){return n&&n.type===e}}function sh(e){return t;function t(n,r,s){return!!(u$(n)&&e.call(this,n,typeof r=="number"?r:void 0,s||void 0))}}function a$(){return!0}function u$(e){return e!==null&&typeof e=="object"&&"type"in e}const GN=[],l$=!0,Mw=!1,c$="skip";function d$(e,t,n,r){let s;typeof t=="function"&&typeof n!="function"?(r=n,n=t):s=t;const o=QN(s),u=r?-1:1;l(e,void 0,[])();function l(d,f,h){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const E=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(E?"<"+E+">":""))+")"})}return b;function b(){let E=GN,_,w,A;if((!t||o(d,f,h[h.length-1]||void 0))&&(E=f$(n(d,h)),E[0]===Mw))return E;if("children"in d&&d.children){const T=d;if(T.children&&E[0]!==c$)for(w=(r?T.children.length:-1)+u,A=h.concat(T);w>-1&&w<T.children.length;){const N=T.children[w];if(_=l(N,w,A)(),_[0]===Mw)return _;w=typeof _[1]=="number"?_[1]:w+u}}return E}}}function f$(e){return Array.isArray(e)?e:typeof e=="number"?[l$,e]:e==null?GN:[e]}function e1(e,t,n,r){let s,o,u;typeof t=="function"&&typeof n!="function"?(o=void 0,u=t,s=n):(o=t,u=n,s=r),d$(e,o,l,s);function l(d,f){const h=f[f.length-1],m=h?h.children.indexOf(d):void 0;return u(d,m,h)}}const pg={}.hasOwnProperty,h$={};function p$(e,t){const n=t||h$,r=new Map,s=new Map,o=new Map,u={...GW,...n.handlers},l={all:f,applyData:g$,definitionById:r,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:u,one:d,options:n,patch:m$,wrap:b$};return e1(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const m=h.type==="definition"?r:s,b=String(h.identifier).toUpperCase();m.has(b)||m.set(b,h)}}),l;function d(h,m){const b=h.type,E=l.handlers[b];if(pg.call(l.handlers,b)&&E)return E(l,h,m);if(l.options.passThrough&&l.options.passThrough.includes(b)){if("children"in h){const{children:w,...A}=h,T=Aa(A);return T.children=l.all(h),T}return Aa(h)}return(l.options.unknownHandler||y$)(l,h,m)}function f(h){const m=[];if("children"in h){const b=h.children;let E=-1;for(;++E<b.length;){const _=l.one(b[E],h);if(_){if(E&&b[E-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=Bw(_.value)),!Array.isArray(_)&&_.type==="element")){const w=_.children[0];w&&w.type==="text"&&(w.value=Bw(w.value))}Array.isArray(_)?m.push(..._):m.push(_)}}}return m}}function m$(e,t){e.position&&(t.position=JH(e))}function g$(e,t){let n=t;if(e&&e.data){const r=e.data.hName,s=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const u="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:u}}n.type==="element"&&o&&Object.assign(n.properties,Aa(o)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function y$(e,t){const n=t.data||{},r="value"in t&&!(pg.call(n,"hProperties")||pg.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function b$(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 309`});++r<e.length;)r&&n.push({type:"text",value:` 310`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 311`}),n}function Bw(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Fw(e,t){const n=p$(e,t),r=n.one(e,void 0),s=r$(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&o.children.push({type:"text",value:` 312`},s),o}function x$(e,t){return e&&"run"in e?async function(n,r){const s=Fw(n,{file:r,...t});await e.run(s,r)}:function(n,r){return Fw(n,{file:r,...e||t})}}function jw(e){if(e)throw e}var Ym,Uw;function E$(){if(Uw)return Ym;Uw=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},o=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var h=e.call(f,"constructor"),m=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!h&&!m)return!1;var b;for(b in f);return typeof b>"u"||e.call(f,b)},u=function(f,h){n&&h.name==="__proto__"?n(f,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):f[h.name]=h.newValue}
vendor: 8,505 bytes, line 312
312,l=function(f,h){if(h==="__proto__")if(e.call(f,h)){if(r)return r(f,h).value}else return;return f[h]};return Ym=function d(){var f,h,m,b,E,_,w=arguments[0],A=1,T=arguments.length,N=!1;for(typeof w=="boolean"&&(N=w,w=arguments[1]||{},A=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});A<T;++A)if(f=arguments[A],f!=null)for(h in f)m=l(w,h),b=l(f,h),w!==b&&(N&&b&&(o(b)||(E=s(b)))?(E?(E=!1,_=m&&s(m)?m:[]):_=m&&o(m)?m:{},u(w,{name:h,newValue:d(N,_,b)})):typeof b<"u"&&u(w,{name:h,newValue:b}));return w},Ym}var v$=E$();const Km=Ml(v$);function mg(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function T$(){const e=[],t={run:n,use:r};return t;function n(...s){let o=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);l(null,...s);function l(d,...f){const h=e[++o];let m=-1;if(d){u(d);return}for(;++m<s.length;)(f[m]===null||f[m]===void 0)&&(f[m]=s[m]);s=f,h?w$(h,l)(...f):u(null,...f)}}function r(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function w$(e,t){let n;return r;function r(...u){const l=e.length>u.length;let d;l&&u.push(s);try{d=e.apply(this,u)}catch(f){const h=f;if(l&&n)throw h;return s(h)}l||(d&&d.then&&typeof d.then=="function"?d.then(o,s):d instanceof Error?s(d):o(d))}function s(u,...l){n||(n=!0,t(u,...l))}function o(u){s(null,u)}}const Fr={basename:S$,dirname:_$,extname:C$,join:A$,sep:"/"};function S$(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');tc(e);let n=0,r=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else r<0&&(o=!0,r=s+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,l=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else u<0&&(o=!0,u=s+1),l>-1&&(e.codePointAt(s)===t.codePointAt(l--)?l<0&&(r=s):(l=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function _$(e){if(tc(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function C$(e){tc(e);let t=e.length,n=-1,r=0,s=-1,o=0,u;for(;t--;){const l=e.codePointAt(t);if(l===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),l===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||n<0||o===0||o===1&&s===n-1&&s===r+1?"":e.slice(s,n)}function A$(...e){let t=-1,n;for(;++t<e.length;)tc(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":N$(n)}function N$(e){tc(e);const t=e.codePointAt(0)===47;let n=k$(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function k$(e,t){let n="",r=0,s=-1,o=0,u=-1,l,d;for(;++u<=e.length;){if(u<e.length)l=e.codePointAt(u);else{if(l===47)break;l=47}if(l===47){if(!(s===u-1||o===1))if(s!==u-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),s=u,o=0;continue}}else if(n.length>0){n="",r=0,s=u,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(s+1,u):n=e.slice(s+1,u),r=u-s-1;s=u,o=0}else l===46&&o>-1?o++:o=-1}return n}function tc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const R$={cwd:P$};function P$(){return"/"}function gg(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function I$(e){if(typeof e=="string")e=new URL(e);else if(!gg(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return O$(e)}function O$(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const Qm=["history","path","basename","stem","extname","dirname"];class XN{constructor(t){let n;t?gg(t)?n={path:t}:typeof t=="string"||L$(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":R$.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Qm.length;){const o=Qm[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let s;for(s in n)Qm.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?Fr.basename(this.path):void 0}set basename(t){Xm(t,"basename"),Gm(t,"basename"),this.path=Fr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Fr.dirname(this.path):void 0}set dirname(t){Hw(this.basename,"dirname"),this.path=Fr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Fr.extname(this.path):void 0}set extname(t){if(Gm(t,"extname"),Hw(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){gg(t)&&(t=I$(t)),Xm(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Fr.basename(this.path,this.extname):void 0}set stem(t){Xm(t,"stem"),Gm(t,"stem"),this.path=Fr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const s=this.message(t,n,r);throw s.fatal=!0,s}info(t,n,r){const s=this.message(t,n,r);return s.fatal=void 0,s}message(t,n,r){const s=new yn(t,n,r);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Gm(e,t){if(e&&e.includes(Fr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fr.sep+"`")}function Xm(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Hw(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function L$(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const D$=(function(e){const r=this.constructor.prototype,s=r[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),M$={}.hasOwnProperty;class t1 extends D${constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=T$()}copy(){const t=new t1;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Km(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(e0("data",this.frozen),this.namespace[t]=n,this):M$.call(this.namespace,t)&&this.namespace[t]||void 0:t?(e0("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const s=n.call(t,...r);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Id(t),r=this.parser||this.Parser;return Jm("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Jm("process",this.parser||this.Parser),Zm("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(o,u){const l=Id(t),d=r.parse(l);r.run(d,l,function(h,m,b){if(h||!m||!b)return f(h);const E=m,_=r.stringify(E,b);j$(_)?b.value=_:b.result=_,f(h,b)});function f(h,m){h||!m?u(h):o?o(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),Jm("processSync",this.parser||this.Parser),Zm("processSync",this.compiler||this.Compiler),this.process(t,s),zw("processSync","process",n),r;function s(o,u){n=!0,jw(o),r=u}}
vendor: 11,326 bytes, lines 312-313
312run(t,n,r){Vw(t),this.freeze();const s=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(u,l){const d=Id(n);s.run(t,d,f);function f(h,m,b){const E=m||t;h?l(h):u?u(E):r(void 0,E,b)}}}runSync(t,n){let r=!1,s;return this.run(t,n,o),zw("runSync","run",r),s;function o(u,l){jw(u),s=l,r=!0}}stringify(t,n){this.freeze();const r=Id(n),s=this.compiler||this.Compiler;return Zm("stringify",s),Vw(t),s(t,r)}use(t,...n){const r=this.attachers,s=this.namespace;if(e0("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[h,...m]=f;d(h,m)}else u(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function u(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(f.plugins),f.settings&&(s.settings=Km(!0,s.settings,f.settings))}function l(f){let h=-1;if(f!=null)if(Array.isArray(f))for(;++h<f.length;){const m=f[h];o(m)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,h){let m=-1,b=-1;for(;++m<r.length;)if(r[m][0]===f){b=m;break}if(b===-1)r.push([f,...h]);else if(h.length>0){let[E,..._]=h;const w=r[b][1];mg(w)&&mg(E)&&(E=Km(!0,w,E)),r[b]=[f,E,..._]}}}}const B$=new t1().freeze();function Jm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Zm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function e0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Vw(e){if(!mg(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zw(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Id(e){return F$(e)?e:new XN(e)}function F$(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function j$(e){return typeof e=="string"||U$(e)}function U$(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const H$="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ww=[],$w={allowDangerousHtml:!0},V$=/^(https?|ircs?|mailto|xmpp)$/i,z$=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function W$(e){const t=$$(e),n=q$(e);return Y$(t.runSync(t.parse(n),n),e)}function $$(e){const t=e.rehypePlugins||Ww,n=e.remarkPlugins||Ww,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$w}:$w;return B$().use(SW).use(n).use(x$,r).use(t)}function q$(e){const t=e.children||"",n=new XN;return typeof t=="string"&&(n.value=t),n}function Y$(e,t){const n=t.allowedElements,r=t.allowElement,s=t.components,o=t.disallowedElements,u=t.skipHtml,l=t.unwrapDisallowed,d=t.urlTransform||K$;for(const h of z$)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+H$+h.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),e1(e,f),rV(e,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function f(h,m,b){if(h.type==="raw"&&b&&typeof m=="number")return u?b.children.splice(m,1):b.children[m]={type:"text",value:h.value},m;if(h.type==="element"){let E;for(E in Wm)if(Object.hasOwn(Wm,E)&&Object.hasOwn(h.properties,E)){const _=h.properties[E],w=Wm[E];(w===null||w.includes(h.tagName))&&(h.properties[E]=d(String(_||""),E,h))}}if(h.type==="element"){let E=n?!n.includes(h.tagName):o?o.includes(h.tagName):!1;if(!E&&r&&typeof m=="number"&&(E=!r(h,m,b)),E&&b&&typeof m=="number")return l&&h.children?b.children.splice(m,1,...h.children):b.children.splice(m,1),m}}}function K$(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||r!==-1&&t>r||V$.test(e.slice(0,t))?e:""}const qw=/[#.]/g;function Q$(e,t){const n=e||"",r={};let s=0,o,u;for(;s<n.length;){qw.lastIndex=s;const l=qw.exec(n),d=n.slice(s,l?l.index:n.length);d&&(o?o==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:u=d,s+=d.length),l&&(o=l[0],s++)}return{type:"element",tagName:u||t||"div",properties:r,children:[]}}function JN(e,t,n){const r=n?Z$(n):void 0;function s(o,u,...l){let d;if(o==null){d={type:"root",children:[]};const f=u;l.unshift(f)}else{d=Q$(o,t);const f=d.tagName.toLowerCase(),h=r?r.get(f):void 0;if(d.tagName=h||f,G$(u))l.unshift(u);else for(const[m,b]of Object.entries(u))X$(e,d.properties,m,b)}for(const f of l)yg(d.children,f);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return s}function G$(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const s=t[r];if(s&&typeof s=="object"){if(!Array.isArray(s))return!0;const o=s;for(const u of o)if(typeof u!="number"&&typeof u!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function X$(e,t,n,r){const s=eh(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?s.spaceSeparated?o=dw(r):s.commaSeparated?o=ow(r):s.commaOrSpaceSeparated?o=dw(ow(r).join(" ")):o=Yw(s,s.property,r):Array.isArray(r)?o=[...r]:o=s.property==="style"?J$(r):String(r);if(Array.isArray(o)){const u=[];for(const l of o)u.push(Yw(s,s.property,l));o=u}s.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[s.property]=o}}function yg(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)yg(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?yg(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Yw(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Nl(n)===Nl(t)))return!0}return n}function J$(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Z$(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const eq=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],tq=JN(ec,"div"),nq=JN(vi,"g",eq);function rq(e){const t=String(e),n=[];return{toOffset:s,toPoint:r};function r(o){if(typeof o=="number"&&o>-1&&o<=t.length){let u=0;for(;;){let l=n[u];if(l===void 0){const d=Kw(t,n[u-1]);l=d===-1?t.length+1:d+1,n[u]=l}if(l>o)return{line:u+1,column:o-(u>0?n[u-1]:0)+1,offset:o};u++}}}function s(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length<o.line;){const l=n[n.length-1],d=Kw(t,l),f=d===-1?t.length+1:d+1;if(l===f)break;n.push(f)}const u=(o.line>1?n[o.line-2]:0)+o.column-1;if(u<n[o.line-1])return u}}}function Kw(e,t){const n=e.indexOf("\r",t),r=e.indexOf(` 313`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const qi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ZN={}.hasOwnProperty,sq=Object.prototype;function iq(e,t){const n=t||{};return n1({file:n.file||void 0,location:!1,schema:n.space==="svg"?vi:ec,verbose:n.verbose||!1},e)}function n1(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},rf(e,r,n),n}case"#document":case"#document-fragment":{const r=t,s="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:ek(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const o=String(e.file),u=rq(o),l=u.toPoint(0),d=u.toPoint(o.length);n.position={start:l,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},rf(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},rf(e,r,n),n}default:return n=oq(e,t),n}}function ek(e,t){let n=-1;const r=[];for(;++n<t.length;){const s=n1(e,t[n]);r.push(s)}return r}function oq(e,t){const n=e.schema;e.schema=t.namespaceURI===qi.svg?vi:ec;let r=-1;const s={};for(;++r<t.attrs.length;){const l=t.attrs[r],d=(l.prefix?l.prefix+":":"")+l.name;ZN.call(sq,d)||(s[d]=l.value)}const u=(e.schema.space==="svg"?nq:tq)(t.tagName,s,ek(e,t.childNodes));if(rf(e,t,u),u.tagName==="template"){const l=t,d=l.sourceCodeLocation,f=d&&d.startTag&&aa(d.startTag),h=d&&d.endTag&&aa(d.endTag),m=n1(e,l.content);f&&h&&e.file&&(m.position={start:f.end,end:h.start}),u.content=m}return e.schema=n,u}function rf(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=aq(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function aq(e,t,n){const r=aa(n);if(t.type==="element"){const s=t.children[t.children.length-1];if(r&&!n.endTag&&s&&s.position&&s.position.end&&(r.end=Object.assign({},s.position.end)),e.verbose){const o={};let u;if(n.attrs)for(u in n.attrs)ZN.call(n.attrs,u)&&(o[eh(e.schema,u).property]=aa(n.attrs[u]));n.startTag;const l=aa(n.startTag),d=n.endTag?aa(n.endTag):void 0,f={opening:l};d&&(f.closing=d),f.properties=o,t.data={position:f}}}return r}function aa(e){const t=Qw({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Qw({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Qw(e){return e.line&&e.column?e:void 0}const Gw={}.hasOwnProperty;function tk(e,t){const n=t||{};
vendor: 4,593 bytes, line 313
313function r(s,...o){let u=r.invalid;const l=r.handlers;if(s&&Gw.call(s,e)){const d=String(s[e]);u=Gw.call(l,d)?l[d]:r.unknown}if(u)return u.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const uq={},lq={}.hasOwnProperty,nk=tk("type",{handlers:{root:dq,element:gq,text:pq,comment:mq,doctype:hq}});function cq(e,t){const r=(t||uq).space;return nk(e,r==="svg"?vi:ec)}function dq(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=r1(e.children,n,t),Va(e,n),n}function fq(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=r1(e.children,n,t),Va(e,n),n}function hq(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Va(e,t),t}function pq(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Va(e,t),t}function mq(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Va(e,t),t}function gq(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=vi);const s=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&lq.call(e.properties,o)){const d=yq(r,o,e.properties[o]);d&&s.push(d)}}const u=r.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:qi[u],childNodes:[],parentNode:null};return l.childNodes=r1(e.children,l,r),Va(e,l),e.tagName==="template"&&e.content&&(l.content=fq(e.content,r)),l}function yq(e,t,n){const r=eh(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?yN(n):_N(n));const s={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=s.name.indexOf(":");o<0?s.prefix="":(s.name=s.name.slice(o+1),s.prefix=r.attribute.slice(0,o)),s.namespace=qi[r.space]}return s}function r1(e,t,n){let r=-1;const s=[];if(e)for(;++r<e.length;){const o=nk(e[r],n);o.parentNode=t,s.push(o)}return s}function Va(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const bq=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],xq=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Et="�";var P;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(P||(P={}));const On={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function rk(e){return e>=55296&&e<=57343}function Eq(e){return e>=56320&&e<=57343}function vq(e,t){return(e-55296)*1024+9216+t}function sk(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ik(e){return e>=64976&&e<=65007||xq.has(e)}var Z;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invali
vendor: 6,668 bytes, line 313
313dFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Z||(Z={}));const Tq=65536;class wq{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Tq,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:s,offset:o}=this,u=s+n,l=o+n;return{code:t,startLine:r,endLine:r,startCol:u,endCol:u,startOffset:l,endOffset:l}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Eq(n))return this.pos++,this._addGap(),vq(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,P.EOF;return this._err(Z.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;const r=this.html.charCodeAt(n);return r===P.CARRIAGE_RETURN?P.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;let t=this.html.charCodeAt(this.pos);return t===P.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,P.LINE_FEED):t===P.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,rk(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===P.LINE_FEED||t===P.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){sk(t)?this._err(Z.controlCharacterInInputStream):ik(t)&&this._err(Z.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ge;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ge||(Ge={}));function ok(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Sq=new Uint16Array('
vendor: 16,129 bytes, line 313
313áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,294 bytes, line 313
313ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 313
313astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
313'.split("").map(e=>e.charCodeAt(0))),_q=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Cq(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=_q.get(e))!==null&&t!==void 0?t:e}var Qt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Qt||(Qt={}));const Aq=32;var ci;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ci||(ci={}));function bg(e){return e>=Qt.ZERO&&e<=Qt.NINE}function Nq(e){return e>=Qt.UPPER_A&&e<=Qt.UPPER_F||e>=Qt.LOWER_A&&e<=Qt.LOWER_F}function kq(e){return e>=Qt.UPPER_A&&e<=Qt.UPPER_Z||e>=Qt.LOWER_A&&e<=Qt.LOWER_Z||bg(e)}function Rq(e){return e===Qt.EQUALS||kq(e)}var $t;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})($t||($t={}));var ys;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ys||(ys={}));class Pq{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=$t.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ys.Strict}startEntity(t){this.decodeMode=t,this.state=$t.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case $t.EntityStart:return t.charCodeAt(n)===Qt.NUM?(this.state=$t.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=$t.NamedEntity,this.stateNamedEntity(t,n));case $t.NumericStart:return this.stateNumericStart(t,n);case $t.NumericDecimal:return this.stateNumericDecimal(t,n);case $t.NumericHex:return this.stateNumericHex(t,n);case $t.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Aq)===Qt.LOWER_X?(this.state=$t.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=$t.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,s){if(n!==r){const o=r-n;this.result=this.result*Math.pow(s,o)+Number.parseInt(t.substr(n,o),s),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(bg(s)||Nq(s))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(bg(s))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;
vendor: 4,112 bytes, line 313
313if(t===Qt.SEMI)this.consumed+=1;else if(this.decodeMode===ys.Strict)return 0;return this.emitCodePoint(Cq(this.result),this.consumed),this.errors&&(t!==Qt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let s=r[this.treeIndex],o=(s&ci.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=Iq(r,s,this.treeIndex+Math.max(1,o),u),this.treeIndex<0)return this.result===0||this.decodeMode===ys.Attribute&&(o===0||Rq(u))?0:this.emitNotTerminatedNamedEntity();if(s=r[this.treeIndex],o=(s&ci.VALUE_LENGTH)>>14,o!==0){if(u===Qt.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==ys.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,s=(r[n]&ci.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~ci.VALUE_LENGTH:s[t+1],r),n===3&&this.emitCodePoint(s[t+2],r),r}end(){var t;switch(this.state){case $t.NamedEntity:return this.result!==0&&(this.decodeMode!==ys.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case $t.NumericDecimal:return this.emitNumericEntity(0,2);case $t.NumericHex:return this.emitNumericEntity(0,3);case $t.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case $t.EntityStart:return 0}}}function Iq(e,t,n,r){const s=(t&ci.BRANCH_LENGTH)>>7,o=t&ci.JUMP_TABLE;if(s===0)return o!==0&&r===o?n:-1;if(o){const d=r-o;return d<0||d>=s?-1:e[n+d]-1}let u=n,l=u+s-1;for(;u<=l;){const d=u+l>>>1,f=e[d];if(f<r)u=d+1;else if(f>r)l=d-1;else return e[d+s]}return-1}var le;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(le||(le={}));var so;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(so||(so={}));var hr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(hr||(hr={}));var K;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="str
313ike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(K||(K={}));var y;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(y||(y={}));const Oq=new Map([[K.A,y.A],[K.ADDRESS,y.ADDRESS],[K.ANNOTATION_XML,y.ANNOTATION_XML],[K.APPLET,y.APPLET],[K.AREA,y.AREA],[K.ARTICLE,y.ARTICLE],[K.ASIDE,y.ASIDE],[K.B,y.B],[K.BASE,y.BASE],[K.BASEFONT,y.BASEFONT],[K.BGSOUND,y.BGSOUND],[K.BIG,y.BIG],[K.BLOCKQUOTE,y.BLOCKQUOTE],[K.BODY,y.BODY],[K.BR,y.BR],[K.BUTTON,y.BUTTON],[K.CAPTION,y.CAPTION],[K.CENTER,y.CENTER],[K.CODE,y.CODE],[K.COL,y.COL],[K.COLGROUP,y.COLGROUP],[K.DD,y.DD],[K.DESC,y.DESC],[K.DETAILS,y.DETAILS],[K.DIALOG,y.DIALOG],[K.DIR,y.DIR],[K.DIV,y.DIV],[K.DL,y.DL],[K.DT,y.DT],[K.EM,y.EM],[K.EMBED,y.EMBED],[K.FIELDSET,y.FIELDSET],[K.FIGCAPTION,y.FIGCAPTION],[K.FIGURE,y.FIGURE],[K.FONT,y.FONT],[K.FOOTER,y.FOOTER],[K.FOREIGN_OBJECT,y.FOREIGN_OBJECT],[K.FORM,y.FORM],[K.FRAME,y.FRAME],[K.FRAMESET,y.FRAMESET],[K.H1,y.H1],[K.H2,y.H2],[K.H3,y.H3],[K.H4,y.H4],[K.H5,y.H5],[K.H6,y.H6],[K.HEAD,y.HEAD],[K.HEADER,y.HEADER],[K.HGROUP,y.HGROUP],[K.HR,y.HR],[K.HTML,y.HTML],[K.I,y.I],[K.IMG,y.IMG],[K.IMAGE,y.IMAGE],[K.INPUT,y.INPUT],[K.IFRAME,y.IFRAME],[K.KEYGEN,y.KEYGEN],[K.LABEL,y.LABEL],[K.LI,y.LI],[K.LINK,y.L
vendor: 15,343 bytes, line 313
313INK],[K.LISTING,y.LISTING],[K.MAIN,y.MAIN],[K.MALIGNMARK,y.MALIGNMARK],[K.MARQUEE,y.MARQUEE],[K.MATH,y.MATH],[K.MENU,y.MENU],[K.META,y.META],[K.MGLYPH,y.MGLYPH],[K.MI,y.MI],[K.MO,y.MO],[K.MN,y.MN],[K.MS,y.MS],[K.MTEXT,y.MTEXT],[K.NAV,y.NAV],[K.NOBR,y.NOBR],[K.NOFRAMES,y.NOFRAMES],[K.NOEMBED,y.NOEMBED],[K.NOSCRIPT,y.NOSCRIPT],[K.OBJECT,y.OBJECT],[K.OL,y.OL],[K.OPTGROUP,y.OPTGROUP],[K.OPTION,y.OPTION],[K.P,y.P],[K.PARAM,y.PARAM],[K.PLAINTEXT,y.PLAINTEXT],[K.PRE,y.PRE],[K.RB,y.RB],[K.RP,y.RP],[K.RT,y.RT],[K.RTC,y.RTC],[K.RUBY,y.RUBY],[K.S,y.S],[K.SCRIPT,y.SCRIPT],[K.SEARCH,y.SEARCH],[K.SECTION,y.SECTION],[K.SELECT,y.SELECT],[K.SOURCE,y.SOURCE],[K.SMALL,y.SMALL],[K.SPAN,y.SPAN],[K.STRIKE,y.STRIKE],[K.STRONG,y.STRONG],[K.STYLE,y.STYLE],[K.SUB,y.SUB],[K.SUMMARY,y.SUMMARY],[K.SUP,y.SUP],[K.TABLE,y.TABLE],[K.TBODY,y.TBODY],[K.TEMPLATE,y.TEMPLATE],[K.TEXTAREA,y.TEXTAREA],[K.TFOOT,y.TFOOT],[K.TD,y.TD],[K.TH,y.TH],[K.THEAD,y.THEAD],[K.TITLE,y.TITLE],[K.TR,y.TR],[K.TRACK,y.TRACK],[K.TT,y.TT],[K.U,y.U],[K.UL,y.UL],[K.SVG,y.SVG],[K.VAR,y.VAR],[K.WBR,y.WBR],[K.XMP,y.XMP]]);function za(e){var t;return(t=Oq.get(e))!==null&&t!==void 0?t:y.UNKNOWN}const pe=y,Lq={[le.HTML]:new Set([pe.ADDRESS,pe.APPLET,pe.AREA,pe.ARTICLE,pe.ASIDE,pe.BASE,pe.BASEFONT,pe.BGSOUND,pe.BLOCKQUOTE,pe.BODY,pe.BR,pe.BUTTON,pe.CAPTION,pe.CENTER,pe.COL,pe.COLGROUP,pe.DD,pe.DETAILS,pe.DIR,pe.DIV,pe.DL,pe.DT,pe.EMBED,pe.FIELDSET,pe.FIGCAPTION,pe.FIGURE,pe.FOOTER,pe.FORM,pe.FRAME,pe.FRAMESET,pe.H1,pe.H2,pe.H3,pe.H4,pe.H5,pe.H6,pe.HEAD,pe.HEADER,pe.HGROUP,pe.HR,pe.HTML,pe.IFRAME,pe.IMG,pe.INPUT,pe.LI,pe.LINK,pe.LISTING,pe.MAIN,pe.MARQUEE,pe.MENU,pe.META,pe.NAV,pe.NOEMBED,pe.NOFRAMES,pe.NOSCRIPT,pe.OBJECT,pe.OL,pe.P,pe.PARAM,pe.PLAINTEXT,pe.PRE,pe.SCRIPT,pe.SECTION,pe.SELECT,pe.SOURCE,pe.STYLE,pe.SUMMARY,pe.TABLE,pe.TBODY,pe.TD,pe.TEMPLATE,pe.TEXTAREA,pe.TFOOT,pe.TH,pe.THEAD,pe.TITLE,pe.TR,pe.TRACK,pe.UL,pe.WBR,pe.XMP]),[le.MATHML]:new Set([pe.MI,pe.MO,pe.MN,pe.MS,pe.MTEXT,pe.ANNOTATION_XML]),[le.SVG]:new Set([pe.TITLE,pe.FOREIGN_OBJECT,pe.DESC]),[le.XLINK]:new Set,[le.XML]:new Set,[le.XMLNS]:new Set},xg=new Set([pe.H1,pe.H2,pe.H3,pe.H4,pe.H5,pe.H6]);K.STYLE,K.SCRIPT,K.XMP,K.IFRAME,K.NOEMBED,K.NOFRAMES,K.PLAINTEXT;var L;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(L||(L={}));const It={DATA:L.DATA,RCDATA:L.RCDATA,RAWTEXT:L.RAWTEXT,SCRIPT_DATA:L.SCRIPT_DATA,PLAINTEXT:L.PLAINTEXT,CDATA_SECTION:L.CDATA_SECTION};function Dq(e){return e>=P.DIGIT_0&&e<=P.DIGIT_9}function Xu(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_Z}function Mq(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_Z}function Js(e){return Mq(e)||Xu(e)}function Xw(e){return Js(e)||Dq(e)}function Od(e){return e+32}function ak(e){return e===P.SPACE||e===P.LINE_FEED||e===P.TABULATION||e===P.FORM_FEED}function Jw(e){return ak(e)||e===P.SOLIDUS||e===P.GREATER_THAN_SIGN}function Bq(e){return e===P.NULL?Z.nullCharacterReference:e>1114111?Z.characterReferenceOutsideUnicodeRange:rk(e)?Z.surrogateCharacterReference:ik(e)?Z.noncharacterCharacterReference:sk(e)||e===P.CARRIAGE_RETURN?Z.controlCharacterReference:null}class Fq{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=L.DATA,this.returnState=L.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new wq(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Pq(Sq,(r,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Z.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Z.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const s=Bq(r);s&&this._err(s,1)}}:void 0)}_err(t,n=0){var r,s;(s=(r=this.handler).onParseError)===null||s===void 0||s.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ge.START_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ge.END_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ge.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ge.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(ok(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const s=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Z.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=za(t.tagName),t.type===Ge.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Z.endTagWithAttributes),t.selfClosing&&this._err(Z.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ge.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ge.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ge.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ge.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=ak(t)?Ge.WHITESPACE_CHARACTER:t===P.NULL?Ge.NULL_CHARACTER:Ge.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ge.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=L.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ys.Attribute:ys.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===L.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case L.DATA:{this._stateData(t);break}case L.RCDATA:{this._stateRcdata(t);break}case L.RAWTEXT:{this._stateRawtext(t);break}case L.SCRIPT_DATA:{this._stateScriptData(t);break}case L.PLAINTEXT:{this._statePlaintext(t);break}case L.TAG_OPEN:{this._stateTagOpen(t);break}case L.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case L.TAG_NAME:{this._stateTagName(t);break}case L.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case L.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case L.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case L.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case L.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case L.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case L.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case L.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case L.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case L.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case L.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case L.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case L.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case L.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscape
vendor: 4,304 bytes, line 313
313Start(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case L.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case L.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case L.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case L.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case L.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case L.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case L.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case L.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case L.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case L.BOGUS_COMMENT:{this._stateBogusComment(t);break}case L.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case L.COMMENT_START:{this._stateCommentStart(t);break}case L.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case L.COMMENT:{this._stateComment(t);break}case L.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case L.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case L.COMMENT_END:{this._stateCommentEnd(t);break}case L.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case L.DOCTYPE:{this._stateDoctype(t);break}case L.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case L.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case L.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case L.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case L.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case L.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case L.CDATA_SECTION:{this._stateCdataSection(t);break}case L.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case L.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case L.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case L.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=L.TAG_OPEN;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this._emitCodePoint(t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case P.AMPERSAND:{this._startCharacterReference();break}case P.LESS_THAN_SIGN:{this.state=L.RCDATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Et);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case P.LESS_THAN_SIGN:{this.state=L.RAWTEXT_LESS_THAN_SIGN;break}
vendor: 4,742 bytes, line 313
313case P.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Et);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Et);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case P.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Et);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Js(t))this._createStartTagToken(),this.state=L.TAG_NAME,this._stateTagName(t);else switch(t){case P.EXCLAMATION_MARK:{this.state=L.MARKUP_DECLARATION_OPEN;break}case P.SOLIDUS:{this.state=L.END_TAG_OPEN;break}case P.QUESTION_MARK:{this._err(Z.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t);break}case P.EOF:{this._err(Z.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Z.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=L.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Js(t))this._createEndTagToken(),this.state=L.TAG_NAME,this._stateTagName(t);else switch(t){case P.GREATER_THAN_SIGN:{this._err(Z.missingEndTagName),this.state=L.DATA;break}case P.EOF:{this._err(Z.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Z.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=L.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(Z.unexpectedNullCharacter),n.tagName+=Et;break}case P.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Xu(t)?Od(t):t)}}_stateRcdataLessThanSign(t){t===P.SOLIDUS?this.state=L.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Js(t)?(this.state=L.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=L.BEFORE_ATTRIBUTE_NAME,!1;case P.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=L.SELF_CLOSING_START_TAG,!1;case P.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=L.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===P.SOLIDUS?this.state=L.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Js(t)?(this.state=L.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case P.SOLIDUS:{this.state=L.SCRIPT_DATA_END_TAG_OPEN;break}case P.EXCLAMATION_MARK:{this.state=L.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=L.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Js(t)?(this.state=L.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===P.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===P.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}
vendor: 4,520 bytes, line 313
313case P.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Et);break}case P.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(Et);break}case P.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(Et);break}case P.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===P.SOLIDUS?this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Js(t)?(this._emitChars("<"),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Js(t)?(this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(On.SCRIPT,!1)&&Jw(this.preprocessor.peek(On.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<On.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Et);break}case P.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Et);break}case P.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Et);break}case P.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===P.SOLIDUS?(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(On.SCRIPT,!1)&&Jw(this.preprocessor.peek(On.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<On.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}
vendor: 81,924 bytes, line 313
313case P.EQUALS_SIGN:{this._err(Z.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=L.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this._leaveAttrName(),this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._leaveAttrName(),this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:{this._err(Z.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.name+=Et;break}default:this.currentAttr.name+=String.fromCodePoint(Xu(t)?Od(t):t)}}_stateAfterAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case P.EQUALS_SIGN:{this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case P.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{this.state=L.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this.state=L.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(Z.missingAttributeValue),this.state=L.DATA,this.emitCurrentTagToken();break}default:this.state=L.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case P.QUOTATION_MARK:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=Et;break}case P.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case P.APOSTROPHE:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=Et;break}case P.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=Et;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:case P.EQUALS_SIGN:case P.GRAVE_ACCENT:{this._err(Z.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case P.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this._leaveAttrValue(),this.state=L.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this._err(Z.missingWhitespaceBetweenAttributes),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case P.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=L.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this._err(Z.unexpectedSolidusInTag),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(n);break}case P.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case P.NULL:{this._err(Z.unexpectedNullCharacter),n.data+=Et;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(On.DASH_DASH,!0)?(this._createCommentToken(On.DASH_DASH.length+1),this.state=L.COMMENT_START):this._consumeSequenceIfMatch(On.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(On.DOCTYPE.length+1),this.state=L.DOCTYPE):this._consumeSequenceIfMatch(On.CDATA_START,!0)?this.inForeignNode?this.state=L.CDATA_SECTION:(this._err(Z.cdataInHtmlContent),this._createCommentToken(On.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=L.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Z.incorrectlyOpenedComment),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case P.HYPHEN_MINUS:{this.state=L.COMMENT_START_DASH;break}case P.GREATER_THAN_SIGN:{this._err(Z.abruptClosingOfEmptyComment),this.state=L.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=L.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case P.GREATER_THAN_SIGN:{this._err(Z.abruptClosingOfEmptyComment),this.state=L.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=L.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=L.COMMENT_END_DASH;break}case P.LESS_THAN_SIGN:{n.data+="<",this.state=L.COMMENT_LESS_THAN_SIGN;break}case P.NULL:{this._err(Z.unexpectedNullCharacter),n.data+=Et;break}case P.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case P.EXCLAMATION_MARK:{n.data+="!",this.state=L.COMMENT_LESS_THAN_SIGN_BANG;break}case P.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=L.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===P.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=L.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===P.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=L.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==P.GREATER_THAN_SIGN&&t!==P.EOF&&this._err(Z.nestedComment),this.state=L.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case P.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=L.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(n);break}case P.EXCLAMATION_MARK:{this.state=L.COMMENT_END_BANG;break}case P.HYPHEN_MINUS:{n.data+="-";break}case P.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=L.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{n.data+="--!",this.state=L.COMMENT_END_DASH;break}case P.GREATER_THAN_SIGN:{this._err(Z.incorrectlyClosedComment),this.state=L.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=L.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case P.EOF:{this._err(Z.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingWhitespaceBeforeDoctypeName),this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Xu(t))this._createDoctypeToken(String.fromCharCode(Od(t))),this.state=L.DOCTYPE_NAME;else switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.NULL:{this._err(Z.unexpectedNullCharacter),this._createDoctypeToken(Et),this.state=L.DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this._err(Z.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=L.DATA;break}case P.EOF:{this._err(Z.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=L.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=L.AFTER_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(n);break}case P.NULL:{this._err(Z.unexpectedNullCharacter),n.name+=Et;break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Xu(t)?Od(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(On.PUBLIC,!1)?this.state=L.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(On.SYSTEM,!1)?this.state=L.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Z.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(Z.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(Z.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(Z.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(Z.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(Z.unexpectedNullCharacter),n.publicId+=Et;break}case P.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=L.DATA;break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case P.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(Z.unexpectedNullCharacter),n.publicId+=Et;break}case P.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=L.DATA;break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case P.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(n);break}case P.QUOTATION_MARK:{this._err(Z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(Z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=L.DATA;break}case P.QUOTATION_MARK:{n.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(Z.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(Z.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(Z.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(Z.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(Z.unexpectedNullCharacter),n.systemId+=Et;break}case P.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=L.DATA;break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case P.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(Z.unexpectedNullCharacter),n.systemId+=Et;break}case P.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=L.DATA;break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=L.DATA;break}case P.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=L.DATA;break}case P.NULL:{this._err(Z.unexpectedNullCharacter);break}case P.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case P.RIGHT_SQUARE_BRACKET:{this.state=L.CDATA_SECTION_BRACKET;break}case P.EOF:{this._err(Z.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===P.RIGHT_SQUARE_BRACKET?this.state=L.CDATA_SECTION_END:(this._emitChars("]"),this.state=L.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case P.GREATER_THAN_SIGN:{this.state=L.DATA;break}case P.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=L.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(P.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Xw(this.preprocessor.peek(1))?L.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Xw(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===P.SEMICOLON&&this._err(Z.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const uk=new Set([y.DD,y.DT,y.LI,y.OPTGROUP,y.OPTION,y.P,y.RB,y.RP,y.RT,y.RTC]),Zw=new Set([...uk,y.CAPTION,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]),_f=new Set([y.APPLET,y.CAPTION,y.HTML,y.MARQUEE,y.OBJECT,y.TABLE,y.TD,y.TEMPLATE,y.TH]),jq=new Set([..._f,y.OL,y.UL]),Uq=new Set([..._f,y.BUTTON]),e2=new Set([y.ANNOTATION_XML,y.MI,y.MN,y.MO,y.MS,y.MTEXT]),t2=new Set([y.DESC,y.FOREIGN_OBJECT,y.TITLE]),Hq=new Set([y.TR,y.TEMPLATE,y.HTML]),Vq=new Set([y.TBODY,y.TFOOT,y.THEAD,y.TEMPLATE,y.HTML]),zq=new Set([y.TABLE,y.TEMPLATE,y.HTML]),Wq=new Set([y.TD,y.TH]);class $q{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=y.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===y.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===le.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const s=this._indexOf(t)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,r),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==le.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(xg,le.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Wq,le.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(zq,le.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Vq,le.HTML)}clearBackToTableRowContext(){this.clearBackTo(Hq,le.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===y.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===y.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const s=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case le.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case le.SVG:{if(t2.has(s))return!1;break}case le.MATHML:{if(e2.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,_f)}hasInListItemScope(t){return this.hasInDynamicScope(t,jq)}hasInButtonScope(t){return this.hasInDynamicScope(t,Uq)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case le.HTML:{if(xg.has(n))return!0;if(_f.has(n))return!1;break}case le.SVG:{if(t2.has(n))return!1;break}case le.MATHML:{if(e2.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===le.HTML)switch(this.tagIDs[n]){case t:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===le.HTML)switch(this.tagIDs[t]){case y.TBODY:case y.THEAD:case y.TFOOT:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===le.HTML)switch(this.tagIDs[n]){case t:return!0;case y.OPTION:case y.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&uk.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Zw.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Zw.has(this.currentTagId);)this.pop()}}const t0=3;var Vr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Vr||(Vr={}));const n2={type:Vr.Marker};class qq{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],s=n.length,o=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let l=0;l<this.entries.length;l++){const d=this.entries[l];if(d.type===Vr.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===o&&this.treeAdapter.getNamespaceURI(f)===u){const h=this.treeAdapter.getAttrList(f);h.length===s&&r.push({idx:l,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<t0)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<t0)return;const s=new Map(n.map(u=>[u.name,u.value]));let o=0;for(let u=0;u<r.length;u++){const l=r[u];l.attrs.every(d=>s.get(d.name)===d.value)&&(o+=1,o>=t0&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(n2)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Vr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Vr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(n2);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Vr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Vr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Vr.Element&&n.element===t)}}const Zs={createDocument(){return{nodeName:"#document",mode:hr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const s=e.childNodes.find(o=>o.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Zs.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Zs.isTextNode(n)){n.value+=t;return}}Zs.appendChild(e,Zs.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Zs.isTextNode(r)?r.value+=t:Zs.insertBefore(e,Zs.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},lk="html",Yq="about:legacy-compat",Kq="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ck=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Qq=[...ck,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Gq=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),dk=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Xq=[...dk,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function r2(e,t){return t.some(n=>e.startsWith(n))}function Jq(e){return e.name===lk&&e.publicId===null&&(e.systemId===null||e.systemId===Yq)}function Zq(e){if(e.name!==lk)return hr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Kq)return hr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Gq.has(n))return hr.QUIRKS;let r=t===null?Qq:ck;if(r2(n,r))return hr.QUIRKS;if(r=t===null?dk:Xq,r2(n,r))return hr.LIMITED_QUIRKS}return hr.NO_QUIRKS}const s2={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},eY="definitionurl",tY="definitionURL",nY=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),rY=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:le.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:le.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:le.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:le.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:le.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:le.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:le.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:le.XML}],["xml:space",{prefix:"xml",name:"space",namespace:le.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:le.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:le.XMLNS}]]),sY=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),iY=new Set([y.B,y.BIG,y.BLOCKQUOTE,y.BODY,y.BR,y.CENTER,y.CODE,y.DD,y.DIV,y.DL,y.DT,y.EM,y.EMBED,y.H1,y.H2,y.H3,y.H4,y.H5,y.H6,y.HEAD,y.HR,y.I,y.IMG,y.LI,y.LISTING,y.MENU,y.META,y.NOBR,y.OL,y.P,y.PRE,y.RUBY,y.S,y.SMALL,y.SPAN,y.STRONG,y.STRIKE,y.SUB,y.SUP,y.TABLE,y.TT,y.U,y.UL,y.VAR]);function oY(e){const t=e.tagID;return t===y.FONT&&e.attrs.some(({name:r})=>r===so.COLOR||r===so.SIZE||r===so.FACE)||iY.has(t)}function fk(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===eY){e.attrs[t].name=tY;break}}function hk(e){for(let t=0;t<e.attrs.length;t++){const n=nY.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function s1(e){for(let t=0;t<e.attrs.length;t++){const n=rY.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function aY(e){const t=sY.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=za(e.tagName))}function uY(e,t){return t===le.MATHML&&(e===y.MI||e===y.MO||e===y.MN||e===y.MS||e===y.MTEXT)}function lY(e,t,n){if(t===le.MATHML&&e===y.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===so.ENCODING){const s=n[r].value.toLowerCase();return s===s2.TEXT_HTML||s===s2.APPLICATION_XML}}return t===le.SVG&&(e===y.FOREIGN_OBJECT||e===y.DESC||e===y.TITLE)}function cY(e,t,n,r){return(!r||r===le.HTML)&&lY(e,t,n)||(!r||r===le.MATHML)&&uY(e,t)}const dY="hidden",fY=8,hY=3;var F;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(F||(F={}));const pY={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},pk=new Set([y.TABLE,y.TBODY,y.TFOOT,y.THEAD,y.TR]),i2={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Zs,onParseError:null};class o2{constructor(t,n,r=null,s=null){this.fragmentContext=r,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=F.INITIAL,this.originalInsertionMode=F.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...i2,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Fq(this.options,this),this.activeFormattingElements=new qq(this.treeAdapter),this.fragmentContextID=r?za(this.treeAdapter.getTagName(r)):y.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new $q(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...i2,...n};t??(t=r.treeAdapter.createElement(K.TEMPLATE,le.HTML,[]));const s=r.treeAdapter.createElement("documentmock",le.HTML,[]),o=new this(r,s,t);return o.fragmentContextID===y.TEMPLATE&&o.tmplInsertionModeStack.unshift(F.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var s;if(!this.onParseError)return;const o=(s=t.location)!==null&&s!==void 0?s:pY,u={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:r?o.startLine:o.endLine,endCol:r?o.startCol:o.endCol,endOffset:r?o.startOffset:o.endOffset};this.onParseError(u)}onItemPush(t,n,r){var s,o;(o=(s=this.treeAdapter).onItemPush)===null||o===void 0||o.call(s,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(r=this.treeAdapter).onItemPop)===null||s===void 0||s.call(r,t,this.openElements.current),n){let o,u;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,u=this.fragmentContextID):{current:o,currentTagId:u}=this.openElements,this._setContextModes(o,u)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===le.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,le.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=F.TEXT}switchToPlaintextParsing(){this.insertionMode=F.TEXT,this.originalInsertionMode=F.IN_BODY,this.tokenizer.state=It.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===K.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==le.HTML))switch(this.fragmentContextID){case y.TITLE:case y.TEXTAREA:{this.tokenizer.state=It.RCDATA;break}case y.STYLE:case y.XMP:case y.IFRAME:case y.NOEMBED:case y.NOFRAMES:case y.NOSCRIPT:{this.tokenizer.state=It.RAWTEXT;break}case y.SCRIPT:{this.tokenizer.state=It.SCRIPT_DATA;break}case y.PLAINTEXT:{this.tokenizer.state=It.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,s),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,le.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,le.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(K.HTML,le.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,y.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const s=this.treeAdapter.getChildNodes(n),o=r?s.lastIndexOf(r):s.length,u=s[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:d,endCol:f,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:d,endCol:f,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,s=this.treeAdapter.getTagName(t),o=n.type===Ge.END_TAG&&s===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===y.SVG&&this.treeAdapter.getTagName(n)===K.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===le.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===y.MGLYPH||t.tagID===y.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,le.HTML)}_processToken(t){switch(t.type){case Ge.CHARACTER:{this.onCharacter(t);break}case Ge.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ge.COMMENT:{this.onComment(t);break}case Ge.DOCTYPE:{this.onDoctype(t);break}case Ge.START_TAG:{this._processStartTag(t);break}case Ge.END_TAG:{this.onEndTag(t);break}case Ge.EOF:{this.onEof(t);break}case Ge.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const s=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return cY(t,s,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===Vr.Marker||this.openElements.contains(s.element)),r=n===-1?t-1:n-1;for(let s=r;s>=0;s--){const o=this.activeFormattingElements.entries[s];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=F.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(y.P),this.openElements.popUntilTagNamePopped(y.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case y.TR:{this.insertionMode=F.IN_ROW;return}case y.TBODY:case y.THEAD:case y.TFOOT:{this.insertionMode=F.IN_TABLE_BODY;return}case y.CAPTION:{this.insertionMode=F.IN_CAPTION;return}case y.COLGROUP:{this.insertionMode=F.IN_COLUMN_GROUP;return}case y.TABLE:{this.insertionMode=F.IN_TABLE;return}case y.BODY:{this.insertionMode=F.IN_BODY;return}case y.FRAMESET:{this.insertionMode=F.IN_FRAMESET;return}case y.SELECT:{this._resetInsertionModeForSelect(t);return}case y.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case y.HTML:{this.insertionMode=this.headElement?F.AFTER_HEAD:F.BEFORE_HEAD;return}case y.TD:case y.TH:{if(t>0){this.insertionMode=F.IN_CELL;return}break}case y.HEAD:{if(t>0){this.insertionMode=F.IN_HEAD;return}break}}this.insertionMode=F.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===y.TEMPLATE)break;if(r===y.TABLE){this.insertionMode=F.IN_SELECT_IN_TABLE;return}}this.insertionMode=F.IN_SELECT}_isElementCausesFosterParenting(t){return pk.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case y.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===le.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case y.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Lq[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){WK(this,t);return}switch(this.insertionMode){case F.INITIAL:{Hu(this,t);break}case F.BEFORE_HTML:{ll(this,t);break}case F.BEFORE_HEAD:{cl(this,t);break}case F.IN_HEAD:{dl(this,t);break}case F.IN_HEAD_NO_SCRIPT:{fl(this,t);break}case F.AFTER_HEAD:{hl(this,t);break}case F.IN_BODY:case F.IN_CAPTION:case F.IN_CELL:case F.IN_TEMPLATE:{gk(this,t);break}case F.TEXT:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{n0(this,t);break}case F.IN_TABLE_TEXT:{Tk(this,t);break}case F.IN_COLUMN_GROUP:{Cf(this,t);break}case F.AFTER_BODY:{Af(this,t);break}case F.AFTER_AFTER_BODY:{sf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zK(this,t);return}switch(this.insertionMode){case F.INITIAL:{Hu(this,t);break}case F.BEFORE_HTML:{ll(this,t);break}case F.BEFORE_HEAD:{cl(this,t);break}case F.IN_HEAD:{dl(this,t);break}case F.IN_HEAD_NO_SCRIPT:{fl(this,t);break}case F.AFTER_HEAD:{hl(this,t);break}case F.TEXT:{this._insertCharacters(t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{n0(this,t);break}case F.IN_COLUMN_GROUP:{Cf(this,t);break}case F.AFTER_BODY:{Af(this,t);break}case F.AFTER_AFTER_BODY:{sf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Eg(this,t);return}switch(this.insertionMode){case F.INITIAL:case F.BEFORE_HTML:case F.BEFORE_HEAD:case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:case F.IN_BODY:case F.IN_TABLE:case F.IN_CAPTION:case F.IN_COLUMN_GROUP:case F.IN_TABLE_BODY:case F.IN_ROW:case F.IN_CELL:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:case F.IN_TEMPLATE:case F.IN_FRAMESET:case F.AFTER_FRAMESET:{Eg(this,t);break}case F.IN_TABLE_TEXT:{Vu(this,t);break}case F.AFTER_BODY:{vY(this,t);break}case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{TY(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case F.INITIAL:{wY(this,t);break}case F.BEFORE_HEAD:case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:{this._err(t,Z.misplacedDoctype);break}case F.IN_TABLE_TEXT:{Vu(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Z.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?$K(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case F.INITIAL:{Hu(this,t);break}case F.BEFORE_HTML:{SY(this,t);break}case F.BEFORE_HEAD:{CY(this,t);break}case F.IN_HEAD:{Rr(this,t);break}case F.IN_HEAD_NO_SCRIPT:{kY(this,t);break}case F.AFTER_HEAD:{PY(this,t);break}case F.IN_BODY:{bn(this,t);break}case F.IN_TABLE:{Na(this,t);break}case F.IN_TABLE_TEXT:{Vu(this,t);break}case F.IN_CAPTION:{AK(this,t);break}case F.IN_COLUMN_GROUP:{a1(this,t);break}case F.IN_TABLE_BODY:{ah(this,t);break}case F.IN_ROW:{uh(this,t);break}case F.IN_CELL:{RK(this,t);break}case F.IN_SELECT:{_k(this,t);break}case F.IN_SELECT_IN_TABLE:{IK(this,t);break}case F.IN_TEMPLATE:{LK(this,t);break}case F.AFTER_BODY:{MK(this,t);break}case F.IN_FRAMESET:{BK(this,t);break}case F.AFTER_FRAMESET:{jK(this,t);break}case F.AFTER_AFTER_BODY:{HK(this,t);break}case F.AFTER_AFTER_FRAMESET:{VK(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?qK(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case F.INITIAL:{Hu(this,t);break}case F.BEFORE_HTML:{_Y(this,t);break}case F.BEFORE_HEAD:{AY(this,t);break}case F.IN_HEAD:{NY(this,t);break}case F.IN_HEAD_NO_SCRIPT:{RY(this,t);break}case F.AFTER_HEAD:{IY(this,t);break}case F.IN_BODY:{oh(this,t);break}case F.TEXT:{yK(this,t);break}case F.IN_TABLE:{Rl(this,t);break}case F.IN_TABLE_TEXT:{Vu(this,t);break}case F.IN_CAPTION:{NK(this,t);break}case F.IN_COLUMN_GROUP:{kK(this,t);break}case F.IN_TABLE_BODY:{vg(this,t);break}case F.IN_ROW:{Sk(this,t);break}case F.IN_CELL:{PK(this,t);break}case F.IN_SELECT:{Ck(this,t);break}case F.IN_SELECT_IN_TABLE:{OK(this,t);break}case F.IN_TEMPLATE:{DK(this,t);break}case F.AFTER_BODY:{Nk(this,t);break}case F.IN_FRAMESET:{FK(this,t);break}case F.AFTER_FRAMESET:{UK(this,t);break}case F.AFTER_AFTER_BODY:{sf(this,t);break}}}onEof(t){switch(this.insertionMode){case F.INITIAL:{Hu(this,t);break}case F.BEFORE_HTML:{ll(this,t);break}case F.BEFORE_HEAD:{cl(this,t);break}case F.IN_HEAD:{dl(this,t);break}case F.IN_HEAD_NO_SCRIPT:{fl(this,t);break}case F.AFTER_HEAD:{hl(this,t);break}case F.IN_BODY:case F.IN_TABLE:case F.IN_CAPTION:case F.IN_COLUMN_GROUP:case F.IN_TABLE_BODY:case F.IN_ROW:case F.IN_CELL:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:{Ek(this,t);break}case F.TEXT:{bK(this,t);break}case F.IN_TABLE_TEXT:{Vu(this,t);break}case F.IN_TEMPLATE:{Ak(this,t);break}case F.AFTER_BODY:case F.IN_FRAMESET:case F.AFTER_FRAMESET:case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{o1(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===P.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:case F.TEXT:case F.IN_COLUMN_GROUP:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:case F.IN_FRAMESET:case F.AFTER_FRAMESET:{this._insertCharacters(t);break}case F.IN_BODY:case F.IN_CAPTION:case F.IN_CELL:case F.IN_TEMPLATE:case F.AFTER_BODY:case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{mk(this,t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{n0(this,t);break}case F.IN_TABLE_TEXT:{vk(this,t);break}}}}function mY(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):xk(e,t),n}function gY(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const s=e.openElements.items[r];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[r])&&(n=s)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function yY(e,t,n){let r=t,s=e.openElements.getCommonAncestor(t);for(let o=0,u=s;u!==n;o++,u=s){s=e.openElements.getCommonAncestor(u);const l=e.activeFormattingElements.getElementEntry(u),d=l&&o>=hY;!l||d?(d&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(u)):(u=bY(e,l),r===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(u,r),r=u)}return r}function bY(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function xY(e,t,n){const r=e.treeAdapter.getTagName(t),s=za(r);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);s===y.TEMPLATE&&o===le.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function EY(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,o=e.treeAdapter.createElement(s.tagName,r,s.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,s.tagID)}function i1(e,t){for(let n=0;n<fY;n++){const r=mY(e,t);if(!r)break;const s=gY(e,r);if(!s)break;e.activeFormattingElements.bookmark=r;const o=yY(e,s,r.element),u=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),u&&xY(e,u,o),EY(e,s,r)}}function Eg(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function vY(e,t){e._appendCommentNode(t,e.openElements.items[0])}function TY(e,t){e._appendCommentNode(t,e.document)}function o1(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(r);if(s&&!s.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(o);u&&!u.endTag&&e._setEndLocation(o,t)}}}}function wY(e,t){e._setDocumentType(t);const n=t.forceQuirks?hr.QUIRKS:Zq(t);Jq(t)||e._err(t,Z.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=F.BEFORE_HTML}function Hu(e,t){e._err(t,Z.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,hr.QUIRKS),e.insertionMode=F.BEFORE_HTML,e._processToken(t)}function SY(e,t){t.tagID===y.HTML?(e._insertElement(t,le.HTML),e.insertionMode=F.BEFORE_HEAD):ll(e,t)}function _Y(e,t){const n=t.tagID;(n===y.HTML||n===y.HEAD||n===y.BODY||n===y.BR)&&ll(e,t)}function ll(e,t){e._insertFakeRootElement(),e.insertionMode=F.BEFORE_HEAD,e._processToken(t)}function CY(e,t){switch(t.tagID){case y.HTML:{bn(e,t);break}case y.HEAD:{e._insertElement(t,le.HTML),e.headElement=e.openElements.current,e.insertionMode=F.IN_HEAD;break}default:cl(e,t)}}function AY(e,t){const n=t.tagID;n===y.HEAD||n===y.BODY||n===y.HTML||n===y.BR?cl(e,t):e._err(t,Z.endTagWithoutMatchingOpenElement)}function cl(e,t){e._insertFakeElement(K.HEAD,y.HEAD),e.headElement=e.openElements.current,e.insertionMode=F.IN_HEAD,e._processToken(t)}function Rr(e,t){switch(t.tagID){case y.HTML:{bn(e,t);break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:{e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.TITLE:{e._switchToTextParsing(t,It.RCDATA);break}case y.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,It.RAWTEXT):(e._insertElement(t,le.HTML),e.insertionMode=F.IN_HEAD_NO_SCRIPT);break}case y.NOFRAMES:case y.STYLE:{e._switchToTextParsing(t,It.RAWTEXT);break}case y.SCRIPT:{e._switchToTextParsing(t,It.SCRIPT_DATA);break}case y.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=F.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(F.IN_TEMPLATE);break}case y.HEAD:{e._err(t,Z.misplacedStartTagForHeadElement);break}default:dl(e,t)}}function NY(e,t){switch(t.tagID){case y.HEAD:{e.openElements.pop(),e.insertionMode=F.AFTER_HEAD;break}case y.BODY:case y.BR:case y.HTML:{dl(e,t);break}case y.TEMPLATE:{vo(e,t);break}default:e._err(t,Z.endTagWithoutMatchingOpenElement)}}function vo(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==y.TEMPLATE&&e._err(t,Z.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Z.endTagWithoutMatchingOpenElement)}function dl(e,t){e.openElements.pop(),e.insertionMode=F.AFTER_HEAD,e._processToken(t)}function kY(e,t){switch(t.tagID){case y.HTML:{bn(e,t);break}case y.BASEFONT:case y.BGSOUND:case y.HEAD:case y.LINK:case y.META:case y.NOFRAMES:case y.STYLE:{Rr(e,t);break}case y.NOSCRIPT:{e._err(t,Z.nestedNoscriptInHead);break}default:fl(e,t)}}function RY(e,t){switch(t.tagID){case y.NOSCRIPT:{e.openElements.pop(),e.insertionMode=F.IN_HEAD;break}case y.BR:{fl(e,t);break}default:e._err(t,Z.endTagWithoutMatchingOpenElement)}}function fl(e,t){const n=t.type===Ge.EOF?Z.openElementsLeftAfterEof:Z.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=F.IN_HEAD,e._processToken(t)}function PY(e,t){switch(t.tagID){case y.HTML:{bn(e,t);break}case y.BODY:{e._insertElement(t,le.HTML),e.framesetOk=!1,e.insertionMode=F.IN_BODY;break}case y.FRAMESET:{e._insertElement(t,le.HTML),e.insertionMode=F.IN_FRAMESET;break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{e._err(t,Z.abandonedHeadElementChild),e.openElements.push(e.headElement,y.HEAD),Rr(e,t),e.openElements.remove(e.headElement);break}case y.HEAD:{e._err(t,Z.misplacedStartTagForHeadElement);break}default:hl(e,t)}}function IY(e,t){switch(t.tagID){case y.BODY:case y.HTML:case y.BR:{hl(e,t);break}case y.TEMPLATE:{vo(e,t);break}default:e._err(t,Z.endTagWithoutMatchingOpenElement)}}function hl(e,t){e._insertFakeElement(K.BODY,y.BODY),e.insertionMode=F.IN_BODY,ih(e,t)}function ih(e,t){switch(t.type){case Ge.CHARACTER:{gk(e,t);break}case Ge.WHITESPACE_CHARACTER:{mk(e,t);break}case Ge.COMMENT:{Eg(e,t);break}case Ge.START_TAG:{bn(e,t);break}case Ge.END_TAG:{oh(e,t);break}case Ge.EOF:{Ek(e,t);break}}}function mk(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function gk(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function OY(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function LY(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function DY(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,le.HTML),e.insertionMode=F.IN_FRAMESET)}function MY(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML)}function BY(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&xg.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,le.HTML)}function FY(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function jY(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),n||(e.formElement=e.openElements.current))}function UY(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const s=e.openElements.tagIDs[r];if(n===y.LI&&s===y.LI||(n===y.DD||n===y.DT)&&(s===y.DD||s===y.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==y.ADDRESS&&s!==y.DIV&&s!==y.P&&e._isSpecialElement(e.openElements.items[r],s))break}e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML)}function HY(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.tokenizer.state=It.PLAINTEXT}function VY(e,t){e.openElements.hasInScope(y.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.framesetOk=!1}function zY(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(K.A);n&&(i1(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function WY(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $Y(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(y.NOBR)&&(i1(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function qY(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function YY(e,t){e.treeAdapter.getDocumentMode(e.document)!==hr.QUIRKS&&e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.framesetOk=!1,e.insertionMode=F.IN_TABLE}function yk(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,le.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function bk(e){const t=ok(e,so.TYPE);return t!=null&&t.toLowerCase()===dY}function KY(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,le.HTML),bk(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function QY(e,t){e._appendElement(t,le.HTML),t.ackSelfClosing=!0}function GY(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._appendElement(t,le.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function XY(e,t){t.tagName=K.IMG,t.tagID=y.IMG,yk(e,t)}function JY(e,t){e._insertElement(t,le.HTML),e.skipNextNewLine=!0,e.tokenizer.state=It.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=F.TEXT}function ZY(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,It.RAWTEXT)}function eK(e,t){e.framesetOk=!1,e._switchToTextParsing(t,It.RAWTEXT)}function a2(e,t){e._switchToTextParsing(t,It.RAWTEXT)}function tK(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===F.IN_TABLE||e.insertionMode===F.IN_CAPTION||e.insertionMode===F.IN_TABLE_BODY||e.insertionMode===F.IN_ROW||e.insertionMode===F.IN_CELL?F.IN_SELECT_IN_TABLE:F.IN_SELECT}function nK(e,t){e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML)}function rK(e,t){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,le.HTML)}function sK(e,t){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(y.RTC),e._insertElement(t,le.HTML)}function iK(e,t){e._reconstructActiveFormattingElements(),fk(t),s1(t),t.selfClosing?e._appendElement(t,le.MATHML):e._insertElement(t,le.MATHML),t.ackSelfClosing=!0}function oK(e,t){e._reconstructActiveFormattingElements(),hk(t),s1(t),t.selfClosing?e._appendElement(t,le.SVG):e._insertElement(t,le.SVG),t.ackSelfClosing=!0}function u2(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML)}function bn(e,t){switch(t.tagID){case y.I:case y.S:case y.B:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.SMALL:case y.STRIKE:case y.STRONG:{WY(e,t);break}case y.A:{zY(e,t);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{BY(e,t);break}case y.P:case y.DL:case y.OL:case y.UL:case y.DIV:case y.DIR:case y.NAV:case y.MAIN:case y.MENU:case y.ASIDE:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.DETAILS:case y.ADDRESS:case y.ARTICLE:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{MY(e,t);break}case y.LI:case y.DD:case y.DT:{UY(e,t);break}case y.BR:case y.IMG:case y.WBR:case y.AREA:case y.EMBED:case y.KEYGEN:{yk(e,t);break}case y.HR:{GY(e,t);break}case y.RB:case y.RTC:{rK(e,t);break}case y.RT:case y.RP:{sK(e,t);break}case y.PRE:case y.LISTING:{FY(e,t);break}case y.XMP:{ZY(e,t);break}case y.SVG:{oK(e,t);break}case y.HTML:{OY(e,t);break}case y.BASE:case y.LINK:case y.META:case y.STYLE:case y.TITLE:case y.SCRIPT:case y.BGSOUND:case y.BASEFONT:case y.TEMPLATE:{Rr(e,t);break}case y.BODY:{LY(e,t);break}case y.FORM:{jY(e,t);break}case y.NOBR:{$Y(e,t);break}case y.MATH:{iK(e,t);break}case y.TABLE:{YY(e,t);break}case y.INPUT:{KY(e,t);break}case y.PARAM:case y.TRACK:case y.SOURCE:{QY(e,t);break}case y.IMAGE:{XY(e,t);break}case y.BUTTON:{VY(e,t);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{qY(e,t);break}case y.IFRAME:{eK(e,t);break}case y.SELECT:{tK(e,t);break}case y.OPTION:case y.OPTGROUP:{nK(e,t);break}case y.NOEMBED:case y.NOFRAMES:{a2(e,t);break}case y.FRAMESET:{DY(e,t);break}case y.TEXTAREA:{JY(e,t);break}case y.NOSCRIPT:{e.options.scriptingEnabled?a2(e,t):u2(e,t);break}case y.PLAINTEXT:{HY(e,t);break}case y.COL:case y.TH:case y.TD:case y.TR:case y.HEAD:case y.FRAME:case y.TBODY:case y.TFOOT:case y.THEAD:case y.CAPTION:case y.COLGROUP:break;default:u2(e,t)}}function aK(e,t){if(e.openElements.hasInScope(y.BODY)&&(e.insertionMode=F.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function uK(e,t){e.openElements.hasInScope(y.BODY)&&(e.insertionMode=F.AFTER_BODY,Nk(e,t))}function lK(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function cK(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(y.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(y.FORM):n&&e.openElements.remove(n))}function dK(e){e.openElements.hasInButtonScope(y.P)||e._insertFakeElement(K.P,y.P),e._closePElement()}function fK(e){e.openElements.hasInListItemScope(y.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(y.LI),e.openElements.popUntilTagNamePopped(y.LI))}function hK(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function pK(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function mK(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function gK(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(K.BR,y.BR),e.openElements.pop(),e.framesetOk=!1}function xk(e,t){const n=t.tagName,r=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const o=e.openElements.items[s],u=e.openElements.tagIDs[s];if(r===u&&(r!==y.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(o,u))break}}function oh(e,t){switch(t.tagID){case y.A:case y.B:case y.I:case y.S:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.NOBR:case y.SMALL:case y.STRIKE:case y.STRONG:{i1(e,t);break}case y.P:{dK(e);break}case y.DL:case y.UL:case y.OL:case y.DIR:case y.DIV:case y.NAV:case y.PRE:case y.MAIN:case y.MENU:case y.ASIDE:case y.BUTTON:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.ADDRESS:case y.ARTICLE:case y.DETAILS:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.LISTING:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{lK(e,t);break}case y.LI:{fK(e);break}case y.DD:case y.DT:{hK(e,t);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{pK(e);break}case y.BR:{gK(e);break}case y.BODY:{aK(e,t);break}case y.HTML:{uK(e,t);break}case y.FORM:{cK(e);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{mK(e,t);break}case y.TEMPLATE:{vo(e,t);break}default:xk(e,t)}}function Ek(e,t){e.tmplInsertionModeStack.length>0?Ak(e,t):o1(e,t)}function yK(e,t){var n;t.tagID===y.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function bK(e,t){e._err(t,Z.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function n0(e,t){if(e.openElements.currentTagId!==void 0&&pk.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=F.IN_TABLE_TEXT,t.type){case Ge.CHARACTER:{Tk(e,t);break}case Ge.WHITESPACE_CHARACTER:{vk(e,t);break}}else nc(e,t)}function xK(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,le.HTML),e.insertionMode=F.IN_CAPTION}function EK(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,le.HTML),e.insertionMode=F.IN_COLUMN_GROUP}function vK(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(K.COLGROUP,y.COLGROUP),e.insertionMode=F.IN_COLUMN_GROUP,a1(e,t)}function TK(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,le.HTML),e.insertionMode=F.IN_TABLE_BODY}function wK(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(K.TBODY,y.TBODY),e.insertionMode=F.IN_TABLE_BODY,ah(e,t)}function SK(e,t){e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function _K(e,t){bk(t)?e._appendElement(t,le.HTML):nc(e,t),t.ackSelfClosing=!0}function CK(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,le.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Na(e,t){switch(t.tagID){case y.TD:case y.TH:case y.TR:{wK(e,t);break}case y.STYLE:case y.SCRIPT:case y.TEMPLATE:{Rr(e,t);break}case y.COL:{vK(e,t);break}case y.FORM:{CK(e,t);break}case y.TABLE:{SK(e,t);break}case y.TBODY:case y.TFOOT:case y.THEAD:{TK(e,t);break}case y.INPUT:{_K(e,t);break}case y.CAPTION:{xK(e,t);break}case y.COLGROUP:{EK(e,t);break}default:nc(e,t)}}function Rl(e,t){switch(t.tagID){case y.TABLE:{e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode());break}case y.TEMPLATE:{vo(e,t);break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:nc(e,t)}}function nc(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ih(e,t),e.fosterParentingEnabled=n}function vk(e,t){e.pendingCharacterTokens.push(t)}function Tk(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Vu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)nc(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const wk=new Set([y.CAPTION,y.COL,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]);function AK(e,t){const n=t.tagID;wk.has(n)?e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_TABLE,Na(e,t)):bn(e,t)}function NK(e,t){const n=t.tagID;switch(n){case y.CAPTION:case y.TABLE:{e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_TABLE,n===y.TABLE&&Rl(e,t));break}case y.BODY:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:oh(e,t)}}function a1(e,t){switch(t.tagID){case y.HTML:{bn(e,t);break}case y.COL:{e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.TEMPLATE:{Rr(e,t);break}default:Cf(e,t)}}function kK(e,t){switch(t.tagID){case y.COLGROUP:{e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=F.IN_TABLE);break}case y.TEMPLATE:{vo(e,t);break}case y.COL:break;default:Cf(e,t)}}function Cf(e,t){e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=F.IN_TABLE,e._processToken(t))}function ah(e,t){switch(t.tagID){case y.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,le.HTML),e.insertionMode=F.IN_ROW;break}case y.TH:case y.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(K.TR,y.TR),e.insertionMode=F.IN_ROW,uh(e,t);break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE,Na(e,t));break}default:Na(e,t)}}function vg(e,t){const n=t.tagID;switch(t.tagID){case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE);break}case y.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE,Rl(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:case y.TR:break;default:Rl(e,t)}}function uh(e,t){switch(t.tagID){case y.TH:case y.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,le.HTML),e.insertionMode=F.IN_CELL,e.activeFormattingElements.insertMarker();break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,ah(e,t));break}default:Na(e,t)}}function Sk(e,t){switch(t.tagID){case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY);break}case y.TABLE:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,vg(e,t));break}case y.TBODY:case y.TFOOT:case y.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(y.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,vg(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:break;default:Rl(e,t)}}function RK(e,t){const n=t.tagID;wk.has(n)?(e.openElements.hasInTableScope(y.TD)||e.openElements.hasInTableScope(y.TH))&&(e._closeTableCell(),uh(e,t)):bn(e,t)}function PK(e,t){const n=t.tagID;switch(n){case y.TD:case y.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_ROW);break}case y.TABLE:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Sk(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:break;default:oh(e,t)}}function _k(e,t){switch(t.tagID){case y.HTML:{bn(e,t);break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._insertElement(t,le.HTML);break}case y.OPTGROUP:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._insertElement(t,le.HTML);break}case y.HR:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.INPUT:case y.KEYGEN:case y.TEXTAREA:case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),t.tagID!==y.SELECT&&e._processStartTag(t));break}case y.SCRIPT:case y.TEMPLATE:{Rr(e,t);break}}}function Ck(e,t){switch(t.tagID){case y.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===y.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===y.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop();break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop();break}case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode());break}case y.TEMPLATE:{vo(e,t);break}}}function IK(e,t){const n=t.tagID;n===y.CAPTION||n===y.TABLE||n===y.TBODY||n===y.TFOOT||n===y.THEAD||n===y.TR||n===y.TD||n===y.TH?(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e._processStartTag(t)):_k(e,t)}function OK(e,t){const n=t.tagID;n===y.CAPTION||n===y.TABLE||n===y.TBODY||n===y.TFOOT||n===y.THEAD||n===y.TR||n===y.TD||n===y.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ck(e,t)}function LK(e,t){switch(t.tagID){case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{Rr(e,t);break}case y.CAPTION:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.tmplInsertionModeStack[0]=F.IN_TABLE,e.insertionMode=F.IN_TABLE,Na(e,t);break}case y.COL:{e.tmplInsertionModeStack[0]=F.IN_COLUMN_GROUP,e.insertionMode=F.IN_COLUMN_GROUP,a1(e,t);break}case y.TR:{e.tmplInsertionModeStack[0]=F.IN_TABLE_BODY,e.insertionMode=F.IN_TABLE_BODY,ah(e,t);break}case y.TD:case y.TH:{e.tmplInsertionModeStack[0]=F.IN_ROW,e.insertionMode=F.IN_ROW,uh(e,t);break}default:e.tmplInsertionModeStack[0]=F.IN_BODY,e.insertionMode=F.IN_BODY,bn(e,t)}}function DK(e,t){t.tagID===y.TEMPLATE&&vo(e,t)}function Ak(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):o1(e,t)}function MK(e,t){t.tagID===y.HTML?bn(e,t):Af(e,t)}function Nk(e,t){var n;if(t.tagID===y.HTML){if(e.fragmentContext||(e.insertionMode=F.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===y.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Af(e,t)}function Af(e,t){e.insertionMode=F.IN_BODY,ih(e,t)}function BK(e,t){switch(t.tagID){case y.HTML:{bn(e,t);break}case y.FRAMESET:{e._insertElement(t,le.HTML);break}case y.FRAME:{e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.NOFRAMES:{Rr(e,t);break}}}function FK(e,t){t.tagID===y.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==y.FRAMESET&&(e.insertionMode=F.AFTER_FRAMESET))}function jK(e,t){switch(t.tagID){case y.HTML:{bn(e,t);break}case y.NOFRAMES:{Rr(e,t);break}}}function UK(e,t){t.tagID===y.HTML&&(e.insertionMode=F.AFTER_AFTER_FRAMESET)}function HK(e,t){t.tagID===y.HTML?bn(e,t):sf(e,t)}function sf(e,t){e.insertionMode=F.IN_BODY,ih(e,t)}function VK(e,t){switch(t.tagID){case y.HTML:{bn(e,t);break}case y.NOFRAMES:{Rr(e,t);break}}}function zK(e,t){t.chars=Et,e._insertCharacters(t)}function WK(e,t){e._insertCharacters(t),e.framesetOk=!1}function kk(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==le.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function $K(e,t){if(oY(t))kk(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===le.MATHML?fk(t):r===le.SVG&&(aY(t),hk(t)),s1(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function qK(e,t){if(t.tagID===y.P||t.tagID===y.BR){kk(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===le.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(r);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLe
vendor: 7,538 bytes, line 313
313ngth(n);break}}}K.AREA,K.BASE,K.BASEFONT,K.BGSOUND,K.BR,K.COL,K.EMBED,K.FRAME,K.HR,K.IMG,K.INPUT,K.KEYGEN,K.LINK,K.META,K.PARAM,K.SOURCE,K.TRACK,K.WBR;const YK=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,KK=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),l2={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Rk(e,t){const n=sQ(e),r=tk("type",{handlers:{root:QK,element:GK,text:XK,comment:Ik,doctype:JK,raw:eQ},unknown:tQ}),s={parser:n?new o2(l2):o2.getFragmentParser(void 0,l2),handle(l){r(l,s)},stitches:!1,options:t||{}};r(e,s),Wa(s,ns());const o=n?s.parser.document:s.parser.getFragment(),u=iq(o,{file:s.options.file});return s.stitches&&e1(u,"comment",function(l,d,f){const h=l;if(h.value.stitch&&f&&d!==void 0){const m=f.children;return m[d]=h.value.stitch,d}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function Pk(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function QK(e,t){Pk(e.children,t)}function GK(e,t){nQ(e,t),Pk(e.children,t),rQ(e,t)}function XK(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ge.CHARACTER,chars:e.value,location:rc(e)};Wa(t,ns(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function JK(e,t){const n={type:Ge.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:rc(e)};Wa(t,ns(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ZK(e,t){t.stitches=!0;const n=iQ(e);if("children"in e&&"children"in n){const r=Rk({type:"root",children:e.children},t.options);n.children=r.children}Ik({type:"comment",value:{stitch:n}},t)}function Ik(e,t){const n=e.value,r={type:Ge.COMMENT,data:n,location:rc(e)};Wa(t,ns(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function eQ(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Ok(t,ns(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(YK,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function tQ(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))ZK(n,t);else{let r="";throw KK.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Wa(e,t){Ok(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=It.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ok(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function nQ(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===It.PLAINTEXT)return;Wa(t,ns(e));const r=t.parser.openElements.current;let s="namespaceURI"in r?r.namespaceURI:qi.html;s===qi.html&&n==="svg"&&(s=qi.svg);const o=cq({...e,children:[]},{space:s===qi.svg?"svg":"html"}),u={type:Ge.START_TAG,tagName:n,tagID:za(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:rc(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function rQ(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&bq.includes(n)||t.parser.tokenizer.state===It.PLAINTEXT)return;Wa(t,th(e));const r={type:Ge.END_TAG,tagName:n,tagID:za(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:rc(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===It.RCDATA||t.parser.tokenizer.state===It.RAWTEXT||t.parser.tokenizer.state===It.SCRIPT_DATA)&&(t.parser.tokenizer.state=It.DATA)}function sQ(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function rc(e){const t=ns(e)||{line:void 0,column:void 0,offset:void 0},n=th(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function iQ(e){return"children"in e?Aa({...e,children:[]}):Aa(e)}function oQ(e){return function(t,n){return Rk(t,{...e,file:n})}}function Lk({title:e,url:t}){const n={twitter:`https://twitter.com/intent/tweet?text=${encodeURIComponent(e)}&url=${encodeURIComponent(t)}`,linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(t)}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(t)}`};return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("a",{href:n.twitter,target:"_blank",rel:"noopener noreferrer",className:"text-[#999] hover:text-[#1DA1F2] transition-colors","aria-label":"Share on Twitter",children:g.jsx(P2,{className:"w-3.5 h-3.5"})}),g.jsx("a",{href:n.linkedin,target:"_blank",rel:"noopener noreferrer",className:"text-[#999] hover:text-[#0A66C2] transition-colors","aria-label":"Share on LinkedIn",children:g.jsx(N2,{className:"w-3.5 h-3.5"})}),g.jsx("a",{href:n.facebook,target:"_blank",rel:"noopener noreferrer",className:"text-[#999] hover:text-[#1877F2] transition-colors","aria-label":"Share on Facebook",children:g.jsx(A2,{className:"w-3.5 h-3.5"})})]})}function aQ(){const[e]=a4(),t=e.get("id"),[n,r]=C.useState(!1),[s,o]=C.useState(null),[u,l]=C.useState(!1),[d,f]=C.useState(!1),[h,m]=C.useState(!1),b=Dg();C.useEffect(()=>{window.scrollTo(0,0)},[t]),C.useEffect(()=>{(async()=>{try{const R=await rn.auth.me();l((R==null?void 0:R.role)==="admin")}catch{l(!1)}})()},[]);const{data:E,isLoading:_}=Fl({queryKey:["insight",t],queryFn:async()=>await rn.entities.Insight.get(t),enabled:!!t});C.useEffect(()=>{E&&!s&&o(E)},[E]),C.useEffect(()=>{if(E){document.title=E.seo_meta_title||E.title;let S=document.querySelector('meta[name="description"]');S||(S=document.createElement("meta"),S.name="description",document.head.appendChild(S)),S.c
313ontent=E.seo_meta_description||E.excerpt||"";let R=document.querySelector('meta[name="keywords"]');R||(R=document.createElement("meta"),R.name="keywords",document.head.appendChild(R)),R.content=(E.seo_keywords||[]).join(", ")}},[E]);const w=async()=>{try{await rn.entities.Insight.update(t,s),b.invalidateQueries(["insight",t]),r(!1),gs.success("Changes saved successfully")}catch{gs.error("Failed to save changes")}},A=()=>{o({...E}),r(!1),f(!1)},T=()=>{o({...E}),r(!0)},N=async()=>{m(!0);try{const S=await rn.functions.invoke("publishToWordPress",{insightId:t});S.data.success?gs.success(`Article published to WordPress! View at: ${S.data.wordPressUrl}`):gs.error("Failed to publish to WordPress")}catch(S){gs.error(S.message||"Failed to publish to WordPress")}finally{m(!1)}};return _?g.jsx("div",{className:"min-h-screen bg-[var(--color-off-white)] flex items-center justify-center",children:g.jsx("div",{className:"text-[var(--color-text-body)]",children:"Loading..."})}):E?g.jsxs("div",{className:"min-h-screen bg-[#fffdf9]",children:[g.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 bg-[#fffdf9]/90 backdrop-blur-xl border-b border-black/5",children:g.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:g.jsxs("div",{className:"flex items-center justify-between h-20",children:[g.jsx(ct,{to:ot("Home"),children:g.jsx("div",{className:"h-12 md:h-14 lg:h-20 w-[190px] md:w-[240px] lg:w-[290px] overflow-hidden flex items-center",children:g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/8b1899c6a_image.png",alt:"Simple Food Ventures",className:"w-full h-auto object-contain"})})}),g.jsxs("div",{className:"flex items-center gap-3",children:[u&&!n&&g.jsxs(g.Fragment,{children:[g.jsxs(zr,{onClick:N,disabled:h,size:"sm",className:"flex items-center gap-2 bg-[var(--color-green)] hover:bg-[var(--color-green-dark)]",children:[g.jsx(IP,{className:"w-4 h-4"}),h?"Publishing...":"Publish to WordPress"]}),g.jsxs(zr,{onClick:T,variant:"outline",size:"sm",className:"flex items-center gap-2",children:[g.jsx(TP,{className:"w-4 h-4"}),"Edit"]})]}),u&&n&&g.jsxs(g.Fragment,{children:[g.jsx(zr,{onClick:()=>f(!d),variant:"outline",size:"sm",className:"flex items-center gap-2",children:d?"Edit":"Preview"}),g.jsxs(zr,{onClick:w,size:"sm",className:"flex items-center gap-2 bg-[var(--color-green)] hover:bg-[var(--color-green-dark)]",children:[g.jsx(SP,{className:"w-4 h-4"}),"Save"]}),g.jsxs(zr,{onClick:A,variant:"outline",size:"sm",className:"flex items-center gap-2",children:[g.jsx(kg,{className:"w-4 h-4"}),"Cancel"]})]}),g.jsxs(ct,{to:ot("Insights"),className:"flex items-center gap-2 text-black/40 hover:text-black/60 text-sm transition-colors",children:[g.jsx(vs,{className:"w-4 h-4"}),"Back"]})]})]})})}),g.jsx("div",{className:"pt-32 pb-20 px-6",children:g.jsxs("div",{className:"max-w-3xl mx-auto",children:[g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-8",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n&&!d?g.jsxs(Jf,{value:(s==null?void 0:s.type)||"article",onValueChange:S=>o({...s,type:S}),children:[g.jsx(Xl,{className:"w-40 border-2 border-[var(--color-green)]/30",children:g.jsx(Zf,{})}),g.jsxs(Jl,{children:[g.jsx(Fn,{value:"article",children:"Article"}),g.jsx(Fn,{value:"blog-post",children:"SFV Bites"})]})]}):g.jsx("span",{className:"text-[var(--color-text-body)] text-xs uppercase tracking-wider",children:E.type==="blog-post"?"SFV Bites":"Article"}),n&&!d?g.jsx(Bn,{type:"date",value:(s==null?void 0:s.published_date)||"",onChange:S=>o({...s,published_date:S.target.value}),className:"w-auto border-2 border-[var(--color-green)]/30"}):E.published_date&&g.jsx("span",{className:"text-[var(--color-text-muted)] text-xs font-light",children:new Date(E.published_date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),n&&!d?g.jsxs(g.Fragment,{children:[g.jsx(Bn,{value:(s==null?void 0:s.title)||"",onChange:S=>o({...s,title:S.target.value}),placeholder:"Article title",className:"text-4xl md:text-5xl font-light leading-tight mb-4 border-2 border-[var(--color-green)]/30"}),g.jsx(_l,{value:(s==null?void 0:s.excerpt)||"",onChange:S=>o({...s,excerpt:S.target.value}),placeholder:"Article excerpt",className:"text-lg font-light leading-relaxed border-2 border-[var(--color-green)]/30 min-h-[80px]"})]}):g.jsxs(g.Fragment,{children:[g.jsx("h1",{className:"text-[var(--color-dark)] text-4xl md:text-5xl font-light leading-tight mb-4",children:d?s==null?void 0:s.title:E.title}),g.jsx("p",{className:"text-[var(--color-text-body)] text-lg font-light leading-relaxed",children:d?s==null?void 0:s.excerpt:E.excerpt})]})]}),(E.image_url||n&&(s==null?void 0:s.image_url))&&g.jsx(Le.div,{initial:{opacity:0,y:20}
313,animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mb-12",children:n&&!d?g.jsxs("div",{className:"space-y-3",children:[g.jsx("label",{className:"text-sm text-[var(--color-text-muted)] block",children:"Featured Image URL:"}),g.jsx(Bn,{value:(s==null?void 0:s.image_url)||"",onChange:S=>o({...s,image_url:S.target.value}),placeholder:"https://example.com/image.jpg",className:"border-2 border-[var(--color-green)]/30"}),(s==null?void 0:s.image_url)&&g.jsx("div",{className:"overflow-hidden rounded-xl border-2 border-[var(--color-green)]/30",children:g.jsx("img",{src:s.image_url,alt:"Preview",className:"w-full h-auto object-cover",style:{imageRendering:"crisp-edges"}})})]}):g.jsx("div",{className:"overflow-hidden rounded-xl",children:g.jsx("img",{src:d?s==null?void 0:s.image_url:E.image_url,alt:d?s==null?void 0:s.title:E.title,className:"w-full h-auto object-cover",style:{imageRendering:"crisp-edges"}})})}),E.content_body&&g.jsx(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"max-w-none mb-12",children:n&&!d?g.jsxs("div",{children:[g.jsx("label",{className:"text-sm text-[var(--color-text-muted)] mb-2 block",children:"Article Content (Markdown):"}),g.jsx(_l,{value:(s==null?void 0:s.content_body)||"",onChange:S=>o({...s,content_body:S.target.value}),placeholder:"Write your article content in Markdown...",className:"min-h-[500px] font-mono text-sm border-2 border-[var(--color-green)]/30"})]}):g.jsx(W$,{rehypePlugins:[oQ],components:{h2:({children:S})=>g.jsx("h2",{className:"text-2xl font-semibold mt-8 mb-4 text-[var(--color-dark)]",children:S}),p:({children:S})=>{const R=pn.Children.map(S,D=>
313typeof D=="string"?D.split(/([¹²³â´âµâ¶â·â¸â¹]+)/g).map((W,H)=>{if(/[¹²³â´âµâ¶â·â¸â¹]/.test(W)){const se=W.split("").map(J=>"¹²³â´âµâ¶â·â¸â¹".indexOf(J)+1);return g.jsx("span",{children:se.map((J,ee)=>g.jsx("a",{href:`#footnote-${J}`,className:"text-[var(--color-green)] hover:text-[var(--color-green-dark)] font-medium no-underline",onClick:oe=>{var ie;oe.preventDefault(),(ie=document.getElementById(`footnote-${J}`))==null||ie.scrollIntoView({behavior:"smooth",block:"center"})},children:g.jsx("sup",{children:J})},ee))},H)}return W}):D);return g.jsx("p",{className:"text-[var(--color-text-body)] leading-relaxed my-3 text-base",children:R})},ul:({children:S})=>g.jsx("ul",{className:"my-4 space-y-2 ml-6 list-disc",children:S}),ol:({children:S,start:R,ordered:D,node:M})=>{let W=0;return g.jsx("ol",{className:"my-4 space-y-3 list-none",children:pn.Children.map(S,H=>pn.isValidElement(H)?(W++,g.jsxs("li",{id:`footnote-${W}`,className:"text-[var(--color-text-body)] text-sm leading-relaxed scroll-mt-32 flex",children:[g.jsxs("span",{className:"text-[var(--color-green)] hover:text-[var(--color-green-dark)] font-medium mr-2 inline-block min-w-[1.5rem]",children:[W,"."]}),g.jsx("span",{className:"flex-1",children:H.props.children})]})):H)})},li:({children:S,node:R})=>{var D;return(R==null?void 0:R.tagName)==="li"&&((D=R.parentNode)==null?void 0:D.tagName)==="ul"?g.jsx("li",{className:"text-[var(--color-text-body)] text-base leading-relaxed",children:S}):null},strong:({children:S})=>g.jsx("strong",{className:"font-semibold text-[var(--color-dark)]",children:S}),em:({children:S})=>g.jsx("em",{className:"italic",children:S}),a:({href:S,children:R})=>{if(S&&S.startsWith("#footnote-")){const D=S.replace("#footnote-","");return g.jsx("a",{id:`footnote-${D}`,href:S,className:"text-[var(--color-green)] hover:underline scroll-mt-32",children:R})}return g.jsx("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"text-[var(--color-green)] hover:underline",children:R})},img:({src:S,alt:R})=>g.jsx("img",{src:S,alt:R,className:"w-full h-auto my-6 rounded-lg"}),iframe:({node:S,...R})=>g.jsx("iframe",{...R,className:"w-full aspect-video my-6 rounded-lg"})},children:d?s==null?void 0:s.content_body:E.content_body})}),g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},className:"border-t border-black/10 pt-6 flex items-center justify-between",children:[g.jsx("span",{className:"text-[var(--color-text-body)] text-sm font-normal",children:"Share article:"}),g.jsx(Lk,{title:E.title,url:window.location.href})]})]})})]}):g.jsx("div",{className:"min-h-screen bg-[var(--color-off-white)] flex items-center justify-center",children:g.jsx("div",{className:"text-[var(--color-text-body)]",children:"Article not found."})})}const r0=12,uQ=[{id:1,title:"Bachan's $400M Exit: Why Strategics Buy Momentum When Legacy Growth Stalls",excerpt:"Bachan's acquisition is best understood not as a condiment deal, but as a capital reallocation decision by a scaled incumbent seeking to correct its growth trajectory.",content_body:`## Why Strategics Buy Momentum 314 315Bachan's $400M acquisition represents a fundamental shift in how large consumer companies approach growth. Rather than developing products internally, scaled incumbents are increasingly turning to acquisitions to correct their growth trajectories. 316 317### The Problem with Legacy Growth 318 319Many established consumer brands face a growth plateau. Their core products are mature, repeat rates are stable, but velocity has slowed. Promotional activity becomes necessary to drive sales, which erodes margins and brand perception. 320 321### Why Bachan's? 322 323Bachan's Japanese premium condiment has demonstrated: 324 325- **Sustained velocity** without heavy promotion 326- **Cultural relevance** particularly among younger consumers 327- **Multi-category expandability** beyond condiments
328- **Operating leverage** that scales efficiently 329 330For a buyer like Unilever or another incumbent, acquiring these brands is cheaper than building them internally and faster than waiting for organic growth. 331 332### The Strategic Value 333 334This isn't just about adding a SKU to a portfolio. It's about: 335 3361. **Portfolio rebalancing** - offsetting mature category performance 3372. **Consumer acquisition** - reaching new demographics 3383. **Growth narrative** - showing investors momentum and innovation 3394. **Margin accretion** - leveraging existing distribution infrastructure 340 341### What This Means for Emerging Brands 342 343The $400M exit validates our thesis: brands that demonstrate authentic velocity, cultural resonance, and operational excellence become acquisition targets. These are the companies we're looking for.`,image_url:"https://miro.medium.com/v2/resize:fit:700/1*yBPSbjiVTm4pK-Xd1y2s3w.png",featured:!0,type:"article",published_date:"2026-02-10"},{id:2,title:"Plant-based Functional Drink Mix Brand Cure Launches Rebranded Packaging",excerpt:"Cure, the functional drink mix brand celebrated for its all-natural electrolytes, launched rebranded packaging to communicate its value proposition.",content_body:`## Cure's Packaging Evolution 344 345Cure, the functional drink mix brand known for clean ingredients and natural electrolytes, recently underwent a comprehensive packaging redesign. This strategic move highlights how emerging brands use visual communication to scale beyond early adopters. 346 347### The Original Challenge 348 349Cure entered a crowded electrolyte market dominated by legacy brands. To differentiate, they needed packaging that communicated their value proposition at shelfâwithout relying on promotional pricing. 350 351### The Solution 352 353The new packaging emphasizes: 354 355- **Ingredient transparency** - clearly visible ingredient lists 356- **Better-for-you messaging** - no artificial sweeteners or colors 357- **Premium positioning** - elevated design and typography 358- **Sustainability** - recyclable and minimalist design 359 360### Why This Matters 361 362Packaging isn't just aesthetic. For emerging brands, it's a primary selling tool because: 363 3641. Consumers assess brands in seconds at shelf 3652. Premium packaging justifies premium pricing 3663. Visual consistency builds brand recognition 3674. Sustainability appeals to health-conscious consumers 368 369### Market Response 370 371Since the redesign, Cure has expanded distribution and maintained strong turns at shelfâvalidating that positioning matters as much as the product itself. 372 373### The Broader Lesson 374 375Emerging brands that invest in visual communication and packaging design often outperform those that don't. It's a signal of brand maturity and operational excellence.`,image_url:"https://images.unsplash.com/photo-1544145945-f90425340c7e?w=800&q=80",featured:!1,type:"blog-post",published_date:"2023-10-20"},{id:3,title:"The Rise of Better-for-You Consumer Brands",excerpt:"How health-conscious consumer trends are reshaping the food and beverage industry landscape.",content_body:`## The Secular Shift to Better-for-You 376 377The consumer packaged goods industry is experiencing a fundamental realignment. Traditional categories are fragmenting as consumers increasingly demand products that align with their values around health, wellness, and sustainability. 378 379### The Data 380 381Over the past decade: 382 383- Better-for-you categories have grown 2-3x faster than traditional categories 384- Millennial and Gen Z consumers spend 30% more on functional/health-focused products 385- Legacy brands have lost shelf share in nearly every CPG category 386- Emerging brands have captured disproportionate growth 387 388### Why It's Happening 389 390**Consumer education**: Today's consumers understand nutrition, ingredients, and health impacts. They're making informed choices. 391 392**Supply chain transparency**: Social media and review platforms hold brands accountable for their claims. 393 394**Authentic brand building**: Emerging brands tell better stories because they actually live their values. 395 396**Occasion expansion**: "Healthy" products are no longer confined to niche sectionsâthey're becoming mainstream across occasions. 397 398### The Winners 399 400Brands succeeding in this environment share common traits: 401 4021. **Clean ingredients** - no artificial additives or preservatives 4032. **Transparent sourcing** - they know where everything comes from 4043. **Authentic positioning** - founded by people who genuinely care 4054. **Cultural relevance** - they connect with consumer values beyond the product 4065. **Operational excellence** - they deliver consistent quality at scale 407 408### What This Means for Investors 409 410The shift to better-for-you is structural, not cyclical. Consumers who upgrade to healthier options rarely revert. This creates durable competitive advantages for brands that can execute.`,image_url:"https://images.unsplash.com/photo-1498837167922-ddd27525d352?w=800&q=80",featured:!1,type:"blog-post",published_date:"2023-09-10"}];function lQ(){const[e,t]=C.useState(1),[n,r]=C.useState("all");C.useEffect(()=>{window.scrollTo(0,0)},[]);const{data:s}=Fl({queryKey:["insights"],queryFn:()=>rn.entities.Insight.list(),initialData:[]}),o=s.length>0?s:uQ,u=C.useMemo(()=>(n==="all"?o:o.filter(b=>b.type===n)).sort((b,E)=>new Date(E.published_date)-new Date(b.published_date)),[o,n]),l=Math.ceil(u.length/r0),d=(e-1)*r0,f=u.slice(d,d+r0),h=m=>{r(m),t(1)};return g.jsxs("div",{className:"min-h-screen bg-[var(--color-off-white)]",children:[g.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 bg-[var(--color-off-white)]/90 backdrop-blur-xl border-b border-black/5",children:g.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:g.jsxs("div",{className:"flex items-center justify-between h-20",children:[g.jsx(ct,{to:ot("Home"),children:g.jsx("div",{className:"h-12 md:h-14 lg:h-20 w-[190p
410x] md:w-[240px] lg:w-[290px] overflow-hidden flex items-center",children:g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/8b1899c6a_image.png",alt:"Simple Food Ventures",className:"w-full h-auto object-contain"})})}),g.jsxs(ct,{to:ot("Home"),className:"flex items-center gap-2 text-black/40 hover:text-black/60 text-sm transition-colors",children:[g.jsx(vs,{className:"w-4 h-4"}),"Back"]})]})})}),g.jsx("div",{className:"pt-32 pb-20 px-6",children:g.jsxs("div",{className:"max-w-6xl mx-auto",children:[g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:[g.jsx("h1",{className:"text-[var(--color-dark)] text-4xl md:text-5xl font-light leading-tight mb-4",children:"Our Insights"}),g.jsx("p",{className:"text-[var(--color-text-body)] text-lg font-light leading-relaxed max-w-2xl",children:"Thoughts on the future of food, beverage, and wellness. Our team is constantly analyzing emerging trends and sharing perspectives on the industry."})]}),g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mb-12 flex items-center gap-4",children:[g.jsx("span",{className:"text-[var(--color-text-body)] text-sm font-normal",children:"Filter by:"}),g.jsxs(Jf,{value:n,onValueChange:h,children:[g.jsx(Xl,{className:"w-40 bg-white border-black/10 text-black h-10 focus:border-[var(--color-green)] focus:ring-[var(--color-green)]/20",children:g.jsx(Zf,{})}),g.jsxs(Jl,{className:"bg-white border-black/10",children:[g.jsx(Fn,{value:"all",children:"All"}),g.jsx(Fn,{value:"article",children:"Articles"}),g.jsx(Fn,{value:"blog-post",children:"SFV Bites"})]})]}),g.jsxs("span",{className:"text-[var(--color-text-body)] text-sm font-light ml-auto",children:[u.length," ",u.length===1?"insight":"insights"]})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-12",children:f.map((m,b)=>{const E=m.content_body?ot(`InsightDetail?id=${m.id}`):m.link,_=!!m.content_body;return g.jsxs(Le.a,{href:E,target:_?void 0:"_blank",rel:_?void 0:"noopener noreferrer",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:b*.05},className:"group relative card-base border-black/[0.03] hover:border-black/[0.06] overflow-hidden flex flex-col h-full",children:[g.jsx("div",{className:"h-40 md:h-48 overflow-hidden",children:g.jsx("img",{src:m.image_url,alt:m.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"})}),g.jsxs("div",{className:"p-6 flex flex-col justify-between flex-grow",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsx("span",{className:"text-[var(--color-text-body)] text-xs uppercase tracking-wider",children:m.type==="blog-post"?"SFV Bites":"Article"}),g.jsx(Md,{className:"w-3 h-3 text-[var(--color-dark)] opacity-0 -translate-x-2 group-hover:opacity-100 group-hover:translate-x-0 transition-all duration-300"})]}),g.jsx("h3",{className:"text-[var(--color-dark)] text-base md:text-lg font-medium leading-tight mb-2 group-hover:text-[var(--color-dark)] transition-colors duration-300",children:m.title})]}),g.jsxs("div",{children:[g.jsx("p",{className:"text-[var(--color-text-muted)] text-sm font-light leading-relaxed mb-3 line-clamp-2",children:m.excerpt}),g.jsxs("div",{className:"flex items-center justify-between",children:[m.published_date&&g.jsx("span",{className:"text-[var(--color-text-muted)] text-xs font-light",children:new Date(m.published_date).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}),g.jsx(Lk,{title:m.title,url:m.link})]})]})]})]},m.id)})}),l>1&&g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"flex items-center justify-center gap-2",children:[g.jsx("button",{onClick:()=>t(m=>Math.max(1,m-1)),disabled:e===1,className:"px-4 py-2 text-sm font-normal text-[var(--color-text-body)] border border-black/10 rounded-lg hover:border-[var(--color-green)] hover:text-[var(--color-green)] disabled:opacity-50 disabled:cursor-not-allowed transition-all",children:"Previous"}),g.jsx("div",{className:"flex items-center gap-2",children:Array.from({length:l},(m,b)=>b+1).map(m=>g.jsx("button",{onClick:()=>t(m),className:`w-8 h-8 rounded-lg text-sm font-normal transition-all ${e===m?"bg-[var(--color-green)] text-white":"text-[var(--color-text-body)] border border-black/10 hover:border-[var(--color-green)]"}`,children:m},m))}),g.jsx("button",{onClick:()=>t(m=>Math.min(l,m+1)),disabled:e===l,className:"px-4 py-2 text-sm font-normal text-[var(--color-text-body)] border border-black/10 rounded-lg hover:border-[var(--color-green)] hover:text-[var(--color-green)] disabled:opacity-50 disabled:cursor-not-allowed transition-all",children:"Next"})]}),f.length===0&&g.jsx(Le.div,{initial:{opacity:0}
410,animate:{opacity:1},className:"text-center py-12",children:g.jsx("p",{className:"text-[var(--color-text-body)] text-lg",children:"No insights found."})})]})})]})}function cQ(){var d;const[e,t]=C.useState(!1),[n,r]=C.useState(null),[s,o]=C.useState(["site1","site2","site3"]),u=async()=>{if(confirm("This will migrate ALL content to WordPress. Continue?")){t(!0);try{const f=await rn.functions.invoke("migrateToWordPress",{sites:s});r(f.data),gs.success("Migration completed!")}catch(f){gs.error("Migration failed: "+f.message)}finally{t(!1)}}},l=f=>{o(h=>h.includes(f)?h.filter(m=>m!==f):[...h,f])};return g.jsxs("div",{className:"min-h-screen bg-[#fffdf9]",children:[g.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 bg-[#fffdf9]/90 backdrop-blur-xl border-b border-black/5",children:g.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:g.jsxs("div",{className:"flex items-center justify-between h-20",children:[g.jsx(ct,{to:ot("Home"),children:g.jsx("div",{className:"h-8 md:h-10 lg:h-12 w-[120px] md:w-[140px] lg:w-[160px] overflow-hidden flex items-center rounded-lg",children:g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/9ed8fb529_Screenshot2026-02-09at35844PM.png",alt:"Simple Food Ventures",className:"w-full h-auto object-contain",style:{transform:"scale(1.15)",transformOrigin:"center center"}})})}),g.jsxs(ct,{to:ot("Home"),className:"flex items-center gap-2 text-black/40 hover:text-black/60 text-sm transition-colors",children:[g.jsx(vs,{className:"w-4 h-4"}),"Back"]})]})})}),g.jsx("div",{className:"pt-32 pb-20 px-6",children:g.jsx("div",{className:"max-w-4xl mx-auto",children:g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[g.jsx("h1",{className:"text-4xl md:text-5xl font-light text-[var(--color-dark)] mb-4",children:"Migrate to WordPress"}),g.jsx("p",{className:"text-lg text-[var(--color-text-body)] font-light mb-8",children:"Export all content from Base44 to your WordPress site."}),g.jsxs("div",{className:"bg-white border border-black/10 rounded-xl p-6 mb-8",children:[g.jsx("h2",{className:"text-xl font-medium text-[var(--color-dark)] mb-4",children:"Select WordPress sites:"}),g.jsxs("div",{className:"space-y-3 mb-6",children:[g.jsxs("label",{className:"flex items-center gap-3 cursor-pointer",children:[g.jsx("input",{type:"checkbox",checked:s.includes("site1"),onChange:()=>l("site1"),className:"w-5 h-5 text-[var(--color-green)] rounded"}),g.jsx("span",{className:"text-[var(--color-text-body)]",children:"simplefoodventures.co"})]}),g.jsxs("label",{className:"flex items-center gap-3 cursor-pointer",children:[g.jsx("input",{type:"checkbox",checked:s.includes("site2"),onChange:()=>l("site2"),className:"w-5 h-5 text-[var(--color-green)] rounded"}),g.jsx("span",{className:"text-[var(--color-text-body)]",children:"simplefoodvc.com"})]}),g.jsxs("label",{className:"flex items-center gap-3 cursor-pointer",children:[g.jsx("input",{type:"checkbox",checked:s.includes("site3"),onChange:()=>l("site3"),className:"w-5 h-5 text-[var(--color-green)] rounded"}),g.jsx("span",{className:"text-[var(--color-text-body)]",children:"simplefoodventures.com"})]})]}),g.jsx("h2",{className:"text-xl font-medium text-[var(--color-dark)] mb-4 mt-6",children:"What will be migrated:"}),g.jsxs("ul",{className:"space-y-3",children:[g.jsxs("li",{className:"flex items-start gap-3",children:[g.jsx(Bd,{className:"w-5 h-5 text-[var(--color-green)] mt-0.5 flex-shrink-0"}),g.jsx("span",{className:"text-[var(--color-text-body)]",children:"All Insights articles with images and SEO metadata"})]}),g.jsxs("li",{className:"flex items-start gap-3",children:[g.jsx(Bd,{className:"w-5 h-5 text-[var(--color-green)] mt-0.5 flex-shrink-0"}),g.jsx("span",{className:"text-[var(--color-text-body)]",children:"All Portfolio companies with details and images"})]}),g.jsxs("li",{className:"flex items-start gap-3",children:[g.jsx(Bd,{className:"w-5 h-5 text-[var(--color-green)] mt-0.5 flex-shrink-0"}),g.jsx("span",{className:"text-[var(--color-text-body)]",children:"Main pages (Home, Portfolio, Insights, Contact)"})]})]})]}),g.jsx("div",{className:"bg-amber-50 border border-amber-200 rounded-xl p-6 mb-8",children:g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx(lP,{className:"w-5 h-5 text-amber-600 mt-0.5 flex-shrink-0"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-medium text-amber-900 mb
410-2",children:"Before you migrate:"}),g.jsxs("ul",{className:"text-sm text-amber-800 space-y-1",children:[g.jsx("li",{children:"⢠Ensure WordPress credentials are set correctly"}),g.jsx("li",{children:'⢠Create "Portfolio" category in WordPress'}),g.jsx("li",{children:"⢠Install a page builder plugin for better design control"}),g.jsx("li",{children:"⢠Backup your WordPress site"})]})]})]})}),g.jsx(zr,{onClick:u,disabled:e||s.length===0,size:"lg",className:"w-full bg-[var(--color-green)] hover:bg-[var(--color-green-dark)] text-white",children:e?g.jsxs(g.Fragment,{children:[g.jsx(s0,{className:"w-5 h-5 mr-2 animate-bounce"}),"Migrating..."]}):g.jsxs(g.Fragment,{children:[g.jsx(s0,{className:"w-5 h-5 mr-2"}),"Start Migration"]})}),n&&g.jsxs(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mt-8 bg-white border border-black/10 rounded-xl p-6",children:[g.jsx("h2",{className:"text-xl font-medium text-[var(--color-dark)] mb-4",children:"Migration Results"}),g.jsxs("p",{className:"text-[var(--color-text-body)] mb-6",children:["Successfully migrated to ",(d=n.sites)==null?void 0:d.join(", ")]}),Object.entries(n.results||{}).map(([f,h])=>g.jsxs("div",{className:"mb-8 pb-8 border-b border-black/10 last:border-0",children:[g.jsx("h3",{className:"text-lg font-medium text-[var(--color-dark)] mb-4",children:f}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{children:[g.jsxs("p",{className:"text-[var(--color-text-body)] font-medium mb-2",children:["â Insights: ",h.insights.length," migrated"]}),h.insights.slice(0,3).map((m,b)=>g.jsx("a",{href:m.wpUrl,target:"_blank",rel:"noopener noreferrer",className:"block text-sm text-[var(--color-green)] hover:underline ml-4",children:m.wpUrl},b))]}),g.jsx("div",{children:g.jsxs("p",{className:"text-[var(--color-text-body)] font-medium mb-2",children:["â Portfolio: ",h.portfolioCompanies.length," companies migrated"]})}),g.jsxs("div",{children:[g.jsxs("p",{className:"text-[var(--color-text-body)] font-medium mb-2",children:["â Pages: ",h.pages.length," created"]}),h.pages.map((m,b)=>g.jsxs("a",{href:m.wpUrl,target:"_blank",rel:"noopener noreferrer",className:"block text-sm text-[var(--color-green)] hover:underline ml-4",children:[m.title,": ",m.wpUrl]},b))]}),h.errors.length>0&&g.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:[g.jsxs("p",{className:"text-red-900 font-medium mb-2",children:["Errors (",h.errors.length,"):"]}),h.errors.map((m,b)=>g.jsxs("p",{className:"text-sm text-red-700 ml-4",children:[m.type," ",m.id||m.title,": ",m.error.message||JSON.stringify(m.error)]},b))]})]})]},f)),n.nextSteps&&g.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mt-6",children:[g.jsx("h3",{className:"font-medium text-blue-900 mb-3",children:"Next Steps:"}),g.jsx("ol",{className:"text-sm text-blue-800 space-y-2",children:n.nextSteps.map((f,h)=>g.jsx("li",{children:f},h))})]})]})]})})})]})}function dQ(){kf();const[e,t]=C.useState(!1),[n,r]=C.useState(!1),[s,o]=C.useState({company_name:"",founder_name:"",email:"",website:"",category:"",stage:"",description:"",deck_url:""}),u=(d,f)=>{o(h=>({...h,[d]:f}))},l=async d=>{d.preventDefault(),t(!0),await rn.entities.Submission.create(s),t(!1),r(!0)};return n?g.jsx("div",{className:"min-h-screen bg-[#f7f7f2] flex items-center justify-center px-6",children:g.jsxs(Le.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"text-center max-w-md",children:[g.jsx(Le.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},className:"w-20 h-20 rounded-full bg-[#4bb943]/10 flex items-center justify-center mx-auto mb-8",children:g.jsx(Ag,{className:"w-10 h-10 text-[#4bb943]"})}),g.jsx("h1",{className:"text-black text-3xl md:text-4xl font-light mb-4",children:"Thank you for reaching out"}),g.jsx("p",{className:"text-black/60 text-lg mb-8",children:"We review every submission carefully. If there's a fit, we'll be in touch soon."}),g.jsxs(ct,{to:ot("Home"),className:"inline-flex items-center gap-2 text-black/60 hover:text-black transition-colors",children:[g.jsx(vs,{className:"w-4 h-4"}),"Back to home"]})]})}):g.jsxs("div",{className:"min-h-screen bg-[#f7f7f2]",children:[g.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 bg-[#f7f7f2]/90 backdrop-blur-xl border-b border-black/5",children:g.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:g.jsxs("div",{className:"flex items-center justify-between h-20",children:[g.jsx(ct,{to:ot("Home"),children:g.jsx("div",{className:"h-12 md:h-14 lg:h-20 w-[190p
410x] md:w-[240px] lg:w-[290px] overflow-hidden flex items-center",children:g.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/69822543e328cc4f9bc9a953/8b1899c6a_image.png",alt:"Simple Food Ventures",className:"w-full h-auto object-contain"})})}),g.jsxs(ct,{to:ot("Home"),className:"inline-flex items-center gap-2 px-4 py-2.5 text-sm font-normal border border-black/10 rounded-lg text-black hover:border-[#4bb943] hover:text-[#4bb943] transition-all",children:[g.jsx(vs,{className:"w-4 h-4"}),"Back"]})]})})}),g.jsx("div",{className:"pt-32 pb-20 px-6",children:g.jsxs("div",{className:"max-w-2xl mx-auto",children:[g.jsx(Le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:g.jsx("p",{className:"text-black/50 text-base mb-10 leading-relaxed",children:"We review every inbound. If it's a fit, we respond quickly."})}),g.jsxs(Le.form,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},onSubmit:l,className:"space-y-8",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black/60 text-sm font-normal",children:"Company name *"}),g.jsx(Bn,{required:!0,value:s.company_name,onChange:d=>u("company_name",d.target.value),className:"bg-white border-black/10 text-black h-12 focus:border-[#4bb943] focus:ring-[#4bb943]/20",placeholder:"Your company name"})]}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black/60 text-sm font-normal",children:"Your name *"}),g.jsx(Bn,{required:!0,value:s.founder_name,onChange:d=>u("founder_name",d.target.value),className:"bg-white border-black/10 text-black h-12 focus:border-[#4bb943] focus:ring-[#4bb943]/20",placeholder:"First and last name"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black/60 text-sm font-normal",children:"Email *"}),g.jsx(Bn,{required:!0,type:"email",value:s.email,onChange:d=>u("email",d.target.value),className:"bg-white border-black/10 text-black h-12 focus:border-[#4bb943] focus:ring-[#4bb943]/20",placeholder:"[email protected]"})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black/60 text-sm font-normal",children:"Website"}),g.jsx(Bn,{value:s.website,onChange:d=>u("website",d.target.value),className:"bg-white border-black/10 text-black h-12 focus:border-[#4bb943] focus:ring-[#4bb943]/20",placeholder:"https://yourcompany.com"})]}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black/60 text-sm font-normal",children:"Category"}),g.jsx(Bn,{value:s.category,onChange:d=>u("category",d.target.value),className:"bg-white border-black/10 text-black h-12 focus:border-[#4bb943] focus:ring-[#4bb943]/20",placeholder:"e.g., Functional Beverages"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black/60 text-sm font-normal",children:"Stage"}),g.jsxs(Jf,{value:s.stage,onValueChange:d=>u("stage",d),children:[g.jsx(Xl,{className:"bg-white border-black/10 text-black h-12 focus:border-[#4bb943] focus:ring-[#4bb943]/20",children:g.jsx(Zf,{placeholder:"Select stage"})}),g.jsxs(Jl,{className:"bg-white border-black/10",children:[g.jsx(Fn,{value:"pre-seed",children:"Pre-seed"}),g.jsx(Fn,{value:"seed",children:"Seed"}),g.jsx(Fn,{value:"series-a",children:"Series A"}),g.jsx(Fn,{value:"other",children:"Other"})]})]})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black/60 text-sm font-normal",children:"Tell us about your company"}),g.jsx(_l,{value:s.description,onChange:d=>u("description",d.target.value),className:"bg-white border-black/10 text-black min-h-[150px] focus:border-[#4bb943] focus:ring-[#4bb943]/20",placeholder:"What are you building? What makes it differentiated? What stage are you at?"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Sn,{className:"text-black/60 text-sm font-normal",children:"Pitch deck URL"}),g.jsx(Bn,{value:s.deck_url,onChange:d=>u("deck_url",d.target.value),className:"bg-white border-black/10 text-black h-12 focus:border-[#4bb943] focus:ring-[#4bb943]/20",placeholder:"Link to your deck (Dropbox, Google Drive, etc.)"})]}),g.jsx("div",{className:"pt-4",children:g.jsx(zr,{type:"submit",disabled:e,className:"w-full px-8 py-3 bg-[#4bb943] hover:bg-[#3a9035] text-[#fffdf9] font-medium text-sm rounded-full transition-all duration-300",children:e?g.jsx(k2,{className:"w-5 h-5 animate-spin"}):g.jsxs(g.Fragment,{children:["Submit",g.jsx(Cg,{className:"w-5 h-5 ml-2"})]})})})]})]})})]})}function fQ({children:e}){return g.jsxs("div",{className:"min-h-screen",children:[g.jsx("style",{children:` 411 @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap'); 412 413 * { 414 font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; 415 } 416 417 /* Color Palette */ 418 :root { 419 --color-green: #4bb943; 420 --color-green-dark: #3a9035; 421 --color-off-white: #f7f7f2; 422 --color-cream: #fffdf9; 423 --color-dark: #121C18; 424 --color-text-body: #4a5147; 425 --color-text-muted: #6B7566; 426 --color-border-light: #000000; 427 } 428 429 /* Typography */ 430 h1, h2, h3 { 431 font-family: 'Manrope', Arial, sans-serif; 432 font-weight: 400; 433 letter-spacing: -0.02em; 434 } 435 436 h1 { 437 font-size: clamp(1.125rem, 2.5vw, 1.75rem); 438 line-height: 1.2; 439 } 440 441 h2 { 442 font-size: clamp(1rem, 2vw, 1.375rem); 443 line-height: 1.25; 444 } 445 446 h3 { 447 font-size: clamp(0.875rem, 1.5vw, 1rem); 448 line-height: 1.3; 449 } 450 451 /* Body text */ 452 p, .body-text { 453 font-family: 'Manrope', Arial, sans-serif; 454 font-weight: 400; 455 line-height: 1.6; 456 color: var(--color-text-body); 457 } 458 459 /* Section labels and eyebrows */ 460 .section-label { 461 font-weight: 400; 462 text-transform: uppercase; 463 font-size: 0.6875rem; 464 letter-spacing: 0.1em; 465 } 466 467 /* Navigation, buttons, UI elements */ 468 nav, button, .nav-item { 469 font-family: 'Manrope', Arial, sans-serif; 470 font-weight: 400; 471 } 472 473 button, .button { 474 font-weight: 500; 475 } 476 477 /* Cards and containers */ 478 .card-base { 479 background: white; 480 border: 1px solid rgba(0, 0, 0, 0.03); 481 border-radius: 1rem; 482 transition: all 300ms ease; 483 } 484 485 .card-base:hover { 486 border-color: rgba(0, 0, 0, 0.06); 487 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 488 } 489 490 /* Spacing utilities */ 491 .section-spacing { 492 padding-top: clamp(2rem, 5vw, 2rem); 493 padding-bottom: clamp(2rem, 5vw, 2rem); 494 } 495 496 @media (min-width: 768px) { 497 .section-spacing { 498 padding-top: clamp(3rem, 6vw, 6rem); 499 padding-bottom: clamp(3rem, 6vw, 6rem); 500 } 501 } 502 503 html { 504 scroll-behavior: smooth; 505 scroll-padding-top: 100px; 506 } 507 508 /* Custom scrollbar */ 509 ::-webkit-scrollbar {
510 width: 8px; 511 } 512 513 ::-webkit-scrollbar-track { 514 background: var(--color-cream); 515 } 516 517 ::-webkit-scrollbar-thumb { 518 background: var(--color-text-muted); 519 border-radius: 4px; 520 } 521 522 ::-webkit-scrollbar-thumb:hover { 523 background: var(--color-text-body); 524 } 525 526 /* Selection color */ 527 ::selection { 528 background: rgba(75, 185, 67, 0.2); 529 color: var(--color-dark); 530 } 531 `}),e]})}const hQ={Contact:nH,ExportToWordPress:cH,ForFounders:mH,Home:IH,InsightDetail:aQ,Insights:lQ,MigrateToWordPress:cQ,Submit:dQ},Dk={mainPage:"Home",Pages:hQ,Layout:fQ};function pQ(){const e=yo(),{isAuthenticated:t}=m_(),{Pages:n,mainPage:r}=Dk,s=r;return C.useEffect(()=>{const o=e.pathname;let u;if(o==="/"||o==="")u=s;else{const l=o.replace(/^\//,"").split("/")[0];u=Object.keys(n).find(h=>h.toLowerCase()===l.toLowerCase())||null}t&&u&&rn.appLogs.logUserInApp(u).catch(()=>{})},[e,t,n,s]),null}function mQ({}){var s;const t=yo().pathname.substring(1),{data:n,isFetched:r}=Fl({queryKey:["user"],queryFn:async()=>{try{return{user:await rn.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return g.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:g.jsx("div",{className:"max-w-md w-full",children:g.jsxs("div",{className:"text-center space-y-6",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),g.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),g.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",g.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),r&&n.isAuthenticated&&((s=n.user)==null?void 0:s.role)==="admin"&&g.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:g.jsxs("div",{className:"flex items-start space-x-3",children:[g.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:g.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),g.jsxs("div",{className:"text-left space-y-1",children:[g.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),g.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."})]})]})}),g.jsx("div",{className:"pt-6",children:g.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:[g.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.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"]})})]})})})}const gQ=()=>g.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:g.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:g.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.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"})})}),g.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),g.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."}),g.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[g.jsx("p",{children:"If you believe this is an error, you can:"}),g.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[g.jsx("li",{children:"Verify you are logged in with the correct account"}),g.jsx("li",{children:"Contact the app administrator for access"}),g.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:Mk,Layout:c2,mainPage:yQ}=Dk,Bk=yQ,bQ=Mk[Bk],d2=({children:e,currentPageName:t})=>c2?g.jsx(c2,{currentPageName:t,children:e}):g.jsx(g.Fragment,{children:e}),xQ=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=m_();if(t||e)return g.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:g.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return g.jsx(gQ,{});if(n.type==="auth_required")return r(),null}return g.jsxs(QO,{children:[g.jsx(Fd,{path:"/",element:g.jsx(d2,{currentPageName:Bk,children:g.jsx(bQ,{})})}),Object.entries(Mk).map(([s,o])=>g.jsx(Fd,{path:`/${s}`,element:g.jsx(d2,{currentPageName:s,children:g.jsx(o,{})})},s)),g.jsx(Fd,{path:"*",element:g.jsx(mQ,{})})]})};function EQ(){return g.jsx(SM,{children:g.jsxs($I,{client:rO,children:[g.jsxs(r4,{children:[g.jsx(pQ,{}),g.jsx(xQ,{})]}),g.jsx(EI,{})]})})}zR.createRoot(document.getElementById("root")).render(g.jsx(EQ,{}));
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.