PageSourceSearch

https://tablecrowd.com/assets/index-BDxDFa2J.js

js tablecrowd.com collected 2026-10-08 04:39:50 UTC 1,190,433 bytes, 696 lines download raw bytes

vendor: 4,254 bytes, lines 1-9
1var bx=e=>{throw TypeError(e)};var fm=(e,t,n)=>t.has(e)||bx("Cannot "+n);var D=(e,t,n)=>(fm(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?bx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),me=(e,t,n,r)=>(fm(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ze=(e,t,n)=>(fm(e,t,"access private method"),n);var Pd=(e,t,n,r)=>({set _(s){me(e,t,s,n)},get _(){return D(e,t,r)}});function CO(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 i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{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 i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var zh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mT={exports:{}},Qf={},gT={exports:{}},Ke={};/**
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 nd=Symbol.for("react.element"),kO=Symbol.for("react.portal"),NO=Symbol.for("react.fragment"),AO=Symbol.for("react.strict_mode"),RO=Symbol.for("react.profiler"),IO=Symbol.for("react.provider"),OO=Symbol.for("react.context"),PO=Symbol.for("react.forward_ref"),DO=Symbol.for("react.suspense"),jO=Symbol.for("react.memo"),LO=Symbol.for("react.lazy"),xx=Symbol.iterator;function MO(e){return e===null||typeof e!="object"?null:(e=xx&&e[xx]||e["@@iterator"],typeof e=="function"?e:null)}var yT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vT=Object.assign,bT={};function Ul(e,t,n){this.props=e,this.context=t,this.refs=bT,this.updater=n||yT}Ul.prototype.isReactComponent={};Ul.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ul.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xT(){}xT.prototype=Ul.prototype;function Yy(e,t,n){this.props=e,this.context=t,this.refs=bT,this.updater=n||yT}var Ky=Yy.prototype=new xT;Ky.constructor=Yy;vT(Ky,Ul.prototype);Ky.isPureReactComponent=!0;var wx=Array.isArray,wT=Object.prototype.hasOwnProperty,Gy={current:null},ET={key:!0,ref:!0,__self:!0,__source:!0};function _T(e,t,n){var r,s={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)wT.call(t,r)&&!ET.hasOwnProperty(r)&&(s[r]=t[r]);var o=arguments.length-2;if(o===1)s.children=n;else if(1<o){for(var u=Array(o),c=0;c<o;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)s[r]===void 0&&(s[r]=o[r]);return{$$typeof:nd,type:e,key:i,ref:a,props:s,_owner:Gy.current}}function FO(e,t){return{$$typeof:nd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Qy(e){return typeof e=="object"&&e!==null&&e.$$typeof===nd}function BO(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ex=/\/+/g;function pm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?BO(""+e.key):t.toString(36)}
vendor: 11,041 bytes, lines 9-33
9function vh(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case nd:case kO:a=!0}}if(a)return a=e,s=s(a),e=r===""?"."+pm(a,0):r,wx(s)?(n="",e!=null&&(n=e.replace(Ex,"$&/")+"/"),vh(s,t,n,"",function(c){return c})):s!=null&&(Qy(s)&&(s=FO(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(Ex,"$&/")+"/")+e)),t.push(s)),1;if(a=0,r=r===""?".":r+":",wx(e))for(var o=0;o<e.length;o++){i=e[o];var u=r+pm(i,o);a+=vh(i,t,n,u,s)}else if(u=MO(e),typeof u=="function")for(e=u.call(e),o=0;!(i=e.next()).done;)i=i.value,u=r+pm(i,o++),a+=vh(i,t,n,u,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Dd(e,t,n){if(e==null)return e;var r=[],s=0;return vh(e,r,"","",function(i){return t.call(n,i,s++)}),r}function UO(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var qn={current:null},bh={transition:null},HO={ReactCurrentDispatcher:qn,ReactCurrentBatchConfig:bh,ReactCurrentOwner:Gy};function TT(){throw Error("act(...) is not supported in production builds of React.")}Ke.Children={map:Dd,forEach:function(e,t,n){Dd(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Dd(e,function(){t++}),t},toArray:function(e){return Dd(e,function(t){return t})||[]},only:function(e){if(!Qy(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ke.Component=Ul;Ke.Fragment=NO;Ke.Profiler=RO;Ke.PureComponent=Yy;Ke.StrictMode=AO;Ke.Suspense=DO;Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HO;Ke.act=TT;Ke.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=vT({},e.props),s=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Gy.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(u in t)wT.call(t,u)&&!ET.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&o!==void 0?o[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){o=Array(u);for(var c=0;c<u;c++)o[c]=arguments[c+2];r.children=o}return{$$typeof:nd,type:e.type,key:s,ref:i,props:r,_owner:a}};Ke.createContext=function(e){return e={$$typeof:OO,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:IO,_context:e},e.Consumer=e};Ke.createElement=_T;Ke.createFactory=function(e){var t=_T.bind(null,e);return t.type=e,t};Ke.createRef=function(){return{current:null}};Ke.forwardRef=function(e){return{$$typeof:PO,render:e}};Ke.isValidElement=Qy;Ke.lazy=function(e){return{$$typeof:LO,_payload:{_status:-1,_result:e},_init:UO}};Ke.memo=function(e,t){return{$$typeof:jO,type:e,compare:t===void 0?null:t}};Ke.startTransition=function(e){var t=bh.transition;bh.transition={};try{e()}finally{bh.transition=t}};Ke.unstable_act=TT;Ke.useCallback=function(e,t){return qn.current.useCallback(e,t)};Ke.useContext=function(e){return qn.current.useContext(e)};Ke.useDebugValue=function(){};Ke.useDeferredValue=function(e){return qn.current.useDeferredValue(e)};Ke.useEffect=function(e,t){return qn.current.useEffect(e,t)};Ke.useId=function(){return qn.current.useId()};Ke.useImperativeHandle=function(e,t,n){return qn.current.useImperativeHandle(e,t,n)};Ke.useInsertionEffect=function(e,t){return qn.current.useInsertionEffect(e,t)};Ke.useLayoutEffect=function(e,t){return qn.current.useLayoutEffect(e,t)};Ke.useMemo=function(e,t){return qn.current.useMemo(e,t)};Ke.useReducer=function(e,t,n){return qn.current.useReducer(e,t,n)};Ke.useRef=function(e){return qn.current.useRef(e)};Ke.useState=function(e){return qn.current.useState(e)};Ke.useSyncExternalStore=function(e,t,n){return qn.current.useSyncExternalStore(e,t,n)};Ke.useTransition=function(){return qn.current.useTransition()};Ke.version="18.3.1";gT.exports=Ke;var y=gT.exports;const W=Gf(y),Xy=CO({__proto__:null,default:W},[y]);/**
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 $O=y,zO=Symbol.for("react.element"),VO=Symbol.for("react.fragment"),WO=Object.prototype.hasOwnProperty,qO=$O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,YO={key:!0,ref:!0,__self:!0,__source:!0};function ST(e,t,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)WO.call(t,r)&&!YO.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:zO,type:e,key:i,ref:a,props:s,_owner:qO.current}}Qf.Fragment=VO;Qf.jsx=ST;Qf.jsxs=ST;mT.exports=Qf;var l=mT.exports,CT={exports:{}},Ar={},kT={exports:{}},NT={};/**
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 */(function(e){function t($,V){var S=$.length;$.push(V);e:for(;0<S;){var ue=S-1>>>1,te=$[ue];if(0<s(te,V))$[ue]=V,$[S]=te,S=ue;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var V=$[0],S=$.pop();if(S!==V){$[0]=S;e:for(var ue=0,te=$.length,R=te>>>1;ue<R;){var pe=2*(ue+1)-1,je=$[pe],_e=pe+1,re=$[_e];if(0>s(je,S))_e<te&&0>s(re,je)?($[ue]=re,$[_e]=S,ue=_e):($[ue]=je,$[pe]=S,ue=pe);else if(_e<te&&0>s(re,S))$[ue]=re,$[_e]=S,ue=_e;else break e}}return V}function s($,V){var S=$.sortIndex-V.sortIndex;return S!==0?S:$.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,o=a.now();e.unstable_now=function(){return a.now()-o}}var u=[],c=[],d=1,h=null,p=3,f=!1,w=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E($){for(var V=n(c);V!==null;){if(V.callback===null)r(c);else if(V.startTime<=$)r(c),V.sortIndex=V.expirationTime,t(u,V);else break;V=n(c)}}function T($){if(m=!1,E($),!w)if(n(u)!==null)w=!0,Q(C);else{var V=n(c);V!==null&&J(T,V.startTime-$)}}function C($,V){w=!1,m&&(m=!1,v(P),P=-1),f=!0;var S=p;try{for(E(V),h=n(u);h!==null&&(!(h.expirationTime>V)||$&&!U());){var ue=h.callback;if(typeof ue=="function"){h.callback=null,p=h.priorityLevel;var te=ue(h.expirationTime<=V);V=e.unstable_now(),typeof te=="function"?h.callback=te:h===n(u)&&r(u),E(V)}else r(u);h=n(u)}if(h!==null)var R=!0;else{var pe=n(c);pe!==null&&J(T,pe.startTime-V),R=!1}return R}finally{h=null,p=S,f=!1}}var _=!1,k=null,P=-1,M=5,F=-1;function U(){return!(e.unstable_now()-F<M)}function j(){if(k!==null){var $=e.unstable_now();F=$;var V=!0;try{V=k(!0,$)}finally{V?Y():(_=!1,k=null)}}else _=!1}var Y;if(typeof b=="function")Y=function(){b(j)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,X=z.port2;z.port1.onmessage=j,Y=function(){X.postMessage(null)}}else Y=function(){x(j,0)};function Q($){k=$,_||(_=!0,Y())}function J($,V){P=x(function(){$(e.unstable_now())},V)}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(){w||f||(w=!0,Q(C))},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"):M=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function($){switch(p){case 1:case 2:case 3:var V=3;break;default:V=p}var S=p;p=V;try{return $()}finally{p=S}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,V){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var S=p;p=$;try{return V()}finally{p=S}},e.unstable_scheduleCallback=function($,V,S){var ue=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?ue+S:ue):S=ue,$){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=S+te,$={id:d++,callback:V,priorityLevel:$,startTime:S,expirationTime:te,sortIndex:-1},S>ue?($.sortIndex=S,t(c,$),n(u)===null&&$===n(c)&&(m?(v(P),P=-1):m=!0,J(T,S-ue))):($.sortIndex=te,t(u,$),w||f||(w=!0,Q(C))),$},e.unstable_shouldYield=U,e.unstable_wrapCallback=function($){var V=p;return function(){var S=p;p=V;try{return $.apply(this,arguments)}finally{p=S}}}})(NT);kT.exports=NT;var KO=kT.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 GO=y,kr=KO;function ne(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var AT=new Set,lc={};function ho(e,t){El(e,t),El(e+"Capture",t)}function El(e,t){for(lc[e]=t,e=0;e<t.length;e++)AT.add(t[e])}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pg=Object.prototype.hasOwnProperty,QO=/^[: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]*$/,_x={},Tx={};function XO(e){return Pg.call(Tx,e)?!0:Pg.call(_x,e)?!1:QO.test(e)?Tx[e]=!0:(_x[e]=!0,!1)}function JO(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ZO(e,t,n,r){if(t===null||typeof t>"u"||JO(e,t,n,r))return!0;
vendor: 5,200 bytes, lines 33-34
33if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Yn(e,t,n,r,s,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var kn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kn[e]=new Yn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kn[t]=new Yn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){kn[e]=new Yn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kn[e]=new Yn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){kn[e]=new Yn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){kn[e]=new Yn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){kn[e]=new Yn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){kn[e]=new Yn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){kn[e]=new Yn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jy=/[\-:]([a-z])/g;function Zy(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jy,Zy);kn[t]=new Yn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Jy,Zy);kn[t]=new Yn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Jy,Zy);kn[t]=new Yn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){kn[e]=new Yn(e,1,!1,e.toLowerCase(),null,!1,!1)});kn.xlinkHref=new Yn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){kn[e]=new Yn(e,1,!1,e.toLowerCase(),null,!0,!0)});function ev(e,t,n,r){var s=kn.hasOwnProperty(t)?kn[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ZO(t,n,s,r)&&(n=null),r||s===null?XO(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var gi=GO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,jd=Symbol.for("react.element"),Lo=Symbol.for("react.portal"),Mo=Symbol.for("react.fragment"),tv=Symbol.for("react.strict_mode"),Dg=Symbol.for("react.profiler"),RT=Symbol.for("react.provider"),IT=Symbol.for("react.context"),nv=Symbol.for("react.forward_ref"),jg=Symbol.for("react.suspense"),Lg=Symbol.for("react.suspense_list"),rv=Symbol.for("react.memo"),Ni=Symbol.for("react.lazy"),OT=Symbol.for("react.offscreen"),Sx=Symbol.iterator;function lu(e){return e===null||typeof e!="object"?null:(e=Sx&&e[Sx]||e["@@iterator"],typeof e=="function"?e:null)}var jt=Object.assign,mm;function Nu(e){if(mm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);mm=t&&t[1]||""}return`
34`+mm+e}var gm=!1;function ym(e,t){if(!e||gm)return"";gm=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}
vendor: 5,499 bytes, lines 34-37
34catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
35`),i=r.stack.split(`
36`),a=s.length-1,o=i.length-1;1<=a&&0<=o&&s[a]!==i[o];)o--;for(;1<=a&&0<=o;a--,o--)if(s[a]!==i[o]){if(a!==1||o!==1)do if(a--,o--,0>o||s[a]!==i[o]){var u=`
37`+s[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=o);break}}}finally{gm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nu(e):""}function eP(e){switch(e.tag){case 5:return Nu(e.type);case 16:return Nu("Lazy");case 13:return Nu("Suspense");case 19:return Nu("SuspenseList");case 0:case 2:case 15:return e=ym(e.type,!1),e;case 11:return e=ym(e.type.render,!1),e;case 1:return e=ym(e.type,!0),e;default:return""}}function Mg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mo:return"Fragment";case Lo:return"Portal";case Dg:return"Profiler";case tv:return"StrictMode";case jg:return"Suspense";case Lg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case IT:return(e.displayName||"Context")+".Consumer";case RT:return(e._context.displayName||"Context")+".Provider";case nv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rv:return t=e.displayName||null,t!==null?t:Mg(e.type)||"Memo";case Ni:t=e._payload,e=e._init;try{return Mg(e(t))}catch{}}return null}function tP(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Mg(t);case 8:return t===tv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function la(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function PT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nP(e){var t=PT(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ld(e){e._valueTracker||(e._valueTracker=nP(e))}function DT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=PT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Fg(e,t){var n=t.checked;return jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Cx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=la(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jT(e,t){t=t.checked,t!=null&&ev(e,"checked",t,!1)}function Bg(e,t){jT(e,t);var n=la(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ug(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ug(e,t.type,la(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ug(e,t,n){(t!=="number"||Vh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Au=Array.isArray;function Qo(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+la(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Hg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ne(91));return jt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Nx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ne(92));
vendor: 9,285 bytes, line 37
37if(Au(n)){if(1<n.length)throw Error(ne(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:la(n)}}function LT(e,t){var n=la(t.value),r=la(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ax(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function MT(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function $g(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?MT(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Md,FT=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Md=Md||document.createElement("div"),Md.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Md.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mu={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},rP=["Webkit","ms","Moz","O"];Object.keys(Mu).forEach(function(e){rP.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mu[t]=Mu[e]})});function BT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mu.hasOwnProperty(e)&&Mu[e]?(""+t).trim():t+"px"}function UT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=BT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var sP=jt({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 zg(e,t){if(t){if(sP[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ne(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ne(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ne(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ne(62))}}function Vg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wg=null;function sv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qg=null,Xo=null,Jo=null;function Rx(e){if(e=id(e)){if(typeof qg!="function")throw Error(ne(280));var t=e.stateNode;t&&(t=tp(t),qg(e.stateNode,e.type,t))}}function HT(e){Xo?Jo?Jo.push(e):Jo=[e]:Xo=e}function $T(){if(Xo){var e=Xo,t=Jo;if(Jo=Xo=null,Rx(e),t)for(e=0;e<t.length;e++)Rx(t[e])}}function zT(e,t){return e(t)}function VT(){}var vm=!1;function WT(e,t,n){if(vm)return e(t,n);vm=!0;try{return zT(e,t,n)}finally{vm=!1,(Xo!==null||Jo!==null)&&(VT(),$T())}}function cc(e,t){var n=e.stateNode;if(n===null)return null;var r=tp(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ne(231,t,typeof n));return n}var Yg=!1;if(li)try{var uu={};Object.defineProperty(uu,"passive",{get:function(){Yg=!0}}),window.addEventListener("test",uu,uu),window.removeEventListener("test",uu,uu)}catch{Yg=!1}function iP(e,t,n,r,s,i,a,o,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Fu=!1,Wh=null,qh=!1,Kg=null,aP={onError:function(e){Fu=!0,Wh=e}};function oP(e,t,n,r,s,i,a,o,u){Fu=!1,Wh=null,iP.apply(aP,arguments)}function lP(e,t,n,r,s,i,a,o,u){if(oP.apply(this,arguments),Fu){if(Fu){var c=Wh;Fu=!1,Wh=null}else throw Error(ne(198));qh||(qh=!0,Kg=c)}}function fo(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function qT(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ix(e){if(fo(e)!==e)throw Error(ne(188))}function uP(e){var t=e.alternate;if(!t){if(t=fo(e),t===null)throw Error(ne(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Ix(s),e;if(i===r)return Ix(s),t;i=i.sibling}throw Error(ne(188))}if(n.return!==r.return)n=s,r=i;else{for(var a=!1,o=s.child;o;){if(o===n){a=!0,n=s,r=i;break}if(o===r){a=!0,r=s,n=i;break}o=o.sibling}if(!a){for(o=i.child;o;){if(o===n){a=!0,n=i,r=s;break}if(o===r){a=!0,r=i,n=s;break}o=o.sibling}if(!a)throw Error(ne(189))}}if(n.alternate!==r)throw Error(ne(190))}if(n.tag!==3)throw Error(ne(188));return n.stateNode.current===n?e:t}function YT(e){return e=uP(e),e!==null?KT(e):null}function KT(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=KT(e);if(t!==null)return t;e=e.sibling}return null}var GT=kr.unstable_scheduleCallback,Ox=kr.unstable_cancelCallback,cP=kr.unstable_shouldYield,dP=kr.unstable_requestPaint,Wt=kr.unstable_now,hP=kr.unstable_getCurrentPriorityLevel,iv=kr.unstable_ImmediatePriority,QT=kr.unstable_UserBlockingPriority,Yh=kr.unstable_NormalPriority,fP=kr.unstable_LowPriority,XT=kr.unstable_IdlePriority,Xf=null,Ps=null;function pP(e){if(Ps&&typeof Ps.onCommitFiberRoot=="function")try{Ps.onCommitFiberRoot(Xf,e,void 0,(e.current.flags&128)===128)}catch{}}var cs=Math.clz32?Math.clz32:yP,mP=Math.log,gP=Math.LN2;function yP(e){return e>>>=0,e===0?32:31-(mP(e)/gP|0)|0}var Fd=64,Bd=4194304;function Ru(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Kh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var o=a&~s;o!==0?r=Ru(o):(i&=a,i!==0&&(r=Ru(i)))}else a=n&~s,a!==0?r=Ru(a):i!==0&&(r=Ru(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-cs(t),s=1<<n,r|=e[n],t&=~s;return r}function vP(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bP(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-cs(i),o=1<<a,u=s[a];u===-1?(!(o&n)||o&r)&&(s[a]=vP(o,t)):u<=t&&(e.expiredLanes|=o),i&=~o}}function Gg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function JT(){var e=Fd;return Fd<<=1,!(Fd&4194240)&&(Fd=64),e}function bm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rd(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-cs(t),e[t]=n}function xP(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-cs(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function av(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-cs(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var mt=0;function ZT(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var eS,ov,tS,nS,rS,Qg=!1,Ud=[],Xi=null,Ji=null,Zi=null,dc=new Map,hc=new Map,Pi=[],wP="mou
37sedown 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 Px(e,t){switch(e){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Ji=null;break;case"mouseover":case"mouseout":Zi=null;break;case"pointerover":case"pointerout":dc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hc.delete(t.pointerId)}}function cu(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=id(t),t!==null&&ov(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function EP(e,t,n,r,s){switch(t){case"focusin":return Xi=cu(Xi,e,t,n,r,s),!0;case"dragenter":return Ji=cu(Ji,e,t,n,r,s),!0;case"mouseover":return Zi=cu(Zi,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return dc.set(i,cu(dc.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,hc.set(i,cu(hc.get(i)||null,e,t,n,r,s)),!0}return!1}function sS(e){var t=Pa(e.target);if(t!==null){var n=fo(t);if(n!==null){if(t=n.tag,t===13){if(t=qT(n),t!==null){e.blockedOn=t,rS(e.priority,function(){tS(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Wg=r,n.target.dispatchEvent(r),Wg=null}else return t=id(n),t!==null&&ov(t),e.blockedOn=n,!1;t.shift()}return!0}function Dx(e,t,n){xh(e)&&n.delete(t)}function _P(){Qg=!1,Xi!==null&&xh(Xi)&&(Xi=null),Ji!==null&&xh(Ji)&&(Ji=null),Zi!==null&&xh(Zi)&&(Zi=null),dc.forEach(Dx),hc.forEach(Dx)}function du(e,t){e.blockedOn===t&&(e.blockedOn=null,Qg||(Qg=!0,kr.unstable_scheduleCallback(kr.unstable_NormalPriority,_P)))}function fc(e){function t(s){return du(s,e)}if(0<Ud.length){du(Ud[0],e);for(var n=1;n<Ud.length;n++){var r=Ud[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Xi!==null&&du(Xi,e),Ji!==null&&du(Ji,e),Zi!==null&&du(Zi,e),dc.forEach(t),hc.forEach(t),n=0;n<Pi.length;n++)r=Pi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Pi.length&&(n=Pi[0],n.blockedOn===null);)sS(n),n.blockedOn===null&&Pi.shift()}var Zo=gi.ReactCurrentBatchConfig,Gh=!0;function TP(e,t,n,r){var s=mt,i=Zo.transition;Zo.transition=null;try{mt=1,lv(e,t,n,r)}finally{mt=s,Zo.transition=i}}function SP(e,t,n,r){var s=mt,i=Zo.transition;Zo.transition=null;try{mt=4,lv(e,t,n,r)}finally{mt=s,Zo.transition=i}}function lv(e,t,n,r){if(Gh){var s=Xg(e,t,n,r);if(s===null)Am(e,t,r,Qh,n),Px(e,r);else if(EP(s,e,t,n,r))r.stopPropagation();else if(Px(e,r),t&4&&-1<wP.indexOf(e)){for(;s!==null;){var i=id(s);if(i!==null&&eS(i),i=Xg(e,t,n,r),i===null&&Am(e,t,r,Qh,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Am(e,t,r,null,n)}}var Qh=null;function Xg(e,t,n,r){if(Qh=null,e=sv(r),e=Pa(e),e!==null)if(t=fo(e),t===null)e=null;else if(n=t.tag,n===13){if(e=qT(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qh=e,null}function iS(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hP()){case iv:return 1;case QT:return 4;case Yh:case fP:return 16;case XT:return 536870912;default:return 16}default:return 16}}var qi=null,uv=null,wh=null;function aS(){if(wh)return wh;var e,t=uv,n=t.length,r,s="value"in qi?qi.value:qi.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===s[i-r];r++);return wh=s.slice(e,1<r?1-r:void 0)}function Eh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Hd(){return!0}function jx(){return!1}function Rr(e){function t(n,r,s,i,a){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Hd:jx,this.isPropagationStopped=jx,this}return jt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hd)},persist:function(){},isPersistent:Hd}),t}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cv=Rr(Hl),sd=jt({},Hl,{view:0,detail:0}),CP=Rr(sd),xm,wm,hu,Jf=jt({},sd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hu&&(hu&&e.type==="mousemove"?(xm=e.screenX-hu.screenX,wm=e.screenY-hu.screenY):wm=xm=0,hu=e),xm)},movementY:function(e){return"movementY"in e?e.movementY:wm}}),Lx=Rr(Jf),kP=jt({},Jf,{dataTransfer:0}),NP=Rr(kP),AP=jt({},sd,{relatedTarget:0}),Em=Rr(AP),RP=jt({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),IP=Rr(RP),OP=jt({},Hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),PP=Rr(OP),DP=jt({},Hl,{data:0}),Mx=Rr(DP),jP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LP={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"},MP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=MP[e])?!!t[e]:!1}function dv(){return FP}var BP=jt({},sd,{key:function(e){if(e.key){var t=jP[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 4,754 bytes, line 37
37return e.type==="keypress"?(e=Eh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dv,charCode:function(e){return e.type==="keypress"?Eh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),UP=Rr(BP),HP=jt({},Jf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fx=Rr(HP),$P=jt({},sd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dv}),zP=Rr($P),VP=jt({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),WP=Rr(VP),qP=jt({},Jf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),YP=Rr(qP),KP=[9,13,27,32],hv=li&&"CompositionEvent"in window,Bu=null;li&&"documentMode"in document&&(Bu=document.documentMode);var GP=li&&"TextEvent"in window&&!Bu,oS=li&&(!hv||Bu&&8<Bu&&11>=Bu),Bx=" ",Ux=!1;function lS(e,t){switch(e){case"keyup":return KP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fo=!1;function QP(e,t){switch(e){case"compositionend":return uS(t);case"keypress":return t.which!==32?null:(Ux=!0,Bx);case"textInput":return e=t.data,e===Bx&&Ux?null:e;default:return null}}function XP(e,t){if(Fo)return e==="compositionend"||!hv&&lS(e,t)?(e=aS(),wh=uv=qi=null,Fo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return oS&&t.locale!=="ko"?null:t.data;default:return null}}var JP={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 Hx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JP[e.type]:t==="textarea"}function cS(e,t,n,r){HT(r),t=Xh(t,"onChange"),0<t.length&&(n=new cv("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Uu=null,pc=null;function ZP(e){wS(e,0)}function Zf(e){var t=Ho(e);if(DT(t))return e}function e3(e,t){if(e==="change")return t}var dS=!1;if(li){var _m;if(li){var Tm="oninput"in document;if(!Tm){var $x=document.createElement("div");$x.setAttribute("oninput","return;"),Tm=typeof $x.oninput=="function"}_m=Tm}else _m=!1;dS=_m&&(!document.documentMode||9<document.documentMode)}function zx(){Uu&&(Uu.detachEvent("onpropertychange",hS),pc=Uu=null)}function hS(e){if(e.propertyName==="value"&&Zf(pc)){var t=[];cS(t,pc,e,sv(e)),WT(ZP,t)}}function t3(e,t,n){e==="focusin"?(zx(),Uu=t,pc=n,Uu.attachEvent("onpropertychange",hS)):e==="focusout"&&zx()}function n3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zf(pc)}function r3(e,t){if(e==="click")return Zf(t)}function s3(e,t){if(e==="input"||e==="change")return Zf(t)}function i3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ps=typeof Object.is=="function"?Object.is:i3;function mc(e,t){if(ps(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Pg.call(t,s)||!ps(e[s],t[s]))return!1}return!0}function Vx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wx(e,t){var n=Vx(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vx(n)}}function fS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pS(){for(var e=window,t=Vh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vh(e.document)}return t}function fv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function a3(e){var t=pS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fS(n.ownerDocument.documentElement,n)){if(r!==null&&fv(n)){if
vendor: 5,626 bytes, line 37
37(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Wx(n,i);var a=Wx(n,r);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var o3=li&&"documentMode"in document&&11>=document.documentMode,Bo=null,Jg=null,Hu=null,Zg=!1;function qx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zg||Bo==null||Bo!==Vh(r)||(r=Bo,"selectionStart"in r&&fv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hu&&mc(Hu,r)||(Hu=r,r=Xh(Jg,"onSelect"),0<r.length&&(t=new cv("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bo)))}function $d(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Uo={animationend:$d("Animation","AnimationEnd"),animationiteration:$d("Animation","AnimationIteration"),animationstart:$d("Animation","AnimationStart"),transitionend:$d("Transition","TransitionEnd")},Sm={},mS={};li&&(mS=document.createElement("div").style,"AnimationEvent"in window||(delete Uo.animationend.animation,delete Uo.animationiteration.animation,delete Uo.animationstart.animation),"TransitionEvent"in window||delete Uo.transitionend.transition);function ep(e){if(Sm[e])return Sm[e];if(!Uo[e])return e;var t=Uo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in mS)return Sm[e]=t[n];return e}var gS=ep("animationend"),yS=ep("animationiteration"),vS=ep("animationstart"),bS=ep("transitionend"),xS=new Map,Yx="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 pa(e,t){xS.set(e,t),ho(t,[e])}for(var Cm=0;Cm<Yx.length;Cm++){var km=Yx[Cm],l3=km.toLowerCase(),u3=km[0].toUpperCase()+km.slice(1);pa(l3,"on"+u3)}pa(gS,"onAnimationEnd");pa(yS,"onAnimationIteration");pa(vS,"onAnimationStart");pa("dblclick","onDoubleClick");pa("focusin","onFocus");pa("focusout","onBlur");pa(bS,"onTransitionEnd");El("onMouseEnter",["mouseout","mouseover"]);El("onMouseLeave",["mouseout","mouseover"]);El("onPointerEnter",["pointerout","pointerover"]);El("onPointerLeave",["pointerout","pointerover"]);ho("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ho("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ho("onBeforeInput",["compositionend","keypress","textInput","paste"]);ho("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ho("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ho("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Iu="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(" "),c3=new Set("cancel close invalid load scroll toggle".split(" ").concat(Iu));function Kx(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,lP(r,t,void 0,e),e.currentTarget=null}function wS(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var o=r[a],u=o.instance,c=o.currentTarget;if(o=o.listener,u!==i&&s.isPropagationStopped())break e;Kx(s,o,c),i=u}else for(a=0;a<r.length;a++){if(o=r[a],u=o.instance,c=o.currentTarget,o=o.listener,u!==i&&s.isPropagationStopped())break e;Kx(s,o,c),i=u}}}if(qh)throw e=Kg,qh=!1,Kg=null,e}function Tt(e,t){var n=t[s0];n===void 0&&(n=t[s0]=new Set);var r=e+"__bubble";n.has(r)||(ES(t,e,2,!1),n.add(r))}function Nm(e,t,n){var r=0;t&&(r|=4),ES(n,e,r,t)}var zd="_reactListening"+Math.random().toString(36).slice(2);function gc(e){if(!e[zd]){e[zd]=!0,AT.forEach(function(n){n!=="selectionchange"&&(c3.has(n)||Nm(n,!1,e),Nm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zd]||(t[zd]=!0,Nm("selectionchange",!1,t))}}function ES(e,t,n,r){switch(iS(t)){case 1:var s=TP;break;case 4:s=SP;break;default:s=lv}n=s.bind(null,t,n,e),s=void 0,!Yg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 4,454 bytes, line 37
37function Am(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var o=r.stateNode.containerInfo;if(o===s||o.nodeType===8&&o.parentNode===s)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;a=a.return}for(;o!==null;){if(a=Pa(o),a===null)return;if(u=a.tag,u===5||u===6){r=i=a;continue e}o=o.parentNode}}r=r.return}WT(function(){var c=i,d=sv(n),h=[];e:{var p=xS.get(e);if(p!==void 0){var f=cv,w=e;switch(e){case"keypress":if(Eh(n)===0)break e;case"keydown":case"keyup":f=UP;break;case"focusin":w="focus",f=Em;break;case"focusout":w="blur",f=Em;break;case"beforeblur":case"afterblur":f=Em;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Lx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=NP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=zP;break;case gS:case yS:case vS:f=IP;break;case bS:f=WP;break;case"scroll":f=CP;break;case"wheel":f=YP;break;case"copy":case"cut":case"paste":f=PP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Fx}var m=(t&4)!==0,x=!m&&e==="scroll",v=m?p!==null?p+"Capture":null:p;m=[];for(var b=c,E;b!==null;){E=b;var T=E.stateNode;if(E.tag===5&&T!==null&&(E=T,v!==null&&(T=cc(b,v),T!=null&&m.push(yc(b,T,E)))),x)break;b=b.return}0<m.length&&(p=new f(p,w,null,n,d),h.push({event:p,listeners:m}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&n!==Wg&&(w=n.relatedTarget||n.fromElement)&&(Pa(w)||w[ui]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(w=n.relatedTarget||n.toElement,f=c,w=w?Pa(w):null,w!==null&&(x=fo(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(f=null,w=c),f!==w)){if(m=Lx,T="onMouseLeave",v="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(m=Fx,T="onPointerLeave",v="onPointerEnter",b="pointer"),x=f==null?p:Ho(f),E=w==null?p:Ho(w),p=new m(T,b+"leave",f,n,d),p.target=x,p.relatedTarget=E,T=null,Pa(d)===c&&(m=new m(v,b+"enter",w,n,d),m.target=E,m.relatedTarget=x,T=m),x=T,f&&w)t:{for(m=f,v=w,b=0,E=m;E;E=bo(E))b++;for(E=0,T=v;T;T=bo(T))E++;for(;0<b-E;)m=bo(m),b--;for(;0<E-b;)v=bo(v),E--;for(;b--;){if(m===v||v!==null&&m===v.alternate)break t;m=bo(m),v=bo(v)}m=null}else m=null;f!==null&&Gx(h,p,f,m,!1),w!==null&&x!==null&&Gx(h,x,w,m,!0)}}e:{if(p=c?Ho(c):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var C=e3;else if(Hx(p))if(dS)C=s3;else{C=n3;var _=t3}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=r3);if(C&&(C=C(e,c))){cS(h,C,n,d);break e}_&&_(e,p,c),e==="focusout"&&(_=p._wrapperState)&&_.controlled&&p.type==="number"&&Ug(p,"number",p.value)}switch(_=c?Ho(c):window,e){case"focusin":(Hx(_)||_.contentEditable==="true")&&(Bo=_,Jg=c,Hu=null);break;case"focusout":Hu=Jg=Bo=null;break;case"mousedown":Zg=!0;break;case"contextmenu":case"mouseup":case"dragend":Zg=!1,qx(h,n,d);break;case"selectionchange":if(o3)break;case"keydown":case"keyup":qx(h,n,d)}var k;if(hv)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Fo?lS(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(oS&&n.locale!=="ko"&&(Fo||P!=="onCompositionStart"?P==="onCompositionEnd"&&Fo&&(k=aS()):(qi=d,uv="value"in qi?qi.value:qi.textContent,Fo=!0)),_=Xh(c,P),0<_.length&&(P=new Mx(P,e,null,n,d),h.push({event:P,listeners:_}),k?P.data=k:(k=uS(n),k!==null&&(P.data=k)))),(k=GP?QP(e,n):XP(e,n))&&(c=Xh(c,"onBeforeInput"),0<c.length&&(d=new Mx("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:c}),d.data=k))}wS(h,t)})}function yc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xh(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=cc(e,n),i!=null&&r.unshift(yc(e,i,s)),i=cc(e,t),i!=null&&r.push(yc(e,i,s))),e=e.return}return r}function bo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}
vendor: 4,599 bytes, lines 37-38
37function Gx(e,t,n,r,s){for(var i=t._reactName,a=[];n!==null&&n!==r;){var o=n,u=o.alternate,c=o.stateNode;if(u!==null&&u===r)break;o.tag===5&&c!==null&&(o=c,s?(u=cc(n,i),u!=null&&a.unshift(yc(n,u,o))):s||(u=cc(n,i),u!=null&&a.push(yc(n,u,o)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var d3=/\r\n?/g,h3=/\u0000|\uFFFD/g;function Qx(e){return(typeof e=="string"?e:""+e).replace(d3,`
38`).replace(h3,"")}function Vd(e,t,n){if(t=Qx(t),Qx(e)!==t&&n)throw Error(ne(425))}function Jh(){}var e0=null,t0=null;function n0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var r0=typeof setTimeout=="function"?setTimeout:void 0,f3=typeof clearTimeout=="function"?clearTimeout:void 0,Xx=typeof Promise=="function"?Promise:void 0,p3=typeof queueMicrotask=="function"?queueMicrotask:typeof Xx<"u"?function(e){return Xx.resolve(null).then(e).catch(m3)}:r0;function m3(e){setTimeout(function(){throw e})}function Rm(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),fc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);fc(t)}function ea(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Jx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var $l=Math.random().toString(36).slice(2),Ns="__reactFiber$"+$l,vc="__reactProps$"+$l,ui="__reactContainer$"+$l,s0="__reactEvents$"+$l,g3="__reactListeners$"+$l,y3="__reactHandles$"+$l;function Pa(e){var t=e[Ns];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ui]||n[Ns]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Jx(e);e!==null;){if(n=e[Ns])return n;e=Jx(e)}return t}e=n,n=e.parentNode}return null}function id(e){return e=e[Ns]||e[ui],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ho(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ne(33))}function tp(e){return e[vc]||null}var i0=[],$o=-1;function ma(e){return{current:e}}function kt(e){0>$o||(e.current=i0[$o],i0[$o]=null,$o--)}function wt(e,t){$o++,i0[$o]=e.current,e.current=t}var ua={},Dn=ma(ua),ir=ma(!1),Ja=ua;function _l(e,t){var n=e.type.contextTypes;if(!n)return ua;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ar(e){return e=e.childContextTypes,e!=null}function Zh(){kt(ir),kt(Dn)}function Zx(e,t,n){if(Dn.current!==ua)throw Error(ne(168));wt(Dn,t),wt(ir,n)}function _S(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(ne(108,tP(e)||"Unknown",s));return jt({},n,r)}function ef(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ua,Ja=Dn.current,wt(Dn,e),wt(ir,ir.current),!0}function e1(e,t,n){var r=e.stateNode;if(!r)throw Error(ne(169));n?(e=_S(e,t,Ja),r.__reactInternalMemoizedMergedChildContext=e,kt(ir),kt(Dn),wt(Dn,e)):kt(ir),wt(ir,n)}var Js=null,np=!1,Im=!1;function TS(e){Js===null?Js=[e]:Js.push(e)}function v3(e){np=!0,TS(e)}function ga(){if(!Im&&Js!==null){Im=!0;var e=0,t=mt;try{var n=Js;for(mt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Js=null,np=!1}catch(s){throw Js!==null&&(Js=Js.slice(e+1)),GT(iv,ga),s}finally{mt=t,Im=!1}}return null}var zo=[],Vo=0,tf=null,nf=0,Lr=[],Mr=0,Za=null,ri=1,si="";function Ca(e,t){zo[Vo++]=nf,zo[Vo++]=tf,tf=e,nf=t}function SS(e,t,n){Lr[Mr++]=ri,Lr[Mr++]=si,Lr[Mr++]=Za,Za=e;var r=ri;e=si;var s=32-cs(r)-1;r&=~(1<<s),n+=1;var i=32-cs(t)+s;if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,ri=1<<32-cs(t)+s|n<<s|r,si=i+e}else ri=1<<i|n<<s|r,si=e}function pv(e){e.return!==null&&(Ca(e,1),SS(e,1,0))}function mv(e){for(;e===tf;)tf=zo[--Vo],zo[Vo]=null,nf=zo[--Vo],zo[Vo]=null;for(;e===Za;)Za=Lr[--Mr],Lr[Mr]=null,si=Lr[--Mr],Lr[Mr]=null,ri=Lr[--Mr],Lr[Mr]=null}var _r=null,xr=null,Rt=!1,os=null;function CS(e,t){var n=Ur(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function t1(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 26,860 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_r=e,xr=ea(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_r=e,xr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Za!==null?{id:ri,overflow:si}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ur(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,_r=e,xr=null,!0):!1;default:return!1}}function a0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function o0(e){if(Rt){var t=xr;if(t){var n=t;if(!t1(e,t)){if(a0(e))throw Error(ne(418));t=ea(n.nextSibling);var r=_r;t&&t1(e,t)?CS(r,n):(e.flags=e.flags&-4097|2,Rt=!1,_r=e)}}else{if(a0(e))throw Error(ne(418));e.flags=e.flags&-4097|2,Rt=!1,_r=e}}}function n1(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_r=e}function Wd(e){if(e!==_r)return!1;if(!Rt)return n1(e),Rt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!n0(e.type,e.memoizedProps)),t&&(t=xr)){if(a0(e))throw kS(),Error(ne(418));for(;t;)CS(e,t),t=ea(t.nextSibling)}if(n1(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ne(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xr=ea(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xr=null}}else xr=_r?ea(e.stateNode.nextSibling):null;return!0}function kS(){for(var e=xr;e;)e=ea(e.nextSibling)}function Tl(){xr=_r=null,Rt=!1}function gv(e){os===null?os=[e]:os.push(e)}var b3=gi.ReactCurrentBatchConfig;function fu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ne(309));var r=n.stateNode}if(!r)throw Error(ne(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var o=s.refs;a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(ne(284));if(!n._owner)throw Error(ne(290,e))}return e}function qd(e,t){throw e=Object.prototype.toString.call(t),Error(ne(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function r1(e){var t=e._init;return t(e._payload)}function NS(e){function t(v,b){if(e){var E=v.deletions;E===null?(v.deletions=[b],v.flags|=16):E.push(b)}}function n(v,b){if(!e)return null;for(;b!==null;)t(v,b),b=b.sibling;return null}function r(v,b){for(v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function s(v,b){return v=sa(v,b),v.index=0,v.sibling=null,v}function i(v,b,E){return v.index=E,e?(E=v.alternate,E!==null?(E=E.index,E<b?(v.flags|=2,b):E):(v.flags|=2,b)):(v.flags|=1048576,b)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function o(v,b,E,T){return b===null||b.tag!==6?(b=Fm(E,v.mode,T),b.return=v,b):(b=s(b,E),b.return=v,b)}function u(v,b,E,T){var C=E.type;return C===Mo?d(v,b,E.props.children,T,E.key):b!==null&&(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ni&&r1(C)===b.type)?(T=s(b,E.props),T.ref=fu(v,b,E),T.return=v,T):(T=Ah(E.type,E.key,E.props,null,v.mode,T),T.ref=fu(v,b,E),T.return=v,T)}function c(v,b,E,T){return b===null||b.tag!==4||b.stateNode.containerInfo!==E.containerInfo||b.stateNode.implementation!==E.implementation?(b=Bm(E,v.mode,T),b.return=v,b):(b=s(b,E.children||[]),b.return=v,b)}function d(v,b,E,T,C){return b===null||b.tag!==7?(b=Qa(E,v.mode,T,C),b.return=v,b):(b=s(b,E),b.return=v,b)}function h(v,b,E){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Fm(""+b,v.mode,E),b.return=v,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case jd:return E=Ah(b.type,b.key,b.props,null,v.mode,E),E.ref=fu(v,null,b),E.return=v,E;case Lo:return b=Bm(b,v.mode,E),b.return=v,b;case Ni:var T=b._init;return h(v,T(b._payload),E)}if(Au(b)||lu(b))return b=Qa(b,v.mode,E,null),b.return=v,b;qd(v,b)}return null}function p(v,b,E,T){var C=b!==null?b.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return C!==null?null:o(v,b,""+E,T);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case jd:return E.key===C?u(v,b,E,T):null;case Lo:return E.key===C?c(v,b,E,T):null;case Ni:return C=E._init,p(v,b,C(E._payload),T)}if(Au(E)||lu(E))return C!==null?null:d(v,b,E,T,null);qd(v,E)}return null}function f(v,b,E,T,C){if(typeof T=="string"&&T!==""||typeof T=="number")return v=v.get(E)||null,o(b,v,""+T,C);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case jd:return v=v.get(T.key===null?E:T.key)||null,u(b,v,T,C);case Lo:return v=v.get(T.key===null?E:T.key)||null,c(b,v,T,C);case Ni:var _=T._init;return f(v,b,E,_(T._payload),C)}if(Au(T)||lu(T))return v=v.get(E)||null,d(b,v,T,C,null);qd(b,T)}return null}function w(v,b,E,T){for(var C=null,_=null,k=b,P=b=0,M=null;k!==null&&P<E.length;P++){k.index>P?(M=k,k=null):M=k.sibling;var F=p(v,k,E[P],T);if(F===null){k===null&&(k=M);break}e&&k&&F.alternate===null&&t(v,k),b=i(F,b,P),_===null?C=F:_.sibling=F,_=F,k=M}if(P===E.length)return n(v,k),Rt&&Ca(v,P),C;if(k===null){for(;P<E.length;P++)k=h(v,E[P],T),k!==null&&(b=i(k,b,P),_===null?C=k:_.sibling=k,_=k);return Rt&&Ca(v,P),C}for(k=r(v,k);P<E.length;P++)M=f(k,v,P,E[P],T),M!==null&&(e&&M.alternate!==null&&k.delete(M.key===null?P:M.key),b=i(M,b,P),_===null?C=M:_.sibling=M,_=M);return e&&k.forEach(function(U){return t(v,U)}),Rt&&Ca(v,P),C}function m(v,b,E,T){var C=lu(E);if(typeof C!="function")throw Error(ne(150));if(E=C.call(E),E==null)throw Error(ne(151));for(var _=C=null,k=b,P=b=0,M=null,F=E.next();k!==null&&!F.done;P++,F=E.next()){k.index>P?(M=k,k=null):M=k.sibling;var U=p(v,k,F.value,T);if(U===null){k===null&&(k=M);break}e&&k&&U.alternate===null&&t(v,k),b=i(U,b,P),_===null?C=U:_.sibling=U,_=U,k=M}if(F.done)return n(v,k),Rt&&Ca(v,P),C;if(k===null){for(;!F.done;P++,F=E.next())F=h(v,F.value,T),F!==null&&(b=i(F,b,P),_===null?C=F:_.sibling=F,_=F);return Rt&&Ca(v,P),C}for(k=r(v,k);!F.done;P++,F=E.next())F=f(k,v,P,F.value,T),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?P:F.key),b=i(F,b,P),_===null?C=F:_.sibling=F,_=F);return e&&k.forEach(function(j){return t(v,j)}),Rt&&Ca(v,P),C}function x(v,b,E,T){if(typeof E=="object"&&E!==null&&E.type===Mo&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case jd:e:{for(var C=E.key,_=b;_!==null;){if(_.key===C){if(C=E.type,C===Mo){if(_.tag===7){n(v,_.sibling),b=s(_,E.props.children),b.return=v,v=b;break e}}else if(_.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ni&&r1(C)===_.type){n(v,_.sibling),b=s(_,E.props),b.ref=fu(v,_,E),b.return=v,v=b;break e}n(v,_);break}else t(v,_);_=_.sibling}E.type===Mo?(b=Qa(E.props.children,v.mode,T,E.key),b.return=v,v=b):(T=Ah(E.type,E.key,E.props,null,v.mode,T),T.ref=fu(v,b,E),T.return=v,v=T)}return a(v);case Lo:e:{for(_=E.key;b!==null;){if(b.key===_)if(b.tag===4&&b.stateNode.containerInfo===E.containerInfo&&b.stateNode.implementation===E.implementation){n(v,b.sibling),b=s(b,E.children||[]),b.return=v,v=b;break e}else{n(v,b);break}else t(v,b);b=b.sibling}b=Bm(E,v.mode,T),b.return=v,v=b}return a(v);case Ni:return _=E._init,x(v,b,_(E._payload),T)}if(Au(E))return w(v,b,E,T);if(lu(E))return m(v,b,E,T);qd(v,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,b!==null&&b.tag===6?(n(v,b.sibling),b=s(b,E),b.return=v,v=b):(n(v,b),b=Fm(E,v.mode,T),b.return=v,v=b),a(v)):n(v,b)}return x}var Sl=NS(!0),AS=NS(!1),rf=ma(null),sf=null,Wo=null,yv=null;function vv(){yv=Wo=sf=null}function bv(e){var t=rf.current;kt(rf),e._currentValue=t}function l0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function el(e,t){sf=e,yv=Wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(sr=!0),e.firstContext=null)}function Wr(e){var t=e._currentValue;if(yv!==e)if(e={context:e,memoizedValue:t,next:null},Wo===null){if(sf===null)throw Error(ne(308));Wo=e,sf.dependencies={lanes:0,firstContext:e}}else Wo=Wo.next=e;return t}var Da=null;function xv(e){Da===null?Da=[e]:Da.push(e)}function RS(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,xv(t)):(n.next=s.next,s.next=n),t.interleaved=n,ci(e,r)}function ci(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ai=!1;function wv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function IS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ta(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,et&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,ci(e,n)}return s=r.interleaved,s===null?(t.next=t,xv(r)):(t.next=s.next,s.next=t),r.interleaved=t,ci(e,n)}function _h(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,av(e,n)}}function s1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function af(e,t,n,r){var s=e.updateQueue;Ai=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,o=s.shared.pending;if(o!==null){s.shared.pending=null;var u=o,c=u.next;u.next=null,a===null?i=c:a.next=c,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==a&&(o===null?d.firstBaseUpdate=c:o.next=c,d.lastBaseUpdate=u))}if(i!==null){var h=s.baseState;a=0,d=c=u=null,o=i;do{var p=o.lane,f=o.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var w=e,m=o;switch(p=t,f=n,m.tag){case 1:if(w=m.payload,typeof w=="function"){h=w.call(f,h,p);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=m.payload,p=typeof w=="function"?w.call(f,h,p):w,p==null)break e;h=jt({},h,p);break e;case 2:Ai=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[o]:p.push(o))}else f={eventTime:f,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(c=d=f,u=h):d=d.next=f,a|=p;if(o=o.next,o===null){if(o=s.shared.pending,o===null)break;p=o,o=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(d===null&&(u=h),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);to|=a,e.lanes=a,e.memoizedState=h}}function i1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(ne(191,s));s.call(r)}}}var ad={},Ds=ma(ad),bc=ma(ad),xc=ma(ad);function ja(e){if(e===ad)throw Error(ne(174));return e}function Ev(e,t){switch(wt(xc,t),wt(bc,e),wt(Ds,ad),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$g(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$g(t,e)}kt(Ds),wt(Ds,t)}function Cl(){kt(Ds),kt(bc),kt(xc)}function OS(e){ja(xc.current);var t=ja(Ds.current),n=$g(t,e.type);t!==n&&(wt(bc,e),wt(Ds,n))}function _v(e){bc.current===e&&(kt(Ds),kt(bc))}var Ot=ma(0);function of(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Om=[];function Tv(){for(var e=0;e<Om.length;e++)Om[e]._workInProgressVersionPrimary=null;Om.length=0}var Th=gi.ReactCurrentDispatcher,Pm=gi.ReactCurrentBatchConfig,eo=0,Dt=null,an=null,mn=null,lf=!1,$u=!1,wc=0,x3=0;function An(){throw Error(ne(321))}function Sv(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ps(e[n],t[n]))return!1;return!0}function Cv(e,t,n,r,s,i){if(eo=i,Dt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Th.current=e===null||e.memoizedState===null?T3:S3,e=n(r,s),$u){i=0;do{if($u=!1,wc=0,25<=i)throw Error(ne(301));i+=1,mn=an=null,t.updateQueue=null,Th.current=C3,e=n(r,s)}while($u)}if(Th.current=uf,t=an!==null&&an.next!==null,eo=0,mn=an=Dt=null,lf=!1,t)throw Error(ne(300));return e}function kv(){var e=wc!==0;return wc=0,e}function Es(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mn===null?Dt.memoizedState=mn=e:mn=mn.next=e,mn}function qr(){if(an===null){var e=Dt.alternate;e=e!==null?e.memoizedState:null}else e=an.next;var t=mn===null?Dt.memoizedState:mn.next;if(t!==null)mn=t,an=e;else{if(e===null)throw Error(ne(310));an=e,e={memoizedState:an.memoizedState,baseState:an.baseState,baseQueue:an.baseQueue,queue:an.queue,next:null},mn===null?Dt.memoizedState=mn=e:mn=mn.next=e}return mn}function Ec(e,t){return typeof t=="function"?t(e):t}function Dm(e){var t=qr(),n=t.queue;if(n===null)throw Error(ne(311));n.lastRenderedReducer=e;var r=an,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var a=s.next;s.next=i.next,i.next=a}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var o=a=null,u=null,c=i;do{var d=c.lane;if((eo&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(o=u=h,a=r):u=u.next=h,Dt.lanes|=d,to|=d}c=c.next}while(c!==null&&c!==i);u===null?a=r:u.next=o,ps(r,t.memoizedState)||(sr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Dt.lanes|=i,to|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function jm(e){var t=qr(),n=t.queue;if(n===null)throw Error(ne(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var a=s=s.next;do i=e(i,a.action),a=a.next;while(a!==s);ps(i,t.memoizedState)||(sr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function PS(){}function DS(e,t){var n=Dt,r=qr(),s=t(),i=!ps(r.memoizedState,s);if(i&&(r.memoizedState=s,sr=!0),r=r.queue,Nv(MS.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||mn!==null&&mn.memoizedState.tag&1){if(n.flags|=2048,_c(9,LS.bind(null,n,r,s,t),void 0,null),bn===null)throw Error(ne(349));eo&30||jS(n,t,s)}return s}function jS(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Dt.updateQueue,t===null?(t={lastEffect:null,stores:null},Dt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function LS(e,t,n,r){t.value=n,t.getSnapshot=r,FS(t)&&BS(e)}function MS(e,t,n){return n(function(){FS(t)&&BS(e)})}function FS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ps(e,n)}catch{return!0}}function BS(e){var t=ci(e,1);t!==null&&ds(t,e,1,-1)}function a1(e){var t=Es();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ec,lastRenderedState:e},t.queue=e,e=e.dispatch=_3.bind(null,Dt,e),[t.memoizedState,e]}function _c(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Dt.updateQueue,t===null?(t={lastEffect:null,stores:null},Dt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function US(){return qr().memoizedState}function Sh(e,t,n,r){var s=Es();Dt.flags|=e,s.memoizedState=_c(1|t,n,void 0,r===void 0?null:r)}function rp(e,t,n,r){var s=qr();r=r===void 0?null:r;var i=void 0;if(an!==null){var a=an.memoizedState;if(i=a.destroy,r!==null&&Sv(r,a.deps)){s.memoizedState=_c(t,n,i,r);return}}Dt.flags|=e,s.memoizedState=_c(1|t,n,i,r)}function o1(e,t){return Sh(8390656,8,e,t)}function Nv(e,t){return rp(2048,8,e,t)}function HS(e,t){return rp(4,2,e,t)}function $S(e,t){return rp(4,4,e,t)}function zS(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function VS(e,t,n){return n=n!=null?n.concat([e]):null,rp(4,4,zS.bind(null,t,e),n)}function Av(){}function WS(e,t){var n=qr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sv(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qS(e,t){var n=qr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sv(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function YS(e,t,n){return eo&21?(ps(n,t)||(n=JT(),Dt.lanes|=n,to|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,sr=!0),e.memoizedState=n)}function w3(e,t){var n=mt;mt=n!==0&&4>n?n:4,e(!0);var r=Pm.transition;Pm.transition={};try{e(!1),t()}finally{mt=n,Pm.transition=r}}function KS(){return qr().memoizedState}function E3(e,t,n){var r=ra(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},GS(e))QS(t,n);else if(n=RS(e,t,n,r),n!==null){var s=Wn();ds(n,e,r,s),XS(n,t,r)}}function _3(e,t,n){var r=ra(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(GS(e))QS(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,o=i(a,n);if(s.hasEagerState=!0,s.eagerState=o,ps(o,a)){var u=t.interleaved;u===null?(s.next=s,xv(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=RS(e,t,s,r),n!==null&&(s=Wn(),ds(n,e,r,s),XS(n,t,r))}}function GS(e){var t=e.alternate;return e===Dt||t!==null&&t===Dt}function QS(e,t){$u=lf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function XS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,av(e,n)}}var uf={readContext:Wr,useCallback:An,useContext:An,useEffect:An,useImperativeHandle:An,useInsertionEffect:An,useLayoutEffect:An,useMemo:An,useReducer:An,useRef:An,useState:An,useDebugValue:An,useDeferredValue:An,useTransition:An,useMutableSource:An,useSyncExternalStore:An,useId:An,unstable_isNewReconciler:!1},T3={readContext:Wr,useCallback:function(e,t){return Es().memoizedState=[e,t===void 0?null:t],e},useContext:Wr,useEffect:o1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sh(4194308,4,zS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sh(4,2,e,t)},useMemo:function(e,t){var n=Es();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Es();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=E3.bind(null,Dt,e),[r.memoizedState,e]},useRef:function(e){var t=Es();return e={current:e},t.memoizedState=e},useState:a1,useDebugValue:Av,useDeferredValue:function(e){return Es().memoizedState=e},useTransition:function(){var e=a1(!1),t=e[0];return e=w3.bind(null,e[1]),Es().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Dt,s=Es();if(Rt){if(n===void 0)throw Error(ne(407));n=n()}else{if(n=t(),bn===null)throw Error(ne(349));eo&30||jS(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,o1(MS.bind(null,r,i,e),[e]),r.flags|=2048,_c(9,LS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Es(),t=bn.identifierPrefix;if(Rt){var n=si,r=ri;n=(r&~(1<<32-cs(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=x3++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},S3={readContext:Wr,useCallback:WS,useContext:Wr,useEffect:Nv,useImperativeHandle:VS,useInsertionEffect:HS,useLayoutEffect:$S,useMemo:qS,useReducer:Dm,useRef:US,useState:function(){return Dm(Ec)},useDebugValue:Av,useDeferredValue:function(e){var t=qr();return YS(t,an.memoizedState,e)},useTransition:function(){var e=Dm(Ec)[0],t=qr().memoizedState;return[e,t]},useMutableSource:PS,useSyncExternalStore:DS,useId:KS,unstable_isNewReconciler:!1},C3={readContext:Wr,useCallback:WS,useContext:Wr,useEffect:Nv,useImperativeHandle:VS,useInsertionEffect:HS,useLayoutEffect:$S,useMemo:qS,useReducer:jm,useRef:US,useState:function(){return jm(Ec)},useDebugValue:Av,useDeferredValue:function(e){var t=qr();return an===null?t.memoizedState=e:YS(t,an.memoizedState,e)},useTransition:function(){var e=jm(Ec)[0],t=qr().memoizedState;return[e,t]},useMutableSource:PS,useSyncExternalStore:DS,useId:KS,unstable_isNewReconciler:!1};function ts(e,t){if(e&&e.defaultProps){t=jt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function u0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:jt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var sp={isMounted:function(e){return(e=e._reactInternals)?fo(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Wn(),s=ra(e),i=ii(r,s);i.payload=t,n!=null&&(i.callback=n),t=ta(e,i,s),t!==null&&(ds(t,e,s,r),_h(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Wn(),s=ra(e),i=ii(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ta(e,i,s),t!==null&&(ds(t,e,s,r),_h(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wn(),r=ra(e),s=ii(n,r);s.tag=2,t!=null&&(s.callback=t),t=ta(e,s,r),t!==null&&(ds(t,e,r,n),_h(t,e,r))}};function l1(e,t,n,r,s,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!mc(n,r)||!mc(s,i):!0}function JS(e,t,n){var r=!1,s=ua,i=t.contextType;return typeof i=="object"&&i!==null?i=Wr(i):(s=ar(t)?Ja:Dn.current,r=t.contextTypes,i=(r=r!=null)?_l(e,s):ua),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=sp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function u1(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&sp.enqueueReplaceState(t,t.state,null)}function c0(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},wv(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Wr(i):(i=ar(t)?Ja:Dn.current,s.context=_l(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(u0(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&sp.enqueueReplaceState(s,s.state,null),af(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function kl(e,t){try{var n="",r=t;do n+=eP(r),r=r.return;while(r);var s=n}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Lm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function d0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var k3=typeof WeakMap=="function"?WeakMap:Map;function ZS(e,t,n){n=ii(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){df||(df=!0,w0=r),d0(e,t)},n}function eC(e,t,n){n=ii(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){d0(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){d0(e,t),typeof r!="function"&&(na===null?na=new Set([this]):na.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function c1(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new k3;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=H3.bind(null,e,t,n),t.then(e,e))}function d1(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function h1(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ii(-1,1),t.tag=2,ta(n,t,1))),n.lanes|=1),e)}var N3=gi.ReactCurrentOwner,sr=!1;function Hn(e,t,n,r){t.child=e===null?AS(t,null,n,r):Sl(t,e.child,n,r)}function f1(e,t,n,r,s){n=n.render;var i=t.ref;return el(t,s),r=Cv(e,t,n,r,i,s),n=kv(),e!==null&&!sr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,di(e,t,s)):(Rt&&n&&pv(t),t.flags|=1,Hn(e,t,r,s),t.child)}function p1(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Mv(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,tC(e,t,i,r,s)):(e=Ah(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:mc,n(a,r)&&e.ref===t.ref)return di(e,t,s)}return t.flags|=1,e=sa(i,r),e.ref=t.ref,e.return=t,t.child=e}function tC(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(mc(i,r)&&e.ref===t.ref)if(sr=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(sr=!0);else return t.lanes=e.lanes,di(e,t,s)}return h0(e,t,n,r,s)}function nC(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},wt(Yo,pr),pr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,wt(Yo,pr),pr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,wt(Yo,pr),pr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,wt(Yo,pr),pr|=r;return Hn(e,t,s,n),t.child}function rC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,729 bytes, line 40
40function h0(e,t,n,r,s){var i=ar(n)?Ja:Dn.current;return i=_l(t,i),el(t,s),n=Cv(e,t,n,r,i,s),r=kv(),e!==null&&!sr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,di(e,t,s)):(Rt&&r&&pv(t),t.flags|=1,Hn(e,t,n,s),t.child)}function m1(e,t,n,r,s){if(ar(n)){var i=!0;ef(t)}else i=!1;if(el(t,s),t.stateNode===null)Ch(e,t),JS(t,n,r),c0(t,n,r,s),r=!0;else if(e===null){var a=t.stateNode,o=t.memoizedProps;a.props=o;var u=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Wr(c):(c=ar(n)?Ja:Dn.current,c=_l(t,c));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==r||u!==c)&&u1(t,a,r,c),Ai=!1;var p=t.memoizedState;a.state=p,af(t,r,a,s),u=t.memoizedState,o!==r||p!==u||ir.current||Ai?(typeof d=="function"&&(u0(t,n,d,r),u=t.memoizedState),(o=Ai||l1(t,n,o,r,p,u,c))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=o):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,IS(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:ts(t.type,o),a.props=c,h=t.pendingProps,p=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=Wr(u):(u=ar(n)?Ja:Dn.current,u=_l(t,u));var f=n.getDerivedStateFromProps;(d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==h||p!==u)&&u1(t,a,r,u),Ai=!1,p=t.memoizedState,a.state=p,af(t,r,a,s);var w=t.memoizedState;o!==h||p!==w||ir.current||Ai?(typeof f=="function"&&(u0(t,n,f,r),w=t.memoizedState),(c=Ai||l1(t,n,c,r,p,w,u)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,w,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,w,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),a.props=r,a.state=w,a.context=u,r=c):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return f0(e,t,n,r,i,s)}function f0(e,t,n,r,s,i){rC(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return s&&e1(t,n,!1),di(e,t,i);r=t.stateNode,N3.current=t;var o=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Sl(t,e.child,null,i),t.child=Sl(t,null,o,i)):Hn(e,t,o,i),t.memoizedState=r.state,s&&e1(t,n,!0),t.child}function sC(e){var t=e.stateNode;t.pendingContext?Zx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zx(e,t.context,!1),Ev(e,t.containerInfo)}function g1(e,t,n,r,s){return Tl(),gv(s),t.flags|=256,Hn(e,t,n,r),t.child}var p0={dehydrated:null,treeContext:null,retryLane:0};function m0(e){return{baseLanes:e,cachePool:null,transitions:null}}function iC(e,t,n){var r=t.pendingProps,s=Ot.current,i=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(s&2)!==0),o?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),wt(Ot,s&1),e===null)return o0(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=op(a,r,0,null),e=Qa(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=m0(n),t.memoizedState=p0,e):Rv(t,a));if(s=e.memoizedState,s!==null&&(o=s.dehydrated,o!==null))return A3(e,t,a,r,o,s,n);if(i){i=r.fallback,a=t.mode,s=e.child,o=s.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=sa(s,u),r.subtreeFlags=s.subtreeFlags&14680064),o!==null?i=sa(o,i):(i=Qa(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?m0(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=p0,r}return i=e.child,e=i.sibling,r=sa(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Rv(e,t){return t=op({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yd(e,t,n,r){return r!==null&&gv(r),Sl(t,e.child,null,n),e=Rv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function A3(e,t,n,r,s,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Lm(Error(ne(422))),Yd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=op({mode:"visible",children:r.children},s,0,null),i=Qa(i,s,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Sl(t,e.child,null,a),t.child.memoizedState=m0(a),t.memoizedState=p0,i);if(!(t.mode&1))return Yd(e,t,a,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var o=r.dgst;return r=o,i=Error(ne(419)),r=Lm(i,r,void 0),Yd(e,t,a,r)}if(o=(a&e.childLanes)!==0,sr||o){if(r=bn,r!==null){switch(a&-a){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,ci(e,s),ds(r,e,s,-1))}return Lv(),r=Lm(Error(ne(421))),Yd(e,t,a,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=$3.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,xr=ea(s.nextSibling),_r=t,Rt=!0,os=null,e!==null&&(Lr[Mr++]=ri,Lr[Mr++]=si,Lr[Mr++]=Za,ri=e.id,si=e.overflow,Za=t),t=Rv(t,r.children),t.flags|=4096,t)}function y1(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),l0(e.return,t,n)}
vendor: 5,382 bytes, line 40
40function Mm(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function aC(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Hn(e,t,r.children,n),r=Ot.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&y1(e,n,t);else if(e.tag===19)y1(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(wt(Ot,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&of(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Mm(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&of(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Mm(t,!0,n,null,i);break;case"together":Mm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ch(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function di(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),to|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ne(153));if(t.child!==null){for(e=t.child,n=sa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function R3(e,t,n){switch(t.tag){case 3:sC(t),Tl();break;case 5:OS(t);break;case 1:ar(t.type)&&ef(t);break;case 4:Ev(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;wt(rf,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(wt(Ot,Ot.current&1),t.flags|=128,null):n&t.child.childLanes?iC(e,t,n):(wt(Ot,Ot.current&1),e=di(e,t,n),e!==null?e.sibling:null);wt(Ot,Ot.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return aC(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),wt(Ot,Ot.current),r)break;return null;case 22:case 23:return t.lanes=0,nC(e,t,n)}return di(e,t,n)}var oC,g0,lC,uC;oC=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};g0=function(){};lC=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ja(Ds.current);var i=null;switch(n){case"input":s=Fg(e,s),r=Fg(e,r),i=[];break;case"select":s=jt({},s,{value:void 0}),r=jt({},r,{value:void 0}),i=[];break;case"textarea":s=Hg(e,s),r=Hg(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Jh)}zg(n,r);var a;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var o=s[c];for(a in o)o.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(lc.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(o=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&u!==o&&(u!=null||o!=null))if(c==="style")if(o){for(a in o)!o.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&o[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,o=o?o.__html:void 0,u!=null&&o!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(lc.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Tt("scroll",e),i||o===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};uC=function(e,t,n,r){n!==r&&(t.flags|=4)};function pu(e,t){if(!Rt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function I3(e,t,n){var r=t.pendingProps;switch(mv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rn(t),null;case 1:return ar(t.type)&&Zh(),Rn(t),null;case 3:return r=t.stateNode,Cl(),kt(ir),kt(Dn),Tv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,os!==null&&(T0(os),os=null))),g0(e,t),Rn(t),null;case 5:_v(t);var s=ja(xc.current);
vendor: 9,992 bytes, line 40
40if(n=t.type,e!==null&&t.stateNode!=null)lC(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ne(166));return Rn(t),null}if(e=ja(Ds.current),Wd(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ns]=t,r[vc]=i,e=(t.mode&1)!==0,n){case"dialog":Tt("cancel",r),Tt("close",r);break;case"iframe":case"object":case"embed":Tt("load",r);break;case"video":case"audio":for(s=0;s<Iu.length;s++)Tt(Iu[s],r);break;case"source":Tt("error",r);break;case"img":case"image":case"link":Tt("error",r),Tt("load",r);break;case"details":Tt("toggle",r);break;case"input":Cx(r,i),Tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Tt("invalid",r);break;case"textarea":Nx(r,i),Tt("invalid",r)}zg(n,i),s=null;for(var a in i)if(i.hasOwnProperty(a)){var o=i[a];a==="children"?typeof o=="string"?r.textContent!==o&&(i.suppressHydrationWarning!==!0&&Vd(r.textContent,o,e),s=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(i.suppressHydrationWarning!==!0&&Vd(r.textContent,o,e),s=["children",""+o]):lc.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&Tt("scroll",r)}switch(n){case"input":Ld(r),kx(r,i,!0);break;case"textarea":Ld(r),Ax(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Jh)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=MT(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ns]=t,e[vc]=r,oC(e,t,!1,!1),t.stateNode=e;e:{switch(a=Vg(n,r),n){case"dialog":Tt("cancel",e),Tt("close",e),s=r;break;case"iframe":case"object":case"embed":Tt("load",e),s=r;break;case"video":case"audio":for(s=0;s<Iu.length;s++)Tt(Iu[s],e);s=r;break;case"source":Tt("error",e),s=r;break;case"img":case"image":case"link":Tt("error",e),Tt("load",e),s=r;break;case"details":Tt("toggle",e),s=r;break;case"input":Cx(e,r),s=Fg(e,r),Tt("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=jt({},r,{value:void 0}),Tt("invalid",e);break;case"textarea":Nx(e,r),s=Hg(e,r),Tt("invalid",e);break;default:s=r}zg(n,s),o=s;for(i in o)if(o.hasOwnProperty(i)){var u=o[i];i==="style"?UT(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&FT(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&uc(e,u):typeof u=="number"&&uc(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(lc.hasOwnProperty(i)?u!=null&&i==="onScroll"&&Tt("scroll",e):u!=null&&ev(e,i,u,a))}switch(n){case"input":Ld(e),kx(e,r,!1);break;case"textarea":Ld(e),Ax(e);break;case"option":r.value!=null&&e.setAttribute("value",""+la(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Qo(e,!!r.multiple,i,!1):r.defaultValue!=null&&Qo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Jh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Rn(t),null;case 6:if(e&&t.stateNode!=null)uC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ne(166));if(n=ja(xc.current),ja(Ds.current),Wd(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ns]=t,(i=r.nodeValue!==n)&&(e=_r,e!==null))switch(e.tag){case 3:Vd(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vd(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ns]=t,t.stateNode=r}return Rn(t),null;case 13:if(kt(Ot),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Rt&&xr!==null&&t.mode&1&&!(t.flags&128))kS(),Tl(),t.flags|=98560,i=!1;else if(i=Wd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(ne(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ne(317));i[Ns]=t}else Tl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rn(t),i=!1}else os!==null&&(T0(os),os=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ot.current&1?un===0&&(un=3):Lv())),t.updateQueue!==null&&(t.flags|=4),Rn(t),null);case 4:return Cl(),g0(e,t),e===null&&gc(t.stateNode.containerInfo),Rn(t),null;case 10:return bv(t.type._context),Rn(t),null;case 17:return ar(t.type)&&Zh(),Rn(t),null;case 19:if(kt(Ot),i=t.memoizedState,i===null)return Rn(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)pu(i,!1);else{if(un!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=of(e),a!==null){for(t.flags|=128,pu(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return wt(Ot,Ot.current&1|2),t.child}e=e.sibling}i.tail!==null&&Wt()>Nl&&(t.flags|=128,r=!0,pu(i,!1),t.lanes=4194304)}else{if(!r)if(e=of(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Rt)return Rn(t),null}else 2*Wt()-i.renderingStartTime>Nl&&n!==1073741824&&(t.flags|=128,r=!0,pu(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Wt(),t.sibling=null,n=Ot.current,wt(Ot,r?n&1|2:n&1),t):(Rn(t),null);case 22:case 23:return jv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pr&1073741824&&(Rn(t),t.subtreeFlags&6&&(t.flags|=8192)):Rn(t),null;case 24:return null;case 25:return null}throw Error(ne(156,t.tag))}function O3(e,t){switch(mv(t),t.tag){case 1:return ar(t.type)&&Zh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cl(),kt(ir),kt(Dn),Tv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _v(t),null;case 13:if(kt(Ot),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ne(340));Tl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return kt(Ot),null;case 4:return Cl(),null;case 10:return bv(t.type._context),null;case 22:case 23:return jv(),null;case 24:return null;default:return null}}var Kd=!1,On=!1,P3=typeof WeakSet=="function"?WeakSet:Set,ye=null;function qo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){zt(e,t,r)}else n.current=null}function y0(e,t,n){try{n()}catch(r){zt(e,t,r)}}var v1=!1;function D3(e,t){if(e0=Gh,e=pS(),fv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,o=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||s!==0&&h.nodeType!==3||(o=a+s),h!==i||r!==0&&h.nodeType!==3||(u=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++c===s&&(o=a),p===i&&++d===r&&(u=a),(f=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=f}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(t0={focusedElem:e,selectionRange:n},Gh=!1,ye=t;ye!==null;)if(t=ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ye=e;else for(;ye!==null;){t=ye;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var m=w.memoizedProps,x=w.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:ts(t.type,m),x);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(T){zt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ye=e;break}ye=t.return}return w=v1,v1=!1,w}function zu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&y0(t,n,i)}s=s.next}while(s!==r)}}function ip(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function v0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function cC(e){var t=e.alternate;t!==null&&(e.alternate=null,cC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ns],delete t[vc],delete t[s0],delete t[g3],delete t[y3])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dC(e){return e.tag===5||e.tag===3||e.tag===4}function b1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}
vendor: 1,563 bytes, line 40
40function b0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jh));else if(r!==4&&(e=e.child,e!==null))for(b0(e,t,n),e=e.sibling;e!==null;)b0(e,t,n),e=e.sibling}function x0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(x0(e,t,n),e=e.sibling;e!==null;)x0(e,t,n),e=e.sibling}var Sn=null,is=!1;function bi(e,t,n){for(n=n.child;n!==null;)hC(e,t,n),n=n.sibling}function hC(e,t,n){if(Ps&&typeof Ps.onCommitFiberUnmount=="function")try{Ps.onCommitFiberUnmount(Xf,n)}catch{}switch(n.tag){case 5:On||qo(n,t);case 6:var r=Sn,s=is;Sn=null,bi(e,t,n),Sn=r,is=s,Sn!==null&&(is?(e=Sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sn.removeChild(n.stateNode));break;case 18:Sn!==null&&(is?(e=Sn,n=n.stateNode,e.nodeType===8?Rm(e.parentNode,n):e.nodeType===1&&Rm(e,n),fc(e)):Rm(Sn,n.stateNode));break;case 4:r=Sn,s=is,Sn=n.stateNode.containerInfo,is=!0,bi(e,t,n),Sn=r,is=s;break;case 0:case 11:case 14:case 15:if(!On&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&y0(n,t,a),s=s.next}while(s!==r)}bi(e,t,n);break;case 1:if(!On&&(qo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){zt(n,t,o)}
vendor: 21,795 bytes, line 40
40bi(e,t,n);break;case 21:bi(e,t,n);break;case 22:n.mode&1?(On=(r=On)||n.memoizedState!==null,bi(e,t,n),On=r):bi(e,t,n);break;default:bi(e,t,n)}}function x1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new P3),t.forEach(function(r){var s=z3.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Xr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,a=t,o=a;e:for(;o!==null;){switch(o.tag){case 5:Sn=o.stateNode,is=!1;break e;case 3:Sn=o.stateNode.containerInfo,is=!0;break e;case 4:Sn=o.stateNode.containerInfo,is=!0;break e}o=o.return}if(Sn===null)throw Error(ne(160));hC(i,a,s),Sn=null,is=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){zt(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)fC(t,e),t=t.sibling}function fC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xr(t,e),ws(e),r&4){try{zu(3,e,e.return),ip(3,e)}catch(m){zt(e,e.return,m)}try{zu(5,e,e.return)}catch(m){zt(e,e.return,m)}}break;case 1:Xr(t,e),ws(e),r&512&&n!==null&&qo(n,n.return);break;case 5:if(Xr(t,e),ws(e),r&512&&n!==null&&qo(n,n.return),e.flags&32){var s=e.stateNode;try{uc(s,"")}catch(m){zt(e,e.return,m)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,o=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{o==="input"&&i.type==="radio"&&i.name!=null&&jT(s,i),Vg(o,a);var c=Vg(o,i);for(a=0;a<u.length;a+=2){var d=u[a],h=u[a+1];d==="style"?UT(s,h):d==="dangerouslySetInnerHTML"?FT(s,h):d==="children"?uc(s,h):ev(s,d,h,c)}switch(o){case"input":Bg(s,i);break;case"textarea":LT(s,i);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?Qo(s,!!i.multiple,f,!1):p!==!!i.multiple&&(i.defaultValue!=null?Qo(s,!!i.multiple,i.defaultValue,!0):Qo(s,!!i.multiple,i.multiple?[]:"",!1))}s[vc]=i}catch(m){zt(e,e.return,m)}}break;case 6:if(Xr(t,e),ws(e),r&4){if(e.stateNode===null)throw Error(ne(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(m){zt(e,e.return,m)}}break;case 3:if(Xr(t,e),ws(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fc(t.containerInfo)}catch(m){zt(e,e.return,m)}break;case 4:Xr(t,e),ws(e);break;case 13:Xr(t,e),ws(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Pv=Wt())),r&4&&x1(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(On=(c=On)||d,Xr(t,e),On=c):Xr(t,e),ws(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(ye=e,d=e.child;d!==null;){for(h=ye=d;ye!==null;){switch(p=ye,f=p.child,p.tag){case 0:case 11:case 14:case 15:zu(4,p,p.return);break;case 1:qo(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(m){zt(r,n,m)}}break;case 5:qo(p,p.return);break;case 22:if(p.memoizedState!==null){E1(h);continue}}f!==null?(f.return=p,ye=f):E1(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(o=h.stateNode,u=h.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,o.style.display=BT("display",a))}catch(m){zt(e,e.return,m)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(m){zt(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Xr(t,e),ws(e),r&4&&x1(e);break;case 21:break;default:Xr(t,e),ws(e)}}function ws(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(dC(n)){var r=n;break e}n=n.return}throw Error(ne(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(uc(s,""),r.flags&=-33);var i=b1(e);x0(e,i,s);break;case 3:case 4:var a=r.stateNode.containerInfo,o=b1(e);b0(e,o,a);break;default:throw Error(ne(161))}}catch(u){zt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function j3(e,t,n){ye=e,pC(e)}function pC(e,t,n){for(var r=(e.mode&1)!==0;ye!==null;){var s=ye,i=s.child;if(s.tag===22&&r){var a=s.memoizedState!==null||Kd;if(!a){var o=s.alternate,u=o!==null&&o.memoizedState!==null||On;o=Kd;var c=On;if(Kd=a,(On=u)&&!c)for(ye=s;ye!==null;)a=ye,u=a.child,a.tag===22&&a.memoizedState!==null?_1(s):u!==null?(u.return=a,ye=u):_1(s);for(;i!==null;)ye=i,pC(i),i=i.sibling;ye=s,Kd=o,On=c}w1(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,ye=i):w1(e)}}function w1(e){for(;ye!==null;){var t=ye;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:On||ip(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!On)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:ts(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&i1(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}i1(t,a,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&fc(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ne(163))}On||t.flags&512&&v0(t)}catch(p){zt(t,t.return,p)}}if(t===e){ye=null;break}if(n=t.sibling,n!==null){n.return=t.return,ye=n;break}ye=t.return}}function E1(e){for(;ye!==null;){var t=ye;if(t===e){ye=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ye=n;break}ye=t.return}}function _1(e){for(;ye!==null;){var t=ye;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ip(4,t)}catch(u){zt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){zt(t,s,u)}}var i=t.return;try{v0(t)}catch(u){zt(t,i,u)}break;case 5:var a=t.return;try{v0(t)}catch(u){zt(t,a,u)}}}catch(u){zt(t,t.return,u)}if(t===e){ye=null;break}var o=t.sibling;if(o!==null){o.return=t.return,ye=o;break}ye=t.return}}var L3=Math.ceil,cf=gi.ReactCurrentDispatcher,Iv=gi.ReactCurrentOwner,Hr=gi.ReactCurrentBatchConfig,et=0,bn=null,en=null,Cn=0,pr=0,Yo=ma(0),un=0,Tc=null,to=0,ap=0,Ov=0,Vu=null,tr=null,Pv=0,Nl=1/0,Qs=null,df=!1,w0=null,na=null,Gd=!1,Yi=null,hf=0,Wu=0,E0=null,kh=-1,Nh=0;function Wn(){return et&6?Wt():kh!==-1?kh:kh=Wt()}function ra(e){return e.mode&1?et&2&&Cn!==0?Cn&-Cn:b3.transition!==null?(Nh===0&&(Nh=JT()),Nh):(e=mt,e!==0||(e=window.event,e=e===void 0?16:iS(e.type)),e):1}function ds(e,t,n,r){if(50<Wu)throw Wu=0,E0=null,Error(ne(185));rd(e,n,r),(!(et&2)||e!==bn)&&(e===bn&&(!(et&2)&&(ap|=n),un===4&&Di(e,Cn)),or(e,r),n===1&&et===0&&!(t.mode&1)&&(Nl=Wt()+500,np&&ga()))}function or(e,t){var n=e.callbackNode;bP(e,t);var r=Kh(e,e===bn?Cn:0);if(r===0)n!==null&&Ox(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ox(n),t===1)e.tag===0?v3(T1.bind(null,e)):TS(T1.bind(null,e)),p3(function(){!(et&6)&&ga()}),n=null;else{switch(ZT(r)){case 1:n=iv;break;case 4:n=QT;break;case 16:n=Yh;break;case 536870912:n=XT;break;default:n=Yh}n=EC(n,mC.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function mC(e,t){if(kh=-1,Nh=0,et&6)throw Error(ne(327));var n=e.callbackNode;if(tl()&&e.callbackNode!==n)return null;var r=Kh(e,e===bn?Cn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ff(e,r);else{t=r;var s=et;et|=2;var i=yC();(bn!==e||Cn!==t)&&(Qs=null,Nl=Wt()+500,Ga(e,t));do try{B3();break}catch(o){gC(e,o)}while(!0);vv(),cf.current=i,et=s,en!==null?t=0:(bn=null,Cn=0,t=un)}if(t!==0){if(t===2&&(s=Gg(e),s!==0&&(r=s,t=_0(e,s))),t===1)throw n=Tc,Ga(e,0),Di(e,r),or(e,Wt()),n;if(t===6)Di(e,r);else{if(s=e.current.alternate,!(r&30)&&!M3(s)&&(t=ff(e,r),t===2&&(i=Gg(e),i!==0&&(r=i,t=_0(e,i))),t===1))throw n=Tc,Ga(e,0),Di(e,r),or(e,Wt()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(ne(345));case 2:ka(e,tr,Qs);break;case 3:if(Di(e,r),(r&130023424)===r&&(t=Pv+500-Wt(),10<t)){if(Kh(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Wn(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=r0(ka.bind(null,e,tr,Qs),t);break}ka(e,tr,Qs);break;case 4:if(Di(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var a=31-cs(r);i=1<<a,a=t[a],a>s&&(s=a),r&=~i}if(r=s,r=Wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*L3(r/1960))-r,10<r){e.timeoutHandle=r0(ka.bind(null,e,tr,Qs),r);break}ka(e,tr,Qs);break;case 5:ka(e,tr,Qs);break;default:throw Error(ne(329))}}}return or(e,Wt()),e.callbackNode===n?mC.bind(null,e):null}function _0(e,t){var n=Vu;return e.current.memoizedState.isDehydrated&&(Ga(e,t).flags|=256),e=ff(e,t),e!==2&&(t=tr,tr=n,t!==null&&T0(t)),e}function T0(e){tr===null?tr=e:tr.push.apply(tr,e)}function M3(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!ps(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Di(e,t){for(t&=~Ov,t&=~ap,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-cs(t),r=1<<n;e[n]=-1,t&=~r}}function T1(e){if(et&6)throw Error(ne(327));tl();var t=Kh(e,0);if(!(t&1))return or(e,Wt()),null;var n=ff(e,t);if(e.tag!==0&&n===2){var r=Gg(e);r!==0&&(t=r,n=_0(e,r))}if(n===1)throw n=Tc,Ga(e,0),Di(e,t),or(e,Wt()),n;if(n===6)throw Error(ne(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ka(e,tr,Qs),or(e,Wt()),null}function Dv(e,t){var n=et;et|=1;try{return e(t)}finally{et=n,et===0&&(Nl=Wt()+500,np&&ga())}}function no(e){Yi!==null&&Yi.tag===0&&!(et&6)&&tl();var t=et;et|=1;var n=Hr.transition,r=mt;try{if(Hr.transition=null,mt=1,e)return e()}finally{mt=r,Hr.transition=n,et=t,!(et&6)&&ga()}}function jv(){pr=Yo.current,kt(Yo)}function Ga(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,f3(n)),en!==null)for(n=en.return;n!==null;){var r=n;switch(mv(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Zh();break;case 3:Cl(),kt(ir),kt(Dn),Tv();break;case 5:_v(r);break;case 4:Cl();break;case 13:kt(Ot);break;case 19:kt(Ot);break;case 10:bv(r.type._context);break;case 22:case 23:jv()}n=n.return}if(bn=e,en=e=sa(e.current,null),Cn=pr=t,un=0,Tc=null,Ov=ap=to=0,tr=Vu=null,Da!==null){for(t=0;t<Da.length;t++)if(n=Da[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=s,r.next=a}n.pending=r}Da=null}return e}function gC(e,t){do{var n=en;try{if(vv(),Th.current=uf,lf){for(var r=Dt.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}lf=!1}if(eo=0,mn=an=Dt=null,$u=!1,wc=0,Iv.current=null,n===null||n.return===null){un=1,Tc=t,en=null;break}e:{var i=e,a=n.return,o=n,u=t;if(t=Cn,o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=o,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=d1(a);if(f!==null){f.flags&=-257,h1(f,a,o,i,t),f.mode&1&&c1(i,c,t),t=f,u=c;var w=t.updateQueue;if(w===null){var m=new Set;m.add(u),t.updateQueue=m}else w.add(u);break e}else{if(!(t&1)){c1(i,c,t),Lv();break e}u=Error(ne(426))}}else if(Rt&&o.mode&1){var x=d1(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),h1(x,a,o,i,t),gv(kl(u,o));break e}}i=u=kl(u,o),un!==4&&(un=2),Vu===null?Vu=[i]:Vu.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=ZS(i,u,t);s1(i,v);break e;case 1:o=u;var b=i.type,E=i.stateNode;if(!(i.flags&128)&&(typeof b.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(na===null||!na.has(E)))){i.flags|=65536,t&=-t,i.lanes|=t;var T=eC(i,o,t);s1(i,T);break e}}i=i.return}while(i!==null)}bC(n)}catch(C){t=C,en===n&&n!==null&&(en=n=n.return);continue}break}while(!0)}function yC(){var e=cf.current;return cf.current=uf,e===null?uf:e}function Lv(){(un===0||un===3||un===2)&&(un=4),bn===null||!(to&268435455)&&!(ap&268435455)||Di(bn,Cn)}function ff(e,t){var n=et;et|=2;var r=yC();(bn!==e||Cn!==t)&&(Qs=null,Ga(e,t));do try{F3();break}catch(s){gC(e,s)}while(!0);if(vv(),et=n,cf.current=r,en!==null)throw Error(ne(261));return bn=null,Cn=0,un}function F3(){for(;en!==null;)vC(en)}function B3(){for(;en!==null&&!cP();)vC(en)}function vC(e){var t=wC(e.alternate,e,pr);e.memoizedProps=e.pendingProps,t===null?bC(e):en=t,Iv.current=null}function bC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=O3(n,t),n!==null){n.flags&=32767,en=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{un=6,en=null;return}}else if(n=I3(n,t,pr),n!==null){en=n;return}if(t=t.sibling,t!==null){en=t;return}en=t=e}while(t!==null);un===0&&(un=5)}function ka(e,t,n){var r=mt,s=Hr.transition;try{Hr.transition=null,mt=1,U3(e,t,n,r)}finally{Hr.transition=s,mt=r}return null}function U3(e,t,n,r){do tl();while(Yi!==null);if(et&6)throw Error(ne(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ne(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(xP(e,i),e===bn&&(en=bn=null,Cn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Gd||(Gd=!0,EC(Yh,function(){return tl(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Hr.transition,Hr.transition=null;var a=mt;mt=1;var o=et;et|=4,Iv.current=null,D3(e,n),fC(n,e),a3(t0),Gh=!!e0,t0=e0=null,e.current=n,j3(n),dP(),et=o,mt=a,Hr.transition=i}else e.current=n;if(Gd&&(Gd=!1,Yi=e,hf=s),i=e.pendingLanes,i===0&&(na=null),pP(n.stateNode),or(e,Wt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(df)throw df=!1,e=w0,w0=null,e;return hf&1&&e.tag!==0&&tl(),i=e.pendingLanes,i&1?e===E0?Wu++:(Wu=0,E0=e):Wu=0,ga(),null}function tl(){if(Yi!==null){var e=ZT(hf),t=Hr.transition,n=mt;try{if(Hr.transition=null,mt=16>e?16:e,Yi===null)var r=!1;else{if(e=Yi,Yi=null,hf=0,et&6)throw Error(ne(331));var s=et;for(et|=4,ye=e.current;ye!==null;){var i=ye,a=i.child;if(ye.flags&16){var o=i.deletions;if(o!==null){for(var u=0;u<o.length;u++){var c=o[u];for(ye=c;ye!==null;){var d=ye;switch(d.tag){case 0:case 11:case 15:zu(8,d,i)}var h=d.child;if(h!==null)h.return=d,ye=h;else for(;ye!==null;){d=ye;var p=d.sibling,f=d.return;if(cC(d),d===c){ye=null;break}if(p!==null){p.return=f,ye=p;break}ye=f}}}var w=i.alternate;if(w!==null){var m=w.child;if(m!==null){w.child=null;do{var x=m.sibling;m.sibling=null,m=x}while(m!==null)}}ye=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,ye=a;else e:for(;ye!==null;){if(i=ye,i.flags&2048)switch(i.tag){case 0:case 11:case 15:zu(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,ye=v;break e}ye=i.return}}var b=e.current;for(ye=b;ye!==null;){a=ye;var E=a.child;if(a.subtreeFlags&2064&&E!==null)E.return=a,ye=E;else e:for(a=b;ye!==null;){if(o=ye,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:ip(9,o)}}catch(C){zt(o,o.return,C)}if(o===a){ye=null;break e}var T=o.sibling;if(T!==null){T.return=o.return,ye=T;break e}ye=o.return}}if(et=s,ga(),Ps&&typeof Ps.onPostCommitFiberRoot=="function")try{Ps.onPostCommitFiberRoot(Xf,e)}catch{}r=!0}return r}finally{mt=n,Hr.transition=t}}return!1}function S1(e,t,n){t=kl(n,t),t=ZS(e,t,1),e=ta(e,t,1),t=Wn(),e!==null&&(rd(e,1,t),or(e,t))}function zt(e,t,n){if(e.tag===3)S1(e,e,n);else for(;t!==null;){if(t.tag===3){S1(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(na===null||!na.has(r))){e=kl(n,e),e=eC(t,e,1),t=ta(t,e,1),e=Wn(),t!==null&&(rd(t,1,e),or(t,e));break}}t=t.return}}function H3(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Wn(),e.pingedLanes|=e.suspendedLanes&n,bn===e&&(Cn&n)===n&&(un===4||un===3&&(Cn&130023424)===Cn&&500>Wt()-Pv?Ga(e,0):Ov|=n),or(e,t)}function xC(e,t){t===0&&(e.mode&1?(t=Bd,Bd<<=1,!(Bd&130023424)&&(Bd=4194304)):t=1);var n=Wn();e=ci(e,t),e!==null&&(rd(e,t,n),or(e,n))}function $3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xC(e,n)}function z3(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ne(314))}r!==null&&r.delete(t),xC(e,n)}var wC;wC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ir.current)sr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return sr=!1,R3(e,t,n);sr=!!(e.flags&131072)}else sr=!1,Rt&&t.flags&1048576&&SS(t,nf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ch(e,t),e=t.pendingProps;var s=_l(t,Dn.current);el(t,n),s=Cv(null,t,r,e,s,n);var i=kv();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ar(r)?(i=!0,ef(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,wv(t),s.updater=sp,t.stateNode=s,s._reactInternals=t,c0(t,r,e,n),t=f0(null,t,r,!0,i,n)):(t.tag=0,Rt&&i&&pv(t),Hn(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ch(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=W3(r),e=ts(r,e),s){case 0:t=h0(null,t,r,e,n);break e;case 1:t=m1(null,t,r,e,n);break e;case 11:t=f1(null,t,r,e,n);break e;case 14:t=p1(null,t,r,ts(r.type,e),n);break e}throw Error(ne(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ts(r,s),h0(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ts(r,s),m1(e,t,r,s,n);case 3:e:{if(sC(t),e===null)throw Error(ne(387));r=t.pendingProps,i=t.memoizedState,s=i.element,IS(e,t),af(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=kl(Error(ne(423)),t),t=g1(e,t,r,n,s);break e}else if(r!==s){s=kl(Error(ne(424)),t),t=g1(e,t,r,n,s);break e}else for(xr=ea(t.stateNode.containerInfo.firstChild),_r=t,Rt=!0,os=null,n=AS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Tl(),r===s){t=di(e,t,n);break e}Hn(e,t,r,n)}t=t.child}return t;case 5:return OS(t),e===null&&o0(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,n0(r,s)?a=null:i!==null&&n0(r,i)&&(t.flags|=32),rC(e,t),Hn(e,t,a,n),t.child;case 6:return e===null&&o0(t),null;case 13:return iC(e,t,n);case 4:return Ev(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sl(t,null,r,n):Hn(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ts(r,s),f1(e,t,r,s,n);case 7:return Hn(e,t,t.pendingProps,n),t.child;case 8:return Hn(e,t,t.pendingProps.children,n),t.child;case 12:return Hn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,wt(rf,r._currentValue),r._currentValue=a,i!==null)if(ps(i.value,a)){if(i.children===s.children&&!ir.current){t=di(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){a=i.child;for(var u=o.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=ii(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),l0(i.return,n,t),o.lanes|=n;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ne(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),l0(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Hn(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,el(t,n),s=Wr(s),r=r(s),t.flags|=1,Hn(e,t,r,n),t.child;case 14:return r=t.type,s=ts(r,t.pendingProps),s=ts(r.type,s),p1(e,t,r,s,n);case 15:return tC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ts(r,s),Ch(e,t),t.tag=1,ar(r)?(e=!0,ef(t)):e=!1,el(t,n),JS(t,r,s),c0(t,r,s,n),f0(null,t,r,!0,e,n);case 19:return aC(e,t,n);case 22:return nC(e,t,n)}throw Error(ne(156,t.tag))};function EC(e,t){return GT(e,t)}function V3(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ur(e,t,n,r){return new V3(e,t,n,r)}function Mv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function W3(e){if(typeof e=="function")return Mv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nv)return 11;if(e===rv)return 14}return 2}function sa(e,t){var n=e.alternate;return n===null?(n=Ur(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 4,326 bytes, line 40
40ons=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ah(e,t,n,r,s,i){var a=2;if(r=e,typeof e=="function")Mv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mo:return Qa(n.children,s,i,t);case tv:a=8,s|=8;break;case Dg:return e=Ur(12,n,t,s|2),e.elementType=Dg,e.lanes=i,e;case jg:return e=Ur(13,n,t,s),e.elementType=jg,e.lanes=i,e;case Lg:return e=Ur(19,n,t,s),e.elementType=Lg,e.lanes=i,e;case OT:return op(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case RT:a=10;break e;case IT:a=9;break e;case nv:a=11;break e;case rv:a=14;break e;case Ni:a=16,r=null;break e}throw Error(ne(130,e==null?e:typeof e,""))}return t=Ur(a,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Qa(e,t,n,r){return e=Ur(7,e,r,t),e.lanes=n,e}function op(e,t,n,r){return e=Ur(22,e,r,t),e.elementType=OT,e.lanes=n,e.stateNode={isHidden:!1},e}function Fm(e,t,n){return e=Ur(6,e,null,t),e.lanes=n,e}function Bm(e,t,n){return t=Ur(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function q3(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bm(0),this.expirationTimes=bm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bm(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Fv(e,t,n,r,s,i,a,o,u){return e=new q3(e,t,n,o,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ur(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wv(i),e}function Y3(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Lo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _C(e){if(!e)return ua;e=e._reactInternals;e:{if(fo(e)!==e||e.tag!==1)throw Error(ne(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ar(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ne(171))}if(e.tag===1){var n=e.type;if(ar(n))return _S(e,n,t)}return t}function TC(e,t,n,r,s,i,a,o,u){return e=Fv(n,r,!0,e,s,i,a,o,u),e.context=_C(null),n=e.current,r=Wn(),s=ra(n),i=ii(r,s),i.callback=t??null,ta(n,i,s),e.current.lanes=s,rd(e,s,r),or(e,r),e}function lp(e,t,n,r){var s=t.current,i=Wn(),a=ra(s);return n=_C(n),t.context===null?t.context=n:t.pendingContext=n,t=ii(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ta(s,t,a),e!==null&&(ds(e,s,a,i),_h(e,s,a)),a}function pf(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function C1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bv(e,t){C1(e,t),(e=e.alternate)&&C1(e,t)}function K3(){return null}var SC=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uv(e){this._internalRoot=e}up.prototype.render=Uv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ne(409));lp(e,t,null,null)};up.prototype.unmount=Uv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;no(function(){lp(null,e,null,null)}),t[ui]=null}};function up(e){this._internalRoot=e}up.prototype.unstable_scheduleHydration=function(e){if(e){var t=nS();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pi.length&&t!==0&&t<Pi[n].priority;n++);Pi.splice(n,0,e),n===0&&sS(e)}};function Hv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function cp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function k1(){}
vendor: 5,386 bytes, line 40
40function G3(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=pf(a);i.call(c)}}var a=TC(t,r,e,0,null,!1,!1,"",k1);return e._reactRootContainer=a,e[ui]=a.current,gc(e.nodeType===8?e.parentNode:e),no(),a}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var o=r;r=function(){var c=pf(u);o.call(c)}}var u=Fv(e,0,!1,null,null,!1,!1,"",k1);return e._reactRootContainer=u,e[ui]=u.current,gc(e.nodeType===8?e.parentNode:e),no(function(){lp(t,u,n,r)}),u}function dp(e,t,n,r,s){var i=n._reactRootContainer;if(i){var a=i;if(typeof s=="function"){var o=s;s=function(){var u=pf(a);o.call(u)}}lp(t,a,e,s)}else a=G3(n,t,e,s,r);return pf(a)}eS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ru(t.pendingLanes);n!==0&&(av(t,n|1),or(t,Wt()),!(et&6)&&(Nl=Wt()+500,ga()))}break;case 13:no(function(){var r=ci(e,1);if(r!==null){var s=Wn();ds(r,e,1,s)}}),Bv(e,1)}};ov=function(e){if(e.tag===13){var t=ci(e,134217728);if(t!==null){var n=Wn();ds(t,e,134217728,n)}Bv(e,134217728)}};tS=function(e){if(e.tag===13){var t=ra(e),n=ci(e,t);if(n!==null){var r=Wn();ds(n,e,t,r)}Bv(e,t)}};nS=function(){return mt};rS=function(e,t){var n=mt;try{return mt=e,t()}finally{mt=n}};qg=function(e,t,n){switch(t){case"input":if(Bg(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=tp(r);if(!s)throw Error(ne(90));DT(r),Bg(r,s)}}}break;case"textarea":LT(e,n);break;case"select":t=n.value,t!=null&&Qo(e,!!n.multiple,t,!1)}};zT=Dv;VT=no;var Q3={usingClientEntryPoint:!1,Events:[id,Ho,tp,HT,$T,Dv]},mu={findFiberByHostInstance:Pa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},X3={bundleType:mu.bundleType,version:mu.version,rendererPackageName:mu.rendererPackageName,rendererConfig:mu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=YT(e),e===null?null:e.stateNode},findFiberByHostInstance:mu.findFiberByHostInstance||K3,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qd.isDisabled&&Qd.supportsFiber)try{Xf=Qd.inject(X3),Ps=Qd}catch{}}Ar.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q3;Ar.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hv(t))throw Error(ne(200));return Y3(e,t,null,n)};Ar.createRoot=function(e,t){if(!Hv(e))throw Error(ne(299));var n=!1,r="",s=SC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Fv(e,1,!1,null,null,n,!1,r,s),e[ui]=t.current,gc(e.nodeType===8?e.parentNode:e),new Uv(t)};Ar.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ne(188)):(e=Object.keys(e).join(","),Error(ne(268,e)));return e=YT(t),e=e===null?null:e.stateNode,e};Ar.flushSync=function(e){return no(e)};Ar.hydrate=function(e,t,n){if(!cp(t))throw Error(ne(200));return dp(null,e,t,!0,n)};Ar.hydrateRoot=function(e,t,n){if(!Hv(e))throw Error(ne(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",a=SC;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=TC(t,null,e,1,n??null,s,!1,i,a),e[ui]=t.current,gc(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new up(t)};Ar.render=function(e,t,n){if(!cp(t))throw Error(ne(200));return dp(null,e,t,!1,n)};Ar.unmountComponentAtNode=function(e){if(!cp(e))throw Error(ne(40));return e._reactRootContainer?(no(function(){dp(null,null,e,!1,function(){e._reactRootContainer=null,e[ui]=null})}),!0):!1};Ar.unstable_batchedUpdates=Dv;Ar.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!cp(n))throw Error(ne(200));if(e==null||e._reactInternals===void 0)throw Error(ne(38));return dp(e,t,n,!1,r)};Ar.version="18.3.1-next-f1338f8080-20240426";function CC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(CC)}catch(e){console.error(e)}}CC(),CT.exports=Ar;var wr=CT.exports;const kC=Gf(wr);var NC,N1=wr;NC=N1.createRoot,N1.hydrateRoot;const J3=1,Z3=1e6;let Um=0;function eD(){return Um=(Um+1)%Number.MAX_SAFE_INTEGER,Um.toString()}const Hm=new Map,A1=e=>{if(Hm.has(e))return;const t=setTimeout(()=>{Hm.delete(e),qu({type:"REMOVE_TOAST",toastId:e})},Z3);Hm.set(e,t)},tD=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,J3)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
vendor: 13,981 bytes, line 40
40return n?A1(n):e.toasts.forEach(r=>{A1(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Rh=[];let Ih={toasts:[]};function qu(e){Ih=tD(Ih,e),Rh.forEach(t=>{t(Ih)})}function nD({...e}){const t=eD(),n=s=>qu({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>qu({type:"DISMISS_TOAST",toastId:t});return qu({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function od(){const[e,t]=y.useState(Ih);return y.useEffect(()=>(Rh.push(t),()=>{const n=Rh.indexOf(t);n>-1&&Rh.splice(n,1)}),[e]),{...e,toast:nD,dismiss:n=>qu({type:"DISMISS_TOAST",toastId:n})}}function Ce(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 R1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function AC(...e){return t=>{let n=!1;const r=e.map(s=>{const i=R1(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():R1(e[s],null)}}}}function tt(...e){return y.useCallback(AC(...e),e)}function rD(e,t){const n=y.createContext(t),r=i=>{const{children:a,...o}=i,u=y.useMemo(()=>o,Object.values(o));return l.jsx(n.Provider,{value:u,children:a})};r.displayName=e+"Provider";function s(i){const a=y.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function Kr(e,t=[]){let n=[];function r(i,a){const o=y.createContext(a),u=n.length;n=[...n,a];const c=h=>{var v;const{scope:p,children:f,...w}=h,m=((v=p==null?void 0:p[e])==null?void 0:v[u])||o,x=y.useMemo(()=>w,Object.values(w));return l.jsx(m.Provider,{value:x,children:f})};c.displayName=i+"Provider";function d(h,p){var m;const f=((m=p==null?void 0:p[e])==null?void 0:m[u])||o,w=y.useContext(f);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[c,d]}const s=()=>{const i=n.map(a=>y.createContext(a));return function(o){const u=(o==null?void 0:o[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return s.scopeName=e,[r,sD(s,...t)]}function sD(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const a=r.reduce((o,{useScope:u,scopeName:c})=>{const h=u(i)[`__scope${c}`];return{...o,...h}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Al(e){const t=iD(e),n=y.forwardRef((r,s)=>{const{children:i,...a}=r,o=y.Children.toArray(i),u=o.find(oD);if(u){const c=u.props.children,d=o.map(h=>h===u?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:h);return l.jsx(t,{...a,ref:s,children:y.isValidElement(c)?y.cloneElement(c,void 0,d):null})}return l.jsx(t,{...a,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var RC=Al("Slot");function iD(e){const t=y.forwardRef((n,r)=>{const{children:s,...i}=n;if(y.isValidElement(s)){const a=uD(s),o=lD(i,s.props);return s.type!==y.Fragment&&(o.ref=r?AC(r,a):a),y.cloneElement(s,o)}return y.Children.count(s)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var IC=Symbol("radix.slottable");function aD(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=IC,t}function oD(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IC}function lD(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...o)=>{const u=i(...o);return s(...o),u}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function uD(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)}function hp(e){const t=e+"CollectionProvider",[n,r]=Kr(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:x,children:v}=m,b=W.useRef(null),E=W.useRef(new Map).current;return l.jsx(s,{scope:x,itemMap:E,collectionRef:b,children:v})};a.displayName=t;const o=e+"CollectionSlot",u=Al(o),c=W.forwardRef((m,x)=>{const{scope:v,children:b}=m,E=i(o,v),T=tt(x,E.collectionRef);return l.jsx(u,{ref:T,children:b})});c.displayName=o;const d=e+"CollectionItemSlot",h="data-radix-collection-item",p=Al(d),f=W.forwardRef((m,x)=>{const{scope:v,children:b,...E}=m,T=W.useRef(null),C=tt(x,T),_=i(d,v);return W.useEffect(()=>(_.itemMap.set(T,{ref:T,...E}),()=>void _.itemMap.delete(T))),l.jsx(p,{[h]:"",ref:C,children:b})});f.displayName=d;function w(m){const x=i(e+"CollectionConsumer",m);return W.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const E=Array.from(b.querySelectorAll(`[${h}]`));return Array.from(x.itemMap.values()).sort((_,k)=>E.indexOf(_.ref.current)-E.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:c,ItemSlot:f},w,r]}var cD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=cD.reduce((e,t)=>{const n=Al(`Primitive.${t}`),r=y.forwardRef((s,i)=>{const{asChild:a,...o}=s,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...o,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function OC(e,t){e&&wr.flushSync(()=>e.dispatchEvent(t))}function Yr(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function dD(e,t=globalThis==null?void 0:globalThis.document){const n=Yr(e);y.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 hD="DismissableLayer",S0="dismissableLayer.update",fD="dismissableLayer.pointerDownOutside",pD="dismissableLayer.focusOutside",I1,PC=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ld=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:a,onDismiss:o,...u}=e,c=y.useContext(PC),[d,h]=y.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=y.useState({}),w=tt(t,k=>h(k)),m=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(x),b=d?m.indexOf(d):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,T=b>=v,C=gD(k=>{const P=k.target,M=[...c.branches].some(F=>F.contains(P));!T||M||(s==null||s(k),a==null||a(k),k.defaultPrevented||o==null||o())},p),_=yD(k=>{const P=k.target;[...c.branches].some(F=>F.contains(P))||(i==null||i(k),a==null||a(k),k.defaultPrevented||o==null||o())},p);return dD(k=>{b===c.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&o&&(k.preventDefault(),o()))},p),y.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(I1=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),O1(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=I1)}},[d,p,n,c]),y.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),O1())},[d,c]),y.useEffect(()=>{const k=()=>f({});return document.addEventListener(S0,k),()=>document.removeEventListener(S0,k)},[]),l.jsx(De.div,{...u,ref:w,style:{pointerEvents:E?T?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,C.onPointerDownCapture)})});ld.displayName=hD;var mD="DismissableLayerBranch",DC=y.forwardRef((e,t)=>{const n=y.useContext(PC),r=y.useRef(null),s=tt(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.jsx(De.div,{...e,ref:s})});DC.displayName=mD;function gD(e,t=globalThis==null?void 0:globalThis.document){const n=Yr(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=o=>{if(o.target&&!r.current){let u=function(){jC(fD,n,c,{discrete:!0})};const c={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=u,t.addEventListener("click",s.current,{once:!0})):u()}else t.removeEventListener("click",s.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function yD(e,t=globalThis==null?void 0:globalThis.document){const n=Yr(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&jC(pD,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function O1(){const e=new CustomEvent(S0);document.dispatchEvent(e)}function jC(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?OC(s,i):s.dispatchEvent(i)}var vD=ld,bD=DC,xn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},xD="Portal",fp=y.forwardRef((e,t)=>{var o;const{container:n,...r}=e,[s,i]=y.useState(!1);xn(()=>i(!0),[]);const a=n||s&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return a?kC.createPortal(l.jsx(De.div,{...r,ref:t}),a):null});fp.displayName=xD;function wD(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var ya=e=>{const{present:t,children:n}=e,r=ED(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=tt(r.ref,_D(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};ya.displayName="Presence";function ED(e){const[t,n]=y.useState(),r=y.useRef(null),s=y.useRef(e),i=y.useRef("none"),a=e?"mounted":"unmounted",[o,u]=wD(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=Xd(r.current);i.current=o==="mounted"?c:"none"},[o]),xn(()=>{const c=r.current,d=s.current;if(d!==e){const p=i.current,f=Xd(c);e?u("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&p!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,u]),xn(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,h=f=>{const m=Xd(r.current).includes(f.animationName);if(f.target===t&&m&&(u("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=f=>{f.target===t&&(i.current=Xd(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:y.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Xd(e){return(e==null?void 0:e.animationName)||"none"}function _D(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)}var TD=Xy[" useInsertionEffect ".trim().toString()]||xn;function Bs({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,a]=SD({defaultProp:t,onChange:n}),o=e!==void 0,u=o?e:s;{const d=y.useRef(e!==void 0);y.useEffect(()=>{const h=d.current;h!==o&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${o?"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.`),d.current=o},[o,r])}const c=y.useCallback(d=>{var h;if(o){const p=CD(d)?d(e):d;p!==e&&((h=a.current)==null||h.call(a,p))}else i(d)},[o,e,i,a]);return[u,c]}function SD({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),s=y.useRef(n),i=y.useRef(t);return TD(()=>{i.current=t},[t]),y.useEffect(()=>{var a;s.current!==n&&((a=i.current)==null||a.call(i,n),s.current=n)},[n,s]),[n,r,i]}function CD(e){return typeof e=="function"}var LC=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"}),kD="VisuallyHidden",pp=y.forwardRef((e,t)=>l.jsx(De.span,{...e,ref:t,style:{...LC,...e.style}}));pp.displayName=kD;var ND=pp,$v="ToastProvider",[zv,AD,RD]=hp("Toast"),[MC,qJ]=Kr("Toast",[RD]),[ID,mp]=MC($v),FC=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:a}=e,[o,u]=y.useState(null),[c,d]=y.useState(0),h=y.useRef(!1),p=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${$v}\`. Expected non-empty \`string\`.`),l.jsx(zv.Provider,{scope:t,children:l.jsx(ID,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:o,onViewportChange:u,onToastAdd:y.useCallback(()=>d(f=>f+1),[]),onToastRemove:y.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:a})})};FC.displayName=$v;var BC="ToastViewport",OD=["F8"],C0="toast.viewportPause",k0="toast.viewportResume",UC=y.forwardRef((e,t)=>
40{const{__scopeToast:n,hotkey:r=OD,label:s="Notifications ({hotkey})",...i}=e,a=mp(BC,n),o=AD(n),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),h=y.useRef(null),p=tt(t,h,a.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=a.toastCount>0;y.useEffect(()=>{const x=v=>{var E;r.length!==0&&r.every(T=>v[T]||v.code===T)&&((E=h.current)==null||E.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),y.useEffect(()=>{const x=u.current,v=h.current;if(w&&x&&v){const b=()=>{if(!a.isClosePausedRef.current){const _=new CustomEvent(C0);v.dispatchEvent(_),a.isClosePausedRef.current=!0}},E=()=>{if(a.isClosePausedRef.current){const _=new CustomEvent(k0);v.dispatchEvent(_),a.isClosePausedRef.current=!1}},T=_=>{!x.contains(_.relatedTarget)&&E()},C=()=>{x.contains(document.activeElement)||E()};return x.addEventListener("focusin",b),x.addEventListener("focusout",T),x.addEventListener("pointermove",b),x.addEventListener("pointerleave",C),window.addEventListener("blur",b),window.addEventListener("focus",E),()=>{x.removeEventListener("focusin",b),x.removeEventListener("focusout",T),x.removeEventListener("pointermove",b),x.removeEventListener("pointerleave",C),window.removeEventListener("blur",b),window.removeEventListener("focus",E)}}},[w,a.isClosePausedRef]);const m=y.useCallback(({tabbingDirection:x})=>{const b=o().map(E=>{const T=E.ref.current,C=[T,...WD(T)];return x==="forwards"?C:C.reverse()});return(x==="forwards"?b.reverse():b).flat()},[o]);return y.useEffect(()=>{const x=h.current;if(x){const v=b=>{var C,_,k;const E=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!E){const P=document.activeElement,M=b.shiftKey;if(b.target===x&&M){(C=c.current)==null||C.focus();return}const j=m({tabbingDirection:M?"backwards":"forwards"}),Y=j.findIndex(z=>z===P);$m(j.slice(Y+1))?b.preventDefault():M?(_=c.current)==null||_.focus():(k=d.current)==null||k.focus()}};return x.addEventListener("keydown",v),()=>x.removeEventListener("keydown",v)}},[o,m]),l.jsxs(bD,{ref:u,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&l.jsx(N0,{ref:c,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"forwards"});$m(x)}}),l.jsx(zv.Slot,{scope:n,children:l.jsx(De.ol,{tabIndex:-1,...i,ref:p})}),w&&l.jsx(N0,{ref:d,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"backwards"});$m(x)}})]})});UC.displayName=BC;var HC="ToastFocusProxy",N0=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=mp(HC,n);return l.jsx(pp,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:a=>{var c;const o=a.relatedTarget;!((c=i.viewport)!=null&&c.contains(o))&&r()}})});N0.displayName=HC;var ud="Toast",PD="toast.swipeStart",DD="toast.swipeMove",jD="toast.swipeCancel",LD="toast.swipeEnd",$C=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...a}=e,[o,u]=Bs({prop:r,defaultProp:s??!0,onChange:i,caller:ud});return l.jsx(ya,{present:n||o,children:l.jsx(BD,{open:o,...a,ref:t,onClose:()=>u(!1),onPause:Yr(e.onPause),onResume:Yr(e.onResume),onSwipeStart:Ce(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ce(e.onSwipeMove,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:Ce(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ce(e.onSwipeEnd,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),u(!1)})})})});$C.displayName=ud;var[MD,FD]=MC(ud,{onClose(){}}),BD=y.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:a,onEscapeKeyDown:o,onPause:u,onResume:c,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:f,...w}=e,m=mp(ud,n),[x,v]=y.useState(null),b=tt(t,z=>v(z)),E=y.useRef(null),T=y.useRef(null),C=s||m.duration,_=y.useRef(0),k=y.useRef(C),P=y.useRef(0),{onToastAdd:M,onToastRemove:F}=m,U=Yr(()=>{var X;(x==null?void 0:x.contains(document.activeElement))&&((X=m.viewport)==null||X.focus()),a()}),j=y.useCallback(z=>{!z||z===1/0||(window.clearTimeout(P.current),_.current=new Date().getTime(),P.current=window.setTimeout(U,z))},[U]);y.useEffect(()=>{const z=m.viewport;if(z){const X=()=>{j(k.current),c==null||c()},Q=()=>{const J=new Date().getTime()-_.current;k.current=k.current-J,window.clearTimeout(P.current),u==null||u()};return z.addEventListener(C0,Q),z.addEventListener(k0,X),()=>{z.removeEventListener(C0,Q),z.removeEventListener(k0,X)}}},[m.viewport,C,u,c,j]),y.useEffect(()=>{i&&!m.isClosePausedRef.current&&j(C)},[i,C,m.isClosePausedRef,j]),y.useEffect(()=>(M(),()=>F()),[M,F]);const Y=y.useMemo(()=>x?GC(x):null,[x]);return m.viewport?l.jsxs(l.Fragment,{children:[Y&&l.jsx(UD,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Y}),l.jsx(MD,{scope:n,onClose:U,children:wr.createPortal(l.jsx(zv.ItemSlot,{scope:n,children:l.jsx(vD,{asChild:!0,onEscapeKeyDown:Ce(o,()=>{m.isFocusedToastEscapeKeyDownRef.current||U(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(De.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...w,ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ce(e.onKeyDown,z=>{z.key==="Escape"&&(o==null||o(z.nativeEvent),z.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:Ce(e.onPointerDown,z=>{z.button===0&&(E.current={x:z.clientX,y:z.clientY})}),onPointerMove:Ce(e.onPointerMove,z=>{if(!E.current)return;const X=z.clientX-E.current.x,Q=z.clientY-E.current.y,J=!!T.current,$=["left","right"].includes(m.swipeDirection),V=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,S=$?V(0,X):0,ue=$?0:V(0,Q),te=z.pointerType==="touch"?10:2,R={x:S,y:ue},pe={originalEvent:z,delta:R};J?(T.current=R,Jd(DD,h,pe,{discrete:!1})):P1(R,m.swipeDirection,te)?(T.current=R,Jd(PD,d,pe,{discrete:!1}),z.target.setPointerCapture(z.pointerId)):(Math.abs(X)>te||Math.abs(Q)>te)&&(E.current=null)}),onPointerUp:Ce(e.onPointerUp,z=>{const X=T.current,Q=z.target;if(Q.hasPointerCapture(z.pointerId)&&Q.releasePointerCapture(z.pointerId),T.current=null,E.current=null,X){const J=z.currentTarget,$={originalEvent:z,delta:X};P1(X,m.swipeDirection,m.swipeThreshold)?Jd(LD,f,$,{discrete:!0}):Jd(jD,p,$,{discrete:!0}),J.addEventListener("click",V=>V.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),UD=e=>{const{__scopeToast:t,children:n,...r}=e,s=mp(ud,t),[i,a]=y.useState(!1),[o,u]=y.useState(!1);return zD(()=>a(!0)),y.useEffect(()=>{const c=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(c)},[]),o?null:l.jsx(fp,{asChild:!0,children:l.jsx(pp,{...r,children:i&&l.jsxs(l.Fragment,{children:[s.label," ",n]})})})},HD="ToastTitle",zC=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(De.div,{...r,ref:t})});zC.displayName=HD;var $D="ToastDescription",VC=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(De.div,{...r,ref:t})});VC.displayName=$D;var WC="ToastAction",qC=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsx(KC,{altText:n,asChild:!0,children:l.jsx(Vv,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${WC}\`. Expected non-empty \`string\`.`),null)});qC.displayName=WC;var YC="ToastClose",Vv=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=FD(YC,n);return l.jsx(KC,{asChild:!0,children:l.jsx(De.button,{type:"button",...r,ref:t,onClick:Ce(e.onClick,s.onClose)})})});Vv.displayName=YC;var KC=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return l.jsx(De.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function GC(e){const t=[];
vendor: 8,938 bytes, lines 40-134
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),VD(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...GC(r))}}),t}function Jd(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?OC(s,i):s.dispatchEvent(i)}var P1=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function zD(e=()=>{}){const t=Yr(e);xn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function VD(e){return e.nodeType===e.ELEMENT_NODE}function WD(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 $m(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var qD=FC,QC=UC,XC=$C,JC=zC,ZC=VC,e2=qC,t2=Vv;function n2(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=n2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function r2(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=n2(e))&&(r&&(r+=" "),r+=t);return r}const D1=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,j1=r2,zl=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return j1(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,a=Object.keys(s).map(c=>{const d=n==null?void 0:n[c],h=i==null?void 0:i[c];if(d===null)return null;const p=D1(d)||D1(h);return s[c][p]}),o=n&&Object.entries(n).reduce((c,d)=>{let[h,p]=d;return p===void 0||(c[h]=p),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:h,className:p,...f}=d;return Object.entries(f).every(w=>{let[m,x]=w;return Array.isArray(x)?x.includes({...i,...o}[m]):{...i,...o}[m]===x})?[...c,h,p]:c},[]);return j1(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.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 YD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s2=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.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 KD={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.462.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 GD=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...o},u)=>y.createElement("svg",{ref:u,...KD,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:s2("lucide",s),...o},[...a.map(([c,d])=>y.createElement(c,d)),...Array.isArray(i)?i:[i]]));/**
56 * @license lucide-react v0.462.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 Oe=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(GD,{ref:i,iconNode:t,className:s2(`lucide-${YD(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.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 A0=Oe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
66 * @license lucide-react v0.462.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 Zd=Oe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
71 * @license lucide-react v0.462.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 QD=Oe("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
76 * @license lucide-react v0.462.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 XD=Oe("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
81 * @license lucide-react v0.462.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 JD=Oe("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
86 * @license lucide-react v0.462.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 ZD=Oe("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);/**
91 * @license lucide-react v0.462.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 Us=Oe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
96 * @license lucide-react v0.462.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 ej=Oe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
101 * @license lucide-react v0.462.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 gp=Oe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
106 * @license lucide-react v0.462.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 i2=Oe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
111 * @license lucide-react v0.462.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 a2=Oe("CircleAlert",[["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"}]]);/**
116 * @license lucide-react v0.462.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 o2=Oe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
121 * @license lucide-react v0.462.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 tj=Oe("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
126 * @license lucide-react v0.462.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 nj=Oe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
131 * @license lucide-react v0.462.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 L1=Oe("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
136 * @license lucide-react v0.462.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 rj=Oe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
141 * @license lucide-react v0.462.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 sj=Oe("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
146 * @license lucide-react v0.462.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 Sc=Oe("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
151 * @license lucide-react v0.462.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 ij=Oe("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
156 * @license lucide-react v0.462.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 mf=Oe("Download",[["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"}]]);/**
161 * @license lucide-react v0.462.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 yp=Oe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
166 * @license lucide-react v0.462.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 Wv=Oe("FileText",[["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"}]]);/**
171 * @license lucide-react v0.462.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 aj=Oe("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
176 * @license lucide-react v0.462.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 oj=Oe("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
181 * @license lucide-react v0.462.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 lj=Oe("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
186 * @license lucide-react v0.462.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 uj=Oe("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
191 * @license lucide-react v0.462.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const cj=Oe("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
196 * @license lucide-react v0.462.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const l2=Oe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
201 * @license lucide-react v0.462.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const dj=Oe("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
206 * @license lucide-react v0.462.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const hj=Oe("Linkedin",[["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"}]]);/**
211 * @license lucide-react v0.462.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const Tr=Oe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
216 * @license lucide-react v0.462.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const vp=Oe("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
221 * @license lucide-react v0.462.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const u2=Oe("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
226 * @license lucide-react v0.462.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const fj=Oe("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
231 * @license lucide-react v0.462.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const pj=Oe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
236 * @license lucide-react v0.462.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const mj=Oe("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
241 * @license lucide-react v0.462.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const gj=Oe("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
246 * @license lucide-react v0.462.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const Oh=Oe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
251 * @license lucide-react v0.462.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const yj=Oe("PoundSterling",[["path",{d:"M18 7c0-5.333-8-5.333-8 0",key:"1prm2n"}],["path",{d:"M10 7v14",key:"18tmcs"}],["path",{d:"M6 21h12",key:"4dkmi1"}],["path",{d:"M6 13h10",key:"ybwr4a"}]]);/**
256 * @license lucide-react v0.462.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const M1=Oe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
261 * @license lucide-react v0.462.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const vj=Oe("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}
vendor: 4,464 bytes, lines 265-310
265],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
266 * @license lucide-react v0.462.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const bj=Oe("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
271 * @license lucide-react v0.462.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const xj=Oe("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
276 * @license lucide-react v0.462.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const wj=Oe("Target",[["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"}]]);/**
281 * @license lucide-react v0.462.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const Ej=Oe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
286 * @license lucide-react v0.462.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const _j=Oe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
291 * @license lucide-react v0.462.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const Tj=Oe("Upload",[["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"}]]);/**
296 * @license lucide-react v0.462.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const bp=Oe("Users",[["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"}]]);/**
301 * @license lucide-react v0.462.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const Sj=Oe("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);/**
306 * @license lucide-react v0.462.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const qv=Oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Yv="-",Cj=e=>{const t=Nj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const o=a.split(Yv);return o[0]===""&&o.length!==1&&o.shift(),c2(o,t)||kj(a)},getConflictingClassGroupIds:(a,o)=>{const u=n[a]||[];return o&&r[a]?[...u,...r[a]]:u}}},c2=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?c2(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Yv);return(a=t.validators.find(({validator:o})=>o(i)))==null?void 0:a.classGroupId},F1=/^\[(.+)\]$/,kj=e=>{if(F1.test(e)){const t=F1.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Nj=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,122 bytes, line 310
310return Rj(Object.entries(e.classGroups),n).forEach(([i,a])=>{R0(a,r,i,t)}),r},R0=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:B1(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(Aj(s)){R0(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,a])=>{R0(a,B1(t,i),n,r)})})},B1=(e,t)=>{let n=e;return t.split(Yv).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Aj=e=>e.isThemeGetter,Rj=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,o])=>[t+a,o])):i);return[n,s]}):e,Ij=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return s(i,a),a},set(i,a){n.has(i)?n.set(i,a):s(i,a)}}},d2="!",Oj=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,a=o=>{const u=[];let c=0,d=0,h;for(let x=0;x<o.length;x++){let v=o[x];if(c===0){if(v===s&&(r||o.slice(x,x+i)===t)){u.push(o.slice(d,x)),d=x+i;continue}if(v==="/"){h=x;continue}}v==="["?c++:v==="]"&&c--}const p=u.length===0?o:o.substring(d),f=p.startsWith(d2),w=f?p.substring(1):p,m=h&&h>d?h-d:void 0;return{modifiers:u,hasImportantModifier:f,baseClassName:w,maybePostfixModifierPosition:m}};return n?o=>n({className:o,parseClassName:a}):a},Pj=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Dj=e=>({cache:Ij(e.cacheSize),parseClassName:Oj(e),...Cj(e)}),jj=/\s+/,Lj=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],a=e.trim().split(jj);let o="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:f}=n(c);let w=!!f,m=r(w?p.substring(0,f):p);if(!m){if(!w){o=c+(o.length>0?" "+o:o);continue}if(m=r(p),!m){o=c+(o.length>0?" "+o:o);continue}w=!1}const x=Pj(d).join(":"),v=h?x+d2:x,b=v+m;if(i.includes(b))continue;i.push(b);const E=s(m,w);for(let T=0;T<E.length;++T){const C=E[T];i.push(v+C)}o=c+(o.length>0?" "+o:o)}return o};function Mj(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=h2(t))&&(r&&(r+=" "),r+=n);return r}const h2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=h2(e[r]))&&(n&&(n+=" "),n+=t);return n};function Fj(e,...t){let n,r,s,i=a;function a(u){const c=t.reduce((d,h)=>h(d),e());return n=Dj(c),r=n.cache.get,s=n.cache.set,i=o,o(u)}function o(u){const c=r(u);if(c)return c;const d=Lj(u,n);return s(u,d),d}return function(){return i(Mj.apply(null,arguments))}}const _t=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},f2=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bj=/^\d+\/\d+$/,Uj=new Set(["px","full","screen"]),Hj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$j=/\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$/,zj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ys=e=>nl(e)||Uj.has(e)||Bj.test(e),xi=e=>Vl(e,"length",Zj),nl=e=>!!e&&!Number.isNaN(Number(e)),zm=e=>Vl(e,"number",nl),gu=e=>!!e&&Number.isInteger(Number(e)),qj=e=>e.endsWith("%")&&nl(e.slice(0,-1)),Ue=e=>f2.test(e),wi=e=>Hj.test(e),Yj=new Set(["length","size","percentage"]),Kj=e=>Vl(e,Yj,p2),Gj=e=>Vl(e,"position",p2),Qj=new Set(["image","url"]),Xj=e=>Vl(e,Qj,tL),Jj=e=>Vl(e,"",eL),yu=()=>!0,Vl=(e,t,n)=>{const r=f2.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Zj=e=>$j.test(e)&&!zj.test(e),p2=()=>!1,eL=e=>Vj.test(e),tL=e=>Wj.test(e),nL=()=>{const e=_t("colors"),t=_t("spacing"),n=_t("blur"),r=_t("brightness"),s=_t("borderColor"),i=_t("borderRadius"),a=_t("borderSpacing"),o=_t("borderWidth"),u=_t("contrast"),c=_t("grayscale"),d=_t("hueRotate"),h=_t("invert"),p=_t("gap"),f=_t("gradientColorStops"),w=_t("gradientColorStopPositions"),m=_t("inset"),x=_t("margin"),v=_t("opacity"),b=_t("padding"),E=_t("saturate"),T=_t("scale"),C=_t("sepia"),_=_t("skew"),k=_t("space"),P=_t("translate"),M=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",Ue,t],j=()=>[Ue,t],Y=()=>["",Ys,xi],z=()=>["auto",nl,Ue],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",Ue],S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ue=()=>[nl,Ue];return{cacheSize:500,separator:":",theme:{colors:[yu],spacing:[Ys,xi],blur:["none","",wi,Ue],brightness:ue(),borderColor:[e],borderRadius:["n
310one","","full",wi,Ue],borderSpacing:j(),borderWidth:Y(),contrast:ue(),grayscale:V(),hueRotate:ue(),invert:V(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[qj,xi],inset:U(),margin:U(),opacity:ue(),padding:j(),saturate:ue(),scale:ue(),sepia:V(),skew:ue(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Ue]}],container:["container"],columns:[{columns:[wi]}],"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"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),Ue]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gu,Ue]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ue]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",gu,Ue]}],"grid-cols":[{"grid-cols":[yu]}],"col-start-end":[{col:["auto",{span:["full",gu,Ue]},Ue]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[yu]}],"row-start-end":[{row:["auto",{span:[gu,Ue]},Ue]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ue]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ue,t]}],"min-w":[{"min-w":[Ue,t,"min","max","fit"]}],"max-w":[{"max-w":[Ue,t,"none","full","min","max","fit","prose",{screen:[wi]},wi]}],h:[{h:[Ue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",wi,xi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zm]}],"font-family":[{font:[yu]}],"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:["tighter","tight","normal","wide","wider","widest",Ue]}],"line-clamp":[{"line-clamp":["none",nl,zm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ys,Ue]}],"list-image":[{"list-image":["none",Ue]}],"list-style-type":[{list:["none","disc","decimal",Ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ys,xi]}],"underline-offset":[{"underline-offset":["auto",Ys,Ue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),Gj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Xj]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}
vendor: 5,182 bytes, line 310
310],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:Q()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[Ys,Ue]}],"outline-w":[{outline:[Ys,xi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Ys,xi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wi,Jj]}],"shadow-color":[{shadow:[yu]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",wi,Ue]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[E]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ue]}],duration:[{duration:ue()}],ease:[{ease:["linear","in","out","in-out",Ue]}],delay:[{delay:ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[gu,Ue]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Ue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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"]}
vendor: 4,647 bytes, line 310
310],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",Ue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ys,xi,zm]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},rL=Fj(nL);function be(...e){return rL(r2(e))}const sL=qD,m2=y.forwardRef(({className:e,...t},n)=>l.jsx(QC,{ref:n,className:be("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));m2.displayName=QC.displayName;const iL=zl("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"}}),g2=y.forwardRef(({className:e,variant:t,...n},r)=>l.jsx(XC,{ref:r,className:be(iL({variant:t}),e),...n}));g2.displayName=XC.displayName;const aL=y.forwardRef(({className:e,...t},n)=>l.jsx(e2,{ref:n,className:be("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));aL.displayName=e2.displayName;const y2=y.forwardRef(({className:e,...t},n)=>l.jsx(t2,{ref:n,className:be("absolute right-2 top-2 rounded-md p-1 text-foreground
310/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx(qv,{className:"h-4 w-4"})}));y2.displayName=t2.displayName;const v2=y.forwardRef(({className:e,...t},n)=>l.jsx(JC,{ref:n,className:be("text-sm font-semibold",e),...t}));v2.displayName=JC.displayName;const b2=y.forwardRef(({className:e,...t},n)=>l.jsx(ZC,{ref:n,className:be("text-sm opacity-90",e),...t}));b2.displayName=ZC.displayName;function oL(){const{toasts:e}=od();return l.jsxs(sL,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return l.jsxs(g2,{...i,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(v2,{children:n}),r&&l.jsx(b2,{children:r})]}),s,l.jsx(y2,{})]},t)}),l.jsx(m2,{})]})}var U1=["light","dark"],lL="(prefers-color-scheme: dark)",uL=y.createContext(void 0),cL={setTheme:e=>{},themes:[]},dL=()=>{var e;return(e=y.useContext(uL))!=null?e:cL};y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:a,attrs:o,nonce:u})=>{let c=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${o.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?U1.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(w,m=!1,x=!0)=>{let v=a?a[w]:w,b=m?w+"|| ''":`'${v}'`,E="";return s&&x&&!m&&U1.includes(w)&&(E+=`d.style.colorScheme = '${w}';`),n==="class"?m||v?E+=`c.add(${b})`:E+="null":v&&(E+=`d[s](n,${b})`),E},f=e?`!function(){${d}${p(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${lL}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}${c?"":"else{"+p(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}else{${p(i,!1,!1)};}${h}}catch(t){}}();`;return y.createElement("script",{nonce:u,dangerouslySetInnerHTML:{__html:f}})});var hL=e=>{switch(e){case"success":return mL;case"info":return yL;case"warning":return gL;case"error":return vL;default:return null}},fL=Array(12).fill(0),pL=({visible:e,className:t})=>W.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},W.createElement("div",{className:"sonner-spinner"},fL.map((n,r)=>W.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),mL=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),gL=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),yL=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),vL=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),bL=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},W.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),W.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),xL=()=>{let[e,t]=W.useState(document.hidden);return W.useEffect(()=>{let n=()=>{t(document.hidden)};
310return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},I0=1,wL=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:I0++,i=this.toasts.find(o=>o.id===s),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(o=>o.id===s?(this.publish({...o,...e,id:s,title:n}),{...o,...e,id:s,dismissible:a,title:n}):o):this.addToast({title:n,...r,dismissible:a,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
310this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,a=r.then(async u=>{if(i=["resolve",u],W.isValidElement(u))s=!1,this.create({id:n,type:"default",message:u});else if(_L(u)&&!u.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${u.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${u.status}`):t.description;this.create({id:n,type:"error",message:c,description:d})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(u):t.success,d=typeof t.description=="function"?await t.description(u):t.description;this.create({id:n,type:"success",message:c,description:d})}}).catch(async u=>{if(i=["reject",u],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(u):t.error,d=typeof t.description=="function"?await t.description(u):t.description;this.create({id:n,type:"error",message:c,description:d})}}).finally(()=>{var u;s&&(this.dismiss(n),n=void 0),(u=t.finally)==null||u.call(t)}),o=()=>new Promise((u,c)=>a.then(()=>i[0]==="reject"?c(i[1]):u(i[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:o}:Object.assign(n,{unwrap:o})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||I0++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},er=new wL,EL=(e,t)=>{let n=(t==null?void 0:t.id)||I0++;return er.addToast({title:e,...t,id:n}),n},_L=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",TL=EL,SL=()=>er.toasts,CL=()=>er.getActiveToasts(),Pt=Object.assign(TL,{success:er.success,info:er.info,warning:er.warning,error:er.error,custom:er.custom,message:er.message,promise:er.promise,dismiss:er.dismiss,loading:er.loading},{getHistory:SL,getToasts:CL});function kL(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}kL(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
310left: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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
310:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
310--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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%)}
311`);function eh(e){return e.label!==void 0}var NL=3,AL="32px",RL="16px",H1=4e3,IL=356,OL=14,PL=20,DL=200;function Jr(...e){return e.filter(Boolean).join(" ")}function jL(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var LL=e=>{var t,n,r,s,i,a,o,u,c,d,h;let{invert:p,toast:f,unstyled:w,interacting:m,setHeights:x,visibleToasts:v,heights:b,index:E,toasts:T,expanded:C,removeToast:_,defaultRichColors:k,closeButton:P,style:M,cancelButtonStyle:F,actionButtonStyle:U,className:j="",descriptionClassName:Y="",duration:z,position:X,gap:Q,loadingIcon:J,expandByDefault:$,classNames:V,icons:S,closeButtonAriaLabel:ue="Close toast",pauseWhenPageIsHidden:te}=e,[R,pe]=W.useState(null),[je,_e]=W.useState(null),[re,we]=W.useState(!1),[Le,fe]=W.useState(!1),[Ne,Ae]=W.useState(!1),[dt,Ge]=W.useState(!1),[Nt,Lt]=W.useState(!1),[wn,dr]=W.useState(0),[ce,I]=W.useState(0),B=W.useRef(f.duration||z||H1),K=W.useRef(null),le=W.useRef(null),oe=E===0,ie=E+1<=v,L=f.type,G=f.dismissible!==!1,de=f.className||"",Te=f.descriptionClassName||"",$e=W.useMemo(()=>b.findIndex(ke=>ke.toastId===f.id)||0,[b,f.id]),ot=W.useMemo(()=>{var ke;return(ke=f.closeButton)!=null?ke:P},[f.closeButton,P]),Mn=W.useMemo(()=>f.duration||z||H1,[f.duration,z]),nn=W.useRef(0),cn=W.useRef(0),Kn=W.useRef(0),gt=W.useRef(null),[Ir,En]=X.split("-"),Id=W.useMemo(()=>b.reduce((ke,Be,We)=>We>=$e?ke:ke+Be.height,0),[b,$e]),Od=xL(),dm=f.invert||p,Gt=L==="loading";cn.current=W.useMemo(()=>$e*Q+Id,[$e,Id]),W.useEffect(()=>{B.current=Mn}
311,[Mn]),W.useEffect(()=>{we(!0)},[]),W.useEffect(()=>{let ke=le.current;if(ke){let Be=ke.getBoundingClientRect().height;return I(Be),x(We=>[{toastId:f.id,height:Be,position:f.position},...We]),()=>x(We=>We.filter(Ft=>Ft.toastId!==f.id))}},[x,f.id]),W.useLayoutEffect(()=>{if(!re)return;let ke=le.current,Be=ke.style.height;ke.style.height="auto";let We=ke.getBoundingClientRect().height;ke.style.height=Be,I(We),x(Ft=>Ft.find(dn=>dn.toastId===f.id)?Ft.map(dn=>dn.toastId===f.id?{...dn,height:We}:dn):[{toastId:f.id,height:We,position:f.position},...Ft])},[re,f.title,f.description,x,f.id]);let Mt=W.useCallback(()=>{fe(!0),dr(cn.current),x(ke=>ke.filter(Be=>Be.toastId!==f.id)),setTimeout(()=>{_(f)},DL)},[f,_,x,cn]);W.useEffect(()=>{if(f.promise&&L==="loading"||f.duration===1/0||f.type==="loading")return;let ke;return C||m||te&&Od?(()=>{if(Kn.current<nn.current){let Be=new Date().getTime()-nn.current;B.current=B.current-Be}Kn.current=new Date().getTime()})():B.current!==1/0&&(nn.current=new Date().getTime(),ke=setTimeout(()=>{var Be;(Be=f.onAutoClose)==null||Be.call(f,f),Mt()},B.current)),()=>clearTimeout(ke)},[C,m,f,L,te,Od,Mt]),W.useEffect(()=>{f.delete&&Mt()},[Mt,f.delete]);function Fn(){var ke,Be,We;return S!=null&&S.loading?W.createElement("div",{className:Jr(V==null?void 0:V.loader,(ke=f==null?void 0:f.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":L==="loading"},S.loading):J?W.createElement("div",{className:Jr(V==null?void 0:V.loader,(Be=f==null?void 0:f.classNames)==null?void 0:Be.loader,"sonner-loader"),"data-visible":L==="loading"},J):W.createElement(pL,{className:Jr(V==null?void 0:V.loader,(We=f==null?void 0:f.classNames)==null?void 0:We.loader),visible:L==="loading"})}return W.createElement("li",{tabIndex:0,ref:le,className:Jr(j,de,V==null?void 0:V.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,V==null?void 0:V.default,V==null?void 0:V[L],(n=f==null?void 0:f.classNames)==null?void 0:n[L]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||w),"data-mounted":re,"data-
311promise":!!f.promise,"data-swiped":Nt,"data-removed":Le,"data-visible":ie,"data-y-position":Ir,"data-x-position":En,"data-index":E,"data-front":oe,"data-swiping":Ne,"data-dismissible":G,"data-type":L,"data-invert":dm,"data-swipe-out":dt,"data-swipe-direction":je,"data-expanded":!!(C||$&&re),style:{"--index":E,"--toasts-before":E,"--z-index":T.length-E,"--offset":`${Le?wn:cn.current}px`,"--initial-height":$?"auto":`${ce}px`,...M,...f.style},onDragEnd:()=>{Ae(!1),pe(null),gt.current=null},onPointerDown:ke=>{Gt||!G||(K.current=new Date,dr(cn.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(Ae(!0),gt.current={x:ke.clientX,y:ke.clientY}))},onPointerUp:()=>{var ke,Be,We,Ft;if(dt||!G)return;gt.current=null;let dn=Number(((ke=le.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),yt=Number(((Be=le.current)==null?void 0:Be.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Nn=new Date().getTime()-((We=K.current)==null?void 0:We.getTime()),Bt=R==="x"?dn:yt,hn=Math.abs(Bt)/Nn;if(Math.abs(Bt)>=PL||hn>.11){dr(cn.current),(Ft=f.onDismiss)==null||Ft.call(f,f),_e(R==="x"?dn>0?"right":"left":yt>0?"down":"up"),Mt(),Ge(!0),Lt(!1);return}Ae(!1),pe(null)},onPointerMove:ke=>{var Be,We,Ft,dn;if(!gt.current||!G||((Be=window.getSelection())==null?void 0:Be.toString().length)>0)return;let yt=ke.clientY-gt.current.y,Nn=ke.clientX-gt.current.x,Bt=(We=e.swipeDirections)!=null?We:jL(X);!R&&(Math.abs(Nn)>1||Math.abs(yt)>1)&&pe(Math.abs(Nn)>Math.abs(yt)?"x":"y");let hn={x:0,y:0};R==="y"?(Bt.includes("top")||Bt.includes("bottom"))&&(Bt.includes("top")&&yt<0||Bt.includes("bottom")&&yt>0)&&(hn.y=yt):R==="x"&&(Bt.includes("left")||Bt.includes("right"))&&(Bt.includes("left")&&Nn<0||Bt.includes("right")&&Nn>0)&&(hn.x=Nn),(Math.abs(hn.x)>0||Math.abs(hn.y)>0)&&Lt(!0),(Ft=le.current)==null||Ft.style.setProperty("--swipe-amount-x",`${hn.x}px`),(dn=le.current)==null||dn.style.setProperty("--swipe-amount-y",`${hn.y}px`)}},ot&&!f.jsx?W.createElement("button",{"aria-label":ue,"data-disabled":Gt,"data-close-button":!0,onClick:Gt||!G?()=>{}:()=>{var ke;Mt(),(ke=f.onDismiss)==null||ke.call(f,f)},className:Jr(V==null?void 0:V.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=S==null?void 0:S.close)!=null?i:bL):null,f.jsx||y.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:W.createElement(W.Fragment,null,L||f.icon||f.promise?W.createElement("div",{"data-icon":"",className:Jr(V==null?void 0:V.icon,(a=f==null?void 0:f.classNames)==null?void 0:a.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Fn():null,f.type!=="loading"?f.icon||(S==null?void 0:S[L])||hL(L):null):null,W.createElement("div",{"data-content":"",className:Jr(V==null?void 0:V.content,(o=f==null?void 0:f.classNames)==null?void 0:o.content)},W.createElement("div",{"data-title":"",className:Jr(V==null?void 0:V.title,(u=f==null?void 0:f.classNames)==null?void 0:u.title)},typeof f.title=="function"?f.title():f.title),f.description?W.createElement("div",{"data-description":"",className:Jr(Y,Te,V==null?void 0:V.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),y.isValidElement(f.cancel)?f.cancel:f.cancel&&eh(f.cancel)?W.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||F,onClick:ke=>{var Be,We;eh(f.cancel)&&G&&((We=(Be=f.cancel).onClick)==null||We.call(Be,ke),Mt())},className:Jr(V==null?void 0:V.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,y.isValidElement(f.action)?f.action:f.action&&eh(f.action)?W.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||U,onClick:ke=>{var Be,We;eh(f.action)&&((We=(Be=f.action).onClick)==null||We.call(Be,ke),!ke.defaultPrevented&&Mt())},className:Jr(V==null?void 0:V.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function $1(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function ML(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,a=i?"--mobile-offset":"--offset",o=i?RL:AL;function u(c){["top","right","bottom","left"].forEach(d=>{n[`${a}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?u(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${a}-${c}`]=o:n[`${a}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):u(o)}),n}var FL=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:a,className:o,offset:u,mobileOffset:c,theme:d="light",richColors:h,duration:p,style:f,visibleToasts:w=NL,toastOptions:m,dir:x=$1(),gap:v=OL,loadingIcon:b,icons:E,containerAriaLabel:T="Notifications",pauseWhenPageIsHidden:C}=e,[_,k]=W.useState([]),P=W.useMemo(()=>Array.from(new Set([r].concat(_.filter(te=>te.position).map(te=>te.position)))),[_,r]),[M,F]=W.useState([]),[U,j]=W.useState(!1),[Y,z]=W.useState(!1),[X,Q]=W.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
311k":"light"),J=W.useRef(null),$=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=W.useRef(null),S=W.useRef(!1),ue=W.useCallback(te=>{k(R=>{var pe;return(pe=R.find(je=>je.id===te.id))!=null&&pe.delete||er.dismiss(te.id),R.filter(({id:je})=>je!==te.id)})},[]);return W.useEffect(()=>er.subscribe(te=>{if(te.dismiss){k(R=>R.map(pe=>pe.id===te.id?{...pe,delete:!0}:pe));return}setTimeout(()=>{kC.flushSync(()=>{k(R=>{let pe=R.findIndex(je=>je.id===te.id);return pe!==-1?[...R.slice(0,pe),{...R[pe],...te},...R.slice(pe+1)]:[te,...R]})})})}),[]),W.useEffect(()=>{if(d!=="system"){Q(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window>"u")return;let te=window.matchMedia("(prefers-color-scheme: dark)");try{te.addEventListener("change",({matches:R})=>{Q(R?"dark":"light")})}catch{te.addListener(({matches:pe})=>{try{Q(pe?"dark":"light")}catch(je){console.error(je)}})}},[d]),W.useEffect(()=>{_.length<=1&&j(!1)},[_]),W.useEffect(()=>{let te=R=>{var pe,je;s.every(_e=>R[_e]||R.code===_e)&&(j(!0),(pe=J.current)==null||pe.focus()),R.code==="Escape"&&(document.activeElement===J.current||(je=J.current)!=null&&je.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[s]),W.useEffect(()=>{if(J.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,S.current=!1)}},[J.current]),W.createElement("section",{ref:t,"aria-label":`${T} ${$}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((te,R)=>{var pe;let[je,_e]=te.split("-");return _.length?W.createElement("ol",{key:te,dir:x==="auto"?$1():x,tabIndex:-1,ref:J,className:o,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":je,"data-lifted":U&&_.length>1&&!i,"data-x-position":_e,style:{"--front-toast-height":`${((pe=M[0])==null?void 0:pe.height)||0}px`,"--width":`${IL}px`,"--gap":`${v}px`,...f,...ML(u,c)},onBlur:re=>{S.current&&!re.currentTarget.contains(re.relatedTarget)&&(S.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||S.current||(S.current=!0,V.current=re.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{Y||j(!1)},onDragEnd:()=>j(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||z(!0)},onPointerUp:()=>z(!1)},_.filter(re=>!re.position&&R===0||re.position===te).map((re,we)=>{var Le,fe;return W.createElement(LL,{key:re.id,icons:E,index:we,toast:re,defaultRichColors:h,duration:(Le=m==null?void 0:m.duration)!=null?Le:p,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:w,closeButton:(fe=m==null?void 0:m.closeButton)!=null?fe:a,interacting:Y,position:te,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:ue,toasts:_.filter(Ne=>Ne.position==re.position),heights:M.filter(Ne=>Ne.position==re.position),setHeights:F,expandByDefault:i,gap:v,loadingIcon:b,expanded:U,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const BL=({...e})=>{const{theme:t="system"}=dL();return l.jsx(FL,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var UL=Xy[" useId ".trim().toString()]||(()=>{}),HL=0;function ai(e){const[t,n]=y.useState(UL());return xn(()=>{n(r=>r??String(HL++))},[e]),t?`radix-${t}`:""}const $L=["top","right","bottom","left"],ca=Math.min,gr=Math.max,gf=Math.round,th=Math.floor,js=e=>({x:e,y:e}
vendor: 10,772 bytes, line 311
311),zL={left:"right",right:"left",bottom:"top",top:"bottom"},VL={start:"end",end:"start"};function O0(e,t,n){return gr(e,ca(t,n))}function hi(e,t){return typeof e=="function"?e(t):e}function fi(e){return e.split("-")[0]}function Wl(e){return e.split("-")[1]}function Kv(e){return e==="x"?"y":"x"}function Gv(e){return e==="y"?"height":"width"}const WL=new Set(["top","bottom"]);function Is(e){return WL.has(fi(e))?"y":"x"}function Qv(e){return Kv(Is(e))}function qL(e,t,n){n===void 0&&(n=!1);const r=Wl(e),s=Qv(e),i=Gv(s);let a=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=yf(a)),[a,yf(a)]}function YL(e){const t=yf(e);return[P0(e),t,P0(t)]}function P0(e){return e.replace(/start|end/g,t=>VL[t])}const z1=["left","right"],V1=["right","left"],KL=["top","bottom"],GL=["bottom","top"];function QL(e,t,n){switch(e){case"top":case"bottom":return n?t?V1:z1:t?z1:V1;case"left":case"right":return t?KL:GL;default:return[]}}function XL(e,t,n,r){const s=Wl(e);let i=QL(fi(e),n==="start",r);return s&&(i=i.map(a=>a+"-"+s),t&&(i=i.concat(i.map(P0)))),i}function yf(e){return e.replace(/left|right|bottom|top/g,t=>zL[t])}function JL(e){return{top:0,right:0,bottom:0,left:0,...e}}function x2(e){return typeof e!="number"?JL(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 W1(e,t,n){let{reference:r,floating:s}=e;const i=Is(t),a=Qv(t),o=Gv(a),u=fi(t),c=i==="y",d=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,p=r[o]/2-s[o]/2;let f;switch(u){case"top":f={x:d,y:r.y-s.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-s.width,y:h};break;default:f={x:r.x,y:r.y}}switch(Wl(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1);break}return f}const ZL=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:a}=n,o=i.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=W1(c,r,u),p=r,f={},w=0;for(let m=0;m<o.length;m++){const{name:x,fn:v}=o[m],{x:b,y:E,data:T,reset:C}=await v({x:d,y:h,initialPlacement:r,placement:p,strategy:s,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});d=b??d,h=E??h,f={...f,[x]:{...f[x],...T}},C&&w<=50&&(w++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(c=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:d,y:h}=W1(c,p,u)),m=-1)}return{x:d,y:h,placement:p,strategy:s,middlewareData:f}};async function Cc(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:a,elements:o,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=hi(t,e),w=x2(f),x=o[p?h==="floating"?"reference":"floating":h],v=vf(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:d,strategy:u})),b=h==="floating"?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),T=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},C=vf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:b,offsetParent:E,strategy:u}):b);return{top:(v.top-C.top+w.top)/T.y,bottom:(C.bottom-v.bottom+w.bottom)/T.y,left:(v.left-C.left+w.left)/T.x,right:(C.right-v.right+w.right)/T.x}}const e4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:a,elements:o,middlewareData:u}=t,{element:c,padding:d=0}=hi(e,t)||{};if(c==null)return{};const h=x2(d),p={x:n,y:r},f=Qv(s),w=Gv(f),m=await a.getDimensions(c),x=f==="y",v=x?"top":"left",b=x?"bottom":"right",E=x?"clientHeight":"clientWidth",T=i.reference[w]+i.reference[f]-p[f]-i.floating[w],C=p[f]-i.reference[f],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let k=_?_[E]:0;(!k||!await(a.isElement==null?void 0:a.isElement(_)))&&(k=o.floating[E]||i.floating[w]);const P=T/2-C/2,M=k/2-m[w]/2-1,F=ca(h[v],M),U=ca(h[b],M),j=F,Y=k-m[w]-U,z=k/2-m[w]/2+P,X=O0(j,z,Y),Q=!u.arrow&&Wl(s)!=null&&z!==X&&i.reference[w]/2-(z<j?F:U)-m[w]/2<0,J=Q?z<j?z-j:z-Y:0;return{[f]:p[f]+J,data:{[f]:X,centerOffset:z-X-J,...Q&&{alignmentOffset:J}},reset:Q}}}),t4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:a,initialPlacement:o,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...x}=hi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=fi(s),b=Is(o),E=fi(o)===o,T=await(u.isRTL==null?void 0:u.isRTL(c.floating)),C=p||(E||!m?[yf(o)]:YL(o)),_=w!=="none";!p&&_&&C.push(...XL(o,m,w,T));const k=[o,...C],P=await Cc(t,x),M=[];let F=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&M.push(P[v]),h){const z=qL(s,a,T);M.push(P[z[0]],P[z[1]])}if(F=[...F,{placement:s,overflows:M}],!M.every(z=>z<=0)){var U,j;const z=(((U=i.flip)==null?void 0:U.index)||0)+1,X=k[z];if(X&&(!(h==="alignment"?b!==Is(X):!1)||F.every($=>$.overflows[0]>0&&Is($.placement)===b)))return{data:{index:z,overflows:F},reset:{placement:X}};let Q=(j=F.filter(J=>J.overflows[0]<=0).sort((J,$)=>J.overflows[1]-$.overflows[1])[0])==null?void 0:j.placement;if(!Q)switch(f){case"bestFit":{var Y;const J=(Y=F.filter($=>{if(_){const V=Is($.placement);return V===b||V==="y"}return!0}).map($=>[$.placement,$.overflows.filter(V=>V>0).reduce((V,S)=>V+S,0)]).sort(($,V)=>$[1]-V[1])[0])==null?void 0:Y[0];J&&(Q=J);break}case"initialPlacement":Q=o;break}if(s!==Q)return{reset:{placement:Q}}}return{}}}};function q1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Y1(e){return $L.some(t=>e[t]>=0)}const n4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=hi(e,t);switch(r){case"referenceHidden":{const i=await Cc(t,{...s,elementContext:"reference"}),a=q1(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Y1(a)}}}case"escaped":{const i=await Cc(t,{...s,altBoundary:!0}),a=q1(i,n.floating);return{data:{escapedOffsets:a,escaped:Y1(a)}}}default:return{}}}}},w2=new Set(["left","top"]);async function r4(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),a=fi(n),o=Wl(n),u=Is(n)==="y",c=w2.has(a)?-1:1,d=i&&u?-1:1,h=hi(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&typeof w=="number"&&(f=o==="end"?w*-1:w),u?{x:f*d,y:p*c}:{x:p*c,y:f*d}}const s4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:a,middlewareData:o}=t,u=await r4(t,e);return a===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:s+u.x,y:i+u.y,data:{...u,placement:a}}}}},i4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:o={fn:x=>{let{x:v,y:b}=x;return{x:v,y:b}}},...u}=hi(e,t),c={x:n,y:r},d=await Cc(t,u),h=Is(fi(s)),p=Kv(h);let f=c[p],w=c[h];if(i){const x=p==="y"?"top":"left",v=p==="y"?"bottom":"right",b=f+d[x],E=f-d[v];f=O0(b,f,E)}if(a){const x=h==="y"?"top":"left",v=h==="y"?"bottom":"right",b=w+d[x],E=w-d[v];w=O0(b,w,E)}const m=o.fn({...t,[p]:f,[h]:w});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:i,[h]:a}}}}}},a4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:a}=t,{offset:o=0,mainAxis:u=!0,crossAxis:c=!0}=hi(e,t),d={x:n,y:r},h=Is(s),p=Kv(h);let f=d[p],w=d[h];const m=hi(o,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){const E=p==="y"?"height":"width",T=i.reference[p]-i.floating[E]+x.mainAxis,C=i.reference[p]+i.reference[E]-x.mainAxis;f<T?f=T:f>C&&(f=C)}if(c){var v,b;const E=p==="y"?"width":"height",T=w2.has(fi(s)),C=i.reference[h]-i.floating[E]+(T&&((v=a.offset)==null?void 0:v[h])||0)+(T?0:x.crossAxis),_=i.reference[h]+i.reference[E]+(T?0:((b=a.offset)==null?void 0:b[h])||0)-(T?x.crossAxis:0);w<C?w=C:w>_&&(w=_)}return{[p]:f,[h]:w}}}},o4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:a,elements:o}=t,{apply:u=()=>{},...c}=hi(e,t),d=await Cc(t,c),h=fi(s),p=Wl(s),f=Is(s)==="y",{width:w,height:m}=i.floating;let x,v;h==="top"||h==="bottom"?(x=h,v=p===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(v=h,x=p==="end"?"top":"bottom");const b=m-d.top-d.bottom,E=w-d.left-d.right,T=ca(m-d[x],b),C=ca(w-d[v],E),_=!t.middlewareData.shift;let k=T,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=b),_&&!p){const F=gr(d.left,0),U=gr(d.right,0),j=gr(d.top,0),Y=gr(d.bottom,0);f?P=w-2*(F!==0||U!==0?F+U:gr(d.left,d.right)):k=m-2*(j!==0||Y!==0?j+Y:gr(d.top,d.bottom))}await u({...t,availableWidth:P,availableHeight:k});const M=await a.getDimensions(o.floating);return w!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}};function xp(){return typeof window<"u"}function ql(e){return E2(e)?(e.nodeName||"").toLowerCase():"#document"}function Sr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vs(e){var t;return(t=(E2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function E2(e){return xp()?e instanceof Node||e instanceof Sr(e).Node:!1}function ms(e){return xp()?e instanceof Element||e instanceof Sr(e).Element:!1}function Hs(e){return xp()?e instanceof HTMLElement||e instanceof Sr(e).HTMLElement:!1}function K1(e){return!xp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sr(e).ShadowRoot}const l4=new Set(["inline","contents"]);function cd(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=gs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!l4.has(s)}const u4=new Set(["table","td","th"]);function c4(e){return u4.has(ql(e))}const d4=[":popover-open",":modal"];function wp(e){return d4.some(t=>{try{return e.matches(t)}catch{return!1}})}const h4=["transform","translate","scale","rotate","perspective"],f4=["transform","translate","scale","rotate","perspective","filter"],p4=["paint","layout","strict","content"];
vendor: 4,161 bytes, line 311
311function Xv(e){const t=Jv(),n=ms(e)?gs(e):e;return h4.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)||f4.some(r=>(n.willChange||"").includes(r))||p4.some(r=>(n.contain||"").includes(r))}function m4(e){let t=da(e);for(;Hs(t)&&!Rl(t);){if(Xv(t))return t;if(wp(t))return null;t=da(t)}return null}function Jv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const g4=new Set(["html","body","#document"]);function Rl(e){return g4.has(ql(e))}function gs(e){return Sr(e).getComputedStyle(e)}function Ep(e){return ms(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function da(e){if(ql(e)==="html")return e;const t=e.assignedSlot||e.parentNode||K1(e)&&e.host||Vs(e);return K1(t)?t.host:t}function _2(e){const t=da(e);return Rl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hs(t)&&cd(t)?t:_2(t)}function kc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=_2(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),a=Sr(s);if(i){const o=D0(a);return t.concat(a,a.visualViewport||[],cd(s)?s:[],o&&n?kc(o):[])}return t.concat(s,kc(s,[],n))}function D0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function T2(e){const t=gs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Hs(e),i=s?e.offsetWidth:n,a=s?e.offsetHeight:r,o=gf(n)!==i||gf(r)!==a;return o&&(n=i,r=a),{width:n,height:r,$:o}}function Zv(e){return ms(e)?e:e.contextElement}function rl(e){const t=Zv(e);if(!Hs(t))return js(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=T2(t);let a=(i?gf(n.width):n.width)/r,o=(i?gf(n.height):n.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const y4=js(0);function S2(e){const t=Sr(e);return!Jv()||!t.visualViewport?y4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function v4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Sr(e)?!1:t}function ro(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Zv(e);let a=js(1);t&&(r?ms(r)&&(a=rl(r)):a=rl(e));const o=v4(i,n,r)?S2(i):js(0);let u=(s.left+o.x)/a.x,c=(s.top+o.y)/a.y,d=s.width/a.x,h=s.height/a.y;if(i){const p=Sr(i),f=r&&ms(r)?Sr(r):r;let w=p,m=D0(w);for(;m&&r&&f!==w;){const x=rl(m),v=m.getBoundingClientRect(),b=gs(m),E=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,T=v.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;u*=x.x,c*=x.y,d*=x.x,h*=x.y,u+=E,c+=T,w=Sr(m),m=D0(w)}}return vf({width:d,height:h,x:u,y:c})}function eb(e,t){const n=Ep(e).scrollLeft;return t?t.left+n:ro(Vs(e)).left+n}function C2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:eb(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function b4(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",a=Vs(r),o=t?wp(t.floating):!1;if(r===a||o&&i)return n;let u={scrollLeft:0,scrollTop:0},c=js(1);const d=js(0),h=Hs(r);if((h||!h&&!i)&&((ql(r)!=="body"||cd(a))&&(u=Ep(r)),Hs(r))){const f=ro(r);c=rl(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const p=a&&!h&&!i?C2(a,u,!0):js(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}}function x4(e){return Array.from(e.getClientRects())}function w4(e){const t=Vs(e),n=Ep(e),r=e.ownerDocument.body,s=gr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=gr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+eb(e);const o=-n.scrollTop;return gs(r).direction==="rtl"&&(a+=gr(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:a,y:o}}function E4(e,t){const n=Sr(e),r=Vs(e),s=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,o=0,u=0;if(s){i=s.width,a=s.height;const c=Jv();(!c||c&&t==="fixed")&&(o=s.offsetLeft,u=s.offsetTop)}return{width:i,height:a,x:o,y:u}}const _4=new Set(["absolute","fixed"]);function T4(e,t){const n=ro(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Hs(e)?rl(e):js(1),a=e.clientWidth*i.x,o=e.clientHeight*i.y,u=s*i.x,c=r*i.y;return{width:a,height:o,x:u,y:c}}
vendor: 4,124 bytes, line 311
311function G1(e,t,n){let r;if(t==="viewport")r=E4(e,n);else if(t==="document")r=w4(Vs(e));else if(ms(t))r=T4(t,n);else{const s=S2(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return vf(r)}function k2(e,t){const n=da(e);return n===t||!ms(n)||Rl(n)?!1:gs(n).position==="fixed"||k2(n,t)}function S4(e,t){const n=t.get(e);if(n)return n;let r=kc(e,[],!1).filter(o=>ms(o)&&ql(o)!=="body"),s=null;const i=gs(e).position==="fixed";let a=i?da(e):e;for(;ms(a)&&!Rl(a);){const o=gs(a),u=Xv(a);!u&&o.position==="fixed"&&(s=null),(i?!u&&!s:!u&&o.position==="static"&&!!s&&_4.has(s.position)||cd(a)&&!u&&k2(e,a))?r=r.filter(d=>d!==a):s=o,a=da(a)}return t.set(e,r),r}function C4(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[...n==="clippingAncestors"?wp(t)?[]:S4(t,this._c):[].concat(n),r],o=a[0],u=a.reduce((c,d)=>{const h=G1(t,d,s);return c.top=gr(h.top,c.top),c.right=ca(h.right,c.right),c.bottom=ca(h.bottom,c.bottom),c.left=gr(h.left,c.left),c},G1(t,o,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function k4(e){const{width:t,height:n}=T2(e);return{width:t,height:n}}function N4(e,t,n){const r=Hs(t),s=Vs(t),i=n==="fixed",a=ro(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const u=js(0);function c(){u.x=eb(s)}if(r||!r&&!i)if((ql(t)!=="body"||cd(s))&&(o=Ep(t)),r){const f=ro(t,!0,i,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else s&&c();i&&!r&&s&&c();const d=s&&!r&&!i?C2(s,o):js(0),h=a.left+o.scrollLeft-u.x-d.x,p=a.top+o.scrollTop-u.y-d.y;return{x:h,y:p,width:a.width,height:a.height}}function Vm(e){return gs(e).position==="static"}function Q1(e,t){if(!Hs(e)||gs(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Vs(e)===n&&(n=n.ownerDocument.body),n}function N2(e,t){const n=Sr(e);if(wp(e))return n;if(!Hs(e)){let s=da(e);for(;s&&!Rl(s);){if(ms(s)&&!Vm(s))return s;s=da(s)}return n}let r=Q1(e,t);for(;r&&c4(r)&&Vm(r);)r=Q1(r,t);return r&&Rl(r)&&Vm(r)&&!Xv(r)?n:r||m4(e)||n}const A4=async function(e){const t=this.getOffsetParent||N2,n=this.getDimensions,r=await n(e.floating);return{reference:N4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function R4(e){return gs(e).direction==="rtl"}const I4={convertOffsetParentRelativeRectToViewportRelativeRect:b4,getDocumentElement:Vs,getClippingRect:C4,getOffsetParent:N2,getElementRects:A4,getClientRects:x4,getDimensions:k4,getScale:rl,isElement:ms,isRTL:R4};function A2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function O4(e,t){let n=null,r;const s=Vs(e);function i(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function a(o,u){o===void 0&&(o=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:d,top:h,width:p,height:f}=c;if(o||t(),!p||!f)return;const w=th(h),m=th(s.clientWidth-(d+p)),x=th(s.clientHeight-(h+f)),v=th(d),E={rootMargin:-w+"px "+-m+"px "+-x+"px "+-v+"px",threshold:gr(0,ca(1,u))||1};let T=!0;function C(_){const k=_[0].intersectionRatio;if(k!==u){if(!T)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!A2(c,e.getBoundingClientRect())&&a(),T=!1}try{n=new IntersectionObserver(C,{...E,root:s.ownerDocument})}catch{n=new IntersectionObserver(C,E)}n.observe(e)}return a(!0),i}function P4(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Zv(e),d=s||i?[...c?kc(c):[],...kc(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const h=c&&o?O4(c,n):null;let p=-1,f=null;a&&(f=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),n()}),c&&!u&&f.observe(c),f.observe(t));let w,m=u?ro(e):null;u&&x();function x(){const v=ro(e);m&&!A2(m,v)&&n(),m=v,w=requestAnimationFrame(x)}return n(),()=>{var v;d.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),h==null||h(),(v=f)==null||v.disconnect(),f=null,u&&cancelAnimationFrame(w)}}
vendor: 3,493 bytes, line 311
311const D4=s4,j4=i4,L4=t4,M4=o4,F4=n4,X1=e4,B4=a4,U4=(e,t,n)=>{const r=new Map,s={platform:I4,...n},i={...s.platform,_c:r};return ZL(e,t,{...s,platform:i})};var H4=typeof document<"u",$4=function(){},Ph=H4?y.useLayoutEffect:$4;function bf(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(!bf(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 i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!bf(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function R2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function J1(e,t){const n=R2(e);return Math.round(t*n)/n}function Wm(e){const t=y.useRef(e);return Ph(()=>{t.current=e}),t}function z4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:a}={},transform:o=!0,whileElementsMounted:u,open:c}=e,[d,h]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=y.useState(r);bf(p,r)||f(r);const[w,m]=y.useState(null),[x,v]=y.useState(null),b=y.useCallback($=>{$!==_.current&&(_.current=$,m($))},[]),E=y.useCallback($=>{$!==k.current&&(k.current=$,v($))},[]),T=i||w,C=a||x,_=y.useRef(null),k=y.useRef(null),P=y.useRef(d),M=u!=null,F=Wm(u),U=Wm(s),j=Wm(c),Y=y.useCallback(()=>{if(!_.current||!k.current)return;const $={placement:t,strategy:n,middleware:p};U.current&&($.platform=U.current),U4(_.current,k.current,$).then(V=>{const S={...V,isPositioned:j.current!==!1};z.current&&!bf(P.current,S)&&(P.current=S,wr.flushSync(()=>{h(S)}))})},[p,t,n,U,j]);Ph(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,h($=>({...$,isPositioned:!1})))},[c]);const z=y.useRef(!1);Ph(()=>(z.current=!0,()=>{z.current=!1}),[]),Ph(()=>{if(T&&(_.current=T),C&&(k.current=C),T&&C){if(F.current)return F.current(T,C,Y);Y()}},[T,C,Y,F,M]);const X=y.useMemo(()=>({reference:_,floating:k,setReference:b,setFloating:E}),[b,E]),Q=y.useMemo(()=>({reference:T,floating:C}),[T,C]),J=y.useMemo(()=>{const $={position:n,left:0,top:0};if(!Q.floating)return $;const V=J1(Q.floating,d.x),S=J1(Q.floating,d.y);return o?{...$,transform:"translate("+V+"px, "+S+"px)",...R2(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:S}},[n,o,Q.floating,d.x,d.y]);return y.useMemo(()=>({...d,update:Y,refs:X,elements:Q,floatingStyles:J}),[d,Y,X,Q,J])}const V4=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?X1({element:r.current,padding:s}).fn(n):{}:r?X1({element:r,padding:s}).fn(n):{}}}},W4=(e,t)=>({...D4(e),options:[e,t]}),q4=(e,t)=>({...j4(e),options:[e,t]}),Y4=(e,t)=>({...B4(e),options:[e,t]}),K4=(e,t)=>({...L4(e),options:[e,t]}),G4=(e,t)=>({...M4(e),options:[e,t]}),Q4=(e,t)=>({...F4(e),options:[e,t]}),X4=(e,t)=>({...V4(e),options:[e,t]});var J4="Arrow",I2=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return l.jsx(De.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});I2.displayName=J4;var Z4=I2;function tb(e){const[t,n]=y.useState(void 0);return xn(()=>
vendor: 5,371 bytes, line 311
311{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let a,o;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;a=c.inlineSize,o=c.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nb="Popper",[O2,_p]=Kr(nb),[e6,P2]=O2(nb),D2=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return l.jsx(e6,{scope:t,anchor:r,onAnchorChange:s,children:n})};D2.displayName=nb;var j2="PopperAnchor",L2=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=P2(j2,n),a=y.useRef(null),o=tt(t,a);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsx(De.div,{...s,ref:o})});L2.displayName=j2;var rb="PopperContent",[t6,n6]=O2(rb),M2=y.forwardRef((e,t)=>{var re,we,Le,fe,Ne,Ae;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:o=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:w,...m}=e,x=P2(rb,n),[v,b]=y.useState(null),E=tt(t,dt=>b(dt)),[T,C]=y.useState(null),_=tb(T),k=(_==null?void 0:_.width)??0,P=(_==null?void 0:_.height)??0,M=r+(i!=="center"?"-"+i:""),F=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},U=Array.isArray(c)?c:[c],j=U.length>0,Y={padding:F,boundary:U.filter(s6),altBoundary:j},{refs:z,floatingStyles:X,placement:Q,isPositioned:J,middlewareData:$}=z4({strategy:"fixed",placement:M,whileElementsMounted:(...dt)=>P4(...dt,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[W4({mainAxis:s+P,alignmentAxis:a}),u&&q4({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Y4():void 0,...Y}),u&&K4({...Y}),G4({...Y,apply:({elements:dt,rects:Ge,availableWidth:Nt,availableHeight:Lt})=>{const{width:wn,height:dr}=Ge.reference,ce=dt.floating.style;ce.setProperty("--radix-popper-available-width",`${Nt}px`),ce.setProperty("--radix-popper-available-height",`${Lt}px`),ce.setProperty("--radix-popper-anchor-width",`${wn}px`),ce.setProperty("--radix-popper-anchor-height",`${dr}px`)}}),T&&X4({element:T,padding:o}),i6({arrowWidth:k,arrowHeight:P}),p&&Q4({strategy:"referenceHidden",...Y})]}),[V,S]=U2(Q),ue=Yr(w);xn(()=>{J&&(ue==null||ue())},[J,ue]);const te=(re=$.arrow)==null?void 0:re.x,R=(we=$.arrow)==null?void 0:we.y,pe=((Le=$.arrow)==null?void 0:Le.centerOffset)!==0,[je,_e]=y.useState();return xn(()=>{v&&_e(window.getComputedStyle(v).zIndex)},[v]),l.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:J?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:je,"--radix-popper-transform-origin":[(fe=$.transformOrigin)==null?void 0:fe.x,(Ne=$.transformOrigin)==null?void 0:Ne.y].join(" "),...((Ae=$.hide)==null?void 0:Ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(t6,{scope:n,placedSide:V,onArrowChange:C,arrowX:te,arrowY:R,shouldHideArrow:pe,children:l.jsx(De.div,{"data-side":V,"data-align":S,...m,ref:E,style:{...m.style,animation:J?void 0:"none"}})})})});M2.displayName=rb;var F2="PopperArrow",r6={top:"bottom",right:"left",bottom:"top",left:"right"},B2=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=n6(F2,r),a=r6[i.placedSide];return l.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:l.jsx(Z4,{...s,ref:n,style:{...s.style,display:"block"}})})});B2.displayName=F2;function s6(e){return e!==null}var i6=e=>({name:"transformOrigin",options:e,fn(t){var x,v,b;const{placement:n,rects:r,middlewareData:s}=t,a=((x=s.arrow)==null?void 0:x.centerOffset)!==0,o=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[c,d]=U2(n),h={start:"0%",center:"50%",end:"100%"}[d],p=(((v=s.arrow)==null?void 0:v.x)??0)+o/2,f=(((b=s.arrow)==null?void 0:b.y)??0)+u/2;let w="",m="";return c==="bottom"?(w=a?h:`${p}px`,m=`${-u}px`):c==="top"?(w=a?h:`${p}px`,m=`${r.floating.height+u}px`):c==="right"?(w=`${-u}px`,m=a?h:`${f}px`):c==="left"&&(w=`${r.floating.width+u}px`,m=a?h:`${f}px`),{data:{x:w,y:m}}}});function U2(e){const[t,n="center"]=e.split("-");return[t,n]}var a6=D2,H2=L2,$2=M2,z2=B2,[Tp,YJ]=Kr("Tooltip",[_p]),sb=_p(),V2="TooltipProvider",o6=700,Z1="tooltip.open",[l6,W2]=Tp(V2),q2=e=>{const{__scopeTooltip:t,delayDuration:n=o6,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,a=y.useRef(!0),o=y.useRef(!1),u=y.useRef(0);return y.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),l.jsx(l6,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:o,onPointerInTransitChange:y.useCallback(c=>{o.current=c},[]),disableHoverableContent:s,children:i})};q2.displayName=V2;var Y2="Tooltip",[KJ,Sp]=Tp(Y2),j0="TooltipTrigger",u6=y.forwardRef((e,t)=>
vendor: 5,226 bytes, line 311
311{const{__scopeTooltip:n,...r}=e,s=Sp(j0,n),i=W2(j0,n),a=sb(n),o=y.useRef(null),u=tt(t,o,s.onTriggerChange),c=y.useRef(!1),d=y.useRef(!1),h=y.useCallback(()=>c.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),l.jsx(H2,{asChild:!0,...a,children:l.jsx(De.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:u,onPointerMove:Ce(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:Ce(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:Ce(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ce(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:Ce(e.onBlur,s.onClose),onClick:Ce(e.onClick,s.onClose)})})});u6.displayName=j0;var c6="TooltipPortal",[GJ,d6]=Tp(c6,{forceMount:void 0}),Il="TooltipContent",K2=y.forwardRef((e,t)=>{const n=d6(Il,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,a=Sp(Il,e.__scopeTooltip);return l.jsx(ya,{present:r||a.open,children:a.disableHoverableContent?l.jsx(G2,{side:s,...i,ref:t}):l.jsx(h6,{side:s,...i,ref:t})})}),h6=y.forwardRef((e,t)=>{const n=Sp(Il,e.__scopeTooltip),r=W2(Il,e.__scopeTooltip),s=y.useRef(null),i=tt(t,s),[a,o]=y.useState(null),{trigger:u,onClose:c}=n,d=s.current,{onPointerInTransitChange:h}=r,p=y.useCallback(()=>{o(null),h(!1)},[h]),f=y.useCallback((w,m)=>{const x=w.currentTarget,v={x:w.clientX,y:w.clientY},b=y6(v,x.getBoundingClientRect()),E=v6(v,b),T=b6(m.getBoundingClientRect()),C=w6([...E,...T]);o(C),h(!0)},[h]);return y.useEffect(()=>()=>p(),[p]),y.useEffect(()=>{if(u&&d){const w=x=>f(x,d),m=x=>f(x,u);return u.addEventListener("pointerleave",w),d.addEventListener("pointerleave",m),()=>{u.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",m)}}},[u,d,f,p]),y.useEffect(()=>{if(a){const w=m=>{const x=m.target,v={x:m.clientX,y:m.clientY},b=(u==null?void 0:u.contains(x))||(d==null?void 0:d.contains(x)),E=!x6(v,a);b?p():E&&(p(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[u,d,a,c,p]),l.jsx(G2,{...e,ref:i})}),[f6,p6]=Tp(Y2,{isInside:!1}),m6=aD("TooltipContent"),G2=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:a,...o}=e,u=Sp(Il,n),c=sb(n),{onClose:d}=u;return y.useEffect(()=>(document.addEventListener(Z1,d),()=>document.removeEventListener(Z1,d)),[d]),y.useEffect(()=>{if(u.trigger){const h=p=>{const f=p.target;f!=null&&f.contains(u.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[u.trigger,d]),l.jsx(ld,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:l.jsxs($2,{"data-state":u.stateAttribute,...c,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(m6,{children:r}),l.jsx(f6,{scope:n,isInside:!0,children:l.jsx(ND,{id:u.contentId,role:"tooltip",children:s||r})})]})})});K2.displayName=Il;var Q2="TooltipArrow",g6=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=sb(n);return p6(Q2,n).isInside?null:l.jsx(z2,{...s,...r,ref:t})});g6.displayName=Q2;function y6(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function v6(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function b6(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function x6(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const o=t[i],u=t[a],c=o.x,d=o.y,h=u.x,p=u.y;d>r!=p>r&&n<(h-c)*(r-d)/(p-d)+c&&(s=!s)}return s}function w6(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),E6(t)}function E6(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var _6=q2,X2=K2;const T6=_6,S6=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 36,850 bytes, line 311
311l.jsx(X2,{ref:r,sideOffset:t,className:be("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...n}));S6.displayName=X2.displayName;var Yl=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(){}},so=typeof window>"u"||"Deno"in globalThis;function $n(){}function C6(e,t){return typeof e=="function"?e(t):e}function L0(e){return typeof e=="number"&&e>=0&&e!==1/0}function J2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ia(e,t){return typeof e=="function"?e(t):e}function Dr(e,t){return typeof e=="function"?e(t):e}function ew(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:a,stale:o}=e;if(a){if(r){if(t.queryHash!==ib(a,t.options))return!1}else if(!Nc(t.queryKey,a))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||i&&!i(t))}function tw(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(io(t.options.mutationKey)!==io(i))return!1}else if(!Nc(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function ib(e,t){return((t==null?void 0:t.queryKeyHashFn)||io)(e)}function io(e){return JSON.stringify(e,(t,n)=>M0(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Nc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Nc(e[n],t[n])):!1}function Z2(e,t){if(e===t)return e;const n=nw(e)&&nw(t);if(n||M0(e)&&M0(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),a=i.length,o=n?[]:{},u=new Set(r);let c=0;for(let d=0;d<a;d++){const h=n?d:i[d];(!n&&u.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(o[h]=void 0,c++):(o[h]=Z2(e[h],t[h]),o[h]===e[h]&&e[h]!==void 0&&c++)}return s===a&&c===s?e:o}return t}function xf(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 nw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function M0(e){if(!rw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!rw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function rw(e){return Object.prototype.toString.call(e)==="[object Object]"}function k6(e){return new Promise(t=>{setTimeout(t,e)})}function F0(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Z2(e,t):t}function N6(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function A6(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ab=Symbol();function ek(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ab?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function tk(e,t){return typeof e=="function"?e(...t):!!e}var Ua,Li,cl,iT,R6=(iT=class extends Yl{constructor(){super();Se(this,Ua);Se(this,Li);Se(this,cl);me(this,cl,t=>{if(!so&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){D(this,Li)||this.setEventListener(D(this,cl))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,Li))==null||t.call(this),me(this,Li,void 0))}setEventListener(t){var n;me(this,cl,t),(n=D(this,Li))==null||n.call(this),me(this,Li,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){D(this,Ua)!==t&&(me(this,Ua,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof D(this,Ua)=="boolean"?D(this,Ua):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ua=new WeakMap,Li=new WeakMap,cl=new WeakMap,iT),ob=new R6,dl,Mi,hl,aT,I6=(aT=class extends Yl{constructor(){super();Se(this,dl,!0);Se(this,Mi);Se(this,hl);me(this,hl,t=>{if(!so&&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(){D(this,Mi)||this.setEventListener(D(this,hl))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,Mi))==null||t.call(this),me(this,Mi,void 0))}setEventListener(t){var n;me(this,hl,t),(n=D(this,Mi))==null||n.call(this),me(this,Mi,t(this.setOnline.bind(this)))}setOnline(t){D(this,dl)!==t&&(me(this,dl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return D(this,dl)}},dl=new WeakMap,Mi=new WeakMap,hl=new WeakMap,aT),wf=new I6;function B0(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});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}function O6(e){return Math.min(1e3*2**e,3e4)}function nk(e){return(e??"online")==="online"?wf.isOnline():!0}var rk=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function qm(e){return e instanceof rk}function sk(e){let t=!1,n=0,r=!1,s;const i=B0(),a=m=>{var x;r||(p(new rk(m)),(x=e.abort)==null||x.call(e))},o=()=>{t=!0},u=()=>{t=!1},c=()=>ob.isFocused()&&(e.networkMode==="always"||wf.isOnline())&&e.canRun(),d=()=>nk(e.networkMode)&&e.canRun(),h=m=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,m),s==null||s(),i.resolve(m))},p=m=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,m),s==null||s(),i.reject(m))},f=()=>new Promise(m=>{var x;s=v=>{(r||c())&&m(v)},(x=e.onPause)==null||x.call(e)}).then(()=>{var m;s=void 0,r||(m=e.onContinue)==null||m.call(e)}),w=()=>{if(r)return;let m;const x=n===0?e.initialPromise:void 0;try{m=x??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{var _;if(r)return;const b=e.retry??(so?0:3),E=e.retryDelay??O6,T=typeof E=="function"?E(n,v):E,C=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,v);if(t||!C){p(v);return}n++,(_=e.onFail)==null||_.call(e,n,v),k6(T).then(()=>c()?void 0:f()).then(()=>{t?p(v):w()})})};return{promise:i,cancel:a,continue:()=>(s==null||s(),i),cancelRetry:o,continueRetry:u,canStart:d,start:()=>(d()?w():f().then(w),i)}}var P6=e=>setTimeout(e,0);function D6(){let e=[],t=0,n=o=>{o()},r=o=>{o()},s=P6;const i=o=>{t?e.push(o):s(()=>{n(o)})},a=()=>{const o=e;e=[],o.length&&s(()=>{r(()=>{o.forEach(u=>{n(u)})})})};return{batch:o=>{let u;t++;try{u=o()}finally{t--,t||a()}return u},batchCalls:o=>(...u)=>{i(()=>{o(...u)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{s=o}}}var ln=D6(),Ha,oT,ik=(oT=class{constructor(){Se(this,Ha)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),L0(this.gcTime)&&me(this,Ha,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(so?1/0:5*60*1e3))}clearGcTimeout(){D(this,Ha)&&(clearTimeout(D(this,Ha)),me(this,Ha,void 0))}},Ha=new WeakMap,oT),fl,$a,Pr,za,In,Jc,Va,rs,Gs,lT,j6=(lT=class extends ik{constructor(t){super();Se(this,rs);Se(this,fl);Se(this,$a);Se(this,Pr);Se(this,za);Se(this,In);Se(this,Jc);Se(this,Va);me(this,Va,!1),me(this,Jc,t.defaultOptions),this.setOptions(t.options),this.observers=[],me(this,za,t.client),me(this,Pr,D(this,za).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,me(this,fl,L6(this.options)),this.state=t.state??D(this,fl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=D(this,In))==null?void 0:t.promise}setOptions(t){this.options={...D(this,Jc),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,Pr).remove(this)}setData(t,n){const r=F0(this.state.data,t,this.options);return ze(this,rs,Gs).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ze(this,rs,Gs).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=D(this,In))==null?void 0:r.promise;return(s=D(this,In))==null||s.cancel(t),n?n.then($n).catch($n):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,fl))}isActive(){return this.observers.some(t=>Dr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ab||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ia(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:!J2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,In))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,In))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),D(this,Pr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(D(this,In)&&(D(this,Va)?D(this,In).cancel({revert:!0}):D(this,In).cancelRetry()),this.scheduleGc()),D(this,Pr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ze(this,rs,Gs).call(this,{type:"invalidate"})}fetch(t,n){var c,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(D(this,In))return D(this,In).continueRetry(),D(this,In).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(me(this,Va,!0),r.signal)})},i=()=>{const p=ek(this.options,n),w=(()=>{const m={client:D(this,za),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return me(this,Va,!1),this.options.persister?this.options.persister(p,w,this):p(w)},o=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:D(this,za),state:this.state,fetchFn:i};return s(p),p})();(c=this.options.behavior)==null||c.onFetch(o,this),me(this,$a,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=o.fetchOptions)==null?void 0:d.meta))&&ze(this,rs,Gs).call(this,{type:"fetch",meta:(h=o.fetchOptions)==null?void 0:h.meta});const u=p=>{var f,w,m,x;qm(p)&&p.silent||ze(this,rs,Gs).call(this,{type:"error",error:p}),qm(p)||((w=(f=D(this,Pr).config).onError)==null||w.call(f,p,this),(x=(m=D(this,Pr).config).onSettled)==null||x.call(m,this.state.data,p,this)),this.scheduleGc()};return me(this,In,sk({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var f,w,m,x;if(p===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(v){u(v);return}(w=(f=D(this,Pr).config).onSuccess)==null||w.call(f,p,this),(x=(m=D(this,Pr).config).onSettled)==null||x.call(m,p,this.state.error,this),this.scheduleGc()},onError:u,onFail:(p,f)=>{ze(this,rs,Gs).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{ze(this,rs,Gs).call(this,{type:"pause"})},onContinue:()=>{ze(this,rs,Gs).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),D(this,In).start()}},fl=new WeakMap,$a=new WeakMap,Pr=new WeakMap,za=new WeakMap,In=new WeakMap,Jc=new WeakMap,Va=new WeakMap,rs=new WeakSet,Gs=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,...ak(r.data,this.options),fetchMeta:t.meta??null};case"success":return me(this,$a,void 0),{...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}};case"error":const s=t.error;return qm(s)&&s.revert&&D(this,$a)?{...D(this,$a),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ln.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),D(this,Pr).notify({query:this,type:"updated",action:t})})},lT);function ak(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function L6(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 Ts,uT,M6=(uT=class extends Yl{constructor(t={}){super();Se(this,Ts);this.config=t,me(this,Ts,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??ib(s,n);let a=this.get(i);return a||(a=new j6({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){D(this,Ts).has(t.queryHash)||(D(this,Ts).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=D(this,Ts).get(t.queryHash);n&&(t.destroy(),n===t&&D(this,Ts).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ln.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return D(this,Ts).get(t)}getAll(){return[...D(this,Ts).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ew(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ew(t,r)):n}notify(t){ln.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ln.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ln.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ts=new WeakMap,uT),Ss,Bn,Wa,Cs,Ti,cT,F6=(cT=class extends ik{constructor(t){super();Se(this,Cs);Se(this,Ss);Se(this,Bn);Se(this,Wa);this.mutationId=t.mutationId,me(this,Bn,t.mutationCache),me(this,Ss,[]),this.state=t.state||ok(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){D(this,Ss).includes(t)||(D(this,Ss).push(t),this.clearGcTimeout(),D(this,Bn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){me(this,Ss,D(this,Ss).filter(n=>n!==t)),this.scheduleGc(),D(this,Bn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){D(this,Ss).length||(this.state.status==="pending"?this.scheduleGc():D(this,Bn).remove(this))}continue(){var t;return((t=D(this,Wa))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,u,c,d,h,p,f,w,m,x,v,b,E,T,C,_,k,P;const n=()=>{ze(this,Cs,Ti).call(this,{type:"continue"})};me(this,Wa,sk({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,F)=>{ze(this,Cs,Ti).call(this,{type:"failed",failureCount:M,error:F})},onPause:()=>{ze(this,Cs,Ti).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,Bn).canRun(this)}));const r=this.state.status==="pending",s=!D(this,Wa).canStart();try{if(r)n();else{ze(this,Cs,Ti).call(this,{type:"pending",variables:t,isPaused:s}),await((a=(i=D(this,Bn).config).onMutate)==null?void 0:a.call(i,t,this));const F=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t));F!==this.state.context&&ze(this,Cs,Ti).call(this,{type:"pending",context:F,variables:t,isPaused:s})}const M=await D(this,Wa).start();return await((d=(c=D(this,Bn).config).onSuccess)==null?void 0:d.call(c,M,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,M,t,this.state.context)),await((w=(f=D(this,Bn).config).onSettled)==null?void 0:w.call(f,M,null,this.state.variables,this.state.context,this)),await((x=(m=this.options).onSettled)==null?void 0:x.call(m,M,null,t,this.state.context)),ze(this,Cs,Ti).call(this,{type:"success",data:M}),M}catch(M){try{throw await((b=(v=D(this,Bn).config).onError)==null?void 0:b.call(v,M,t,this.state.context,this)),await((T=(E=this.options).onError)==null?void 0:T.call(E,M,t,this.state.context)),await((_=(C=D(this,Bn).config).onSettled)==null?void 0:_.call(C,void 0,M,this.state.variables,this.state.context,this)),await((P=(k=this.options).onSettled)==null?void 0:P.call(k,void 0,M,t,this.state.context)),M}finally{ze(this,Cs,Ti).call(this,{type:"error",error:M})}}finally{D(this,Bn).runNext(this)}}},Ss=new WeakMap,Bn=new WeakMap,Wa=new WeakMap,Cs=new WeakSet,Ti=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};case"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),ln.batch(()=>{D(this,Ss).forEach(r=>{r.onMutationUpdate(t)}),D(this,Bn).notify({mutation:this,type:"updated",action:t})})},cT);function ok(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Zs,ss,Zc,dT,B6=(dT=class extends Yl{constructor(t={}){super();Se(this,Zs);Se(this,ss);Se(this,Zc);this.config=t,me(this,Zs,new Set),me(this,ss,new Map),me(this,Zc,0)}build(t,n,r){const s=new F6({mutationCache:this,mutationId:++Pd(this,Zc)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){D(this,Zs).add(t);const n=nh(t);if(typeof n=="string"){const r=D(this,ss).get(n);r?r.push(t):D(this,ss).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(D(this,Zs).delete(t)){const n=nh(t);if(typeof n=="string"){const r=D(this,ss).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&D(this,ss).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=nh(t);if(typeof n=="string"){const r=D(this,ss).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=nh(t);if(typeof n=="string"){const s=(r=D(this,ss).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ln.batch(()=>{D(this,Zs).forEach(t=>{this.notify({type:"removed",mutation:t})}),D(this,Zs).clear(),D(this,ss).clear()})}getAll(){return Array.from(D(this,Zs))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tw(n,r))}findAll(t={}){return this.getAll().filter(n=>tw(t,n))}notify(t){ln.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ln.batch(()=>Promise.all(t.map(n=>n.continue().catch($n))))}},Zs=new WeakMap,ss=new WeakMap,Zc=new WeakMap,dT);function nh(e){var t;return(t=e.options.scope)==null?void 0:t.id}function sw(e){return{onFetch:(t,n)=>{var d,h,p,f,w;const r=t.options,s=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],a=((w=t.state.data)==null?void 0:w.pageParams)||[];let o={pages:[],pageParams:[]},u=0;const c=async()=>{let m=!1;const x=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=ek(t.options,t.fetchOptions),b=async(E,T,C)=>{if(m)return Promise.reject();if(T==null&&E.pages.length)return Promise.resolve(E);const k=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:T,direction:C?"backward":"forward",meta:t.options.meta};return x(U),U})(),P=await v(k),{maxPages:M}=t.options,F=C?A6:N6;return{pages:F(E.pages,P,M),pageParams:F(E.pageParams,T,M)}};if(s&&i.length){const E=s==="backward",T=E?U6:iw,C={pages:i,pageParams:a},_=T(r,C);o=await b(C,_,E)}else{const E=e??i.length;do{const T=u===0?a[0]??r.initialPageParam:iw(r,o);if(u>0&&T==null)break;o=await b(o,T),u++}while(u<E)}return o};t.options.persister?t.fetchFn=()=>{var m,x;return(x=(m=t.options).persister)==null?void 0:x.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function iw(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 U6(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 Ut,Fi,Bi,pl,ml,Ui,gl,yl,hT,H6=(hT=class{constructor(e={}){Se(this,Ut);Se(this,Fi);Se(this,Bi);Se(this,pl);Se(this,ml);Se(this,Ui);Se(this,gl);Se(this,yl);me(this,Ut,e.queryCache||new M6),me(this,Fi,e.mutationCache||new B6),me(this,Bi,e.defaultOptions||{}),me(this,pl,new Map),me(this,ml,new Map),me(this,Ui,0)}mount(){Pd(this,Ui)._++,D(this,Ui)===1&&(me(this,gl,ob.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Ut).onFocus())})),me(this,yl,wf.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Ut).onOnline())})))}unmount(){var e,t;Pd(this,Ui)._--,D(this,Ui)===0&&((e=D(this,gl))==null||e.call(this),me(this,gl,void 0),(t=D(this,yl))==null||t.call(this),me(this,yl,void 0))}isFetching(e){return D(this,Ut).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,Fi).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,Ut).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=D(this,Ut).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ia(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return D(this,Ut).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=D(this,Ut).get(r.queryHash),i=s==null?void 0:s.state.data,a=C6(t,i);if(a!==void 0)return D(this,Ut).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ln.batch(()=>D(this,Ut).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,Ut).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=D(this,Ut);ln.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=D(this,Ut);return ln.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ln.batch(()=>D(this,Ut).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then($n).catch($n)}invalidateQueries(e,t={}){return ln.batch(()=>(D(this,Ut).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=ln.batch(()=>D(this,Ut).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch($n)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then($n)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=D(this,Ut).build(this,t);return n.isStaleByTime(ia(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($n).catch($n)}fetchInfiniteQuery(e){return e.behavior=sw(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($n).catch($n)}ensureInfiniteQueryData(e){return e.behavior=sw(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wf.isOnline()?D(this,Fi).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Ut)}getMutationCache(){return D(this,Fi)}getDefaultOptions(){return D(this,Bi)}setDefaultOptions(e){me(this,Bi,e)}setQueryDefaults(e,t){D(this,pl).set(io(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...D(this,pl).values()],n={};return t.forEach(r=>{Nc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){D(this,ml).set(io(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...D(this,ml).values()],n={};return t.forEach(r=>{Nc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...D(this,Bi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ib(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===ab&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...D(this,Bi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,Ut).clear(),D(this,Fi).clear()}},Ut=new WeakMap,Fi=new WeakMap,Bi=new WeakMap,pl=new WeakMap,ml=new WeakMap,Ui=new WeakMap,gl=new WeakMap,yl=new WeakMap,hT),Xn,Qe,ed,Un,qa,vl,Hi,$i,td,bl,xl,Ya,Ka,zi,wl,ct,Ou,U0,H0,$0,z0,V0,W0,q0,lk,fT,$6=(fT=class extends Yl{constructor(t,n){super();Se(this,ct);Se(this,Xn);Se(this,Qe);Se(this,ed);Se(this,Un);Se(this,qa);Se(this,vl);Se(this,Hi);Se(this,$i);Se(this,td);Se(this,bl);Se(this,xl);Se(this,Ya);Se(this,Ka);Se(this,zi);Se(this,wl,new Set);this.options=n,me(this,Xn,t),me(this,$i,null),me(this,Hi,B0()),this.options.experimental_prefetchInRender||D(this,Hi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Qe).addObserver(this),aw(D(this,Qe),this.options)?ze(this,ct,Ou).call(this):this.updateResult(),ze(this,ct,z0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Y0(D(this,Qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Y0(D(this,Qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ze(this,ct,V0).call(this),ze(this,ct,W0).call(this),D(this,Qe).removeObserver(this)}setOptions(t){const n=this.options,r=D(this,Qe);if(this.options=D(this,Xn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dr(this.options.enabled,D(this,Qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ze(this,ct,q0).call(this),D(this,Qe).setOptions(this.options),n._defaulted&&!xf(this.options,n)&&D(this,Xn).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Qe),observer:this});const s=this.hasListeners();s&&ow(D(this,Qe),r,this.options,n)&&ze(this,ct,Ou).call(this),this.updateResult(),s&&(D(this,Qe)!==r||Dr(this.options.enabled,D(this,Qe))!==Dr(n.enabled,D(this,Qe))||ia(this.options.staleTime,D(this,Qe))!==ia(n.staleTime,D(this,Qe)))&&ze(this,ct,U0).call(this);const i=ze(this,ct,H0).call(this);s&&(D(this,Qe)!==r||Dr(this.options.enabled,D(this,Qe))!==Dr(n.enabled,D(this,Qe))||i!==D(this,zi))&&ze(this,ct,$0).call(this,i)}getOptimisticResult(t){const n=D(this,Xn).getQueryCache().build(D(this,Xn),t),r=this.createResult(n,t);return V6(this,r)&&(me(this,Un,r),me(this,vl,this.options),me(this,qa,D(this,Qe).state)),r}getCurrentResult(){return D(this,Un)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),Reflect.get(r,s))})}trackProp(t){D(this,wl).add(t)}getCurrentQuery(){return D(this,Qe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=D(this,Xn).defaultQueryOptions(t),r=D(this,Xn).getQueryCache().build(D(this,Xn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ze(this,ct,Ou).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,Un)))}createResult(t,n){var M;const r=D(this,Qe),s=this.options,i=D(this,Un),a=D(this,qa),o=D(this,vl),c=t!==r?t.state:D(this,ed),{state:d}=t;let h={...d},p=!1,f;if(n._optimisticResults){const F=this.hasListeners(),U=!F&&aw(t,n),j=F&&ow(t,r,n,s);(U||j)&&(h={...h,...ak(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:m,status:x}=h;f=h.data;let v=!1;if(n.placeholderData!==void 0&&f===void 0&&x==="pending"){let F;i!=null&&i.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(F=i.data,v=!0):F=typeof n.placeholderData=="function"?n.placeholderData((M=D(this,xl))==null?void 0:M.state.data,D(this,xl)):n.placeholderData,F!==void 0&&(x="success",f=F0(i==null?void 0:i.data,F,n),p=!0)}if(n.select&&f!==void 0&&!v)if(i&&f===(a==null?void 0:a.data)&&n.select===D(this,td))f=D(this,bl);else try{me(this,td,n.select),f=n.select(f),f=F0(i==null?void 0:i.data,f,n),me(this,bl,f),me(this,$i,null)}catch(F){me(this,$i,F)}D(this,$i)&&(w=D(this,$i),f=D(this,bl),m=Date.now(),x="error");const b=h.fetchStatus==="fetching",E=x==="pending",T=x==="error",C=E&&b,_=f!==void 0,P={status:x,fetchStatus:h.fetchStatus,isPending:E,isSuccess:x==="success",isError:T,isInitialLoading:C,isLoading:C,data:f,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!E,isLoadingError:T&&!_,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:T&&_,isStale:lb(t,n),refetch:this.refetch,promise:D(this,Hi),isEnabled:Dr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const F=Y=>{P.status==="error"?Y.reject(P.error):P.data!==void 0&&Y.resolve(P.data)},U=()=>{const Y=me(this,Hi,P.promise=B0());F(Y)},j=D(this,Hi);switch(j.status){case"pending":t.queryHash===r.queryHash&&F(j);break;case"fulfilled":(P.status==="error"||P.data!==j.value)&&U();break;case"rejected":(P.status!=="error"||P.error!==j.reason)&&U();break}}return P}updateResult(){const t=D(this,Un),n=this.createResult(D(this,Qe),this.options);if(me(this,qa,D(this,Qe).state),me(this,vl,this.options),D(this,qa).data!==void 0&&me(this,xl,D(this,Qe)),xf(n,t))return;me(this,Un,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!D(this,wl).size)return!0;const a=new Set(i??D(this,wl));return this.options.throwOnError&&a.add("error"),Object.keys(D(this,Un)).some(o=>{const u=o;return D(this,Un)[u]!==t[u]&&a.has(u)})};ze(this,ct,lk).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ze(this,ct,z0).call(this)}},Xn=new WeakMap,Qe=new WeakMap,ed=new WeakMap,Un=new WeakMap,qa=new WeakMap,vl=new WeakMap,Hi=new WeakMap,$i=new WeakMap,td=new WeakMap,bl=new WeakMap,xl=new WeakMap,Ya=new WeakMap,Ka=new WeakMap,zi=new WeakMap,wl=new WeakMap,ct=new WeakSet,Ou=function(t){ze(this,ct,q0).call(this);let n=D(this,Qe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch($n)),n},U0=function(){ze(this,ct,V0).call(this);const t=ia(this.options.staleTime,D(this,Qe));if(so||D(this,Un).isStale||!L0(t))return;const r=J2(D(this,Un).dataUpdatedAt,t)+1;me(this,Ya,setTimeout(()=>{D(this,Un).isStale||this.updateResult()},r))},H0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,Qe)):this.options.refetchInterval)??!1},$0=function(t){ze(this,ct,W0).call(this),me(this,zi,t),!(so||Dr(this.options.enabled,D(this,Qe))===!1||!L0(D(this,zi))||D(this,zi)===0)&&me(this,Ka,setInterval(()=>{(this.options.refetchIntervalInBackground||ob.isFocused())&&ze(this,ct,Ou).call(this)},D(this,zi)))},z0=function(){ze(this,ct,U0).call(this),ze(this,ct,$0).call(this,ze(this,ct,H0).call(this))},V0=function(){D(this,Ya)&&(clearTimeout(D(this,Ya)),me(this,Ya,void 0))},W0=function(){D(this,Ka)&&(clearInterval(D(this,Ka)),me(this,Ka,void 0))},q0=function(){const t=D(this,Xn).getQueryCache().build(D(this,Xn),this.options);if(t===D(this,Qe))return;const n=D(this,Qe);me(this,Qe,t),me(this,ed,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},lk=function(t){ln.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(D(this,Un))}),D(this,Xn).getQueryCache().notify({query:D(this,Qe),type:"observerResultsUpdated"})})},fT);function z6(e,t){return Dr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function aw(e,t){return z6(e,t)||e.state.data!==void 0&&Y0(e,t,t.refetchOnMount)}function Y0(e,t,n){if(Dr(t.enabled,e)!==!1&&ia(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&lb(e,t)}return!1}function ow(e,t,n,r){return(e!==t||Dr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&lb(e,n)}function lb(e,t){return Dr(t.enabled,e)!==!1&&e.isStaleByTime(ia(t.staleTime,e))}function V6(e,t){return!xf(e.getCurrentResult(),t)}var Vi,Wi,Jn,ei,oi,Dh,K0,pT,W6=(pT=class extends Yl{constructor(n,r){super();Se(this,oi);Se(this,Vi);Se(this,Wi);Se(this,Jn);Se(this,ei);me(this,Vi,n),this.setOptions(r),this.bindMethods(),ze(this,oi,Dh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=D(this,Vi).defaultMutationOptions(n),xf(this.options,r)||D(this,Vi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,Jn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&io(r.mutationKey)!==io(this.options.mutationKey)?this.reset():((s=D(this,Jn))==null?void 0:s.state.status)==="pending"&&D(this,Jn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=D(this,Jn))==null||n.removeObserver(this)}onMutationUpdate(n){ze(this,oi,Dh).call(this),ze(this,oi,K0).call(this,n)}getCurrentResult(){return D(this,Wi)}reset(){var n;(n=D(this,Jn))==null||n.removeObserver(this),me(this,Jn,void 0),ze(this,oi,Dh).call(this),ze(this,oi,K0).call(this)}mutate(n,r){var s;return me(this,ei,r),(s=D(this,Jn))==null||s.removeObserver(this),me(this,Jn,D(this,Vi).getMutationCache().build(D(this,Vi),this.options)),D(this,Jn).addObserver(this),D(this,Jn).execute(n)}},Vi=new WeakMap,Wi=new WeakMap,Jn=new WeakMap,ei=new WeakMap,oi=new WeakSet,Dh=function(){var r;const n=((r=D(this,Jn))==null?void 0:r.state)??ok();me(this,Wi,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},K0=function(n){ln.batch(()=>{var r,s,i,a,o,u,c,d;if(D(this,ei)&&this.hasListeners()){const h=D(this,Wi).variables,p=D(this,Wi).context;(n==null?void 0:n.type)==="success"?((s=(r=D(this,ei)).onSuccess)==null||s.call(r,n.data,h,p),(a=(i=D(this,ei)).onSettled)==null||a.call(i,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((u=(o=D(this,ei)).onError)==null||u.call(o,n.error,h,p),(d=(c=D(this,ei)).onSettled)==null||d.call(c,void 0,n.error,h,p))}
311this.listeners.forEach(h=>{h(D(this,Wi))})})},pT),uk=y.createContext(void 0),po=e=>{const t=y.useContext(uk);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},q6=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(uk.Provider,{value:e,children:t})),ck=y.createContext(!1),Y6=()=>y.useContext(ck);ck.Provider;function K6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var G6=y.createContext(K6()),Q6=()=>y.useContext(G6),X6=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},J6=e=>{y.useEffect(()=>{e.clearReset()},[e])},Z6=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||tk(n,[e.error,r])),eM=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},tM=(e,t)=>e.isLoading&&e.isFetching&&!t,nM=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,lw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function rM(e,t,n){var h,p,f,w,m;const r=Y6(),s=Q6(),i=po(),a=i.defaultQueryOptions(e);(p=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.call(h,a),a._optimisticResults=r?"isRestoring":"optimistic",eM(a),X6(a,s),J6(s);const o=!i.getQueryCache().get(a.queryHash),[u]=y.useState(()=>new t(i,a)),c=u.getOptimisticResult(a),d=!r&&e.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(x=>{const v=d?u.subscribe(ln.batchCalls(x)):$n;return u.updateResult(),v},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),y.useEffect(()=>{u.setOptions(a)},[a,u]),nM(a,c))throw lw(a,u,s);if(Z6({result:c,errorResetBoundary:s,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw c.error;if((w=(f=i.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||w.call(f,a,c),a.experimental_prefetchInRender&&!so&&tM(c,r)){const x=o?lw(a,u,s):(m=i.getQueryCache().get(a.queryHash))==null?void 0:m.promise;x==null||x.catch($n).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?c:u.trackResult(c)}function mo(e,t){return rM(e,$6)}function Ac(e,t){const n=po(),[r]=y.useState(()=>new W6(n,e));y.useEffect(()=>{r.setOptions(e)},[r,e]);const s=y.useSyncExternalStore(y.useCallback(a=>r.subscribe(ln.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=y.useCallback((a,o)=>{r.mutate(a,o).catch($n)},[r]);if(s.error&&tk(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}/**
312 * @remix-run/router v1.23.0
313 *
314 * Copyright (c) Remix Software Inc.
315 *
316 * This source code is licensed under the MIT license found in the
317 * LICENSE.md file in the root directory of this source tree.
318 *
319 * @license MIT
320 */function Rc(){return Rc=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},Rc.apply(this,arguments)}var Ki;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ki||(Ki={}));const uw="popstate";function sM(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:a,hash:o}=r.location;return G0("",{pathname:i,search:a,hash:o},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ef(s)}return aM(t,n,null,e)}function tn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dk(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iM(){return Math.random().toString(36).substr(2,8)}function cw(e,t){return{usr:e.state,key:e.key,idx:t}}function G0(e,t,n,r){return n===void 0&&(n=null),Rc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Kl(t):t,{state:n,key:t&&t.key||r||iM()})}function Ef(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 Kl(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 aM(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,o=Ki.Pop,u=null,c=d();c==null&&(c=0,a.replaceState(Rc({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function h(){o=Ki.Pop;let x=d(),v=x==null?null:x-c;c=x,u&&u({action:o,location:m.location,delta:v})}function p(x,v){o=Ki.Push;let b=G0(m.location,x,v);c=d()+1;let E=cw(b,c),T=m.createHref(b);try{a.pushState(E,"",T)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;s.location.assign(T)}i&&u&&u({action:o,location:m.location,delta:1})}function f(x,v){o=Ki.Replace;let b=G0(m.location,x,v);c=d();let E=cw(b,c),T=m.createHref(b);a.replaceState(E,"",T),i&&u&&u({action:o,location:m.location,delta:0})}function w(x){let v=s.location.origin!=="null"?s.location.origin:s.location.href,b=typeof x=="str
320ing"?x:Ef(x);return b=b.replace(/ $/,"%20"),tn(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let m={get action(){return o},get location(){return e(s,a)},listen(x){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(uw,h),u=x,()=>{s.removeEventListener(uw,h),u=null}},createHref(x){return t(s,x)},createURL:w,encodeLocation(x){let v=w(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:f,go(x){return a.go(x)}};return m}var dw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(dw||(dw={}));function oM(e,t,n){return n===void 0&&(n="/"),lM(e,t,n,!1)}function lM(e,t,n,r){let s=typeof t=="string"?Kl(t):t,i=ub(s.pathname||"/",n);if(i==null)return null;let a=hk(e);uM(a);let o=null;for(let u=0;o==null&&u<a.length;++u){let c=xM(i);o=vM(a[u],c,r)}return o}function hk(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,a,o)=>{let u={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(tn(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=aa([r,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(tn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),hk(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:gM(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))s(i,a);else for(let u of fk(i.path))s(i,a,u)}),t}function fk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let a=fk(r.join("/")),o=[];return o.push(...a.map(u=>u===""?i:[i,u].join("/"))),s&&o.push(...a),o.map(u=>e.startsWith("/")&&u===""?"/":u)}function uM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:yM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const cM=/^:[\w-]+$/,dM=3,hM=2,fM=1,pM=10,mM=-2,hw=e=>e==="*";function gM(e,t){let n=e.split("/"),r=n.length;return n.some(hw)&&(r+=mM),t&&(r+=hM),n.filter(s=>!hw(s)).reduce((s,i)=>s+(cM.test(i)?dM:i===""?fM:pM),r)}function yM(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 vM(e,t,n){let{routesMeta:r}=e,s={},i="/",a=[];for(let o=0;o<r.length;++o){let u=r[o],c=o===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",h=fw({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),p=u.route;if(!h&&c&&n&&!r[r.length-1].route.index&&(h=fw({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},d)),!h)return null;
vendor: 9,263 bytes, lines 320-329
320Object.assign(s,h.params),a.push({params:s,pathname:aa([i,h.pathname]),pathnameBase:TM(aa([i,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(i=aa([i,h.pathnameBase]))}return a}function fw(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=bM(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),o=s.slice(1);return{params:r.reduce((c,d,h)=>{let{paramName:p,isOptional:f}=d;if(p==="*"){let m=o[h]||"";a=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const w=o[h];return f&&!w?c[p]=void 0:c[p]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function bM(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dk(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,(a,o,u)=>(r.push({paramName:o,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function xM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dk(!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 ub(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 wM(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Kl(e):e;return{pathname:n?n.startsWith("/")?n:EM(n,t):t,search:SM(r),hash:CM(s)}}function EM(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 Ym(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 _M(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function pk(e,t){let n=_M(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function mk(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Kl(e):(s=Rc({},e),tn(!s.pathname||!s.pathname.includes("?"),Ym("?","pathname","search",s)),tn(!s.pathname||!s.pathname.includes("#"),Ym("#","pathname","hash",s)),tn(!s.search||!s.search.includes("#"),Ym("#","search","hash",s)));let i=e===""||s.pathname==="",a=i?"/":s.pathname,o;if(a==null)o=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),h-=1;s.pathname=p.join("/")}o=h>=0?t[h]:"/"}let u=wM(s,o),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const aa=e=>e.join("/").replace(/\/\/+/g,"/"),TM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,CM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const gk=["post","put","patch","delete"];new Set(gk);const NM=["get",...gk];new Set(NM);/**
321 * React Router v6.30.1
322 *
323 * Copyright (c) Remix Software Inc.
324 *
325 * This source code is licensed under the MIT license found in the
326 * LICENSE.md file in the root directory of this source tree.
327 *
328 * @license MIT
329 */function Ic(){return Ic=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},Ic.apply(this,arguments)}const cb=y.createContext(null),AM=y.createContext(null),go=y.createContext(null),Cp=y.createContext(null),va=y.createContext({outlet:null,matches:[],isDataRoute:!1}),yk=y.createContext(null);function RM(e,t){let{relative:n}=t===void 0?{}:t;dd()||tn(!1);let{basename:r,navigator:s}=y.useContext(go),{hash:i,pathname:a,search:o}=xk(e,{relative:n}),u=a;return r!=="/"&&(u=a==="/"?r:aa([r,a])),s.createHref({pathname:u,search:o,hash:i})}function dd(){return y.useContext(Cp)!=null}function Ws(){return dd()||tn(!1),y.useContext(Cp).location}function vk(e){y.useContext(go).static||y.useLayoutEffect(e)}function bk(){let{isDataRoute:e}=y.useContext(va);return e?VM():IM()}function IM(){dd()||tn(!1);let e=y.useContext(cb),{basename:t,future:n,navigator:r}=y.useContext(go),{matches:s}=y.useContext(va),{pathname:i}=Ws(),a=JSON.stringify(pk(s,n.v7_relativeSplatPath)),o=y.useRef(!1);return vk(()=>{o.current=!0}),y.useCallback(function(c,d){if(d===void 0&&(d={}),!o.current)return;if(typeof c=="number"){r.go(c);return}let h=mk(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:aa([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,a,i,e])}function OM(){let{matches:e}=y.useContext(va),t=e[e.length-1];return t?t.params:{}}function xk(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(go),{matches:s}=y.useContext(va),{pathname:i}=Ws(),a=JSON.stringify(pk(s,r.v7_relativeSplatPath));return y.useMemo(()=>mk(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function PM(e,t){return DM(e,t)}function DM(e,t,n,r){dd()||tn(!1);let{navigator:s}=y.useContext(go),{matches:i}=y.useContext(va),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Ws(),d;if(t){var h;let x=typeof t=="string"?Kl(t):t;u==="/"||(h=x.pathname)!=null&&h.startsWith(u)||tn(!1),d=x}else d=c;let p=d.pathname||"/",f=p;if(u!=="/"){let x=u.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=oM(e,{pathname:f}),m=BM(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},o,x.params),pathname:aa([u,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:aa([u,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&m?y.createElement(Cp.Provider,{value:{location:Ic({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ki.Pop}},m):m}function jM(){let e=zM(),t=kM(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 y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:s},n):null,null)}const LM=y.createElement(jM,null);class MM extends y.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?y.createElement(va.Provider,{value:this.props.routeContext},y.createElement(yk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function FM(e){let{routeContext:t,match:n,children:r}=e,s=y.useContext(cb);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(va.Provider,{value:t},r)}function BM(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=(s=n)==null?void 0:s.errors;if(o!=null){let d=a.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);d>=0||tn(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=d),h.route.id){let{loaderData:p,errors:f}=n,w=h.route.loader&&p[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||w){u=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,h,p)=>{let f,w=!1,m=null,x=null;n&&(f=o&&h.route.id?o[h.route.id]:void 0,m=h.route.errorElement||LM,u&&(c<0&&p===0?(w=!0,x=null):c===p&&(w=!0,x=h.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,p+1)),b=()=>{let E;return f?E=m:w?E=x:h.route.Component?E=y.createElement(h.route.Component,null):h.route.element?E=h.route.element:E=d,y.createElement(FM,{match:h,routeC
329ontext:{outlet:d,matches:v,isDataRoute:n!=null},children:E})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?y.createElement(MM,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}var wk=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wk||{}),_f=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}(_f||{});function UM(e){let t=y.useContext(cb);return t||tn(!1),t}function HM(e){let t=y.useContext(AM);return t||tn(!1),t}function $M(e){let t=y.useContext(va);return t||tn(!1),t}function Ek(e){let t=$M(),n=t.matches[t.matches.length-1];return n.route.id||tn(!1),n.route.id}function zM(){var e;let t=y.useContext(yk),n=HM(_f.UseRouteError),r=Ek(_f.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function VM(){let{router:e}=UM(wk.UseNavigateStable),t=Ek(_f.UseNavigateStable),n=y.useRef(!1);return vk(()=>{n.current=!0}),y.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ic({fromRouteId:t},i)))},[e,t])}function WM(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Or(e){tn(!1)}function qM(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Ki.Pop,navigator:i,static:a=!1,future:o}=e;dd()&&tn(!1);let u=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:u,navigator:i,static:a,future:Ic({v7_relativeSplatPath:!1},o)}),[u,o,i,a]);typeof r=="string"&&(r=Kl(r));let{pathname:d="/",search:h="",hash:p="",state:f=null,key:w="default"}=r,m=y.useMemo(()=>{let x=ub(d,u);return x==null?null:{location:{pathname:x,search:h,hash:p,state:f,key:w},navigationType:s}},[u,d,h,p,f,w,s]);return m==null?null:y.createElement(go.Provider,{value:c},y.createElement(Cp.Provider,{children:n,value:m}))}function YM(e){let{children:t,location:n}=e;return PM(Q0(t),n)}new Promise(()=>{});function Q0(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,s)=>{if(!y.isValidElement(r))return;let i=[...t,s];if(r.type===y.Fragment){n.push.apply(n,Q0(r.props.children,i));return}r.type!==Or&&tn(!1),!r.props.index||!r.props.children||tn(!1);let a={id:r.props.id||i.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&&(a.children=Q0(r.props.children,i)),n.push(a)}),n}/**
330 * React Router DOM v6.30.1
331 *
332 * Copyright (c) Remix Software Inc.
333 *
334 * This source code is licensed under the MIT license found in the
335 * LICENSE.md file in the root directory of this source tree.
336 *
337 * @license MIT
338 */function X0(){return X0=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},X0.apply(this,arguments)}function KM(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function GM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QM(e,t){return e.button===0&&(!t||t==="_self")&&!GM(e)}function J0(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 XM(e,t){let n=J0(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const JM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ZM="6";try{window.__reactRouterVersion=ZM}catch{}const e5="startTransition",pw=Xy[e5];function t5(e){let{basename:t,children:n,future:r,window:s}=e,i=y.useRef();i.current==null&&(i.current=sM({window:s,v5Compat:!0}));let a=i.current,[o,u]=y.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},d=y.useCallback(h=>{c&&pw?pw(()=>u(h)):u(h)},[u,c]);return y.useLayoutEffect(()=>a.listen(d),[a,d]),y.useEffect(()=>WM(r),[r]),y.createElement(qM,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:a,future:r})}const n5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cr=y.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:a,state:o,target:u,to:c,preventScrollReset:d,viewTransition:h}=t,p=KM(t,JM),{basename:f}=y.useContext(go),w,m=!1;if(typeof c=="string"&&r5.test(c)&&(w=c,n5))try{let E=new URL(window.location.href),T=c.startsWith("//")?new URL(E.protocol+c):new URL(c),C=ub(T.pathname,f);
338T.origin===E.origin&&C!=null?c=C+T.search+T.hash:m=!0}catch{}let x=RM(c,{relative:s}),v=s5(c,{replace:a,state:o,target:u,preventScrollReset:d,relative:s,viewTransition:h});function b(E){r&&r(E),E.defaultPrevented||v(E)}return y.createElement("a",X0({},p,{href:w||x,onClick:m||i?r:b,ref:n,target:u}))});var mw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mw||(mw={}));var gw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gw||(gw={}));function s5(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:a,viewTransition:o}=t===void 0?{}:t,u=bk(),c=Ws(),d=xk(e,{relative:a});return y.useCallback(h=>{if(QM(h,n)){h.preventDefault();let p=r!==void 0?r:Ef(c)===Ef(d);u(e,{replace:p,state:s,preventScrollReset:i,relative:a,viewTransition:o})}},[c,u,d,r,s,n,e,i,a,o])}function i5(e){let t=y.useRef(J0(e)),n=y.useRef(!1),r=Ws(),s=y.useMemo(()=>XM(r.search,n.current?null:t.current),[r.search]),i=bk(),a=y.useCallback((o,u)=>{const c=J0(typeof o=="function"?o(s):o);n.current=!0,i("?"+c,u)},[i,s]);return[s,a]}const _k=y.createContext(void 0);function a5({children:e}){const[t,n]=y.useState(!1),r=()=>n(!0),s=()=>n(!1);return l.jsx(_k.Provider,{value:{isOpen:t,openLeadCapture:r,closeLeadCapture:s},children:e})}function kp(){const e=y.useContext(_k);if(e===void 0)throw new Error("useLeadCapture must be used within a LeadCaptureProvider");return e}var Km="focusScope.autoFocusOnMount",Gm="focusScope.autoFocusOnUnmount",yw={bubbles:!1,cancelable:!0},o5="FocusScope",db=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=e,[o,u]=y.useState(null),c=Yr(s),d=Yr(i),h=y.useRef(null),p=tt(t,m=>u(m)),f=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let m=function(E){if(f.paused||!o)return;const T=E.target;o.contains(T)?h.current=T:Si(h.current,{select:!0})},x=function(E){if(f.paused||!o)return;const T=E.relatedTarget;T!==null&&(o.contains(T)||Si(h.current,{select:!0}))},v=function(E){if(document.activeElement===document.body)for(const C of E)C.removedNodes.length>0&&Si(o)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(v);return o&&b.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[r,o,f.paused]),y.useEffect(()=>{if(o){bw.add(f);const m=document.activeElement;if(!o.contains(m)){const v=new CustomEvent(Km,yw);o.addEventListener(Km,c),o.dispatchEvent(v),v.defaultPrevented||(l5(f5(Tk(o)),{select:!0}),document.activeElement===m&&Si(o))}return()=>{o.removeEventListener(Km,c),setTimeout(()=>{const v=new CustomEvent(Gm,yw);o.addEventListener(Gm,d),o.dispatchEvent(v),v.defaultPrevented||Si(m??document.body,{select:!0}),o.removeEventListener(Gm,d),bw.remove(f)},0)}}},[o,c,d,f]);const w=y.useCallback(m=>{if(!n&&!r||f.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(x&&v){const b=m.currentTarget,[E,T]=u5(b);E&&T?!m.shiftKey&&v===T?(m.preventDefault(),n&&Si(E,{select:!0})):m.shiftKey&&v===E&&(m.preventDefault(),n&&Si(T,{select:!0})):v===b&&m.preventDefault()}},[n,r,f.paused]);return l.jsx(De.div,{tabIndex:-1,...a,ref:p,onKeyDown:w})});db.displayName=o5;function l5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Si(r,{select:t}),document.activeElement!==n)return}function u5(e){const t=Tk(e),n=vw(t,e),r=vw(t.reverse(),e);return[n,r]}function Tk(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 vw(e,t){for(const n of e)if(!c5(n,{upTo:t}))return n}function c5(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 d5(e){return e instanceof HTMLInputElement&&"select"in e}function Si(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&d5(e)&&t&&e.select()}}var bw=h5();function h5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=xw(e,t),e.unshift(t)},remove(t){var n;e=xw(e,t),(n=e[0])==null||n.resume()}}}function xw(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function f5(e){return e.filter(t=>t.tagName!=="A")}var Qm=0;function Sk(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ww()),document.body.insertAdjacentElement("beforeend",e[1]??ww()),Qm++,()=>{Qm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qm--}},[])}function ww(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,955 bytes, lines 338-353
338style.position="fixed",e.style.pointerEvents="none",e}var As=function(){return As=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},As.apply(this,arguments)};function Gl(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 p5(e,t,n,r){function s(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function o(d){try{c(r.next(d))}catch(h){a(h)}}function u(d){try{c(r.throw(d))}catch(h){a(h)}}function c(d){d.done?i(d.value):s(d.value).then(o,u)}c((r=r.apply(e,t||[])).next())})}function m5(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var jh="right-scroll-bar-position",Lh="width-before-scroll-bar",g5="with-scroll-bars-hidden",y5="--removed-body-scroll-bar-size";function Xm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function v5(e,t){var n=y.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 b5=typeof window<"u"?y.useLayoutEffect:y.useEffect,Ew=new WeakMap;function x5(e,t){var n=v5(null,function(r){return e.forEach(function(s){return Xm(s,r)})});return b5(function(){var r=Ew.get(n);if(r){var s=new Set(r),i=new Set(e),a=n.current;s.forEach(function(o){i.has(o)||Xm(o,null)}),i.forEach(function(o){s.has(o)||Xm(o,a)})}Ew.set(n,e)},[e]),n}function w5(e){return e}function E5(e,t){t===void 0&&(t=w5);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(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(o){return o!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(o){return i(o)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var o=n;n=[],o.forEach(i),a=n}var u=function(){var d=a;a=[],d.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(d){a.push(d),c()},filter:function(d){return a=a.filter(d),n}}}};return s}function _5(e){e===void 0&&(e={});var t=E5(null);return t.options=As({async:!0,ssr:!1},e),t}var Ck=function(e){var t=e.sideCar,n=Gl(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 y.createElement(r,As({},n))};Ck.isSideCarExport=!0;function T5(e,t){return e.useMedium(t),Ck}var kk=_5(),Jm=function(){},Np=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:Jm,onWheelCapture:Jm,onTouchMoveCapture:Jm}),s=r[0],i=r[1],a=e.forwardProps,o=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,f=e.noRelative,w=e.noIsolation,m=e.inert,x=e.allowPinchZoom,v=e.as,b=v===void 0?"div":v,E=e.gapMode,T=Gl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,_=x5([n,t]),k=As(As({},T),s);return y.createElement(y.Fragment,null,d&&y.createElement(C,{sideCar:kk,removeScrollBar:c,shards:h,noRelative:f,noIsolation:w,inert:m,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:E}),a?y.cloneElement(y.Children.only(o),As(As({},k),{ref:_})):y.createElement(b,As({},k,{className:u,ref:_}),o))});Np.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Np.classNames={fullWidth:Lh,zeroRight:jh};var S5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function C5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=S5();return t&&e.setAttribute("nonce",t),e}function k5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function N5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var A5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=C5())&&(k5(t,n),N5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R5=function(){var e=A5();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Nk=function(){var e=R5(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},I5={left:0,top:0,right:0,gap:0},Zm=function(e){return parseInt(e||"",10)||0},O5=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[Zm(n),Zm(r),Zm(s)]},P5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return I5;var t=O5(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])}},D5=Nk(),sl="data-scroll-locked",j5=function(e,t,n,r){var s=e.left,i=e.top,a=e.right,o=e.gap;return n===void 0&&(n="margin"),`
339  .`.concat(g5,` {
340   overflow: hidden `).concat(r,`;
341   padding-right: `).concat(o,"px ").concat(r,`;
342  }
343  body[`).concat(sl,`] {
344    overflow: hidden `).concat(r,`;
345    overscroll-behavior: contain;
346    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
347    padding-left: `.concat(s,`px;
348    padding-top: `).concat(i,`px;
349    padding-right: `).concat(a,`px;
350    margin-left:0;
351    margin-top:0;
352    margin-right: `).concat(o,"px ").concat(r,`;
353    `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";
353")].filter(Boolean).join(""),`
354  }
355  
356  .`).concat(jh,` {
357    right: `).concat(o,"px ").concat(r,`;
358  }
359  
360  .`).concat(Lh,` {
361    margin-right: `).concat(o,"px ").concat(r,`;
362  }
363  
364  .`).concat(jh," .").concat(jh,` {
365    right: 0 `).concat(r,`;
366  }
367  
368  .`).concat(Lh," .").concat(Lh,` {
369    margin-right: 0 `).concat(r,`;
370  }
371  
372  body[`).concat(sl,`] {
373    `).concat(y5,": ").concat(o,`px;
374  }
375`)},_w=function(){var e=parseInt(document.body.getAttribute(sl)||"0",10);return isFinite(e)?e:0},L5=function(){y.useEffect(function(){return document.body.setAttribute(sl,(_w()+1).toString()),function(){var e=_w()-1;e<=0?document.body.removeAttribute(sl):document.body.setAttribute(sl,e.toString())}},[])},M5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;L5();var i=y.useMemo(function(){return P5(s)},[s]);return y.createElement(D5,{styles:j5(i,!t,s,n?"":"!important")})},Z0=!1;if(typeof window<"u")try{var rh=Object.defineProperty({},"passive",{get:function(){return Z0=!0,!0}});window.addEventListener("test",rh,rh),window.removeEventListener("test",rh,rh)}catch{Z0=!1}var xo=Z0?{passive:!1}:!1,F5=function(e){return e.tagName==="TEXTAREA"},Ak=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!F5(e)&&n[t]==="visible")},B5=function(e){return Ak(e,"overflowY")},U5=function(e){return Ak(e,"overflowX")},Tw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Rk(e,r);if(s){var i=Ik(e,r),a=i[1],o=i[2];if(a>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},H5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},$5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Rk=function(e,t){return e==="v"?B5(t):U5(t)},Ik=function(e,t){return e==="v"?H5(t):$5(t)},z5=function(e,t){return e==="h"&&t==="rtl"?-1:1},V5=function(e,t,n,r,s){var i=z5(e,window.getComputedStyle(t).direction),a=i*r,o=n.target,u=t.contains(o),c=!1,d=a>0,h=0,p=0;do{if(!o)break;var f=Ik(e,o),w=f[0],m=f[1],x=f[2],v=m-x-i*w;(w||v)&&Rk(e,o)&&(h+=v,p+=w);var b=o.parentNode;o=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&o!==document.body||u&&(t.contains(o)||t===o));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(p)<1||!s))&&(c=!0),c},sh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sw=function(e){return[e.deltaX,e.deltaY]},Cw=function(e){return e&&"current"in e?e.current:e},W5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},q5=function(e){return`
376  .block-interactivity-`.concat(e,` {pointer-events: none;}
377  .allow-interactivity-`).concat(e,` {pointer-events: all;}
378`)},Y5=0,wo=[];function K5(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(Y5++)[0],i=y.useState(Nk)[0],a=y.useRef(e);y.useEffect(function(){a.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=m5([e.lockRef.current],(e.shards||[]).map(Cw),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var o=y.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var v=sh(m),b=n.current,E="deltaX"in m?m.deltaX:b[0]-v[0],T="deltaY"in m?m.deltaY:b[1]-v[1],C,_=m.target,k=Math.abs(E)>Math.abs(T)?"h":"v";if("touches"in m&&k==="h"&&_.type==="range")return!1;var P=Tw(k,_);if(!P)return!0;if(P?C=k:(C=k==="v"?"h":"v",P=Tw(k,_)),!P)return!1;if(!r.current&&"changedTouches"in m&&(E||T)&&(r.current=C),!C)return!0;var M=r.current||C;return V5(M,x,m,M==="h"?E:T,!0)},[]),u=y.useCallback(function(m){var x=m;if(!(!wo.length||wo[wo.length-1]!==i)){var v="deltaY"in x?Sw(x):sh(x),b=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&W5(C.delta,v)}
vendor: 4,137 bytes, line 378
378)[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var E=(a.current.shards||[]).map(Cw).filter(Boolean).filter(function(C){return C.contains(x.target)}),T=E.length>0?o(x,E[0]):!a.current.noIsolation;T&&x.cancelable&&x.preventDefault()}}},[]),c=y.useCallback(function(m,x,v,b){var E={name:m,delta:x,target:v,should:b,shadowParent:G5(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(T){return T!==E})},1)},[]),d=y.useCallback(function(m){n.current=sh(m),r.current=void 0},[]),h=y.useCallback(function(m){c(m.type,Sw(m),m.target,o(m,e.lockRef.current))},[]),p=y.useCallback(function(m){c(m.type,sh(m),m.target,o(m,e.lockRef.current))},[]);y.useEffect(function(){return wo.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",u,xo),document.addEventListener("touchmove",u,xo),document.addEventListener("touchstart",d,xo),function(){wo=wo.filter(function(m){return m!==i}),document.removeEventListener("wheel",u,xo),document.removeEventListener("touchmove",u,xo),document.removeEventListener("touchstart",d,xo)}},[]);var f=e.removeScrollBar,w=e.inert;return y.createElement(y.Fragment,null,w?y.createElement(i,{styles:q5(s)}):null,f?y.createElement(M5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function G5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Q5=T5(kk,K5);var hb=y.forwardRef(function(e,t){return y.createElement(Np,As({},e,{ref:t,sideCar:Q5}))});hb.classNames=Np.classNames;var X5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Eo=new WeakMap,ih=new WeakMap,ah={},eg=0,Ok=function(e){return e&&(e.host||Ok(e.parentNode))},J5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ok(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})},Z5=function(e,t,n,r){var s=J5(t,Array.isArray(e)?e:[e]);ah[n]||(ah[n]=new WeakMap);var i=ah[n],a=[],o=new Set,u=new Set(s),c=function(h){!h||o.has(h)||(o.add(h),c(h.parentNode))};s.forEach(c);var d=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(p){if(o.has(p))d(p);else try{var f=p.getAttribute(r),w=f!==null&&f!=="false",m=(Eo.get(p)||0)+1,x=(i.get(p)||0)+1;Eo.set(p,m),i.set(p,x),a.push(p),m===1&&w&&ih.set(p,!0),x===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return d(t),o.clear(),eg++,function(){a.forEach(function(h){var p=Eo.get(h)-1,f=i.get(h)-1;Eo.set(h,p),i.set(h,f),p||(ih.has(h)||h.removeAttribute(r),ih.delete(h)),f||h.removeAttribute(n)}),eg--,eg||(Eo=new WeakMap,Eo=new WeakMap,ih=new WeakMap,ah={})}},Pk=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=X5(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),Z5(r,s,n,"aria-hidden")):function(){return null}},Ap="Dialog",[Dk,XJ]=Kr(Ap),[e8,vs]=Dk(Ap),jk=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,o=y.useRef(null),u=y.useRef(null),[c,d]=Bs({prop:r,defaultProp:s??!1,onChange:i,caller:Ap});return l.jsx(e8,{scope:t,triggerRef:o,contentRef:u,contentId:ai(),titleId:ai(),descriptionId:ai(),open:c,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(h=>!h),[d]),modal:a,children:n})};jk.displayName=Ap;var Lk="DialogTrigger",Mk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=vs(Lk,n),i=tt(t,s.triggerRef);return l.jsx(De.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":mb(s.open),...r,ref:i,onClick:Ce(e.onClick,s.onOpenToggle)})});Mk.displayName=Lk;var fb="DialogPortal",[t8,Fk]=Dk(fb,{forceMount:void 0}),Bk=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=vs(fb,t);return l.jsx(t8,{scope:t,forceMount:n,children:y.Children.map(r,a=>l.jsx(ya,{present:n||i.open,children:l.jsx(fp,{asChild:!0,container:s,children:a})}))})};Bk.displayName=fb;var Tf="DialogOverlay",Uk=y.forwardRef((e,t)=>
vendor: 4,891 bytes, lines 378-382
378{const n=Fk(Tf,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=vs(Tf,e.__scopeDialog);return i.modal?l.jsx(ya,{present:r||i.open,children:l.jsx(r8,{...s,ref:t})}):null});Uk.displayName=Tf;var n8=Al("DialogOverlay.RemoveScroll"),r8=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=vs(Tf,n);return l.jsx(hb,{as:n8,allowPinchZoom:!0,shards:[s.contentRef],children:l.jsx(De.div,{"data-state":mb(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ao="DialogContent",Hk=y.forwardRef((e,t)=>{const n=Fk(ao,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=vs(ao,e.__scopeDialog);return l.jsx(ya,{present:r||i.open,children:i.modal?l.jsx(s8,{...s,ref:t}):l.jsx(i8,{...s,ref:t})})});Hk.displayName=ao;var s8=y.forwardRef((e,t)=>{const n=vs(ao,e.__scopeDialog),r=y.useRef(null),s=tt(t,n.contentRef,r);return y.useEffect(()=>{const i=r.current;if(i)return Pk(i)},[]),l.jsx($k,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Ce(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,o=a.button===0&&a.ctrlKey===!0;(a.button===2||o)&&i.preventDefault()}),onFocusOutside:Ce(e.onFocusOutside,i=>i.preventDefault())})}),i8=y.forwardRef((e,t)=>{const n=vs(ao,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return l.jsx($k,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,o;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(o=n.triggerRef.current)==null||o.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),$k=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=e,o=vs(ao,n),u=y.useRef(null),c=tt(t,u);return Sk(),l.jsxs(l.Fragment,{children:[l.jsx(db,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:l.jsx(ld,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":mb(o.open),...a,ref:c,onDismiss:()=>o.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(a8,{titleId:o.titleId}),l.jsx(l8,{contentRef:u,descriptionId:o.descriptionId})]})]})}),pb="DialogTitle",zk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=vs(pb,n);return l.jsx(De.h2,{id:s.titleId,...r,ref:t})});zk.displayName=pb;var Vk="DialogDescription",Wk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=vs(Vk,n);return l.jsx(De.p,{id:s.descriptionId,...r,ref:t})});Wk.displayName=Vk;var qk="DialogClose",Yk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=vs(qk,n);return l.jsx(De.button,{type:"button",...r,ref:t,onClick:Ce(e.onClick,()=>s.onOpenChange(!1))})});Yk.displayName=qk;function mb(e){return e?"open":"closed"}var Kk="DialogTitleWarning",[JJ,Gk]=rD(Kk,{contentName:ao,titleName:pb,docsSlug:"dialog"}),a8=({titleId:e})=>{const t=Gk(Kk),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
379
380If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
381
382For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},o8="DialogDescriptionWarning",l8=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gk(o8).contentName}}.`;return y.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Qk=jk,u8=Mk,Xk=Bk,Rp=Uk,Ip=Hk,Op=zk,Pp=Wk,Jk=Yk;const Dp=Qk,c8=Xk,Zk=y.forwardRef(({className:e,...t},n)=>l.jsx(Rp,{ref:n,className:be("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Zk.displayName=Rp.displayName;const hd=y.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(c8,{children:[l.jsx(Zk,{}),l.jsxs(Ip,{ref:r,className:be("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
382nded-lg",e),...n,children:[t,l.jsxs(Jk,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[l.jsx(qv,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));hd.displayName=Ip.displayName;const fd=({className:e,...t})=>l.jsx("div",{className:be("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});fd.displayName="DialogHeader";const pd=y.forwardRef(({className:e,...t},n)=>l.jsx(Op,{ref:n,className:be("text-lg font-semibold leading-none tracking-tight",e),...t}));pd.displayName=Op.displayName;const jp=y.forwardRef(({className:e,...t},n)=>l.jsx(Pp,{ref:n,className:be("text-sm text-muted-foreground",e),...t}));jp.displayName=Pp.displayName;const d8=zl("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 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 hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ve=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const a=r?RC:"button";return l.jsx(a,{className:be(d8({variant:t,size:n,className:e})),ref:i,...s})});Ve.displayName="Button";const pt=y.forwardRef(({className:e,type:t,...n},r)=>l.jsx("input",{type:t,className:be("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));pt.displayName="Input";var h8="Label",eN=y.forwardRef((e,t)=>l.jsx(De.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())}}));eN.displayName=h8;var tN=eN;const f8=zl("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xe=y.forwardRef(({className:e,...t},n)=>l.jsx(tN,{ref:n,className:be(f8(),e),...t}));Xe.displayName=tN.displayName;var p8=y.createContext(void 0);function Lp(e){const t=y.useContext(p8);return e||t||"ltr"}var tg="rovingFocusGroup.onEntryFocus",m8={bubbles:!1,cancelable:!0},md="RovingFocusGroup",[ey,nN,g8]=hp(md),[y8,rN]=Kr(md,[g8]),[v8,b8]=y8(md),sN=y.forwardRef((e,t)=>l.jsx(ey.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(ey.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(x8,{...e,ref:t})})}));sN.displayName=md;var x8=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...h}=e,p=y.useRef(null),f=tt(t,p),w=Lp(i),[m,x]=Bs({prop:a,defaultProp:o??null,onChange:u,caller:md}),[v,b]=y.useState(!1),E=Yr(c),T=nN(n),C=y.useRef(!1),[_,k]=y.useState(0);return y.useEffect(()=>{const P=p.current;if(P)return P.addEventListener(tg,E),()=>P.removeEventListener(tg,E)},[E]),l.jsx(v8,{scope:n,orientation:r,dir:w,loop:s,currentTabStopId:m,onItemFocus:y.useCallback(P=>x(P),[x]),onItemShiftTab:y.useCallback(()=>b(!0),[]),onFocusableItemAdd:y.useCallback(()=>k(P=>P+1),[]),onFocusableItemRemove:y.useCallback(()=>k(P=>P-1),[]),children:l.jsx(De.div,{tabIndex:v||_===0?-1:0,"data-orientation":r,...h,ref:f,style:{outline:"none",...e.style},onMouseDown:Ce(e.onMouseDown,()=>{C.current=!0}),onFocus:Ce(e.onFocus,P=>{const M=!C.current;if(P.target===P.currentTarget&&M&&!v){const F=new CustomEvent(tg,m8);if(P.currentTarget.dispatchEvent(F),!F.defaultPrevented){const U=T().filter(Q=>Q.focusable),j=U.find(Q=>Q.active),Y=U.find(Q=>
vendor: 8,453 bytes, line 382
382Q.id===m),X=[j,Y,...U].filter(Boolean).map(Q=>Q.ref.current);oN(X,d)}}C.current=!1}),onBlur:Ce(e.onBlur,()=>b(!1))})})}),iN="RovingFocusGroupItem",aN=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:i,children:a,...o}=e,u=ai(),c=i||u,d=b8(iN,n),h=d.currentTabStopId===c,p=nN(n),{onFocusableItemAdd:f,onFocusableItemRemove:w,currentTabStopId:m}=d;return y.useEffect(()=>{if(r)return f(),()=>w()},[r,f,w]),l.jsx(ey.ItemSlot,{scope:n,id:c,focusable:r,active:s,children:l.jsx(De.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...o,ref:t,onMouseDown:Ce(e.onMouseDown,x=>{r?d.onItemFocus(c):x.preventDefault()}),onFocus:Ce(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:Ce(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=_8(x,d.orientation,d.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let E=p().filter(T=>T.focusable).map(T=>T.ref.current);if(v==="last")E.reverse();else if(v==="prev"||v==="next"){v==="prev"&&E.reverse();const T=E.indexOf(x.currentTarget);E=d.loop?T8(E,T+1):E.slice(T+1)}setTimeout(()=>oN(E))}}),children:typeof a=="function"?a({isCurrentTabStop:h,hasTabStop:m!=null}):a})})});aN.displayName=iN;var w8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E8(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _8(e,t,n){const r=E8(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return w8[r]}function oN(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function T8(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var S8=sN,C8=aN;function gb(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var yb="Radio",[k8,lN]=Kr(yb),[N8,A8]=k8(yb),uN=y.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:s=!1,required:i,disabled:a,value:o="on",onCheck:u,form:c,...d}=e,[h,p]=y.useState(null),f=tt(t,x=>p(x)),w=y.useRef(!1),m=h?c||!!h.closest("form"):!0;return l.jsxs(N8,{scope:n,checked:s,disabled:a,children:[l.jsx(De.button,{type:"button",role:"radio","aria-checked":s,"data-state":fN(s),"data-disabled":a?"":void 0,disabled:a,value:o,...d,ref:f,onClick:Ce(e.onClick,x=>{s||u==null||u(),m&&(w.current=x.isPropagationStopped(),w.current||x.stopPropagation())})}),m&&l.jsx(hN,{control:h,bubbles:!w.current,name:r,value:o,checked:s,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});uN.displayName=yb;var cN="RadioIndicator",dN=y.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...s}=e,i=A8(cN,n);return l.jsx(ya,{present:r||i.checked,children:l.jsx(De.span,{"data-state":fN(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})})});dN.displayName=cN;var R8="RadioBubbleInput",hN=y.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...s},i)=>{const a=y.useRef(null),o=tt(a,i),u=gb(n),c=tb(t);return y.useEffect(()=>{const d=a.current;if(!d)return;const h=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(h,"checked").set;if(u!==n&&f){const w=new Event("click",{bubbles:r});f.call(d,n),d.dispatchEvent(w)}},[u,n,r]),l.jsx(De.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:o,style:{...s.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});hN.displayName=R8;function fN(e){return e?"checked":"unchecked"}var I8=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Mp="RadioGroup",[O8,ZJ]=Kr(Mp,[rN,lN]),pN=rN(),mN=lN(),[P8,D8]=O8(Mp),gN=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:s,value:i,required:a=!1,disabled:o=!1,orientation:u,dir:c,loop:d=!0,onValueChange:h,...p}=e,f=pN(n),w=Lp(c),[m,x]=Bs({prop:i,defaultProp:s??null,onChange:h,caller:Mp});return l.jsx(P8,{scope:n,name:r,required:a,disabled:o,value:m,onValueChange:x,children:l.jsx(S8,{asChild:!0,...f,orientation:u,dir:w,loop:d,children:l.jsx(De.div,{role:"radiogroup","aria-required":a,"aria-orientation":u,"data-disabled":o?"":void 0,dir:w,...p,ref:t})})})});gN.displayName=Mp;var yN="RadioGroupItem",vN=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...s}=e,i=D8(yN,n),a=i.disabled||r,o=pN(n),u=mN(n),c=y.useRef(null),d=tt(t,c),h=i.value===s.value,p=y.useRef(!1);return y.useEffect(()=>{const f=m=>{I8.includes(m.key)&&(p.current=!0)},w=()=>p.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",w)}},[]),l.jsx(C8,{asChild:!0,...o,focusable:!a,active:h,children:l.jsx(uN,{disabled:a,required:i.required,checked:h,...u,...s,name:i.name,ref:d,onCheck:()=>i.onValueChange(s.value),onKeyDown:Ce(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:Ce(s.onFocus,()=>{var f;p.current&&((f=c.current)==null||f.click())})})})});vN.displayName=yN;var j8="RadioGroupIndicator",bN=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,s=mN(n);return l.jsx(dN,{...s,...r,ref:t})});bN.displayName=j8;var xN=gN,wN=vN,L8=bN;const vb=y.forwardRef(({className:e,...t},n)=>l.jsx(xN,{className:be("grid gap-2",e),...t,ref:n}));vb.displayName=xN.displayName;const Oc=y.forwardRef(({className:e,...t},n)=>l.jsx(wN,{ref:n,className:be("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:l.jsx(L8,{className:"flex items-center justify-center",children:l.jsx(nj,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Oc.displayName=wN.displayName;var Fp="Switch",[M8,eZ]=Kr(Fp),[F8,B8]=M8(Fp),EN=y.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:s,defaultChecked:i,required:a,disabled:o,value:u="on",onCheckedChange:c,form:d,...h}=e,[p,f]=y.useState(null),w=tt(t,E=>f(E)),m=y.useRef(!1),x=p?d||!!p.closest("form"):!0,[v,b]=Bs({prop:s,defaultProp:i??!1,onChange:c,caller:Fp});return l.jsxs(F8,{scope:n,checked:v,disabled:o,children:[l.jsx(De.button,{type:"button",role:"switch","aria-checked":v,"aria-required":a,"data-state":CN(v),"data-disabled":o?"":void 0,disabled:o,value:u,...h,ref:w,onClick:Ce(e.onClick,E=>{b(T=>!T),x&&(m.current=E.isPropagationStopped(),m.current||E.stopPropagation())})}),x&&l.jsx(SN,{control:p,bubbles:!m.current,name:r,value:u,checked:v,required:a,disabled:o,form:d,style:{transform:"translateX(-100%)"}})]})});EN.displayName=Fp;var _N="SwitchThumb",TN=y.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,s=B8(_N,n);return l.jsx(De.span,{"data-state":CN(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t})});TN.displayName=_N;var U8="SwitchBubbleInput",SN=y.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...s},i)=>{const a=y.useRef(null),o=tt(a,i),u=gb(n),c=tb(t);return y.useEffect(()=>{const d=a.current;if(!d)return;const h=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(h,"checked").set;if(u!==n&&f){const w=new Event("click",{bubbles:r});f.call(d,n),d.dispatchEvent(w)}},[u,n,r]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:o,style:{...s.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});SN.displayName=U8;function CN(e){return e?"checked":"unchecked"}var kN=EN,H8=TN;const bb=y.forwardRef(({className:e,...t},n)=>l.jsx(kN,{className:be("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:n,children:l.jsx(H8,{className:be("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));bb.displayName=kN.displayName;const Ls=y.forwardRef(({className:e,...t},n)=>l.jsx("textarea",{className:be("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
382ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Ls.displayName="Textarea";function kw(e,[t,n]){return Math.min(n,Math.max(t,e))}var $8=[" ","Enter","ArrowUp","ArrowDown"],z8=[" ","Enter"],oo="Select",[Bp,Up,V8]=hp(oo),[Ql,tZ]=Kr(oo,[V8,_p]),Hp=_p(),[W8,ba]=Ql(oo),[q8,Y8]=Ql(oo),NN=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:i,value:a,defaultValue:o,onValueChange:u,dir:c,name:d,autoComplete:h,disabled:p,required:f,form:w}=e,m=Hp(t),[x,v]=y.useState(null),[b,E]=y.useState(null),[T,C]=y.useState(!1),_=Lp(c),[k,P]=Bs({prop:r,defaultProp:s??!1,onChange:i,caller:oo}),[M,F]=Bs({prop:a,defaultProp:o,onChange:u,caller:oo}),U=y.useRef(null),j=x?w||!!x.closest("form"):!0,[Y,z]=y.useState(new Set),X=Array.from(Y).map(Q=>Q.props.value).join(";");return l.jsx(a6,{...m,children:l.jsxs(W8,{required:f,scope:t,trigger:x,onTriggerChange:v,valueNode:b,onValueNodeChange:E,valueNodeHasChildren:T,onValueNodeHasChildrenChange:C,contentId:ai(),value:M,onValueChange:F,open:k,onOpenChange:P,dir:_,triggerPointerDownPosRef:U,disabled:p,children:[l.jsx(Bp.Provider,{scope:t,children:l.jsx(q8,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(Q=>{z(J=>new Set(J).add(Q))},[]),onNativeOptionRemove:y.useCallback(Q=>{z(J=>{const $=new Set(J);return $.delete(Q),$})},[]),children:n})}),j?l.jsxs(JN,{"aria-hidden":!0,required:f,tabIndex:-1,name:d,autoComplete:h,value:M,onChange:Q=>F(Q.target.value),disabled:p,form:w,children:[M===void 0?l.jsx("option",{value:""}):null,Array.from(Y)]},X):null]})})};NN.displayName=oo;var AN="SelectTrigger",RN=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,i=Hp(n),a=ba(AN,n),o=a.disabled||r,u=tt(t,a.onTriggerChange),c=Up(n),d=y.useRef("touch"),[h,p,f]=eA(m=>{const x=c().filter(E=>!E.disabled),v=x.find(E=>E.value===a.value),b=tA(x,m,v);b!==void 0&&a.onValueChange(b.value)}),w=m=>{o||(a.onOpenChange(!0),f()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return l.jsx(H2,{asChild:!0,...i,children:l.jsx(De.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":ZN(a.value)?"":void 0,...s,ref:u,onClick:Ce(s.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&w(m)}),onPointerDown:Ce(s.onPointerDown,m=>{d.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(w(m),m.preventDefault())}),onKeyDown:Ce(s.onKeyDown,m=>{const x=h.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&p(m.key),!(x&&m.key===" ")&&$8.includes(m.key)&&(w(),m.preventDefault())})})})});RN.displayName=AN;var IN="SelectValue",ON=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:a="",...o}=e,u=ba(IN,n),{onValueNodeHasChildrenChange:c}=u,d=i!==void 0,h=tt(t,u.onValueNodeChange);return xn(()=>{c(d)},[c,d]),l.jsx(De.span,{...o,ref:h,style:{pointerEvents:"none"},children:ZN(u.value)?l.jsx(l.Fragment,{children:a}):i})});ON.displayName=IN;var K8="SelectIcon",PN=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return l.jsx(De.span,{"aria-hidden":!0,...s,ref:t,children:r||"▼"})});PN.displayName=K8;var G8="SelectPortal",DN=e=>l.jsx(fp,{asChild:!0,...e});DN.displayName=G8;var lo="SelectContent",jN=y.forwardRef((e,t)=>{const n=ba(lo,e.__scopeSelect),[r,s]=y.useState();if(xn(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?wr.createPortal(l.jsx(LN,{scope:e.__scopeSelect,children:l.jsx(Bp.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),i):null}return l.jsx(MN,{...e,ref:t})});jN.displayName=lo;var es=10,[LN,xa]=Ql(lo),Q8="SelectContentImpl",X8=Al("SelectContent.RemoveScroll"),MN=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:a,side:o,sideOffset:u,align:c,alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:f,sticky:w,hideWhenDetached:m,avoidCollisions:x,...v}=e,b=ba(lo,n),[E,T]=y.useState(null),[C,_]=y.useState(null),k=tt(t,re=>T(re)),[P,M]=y.useState(null),[F,U]=y.useState(null),j=Up(n),[Y,z]=y.useState(!1),X=y.useRef(!1);y.useEffect(()=>{if(E)return Pk(E)},[E]),Sk();const Q=y.useCallback(re=>{const[we,...Le]=j().map(Ae=>Ae.ref.current),[fe]=Le.slice(-1),Ne=document.activeElement;for(const Ae of re)if(Ae===Ne||(Ae==null||Ae.scrollIntoView({block:"nearest"}),Ae===we&&C&&(C.scrollTop=0),Ae===fe&&C&&(C.scrollTop=C.scrollHeight),Ae==null||Ae.focus(),document.activeElement!==Ne))return},[j,C]),J=y.useCallback(()=>Q([P,E]),[Q,P,E]);y.useEffect(()=>{Y&&J()},[Y,J]);const{onOpenChange:$,triggerPointerDownPosRef:V}=b;y.useEffect(()=>{if(E){let re={x:0,y:0};const we=fe=>{var Ne,Ae;re={x:Math.abs(Math.round(fe.pageX)-(((Ne=V.current)==null?void 0:Ne.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((Ae=V.current)==null?void 0:Ae.y)??0))}},Le=fe=>{re.x<=10&&re.y<=10?fe.preventDefault():E.contains(fe.target)||$(!1),document.removeEventListener("pointermove",we),V.current=null};return V.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",Le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",Le,{capture:!0})}}},[E,$,V]),y.useEffect(()=>{const re=()=>$(!1);return window.addEventListener("blur",re),window.addEventListener("resize",re),()=>{window.removeEventListener("blur",re),window.removeEventListener("resize",re)}},[$]);const[S,ue]=eA(re=>{const we=j().filter(Ne=>!Ne.disabled),Le=we.find(Ne=>Ne.ref.current===document.activeElement),fe=tA(we,re,Le);fe&&setTimeout(()=>fe.ref.current.focus())}),te=y.useCallback((re,we,Le)=>{const fe=!X.current&&!Le;(b.value!==void 0&&b.value===we||fe)&&(M(re),fe&&(X.current=!0))},[b.value]),R=y.useCallback(()=>E==null?void 0:E.focus(),[E]),pe=y.useCallback((re,we,Le)=>{const fe=!X.current&&!Le;(b.value!==void 0&&b.value===we||fe)&&U(re)},[b.value]),je=r==="popper"?ty:FN,_e=je===ty?{side:o,sideOffset:u,align:c,alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:f,sticky:w,hideWhenDetached:m,avoidCollisions:x}:{};return l.jsx(LN,{scope:n,content:E,viewport:C,onViewportChange:_,itemRefCallback:te,selectedItem:P,onItemLeave:R,itemTextRefCallback:pe,focusSelectedItem:J,selectedItemText:F,position:r,isPositioned:Y,searchRef:S,children:l.jsx(hb,{as:X8,allowPinchZoom:!0,children:l.jsx(db,{asChild:!0,trapped:b.o
vendor: 11,869 bytes, line 382
382pen,onMountAutoFocus:re=>{re.preventDefault()},onUnmountAutoFocus:Ce(s,re=>{var we;(we=b.trigger)==null||we.focus({preventScroll:!0}),re.preventDefault()}),children:l.jsx(ld,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:re=>re.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:l.jsx(je,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:re=>re.preventDefault(),...v,..._e,onPlaced:()=>z(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Ce(v.onKeyDown,re=>{const we=re.ctrlKey||re.altKey||re.metaKey;if(re.key==="Tab"&&re.preventDefault(),!we&&re.key.length===1&&ue(re.key),["ArrowUp","ArrowDown","Home","End"].includes(re.key)){let fe=j().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(re.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(re.key)){const Ne=re.target,Ae=fe.indexOf(Ne);fe=fe.slice(Ae+1)}setTimeout(()=>Q(fe)),re.preventDefault()}})})})})})})});MN.displayName=Q8;var J8="SelectItemAlignedPosition",FN=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,i=ba(lo,n),a=xa(lo,n),[o,u]=y.useState(null),[c,d]=y.useState(null),h=tt(t,k=>d(k)),p=Up(n),f=y.useRef(!1),w=y.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:v,focusSelectedItem:b}=a,E=y.useCallback(()=>{if(i.trigger&&i.valueNode&&o&&c&&m&&x&&v){const k=i.trigger.getBoundingClientRect(),P=c.getBoundingClientRect(),M=i.valueNode.getBoundingClientRect(),F=v.getBoundingClientRect();if(i.dir!=="rtl"){const Ne=F.left-P.left,Ae=M.left-Ne,dt=k.left-Ae,Ge=k.width+dt,Nt=Math.max(Ge,P.width),Lt=window.innerWidth-es,wn=kw(Ae,[es,Math.max(es,Lt-Nt)]);o.style.minWidth=Ge+"px",o.style.left=wn+"px"}else{const Ne=P.right-F.right,Ae=window.innerWidth-M.right-Ne,dt=window.innerWidth-k.right-Ae,Ge=k.width+dt,Nt=Math.max(Ge,P.width),Lt=window.innerWidth-es,wn=kw(Ae,[es,Math.max(es,Lt-Nt)]);o.style.minWidth=Ge+"px",o.style.right=wn+"px"}const U=p(),j=window.innerHeight-es*2,Y=m.scrollHeight,z=window.getComputedStyle(c),X=parseInt(z.borderTopWidth,10),Q=parseInt(z.paddingTop,10),J=parseInt(z.borderBottomWidth,10),$=parseInt(z.paddingBottom,10),V=X+Q+Y+$+J,S=Math.min(x.offsetHeight*5,V),ue=window.getComputedStyle(m),te=parseInt(ue.paddingTop,10),R=parseInt(ue.paddingBottom,10),pe=k.top+k.height/2-es,je=j-pe,_e=x.offsetHeight/2,re=x.offsetTop+_e,we=X+Q+re,Le=V-we;if(we<=pe){const Ne=U.length>0&&x===U[U.length-1].ref.current;o.style.bottom="0px";const Ae=c.clientHeight-m.offsetTop-m.offsetHeight,dt=Math.max(je,_e+(Ne?R:0)+Ae+J),Ge=we+dt;o.style.height=Ge+"px"}else{const Ne=U.length>0&&x===U[0].ref.current;o.style.top="0px";const dt=Math.max(pe,X+m.offsetTop+(Ne?te:0)+_e)+Le;o.style.height=dt+"px",m.scrollTop=we-pe+m.offsetTop}o.style.margin=`${es}px 0`,o.style.minHeight=S+"px",o.style.maxHeight=j+"px",r==null||r(),requestAnimationFrame(()=>f.current=!0)}},[p,i.trigger,i.valueNode,o,c,m,x,v,i.dir,r]);xn(()=>E(),[E]);const[T,C]=y.useState();xn(()=>{c&&C(window.getComputedStyle(c).zIndex)},[c]);const _=y.useCallback(k=>{k&&w.current===!0&&(E(),b==null||b(),w.current=!1)},[E,b]);return l.jsx(eF,{scope:n,contentWrapper:o,shouldExpandOnScrollRef:f,onScrollButtonChange:_,children:l.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:l.jsx(De.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});FN.displayName=J8;var Z8="SelectPopperPosition",ty=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=es,...i}=e,a=Hp(n);return l.jsx($2,{...a,...i,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.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)"}})});ty.displayName=Z8;var[eF,xb]=Ql(lo,{}),ny="SelectViewport",BN=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,i=xa(ny,n),a=xb(ny,n),o=tt(t,i.onViewportChange),u=y.useRef(0);return l.jsxs(l.Fragment,{children:[l.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}),l.jsx(Bp.Slot,{scope:n,children:l.jsx(De.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Ce(s.onScroll,c=>{const d=c.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:p}=a;if(p!=null&&p.current&&h){const f=Math.abs(u.current-d.scrollTop);if(f>0){const w=window.innerHeight-es*2,m=parseFloat(h.style.minHeight),x=parseFloat(h.style.height),v=Math.max(m,x);if(v<w){const b=v+f,E=Math.min(w,b),T=b-E;h.style.height=E+"px",h.style.bottom==="0px"&&(d.scrollTop=T>0?T:0,h.style.justifyContent="flex-end")}}}u.current=d.scrollTop})})})]})});BN.displayName=ny;var UN="SelectGroup",[tF,nF]=Ql(UN),rF=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=ai();return l.jsx(tF,{scope:n,id:s,children:l.jsx(De.div,{role:"group","aria-labelledby":s,...r,ref:t})})});rF.displayName=UN;var HN="SelectLabel",$N=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=nF(HN,n);return l.jsx(De.div,{id:s.id,...r,ref:t})});$N.displayName=HN;var Sf="SelectItem",[sF,zN]=Ql(Sf),VN=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...a}=e,o=ba(Sf,n),u=xa(Sf,n),c=o.value===r,[d,h]=y.useState(i??""),[p,f]=y.useState(!1),w=tt(t,b=>{var E;return(E=u.itemRefCallback)==null?void 0:E.call(u,b,r,s)}),m=ai(),x=y.useRef("touch"),v=()=>{s||(o.onValueChange(r),o.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 l.jsx(sF,{scope:n,value:r,disabled:s,textId:m,isSelected:c,onItemTextChange:y.useCallback(b=>{h(E=>E||((b==null?void 0:b.textContent)??"").trim())},[]),children:l.jsx(Bp.ItemSlot,{scope:n,value:r,disabled:s,textValue:d,children:l.jsx(De.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...a,ref:w,onFocus:Ce(a.onFocus,()=>f(!0)),onBlur:Ce(a.onBlur,()=>f(!1)),onClick:Ce(a.onClick,()=>{x.current!=="mouse"&&v()}),onPointerUp:Ce(a.onPointerUp,()=>{x.current==="mouse"&&v()}),onPointerDown:Ce(a.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:Ce(a.onPointerMove,b=>{var E;x.current=b.pointerType,s?(E=u.onItemLeave)==null||E.call(u):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ce(a.onPointerLeave,b=>{var E;b.currentTarget===document.activeElement&&((E=u.onItemLeave)==null||E.call(u))}),onKeyDown:Ce(a.onKeyDown,b=>{var T;((T=u.searchRef)==null?void 0:T.current)!==""&&b.key===" "||(z8.includes(b.key)&&v(),b.key===" "&&b.preventDefault())})})})})});VN.displayName=Sf;var Pu="SelectItemText",WN=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...i}=e,a=ba(Pu,n),o=xa(Pu,n),u=zN(Pu,n),c=Y8(Pu,n),[d,h]=y.useState(null),p=tt(t,v=>h(v),u.onItemTextChange,v=>{var b;return(b=o.itemTextRefCallback)==null?void 0:b.call(o,v,u.value,u.disabled)}),f=d==null?void 0:d.textContent,w=y.useMemo(()=>l.jsx("option",{value:u.value,disabled:u.disabled,children:f},u.value),[u.disabled,u.value,f]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=c;return xn(()=>(m(w),()=>x(w)),[m,x,w]),l.jsxs(l.Fragment,{children:[l.jsx(De.span,{id:u.textId,...i,ref:p}),u.isSelected&&a.valueNode&&!a.valueNodeHasChildren?wr.createPortal(i.children,a.valueNode):null]})});WN.displayName=Pu;var qN="SelectItemIndicator",YN=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return zN(qN,n).isSelected?l.jsx(De.span,{"aria-hidden":!0,...r,ref:t}):null});YN.displayName=qN;var ry="SelectScrollUpButton",KN=y.forwardRef((e,t)=>{const n=xa(ry,e.__scopeSelect),r=xb(ry,e.__scopeSelect),[s,i]=y.useState(!1),a=tt(t,r.onScrollButtonChange);return xn(()=>{if(n.viewport&&n.isPositioned){let o=function(){const c=u.scrollTop>0;i(c)};const u=n.viewport;return o(),u.addEventListener("scroll",o),()=>u.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),s?l.jsx(QN,{...e,ref:a,onAutoScroll:()=>{const{viewport:o,selectedItem:u}=n;o&&u&&(o.scrollTop=o.scrollTop-u.offsetHeight)}}):null});KN.displayName=ry;var sy="SelectScrollDownButton",GN=y.forwardRef((e,t)=>{const n=xa(sy,e.__scopeSelect),r=xb(sy,e.__scopeSelect),[s,i]=y.useState(!1),a=tt(t,r.onScrollButtonChange);return xn(()=>{if(n.viewport&&n.isPositioned){let o=function(){const c=u.scrollHeight-u.clientHeight,d=Math.ceil(u.scrollTop)<c;i(d)};const u=n.viewport;return o(),u.addEventListener("scroll",o),()=>u.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),s?l.jsx(QN,{...e,ref:a,onAutoScroll:()=>{const{viewport:o,selectedItem:u}=n;o&&u&&(o.scrollTop=o.scrollTop+u.offsetHeight)}}):null});GN.displayName=sy;var QN=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,i=xa("SelectScrollButton",n),a=y.useRef(null),o=Up(n),u=y.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return y.useEffect(()=>()=>u(),[u]),xn(()=>{var d;const c=o().find(h=>h.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[o]),l.jsx(De.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:Ce(s.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Ce(s.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Ce(s.onPointerLeave,()=>{u()})})}),iF="SelectSeparator",XN=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsx(De.div,{"aria-hidden":!0,...r,ref:t})});XN.displayName=iF;var iy="SelectArrow",aF=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Hp(n),i=ba(iy,n),a=xa(iy,n);return i.open&&a.position==="popper"?l.jsx(z2,{...s,...r,ref:t}):null});aF.displayName=iy;var oF="SelectBubbleInput",JN=y.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const s=y.useRef(null),i=tt(r,s),a=gb(t);return y.useEffect(()=>{const o=s.current;if(!o)return;const u=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(u,"value").set;if(a!==t&&d){const h=new Event("change",{bubbles:!0});d.call(o,t),o.dispatchEvent(h)}},[a,t]),l.jsx(De.select,{...n,style:{...LC,...n.style},ref:i,defaultValue:t})});JN.displayName=oF;function ZN(e){return e===""||e===void 0}function eA(e){const t=Yr(e),n=y.useRef(""),r=y.useRef(0),s=y.useCallback(a=>{const o=n.current+a;t(o),function u(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>u(""),1e3))}(o)},[t]),i=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function tA(e,t,n){const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=lF(e,Math.max(i,0));s.length===1&&(a=a.filter(c=>c!==n));const u=a.find(c=>c.textValue.toLowerCase().startsWith(s.toLowerCase()));return u!==n?u:void 0}function lF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var uF=NN,nA=RN,cF=ON,dF=PN,hF=DN,rA=jN,fF=BN,sA=$N,iA=VN,pF=WN,mF=YN,aA=KN,oA=GN,lA=XN;const hs=uF,fs=cF,$r=y.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(nA,{ref:r,className:be("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
382ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,l.jsx(dF,{asChild:!0,children:l.jsx(gp,{className:"h-4 w-4 opacity-50"})})]}));$r.displayName=nA.displayName;const uA=y.forwardRef(({className:e,...t},n)=>l.jsx(aA,{ref:n,className:be("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(i2,{className:"h-4 w-4"})}));uA.displayName=aA.displayName;const cA=y.forwardRef(({className:e,...t},n)=>l.jsx(oA,{ref:n,className:be("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(gp,{className:"h-4 w-4"})}));cA.displayName=oA.displayName;const zr=y.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>l.jsx(hF,{children:l.jsxs(rA,{ref:s,className:be("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:[l.jsx(uA,{}),l.jsx(fF,{className:be("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),l.jsx(cA,{})]})}));zr.displayName=rA.displayName;const gF=y.forwardRef(({className:e,...t},n)=>l.jsx(sA,{ref:n,className:be("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));gF.displayName=sA.displayName;const yn=y.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(iA,{ref:r,className:be("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(mF,{children:l.jsx(ej,{className:"h-4 w-4"})})}),l.jsx(pF,{children:t})]}));yn.displayName=iA.displayName;const yF=y.forwardRef(({className:e,...t},n)=>l.jsx(lA,{ref:n,className:be("-mx-1 my-1 h-px bg-muted",e),...t}));yF.displayName=lA.displayName;const vF=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class wb extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class bF extends wb{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Nw extends wb{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Aw extends wb{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var ay;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(ay||(ay={}));class xF{constructor(t,{headers:n={},customFetch:r,region:s=ay.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=vF(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return p5(this,arguments,void 0,function*(n,r={}){var s;let i,a;try{const{headers:o,method:u,body:c,signal:d,timeout:h}=r;let p={},{region:f}=r;f||(f=this.region);const w=new URL(`${this.url}/${n}`);f&&f!=="any"&&(p["x-region"]=f,w.searchParams.set("forceFunctionRegion",f));let m;c&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",m=c):typeof c=="string"?(p["Content-Type"]="text/plain",m=c):typeof FormData<"u"&&c instanceof FormData?m=c:(p["Content-Type"]="application/json",m=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?m=JSON.stringify(c):m=c;let x=d;h&&(a=new AbortController,i=setTimeout(()=>a.abort(),h),d?(x=a.signal,d.addEventListener("abort",()=>a.abort())):x=a.signal);const v=yield this.fetch(w.toString(),{method:u||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),o),body:m,signal:x}).catch(C=>{throw new bF(C)}),b=v.headers.get("x-relay-error");
382if(b&&b==="true")throw new Nw(v);if(!v.ok)throw new Aw(v);let E=((s=v.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),T;return E==="application/json"?T=yield v.json():E==="application/octet-stream"||E==="application/pdf"?T=yield v.blob():E==="text/event-stream"?T=v:E==="multipart/form-data"?T=yield v.formData():T=yield v.text(),{data:T,error:null,response:v}}catch(o){return{data:null,error:o,response:o instanceof Aw||o instanceof Nw?o.context:void 0}}finally{i&&clearTimeout(i)}})}}var wF=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},EF=class{constructor(e){var t,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let a=null,o=null,u=null,c=i.status,d=i.statusText;if(i.ok){var h,p;if(n.method!=="HEAD"){var f;const v=await i.text();v===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((f=n.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?o=v:o=JSON.parse(v))}const m=(h=n.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),x=(p=i.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");m&&x&&x.length>1&&(u=parseInt(x[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(o)&&(o.length>1?(a={code:"PGRST116",details:`Results contain ${o.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},o=null,u=null,c=406,d="Not Acceptable"):o.length===1?o=o[0]:o=null)}else{var w;const m=await i.text();try{a=JSON.parse(m),Array.isArray(a)&&i.status===404&&(o=[],a=null,c=200,d="OK")}catch{i.status===404&&m===""?(c=204,d="No Content"):a={message:m}}if(a&&n.isMaybeSingle&&(!(a==null||(w=a.details)===null||w===void 0)&&w.includes("0 rows"))&&(a=null,c=200,d="OK"),a&&n.shouldThrowOnError)throw new wF(a)}return{error:a,data:o,count:u,status:c,statusText:d}});return this.shouldThrowOnError||(s=s.catch(i=>{var a;let o="";const u=i==null?void 0:i.cause;if(u){var c,d,h,p;const w=(c=u==null?void 0:u.message)!==null&&c!==void 0?c:"",m=(d=u==null?void 0:u.code)!==null&&d!==void 0?d:"";o=`${(h=i==null?void 0:i.name)!==null&&h!==void 0?h:"FetchError"}: ${i==null?void 0:i.message}`,o+=`
383
384Caused by: ${(p=u==null?void 0:u.name)!==null&&p!==void 0?p:"Error"}: ${w}`,m&&(o+=` (${m})`),u!=null&&u.stack&&(o+=`
385${u.stack}`)}else{var f;o=(f=i==null?void 0:i.stack)!==null&&f!==void 0?f:""}return{error:{message:`${(a=i==null?void 0:i.name)!==null&&a!==void 0?a:"FetchError"}: ${i==null?void 0:i.message}`,details:o,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},_F=class extends EF{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
385explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var a;const o=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${u}"; options=${o};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Rw=new RegExp("[,()]");var Oo=class extends _F{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Rw.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Rw.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},TF=class{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const a=(e??"*").split("").map(c=>/\s/.test(c)&&!i?"":(c==='"'&&(i=!i),c)).join(""),{url:o,headers:u}=this.cloneRequestState();return o.searchParams.set("select",a),r&&u.append("Prefer",`count=${r}`),new Oo({method:s,url:o,headers:u,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:a}=this.cloneRequestState();if(t&&a.append("Prefer",`count=${t}`),n||a.append("Prefer","missing=default"),Array.isArray(e)){const o=e.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(o.length>0){const u=[...new Set(o)].map(c=>`"${c}"`);i.searchParams.set("columns",u.join(","))}}return new Oo({method:s,url:i,headers:a,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const a="POST",{url:o,headers:u}=this.cloneRequestState();if(u.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&o.searchParams.set("on_conflict",t),r&&u.append("Prefer",`count=${r}`),s||u.append("Prefer","missing=default"),Array.isArray(e)){const c=e.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(c.length>0){const d=[...new Set(c)].map(h=>`"${h}"`);o.searchParams.set("columns",d.join(","))}}return new Oo({method:a,url:o,headers:u,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new Oo({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new Oo({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},SF=class dA{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=s}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new TF(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new dA(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var a;let o;const u=new URL(`${this.url}/rpc/${t}`);let c;const d=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(d)),h=r&&Object.values(n).some(d);h?(o="POST",c=n):r||s?(o=r?"HEAD":"GET",Object.entries(n).filter(([f,w])=>w!==void 0).map(([f,w])=>[f,Array.isArray(w)?`{${w.join(",")}}`:`${w}
385`]).forEach(([f,w])=>{u.searchParams.append(f,w)})):(o="POST",c=n);const p=new Headers(this.headers);return h?p.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&p.set("Prefer",`count=${i}`),new Oo({method:o,url:u,headers:p,schema:this.schemaName,body:c,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}};class CF{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
386import ws from "ws"
387new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
388
389Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const kF="2.91.1",NF=`realtime-js/${kF}`,AF="1.0.0",hA="2.0.0",Iw=hA,oy=1e4,RF=1e3,IF=100;var Ri;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Ri||(Ri={}));var rn;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(rn||(rn={}));var as;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(as||(as={}));var ly;(function(e){e.websocket="websocket"})(ly||(ly={}));var Ra;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Ra||(Ra={}));class OF{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},a=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(t,n,r){var s,i;const a=t.topic,o=(s=t.ref)!==null&&s!==void 0?s:"",u=(i=t.join_ref)!==null&&i!==void 0?i:"",c=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(u.length>255)throw new Error(`joinRef length ${u.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`ref length ${o.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`topic length ${a.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+u.length+o.length+a.length+c.length+h.length,f=new ArrayBuffer(this.HEADER_LENGTH+p);let w=new DataView(f),m=0;w.setUint8(m++,this.KINDS.userBroadcastPush),w.setUint8(m++,u.length),w.setUint8(m++,o.length),w.setUint8(m++,a.length),w.setUint8(m++,c.length),w.setUint8(m++,h.length),w.setUint8(m++,n),Array.from(u,v=>w.setUint8(m++,v.charCodeAt(0))),Array.from(o,v=>w.setUint8(m++,v.charCodeAt(0))),Array.from(a,v=>w.setUint8(m++,v.charCodeAt(0))),Array.from(c,v=>w.setUint8(m++,v.charCodeAt(0))),Array.from(h,v=>w.setUint8(m++,v.charCodeAt(0)));var x=new Uint8Array(f.byteLength+r.byteLength);return x.set(new Uint8Array(f),0),x.set(new Uint8Array(r),f.byteLength),x.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,a,o,u]=r;
389return n({join_ref:s,ref:i,topic:a,event:o,payload:u})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),a=n.getUint8(3),o=n.getUint8(4);let u=this.HEADER_LENGTH+4;const c=r.decode(t.slice(u,u+s));u=u+s;const d=r.decode(t.slice(u,u+i));u=u+i;const h=r.decode(t.slice(u,u+a));u=u+a;const p=t.slice(u,t.byteLength),f=o===this.JSON_ENCODING?JSON.parse(r.decode(p)):p,w={type:this.BROADCAST_EVENT,event:d,payload:f};return a>0&&(w.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class fA{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var vt;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(vt||(vt={}));const Ow=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,a)=>(i[a]=PF(a,e,t,s),i),{}):{}},PF=(e,t,n,r)=>{const s=t.find(o=>o.name===e),i=s==null?void 0:s.type,a=n[e];return i&&!r.includes(i)?pA(i,a):uy(a)},pA=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return MF(t,n)}switch(e){case vt.bool:return DF(t);case vt.float4:case vt.float8:case vt.int2:case vt.int4:case vt.int8:case vt.numeric:case vt.oid:return jF(t);case vt.json:case vt.jsonb:return LF(t);case vt.timestamp:return FF(t);case vt.abstime:case vt.date:case vt.daterange:case vt.int4range:case vt.int8range:case vt.money:case vt.reltime:case vt.text:case vt.time:case vt.timestamptz:case vt.timetz:case vt.tsrange:case vt.tstzrange:return uy(t);default:return uy(t)}},uy=e=>e,DF=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},jF=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},LF=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},MF=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const a=e.slice(1,n);try{i=JSON.parse("["+a+"]")}catch{i=a?a.split(","):[]}return i.map(o=>pA(t,o))}return e},FF=e=>typeof e=="string"?e.replace(" ","T"):e,mA=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class ng{constructor(t,n,r={},s=oy){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHo
389oks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Pw;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Pw||(Pw={}));class Yu{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:a,onSync:o}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Yu.syncState(this.state,s,i,a),this.pendingDiffs.forEach(u=>{this.state=Yu.syncDiff(this.state,u,i,a)}),this.pendingDiffs=[],o()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:a,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Yu.syncDiff(this.state,s,i,a),o())}),this.onJoin((s,i,a)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:a})}),this.onLeave((s,i,a)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:a})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),a=this.transformState(n),o={},u={};return this.map(i,(c,d)=>{a[c]||(u[c]=d)}),this.map(a,(c,d)=>{const h=i[c];if(h){const p=d.map(x=>x.presence_ref),f=h.map(x=>x.presence_ref),w=d.filter(x=>f.indexOf(x.presence_ref)<0),m=h.filter(x=>p.indexOf(x.presence_ref)<0);w.length>0&&(o[c]=w),m.length>0&&(u[c]=m)}else o[c]=d}),this.syncDiff(i,{joins:o,leaves:u},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:a}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(o,u)=>{var c;const d=(c=t[o])!==null&&c!==void 0?c:[];if(t[o]=this.cloneDeep(u),d.length>0){const h=t[o].map(f=>f.presence_ref),p=d.filter(f=>h.indexOf(f.presence_ref)<0);t[o].unshift(...p)}r(o,d,u)}),this.map(a,(o,u)=>{let c=t[o];if(!c)return;const d=u.map(h=>h.presence_ref);c=c.filter(h=>d.indexOf(h.presence_ref)<0),t[o]=c,s(o,c,u),c.length===0&&delete t[o]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Dw;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Dw||(Dw={}));var Ku;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ku||(Ku={}));var Xs;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Xs||(Xs={}));class Ko{constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=rn.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new ng(this,as.join,this.params,this.timeout),this.rejoinTimer=new fA(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=rn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=rn.closed,this.socket._remove(this)}),this._onError(a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=rn.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=rn.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=rn.errored,this.rejoinTimer.scheduleTimeout())}),this._on(as.reply,{},(a,o)=>{this._trigger(this._replyEventName(o),a)}),this.presence=new Yu(this),this.broadcastEndpointURL=mA(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==rn.closed){const{config:{broadcast:a,presence:o,private:u}}=this.params,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Ku.PRESENCE]&&this.bindings[Ku.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},p={broadcast:a,presence:Object.assign(Object.assign({},o),{enabled:d}),postgres_changes:c,private:u};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(Xs.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(Xs.CLOSED)),this.updateJoinPayload(Object.assign({config:p},h)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:f})=>{var w;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Xs.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,x=(w=m==null?void 0:m.length)!==null&&w!==void 0?w:0,v=[];for(let b=0;b<x;
389b++){const E=m[b],{filter:{event:T,schema:C,table:_,filter:k}}=E,P=f&&f[b];if(P&&P.event===T&&Ko.isFilterValueEqual(P.schema,C)&&Ko.isFilterValueEqual(P.table,_)&&Ko.isFilterValueEqual(P.filter,k))v.push(Object.assign(Object.assign({},E),{id:P.id}));else{this.unsubscribe(),this.state=rn.errored,t==null||t(Xs.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(Xs.SUBSCRIBED);return}}).receive("error",f=>{this.state=rn.errored,t==null||t(Xs.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Xs.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===rn.joined&&t===Ku.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const a={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},o=await this._fetchWithTimeout(this.broadcastEndpointURL,a,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(o.status===202)return{success:!0};let u=o.statusText;try{const c=await o.json();u=c.error||c.message||u}catch{}return Promise.reject(new Error(u))}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
389in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:a}=t,o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const u={method:"POST",headers:o,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:a,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var a,o,u;const c=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((u=(o=(a=this.params)===null||a===void 0?void 0:a.config)===null||o===void 0?void 0:o.broadcast)===null||u===void 0)&&u.ack)&&i("ok"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=rn.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(as.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new ng(this,as.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=rn.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),a=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),a}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new ng(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>IF){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,i;const a=t.toLocaleLowerCase(),{close:o,error:u,leave:c,join:d}=as;if(r&&[o,u,c,d].indexOf(a)>=0&&r!==this._joinRef())return;let p=this._onMessage(a,n,r);if(n&&!p)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(a)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var w,m,x;return((w=f.filter)===null||w===void 0?void 0:w.event)==="*"||((x=(m=f.filter)===null||m===void 0?void 0:m.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===a}).map(f=>f.callback(p,r)):(i=this.bindings[a])===null||i===void 0||i.filter(f=>{var w,m,x,v,b,E,T,C;if(["broadcast","presence","postgres_changes"].includes(a))if("id"in f){const _=f.id,k=(w=f.filter)===null||w===void 0?void 0:w.event;return _&&((m=n.ids)===null||m===void 0?void 0:m.includes(_))&&(k==="*"||(k==null?void 0:k.toLocaleLowerCase())===((x=n.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))&&(!(!((v=f.filter)===null||v===void 0)&&v.table)||f.filter.table===((b=n.data)===null||b===void 0?void 0:b.table))}else{const _=(T=(E=f==null?void 0:f.filter)===null||E===void 0?void 0:E.event)===null||T===void 0?void 0:T.toLocaleLowerCase();return _==="*"||_===((C=n==null?void 0:n.event)===null||C===void 0?void 0:C.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===a}).map(f=>{if(typeof p=="object"&&"ids"in p){const w=p.data,{schema:m,table:x,commit_timestamp:v,type:b,errors:E}=w;p=Object.assign(Object.assign({},{schema:m,table:x,commit_timestamp:v,eventType:b,new:{},old:{},errors:E}),this._getPayloadRecords(w))}f.callback(p,r)})}_isClosed(){return this.state===rn.closed}_isJoined(){return this.state===rn.joined}_isJoining(){return this.state===rn.joining}_isLeaving(){return this.state===rn.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&Ko.isEqual(s.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(as.close,{},t)}_onError(t){this._on(as.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=rn.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Ow(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Ow(t.columns,t.old_record)),n}}const rg=()=>{},oh={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},BF=[1e3,2e3,5e3,1e4],UF=1e4,HF=`
390  addEventListener("message", (e) => {
391    if (e.data.event === "start") {
392      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
393    }
394  });`;class $F{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=oy,this.transport=null,this.heartbeatIntervalMs=oh.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=rg,this.ref=0,this.reconnectTimer=null,this.vsn=Iw,this.logger=rg,this.conn=null,this.sendBuffer=[],this.serializer
394=new OF,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${ly.websocket}`,this.httpEndpoint=mA(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=CF.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
395
396To use Realtime in Node.js, you need to provide a WebSocket implementation:
397
398Option 1: Use Node.js 22+ which has native WebSocket support
399Option 2: Install and provide the "ws" package:
400
401  npm install ws
402
403  import ws from "ws"
404  const client = new RealtimeClient(url, {
405    ...options,
406    transport: ws
407  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Ri.connecting:return Ra.Connecting;case Ri.open:return Ra.Open;case Ri.closing:return Ra.Closing;default:return Ra.Closed}}isConnected(){return this.connectionState()===Ra.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new Ko(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,a=()=>{this.encode(t,o=>{var u;(u=this.conn)===null||u===void 0||u.send(o)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?a():this.sendBuffer.push(a)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(RF,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},oh.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
407{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const c=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",c)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:s,payload:i,ref:a}=n,o=a?`(${a})`:"",u=i.status||"";this.log("receive",`${u} ${r} ${s} ${o}`.trim(),i),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,i,a)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===Ri.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Ri.open||this.conn.readyState===Ri.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(as.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([HF],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:NF};n&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(as.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new fA(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},oh.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,a,o,u,c,d,h,p,f;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.t
407imeout)!==null&&r!==void 0?r:oy,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:oh.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(a=t==null?void 0:t.accessToken)!==null&&a!==void 0?a:null,this.heartbeatCallback=(o=t==null?void 0:t.heartbeatCallback)!==null&&o!==void 0?o:rg,this.vsn=(u=t==null?void 0:t.vsn)!==null&&u!==void 0?u:Iw,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:w=>BF[w-1]||UF,this.vsn){case AF:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(w,m)=>m(JSON.stringify(w)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(w,m)=>m(JSON.parse(w));break;case hA:this.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:this.serializer.encode.bind(this.serializer),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var Pc=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function zF(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function VF(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function WF(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:a}){const o=zF(e.baseUrl,r,s),u=await VF(e.auth),c=await t(o,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...u,...a},body:i?JSON.stringify(i):void 0}),d=await c.text(),h=(c.headers.get("content-type")||"").includes("application/json"),p=h&&d?JSON.parse(d):d;if(!c.ok){const f=h?p:void 0,w=f==null?void 0:f.error;throw new Pc((w==null?void 0:w.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:f})}return{status:c.status,headers:c.headers,data:p}}}}function lh(e){return e.join("�")}var qF=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:lh(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${lh(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${lh(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${lh(e.namespace)}`}),!0}catch(t){if(t instanceof Pc&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Pc&&n.status===409)return;throw n}}};function _o(e){return e.join("�")}var YF=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${_o(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${_o(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${_o(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${_o(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${_o(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${_o(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Pc&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Pc&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},KF=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=WF({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new qF(this.client,t),this.tableOps=new YF(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
407async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},$p=class extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}};function It(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var GF=class extends $p{constructor(e,t,n){super(e),this.name="StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},cy=class extends $p{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}};const Eb=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),QF=()=>Response,dy=e=>{if(Array.isArray(e))return e.map(n=>dy(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=dy(r)}),t},XF=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)},JF=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Dc(e){"@babel/helpers - typeof";return Dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function ZF(e,t){if(Dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eB(e){var t=ZF(e,"string");return Dc(t)=="symbol"?t:t+""}function tB(e,t,n){return(t=eB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jw(Object(n),!0).forEach(function(r){tB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const sg=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},nB=async(e,t,n)=>{e instanceof await QF()&&!(n!=null&&n.noResolveJson)?e.json().then(r=>{const s=e.status||500,i=(r==null?void 0:r.statusCode)||s+"";t(new GF(sg(r),s,i))}).catch(r=>{t(new cy(sg(r),r))}):t(new cy(sg(e),e))},rB=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?s:(XF(r)?(s.headers=Ie({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,t!=null&&t.duplex&&(s.duplex=t.duplex),Ie(Ie({},s),n))};async function gd(e,t,n,r,s,i){return new Promise((a,o)=>{e(n,rB(t,r,s,i)).then(u=>{if(!u.ok)throw u;return r!=null&&r.noResolveJson?u:u.json()}).then(u=>a(u)).catch(u=>nB(u,o,r))})}async function jc(e,t,n,r){return gd(e,"GET",t,n,r)}async function ns(e,t,n,r,s){return gd(e,"POST",t,r,s,n)}async function hy(e,t,n,r,s){return gd(e,"PUT",t,r,s,n)}async function sB(e,t,n,r){return gd(e,"HEAD",t,Ie(Ie({},n),{},{noResolveJson:!0}),r)}async function _b(e,t,n,r,s){return gd(e,"DELETE",t,r,s,n)}var iB=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(It(t))return{data:null,error:t};throw t}}};let gA;gA=Symbol.toStringTag;var aB=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[gA]="BlobDownloadBuilder",this.promise=null}asStream(){return new iB(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(It(t))return{data:null,error:t};throw t}}};const oB={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Lw={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var lB=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=n,this.fetch=Eb(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(e,t,n,r){var s=this;try{let i;const a=Ie(Ie({},Lw),r);let o=Ie(Ie({},s.headers),e==="POST"&&{"x-upsert":String(a.upsert)});const u=a.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",a.cacheControl),u&&i.append("metadata",s.encodeMetadata(u)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",a.cacheControl),u&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(u))):(i=n,o["cache-control"]=`max-age=${a.cacheControl}`,o["content-type"]=a.contentType,u&&(o["x-metadata"]=s.toBase64(s.encodeMetadata(u))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!a.duplex&&(a.duplex="half")),r!=null&&r.headers&&(o=Ie(Ie({},o),r.headers));const c=s._removeEmptyFolders(t),d=s._getFinalPath(c),h=await(e=="PUT"?hy:ns)(s.fetch,`${s.url}/object/${d}`,i,Ie({headers:o},a!=null&&a.duplex?{duplex:a.duplex}:{}));return{data:{path:c,id:h.Id,fullPath:h.Key},error:null}}catch(i){if(s.shouldThrowOnError)throw i;if(It(i))return{data:null,error:i};throw i}}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),a=s._getFinalPath(i),o=new URL(s.url+`/object/upload/sign/${a}`);o.searchParams.set("token",t);try{let u;const c=Ie({upsert:Lw.upsert},r),d=Ie(Ie({},s.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&n instanceof Blob?(u=new FormData,u.append("cacheControl",c.cacheControl),u.append("",n)):typeof FormData<"u"&&n instanceof FormData?(u=n,u.append("cacheControl",c.cacheControl)):(u=n,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType),{data:{path:i,fullPath:(await hy(s.fetch,o.toString(),u,{headers:d})).Key},error:null}}catch(u){if(s.shouldThrowOnError)throw u;if(It(u))return{data:null,error:u};throw u}}async createSignedUploadUrl(e,t){var n=this;try{let r=n._getFinalPath(e);const s=Ie({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await ns(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),a=new URL(n.url+i.url),o=a.searchParams.get("token");if(!o)throw new $p("No token returned by API");return{data:{signedUrl:a.toString(),path:e,token:o},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(It(r))return{data:null,error:r};throw r}}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;try{return{data:await ns(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
407stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(It(s))return{data:null,error:s};throw s}}async copy(e,t,n){var r=this;try{return{data:{path:(await ns(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key},error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(It(s))return{data:null,error:s};throw s}}async createSignedUrl(e,t,n){var r=this;try{let s=r._getFinalPath(e),i=await ns(r.fetch,`${r.url}/object/sign/${s}`,Ie({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const a=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${r.url}${i.signedURL}${a}`)},{data:i,error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(It(s))return{data:null,error:s};throw s}}async createSignedUrls(e,t,n){var r=this;try{const s=await ns(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:s.map(a=>Ie(Ie({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${i}`):null})),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(It(s))return{data:null,error:s};throw s}}download(e,t){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=r?`?${r}`:"",i=this._getFinalPath(e),a=()=>jc(this.fetch,`${this.url}/${n}/${i}${s}`,{headers:this.headers,noResolveJson:!0});return new aB(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);try{return{data:dy(await jc(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(It(r))return{data:null,error:r};throw r}}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await sB(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(It(r)&&r instanceof cy){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],s=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&r.push(s);const i=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",a=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});a!==""&&r.push(a);let o=r.join("&");return o!==""&&(o=`?${o}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}${o}`)}}}async remove(e){var t=this;try{return{data:await _b(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async list(e,t,n){var r=this;try{const s=Ie(Ie(Ie({},oB),t),{},{prefix:e||""});return{data:await ns(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(It(s))return{data:null,error:s};throw s}}async listV2(e,t){var n=this;try{const r=Ie({},e);return{data:await ns(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(It(r))return{data:null,error:r};throw r}}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const yA="2.91.1",vA={"X-Client-Info":`storage-js/${yA}`};var uB=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1;const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href.replace(/\/$/,""),this.headers=Ie(Ie({},vA),t),this.fetch=Eb(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(e){var t=this;try{const n=t.listBucketOptionsToQueryString(e);return{data:await jc(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await jc(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async createBucket(e,t={public:!1}){var n=this;try{return{data:await ns(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(It(r))return{data:null,error:r};throw r}}async updateBucket(e,t){var n=this;try{return{data:await hy(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(It(r))return{data:null,error:r};throw r}}async emptyBucket(e){var t=this;try{return{data:await ns(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await _b(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},cB=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Ie(Ie({},vA),t),this.fetch=Eb(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await ns(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async listBuckets(e){var t=this;try{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return{data:await jc(t.fetch,s,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await _b(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(It(n))return{data:null,error:n};throw n}}from(e){var t=this;if(!JF(e))throw new $p("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new KF({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
407),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const a=s[i];return typeof a!="function"?a:async(...o)=>{try{return{data:await a.apply(s,o),error:null}}catch(u){if(r)throw u;return{data:null,error:u}}}}})}};const Tb={"X-Client-Info":`storage-js/${yA}`,"Content-Type":"application/json"};var bA=class extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function vr(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}var ig=class extends bA{constructor(e,t,n){super(e),this.name="StorageVectorsApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},dB=class extends bA{constructor(e,t){super(e),this.name="StorageVectorsUnknownError",this.originalError=t}};const Sb=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),hB=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)},Mw=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),fB=async(e,t,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const r=e.status||500,s=e;if(typeof s.json=="function")s.json().then(i=>{const a=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||r+"";t(new ig(Mw(i),r,a))}).catch(()=>{const i=r+"";t(new ig(s.statusText||`HTTP ${r} error`,r,i))});else{const i=r+"";t(new ig(s.statusText||`HTTP ${r} error`,r,i))}}else t(new dB(Mw(e),e))},pB=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return r?(hB(r)?(s.headers=Ie({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,Ie(Ie({},s),n)):s};async function mB(e,t,n,r,s,i){return new Promise((a,o)=>{e(n,pB(t,r,s,i)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;const c=u.headers.get("content-type");return!c||!c.includes("application/json")?{}:u.json()}).then(u=>a(u)).catch(u=>fB(u,o,r))})}async function br(e,t,n,r,s){return mB(e,"POST",t,r,s,n)}var gB=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Ie(Ie({},Tb),t),this.fetch=Sb(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(e){var t=this;try{return{data:await br(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}async getIndex(e,t){var n=this;try{return{data:await br(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(vr(r))return{data:null,error:r};throw r}}async listIndexes(e){var t=this;try{return{data:await br(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}async deleteIndex(e,t){var n=this;try{return{data:await br(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(vr(r))return{data:null,error:r};throw r}}},yB=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Ie(Ie({},Tb),t),this.fetch=Sb(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(e){var t=this;try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await br(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}async getVectors(e){var t=this;try{return{data:await br(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}async listVectors(e){var t=this;try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
407if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:await br(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}async queryVectors(e){var t=this;try{return{data:await br(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}async deleteVectors(e){var t=this;try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await br(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}},vB=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Ie(Ie({},Tb),t),this.fetch=Sb(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await br(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await br(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}async listBuckets(e={}){var t=this;try{return{data:await br(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await br(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vr(n))return{data:null,error:n};throw n}}},bB=class extends vB{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new xB(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},xB=class extends gB{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,Ie(Ie({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,Ie(Ie({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new wB(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},wB=class extends yB{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,Ie(Ie({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,Ie(Ie({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,Ie(Ie({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,Ie(Ie({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,Ie(Ie({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},EB=class extends uB{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new lB(this.url,this.headers,e,this.fetch)}get vectors(){return new bB(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new cB(this.url+"/iceberg",this.headers,this.fetch)}};const xA="2.91.1",Po=30*1e3,fy=3,ag=fy*Po,_B="http://localhost:9999",TB="supabase.auth.token",SB={"X-Client-Info":`gotrue-js/${xA}`},py="X-Supabase-Api-Version",wA={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},CB=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,kB=10*60*1e3;
407class Lc extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function Ee(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class NB extends Lc{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function AB(e){return Ee(e)&&e.name==="AuthApiError"}class Ia extends Lc{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class yi extends Lc{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class hr extends yi{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function RB(e){return Ee(e)&&e.name==="AuthSessionMissingError"}class To extends yi{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class uh extends yi{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class ch extends yi{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function IB(e){return Ee(e)&&e.name==="AuthImplicitGrantRedirectError"}class Fw extends yi{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class OB extends yi{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class my extends yi{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function og(e){return Ee(e)&&e.name==="AuthRetryableFetchError"}class Bw extends yi{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class gy extends yi{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Cf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Uw=` 	
408\r=`.split(""),PB=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Uw.length;t+=1)e[Uw[t].charCodeAt(0)]=-2;for(let t=0;t<Cf.length;t+=1)e[Cf[t].charCodeAt(0)]=t;return e})();function Hw(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Cf[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Cf[r]),t.queuedBits-=6}}function EA(e,t,n){const r=PB[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function $w(e){const t=[],n=a=>{t.push(String.fromCodePoint(a))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=a=>{LB(a,r,n)};for(let a=0;a<e.length;a+=1)EA(e.charCodeAt(a),s,i);return t.join("")}function DB(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function jB(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}DB(r,t)}}function LB(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function il(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)EA(e.charCodeAt(s),n,r);return new Uint8Array(t)}function MB(e){const t=[];return jB(e,n=>t.push(n)),new Uint8Array(t)}function La(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Hw(s,n,r)),Hw(null,n,r),t.join("")}function FB(e){return Math.round(Date.now()/1e3)+e}function BB(){return Symbol("auth-callback")}const Tn=()=>typeof window<"u"&&typeof document<"u",Ta={tested:!1,writable:!1},_A=()=>{if(!Tn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ta.tested)return Ta.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Ta.tested=!0,Ta.writable=!0}catch{Ta.tested=!0,Ta.writable=!1}return Ta.writable};function UB(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
408h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const TA=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),HB=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Do=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Sa=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},_n=async(e,t)=>{await e.removeItem(t)};class zp{constructor(){this.promise=new zp.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}zp.promiseConstructor=Promise;function lg(e){const t=e.split(".");if(t.length!==3)throw new gy("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!CB.test(t[r]))throw new gy("JWT not in base64url format");return{header:JSON.parse($w(t[0])),payload:JSON.parse($w(t[1])),signature:il(t[2]),raw:{header:t[0],payload:t[1]}}}async function $B(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function zB(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const a=await e(i);if(!t(i,null,a)){r(a);return}}catch(a){if(!t(i,a)){s(a);return}}})()})}function VB(e){return("0"+e.toString(16)).substr(-2)}function WB(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,VB).join("")}async function qB(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function YB(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await qB(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function So(e,t,n=!1){const r=WB();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await Do(e,`${t}-code-verifier`,s);const i=await YB(r);return[i,r===i?"plain":"s256"]}const KB=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function GB(e){const t=e.headers.get(py);if(!t||!t.match(KB))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function QB(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function XB(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const JB=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Co(e){if(!JB.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function ug(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function ZB(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function zw(e){return JSON.parse(JSON.stringify(e))}const Na=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),e9=[502,503,504];async function Vw(e){var t;if(!HB(e))throw new my(Na(e),0);if(e9.includes(e.status))throw new my(Na(e),e.status);let n;try{n=await e.json()}catch(i){throw new Ia(Na(i),i)}let r;const s=GB(e);if(s&&s.getTime()>=wA["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Bw(Na(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new hr}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,a)=>
408i&&typeof a=="string",!0))throw new Bw(Na(n),e.status,n.weak_password.reasons);throw new NB(Na(n),e.status||500,r)}const t9=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function Re(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[py]||(i[py]=wA["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const a=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(a.redirect_to=r.redirectTo);const o=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",u=await n9(e,t,n+o,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(u):{data:Object.assign({},u),error:null}}async function n9(e,t,n,r,s,i){const a=t9(t,r,s,i);let o;try{o=await e(n,Object.assign({},a))}catch(u){throw console.error(u),new my(Na(u),0)}if(o.ok||await Vw(o),r!=null&&r.noResolveJson)return o;try{return await o.json()}catch(u){await Vw(u)}}function Zr(e){var t;let n=null;i9(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=FB(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Ww(e){const t=Zr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function ji(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function r9(e){return{data:e,error:null}}function s9(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,a=Gl(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),o={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},u=Object.assign({},a);return{data:{properties:o,user:u},error:null}}function qw(e){return e}function i9(e){return e.access_token&&e.refresh_token&&e.expires_in}const cg=["global","local","others"];class a9{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=TA(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=cg[0]){if(cg.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${cg.join(", ")}`);try{return await Re(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Ee(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await Re(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:ji})}catch(r){if(Ee(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Gl(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await Re(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:s9,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(Ee(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await Re(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:ji})}catch(n){if(Ee(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,a,o,u;try{const c={nextPage:null,lastPage:0,total:0},d=await Re(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:qw});if(d.error)throw d.error;const h=await d.json(),p=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,f=(u=(o=d.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&u!==void 0?u:[];return f.length>0&&(f.forEach(w=>{const m=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);c[`${x}Page`]=m}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(Ee(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){Co(t);try{return await Re(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:ji})}catch(n){if(Ee(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Co(t);try{return await Re(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:ji})}catch(r){if(Ee(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Co(t);
408try{return await Re(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:ji})}catch(r){if(Ee(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Co(t.userId);try{const{data:n,error:r}=await Re(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Co(t.userId),Co(t.id);try{return{data:await Re(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,a,o,u;try{const c={nextPage:null,lastPage:0,total:0},d=await Re(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:qw});if(d.error)throw d.error;const h=await d.json(),p=(a=d.headers.get("x-total-count"))!==null&&a!==void 0?a:0,f=(u=(o=d.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&u!==void 0?u:[];return f.length>0&&(f.forEach(w=>{const m=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);c[`${x}Page`]=m}),c.total=parseInt(p)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(Ee(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await Re(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await Re(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await Re(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Ee(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await Re(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await Re(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Ee(n))return{data:null,error:n};throw n}}}function Yw(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const ko={debug:!!(globalThis&&_A()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class SA extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class o9 extends SA{}async function l9(e,t,n){ko.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),ko.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){ko.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{ko.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw ko.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new o9(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(ko.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function u9(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function CA(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
408" is invalid.`);return e.toLowerCase()}function c9(e){return parseInt(e,16)}function d9(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function h9(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:a,notBefore:o,requestId:u,resources:c,scheme:d,uri:h,version:p}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
409`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=CA(e.address),w=d?`${d}://${r}`:r,m=e.statement?`${e.statement}
410`:"",x=`${w} wants you to sign in with your Ethereum account:
411${f}
412
413${m}`;let v=`URI: ${h}
414Version: ${p}
415Chain ID: ${n}${a?`
416Nonce: ${a}`:""}
417Issued At: ${i.toISOString()}`;if(s&&(v+=`
418Expiration Time: ${s.toISOString()}`),o&&(v+=`
419Not Before: ${o.toISOString()}`),u&&(v+=`
420Request ID: ${u}`),c){let b=`
421Resources:`;for(const E of c){if(!E||typeof E!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${E}`);b+=`
422- ${E}`}v+=b}return`${x}
423${v}`}class Jt extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class kf extends Jt{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function f9({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Jt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Jt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Jt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Jt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Jt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Jt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(o=>o.type==="public-key").length===0?new Jt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Jt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const a=window.location.hostname;if(kA(a)){if(i.rp.id!==a)return new Jt({message:`The RP ID "${i.rp.id}
423" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Jt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Jt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Jt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Jt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function p9({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Jt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Jt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(kA(r)){if(n.rpId!==r)return new Jt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Jt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Jt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Jt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class m9{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const g9=new m9;function y9(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=Gl(e,["challenge","user","excludeCredentials"]),i=il(t).buffer,a=Object.assign(Object.assign({},n),{id:il(n.id).buffer}),o=Object.assign(Object.assign({},s),{challenge:i,user:a});if(r&&r.length>0){o.excludeCredentials=new Array(r.length);for(let u=0;u<r.length;u++){const c=r[u];o.excludeCredentials[u]=Object.assign(Object.assign({},c),{id:il(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return o}function v9(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Gl(e,["challenge","allowCredentials"]),s=il(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let a=0;a<n.length;a++){const o=n[a];i.allowCredentials[a]=Object.assign(Object.assign({},o),{id:il(o.id).buffer,type:o.type||"public-key",transports:o.transports})}}return i}function b9(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:La(new Uint8Array(e.response.attestationObject)),clientDataJSON:La(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function x9(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:La(new Uint8Array(s.authenticatorData)),clientDataJSON:La(new Uint8Array(s.clientDataJSON)),signature:La(new Uint8Array(s.signature)),userHandle:s.userHandle?La(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function kA(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Kw(){var e,t;return!!(Tn()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function w9(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new kf("Browser returned unexpected credential type",t)}:{data:null,error:new kf("Empty credential response",t)}}
423catch(t){return{data:null,error:f9({error:t,options:e})}}}async function E9(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new kf("Browser returned unexpected credential type",t)}:{data:null,error:new kf("Empty credential response",t)}}catch(t){return{data:null,error:p9({error:t,options:e})}}}const _9={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},T9={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Nf(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const a=s[i];if(a!==void 0)if(Array.isArray(a))r[i]=a;else if(n(a))r[i]=a;else if(t(a)){const o=r[i];t(o)?r[i]=Nf(o,a):r[i]=Nf(a)}else r[i]=a}return r}function S9(e,t){return Nf(_9,e,t||{})}function C9(e,t){return Nf(T9,e,t||{})}class k9{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){try{const{data:a,error:o}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:o};const u=s??g9.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:c}=a.webauthn.credential_options.publicKey;c.name||(c.name=`${c.id}:${r}`),c.displayName||(c.displayName=c.name)}switch(a.webauthn.type){case"create":{const c=S9(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:h}=await w9({publicKey:c,signal:u});return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const c=C9(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:h}=await E9(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:c,signal:u}));return d?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(a){return Ee(a)?{data:null,error:a}:{data:null,error:new Ia("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Lc("rpId is required for WebAuthn authentication")};try{if(!Kw())return{data:null,error:new Ia("Browser does not support WebAuthn",null)};const{data:a,error:o}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!a)return{data:null,error:o};const{webauthn:u}=a;return this._verify({factorId:t,challengeId:a.challengeId,webauthn:{type:u.type,rpId:n,rpOrigins:r,credential_response:u.credential_response}})}catch(a){return Ee(a)?{data:null,error:a}:{data:null,error:new Ia("Unexpected error in authenticate",a)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Lc("rpId is required for WebAuthn registration")};try{if(!Kw())return{data:null,error:new Ia("Browser does not support WebAuthn",null)};const{data:a,error:o}=await this._enroll({friendlyName:t});if(!a)return await this.client.mfa.listFactors().then(d=>{var h;return(h=d.data)===null||h===void 0?void 0:h.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:o};const{data:u,error:c}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return u?this._verify({factorId:a.id,challengeId:u.challengeId,webauthn:{rpId:n,rpOrigins:r,type:u.webauthn.type,credential_response:u.webauthn.credential_response}}):{data:null,error:c}}catch(a){return Ee(a)?{data:null,error:a}:{data:null,error:new Ia("Unexpected error in register",a)}}}}u9();const N9={url:_B,storageKey:TB,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:SB,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function Gw(e,t,n){return await n()}const No={};class Mc{get jwks(){var t,n;return(n=(t=No[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){No[this.storageKey]=Object.assign(Object.assign({},No[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=No[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){No[this.storageKey]=Object.assign(Object.assign({},No[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},N9),t);if(this.storageKey=i.storageKey,this.instanceID=(n=Mc.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Mc.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&Tn()){const a=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new a9({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=TA(i.fetch),this.lock=i.lock||Gw,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&Tn()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=l9:this.lock=Gw,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new k9(this)}
423,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:_A()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Yw(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Yw(this.memoryStorage)),Tn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a),await this._notifyAllSubscribers(a.data.event,a.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${xA}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(Tn()&&(n=UB(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Tn()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),IB(i)){const u=(t=i.details)===null||t===void 0?void 0:t.code;if(u==="identity_already_exists"||u==="identity_not_found"||u==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:a,redirectType:o}=s;return this._debug("#_initialize()","detected session in URL",a,"redirect type",o),await this._saveSession(a),setTimeout(async()=>{o==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return Ee(n)?this._returnResult({error:n}):this._returnResult({error:new Ia("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await Re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Zr}),{data:a,error:o}=i;if(o||!a)return this._returnResult({data:{user:null,session:null},error:o});const u=a.session,c=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",u)),this._returnResult({data:{user:c,session:u},error:null})}catch(i){if(Ee(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:d,password:h,options:p}=t;let f=null,w=null;this.flowType==="pkce"&&([f,w]=await So(this.storage,this.storageKey)),i=await Re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:d,password:h,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:f,code_challenge_method:w},xform:Zr})}else if("phone"in t){const{phone:d,password:h,options:p}=t;i=await Re(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},channel:(s=p==null?void 0:p.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:Zr})}else throw new uh("You must provide either an email or phone number and a password");const{data:a,error:o}=i;if(o||!a)return await _n(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:o});const u=a.session,c=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",u)),this._returnResult({data:{user:c,session:u},error:null})}catch(i){if(await _n(this.storage,`${this.storageKey}-code-verifier`),Ee(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:a,options:o}=t;n=await Re(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:a,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Ww})}else if("phone"in t){const{phone:i,password:a,options:o}=t;n=await Re(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:a,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Ww})}else throw new uh("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new To;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(Ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,a,o,u,c,d,h,p;let f,w;if("message"in t)f=t.message,w=t.signature;else{const{chain:m,wallet:x,statement:v,options:b}=t;let E;if(Tn())if(typeof x=="object")E=x;else{const M=window;if("ethereum"in M&&typeof M.ethereum=="object"&&"request"in M.ethereum&&typeof M.ethereum.request=="function")E=M.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");E=x}const T=new URL((n=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href),C=await E.request({method:"eth_requestAccounts"}).then(M=>M).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!C||C.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const _=CA(C[0]);let k=(r=b==null?void 0:b.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!k){const M=await E.request({method:"eth_chainId"});k=c9(M)}const P={domain:T.host,address:_,statement:v,uri:T.href,version:"1",chainId:k,nonce:(s=b==null?void 0:b.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(a=(i=b==null?void 0:b.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&a!==void 0?a:new Date,expirationTime:(o=b==null?void 0:b.signInWithEthereum)===null||o===void 0?void 0:o.expirationTime,notBefore:(u=b==null?void 0:b.signInWithEthereum)===null||u===void 0?void 0:u.notBefore,requestId:(c=b==null?void 0:b.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(d=b==null?void 0:b.signInWithEthereum)===null||d===void 0?void 0:d.resources};f=h9(P),w=await E.request({method:"personal_sign",params:[d9(f),_]})}try{const{data:m,error:x}=await Re(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:w}
423,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Zr});if(x)throw x;if(!m||!m.session||!m.user){const v=new To;return this._returnResult({data:{user:null,session:null},error:v})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:x})}catch(m){if(Ee(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,s,i,a,o,u,c,d,h,p,f;let w,m;if("message"in t)w=t.message,m=t.signature;else{const{chain:x,wallet:v,statement:b,options:E}=t;let T;if(Tn())if(typeof v=="object")T=v;else{const _=window;if("solana"in _&&typeof _.solana=="object"&&("signIn"in _.solana&&typeof _.solana.signIn=="function"||"signMessage"in _.solana&&typeof _.solana.signMessage=="function"))T=_.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(E!=null&&E.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");T=v}const C=new URL((n=E==null?void 0:E.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in T&&T.signIn){const _=await T.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},E==null?void 0:E.signInWithSolana),{version:"1",domain:C.host,uri:C.href}),b?{statement:b}:null));let k;if(Array.isArray(_)&&_[0]&&typeof _[0]=="object")k=_[0];else if(_&&typeof _=="object"&&"signedMessage"in _&&"signature"in _)k=_;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)w=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),m=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in T)||typeof T.signMessage!="function"||!("publicKey"in T)||typeof T!="object"||!T.publicKey||!("toBase58"in T.publicKey)||typeof T.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${C.host} wants you to sign in with your Solana account:`,T.publicKey.toBase58(),...b?["",b,""]:[""],"Version: 1",`URI: ${C.href}`,`Issued At: ${(s=(r=E==null?void 0:E.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=E==null?void 0:E.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${E.signInWithSolana.notBefore}`]:[],...!((a=E==null?void 0:E.signInWithSolana)===null||a===void 0)&&a.expirationTime?[`Expiration Time: ${E.signInWithSolana.expirationTime}`]:[],...!((o=E==null?void 0:E.signInWithSolana)===null||o===void 0)&&o.chainId?[`Chain ID: ${E.signInWithSolana.chainId}`]:[],...!((u=E==null?void 0:E.signInWithSolana)===null||u===void 0)&&u.nonce?[`Nonce: ${E.signInWithSolana.nonce}`]:[],...!((c=E==null?void 0:E.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${E.signInWithSolana.requestId}`]:[],...!((h=(d=E==null?void 0:E.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...E.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(`
424`);const _=await T.signMessage(new TextEncoder().encode(w),"utf8");if(!_||!(_ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=_}}try{const{data:x,error:v}=await Re(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:La(m)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Zr});if(v)throw v;if(!x||!x.session||!x.user){const b=new To;return this._returnResult({data:{user:null,session:null},error:b})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:v})}
424catch(x){if(Ee(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await Sa(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new OB;const{data:i,error:a}=await Re(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Zr});if(await _n(this.storage,`${this.storageKey}-code-verifier`),a)throw a;if(!i||!i.session||!i.user){const o=new To;return this._returnResult({data:{user:null,session:null,redirectType:null},error:o})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:a})}catch(i){if(await _n(this.storage,`${this.storageKey}-code-verifier`),Ee(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:a}=t,o=await Re(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:a,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Zr}),{data:u,error:c}=o;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!u||!u.session||!u.user){const d=new To;return this._returnResult({data:{user:null,session:null},error:d})}return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",u.session)),this._returnResult({data:u,error:c})}catch(n){if(Ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,a;try{if("email"in t){const{email:o,options:u}=t;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await So(this.storage,this.storageKey));const{error:h}=await Re(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:o,data:(n=u==null?void 0:u.data)!==null&&n!==void 0?n:{},create_user:(r=u==null?void 0:u.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:u==null?void 0:u.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:u==null?void 0:u.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:o,options:u}=t,{data:c,error:d}=await Re(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:o,data:(s=u==null?void 0:u.data)!==null&&s!==void 0?s:{},create_user:(i=u==null?void 0:u.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:u==null?void 0:u.captchaToken},channel:(a=u==null?void 0:u.channel)!==null&&a!==void 0?a:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d})}throw new uh("You must provide either an email or phone number.")}catch(o){if(await _n(this.storage,`${this.storageKey}-code-verifier`),Ee(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:a,error:o}=await Re(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Zr});if(o)throw o;if(!a)throw new Error("An error occurred on token verification.");const u=a.session,c=a.user;return u!=null&&u.access_token&&(await this._saveSession(u),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",u)),this._returnResult({data:{user:c,session:u},error:null})}catch(s){if(Ee(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,a;try{let o=null,u=null;this.flowType==="pkce"&&([o,u]=await So(this.storage,this.storageKey));const c=await Re(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}
424:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:u}),headers:this.headers,xform:r9});return!((i=c.data)===null||i===void 0)&&i.url&&Tn()&&!(!((a=t.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(o){if(await _n(this.storage,`${this.storageKey}-code-verifier`),Ee(o))return this._returnResult({data:null,error:o});throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new hr;const{error:s}=await Re(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(Ee(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:a}=await Re(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:a})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:a,error:o}=await Re(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a==null?void 0:a.message_id},error:o})}throw new uh("You must provide either an email or phone number and a type")}catch(n){if(Ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Sa(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<ag:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const a=await Sa(this.userStorage,this.storageKey+"-user");a!=null&&a.user?t.user=a.user:t.user=ug()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const a={value:this.suppressGetSessionWarning};t.user=ZB(t.user,a),a.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await Re(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:ji}):await this._useSession(async n=>{var r,s,i;const{data:a,error:o}=n;
424if(o)throw o;return!(!((r=a.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new hr}:await Re(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=a.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:ji})})}catch(n){if(Ee(n))return RB(n)&&(await this._removeSession(),await _n(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new hr;const a=s.session;let o=null,u=null;this.flowType==="pkce"&&t.email!=null&&([o,u]=await So(this.storage,this.storageKey));const{data:c,error:d}=await Re(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:o,code_challenge_method:u}),jwt:a.access_token,xform:ji});if(d)throw d;return a.user=c.user,await this._saveSession(a),await this._notifyAllSubscribers("USER_UPDATED",a),this._returnResult({data:{user:a.user},error:null})})}catch(r){if(await _n(this.storage,`${this.storageKey}-code-verifier`),Ee(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new hr;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:a}=lg(t.access_token);if(a.exp&&(r=a.exp,s=r<=n),s){const{data:o,error:u}=await this._callRefreshToken(t.refresh_token);if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!o)return{data:{user:null,session:null},error:null};i=o}else{const{data:o,error:u}=await this._getUser(t.access_token);if(u)throw u;i={access_token:t.access_token,refresh_token:t.refresh_token,user:o.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(Ee(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:a,error:o}=n;if(o)throw o;t=(r=a.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new hr;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(Ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!Tn())throw new ch("No browser detected.");if(t.error||t.error_description||t.error_code)throw new ch(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Fw("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ch("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Fw("No code detected.");const{data:b,error:E}=await this._exchangeCodeForSession(t.code);if(E)throw E;const T=new URL(window.location.href);return T.searchParams.delete("code"),window.history.replaceState(window.history.state,"",T.toString()),{data:{session:b.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:a,expires_in:o,expires_at:u,token_type:c}=t;if(!i||!o||!a||!c)throw new ch("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(o);let p=d+h;u&&(p=parseInt(u));const f=p-d;
424f*1e3<=Po&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${h}s`);const w=p-h;d-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,p,d):d-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,p,d);const{data:m,error:x}=await this._getUser(i);if(x)throw x;const v={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:h,expires_at:p,refresh_token:a,token_type:c,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(r){if(Ee(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Sa(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({error:i});const a=(r=s.session)===null||r===void 0?void 0:r.access_token;if(a){const{error:o}=await this.admin.signOut(a,t);if(o&&!(AB(o)&&(o.status===404||o.status===401||o.status===403)))return this._returnResult({error:o})}return t!=="others"&&(await this._removeSession(),await _n(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=BB(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:a}=n;if(a)throw a;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await So(this.storage,this.storageKey,!0));try{return await Re(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await _n(this.storage,`${this.storageKey}-code-verifier`),Ee(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var a,o,u,c,d;const{data:h,error:p}=i;if(p)throw p;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(a=t.options)===null||a===void 0?void 0:a.redirectTo,scopes:(o=t.options)===null||o===void 0?void 0:o.scopes,queryParams:(u=t.options)===null||u===void 0?void 0:u.queryParams,skipBrowserRedirect:!0});return await Re(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(c=h.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Tn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(Ee(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
424if(s)throw s;const{options:a,provider:o,token:u,access_token:c,nonce:d}=t,h=await Re(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:o,id_token:u,access_token:c,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Zr}),{data:p,error:f}=h;return f?this._returnResult({data:{user:null,session:null},error:f}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new To}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:f}))}catch(s){if(await _n(this.storage,`${this.storageKey}-code-verifier`),Ee(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:a}=n;if(a)throw a;return await Re(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await zB(async s=>(s>
4240&&await $B(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await Re(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Zr})),(s,i)=>{const a=200*Math.pow(2,s);return i&&og(i)&&Date.now()+a-r<Po})}catch(r){if(this._debug(n,"error",r),Ee(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Tn()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await Sa(this.storage,this.storageKey);if(s&&this.userStorage){let a=await Sa(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!a&&(a={user:s.user},await Do(this.userStorage,this.storageKey+"-user",a)),s.user=(t=a==null?void 0:a.user)!==null&&t!==void 0?t:ug()}else if(s&&!s.user&&!s.user){const a=await Sa(this.storage,this.storageKey+"-user");a&&(a!=null&&a.user)?(s.user=a.user,await _n(this.storage,this.storageKey+"-user"),await Do(this.storage,this.storageKey,s)):s.user=ug()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<ag;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${ag}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:a}=await this._callRefreshToken(s.refresh_token);a&&(console.error(a),og(a)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:a,error:o}=await this._getUser(s.access_token);!o&&(a!=null&&a.user)?(s.user=a.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(r,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new hr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new zp;const{data:i,error:a}=await this._refreshAccessToken(t);if(a)throw a;if(!i.session)throw new hr;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const o={data:i.session,error:null};return this.refreshingDeferred.resolve(o),o}catch(i){if(this._debug(s,"error",i),Ee(i)){const a={data:null,error:i};return og(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(a),a}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],a=Array.from(this.stateChangeEmitters.values()).map(async o=>{try{await o.callback(t,n)}catch(u){i.push(u)}});if(await Promise.all(a),i.length>0){for(let o=0;o<i.length;o+=1)console.error(i[o]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await _n(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Do(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=zw(s);await Do(this.storage,this.storageKey,i)}else{const s=zw(n);await Do(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await _n(this.storage,this.storageKey),await _n(this.storage,this.storageKey+"-code-verifier"),await _n(this.storage,this.storageKey+"-user"),this.userStorage&&await _n(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Tn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
424catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Po);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Po);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Po}ms, refresh threshold is ${fy} ticks`),s<=fy&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof SA)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Tn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,a]=await So(this.storage,this.storageKey),o=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(a)}`});s.push(o.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await Re(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:a}=n;if(a)return this._returnResult({data:null,error:a});const o=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:u,error:c}=await Re(this.fetch,"POST",`${this.url}/factors`,{body:o,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&u.type==="totp"&&(!((s=u==null?void 0:u.totp)===null||s===void 0)&&s.qr_code)&&(u.totp.qr_code=`data:image/svg+xml;utf-8,${u.totp.qr_code}`),this._returnResult({data:u,error:null}))})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?b9(t.webauthn.credential_response):x9(t.webauthn.credential_response)})}:{code:t.code}),{data:o,error:u}=await Re(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),this._returnResult({data:o,error:u}))})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const a=await Re(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(a.error)return a;const{data:o}=a;if(o.type!=="webauthn")return{data:o,error:null};switch(o.webauthn.type){case"create":return{data:Object.assign(Object.assign({},o),{webauthn:Object.assign(Object.assign({},o.webauthn),{credential_options:Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:y9(o.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},o),{webauthn:Object.assign(Object.assign({},o.webauthn),{credential_options:Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:v9(o.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var t,n;const{data:{session:r},error:s}
424=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=lg(r.access_token);let a=null;i.aal&&(a=i.aal);let o=a;((n=(t=r.user.factors)===null||t===void 0?void 0:t.filter(d=>d.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(o="aal2");const c=i.amr||[];return{data:{currentLevel:a,nextLevel:o,currentAuthenticationMethods:c},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await Re(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new hr})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new hr});const a=await Re(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:o=>({data:o,error:null})});return a.data&&a.data.redirect_url&&Tn()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(Ee(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new hr});const a=await Re(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:o=>({data:o,error:null})});return a.data&&a.data.redirect_url&&Tn()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(Ee(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await Re(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new hr})})}catch(t){if(Ee(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await Re(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new hr})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(o=>o.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(o=>o.kid===t),r&&this.jwks_cached_at+kB>s)return r;const{data:i,error:a}=await Re(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(o=>o.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:w}
424=await this.getSession();if(w||!f.session)return this._returnResult({data:null,error:w});r=f.session.access_token}const{header:s,payload:i,signature:a,raw:{header:o,payload:u}}=lg(r);n!=null&&n.allowExpired||QB(i.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:i,header:s,signature:a},error:null}}const d=XB(s.alg),h=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,a,MB(`${o}.${u}`)))throw new gy("Invalid JWT signature");return{data:{claims:i,header:s,signature:a},error:null}}catch(r){if(Ee(r))return this._returnResult({data:null,error:r});throw r}}}Mc.nextInstanceID={};const A9=Mc,R9="2.91.1";let Du="";typeof Deno<"u"?Du="deno":typeof document<"u"?Du="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Du="react-native":Du="node";const I9={"X-Client-Info":`supabase-js-${Du}/${R9}`},O9={headers:I9},P9={schema:"public"},D9={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},j9={};function Fc(e){"@babel/helpers - typeof";return Fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fc(e)}function L9(e,t){if(Fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M9(e){var t=L9(e,"string");return Fc(t)=="symbol"?t:t+""}function F9(e,t,n){return(t=M9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qw(Object(n),!0).forEach(function(r){F9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const B9=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),U9=()=>Headers,H9=(e,t,n)=>{const r=B9(n),s=U9();return async(i,a)=>{var o;const u=(o=await t())!==null&&o!==void 0?o:e;let c=new s(a==null?void 0:a.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${u}`),r(i,Ht(Ht({},a),{},{headers:c}))}};function $9(e){return e.endsWith("/")?e:e+"/"}function z9(e,t){var n,r;const{db:s,auth:i,realtime:a,global:o}=e,{db:u,auth:c,realtime:d,global:h}=t,p={db:Ht(Ht({},u),s),auth:Ht(Ht({},c),i),realtime:Ht(Ht({},d),a),storage:{},global:Ht(Ht(Ht({},h),o),{},{headers:Ht(Ht({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=o==null?void 0:o.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?p.accessToken=e.accessToken:delete p.accessToken,p}function V9(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL($9(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var W9=class extends A9{constructor(e){super(e)}},q9=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=V9(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const a=`sb-${i.hostname.split(".")[0]}-auth-token`,o={db:P9,realtime:j9,auth:Ht(Ht({},D9),{},{storageKey:a}),global:O9},u=z9(n??{},o);if(this.storageKey=(r=u.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=u.global.headers)!==null&&s!==void 0?s:{},u.accessToken)this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=u.auth)!==null&&c!==void 0?c:{},this.headers,u.global.fetch)}this.fetch=H9(t,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Ht({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new SF(new URL("rest/v1",i).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),this.storage=new EB(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new xF(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
424channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:a,lock:o,debug:u,throwOnError:c},d,h){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new W9({url:this.authUrl.href,headers:Ht(Ht({},p),d),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:a,lock:o,debug:u,throwOnError:c,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new $F(this.realtimeUrl.href,Ht(Ht({},e),{},{params:Ht(Ht({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const Y9=(e,t,n)=>new q9(e,t,n);function K9(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}K9()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const G9="https://kfdjbgbnwppowuqvbncs.supabase.co",Q9="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImtmZGpiZ2Jud3Bwb3d1cXZibmNzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjkxODU3NTAsImV4cCI6MjA4NDc2MTc1MH0.kLZy45Kb2QDHLUSjIxsKkjWM3M8POugwg2INCVqGM0U",Ze=Y9(G9,Q9,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),X9=[{value:"idea",label:"Idea"},{value:"startup",label:"Startup"},{value:"growth",label:"Growth"},{value:"established",label:"Established"}],J9=[{value:"just_me",label:"Just me"},{value:"1-10",label:"1-10"},{value:"11-50",label:"11-50"},{value:"51-200",label:"51-200"},{value:"200+",label:"200+"}];function Z9(){const{isOpen:e,closeLeadCapture:t}=kp(),[n,r]=y.useState(""),[s,i]=y.useState(""),[a,o]=y.useState(""),[u,c]=y.useState(""),[d,h]=y.useState(!0),[p,f]=y.useState(""),[w,m]=y.useState(""),[x,v]=y.useState(""),[b,E]=y.useState(""),[T,C]=y.useState(""),[_,k]=y.useState(""),[P,M]=y.useState(!1),[F,U]=y.useState(!1),[j,Y]=y.useState(null),z=S=>{const ue=S.trim();return ue?/^(https?:\/\/)?(www\.)?linkedin\.com\/.+$/i.test(ue):!1},X=S=>{if(!S.trim()){Y(null);return}z(S)?Y(null):Y("Please enter a valid LinkedIn URL (e.g., linkedin.com/in/yourname)")},Q=()=>!(!n.trim()||!s.trim()||!a.trim()||!u.trim()||!w.trim()||!T||!x||!b||!z(u)||!d&&!p.trim()),J=async S=>{try{await Ze.functions.invoke("sync-lead-to-airtable",{body:S})}catch(ue){console.error("Failed to sync to Airtable:",ue)}},$=async S=>{if(S.preventDefault(),!Q()){Pt.error("Please fill in all required fields.");return}M(!0);try{const ue={resource_id:null,first_name:n.trim(),last_name:s.trim(),email:a.trim(),linkedin_url:u.trim(),linkedin_reflects_current:d,current_role_description:d?null:p.trim(),company_name:w.trim(),company_stage:x,company_size:b,is_founder:T==="yes",whats_on_mind:_.trim()||null,phone_number:null},{data:te,error:R}=await Ze.from("lead_captures").insert(ue).select("id").single();if(R)throw R;J({...ue,lead_capture_id:(te==null?void 0:te.id)??null,resource_name:null});try{localStorage.setItem("tc_lead_data",JSON.stringify({firstName:n.trim(),lastName:s.trim(),email:a.trim(),linkedinUrl:u.trim(),linkedinReflectsCurrent:d,currentRoleDescription:d?"":p.trim(),companyName:w.trim(),companyStage:x,companySize:b,isFounder:T,phoneNumber:""}))}catch(pe){console.error("Failed to save lead data to localStorage:",pe)}U(!0),Pt.success("Thanks for signing up! We'll be in touch soon.")}catch(ue){console.error("Lead capture error:",ue),Pt.error("Something went wrong. Please try again.")}finally{M(!1)}},V=()=>{r(""),i(""),o(""),c(""),h(!0),f(""),m(""),v(""),E(""),C(""),k(""),U(!1),t()};return l.jsx(Dp,{open:e,onOpenChange:V,children:l.jsxs(hd,{className:"max-w-md max-h-[90vh] overflow-y-auto",children:[!F&&l.jsxs(fd,{children:[l.jsx(pd,{className:"text-xl",children:"Join TableCrowd"}
424),l.jsx(jp,{children:"Leave your details to receive dinner invitations and occasional updates about new things we're building."})]}),F?l.jsx("div",{className:"space-y-4 pt-4",children:l.jsxs("div",{className:"bg-muted/50 rounded-lg p-6 text-center space-y-3",children:[l.jsx(o2,{className:"h-12 w-12 text-primary mx-auto mb-2"}),l.jsx("p",{className:"text-foreground font-semibold text-lg",children:"You're in!"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Thanks for joining."}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"We'll be in touch with invitations to upcoming dinners and occasional updates about new things we're building."}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"You can browse upcoming dinners on the site. And if it's helpful to talk things through, you're always welcome to book a short call with us."}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Hope to see you around a table soon."}),l.jsx("p",{className:"text-sm text-muted-foreground font-medium mt-2",children:"– Kate & Claire"})]})}):l.jsxs("form",{onSubmit:$,className:"space-y-4 pt-4",children:[l.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"gs-firstName",children:"First name *"}),l.jsx(pt,{id:"gs-firstName",type:"text",placeholder:"First name",value:n,onChange:S=>r(S.target.value),required:!0})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"gs-lastName",children:"Last name *"}),l.jsx(pt,{id:"gs-lastName",type:"text",placeholder:"Last name",value:s,onChange:S=>i(S.target.value),required:!0})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"gs-email",children:"Email *"}),l.jsx(pt,{id:"gs-email",type:"email",placeholder:"[email protected]",value:a,onChange:S=>o(S.target.value),required:!0})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"gs-linkedin",children:"LinkedIn Profile *"}),l.jsx(pt,{id:"gs-linkedin",type:"url",placeholder:"https://linkedin.com/in/yourprofile",value:u,onChange:S=>{c(S.target.value),X(S.target.value)},onBlur:()=>X(u),className:j?"border-destructive":"",required:!0}),j&&l.jsx("p",{className:"text-sm text-destructive",children:j})]}),l.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[l.jsx(Xe,{htmlFor:"gs-linkedin-toggle",className:"text-sm font-normal cursor-pointer",children:"My LinkedIn reflects what I'm doing now"}),l.jsx(bb,{id:"gs-linkedin-toggle",checked:d,onCheckedChange:h})]}),!d&&l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"gs-currentRole",children:"What are you doing now? *"}),l.jsx(Ls,{id:"gs-currentRole",placeholder:"Tell us about your current role or focus...",value:p,onChange:S=>f(S.target.value),className:"min-h-[80px]",required:!0})]})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx(Xe,{children:"Are you a founder? *"}),l.jsxs(vb,{value:T,onValueChange:C,className:"flex gap-4",children:[l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsx(Oc,{value:"yes",id:"gs-founder-yes"}),l.jsx(Xe,{htmlFor:"gs-founder-yes",className:"font-normal cursor-pointer",children:"Yes"})]}),l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsx(Oc,{value:"no",id:"gs-founder-no"}),l.jsx(Xe,{htmlFor:"gs-founder-no",className:"font-normal cursor-pointer",children:"No"})]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"gs-company",children:"Company *"}),l.jsx(pt,{id:"gs-company",type:"text",placeholder:"Your company name",value:w,onChange:S=>m(S.target.value),required:!0})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"gs-companyStage",children:"Company stage *"}),l.jsxs(hs,{value:x,onValueChange:v,children:[l.jsx($r,{id:"gs-companyStage",children:l.jsx(fs,{placeholder:"Select stage"})}),l.jsx(zr,{children:X9.map(S=>l.jsx(yn,{value:S.value,children:S.label},S.value))})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"gs-companySize",children:"Company size *"}),l.jsxs(hs,{value:b,onValueChange:E,children:[l.jsx($r,{id:"gs-companySize",children:l.jsx(fs,{placeholder:"Select size"})}),l.jsx(zr,{children:J9.map(S=>l.jsx(yn,{value:S.value,children:S.label},S.value))})]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"gs-whatsOnMind",children:"What's on your mind?"}),l.jsx(Ls,{id:"gs-whatsOnMind",placeholder:"Raising investment, Hiring, Finding a book keeper...",value:_,onCh
424ange:S=>k(S.target.value),className:"min-h-[80px]"})]}),l.jsx(Ve,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:P||!Q(),children:P?l.jsxs(l.Fragment,{children:[l.jsx(Tr,{className:"mr-2 h-4 w-4 animate-spin"}),"Submitting..."]}):"Join TableCrowd"})]})]})})}const eU=Qk,tU=u8,nU=Xk,NA=y.forwardRef(({className:e,...t},n)=>l.jsx(Rp,{className:be("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));NA.displayName=Rp.displayName;const rU=zl("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),AA=y.forwardRef(({side:e="right",className:t,children:n,...r},s)=>l.jsxs(nU,{children:[l.jsx(NA,{}),l.jsxs(Ip,{ref:s,className:be(rU({side:e}),t),...r,children:[n,l.jsxs(Jk,{className:"absolute right-4 top-4 roun
424ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[l.jsx(qv,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));AA.displayName=Ip.displayName;const RA=({className:e,...t})=>l.jsx("div",{className:be("flex flex-col space-y-2 text-center sm:text-left",e),...t});RA.displayName="SheetHeader";const IA=y.forwardRef(({className:e,...t},n)=>l.jsx(Op,{ref:n,className:be("text-lg font-semibold text-foreground",e),...t}));IA.displayName=Op.displayName;const sU=y.forwardRef(({className:e,...t},n)=>l.jsx(Pp,{ref:n,className:be("text-sm text-muted-foreground",e),...t}));sU.displayName=Pp.displayName;const Xw="/assets/tablecrowd-logo-DieapsA9.svg",Jw=[{label:"Home",path:"/"},{label:"Events",path:"/events"},{label:"Services & Tools",path:"/resources"},{label:"About",path:"/about"},{label:"Contact",path:"/contact"}];function iU(){const e=Ws(),{openLeadCapture:t}=kp(),[n,r]=y.useState(!1);return l.jsx("header",{className:"sticky top-0 z-50 w-full border-b border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:l.jsxs("div",{className:"container flex h-16 items-center justify-between",children:[l.jsx(Cr,{to:"/",className:"flex items-center",children:l.jsx("img",{src:Xw,alt:"TableCrowd",className:"h-10"})}),l.jsx("nav",{className:"hidden md:flex items-center gap-1",children:Jw.map(s=>l.jsx(Cr,{to:s.path,className:be("px-4 py-2 rounded-lg text-sm font-medium transition-colors",e.pathname===s.path?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground hover:bg-muted"),children:s.label},s.path))}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("button",{onClick:t,className:"hidden sm:inline-flex items-center justify-center rounded-lg bg-accent px-4 py-2 text-sm font-medium text-accent-foreground transition-colors hover:bg-accent/90",children:"Join TableCrowd"}),l.jsxs(eU,{open:n,onOpenChange:r,children:[l.jsx(tU,{asChild:!0,children:l.jsxs("button",{className:"md:hidden inline-flex items-center justify-center rounded-lg p-2 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:[l.jsx(pj,{className:"h-5 w-5"}),l.jsx("span",{className:"sr-only",children:"Open menu"})]})}),l.jsxs(AA,{side:"right",className:"w-72",children:[l.jsx(RA,{children:l.jsx(IA,{children:l.jsx("img",{src:Xw,alt:"TableCrowd",className:"h-8"})})}),l.jsxs("nav",{className:"flex flex-col gap-1 mt-6",children:[Jw.map(s=>l.jsx(Cr,{to:s.path,onClick:()=>r(!1),className:be("px-4 py-3 rounded-lg text-sm font-medium transition-colors",e.pathname===s.path?"text-foreground bg-muted":"text-muted-foreground hover:text-foreground hover:bg-muted"),children:s.label},s.path)),l.jsx("button",{onClick:()=>{r(!1),t()},className:"mt-4 inline-flex items-center justify-center rounded-lg bg-accent px-4 py-3 text-sm font-medium text-accent-foreground transition-colors hover:bg-accent/90",children:"Join TableCrowd"})]})]})]})]})]})})}function Vr({children:e}){return l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(iU,{}),l.jsx("main",{className:"flex-1",children:e}),l.jsx("footer",{className:"border-t border-border bg-card py-8",children:l.jsxs("div",{className:"container text-center text-sm text-muted-foreground",children:[l.jsxs("p",{children:["© ",new Date().getFullYear()," TableCrowd Limited. Curated dinners for startup founders."]}),l.jsxs("div",{className:"mt-2 flex items-center justify-center gap-3 text-xs",children:[l.jsx(Cr,{to:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"}),l.jsx("span",{children:"·"}),l.jsx(Cr,{to:"/terms",className:"hover:text-foreground transition-colors",children:"Terms of Use"})]})]})})]})}const qt=y.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:be("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));qt.displayName="Card";const nr=y.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:be("flex flex-col space-y-1.5 p-6",e),...t}));
424nr.displayName="CardHeader";const rr=y.forwardRef(({className:e,...t},n)=>l.jsx("h3",{ref:n,className:be("text-2xl font-semibold leading-none tracking-tight",e),...t}));rr.displayName="CardTitle";const yr=y.forwardRef(({className:e,...t},n)=>l.jsx("p",{ref:n,className:be("text-sm text-muted-foreground",e),...t}));yr.displayName="CardDescription";const Zt=y.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:be("p-6 pt-0",e),...t}));Zt.displayName="CardContent";const aU=y.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:be("flex items-center p-6 pt-0",e),...t}));aU.displayName="CardFooter";function wa({title:e,description:t,canonicalPath:n,ogImage:r="https://tablecrowd.com/og-image.png",ogType:s="website",noIndex:i=!1}){return y.useEffect(()=>{document.title=e;const a=(o,u,c=!1)=>{const d=c?"property":"name";let h=document.querySelector(`meta[${d}="${o}"]`);h||(h=document.createElement("meta"),h.setAttribute(d,o),document.head.appendChild(h)),h.setAttribute("content",u)};if(a("description",t),a("og:title",e,!0),a("og:description",t,!0),a("og:type",s,!0),a("og:image",r,!0),a("twitter:title",e),a("twitter:description",t),a("twitter:image",r),i&&a("robots","noindex, nofollow"),n){let o=document.querySelector('link[rel="canonical"]');o||(o=document.createElement("link"),o.setAttribute("rel","canonical"),document.head.appendChild(o)),o.setAttribute("href",`${window.location.origin}${n}`)}return()=>{document.title="TableCrowd | Where Founders Connect"}},[e,t,n,r,s,i]),null}function OA({data:e}){return y.useEffect(()=>{const t=Array.isArray(e)?e:[e],n=[];return t.forEach((r,s)=>{const i=document.createElement("script");i.type="application/ld+json",i.id=`structured-data-${r["@type"]}-${s}`;const a={"@context":"https://schema.org",...oU(r)};i.textContent=JSON.stringify(a,null,2),document.head.appendChild(i),n.push(i)}),()=>{n.forEach(r=>r.remove())}},[e]),null}function oU(e){return e["@type"]==="FAQPage"?{"@type":"FAQPage",mainEntity:e.mainEntity.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}:e["@type"]==="BreadcrumbList"?{"@type":"BreadcrumbList",itemListElement:e.itemListElement.map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name,item:t.url}))}:e}const lU={"@type":"Organization",name:"TableCrowd",description:"TableCrowd connects ambitious founders with investors, advisors, and opportunities through curated dinners, exclusive resources, and a private community.",url:"https://tablecrowd.com",email:"[email protected]",sameAs:[]};function Zw(e){const t=[],n=String(e||"");let r=n.indexOf(","),s=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const a=n.slice(s,r).trim();(a||!i)&&t.push(a),s=r+1,r=n.indexOf(",",s)}return t}function PA(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const uU=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cU=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dU={};function eE(e,t){return(dU.jsx?cU:uU).test(e)}const hU=/[ \t\n\f\r]/g;function fU(e){return typeof e=="object"?e.type==="text"?tE(e.value):!1:tE(e)}function tE(e){return e.replace(hU,"")===""}class yd{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}yd.prototype.normal={};yd.prototype.property={};yd.prototype.space=void 0;function DA(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new yd(n,r,t)}function Bc(e){return e.toLowerCase()}class ur{constructor(t,n){this.attribute=n,this.property=t}}ur.prototype.attribute="";ur.prototype.booleanish=!1;ur.prototype.boolean=!1;ur.prototype.commaOrSpaceSeparated=!1;ur.prototype.commaSeparated=!1;ur.prototype.defined=!1;ur.prototype.mustUseProperty=!1;ur.prototype.number=!1;ur.prototype.overloadedBoolean=!1;ur.prototype.property="";ur.prototype.spaceSeparated=!1;ur.prototype.space=void 0;let pU=0;const He=yo(),Xt=yo(),yy=yo(),se=yo(),bt=yo(),al=yo(),fr=yo();function yo(){return 2**++pU}const vy=Object.freeze(Object.defineProperty({__proto__:null,boolean:He,booleanish:Xt,commaOrSpaceSeparated:fr,commaSeparated:al,number:se,overloadedBoolean:yy,spaceSeparated:bt},Symbol.toStringTag,{value:"Module"})),dg=Object.keys(vy);class Cb extends ur{constructor(t,n,r,s){let i=-1;
vendor: 4,263 bytes, line 424
424if(super(t,n),nE(this,"space",s),typeof r=="number")for(;++i<dg.length;){const a=dg[i];nE(this,dg[i],(r&vy[a])===vy[a])}}}Cb.prototype.defined=!0;function nE(e,t,n){n&&(e[t]=n)}function Xl(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const i=new Cb(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Bc(r)]=r,n[Bc(i.attribute)]=r}return new yd(t,n,e.space)}const jA=Xl({properties:{ariaActiveDescendant:null,ariaAtomic:Xt,ariaAutoComplete:null,ariaBusy:Xt,ariaChecked:Xt,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:bt,ariaCurrent:null,ariaDescribedBy:bt,ariaDetails:null,ariaDisabled:Xt,ariaDropEffect:bt,ariaErrorMessage:null,ariaExpanded:Xt,ariaFlowTo:bt,ariaGrabbed:Xt,ariaHasPopup:null,ariaHidden:Xt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:bt,ariaLevel:se,ariaLive:null,ariaModal:Xt,ariaMultiLine:Xt,ariaMultiSelectable:Xt,ariaOrientation:null,ariaOwns:bt,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:Xt,ariaReadOnly:Xt,ariaRelevant:null,ariaRequired:Xt,ariaRoleDescription:bt,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:Xt,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function LA(e,t){return t in e?e[t]:t}function MA(e,t){return LA(e,t.toLowerCase())}const mU=Xl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:al,acceptCharset:bt,accessKey:bt,action:null,allow:null,allowFullScreen:He,allowPaymentRequest:He,allowUserMedia:He,alt:null,as:null,async:He,autoCapitalize:null,autoComplete:bt,autoFocus:He,autoPlay:He,blocking:bt,capture:null,charSet:null,checked:He,cite:null,className:bt,cols:se,colSpan:null,content:null,contentEditable:Xt,controls:He,controlsList:bt,coords:se|al,crossOrigin:null,data:null,dateTime:null,decoding:null,default:He,defer:He,dir:null,dirName:null,disabled:He,download:yy,draggable:Xt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:He,formTarget:null,headers:bt,height:se,hidden:yy,high:se,href:null,hrefLang:null,htmlFor:bt,httpEquiv:bt,id:null,imageSizes:null,imageSrcSet:null,inert:He,inputMode:null,integrity:null,is:null,isMap:He,itemId:null,itemProp:bt,itemRef:bt,itemScope:He,itemType:bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:He,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:He,muted:He,name:null,nonce:null,noModule:He,noValidate:He,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:He,optimum:se,pattern:null,ping:bt,placeholder:null,playsInl
424ine:He,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:He,referrerPolicy:null,rel:bt,required:He,reversed:He,rows:se,rowSpan:se,sandbox:bt,scope:null,scoped:He,seamless:He,selected:He,shadowRootClonable:He,shadowRootDelegatesFocus:He,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:Xt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:He,useMap:null,value:Xt,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:bt,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:He,declare:He,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:He,noHref:He,noShade:He,noWrap:He,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:Xt,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:He,disableRemotePlayback:He,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:MA}),gU=Xl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
424-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:fr,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:bt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:He,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:al,g2:al,glyphName:al,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:fr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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,on
vendor: 5,316 bytes, lines 424-425
424Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fr,rev:fr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fr,requiredFeatures:fr,requiredFonts:fr,requiredFormats:fr,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:fr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fr,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:LA}),FA=Xl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),BA=Xl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:MA}),UA=Xl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),yU={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"},vU=/[A-Z]/g,rE=/-[a-z]/g,bU=/^data[-\w.:]+$/i;function Vp(e,t){const n=Bc(t);let r=t,s=ur;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&bU.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(rE,wU);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!rE.test(i)){let a=i.replace(vU,xU);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}s=Cb}return new s(r,t)}function xU(e){return"-"+e.toLowerCase()}function wU(e){return e.charAt(1).toUpperCase()}const vd=DA([jA,mU,FA,BA,UA],"html"),Ea=DA([jA,gU,FA,BA,UA],"svg");function sE(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function HA(e){return e.join(" ").trim()}var kb={},iE=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,EU=/\n/g,_U=/^\s*/,TU=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,SU=/^:\s*/,CU=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,kU=/^[;\s]*/,NU=/^\s+|\s+$/g,AU=`
425`,aE="/",oE="*",Oa="",RU="comment",IU="declaration";function OU(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(w){var m=w.match(EU);m&&(n+=m.length);var x=w.lastIndexOf(AU);r=~x?w.length-x:r+w.length}function i(){var w={line:n,column:r};return function(m){return m.position=new a(w),c(),m}}function a(w){this.start=w,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function o(w){var m=new Error(t.source+":"+n+":"+r+": "+w);if(m.reason=w,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function u(w){var m=w.exec(e);if(m){var x=m[0];return s(x),e=e.slice(x.length),m}}function c(){u(_U)}function d(w){var m;for(w=w||[];m=h();)m!==!1&&w.push(m);return w}function h(){var w=i();if(!(aE!=e.charAt(0)||oE!=e.charAt(1))){for(var m=2;Oa!=e.charAt(m)&&(oE!=e.charAt(m)||aE!=e.charAt(m+1));)++m;if(m+=2,Oa===e.charAt(m-1))return o("End of comment missing");var x=e.slice(2,m-2);return r+=2,s(x),e=e.slice(m),r+=2,w({type:RU,comment:x})}}function p(){var w=i(),m=u(TU);if(m){if(h(),!u(SU))return o("property missing ':'");var x=u(CU),v=w({type:IU,property:lE(m[0].replace(iE,Oa)),value:x?lE(x[0].replace(iE,Oa)):Oa});return u(kU),v}}function f(){var w=[];d(w);for(var m;m=p();)m!==!1&&(w.push(m),d(w));return w}return c(),f()}function lE(e){return e?e.replace(NU,Oa):Oa}
vendor: 1,787 bytes, line 425
425var PU=OU,DU=zh&&zh.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kb,"__esModule",{value:!0});kb.default=LU;const jU=DU(PU);function LU(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,jU.default)(e),s=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:a,value:o}=i;s?t(a,o,i):o&&(n=n||{},n[a]=o)}),n}var Wp={};Object.defineProperty(Wp,"__esModule",{value:!0});Wp.camelCase=void 0;var MU=/^--[a-zA-Z0-9_-]+$/,FU=/-([a-z])/g,BU=/^[^-]+$/,UU=/^-(webkit|moz|ms|o|khtml)-/,HU=/^-(ms)-/,$U=function(e){return!e||BU.test(e)||MU.test(e)},zU=function(e,t){return t.toUpperCase()},uE=function(e,t){return"".concat(t,"-")},VU=function(e,t){return t===void 0&&(t={}),$U(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(HU,uE):e=e.replace(UU,uE),e.replace(FU,zU))};Wp.camelCase=VU;var WU=zh&&zh.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},qU=WU(kb),YU=Wp;function by(e,t){var n={};return!e||typeof e!="string"||(0,qU.default)(e,function(r,s){r&&s&&(n[(0,YU.camelCase)(r,t)]=s)}),n}by.default=by;var KU=by;const GU=Gf(KU),qp=$A("end"),qs=$A("start");function $A(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 QU(e){const t=qs(e),n=qp(e);if(t&&n)return{start:t,end:n}}function Gu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cE(e.position):"start"in e||"end"in e?cE(e):"line"in e||"column"in e?xy(e):""}function xy(e){return dE(e&&e.line)+":"+dE(e&&e.column)}function cE(e){return xy(e&&e.start)+"-"+xy(e&&e.end)}function dE(e){return e&&typeof e=="number"?e:1}
vendor: 1,921 bytes, line 425
425class jn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let s="",i={},a=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?s=t:!i.cause&&t&&(a=!0,s=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?i.ruleId=r:(i.source=r.slice(0,u),i.ruleId=r.slice(u+1))}if(!i.place&&i.ancestors&&i.ancestors){const u=i.ancestors[i.ancestors.length-1];u&&(i.place=u.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=o?o.line:void 0,this.name=Gu(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}jn.prototype.file="";jn.prototype.name="";jn.prototype.reason="";jn.prototype.message="";jn.prototype.stack="";jn.prototype.column=void 0;jn.prototype.line=void 0;jn.prototype.ancestors=void 0;jn.prototype.cause=void 0;jn.prototype.fatal=void 0;jn.prototype.place=void 0;jn.prototype.ruleId=void 0;jn.prototype.source=void 0;const Nb={}.hasOwnProperty,XU=new Map,JU=/[A-Z]/g,ZU=new Set(["table","tbody","thead","tfoot","tr"]),e7=new Set(["td","th"]),zA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function t7(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=u7(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,302 bytes, line 425
425if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=l7(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"?Ea:vd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=VA(s,e,void 0);return i&&typeof i!="string"?i:s.create(e,s.Fragment,{children:i||void 0},void 0)}function VA(e,t,n){if(t.type==="element")return n7(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return r7(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return i7(e,t,n);if(t.type==="mdxjsEsm")return s7(e,t);if(t.type==="root")return a7(e,t,n);if(t.type==="text")return o7(e,t)}function n7(e,t,n){const r=e.schema;let s=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(s=Ea,e.schema=s),e.ancestors.push(t);const i=qA(e,t.tagName,!1),a=c7(e,t);let o=Rb(e,t);return ZU.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!fU(u):!0})),WA(e,a,i,t),Ab(a,o),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}function r7(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)}Uc(e,t.position)}function s7(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Uc(e,t.position)}function i7(e,t,n){const r=e.schema;let s=r;t.name==="svg"&&r.space==="html"&&(s=Ea,e.schema=s),e.ancestors.push(t);const i=t.name===null?e.Fragment:qA(e,t.name,!0),a=d7(e,t),o=Rb(e,t);return WA(e,a,i,t),Ab(a,o),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}function a7(e,t,n){const r={};return Ab(r,Rb(e,t)),e.create(t,e.Fragment,r,n)}function o7(e,t){return t.value}function WA(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ab(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function l7(e,t,n){return r;function r(s,i,a,o){const c=Array.isArray(a.children)?n:t;return o?c(i,a,o):c(i,a)}}function u7(e,t){return n;function n(r,s,i,a){const o=Array.isArray(i.children),u=qs(r);return t(s,i,a,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function c7(e,t){const n={};let r,s;for(s in t.properties)if(s!=="children"&&Nb.call(t.properties,s)){const i=h7(e,s,t.properties[s]);if(i){const[a,o]=i;e.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&e7.has(t.tagName)?r=o:n[a]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function d7(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const a=i.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Uc(e,t.position);else{const s=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else Uc(e,t.position);else i=r.value===null?!0:r.value;n[s]=i}return n}function Rb(e,t){const n=[];let r=-1;const s=e.passKeys?new Map:XU;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const u=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(u){const c=s.get(u)||0;a=u+"-"+c,s.set(u,c+1)}}const o=VA(e,i,a);o!==void 0&&n.push(o)}return n}function h7(e,t,n){const r=Vp(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?PA(n):HA(n)),r.property==="style"){let s=typeof n=="object"?n:f7(e,String(n));return e.stylePropertyNameCase==="css"&&(s=p7(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&r.space?yU[r.property]||r.property:r.attribute,n]}}function f7(e,t){try{return GU(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,s=new jn("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=zA+"#cannot-parse-style-attribute",s}}function qA(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let i=-1,a;for(;++i<s.length;){const o=eE(s[i])?{type:"Identifier",name:s[i]}:{type:"Literal",value:s[i]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=a}else r=eE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const s=r.value;return Nb.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(r);Uc(e)}function Uc(e,t){const n=new jn("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=zA+"#cannot-handle-mdx-estrees-without-createevaluater",n}function p7(e){const t={};let n;for(n in e)Nb.call(e,n)&&(t[m7(n)]=e[n]);return t}function m7(e){let t=e.replace(JU,g7);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function g7(e){return"-"+e.toLowerCase()}const hg={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"]},y7={};function v7(e,t){const n=y7,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return YA(e,r,s)}function YA(e,t,n){if(b7(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 hE(e.children,t,n)}return Array.isArray(e)?hE(e,t,n):""}function hE(e,t,n){const r=[];let s=-1;for(;++s<e.length;)r[s]=YA(e[s],t,n);return r.join("")}function b7(e){return!!(e&&typeof e=="object")}const fE=document.createElement("i");function Ib(e){const t="&"+e+";";fE.innerHTML=t;const n=fE.textContent;
vendor: 11,487 bytes, line 425
425return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function $s(e,t,n,r){const s=e.length;let i=0,a;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function Fr(e,t){return e.length>0?($s(e,e.length,0,t),e):t}const pE={}.hasOwnProperty;function x7(e){const t={};let n=-1;for(;++n<e.length;)w7(t,e[n]);return t}function w7(e,t){let n;for(n in t){const s=(pE.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;if(i)for(a in i){pE.call(s,a)||(s[a]=[]);const o=i[a];E7(s[a],Array.isArray(o)?o:o?[o]:[])}}}function E7(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);$s(e,0,0,r)}function KA(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 ol(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rs=_a(/[A-Za-z]/),Er=_a(/[\dA-Za-z]/),_7=_a(/[#-'*+\--9=?A-Z^-~]/);function wy(e){return e!==null&&(e<32||e===127)}const Ey=_a(/\d/),T7=_a(/[\dA-Fa-f]/),S7=_a(/[!-/:-@[-`{-~]/);function Pe(e){return e!==null&&e<-2}function lr(e){return e!==null&&(e<0||e===32)}function ut(e){return e===-2||e===-1||e===32}const C7=_a(new RegExp("\\p{P}|\\p{S}","u")),k7=_a(/\s/);function _a(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Jl(e){const t=[];let n=-1,r=0,s=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(i===37&&Er(e.charCodeAt(n+1))&&Er(e.charCodeAt(n+2)))s=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(a=String.fromCharCode(i,o),s=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+s+1,a=""),s&&(n+=s,s=0)}return t.join("")+e.slice(r)}function Et(e,t,n,r){const s=r?r-1:Number.POSITIVE_INFINITY;let i=0;return a;function a(u){return ut(u)?(e.enter(n),o(u)):t(u)}function o(u){return ut(u)&&i++<s?(e.consume(u),o):(e.exit(n),t(u))}}const N7={tokenize:A7};function A7(e){const t=e.attempt(this.parser.constructs.contentInitial,r,s);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Et(e,t,"linePrefix")}function s(o){return e.enter("paragraph"),i(o)}function i(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Pe(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),a)}}const R7={tokenize:I7},mE={tokenize:O7};function I7(e){const t=this,n=[];let r=0,s,i,a;return o;function o(E){if(r<n.length){const T=n[r];return t.containerState=T[1],e.attempt(T[0].continuation,u,c)(E)}return c(E)}function u(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&b();const T=t.events.length;let C=T,_;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){_=t.events[C][1].end;break}v(r);let k=T;for(;k<t.events.length;)t.events[k][1].end={..._},k++;return $s(t.events,C+1,0,t.events.slice(T)),t.events.length=k,c(E)}return o(E)}function c(E){if(r===n.length){if(!s)return p(E);if(s.currentConstruct&&s.currentConstruct.concrete)return w(E);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(mE,d,h)(E)}function d(E){return s&&b(),v(r),p(E)}function h(E){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,w(E)}function p(E){return t.containerState={},e.attempt(mE,f,w)(E)}function f(E){return r++,n.push([t.currentConstruct,t.containerState]),p(E)}function w(E){if(E===null){s&&b(),v(0),e.consume(E);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:i}),m(E)}function m(E){if(E===null){x(e.exit("chunkFlow"),!0),v(0),e.consume(E);return}return Pe(E)?(e.consume(E),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(E),m)}function x(E,T){const C=t.sliceStream(E);if(T&&C.push(null),E.previous=i,i&&(i.next=E),i=E,s.defineSkip(E.start),s.write(C),t.parser.lazy[E.start.line]){let _=s.events.length;for(;_--;)if(s.events[_][1].start.offset<a&&(!s.events[_][1].end||s.events[_][1].end.offset>a))return;const k=t.events.length;let P=k,M,F;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(M){F=t.events[P][1].end;break}M=!0}for(v(r),_=k;_<t.events.length;)t.events[_][1].end={...F},_++;$s(t.events,P+1,0,t.events.slice(k)),t.events.length=_}}function v(E){let T=n.length;for(;T-- >E;){const C=n[T];t.containerState=C[1],C[0].exit.call(t,e)}n.length=E}function b(){s.write([null]),i=void 0,s=void 0,t.containerState._closeFlow=void 0}}function O7(e,t,n){return Et(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function gE(e){if(e===null||lr(e)||k7(e))return 1;if(C7(e))return 2}function Ob(e,t,n){const r=[];let s=-1;for(;++s<e.length;){const i=e[s].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const _y={name:"attention",resolveAll:P7,tokenize:D7};function P7(e,t){let n=-1,r,s,i,a,o,u,c,d;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;u=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 h={...e[r][1].end},p={...e[n][1].start};yE(h,-u),yE(p,u),a={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},s={type:u>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[n][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Fr(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Fr(c,[["enter",s,t],["enter",a,t],["exit",a,t],["enter",i,t]]),c=Fr(c,Ob(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Fr(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=Fr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,$s(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function D7(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,s=gE(r);let i;return a;function a(u){return i=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===i)return e.consume(u),o;const c=e.exit("attentionSequence"),d=gE(u),h=!d||d===2&&s||n.includes(u),p=!s||s===2&&d||n.includes(r);return c._open=!!(i===42?h:h&&(s||!p)),c._close=!!(i===42?p:p&&(d||!h)),t(u)}}function yE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const j7={name:"autolink",tokenize:L7};function L7(e,t,n){let r=0;return s;function s(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return Rs(f)?(e.consume(f),a):f===64?n(f):c(f)}function a(f){return f===43||f===45||f===46||Er(f)?(r=1,o(f)):c(f)}function o(f){return f===58?(e.consume(f),r=0,u):(f===43||f===45||f===46||Er(f))&&r++<32?(e.consume(f),o):(r=0,c(f))}function u(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||wy(f)?n(f):(e.consume(f),u)}function c(f){return f===64?(e.consume(f),d):_7(f)?(e.consume(f),c):n(f)}function d(f){return Er(f)?h(f):n(f)}function h(f){return f===46?(e.consume(f),r=0,d):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||Er(f))&&r++<63){const w=f===45?p:h;return e.consume(f),w}return n(f)}}const Yp={partial:!0,tokenize:M7};function M7(e,t,n){return r;function r(i){return ut(i)?Et(e,s,"linePrefix")(i):s(i)}function s(i){return i===null||Pe(i)?t(i):n(i)}}const GA={continuation:{tokenize:B7},exit:U7,name:"blockQuote",tokenize:F7};function F7(e,t,n){const r=this;return s;function s(a){if(a===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),i}return n(a)}function i(a){return ut(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function B7(e,t,n){const r=this;return s;function s(a){return ut(a)?Et(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):i(a)}function i(a){return e.attempt(GA,t,n)(a)}}function U7(e){e.exit("blockQuote")}const QA={name:"characterEscape",tokenize:H7};function H7(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),s}function s(i){return S7(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const XA={name:"characterReference",tokenize:$7};function $7(e,t,n){const r=this;let s=0,i,a;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,a=Er,d(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=T7,d):(e.enter("characterReferenceValue"),i=7,a=Ey,d(h))}function d(h){if(h===59&&s){const p=e.exit("characterReferenceValue");return a===Er&&!Ib(r.sliceSerialize(p))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(h)&&s++<i?(e.consume(h),d):n(h)}}const vE={partial:!0,tokenize:V7},bE={concrete:!0,name:"codeFenced",tokenize:z7};function z7(e,t,n){const r=this,s={partial:!0,tokenize:C};let i=0,a=0,o;return u;function u(_){return c(_)}function c(_){const k=r.events[r.events.length-1];return i=k&&k[1].type==="linePrefix"?k[2].sliceSerialize(k[1],!0).length:0,o=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(_)}function d(_){return _===o?(a++,e.consume(_),d):a<3?n(_):(e.exit("codeFencedFenceSequence"),ut(_)?Et(e,h,"whitespace")(_):h(_))}function h(_){return _===null||Pe(_)?(e.exit("codeFencedFence"),r.interrupt?t(_):e.check(vE,m,T)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||Pe(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(_)):ut(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,f,"whitespace")(_)):_===96&&_===o?n(_):(e.consume(_),p)}
vendor: 6,572 bytes, line 425
425function f(_){return _===null||Pe(_)?h(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(_))}function w(_){return _===null||Pe(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(_)):_===96&&_===o?n(_):(e.consume(_),w)}function m(_){return e.attempt(s,T,x)(_)}function x(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),v}function v(_){return i>0&&ut(_)?Et(e,b,"linePrefix",i+1)(_):b(_)}function b(_){return _===null||Pe(_)?e.check(vE,m,T)(_):(e.enter("codeFlowValue"),E(_))}function E(_){return _===null||Pe(_)?(e.exit("codeFlowValue"),b(_)):(e.consume(_),E)}function T(_){return e.exit("codeFenced"),t(_)}function C(_,k,P){let M=0;return F;function F(X){return _.enter("lineEnding"),_.consume(X),_.exit("lineEnding"),U}function U(X){return _.enter("codeFencedFence"),ut(X)?Et(_,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):j(X)}function j(X){return X===o?(_.enter("codeFencedFenceSequence"),Y(X)):P(X)}function Y(X){return X===o?(M++,_.consume(X),Y):M>=a?(_.exit("codeFencedFenceSequence"),ut(X)?Et(_,z,"whitespace")(X):z(X)):P(X)}function z(X){return X===null||Pe(X)?(_.exit("codeFencedFence"),k(X)):P(X)}}}function V7(e,t,n){const r=this;return s;function s(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i)}function i(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const fg={name:"codeIndented",tokenize:q7},W7={partial:!0,tokenize:Y7};function q7(e,t,n){const r=this;return s;function s(c){return e.enter("codeIndented"),Et(e,i,"linePrefix",5)(c)}function i(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?u(c):Pe(c)?e.attempt(W7,a,u)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||Pe(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function u(c){return e.exit("codeIndented"),t(c)}}function Y7(e,t,n){const r=this;return s;function s(a){return r.parser.lazy[r.now().line]?n(a):Pe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):Et(e,i,"linePrefix",5)(a)}function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):Pe(a)?s(a):n(a)}}const K7={name:"codeText",previous:Q7,resolve:G7,tokenize:X7};function G7(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 Q7(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function X7(e,t,n){let r=0,s,i;return a;function a(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),r++,o):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(i=e.enter("codeTextSequence"),s=0,d(h)):Pe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||Pe(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),c)}function d(h){return h===96?(e.consume(h),s++,d):s===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(i.type="codeTextData",c(h))}}class J7{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 i=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&vu(this.left,r),i.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),vu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vu(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);vu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vu(this.left,n.reverse())}}}function vu(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 JA(e){const t={};let n=-1,r,s,i,a,o,u,c;const d=new J7(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,i=0,i<u.length&&u[i][1].type==="lineEndingBlank"&&(i+=2),i<u.length&&u[i][1].type==="content"))for(;++i<u.length&&u[i][1].type!=="content";)u[i][1].type==="chunkText"&&(u[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Z7(d,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,s=void 0;i--;)if(a=d.get(i),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(s&&(d.get(s)[1].type="lineEndingBlank"),a[1].type="lineEnding",s=i);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;s&&(r[1].end={...d.get(s)[1].start},o=d.slice(s,n),o.unshift(r),d.splice(s,n-s+1,o))}}return $s(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function Z7(e,t){const n=e.get(t)[1],r=e.get(t)[2];let s=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,u=[],c={};let d,h,p=-1,f=n,w=0,m=0;const x=[m];for(;f;){for(;e.get(++s)[1]!==f;);i.push(s),f._tokenizer||(d=r.sliceStream(f),f.next||d.push(null),h&&a.defineSki
vendor: 22,802 bytes, line 425
425p(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(m=p+1,x.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):x.pop(),p=x.length;p--;){const v=o.slice(x[p],x[p+1]),b=i.pop();u.push([b,b+v.length-1]),e.splice(b,2,v)}for(u.reverse(),p=-1;++p<u.length;)c[w+u[p][0]]=w+u[p][1],w+=u[p][1]-u[p][0]-1;return c}const eH={resolve:nH,tokenize:rH},tH={partial:!0,tokenize:sH};function nH(e){return JA(e),e}function rH(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(o)}function s(o){return o===null?i(o):Pe(o)?e.check(tH,a,i)(o):(e.consume(o),s)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function a(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function sH(e,t,n){const r=this;return s;function s(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Et(e,i,"linePrefix")}function i(a){if(a===null||Pe(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function ZA(e,t,n,r,s,i,a,o,u){const c=u||Number.POSITIVE_INFINITY;let d=0;return h;function h(v){return v===60?(e.enter(r),e.enter(s),e.enter(i),e.consume(v),e.exit(i),p):v===null||v===32||v===41||wy(v)?n(v):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),m(v))}function p(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(s),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(v))}function f(v){return v===62?(e.exit("chunkString"),e.exit(o),p(v)):v===null||v===60||Pe(v)?n(v):(e.consume(v),v===92?w:f)}function w(v){return v===60||v===62||v===92?(e.consume(v),f):f(v)}function m(v){return!d&&(v===null||v===41||lr(v))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(v)):d<c&&v===40?(e.consume(v),d++,m):v===41?(e.consume(v),d--,m):v===null||v===32||v===40||wy(v)?n(v):(e.consume(v),v===92?x:m)}function x(v){return v===40||v===41||v===92?(e.consume(v),m):m(v)}}function eR(e,t,n,r,s,i){const a=this;let o=0,u;return c;function c(f){return e.enter(r),e.enter(s),e.consume(f),e.exit(s),e.enter(i),d}function d(f){return o>999||f===null||f===91||f===93&&!u||f===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):f===93?(e.exit(i),e.enter(s),e.consume(f),e.exit(s),e.exit(r),t):Pe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===null||f===91||f===93||Pe(f)||o++>999?(e.exit("chunkString"),d(f)):(e.consume(f),u||(u=!ut(f)),f===92?p:h)}function p(f){return f===91||f===92||f===93?(e.consume(f),o++,h):h(f)}}function tR(e,t,n,r,s,i){let a;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(s),e.consume(p),e.exit(s),a=p===40?41:p,u):n(p)}function u(p){return p===a?(e.enter(s),e.consume(p),e.exit(s),e.exit(r),t):(e.enter(i),c(p))}function c(p){return p===a?(e.exit(i),u(a)):p===null?n(p):Pe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Et(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===a||p===null||Pe(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?h:d)}function h(p){return p===a||p===92?(e.consume(p),d):d(p)}}function Qu(e,t){let n;return r;function r(s){return Pe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,r):ut(s)?Et(e,r,n?"linePrefix":"lineSuffix")(s):t(s)}}const iH={name:"definition",tokenize:oH},aH={partial:!0,tokenize:lH};function oH(e,t,n){const r=this;let s;return i;function i(f){return e.enter("definition"),a(f)}function a(f){return eR.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return s=ol(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),u):n(f)}function u(f){return lr(f)?Qu(e,c)(f):c(f)}function c(f){return ZA(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function d(f){return e.attempt(aH,h,h)(f)}function h(f){return ut(f)?Et(e,p,"whitespace")(f):p(f)}function p(f){return f===null||Pe(f)?(e.exit("definition"),r.parser.defined.push(s),t(f)):n(f)}}function lH(e,t,n){return r;function r(o){return lr(o)?Qu(e,s)(o):n(o)}function s(o){return tR(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return ut(o)?Et(e,a,"whitespace")(o):a(o)}function a(o){return o===null||Pe(o)?t(o):n(o)}}const uH={name:"hardBreakEscape",tokenize:cH};function cH(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),s}function s(i){return Pe(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const dH={name:"headingAtx",resolve:hH,tokenize:fH};function hH(e,t){let n=e.length-2,r=3,s,i;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},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},$s(e,r,n-r+1,[["enter",s,t],["enter",i,t],["exit",i,t],["exit",s,t]])),e}function fH(e,t,n){let r=0;return s;function s(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&r++<6?(e.consume(d),a):d===null||lr(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||Pe(d)?(e.exit("atxHeading"),t(d)):ut(d)?Et(e,o,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),o(d))}function c(d){return d===null||d===35||lr(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),c)}}const pH=["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"],xE=["pre","script","style","textarea"],mH={concrete:!0,name:"htmlFlow",resolveTo:vH,tokenize:bH},gH={partial:!0,tokenize:wH},yH={partial:!0,tokenize:xH};function vH(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 bH(e,t,n){const r=this;let s,i,a,o,u;return c;function c(R){return d(R)}function d(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),h}function h(R){return R===33?(e.consume(R),p):R===47?(e.consume(R),i=!0,m):R===63?(e.consume(R),s=3,r.interrupt?t:S):Rs(R)?(e.consume(R),a=String.fromCharCode(R),x):n(R)}function p(R){return R===45?(e.consume(R),s=2,f):R===91?(e.consume(R),s=5,o=0,w):Rs(R)?(e.consume(R),s=4,r.interrupt?t:S):n(R)}function f(R){return R===45?(e.consume(R),r.interrupt?t:S):n(R)}function w(R){const pe="CDATA[";return R===pe.charCodeAt(o++)?(e.consume(R),o===pe.length?r.interrupt?t:j:w):n(R)}function m(R){return Rs(R)?(e.consume(R),a=String.fromCharCode(R),x):n(R)}function x(R){if(R===null||R===47||R===62||lr(R)){const pe=R===47,je=a.toLowerCase();return!pe&&!i&&xE.includes(je)?(s=1,r.interrupt?t(R):j(R)):pH.includes(a.toLowerCase())?(s=6,pe?(e.consume(R),v):r.interrupt?t(R):j(R)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?b(R):E(R))}return R===45||Er(R)?(e.consume(R),a+=String.fromCharCode(R),x):n(R)}function v(R){return R===62?(e.consume(R),r.interrupt?t:j):n(R)}function b(R){return ut(R)?(e.consume(R),b):F(R)}function E(R){return R===47?(e.consume(R),F):R===58||R===95||Rs(R)?(e.consume(R),T):ut(R)?(e.consume(R),E):F(R)}function T(R){return R===45||R===46||R===58||R===95||Er(R)?(e.consume(R),T):C(R)}function C(R){return R===61?(e.consume(R),_):ut(R)?(e.consume(R),C):E(R)}function _(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),u=R,k):ut(R)?(e.consume(R),_):P(R)}function k(R){return R===u?(e.consume(R),u=null,M):R===null||Pe(R)?n(R):(e.consume(R),k)}function P(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||lr(R)?C(R):(e.consume(R),P)}function M(R){return R===47||R===62||ut(R)?E(R):n(R)}function F(R){return R===62?(e.consume(R),U):n(R)}function U(R){return R===null||Pe(R)?j(R):ut(R)?(e.consume(R),U):n(R)}function j(R){return R===45&&s===2?(e.consume(R),Q):R===60&&s===1?(e.consume(R),J):R===62&&s===4?(e.consume(R),ue):R===63&&s===3?(e.consume(R),S):R===93&&s===5?(e.consume(R),V):Pe(R)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(gH,te,Y)(R)):R===null||Pe(R)?(e.exit("htmlFlowData"),Y(R)):(e.consume(R),j)}function Y(R){return e.check(yH,z,te)(R)}function z(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),X}function X(R){return R===null||Pe(R)?Y(R):(e.enter("htmlFlowData"),j(R))}function Q(R){return R===45?(e.consume(R),S):j(R)}function J(R){return R===47?(e.consume(R),a="",$):j(R)}function $(R){if(R===62){const pe=a.toLowerCase();return xE.includes(pe)?(e.consume(R),ue):j(R)}return Rs(R)&&a.length<8?(e.consume(R),a+=String.fromCharCode(R),$):j(R)}function V(R){return R===93?(e.consume(R),S):j(R)}function S(R){return R===62?(e.consume(R),ue):R===45&&s===2?(e.consume(R),S):j(R)}function ue(R){return R===null||Pe(R)?(e.exit("htmlFlowData"),te(R)):(e.consume(R),ue)}function te(R){return e.exit("htmlFlow"),t(R)}}function xH(e,t,n){const r=this;return s;function s(a){return Pe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):n(a)}function i(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function wH(e,t,n){return r;function r(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Yp,t,n)}}const EH={name:"htmlText",tokenize:_H};function _H(e,t,n){const r=this;let s,i,a;return o;function o(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),u}function u(S){return S===33?(e.consume(S),c):S===47?(e.consume(S),C):S===63?(e.consume(S),E):Rs(S)?(e.consume(S),P):n(S)}function c(S){return S===45?(e.consume(S),d):S===91?(e.consume(S),i=0,w):Rs(S)?(e.consume(S),b):n(S)}function d(S){return S===45?(e.consume(S),f):n(S)}function h(S){return S===null?n(S):S===45?(e.consume(S),p):Pe(S)?(a=h,J(S)):(e.consume(S),h)}function p(S){return S===45?(e.consume(S),f):h(S)}function f(S){return S===62?Q(S):S===45?p(S):h(S)}function w(S){const ue="CDATA[";return S===ue.charCodeAt(i++)?(e.consume(S),i===ue.length?m:w):n(S)}function m(S){return S===null?n(S):S===93?(e.consume(S),x):Pe(S)?(a=m,J(S)):(e.consume(S),m)}function x(S){return S===93?(e.consume(S),v):m(S)}function v(S){return S===62?Q(S):S===93?(e.consume(S),v):m(S)}function b(S){return S===null||S===62?Q(S):Pe(S)?(a=b,J(S)):(e.consume(S),b)}function E(S){return S===null?n(S):S===63?(e.consume(S),T):Pe(S)?(a=E,J(S)):(e.consume(S),E)}function T(S){return S===62?Q(S):E(S)}function C(S){return Rs(S)?(e.consume(S),_):n(S)}function _(S){return S===45||Er(S)?(e.consume(S),_):k(S)}function k(S){return Pe(S)?(a=k,J(S)):ut(S)?(e.consume(S),k):Q(S)}function P(S){return S===45||Er(S)?(e.consume(S),P):S===47||S===62||lr(S)?M(S):n(S)}function M(S){return S===47?(e.consume(S),Q):S===58||S===95||Rs(S)?(e.consume(S),F):Pe(S)?(a=M,J(S)):ut(S)?(e.consume(S),M):Q(S)}function F(S){return S===45||S===46||S===58||S===95||Er(S)?(e.consume(S),F):U(S)}function U(S){return S===61?(e.consume(S),j):Pe(S)?(a=U,J(S)):ut(S)?(e.consume(S),U):M(S)}function j(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),s=S,Y):Pe(S)?(a=j,J(S)):ut(S)?(e.consume(S),j):(e.consume(S),z)}function Y(S){return S===s?(e.consume(S),s=void 0,X):S===null?n(S):Pe(S)?(a=Y,J(S)):(e.consume(S),Y)}function z(S){return S===null||S===34||S===39||S===60||S===61||S===96?n(S):S===47||S===62||lr(S)?M(S):(e.consume(S),z)}function X(S){return S===47||S===62||lr(S)?M(S):n(S)}function Q(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),t):n(S)}function J(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),$}function $(S){return ut(S)?Et(e,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):V(S)}function V(S){return e.enter("htmlTextData"),a(S)}}const Pb={name:"labelEnd",resolveAll:kH,resolveTo:NH,tokenize:AH},TH={tokenize:RH},SH={tokenize:IH},CH={tokenize:OH};function kH(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&&$s(e,0,e.length,n),e}function NH(e,t){let n=e.length,r=0,s,i,a,o;for(;n--;)if(s=e[n][1],i){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(i=n,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(a=n);const u={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[a][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",u,t],["enter",c,t]],o=Fr(o,e.slice(i+1,i+r+3)),o=Fr(o,[["enter",d,t]]),o=Fr(o,Ob(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=Fr(o,[["exit",d,t],e[a-2],e[a-1],["exit",c,t]]),o=Fr(o,e.slice(a+1)),o=Fr(o,[["exit",u,t]]),$s(e,i,e.length,o),e}function AH(e,t,n){const r=this;let s=r.events.length,i,a;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){i=r.events[s][1];break}return o;function o(p){return i?i._inactive?h(p):(a=r.parser.defined.includes(ol(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(TH,d,a?d:h)(p):p===91?e.attempt(SH,d,a?c:h)(p):a?d(p):h(p)}function c(p){return e.attempt(CH,d,h)(p)}function d(p){return t(p)}function h(p){return i._balanced=!0,n(p)}}function RH(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),s}function s(h){return lr(h)?Qu(e,i)(h):i(h)}function i(h){return h===41?d(h):ZA(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function a(h){return lr(h)?Qu(e,u)(h):d(h)}function o(h){return n(h)}function u(h){return h===34||h===39||h===40?tR(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function c(h){return lr(h)?Qu(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function IH(e,t,n){const r=this;return s;function s(o){return eR.call(r,e,i,a,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(ol(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function a(o){return n(o)}}function OH(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),s}function s(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const PH={name:"labelStartImage",resolveAll:Pb.resolveAll,tokenize:DH};function DH(e,t,n){const r=this;return s;function s(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const jH={name:"labelStartLink",resolveAll:Pb.resolveAll,tokenize:LH};function LH(e,t,n){const r=this;return s;function s(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),i}function i(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const pg={name:"lineEnding",tokenize:MH};function MH(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Et(e,t,"linePrefix")}}const Mh={name:"thematicBreak",tokenize:FH};function FH(e,t,n){let r=0,s;return i;function i(c){return e.enter("thematicBreak"),a(c)}function a(c){return s=c,o(c)}function o(c){return c===s?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||Pe(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===s?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),ut(c)?Et(e,o,"whitespace")(c):o(c))}}const Qn={continuation:{tokenize:$H},exit:VH,name:"list",tokenize:HH},BH={partial:!0,tokenize:WH},UH={partial:!0,tokenize:zH};function HH(e,t,n){const r=this,s=r.events[r.events.length-1];let i=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,a=0;return o;function o(f){const w=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Ey(f)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Mh,n,c)(f):c(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return n(f)}function u(f){return Ey(f)&&++a<10?(e.consume(f),u):(!r.interrupt||a<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),c(f)):n(f)}function c(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Yp,r.interrupt?n:d,e.attempt(BH,p,h))}function d(f){return r.containerState.initialBlankLine=!0,i++,p(f)}function h(f){return ut(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function $H(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Yp,s,i);function s(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Et(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!ut(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(UH,t,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Et(e,e.attempt(Qn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function zH(e,t,n){const r=this;return Et(e,s,"listItemIndent",r.containerState.size+1);function s(i){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(i):n(i)}}function VH(e){e.exit(this.containerState.type)}function WH(e,t,n){const r=this;return Et(e,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(i){const a=r.events[r.events.length-1];return!ut(i)&&a&&a[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const wE={name:"setextUnderline",resolveTo:qH,tokenize:YH};function qH(e,t){let n=e.length,r,s,i;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),!i&&e[n][1].type==="definition"&&(i=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",i?(e.splice(s,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function YH(e,t,n){const r=this;let s;return i;function i(c){let d=r.events.length,h;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){h=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),s=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===s?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),ut(c)?Et(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||Pe(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const KH={tokenize:GH};function GH(e){const t=this,n=e.attempt(Yp,r,e.attempt(this.parser.constructs.flowInitial,s,Et(e,e.attempt(this.parser.constructs.flow,s,e.attempt(eH,s)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const QH={resolveAll:rR()},XH=nR("string"),JH=nR("text");function nR(e){return{resolveAll:rR(e==="text"?ZH:void 0),tokenize:t};function t(n){const r=this,s=this.parser.constructs[e],i=n.attempt(s,a,o);return a;function a(d){return c(d)?i(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),u}function u(d){return c(d)?(n.exit("data"),i(d)):(n.consume(d),u)}function c(d){if(d===null)return!0;const h=s[d];let p=-1;if(h)for(;++p<h.length;){const f=h[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function rR(e){return t;function t(n,r){let s=-1,i;for(;++s<=n.length;)i===void 0?n[s]&&n[s][1].type==="data"&&(i=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==i+2&&(n[i][1].end=n[s-1][1].end,n.splice(i+2,s-i-2),s=i+2),i=void 0);return e?e(n,r):n}}function ZH(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 i=s.length,a=-1,o=0,u;for(;i--;){const c=s[i];if(typeof c=="string"){for(a=c.length;
vendor: 4,840 bytes, lines 425-427
425c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)u=!0,o++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const c={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?a:r.start._bufferIndex+a,_index:r.start._index+i,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const e$={42:Qn,43:Qn,45:Qn,48:Qn,49:Qn,50:Qn,51:Qn,52:Qn,53:Qn,54:Qn,55:Qn,56:Qn,57:Qn,62:GA},t$={91:iH},n$={[-2]:fg,[-1]:fg,32:fg},r$={35:dH,42:Mh,45:[wE,Mh],60:mH,61:wE,95:Mh,96:bE,126:bE},s$={38:XA,92:QA},i$={[-5]:pg,[-4]:pg,[-3]:pg,33:PH,38:XA,42:_y,60:[j7,EH],91:jH,92:[uH,QA],93:Pb,95:_y,96:K7},a$={null:[_y,QH]},o$={null:[42,95]},l$={null:[]},u$=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:o$,contentInitial:t$,disable:l$,document:e$,flow:r$,flowInitial:n$,insideSpan:a$,string:s$,text:i$},Symbol.toStringTag,{value:"Module"}));function c$(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={},i=[];let a=[],o=[];const u={attempt:k(C),check:k(_),consume:b,enter:E,exit:T,interrupt:k(_,{interrupt:!0})},c={code:null,containerState:{},defineSkip:m,events:[],now:w,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:h};let d=t.tokenize.call(c,u);return t.resolveAll&&i.push(t),c;function h(U){return a=Fr(a,U),x(),a[a.length-1]!==null?[]:(P(t,0),c.events=Ob(i,c.events,c),c.events)}function p(U,j){return h$(f(U),j)}function f(U){return d$(a,U)}function w(){const{_bufferIndex:U,_index:j,line:Y,column:z,offset:X}=r;return{_bufferIndex:U,_index:j,line:Y,column:z,offset:X}}function m(U){s[U.line]=U.column,F()}function x(){let U;for(;r._index<a.length;){const j=a[r._index];if(typeof j=="string")for(U=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===U&&r._bufferIndex<j.length;)v(j.charCodeAt(r._bufferIndex));else v(j)}}function v(U){d=d(U)}function b(U){Pe(U)?(r.line++,r.column=1,r.offset+=U===-3?2:1,F()):U!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=U}function E(U,j){const Y=j||{};return Y.type=U,Y.start=w(),c.events.push(["enter",Y,c]),o.push(Y),Y}function T(U){const j=o.pop();return j.end=w(),c.events.push(["exit",j,c]),j}function C(U,j){P(U,j.from)}function _(U,j){j.restore()}function k(U,j){return Y;function Y(z,X,Q){let J,$,V,S;return Array.isArray(z)?te(z):"tokenize"in z?te([z]):ue(z);function ue(_e){return re;function re(we){const Le=we!==null&&_e[we],fe=we!==null&&_e.null,Ne=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(fe)?fe:fe?[fe]:[]];return te(Ne)(we)}}function te(_e){return J=_e,$=0,_e.length===0?Q:R(_e[$])}function R(_e){return re;function re(we){return S=M(),V=_e,_e.partial||(c.currentConstruct=_e),_e.name&&c.parser.constructs.disable.null.includes(_e.name)?je():_e.tokenize.call(j?Object.assign(Object.create(c),j):c,u,pe,je)(we)}}function pe(_e){return U(V,S),X}function je(_e){return S.restore(),++$<J.length?R(J[$]):Q}}}function P(U,j){U.resolveAll&&!i.includes(U)&&i.push(U),U.resolve&&$s(c.events,j,c.events.length-j,U.resolve(c.events.slice(j),c)),U.resolveTo&&(c.events=U.resolveTo(c.events,c))}function M(){const U=w(),j=c.previous,Y=c.currentConstruct,z=c.events.length,X=Array.from(o);return{from:z,restore:Q};function Q(){r=U,c.previous=j,c.currentConstruct=Y,c.events.length=z,o=X,F()}}function F(){r.line in s&&r.column<2&&(r.column=s[r.line],r.offset+=s[r.line]-1)}}function d$(e,t){const n=t.start._index,r=t.start._bufferIndex,s=t.end._index,i=t.end._bufferIndex;let a;if(n===s)a=[e[n].slice(r,i)];else{if(a=e.slice(n,s),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}i>0&&a.push(e[s].slice(0,i))}return a}function h$(e,t){let n=-1;const r=[];let s;for(;++n<e.length;){const i=e[n];let a;if(typeof i=="string")a=i;else switch(i){case-5:{a="\r";break}case-4:{a=`
426`;break}case-3:{a=`\r
427`;break}case-2:{a=t?" ":"	";break}case-1:{if(!t&&s)continue;a=" ";break}default:a=String.fromCharCode(i)}s=i===-2,r.push(a)}return r.join("")}function f$(e){const r={constructs:x7([u$,...(e||{}).extensions||[]]),content:s(N7),defined:[],document:s(R7),flow:s(KH),lazy:{},string:s(XH),text:s(JH)};return r;function s(i){return a;function a(o){return c$(r,i,o)}}}function p$(e){for(;!JA(e););return e}const EE=/[\0\t\n\r]/g;function m$(){let e=1,t="",n=!0,r;return s;function s(i,a,o){const u=[];let c,d,h,p,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(a||void 0).decode(i)),h=0,t="",n&&(i.charCodeAt(0)===65279&&h++,n=void 0);h<i.length;){if(EE.lastIndex=h,c=EE.exec(i),p=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(p),!c){t=i.slice(h);break}
vendor: 10,904 bytes, line 427
427if(f===10&&h===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<p&&(u.push(i.slice(h,p)),e+=p-h),f){case 0:{u.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,u.push(-2);e++<d;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}h=p+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const g$=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function y$(e){return e.replace(g$,v$)}function v$(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),i=s===120||s===88;return KA(n.slice(i?2:1),i?16:10)}return Ib(n)||e}const sR={}.hasOwnProperty;function b$(e,t,n){return typeof t!="string"&&(n=t,t=void 0),x$(n)(p$(f$(n).document().write(m$()(e,t,!0))))}function x$(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ce),autolinkProtocol:M,autolinkEmail:M,atxHeading:i(Nt),blockQuote:i(fe),characterEscape:M,characterReference:M,codeFenced:i(Ne),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Ne,a),codeText:i(Ae,a),codeTextData:M,data:M,codeFlowValue:M,definition:i(dt),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(Ge),hardBreakEscape:i(Lt),hardBreakTrailing:i(Lt),htmlFlow:i(wn,a),htmlFlowData:M,htmlText:i(wn,a),htmlTextData:M,image:i(dr),label:a,link:i(ce),listItem:i(B),listItemValue:p,listOrdered:i(I,h),listUnordered:i(I),paragraph:i(K),reference:R,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(Nt),strong:i(le),thematicBreak:i(ie)},exit:{atxHeading:u(),atxHeadingSequence:C,autolink:u(),autolinkEmail:Le,autolinkProtocol:we,blockQuote:u(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:je,characterReferenceMarkerNumeric:je,characterReferenceValue:_e,characterReference:re,codeFenced:u(x),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:w,codeFlowValue:F,codeIndented:u(v),codeText:u(X),codeTextData:F,data:F,definition:u(),definitionDestinationString:T,definitionLabelString:b,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(j),hardBreakTrailing:u(j),htmlFlow:u(Y),htmlFlowData:F,htmlText:u(z),htmlTextData:F,image:u(J),label:V,labelText:$,lineEnding:U,link:u(Q),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:pe,resourceDestinationString:S,resourceTitleString:ue,resource:te,setextHeading:u(P),setextHeadingLineSequence:k,setextHeadingText:_,strong:u(),thematicBreak:u()}};iR(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(L){let G={type:"root",children:[]};const de={stack:[G],tokenStack:[],config:t,enter:o,exit:c,buffer:a,resume:d,data:n},Te=[];let $e=-1;for(;++$e<L.length;)if(L[$e][1].type==="listOrdered"||L[$e][1].type==="listUnordered")if(L[$e][0]==="enter")Te.push($e);else{const ot=Te.pop();$e=s(L,ot,$e)}for($e=-1;++$e<L.length;){const ot=t[L[$e][0]];sR.call(ot,L[$e][1].type)&&ot[L[$e][1].type].call(Object.assign({sliceSerialize:L[$e][2].sliceSerialize},de),L[$e][1])}if(de.tokenStack.length>0){const ot=de.tokenStack[de.tokenStack.length-1];(ot[1]||_E).call(de,void 0,ot[0])}for(G.position={start:Ei(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:Ei(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e<t.transforms.length;)G=t.transforms[$e](G)||G;return G}function s(L,G,de){let Te=G-1,$e=-1,ot=!1,Mn,nn,cn,Kn;for(;++Te<=de;){const gt=L[Te];switch(gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gt[0]==="enter"?$e++:$e--,Kn=void 0;break}case"lineEndingBlank":{gt[0]==="enter"&&(Mn&&!Kn&&!$e&&!cn&&(cn=Te),Kn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Kn=void 0}if(!$e&&gt[0]==="enter"&&gt[1].type==="listItemPrefix"||$e===-1&&gt[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(Mn){let Ir=Te;for(nn=void 0;Ir--;){const En=L[Ir];if(En[1].type==="lineEnding"||En[1].type==="lineEndingBlank"){if(En[0]==="exit")continue;nn&&(L[nn][1].type="lineEndingBlank",ot=!0),En[1].type="lineEnding",nn=Ir}else if(!(En[1].type==="linePrefix"||En[1].type==="blockQuotePrefix"||En[1].type==="blockQuotePrefixWhitespace"||En[1].type==="blockQuoteMarker"||En[1].type==="listItemIndent"))break}cn&&(!nn||cn<nn)&&(Mn._spread=!0),Mn.end=Object.assign({},nn?L[nn][1].start:gt[1].end),L.splice(nn||Te,0,["exit",Mn,gt[2]]),Te++,de++}if(gt[1].type==="listItemPrefix"){const Ir={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start),end:void 0};Mn=Ir,L.splice(Te,0,["enter",Ir,gt[2]]),Te++,de++,cn=void 0,Kn=!0}}}return L[G][1]._spread=ot,de}function i(L,G){return de;function de(Te){o.call(this,L(Te),Te),G&&G.call(this,Te)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(L,G,de){this.stack[this.stack.length-1].children.push(L),this.stack.push(L),this.tokenStack.push([G,de||void 0]),L.position={start:Ei(G.start),end:void 0}}function u(L){return G;function G(de){L&&L.call(this,de),c.call(this,de)}}function c(L,G){const de=this.stack.pop(),Te=this.tokenStack.pop();if(Te)Te[0].type!==L.type&&(G?G.call(this,L,Te[0]):(Te[1]||_E).call(this,L,Te[0]));else throw new Error("Cannot close `"+L.type+"` ("+Gu({start:L.start,end:L.end})+"): it’s not open");de.position.end=Ei(L.end)}function d(){return v7(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(L){if(this.data.expectingFirstListItemValue){const G=this.stack[this.stack.length-2];G.start=Number.parseInt(this.sliceSerialize(L),10),this.data.expectingFirstListItemValue=void 0}}function f(){const L=this.resume(),G=this.stack[this.stack.length-1];G.lang=L}function w(){const L=this.resume(),G=this.stack[this.stack.length-1];G.meta=L}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const L=this.resume(),G=this.stack[this.stack.length-1];G.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const L=this.resume(),G=this.stack[this.stack.length-1];G.value=L.replace(/(\r?\n|\r)$/g,"")}function b(L){const G=this.resume(),de=this.stack[this.stack.length-1];de.label=G,de.identifier=ol(this.sliceSerialize(L)).toLowerCase()}function E(){const L=this.resume(),G=this.stack[this.stack.length-1];G.title=L}function T(){const L=this.resume(),G=this.stack[this.stack.length-1];G.url=L}function C(L){const G=this.stack[this.stack.length-1];if(!G.depth){const de=this.sliceSerialize(L).length;G.depth=de}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function k(L){const G=this.stack[this.stack.length-1];G.depth=this.sliceSerialize(L).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function M(L){const de=this.stack[this.stack.length-1].children;let Te=de[de.length-1];(!Te||Te.type!=="text")&&(Te=oe(),Te.position={start:Ei(L.start),end:void 0},de.push(Te)),this.stack.push(Te)}function F(L){const G=this.stack.pop();G.value+=this.sliceSerialize(L),G.position.end=Ei(L.end)}function U(L){const G=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=G.children[G.children.length-1];de.position.end=Ei(L.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(G.type)&&(M.call(this,L),F.call(this,L))}function j(){this.data.atHardBreak=!0}function Y(){const L=this.resume(),G=this.stack[this.stack.length-1];G.value=L}function z(){const L=this.resume(),G=this.stack[this.stack.length-1];G.value=L}function X(){const L=this.resume(),G=this.stack[this.stack.length-1];G.value=L}function Q(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=G,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function J(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=G,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function $(L){const G=this.sliceSerialize(L),de=this.stack[this.stack.length-2];de.label=y$(G),de.identifier=ol(G).toLowerCase()}function V(){const L=this.stack[this.stack.length-1],G=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const Te=L.children;de.children=Te}else de.alt=G}function S(){const L=this.resume(),G=this.stack[this.stack.length-1];G.url=L}function ue(){const L=this.resume(),G=this.stack[this.stack.length-1];G.title=L}function te(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function pe(L){const G=this.resume(),de=this.stack[this.stack.length-1];de.label=G,de.identifier=ol(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function je(L){this.data.characterReferenceType=L.type}function _e(L){const G=this.sliceSerialize(L),de=this.data.characterReferenceType;let Te;de?(Te=KA(G,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Te=Ib(G);const $e=this.stack[this.stack.length-1];$e.value+=Te}function re(L){const G=this.stack.pop();G.position.end=Ei(L.end)}function we(L){F.call(this,L);const G=this.stack[this.stack.length-1];G.url=this.sliceSerialize(L)}function Le(L){F.call(this,L);const G=this.stack[this.stack.length-1];G.url="mailto:"+this.sliceSerialize(L)}function fe(){return{type:"blockquote",children:[]}}function Ne(){return{type:"code",lang:null,meta:null,value:""}}function Ae(){return{type:"inlineCode",value:""}}function dt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ge(){return{type:"emphasis",children:[]}}function Nt(){return{type:"heading",depth:0,children:[]}}function Lt(){return{type:"break"}}function wn(){return{type:"html",value:""}}function dr(){return{type:"image",title:null,url:"",alt:null}}function ce(){return{type:"link",title:null,url:"",children:[]}}function I(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function B(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function K(){return{type:"paragraph",children:[]}}function le(){return{type:"strong",children:[]}}function oe(){return{type:"text",value:""}}function ie(){return{type:"thematicBreak"}}}function Ei(e){return{line:e.line,column:e.column,offset:e.offset}}function iR(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?iR(e,r):w$(e,r)}}function w$(e,t){let n;for(n in t)if(sR.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 _E(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Gu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Gu({start:t.start,end:t.end}
vendor: 10,608 bytes, lines 427-431
427)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Gu({start:t.start,end:t.end})+") is still open")}function E$(e){const t=this;t.parser=n;function n(r){return b$(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function _$(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function T$(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
428`}]}function S$(e,t){const n=t.value?t.value+`
429`:"",r={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(r.className=["language-"+s[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function C$(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function k$(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function N$(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),s=Jl(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}function A$(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 R$(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function aR(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),i=s[0];i&&i.type==="text"?i.value="["+i.value:s.unshift({type:"text",value:"["});const a=s[s.length-1];return a&&a.type==="text"?a.value+=r:s.push({type:"text",value:r}),s}function I$(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return aR(e,t);const s={src:Jl(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(s.title=r.title);const i={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,i),e.applyData(t,i)}function O$(e,t){const n={src:Jl(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 P$(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 D$(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return aR(e,t);const s={href:Jl(r.url||"")};r.title!==null&&r.title!==void 0&&(s.title=r.title);const i={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function j$(e,t){const n={href:Jl(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 L$(e,t,n){const r=e.all(t),s=n?M$(n):oR(t),i={},a=[];if(typeof t.checked=="boolean"){const d=r[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const d=r[o];(s||o!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
430`}),d.type==="element"&&d.tagName==="p"&&!s?a.push(...d.children):a.push(d)}const u=r[r.length-1];u&&(s||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
431`});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)}function M$(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=oR(n[r])}return t}function oR(e){const t=e.spread;return t??e.children.length>1}function F$(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 a=r[s];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function B$(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function U$(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function H$(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $$(e,t){const n=e.all(t),r=n.shift(),s=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),s.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=qs(t.children[1]),u=qp(t.children[t.children.length-1]);o&&u&&(a.position={start:o,end:u}),s.push(a)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,i),e.applyData(t,i)}function z$(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:t.children.length;let u=-1;const c=[];for(;++u<o;){const h=t.children[u],p={},f=a?a[u]:void 0;f&&(p.align=f);let w={type:"element",tagName:i,properties:p,children:[]};h&&(w.children=e.all(h),e.patch(h,w),w=e.applyData(h,w)),c.push(w)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function V$(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const TE=9,SE=32;function W$(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),s=0;const i=[];for(;r;)i.push(CE(t.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=n.exec(t);return i.push(CE(t.slice(s),s>0,!1)),i.join("")}function CE(e,t,n){let r=0,s=e.length;if(t){let i=e.codePointAt(r);for(;i===TE||i===SE;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(s-1);for(;i===TE||i===SE;)s--,i=e.codePointAt(s-1)}return s>r?e.slice(r,s):""}function q$(e,t){const n={type:"text",value:W$(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Y$(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const K$={blockquote:_$,break:T$,code:S$,delete:C$,emphasis:k$,footnoteReference:N$,heading:A$,html:R$,imageReference:I$,image:O$,inlineCode:P$,linkReference:D$,link:j$,listItem:L$,list:F$,paragraph:B$,root:U$,strong:H$,table:$$,tableCell:V$,tableRow:z$,text:q$,thematicBreak:Y$,toml:dh,yaml:dh,definition:dh,footnoteDefinition:dh};function dh(){}const lR=-1,Kp=0,Xu=1,Af=2,Db=3,jb=4,Lb=5,Mb=6,uR=7,cR=8,kE=typeof self=="object"?self:globalThis,G$=(e,t)=>{const n=(s,i)=>(e.set(i,s),s),r=s=>{if(e.has(s))return e.get(s);const[i,a]=t[s];switch(i){case Kp:case lR:return n(a,s);case Xu:{const o=n([],s);for(const u of a)o.push(r(u));return o}case Af:{const o=n({},s);for(const[u,c]of a)o[r(u)]=r(c);return o}case Db:return n(new Date(a),s);case jb:{const{source:o,flags:u}=a;return n(new RegExp(o,u),s)}case Lb:{const o=n(new Map,s);for(const[u,c]of a)o.set(r(u),r(c));return o}case Mb:{const o=n(new Set,s);for(const u of a)o.add(r(u));return o}case uR:{const{name:o,message:u}=a;return n(new kE[o](u),s)}case cR:return n(BigInt(a),s);case"BigInt":return n(Object(BigInt(a)),s);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return n(new DataView(o),a)}}return n(new kE[i](a),s)};return r},NE=e=>G$(new Map,e)(0),Ao="",{toString:Q$}={},{keys:X$}=Object,bu=e=>{const t=typeof e;if(t!=="object"||!e)return[Kp,t];const n=Q$.call(e).slice(8,-1);switch(n){case"Array":return[Xu,Ao];case"Object":return[Af,Ao];case"Date":return[Db,Ao];case"RegExp":return[jb,Ao];case"Map":return[Lb,Ao];case"Set":return[Mb,Ao];case"DataView":return[Xu,n]}return n.includes("Array")?[Xu,n]:n.includes("Error")?[uR,n]:[Af,n]},hh=([e,t])=>e===Kp&&(t==="function"||t==="symbol"),J$=(e,t,n,r)=>{const s=(a,o)=>{const u=r.push(a)-1;return n.set(o,u),u},i=a=>{if(n.has(a))return n.get(a);let[o,u]=bu(a);switch(o){case Kp:{let d=a;switch(u){case"bigint":o=cR,d=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);d=null;break;case"undefined":return s([lR],a)}return s([o,d],a)}case Xu:{if(u){let p=a;return u==="DataView"?p=new Uint8Array(a.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(a)),s([u,[...p]],a)}const d=[],h=s([o,d],a);for(const p of a)d.push(i(p));return h}case Af:{if(u)switch(u){case"BigInt":return s([u,a.toString()],a);case"Boolean":case"Number":case"String":return s([u,a.valueOf()],a)}if(t&&"toJSON"in a)return i(a.toJSON());const d=[],h=s([o,d],a);for(const p of X$(a))(e||!hh(bu(a[p])))&&d.push([i(p),i(a[p])]);return h}case Db:return s([o,a.toISOString()],a);case jb:{const{source:d,flags:h}=a;return s([o,{source:d,flags:h}],a)}case Lb:{const d=[],h=s([o,d],a);for(const[p,f]of a)(e||!(hh(bu(p))||hh(bu(f))))&&d.push([i(p),i(f)]);return h}case Mb:{const d=[],h=s([o,d],a);for(const p of a)(e||!hh(bu(p)))&&d.push(i(p));return h}}const{message:c}=a;return s([o,{name:u,message:c}],a)};return i},AE=(e,{json:t,lossy:n}={})=>{const r=[];return J$(!(t||n),!!t,new Map,r)(e),r},Ol=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?NE(AE(e,t)):structuredClone(e):(e,t)=>NE(AE(e,t));function Z$(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 ez(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 16,427 bytes, lines 431-437
431function tz(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Z$,r=e.options.footnoteBackLabel||ez,s=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const d=e.all(c),h=String(c.identifier).toUpperCase(),p=Jl(h.toLowerCase());let f=0;const w=[],m=e.footnoteCounts.get(h);for(;m!==void 0&&++f<=m;){w.length>0&&w.push({type:"text",value:" "});let b=typeof n=="string"?n:n(u,f);typeof b=="string"&&(b={type:"text",value:b}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,f),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const x=d[d.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const b=x.children[x.children.length-1];b&&b.type==="text"?b.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...w)}else d.push(...w);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(c,v),o.push(v)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Ol(a),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
432`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
433`}]}}const dR=function(e){if(e==null)return iz;if(typeof e=="function")return Gp(e);if(typeof e=="object")return Array.isArray(e)?nz(e):rz(e);if(typeof e=="string")return sz(e);throw new Error("Expected function, string, or object as test")};function nz(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=dR(e[n]);return Gp(r);function r(...s){let i=-1;for(;++i<t.length;)if(t[i].apply(this,s))return!0;return!1}}function rz(e){const t=e;return Gp(n);function n(r){const s=r;let i;for(i in e)if(s[i]!==t[i])return!1;return!0}}function sz(e){return Gp(t);function t(n){return n&&n.type===e}}function Gp(e){return t;function t(n,r,s){return!!(az(n)&&e.call(this,n,typeof r=="number"?r:void 0,s||void 0))}}function iz(){return!0}function az(e){return e!==null&&typeof e=="object"&&"type"in e}const hR=[],oz=!0,RE=!1,lz="skip";function uz(e,t,n,r){let s;typeof t=="function"&&typeof n!="function"?(r=n,n=t):s=t;const i=dR(s),a=r?-1:1;o(e,void 0,[])();function o(u,c,d){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const f=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=hR,w,m,x;if((!t||i(u,c,d[d.length-1]||void 0))&&(f=cz(n(u,d)),f[0]===RE))return f;if("children"in u&&u.children){const v=u;if(v.children&&f[0]!==lz)for(m=(r?v.children.length:-1)+a,x=d.concat(v);m>-1&&m<v.children.length;){const b=v.children[m];if(w=o(b,m,x)(),w[0]===RE)return w;m=typeof w[1]=="number"?w[1]:m+a}}return f}}}function cz(e){return Array.isArray(e)?e:typeof e=="number"?[oz,e]:e==null?hR:[e]}function Fb(e,t,n,r){let s,i,a;typeof t=="function"&&typeof n!="function"?(i=void 0,a=t,s=n):(i=t,a=n,s=r),uz(e,i,o,s);function o(u,c){const d=c[c.length-1],h=d?d.children.indexOf(u):void 0;return a(u,h,d)}}const Ty={}.hasOwnProperty,dz={};function hz(e,t){const n=t||dz,r=new Map,s=new Map,i=new Map,a={...K$,...n.handlers},o={all:c,applyData:pz,definitionById:r,footnoteById:s,footnoteCounts:i,footnoteOrder:[],handlers:a,one:u,options:n,patch:fz,wrap:gz};return Fb(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const h=d.type==="definition"?r:s,p=String(d.identifier).toUpperCase();h.has(p)||h.set(p,d)}}),o;function u(d,h){const p=d.type,f=o.handlers[p];if(Ty.call(o.handlers,p)&&f)return f(o,d,h);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in d){const{children:m,...x}=d,v=Ol(x);return v.children=o.all(d),v}return Ol(d)}return(o.options.unknownHandler||mz)(o,d,h)}function c(d){const h=[];if("children"in d){const p=d.children;let f=-1;for(;++f<p.length;){const w=o.one(p[f],d);if(w){if(f&&p[f-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=IE(w.value)),!Array.isArray(w)&&w.type==="element")){const m=w.children[0];m&&m.type==="text"&&(m.value=IE(m.value))}Array.isArray(w)?h.push(...w):h.push(w)}}}return h}}function fz(e,t){e.position&&(t.position=QU(e))}function pz(e,t){let n=t;if(e&&e.data){const r=e.data.hName,s=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&i&&Object.assign(n.properties,Ol(i)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function mz(e,t){const n=t.data||{},r="value"in t&&!(Ty.call(n,"hProperties")||Ty.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 gz(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
434`});++r<e.length;)r&&n.push({type:"text",value:`
435`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
436`}),n}function IE(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function OE(e,t){const n=hz(e,t),r=n.one(e,void 0),s=tz(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&i.children.push({type:"text",value:`
437`},s),i}function yz(e,t){return e&&"run"in e?async function(n,r){const s=OE(n,{file:r,...t});await e.run(s,r)}:function(n,r){return OE(n,{file:r,...e||t})}}function PE(e){if(e)throw e}var Fh=Object.prototype.hasOwnProperty,fR=Object.prototype.toString,DE=Object.defineProperty,jE=Object.getOwnPropertyDescriptor,LE=function(t){return typeof Array.isArray=="function"?Array.isArray(t):fR.call(t)==="[object Array]"},ME=function(t){if(!t||fR.call(t)!=="[object Object]")return!1;var n=Fh.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Fh.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var s;for(s in t);return typeof s>"u"||Fh.call(t,s)},FE=function(t,n){DE&&n.name==="__proto__"?DE(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},BE=function(t,n){if(n==="__proto__")if(Fh.call(t,n)){if(jE)return jE(t,n).value}else return;return t[n]},vz=function e(){var t,n,r,s,i,a,o=arguments[0],u=1,c=arguments.length,d=!1;for(typeof o=="boolean"&&(d=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});u<c;++u)if(t=arguments[u],t!=null)for(n in t)r=BE(o,n),s=BE(t,n),o!==s&&(d&&s&&(ME(s)||(i=LE(s)))?(i?(i=!1,a=r&&LE(r)?r:[]):a=r&&ME(r)?r:{},FE(o,{name:n,newValue:e(d,a,s)})):typeof s<"u"&&FE(o,{name:n,newValue:s}));return o};const mg=Gf(vz);function Sy(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 bz(){const e=[],t={run:n,use:r};return t;function n(...s){let i=-1;const a=s.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...s);function o(u,...c){const d=e[++i];let h=-1;if(u){a(u);return}for(;++h<s.length;)(c[h]===null||c[h]===void 0)&&(c[h]=s[h]);s=c,d?xz(d,o)(...c):a(null,...c)}}function r(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function xz(e,t){let n;return r;function r(...a){const o=e.length>a.length;let u;o&&a.push(s);try{u=e.apply(this,a)}catch(c){const d=c;if(o&&n)throw d;return s(d)}o||(u&&u.then&&typeof u.then=="function"?u.then(i,s):u instanceof Error?s(u):i(u))}function s(a,...o){n||(n=!0,t(a,...o))}function i(a){s(null,a)}}const _s={basename:wz,dirname:Ez,extname:_z,join:Tz,sep:"/"};function wz(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bd(e);let n=0,r=-1,s=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(i){n=s+1;break}}else r<0&&(i=!0,r=s+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,o=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(i){n=s+1;break}}else a<0&&(i=!0,a=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(r=s):(o=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function Ez(e){if(bd(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 _z(e){bd(e);let t=e.length,n=-1,r=0,s=-1,i=0,a;for(;t--;){const o=e.codePointAt(t);if(o===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),o===46?s<0?s=t:i!==1&&(i=1):s>-1&&(i=-1)}return s<0||n<0||i===0||i===1&&s===n-1&&s===r+1?"":e.slice(s,n)}function Tz(...e){let t=-1,n;for(;++t<e.length;)bd(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Sz(n)}function Sz(e){bd(e);const t=e.codePointAt(0)===47;let n=Cz(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Cz(e,t){let n="",r=0,s=-1,i=0,a=-1,o,u;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(s===a-1||i===1))if(s!==a-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),s=a,i=0;continue}}else if(n.length>0){n="",r=0,s=a,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(s+1,a):n=e.slice(s+1,a),r=a-s-1;s=a,i=0}else o===46&&i>-1?i++:i=-1}return n}function bd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const kz={cwd:Nz};function Nz(){return"/"}function Cy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Az(e){if(typeof e=="string")e=new URL(e);else if(!Cy(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 Rz(e)}function Rz(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 gg=["history","path","basename","stem","extname","dirname"];class pR{constructor(t){let n;t?Cy(t)?n={path:t}:typeof t=="string"||Iz(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":kz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<gg.length;){const i=gg[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let s;for(s in n)gg.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?_s.basename(this.path):void 0}set basename(t){vg(t,"basename"),yg(t,"basename"),this.path=_s.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?_s.dirname(this.path):void 0}set dirname(t){UE(this.basename,"dirname"),this.path=_s.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?_s.extname(this.path):void 0}set extname(t){if(yg(t,"extname"),UE(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=_s.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Cy(t)&&(t=Az(t)),vg(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?_s.basename(this.path,this.extname):void 0}set stem(t){vg(t,"stem"),yg(t,"stem"),this.path=_s.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 jn(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 yg(e,t){if(e&&e.includes(_s.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+_s.sep+"`")}function vg(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function UE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Iz(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Oz=function(e){const r=this.constructor.prototype,s=r[e],i=function(){return s.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},Pz={}.hasOwnProperty;class Bb extends Oz{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=bz()}copy(){const t=new Bb;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(mg(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(wg("data",this.frozen),this.namespace[t]=n,this):Pz.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wg("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=fh(t),r=this.parser||this.Parser;return bg("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),bg("process",this.parser||this.Parser),xg("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(i,a){const o=fh(t),u=r.parse(o);r.run(u,o,function(d,h,p){if(d||!h||!p)return c(d);const f=h,w=r.stringify(f,p);Lz(w)?p.value=w:p.result=w,c(d,p)});function c(d,h){d||!h?a(d):i?i(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),bg("processSync",this.parser||this.Parser),xg("processSync",this.compiler||this.Compiler),this.process(t,s),$E("processSync","process",n),r;function s(i,a){n=!0,PE(i),r=a}}run(t,n,r){HE(t),this.freeze();const s=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(a,o){const u=fh(n);s.run(t,u,c);function c(d,h,p){const f=h||t;d?o(d):a?a(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,s;return this.run(t,n,i),$E("runSync","run",r),s;function i(a,o){PE(a),s=o,r=!0}}stringify(t,n){this.freeze();const r=fh(n),s=this.compiler||this.Compiler;return xg("stringify",s),HE(t),s(t,r)}use(t,...n){const r=this.attachers,s=this.namespace;if(wg("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...h]=c;u(d,h)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))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");o(c.plugins),c.settings&&(s.settings=mg(!0,s.settings,c.settings))}function o(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const h=c[d];i(h)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,d){let h=-1,p=-1;for(;++h<r.length;)if(r[h][0]===c){p=h;break}if(p===-1)r.push([c,...d]);else if(d.length>0){let[f,...w]=d;
vendor: 9,021 bytes, lines 437-438
437const m=r[p][1];Sy(m)&&Sy(f)&&(f=mg(!0,m,f)),r[p]=[c,f,...w]}}}}const Dz=new Bb().freeze();function bg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wg(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 HE(e){if(!Sy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $E(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fh(e){return jz(e)?e:new pR(e)}function jz(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Lz(e){return typeof e=="string"||Mz(e)}function Mz(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Fz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",zE=[],VE={allowDangerousHtml:!0},Bz=/^(https?|ircs?|mailto|xmpp)$/i,Uz=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function mR(e){const t=Hz(e),n=$z(e);return zz(t.runSync(t.parse(n),n),e)}function Hz(e){const t=e.rehypePlugins||zE,n=e.remarkPlugins||zE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...VE}:VE;return Dz().use(E$).use(n).use(yz,r).use(t)}function $z(e){const t=e.children||"",n=new pR;return typeof t=="string"&&(n.value=t),n}function zz(e,t){const n=t.allowedElements,r=t.allowElement,s=t.components,i=t.disallowedElements,a=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||Vz;for(const d of Uz)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+Fz+d.id,void 0);return Fb(e,c),t7(e,{Fragment:l.Fragment,components:s,ignoreInvalidStyle:!0,jsx:l.jsx,jsxs:l.jsxs,passKeys:!0,passNode:!0});function c(d,h,p){if(d.type==="raw"&&p&&typeof h=="number")return a?p.children.splice(h,1):p.children[h]={type:"text",value:d.value},h;if(d.type==="element"){let f;for(f in hg)if(Object.hasOwn(hg,f)&&Object.hasOwn(d.properties,f)){const w=d.properties[f],m=hg[f];(m===null||m.includes(d.tagName))&&(d.properties[f]=u(String(w||""),f,d))}}if(d.type==="element"){let f=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!f&&r&&typeof h=="number"&&(f=!r(d,h,p)),f&&p&&typeof h=="number")return o&&d.children?p.children.splice(h,1,...d.children):p.children.splice(h,1),h}}}function Vz(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||Bz.test(e.slice(0,t))?e:""}const WE=/[#.]/g;function Wz(e,t){const n=e||"",r={};let s=0,i,a;for(;s<n.length;){WE.lastIndex=s;const o=WE.exec(n),u=n.slice(s,o?o.index:n.length);u&&(i?i==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:a=u,s+=u.length),o&&(i=o[0],s++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function gR(e,t,n){const r=n?Gz(n):void 0;function s(i,a,...o){let u;if(i==null){u={type:"root",children:[]};const c=a;o.unshift(c)}else{u=Wz(i,t);const c=u.tagName.toLowerCase(),d=r?r.get(c):void 0;if(u.tagName=d||c,qz(a))o.unshift(a);else for(const[h,p]of Object.entries(a))Yz(e,u.properties,h,p)}for(const c of o)ky(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return s}function qz(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 i=s;for(const a of i)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Yz(e,t,n,r){const s=Vp(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?s.spaceSeparated?i=sE(r):s.commaSeparated?i=Zw(r):s.commaOrSpaceSeparated?i=sE(Zw(r).join(" ")):i=qE(s,s.property,r):Array.isArray(r)?i=[...r]:i=s.property==="style"?Kz(r):String(r);if(Array.isArray(i)){const a=[];for(const o of i)a.push(qE(s,s.property,o));i=a}s.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[s.property]=i}}function ky(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)ky(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ky(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function qE(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Bc(n)===Bc(t)))return!0}return n}function Kz(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Gz(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Qz=["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"],Xz=gR(vd,"div"),Jz=gR(Ea,"g",Qz);function Zz(e){const t=String(e),n=[];return{toOffset:s,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let a=0;for(;;){let o=n[a];if(o===void 0){const u=YE(t,n[a-1]);o=u===-1?t.length+1:u+1,n[a]=o}if(o>i)return{line:a+1,column:i-(a>0?n[a-1]:0)+1,offset:i};a++}}}function s(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],u=YE(t,o),c=u===-1?t.length+1:u+1;if(o===c)break;n.push(c)}const a=(i.line>1?n[i.line-2]:0)+i.column-1;if(a<n[i.line-1])return a}}}function YE(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
438`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Ma={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/"},yR={}.hasOwnProperty,eV=Object.prototype;function tV(e,t){const n=t||{};return Ub({file:n.file||void 0,location:!1,schema:n.space==="svg"?Ea:vd,verbose:n.verbose||!1},e)}function Ub(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Bh(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:vR(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const i=String(e.file),a=Zz(i),o=a.toPoint(0),u=a.toPoint(i.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Bh(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Bh(e,r,n),n}default:return n=nV(e,t),n}}function vR(e,t){let n=-1;const r=[];for(;++n<t.length;){const s=Ub(e,t[n]);r.push(s)}return r}function nV(e,t){const n=e.schema;e.schema=t.namespaceURI===Ma.svg?Ea:vd;let r=-1;const s={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;yR.call(eV,u)||(s[u]=o.value)}const a=(e.schema.space==="svg"?Jz:Xz)(t.tagName,s,vR(e,t.childNodes));if(Bh(e,t,a),a.tagName==="template"){const o=t,u=o.sourceCodeLocation,c=u&&u.startTag&&Go(u.startTag),d=u&&u.endTag&&Go(u.endTag),h=Ub(e,o.content);c&&d&&e.file&&(h.position={start:c.end,end:d.start}),a.content=h}return e.schema=n,a}function Bh(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=rV(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}
vendor: 5,323 bytes, line 438
438function rV(e,t,n){const r=Go(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 i={};let a;if(n.attrs)for(a in n.attrs)yR.call(n.attrs,a)&&(i[Vp(e.schema,a).property]=Go(n.attrs[a]));n.startTag;const o=Go(n.startTag),u=n.endTag?Go(n.endTag):void 0,c={opening:o};u&&(c.closing=u),c.properties=i,t.data={position:c}}}return r}function Go(e){const t=KE({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=KE({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function KE(e){return e.line&&e.column?e:void 0}const GE={}.hasOwnProperty;function bR(e,t){const n=t||{};function r(s,...i){let a=r.invalid;const o=r.handlers;if(s&&GE.call(s,e)){const u=String(s[e]);a=GE.call(o,u)?o[u]:r.unknown}if(a)return a.call(this,s,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const sV={},iV={}.hasOwnProperty,xR=bR("type",{handlers:{root:oV,element:hV,text:cV,comment:dV,doctype:uV}});function aV(e,t){const r=(t||sV).space;return xR(e,r==="svg"?Ea:vd)}function oV(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Hb(e.children,n,t),Zl(e,n),n}function lV(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Hb(e.children,n,t),Zl(e,n),n}function uV(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Zl(e,t),t}function cV(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Zl(e,t),t}function dV(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Zl(e,t),t}function hV(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Ea);const s=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&iV.call(e.properties,i)){const u=fV(r,i,e.properties[i]);u&&s.push(u)}}const a=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:Ma[a],childNodes:[],parentNode:null};return o.childNodes=Hb(e.children,o,r),Zl(e,o),e.tagName==="template"&&e.content&&(o.content=lV(e.content,r)),o}function fV(e,t,n){const r=Vp(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?PA(n):HA(n));const s={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=s.name.indexOf(":");i<0?s.prefix="":(s.name=s.name.slice(i+1),s.prefix=r.attribute.slice(0,i)),s.namespace=Ma[r.space]}return s}function Hb(e,t,n){let r=-1;const s=[];if(e)for(;++r<e.length;){const i=xR(e[r],n);i.parentNode=t,s.push(i)}return s}function Zl(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 pV=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],mV=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]),At="�";var N;(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"})(N||(N={}));const Gn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function wR(e){return e>=55296&&e<=57343}function gV(e){return e>=56320&&e<=57343}function yV(e,t){return(e-55296)*1024+9216+t}function ER(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function _R(e){return e>=64976&&e<=65007||mV.has(e)}var q;(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 438
438dFirstCharacterOfTagName="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"})(q||(q={}));const vV=65536;class bV{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=vV,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:i}=this,a=s+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:o,endOffset:o}}_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(gV(n))return this.pos++,this._addGap(),yV(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,N.EOF;return this._err(q.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,N.EOF;const r=this.html.charCodeAt(n);return r===N.CARRIAGE_RETURN?N.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,N.EOF;let t=this.html.charCodeAt(this.pos);return t===N.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,N.LINE_FEED):t===N.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,wR(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===N.LINE_FEED||t===N.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ER(t)?this._err(q.controlCharacterInInputStream):_R(t)&&this._err(q.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var qe;(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"})(qe||(qe={}));function TR(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 xV=new Uint16Array('
vendor: 16,129 bytes, line 438
438ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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;䅻Dzᕔ\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;ẝẤijạả;怄;怅怃Ā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;耀ffiɩᾹ\0\0á¾½g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱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 438
438䐻Ȁ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⧓ସdz⧟\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᪠ⵒⵗLjⵚ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 438
438astЃ⹧⹲຅脀¶;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㚆㚝㚵㚼Dz㚋\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;怌
438'.split("").map(e=>e.charCodeAt(0))),wV=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 EV(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=wV.get(e))!==null&&t!==void 0?t:e}var vn;(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"})(vn||(vn={}));const _V=32;var Gi;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Gi||(Gi={}));function Ny(e){return e>=vn.ZERO&&e<=vn.NINE}function TV(e){return e>=vn.UPPER_A&&e<=vn.UPPER_F||e>=vn.LOWER_A&&e<=vn.LOWER_F}function SV(e){return e>=vn.UPPER_A&&e<=vn.UPPER_Z||e>=vn.LOWER_A&&e<=vn.LOWER_Z||Ny(e)}function CV(e){return e===vn.EQUALS||SV(e)}var fn;(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"})(fn||(fn={}));var ti;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ti||(ti={}));class kV{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=fn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ti.Strict}startEntity(t){this.decodeMode=t,this.state=fn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case fn.EntityStart:return t.charCodeAt(n)===vn.NUM?(this.state=fn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=fn.NamedEntity,this.stateNamedEntity(t,n));case fn.NumericStart:return this.stateNumericStart(t,n);case fn.NumericDecimal:return this.stateNumericDecimal(t,n);case fn.NumericHex:return this.stateNumericHex(t,n);case fn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|_V)===vn.LOWER_X?(this.state=fn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=fn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,s){if(n!==r){const i=r-n;this.result=this.result*Math.pow(s,i)+Number.parseInt(t.substr(n,i),s),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(Ny(s)||TV(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(Ny(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;if(t===vn.SEMI)this.consumed+=1;else if(this.decodeMode===ti.Strict)return 0;return this.emitCodePoint(EV(this.result),this.consumed),this.errors&&(t!==vn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let s=r[this.treeIndex],i=(s&Gi.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=NV(r,s,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===ti.Attribute&&(i===0||CV(a))?0:this.emitNotTerminatedNamedEntity();if(s=r[this.treeIndex],i=(s&Gi.VALUE_LENGTH)>>14,i!==0){if(a===vn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ti.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]&Gi.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]&~Gi.VALUE_LENGTH:s[t+1],r),n===3&&this.emitCodePoint(s[t+2],r),r}end(){var t;switch(this.state){case fn.NamedEntity:return this.result!==0&&(this.decodeMode!==ti.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case fn.NumericDecimal:return this.emitNumericEntity(0,2);case fn.NumericHex:return this.emitNumericEntity(0,3);case fn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case fn.EntityStart:return 0}}}function NV(e,t,n,r){const s=(t&Gi.BRANCH_LENGTH)>>7,i=t&Gi.JUMP_TABLE;if(s===0)return i!==0&&r===i?n:-1;if(i){const u=r-i;return u<0||u>=s?-1:e[n+u]-1}let a=n,o=a+s-1;for(;a<=o;){const u=a+o>>>1,c=e[u];if(c<r)a=u+1;else if(c>r)o=u-1;else return e[u+s]}return-1}var Z;(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/"})(Z||(Z={}));var Xa;(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"})(Xa||(Xa={}));var Br;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Br||(Br={}));var H;(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
438ike",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"})(H||(H={}));var g;(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"})(g||(g={}));const AV=new Map([[H.A,g.A],[H.ADDRESS,g.ADDRESS],[H.ANNOTATION_XML,g.ANNOTATION_XML],[H.APPLET,g.APPLET],[H.AREA,g.AREA],[H.ARTICLE,g.ARTICLE],[H.ASIDE,g.ASIDE],[H.B,g.B],[H.BASE,g.BASE],[H.BASEFONT,g.BASEFONT],[H.BGSOUND,g.BGSOUND],[H.BIG,g.BIG],[H.BLOCKQUOTE,g.BLOCKQUOTE],[H.BODY,g.BODY],[H.BR,g.BR],[H.BUTTON,g.BUTTON],[H.CAPTION,g.CAPTION],[H.CENTER,g.CENTER],[H.CODE,g.CODE],[H.COL,g.COL],[H.COLGROUP,g.COLGROUP],[H.DD,g.DD],[H.DESC,g.DESC],[H.DETAILS,g.DETAILS],[H.DIALOG,g.DIALOG],[H.DIR,g.DIR],[H.DIV,g.DIV],[H.DL,g.DL],[H.DT,g.DT],[H.EM,g.EM],[H.EMBED,g.EMBED],[H.FIELDSET,g.FIELDSET],[H.FIGCAPTION,g.FIGCAPTION],[H.FIGURE,g.FIGURE],[H.FONT,g.FONT],[H.FOOTER,g.FOOTER],[H.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[H.FORM,g.FORM],[H.FRAME,g.FRAME],[H.FRAMESET,g.FRAMESET],[H.H1,g.H1],[H.H2,g.H2],[H.H3,g.H3],[H.H4,g.H4],[H.H5,g.H5],[H.H6,g.H6],[H.HEAD,g.HEAD],[H.HEADER,g.HEADER],[H.HGROUP,g.HGROUP],[H.HR,g.HR],[H.HTML,g.HTML],[H.I,g.I],[H.IMG,g.IMG],[H.IMAGE,g.IMAGE],[H.INPUT,g.INPUT],[H.IFRAME,g.IFRAME],[H.KEYGEN,g.KEYGEN],[H.LABEL,g.LABEL],[H.LI,g.LI],[H.LINK,g.LINK],[H.LISTING,g.LISTING],[H.MAIN,g.MAIN],[H.MALIGNMARK,g.MALIGNMARK],[H.MARQUEE,g.MARQUEE],[H.MATH,g.MATH],[H.MENU,g.MENU],[H.META,g.META],[H.MGLYPH,g.MGLYPH],[H.MI,g.MI],[H.MO,g.MO],[H.MN,g.MN],[H.MS,g.MS],[H.MTEXT,g.MTEXT],[H.NAV,g.
vendor: 113,100 bytes, line 438
438NAV],[H.NOBR,g.NOBR],[H.NOFRAMES,g.NOFRAMES],[H.NOEMBED,g.NOEMBED],[H.NOSCRIPT,g.NOSCRIPT],[H.OBJECT,g.OBJECT],[H.OL,g.OL],[H.OPTGROUP,g.OPTGROUP],[H.OPTION,g.OPTION],[H.P,g.P],[H.PARAM,g.PARAM],[H.PLAINTEXT,g.PLAINTEXT],[H.PRE,g.PRE],[H.RB,g.RB],[H.RP,g.RP],[H.RT,g.RT],[H.RTC,g.RTC],[H.RUBY,g.RUBY],[H.S,g.S],[H.SCRIPT,g.SCRIPT],[H.SEARCH,g.SEARCH],[H.SECTION,g.SECTION],[H.SELECT,g.SELECT],[H.SOURCE,g.SOURCE],[H.SMALL,g.SMALL],[H.SPAN,g.SPAN],[H.STRIKE,g.STRIKE],[H.STRONG,g.STRONG],[H.STYLE,g.STYLE],[H.SUB,g.SUB],[H.SUMMARY,g.SUMMARY],[H.SUP,g.SUP],[H.TABLE,g.TABLE],[H.TBODY,g.TBODY],[H.TEMPLATE,g.TEMPLATE],[H.TEXTAREA,g.TEXTAREA],[H.TFOOT,g.TFOOT],[H.TD,g.TD],[H.TH,g.TH],[H.THEAD,g.THEAD],[H.TITLE,g.TITLE],[H.TR,g.TR],[H.TRACK,g.TRACK],[H.TT,g.TT],[H.U,g.U],[H.UL,g.UL],[H.SVG,g.SVG],[H.VAR,g.VAR],[H.WBR,g.WBR],[H.XMP,g.XMP]]);function eu(e){var t;return(t=AV.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const ee=g,RV={[Z.HTML]:new Set([ee.ADDRESS,ee.APPLET,ee.AREA,ee.ARTICLE,ee.ASIDE,ee.BASE,ee.BASEFONT,ee.BGSOUND,ee.BLOCKQUOTE,ee.BODY,ee.BR,ee.BUTTON,ee.CAPTION,ee.CENTER,ee.COL,ee.COLGROUP,ee.DD,ee.DETAILS,ee.DIR,ee.DIV,ee.DL,ee.DT,ee.EMBED,ee.FIELDSET,ee.FIGCAPTION,ee.FIGURE,ee.FOOTER,ee.FORM,ee.FRAME,ee.FRAMESET,ee.H1,ee.H2,ee.H3,ee.H4,ee.H5,ee.H6,ee.HEAD,ee.HEADER,ee.HGROUP,ee.HR,ee.HTML,ee.IFRAME,ee.IMG,ee.INPUT,ee.LI,ee.LINK,ee.LISTING,ee.MAIN,ee.MARQUEE,ee.MENU,ee.META,ee.NAV,ee.NOEMBED,ee.NOFRAMES,ee.NOSCRIPT,ee.OBJECT,ee.OL,ee.P,ee.PARAM,ee.PLAINTEXT,ee.PRE,ee.SCRIPT,ee.SECTION,ee.SELECT,ee.SOURCE,ee.STYLE,ee.SUMMARY,ee.TABLE,ee.TBODY,ee.TD,ee.TEMPLATE,ee.TEXTAREA,ee.TFOOT,ee.TH,ee.THEAD,ee.TITLE,ee.TR,ee.TRACK,ee.UL,ee.WBR,ee.XMP]),[Z.MATHML]:new Set([ee.MI,ee.MO,ee.MN,ee.MS,ee.MTEXT,ee.ANNOTATION_XML]),[Z.SVG]:new Set([ee.TITLE,ee.FOREIGN_OBJECT,ee.DESC]),[Z.XLINK]:new Set,[Z.XML]:new Set,[Z.XMLNS]:new Set},Ay=new Set([ee.H1,ee.H2,ee.H3,ee.H4,ee.H5,ee.H6]);H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT;var A;(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"})(A||(A={}));const Yt={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function IV(e){return e>=N.DIGIT_0&&e<=N.DIGIT_9}function ju(e){return e>=N.LATIN_CAPITAL_A&&e<=N.LATIN_CAPITAL_Z}function OV(e){return e>=N.LATIN_SMALL_A&&e<=N.LATIN_SMALL_Z}function Ci(e){return OV(e)||ju(e)}function QE(e){return Ci(e)||IV(e)}function ph(e){return e+32}function SR(e){return e===N.SPACE||e===N.LINE_FEED||e===N.TABULATION||e===N.FORM_FEED}function XE(e){return SR(e)||e===N.SOLIDUS||e===N.GREATER_THAN_SIGN}function PV(e){return e===N.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:wR(e)?q.surrogateCharacterReference:_R(e)?q.noncharacterCharacterReference:ER(e)||e===N.CARRIAGE_RETURN?q.controlCharacterReference:null}class DV{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=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new bV(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kV(xV,(r,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const s=PV(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:qe.START_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:qe.END_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:qe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:qe.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(TR(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(q.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=eu(t.tagName),t.type===qe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(q.endTagWithAttributes),t.selfClosing&&this._err(q.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 qe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case qe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case qe.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:qe.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=SR(t)?qe.WHITESPACE_CHARACTER:t===N.NULL?qe.NULL_CHARACTER:qe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(qe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ti.Attribute:ti.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:{this._stateData(t);break}case A.RCDATA:{this._stateRcdata(t);break}case A.RAWTEXT:{this._stateRawtext(t);break}case A.SCRIPT_DATA:{this._stateScriptData(t);break}case A.PLAINTEXT:{this._statePlaintext(t);break}case A.TAG_OPEN:{this._stateTagOpen(t);break}case A.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case A.TAG_NAME:{this._stateTagName(t);break}case A.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case A.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case A.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case A.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case A.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case A.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case A.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case A.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case A.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case A.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case A.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case A.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case A.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case A.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case A.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case A.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case A.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case A.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case A.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case A.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case A.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case A.BOGUS_COMMENT:{this._stateBogusComment(t);break}case A.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case A.COMMENT_START:{this._stateCommentStart(t);break}case A.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case A.COMMENT:{this._stateComment(t);break}case A.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case A.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case A.COMMENT_END:{this._stateCommentEnd(t);break}case A.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case A.DOCTYPE:{this._stateDoctype(t);break}case A.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case A.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case A.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case A.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case A.CDATA_SECTION:{this._stateCdataSection(t);break}case A.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case A.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case A.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case A.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=A.TAG_OPEN;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitCodePoint(t);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case N.AMPERSAND:{this._startCharacterReference();break}case N.LESS_THAN_SIGN:{this.state=A.RCDATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(At);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case N.LESS_THAN_SIGN:{this.state=A.RAWTEXT_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(At);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(At);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(At);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ci(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case N.EXCLAMATION_MARK:{this.state=A.MARKUP_DECLARATION_OPEN;break}case N.SOLIDUS:{this.state=A.END_TAG_OPEN;break}case N.QUESTION_MARK:{this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break}case N.EOF:{this._err(q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ci(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case N.GREATER_THAN_SIGN:{this._err(q.missingEndTagName),this.state=A.DATA;break}case N.EOF:{this._err(q.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(q.unexpectedNullCharacter),n.tagName+=At;break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ju(t)?ph(t):t)}}_stateRcdataLessThanSign(t){t===N.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ci(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case N.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case N.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===N.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ci(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case N.SOLIDUS:{this.state=A.SCRIPT_DATA_END_TAG_OPEN;break}case N.EXCLAMATION_MARK:{this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ci(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===N.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===N.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case N.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(At);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(At);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(At);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===N.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ci(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ci(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Gn.SCRIPT,!1)&&XE(this.preprocessor.peek(Gn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Gn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case N.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(At);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(At);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(At);break}case N.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===N.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Gn.SCRIPT,!1)&&XE(this.preprocessor.peek(Gn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Gn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._err(q.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:{this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.name+=At;break}default:this.currentAttr.name+=String.fromCodePoint(ju(t)?ph(t):t)}}_stateAfterAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case N.EQUALS_SIGN:{this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(q.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break}default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case N.QUOTATION_MARK:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=At;break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case N.APOSTROPHE:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=At;break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=At;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:case N.EQUALS_SIGN:case N.GRAVE_ACCENT:{this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case N.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case N.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case N.NULL:{this._err(q.unexpectedNullCharacter),n.data+=At;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Gn.DASH_DASH,!0)?(this._createCommentToken(Gn.DASH_DASH.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(Gn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Gn.DOCTYPE.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(Gn.CDATA_START,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken(Gn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err(q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case N.HYPHEN_MINUS:{this.state=A.COMMENT_START_DASH;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=A.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(n);break}case N.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=A.COMMENT_END_DASH;break}case N.LESS_THAN_SIGN:{n.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break}case N.NULL:{this._err(q.unexpectedNullCharacter),n.data+=At;break}case N.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case N.EXCLAMATION_MARK:{n.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break}case N.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===N.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===N.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==N.GREATER_THAN_SIGN&&t!==N.EOF&&this._err(q.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case N.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case N.EXCLAMATION_MARK:{this.state=A.COMMENT_END_BANG;break}case N.HYPHEN_MINUS:{n.data+="-";break}case N.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case N.HYPHEN_MINUS:{n.data+="--!",this.state=A.COMMENT_END_DASH;break}case N.GREATER_THAN_SIGN:{this._err(q.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(n);break}case N.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case N.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ju(t))this._createDoctypeToken(String.fromCharCode(ph(t))),this.state=A.DOCTYPE_NAME;else switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.NULL:{this._err(q.unexpectedNullCharacter),this._createDoctypeToken(At),this.state=A.DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this._err(q.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case N.EOF:{this._err(q.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=A.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.AFTER_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case N.NULL:{this._err(q.unexpectedNullCharacter),n.name+=At;break}case N.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ju(t)?ph(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case N.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Gn.PUBLIC,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Gn.SYSTEM,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(q.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case N.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case N.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=At;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case N.EOF:{this._err(q.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 N.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=At;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case N.EOF:{this._err(q.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case N.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case N.QUOTATION_MARK:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case N.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case N.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case N.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=At;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case N.EOF:{this._err(q.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 N.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=At;break}case N.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case N.EOF:{this._err(q.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case N.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case N.NULL:{this._err(q.unexpectedNullCharacter);break}case N.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case N.RIGHT_SQUARE_BRACKET:{this.state=A.CDATA_SECTION_BRACKET;break}case N.EOF:{this._err(q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===N.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case N.GREATER_THAN_SIGN:{this.state=A.DATA;break}case N.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=A.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(N.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&QE(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){QE(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===N.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const CR=new Set([g.DD,g.DT,g.LI,g.OPTGROUP,g.OPTION,g.P,g.RB,g.RP,g.RT,g.RTC]),JE=new Set([...CR,g.CAPTION,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]),Rf=new Set([g.APPLET,g.CAPTION,g.HTML,g.MARQUEE,g.OBJECT,g.TABLE,g.TD,g.TEMPLATE,g.TH]),jV=new Set([...Rf,g.OL,g.UL]),LV=new Set([...Rf,g.BUTTON]),ZE=new Set([g.ANNOTATION_XML,g.MI,g.MN,g.MO,g.MS,g.MTEXT]),e_=new Set([g.DESC,g.FOREIGN_OBJECT,g.TITLE]),MV=new Set([g.TR,g.TEMPLATE,g.HTML]),FV=new Set([g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML]),BV=new Set([g.TABLE,g.TEMPLATE,g.HTML]),UV=new Set([g.TD,g.TH]);class HV{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=g.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===g.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Z.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])!==Z.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(Ay,Z.HTML)}popUntilTableCellPopped(){this.popUntilPopped(UV,Z.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(BV,Z.HTML)}clearBackToTableBodyContext(){this.clearBackTo(FV,Z.HTML)}clearBackToTableRowContext(){this.clearBackTo(MV,Z.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]===g.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]===g.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 Z.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case Z.SVG:{if(e_.has(s))return!1;break}case Z.MATHML:{if(ZE.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Rf)}hasInListItemScope(t){return this.hasInDynamicScope(t,jV)}hasInButtonScope(t){return this.hasInDynamicScope(t,LV)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Z.HTML:{if(Ay.has(n))return!0;if(Rf.has(n))return!1;break}case Z.SVG:{if(e_.has(n))return!1;break}case Z.MATHML:{if(ZE.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Z.HTML)switch(this.tagIDs[t]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&CR.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&JE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&JE.has(this.currentTagId);)this.pop()}}const Eg=3;var ks;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ks||(ks={}));const t_={type:ks.Marker};class $V{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],s=n.length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===ks.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===a){const d=this.treeAdapter.getAttrList(c);d.length===s&&r.push({idx:o,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Eg)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Eg)return;const s=new Map(n.map(a=>[a.name,a.value]));let i=0;for(let a=0;a<r.length;a++){const o=r[a];o.attrs.every(u=>s.get(u.name)===u.value)&&(i+=1,i>=Eg&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(t_)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ks.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ks.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(t_);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ks.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ks.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ks.Element&&n.element===t)}}const ki={createDocument(){return{nodeName:"#document",mode:Br.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(i=>i.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ki.appendChild(e,i)}},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(ki.isTextNode(n)){n.value+=t;return}}ki.appendChild(e,ki.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ki.isTextNode(r)?r.value+=t:ki.insertBefore(e,ki.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}}},kR="html",zV="about:legacy-compat",VV="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",NR=["+//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//"],WV=[...NR,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],qV=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),AR=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],YV=[...AR,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function n_(e,t){return t.some(n=>e.startsWith(n))}function KV(e){return e.name===kR&&e.publicId===null&&(e.systemId===null||e.systemId===zV)}function GV(e){if(e.name!==kR)return Br.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===VV)return Br.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),qV.has(n))return Br.QUIRKS;let r=t===null?WV:NR;if(n_(n,r))return Br.QUIRKS;if(r=t===null?AR:YV,n_(n,r))return Br.LIMITED_QUIRKS}return Br.NO_QUIRKS}const r_={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},QV="definitionurl",XV="definitionURL",JV=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])),ZV=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Z.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Z.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Z.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Z.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Z.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Z.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Z.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Z.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Z.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Z.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Z.XMLNS}]]),eW=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])),tW=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function nW(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:r})=>r===Xa.COLOR||r===Xa.SIZE||r===Xa.FACE)||tW.has(t)}function RR(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===QV){e.attrs[t].name=XV;break}}function IR(e){for(let t=0;t<e.attrs.length;t++){const n=JV.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function $b(e){for(let t=0;t<e.attrs.length;t++){const n=ZV.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 rW(e){const t=eW.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=eu(e.tagName))}function sW(e,t){return t===Z.MATHML&&(e===g.MI||e===g.MO||e===g.MN||e===g.MS||e===g.MTEXT)}function iW(e,t,n){if(t===Z.MATHML&&e===g.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Xa.ENCODING){const s=n[r].value.toLowerCase();return s===r_.TEXT_HTML||s===r_.APPLICATION_XML}}return t===Z.SVG&&(e===g.FOREIGN_OBJECT||e===g.DESC||e===g.TITLE)}function aW(e,t,n,r){return(!r||r===Z.HTML)&&iW(e,t,n)||(!r||r===Z.MATHML)&&sW(e,t)}const oW="hidden",lW=8,uW=3;var O;(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"})(O||(O={}));const cW={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},OR=new Set([g.TABLE,g.TBODY,g.TFOOT,g.THEAD,g.TR]),s_={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ki,onParseError:null};class i_{constructor(t,n,r=null,s=null){this.fragmentContext=r,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=O.INITIAL,this.originalInsertionMode=O.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={...s_,...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 DV(this.options,this),this.activeFormattingElements=new $V(this.treeAdapter),this.fragmentContextID=r?eu(this.treeAdapter.getTagName(r)):g.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new HV(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={...s_,...n};t??(t=r.treeAdapter.createElement(H.TEMPLATE,Z.HTML,[]));const s=r.treeAdapter.createElement("documentmock",Z.HTML,[]),i=new this(r,s,t);return i.fragmentContextID===g.TEMPLATE&&i.tmplInsertionModeStack.unshift(O.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}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 i=(s=t.location)!==null&&s!==void 0?s:cW,a={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(t,n,r){var s,i;(i=(s=this.treeAdapter).onItemPush)===null||i===void 0||i.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 i,a;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,a=this.fragmentContextID):{current:i,currentTagId:a}=this.openElements,this._setContextModes(i,a)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Z.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Z.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=O.TEXT}switchToPlaintextParsing(){this.insertionMode=O.TEXT,this.originalInsertionMode=O.IN_BODY,this.tokenizer.state=Yt.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)===H.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Z.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=Yt.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=Yt.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=Yt.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=Yt.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 a=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));a&&this.treeAdapter.setNodeSourceCodeLocation(a,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,Z.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Z.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(H.HTML,Z.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,g.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),i=r?s.lastIndexOf(r):s.length,a=s[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:u,endCol:c,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:u,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,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),i=n.type===qe.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,i)}}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===g.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Z.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Z.HTML)}_processToken(t){switch(t.type){case qe.CHARACTER:{this.onCharacter(t);break}case qe.NULL_CHARACTER:{this.onNullCharacter(t);break}case qe.COMMENT:{this.onComment(t);break}case qe.DOCTYPE:{this.onDoctype(t);break}case qe.START_TAG:{this._processStartTag(t);break}case qe.END_TAG:{this.onEndTag(t);break}case qe.EOF:{this.onEof(t);break}case qe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const s=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return aW(t,s,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===ks.Marker||this.openElements.contains(s.element)),r=n===-1?t-1:n-1;for(let s=r;s>=0;s--){const i=this.activeFormattingElements.entries[s];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=O.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case g.TR:{this.insertionMode=O.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=O.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=O.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=O.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=O.IN_TABLE;return}case g.BODY:{this.insertionMode=O.IN_BODY;return}case g.FRAMESET:{this.insertionMode=O.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(t);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?O.AFTER_HEAD:O.BEFORE_HEAD;return}case g.TD:case g.TH:{if(t>0){this.insertionMode=O.IN_CELL;return}break}case g.HEAD:{if(t>0){this.insertionMode=O.IN_HEAD;return}break}}this.insertionMode=O.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===g.TEMPLATE)break;if(r===g.TABLE){this.insertionMode=O.IN_SELECT_IN_TABLE;return}}this.insertionMode=O.IN_SELECT}_isElementCausesFosterParenting(t){return OR.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 g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Z.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case g.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 RV[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Uq(this,t);return}switch(this.insertionMode){case O.INITIAL:{xu(this,t);break}case O.BEFORE_HTML:{Ju(this,t);break}case O.BEFORE_HEAD:{Zu(this,t);break}case O.IN_HEAD:{ec(this,t);break}case O.IN_HEAD_NO_SCRIPT:{tc(this,t);break}case O.AFTER_HEAD:{nc(this,t);break}case O.IN_BODY:case O.IN_CAPTION:case O.IN_CELL:case O.IN_TEMPLATE:{DR(this,t);break}case O.TEXT:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{_g(this,t);break}case O.IN_TABLE_TEXT:{UR(this,t);break}case O.IN_COLUMN_GROUP:{If(this,t);break}case O.AFTER_BODY:{Of(this,t);break}case O.AFTER_AFTER_BODY:{Uh(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Bq(this,t);return}switch(this.insertionMode){case O.INITIAL:{xu(this,t);break}case O.BEFORE_HTML:{Ju(this,t);break}case O.BEFORE_HEAD:{Zu(this,t);break}case O.IN_HEAD:{ec(this,t);break}case O.IN_HEAD_NO_SCRIPT:{tc(this,t);break}case O.AFTER_HEAD:{nc(this,t);break}case O.TEXT:{this._insertCharacters(t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{_g(this,t);break}case O.IN_COLUMN_GROUP:{If(this,t);break}case O.AFTER_BODY:{Of(this,t);break}case O.AFTER_AFTER_BODY:{Uh(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ry(this,t);return}switch(this.insertionMode){case O.INITIAL:case O.BEFORE_HTML:case O.BEFORE_HEAD:case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:case O.IN_BODY:case O.IN_TABLE:case O.IN_CAPTION:case O.IN_COLUMN_GROUP:case O.IN_TABLE_BODY:case O.IN_ROW:case O.IN_CELL:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:case O.IN_TEMPLATE:case O.IN_FRAMESET:case O.AFTER_FRAMESET:{Ry(this,t);break}case O.IN_TABLE_TEXT:{wu(this,t);break}case O.AFTER_BODY:{yW(this,t);break}case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{vW(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case O.INITIAL:{bW(this,t);break}case O.BEFORE_HEAD:case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:{this._err(t,q.misplacedDoctype);break}case O.IN_TABLE_TEXT:{wu(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Hq(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case O.INITIAL:{xu(this,t);break}case O.BEFORE_HTML:{xW(this,t);break}case O.BEFORE_HEAD:{EW(this,t);break}case O.IN_HEAD:{bs(this,t);break}case O.IN_HEAD_NO_SCRIPT:{SW(this,t);break}case O.AFTER_HEAD:{kW(this,t);break}case O.IN_BODY:{Ln(this,t);break}case O.IN_TABLE:{Pl(this,t);break}case O.IN_TABLE_TEXT:{wu(this,t);break}case O.IN_CAPTION:{_q(this,t);break}case O.IN_COLUMN_GROUP:{Wb(this,t);break}case O.IN_TABLE_BODY:{Jp(this,t);break}case O.IN_ROW:{Zp(this,t);break}case O.IN_CELL:{Cq(this,t);break}case O.IN_SELECT:{zR(this,t);break}case O.IN_SELECT_IN_TABLE:{Nq(this,t);break}case O.IN_TEMPLATE:{Rq(this,t);break}case O.AFTER_BODY:{Oq(this,t);break}case O.IN_FRAMESET:{Pq(this,t);break}case O.AFTER_FRAMESET:{jq(this,t);break}case O.AFTER_AFTER_BODY:{Mq(this,t);break}case O.AFTER_AFTER_FRAMESET:{Fq(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?$q(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case O.INITIAL:{xu(this,t);break}case O.BEFORE_HTML:{wW(this,t);break}case O.BEFORE_HEAD:{_W(this,t);break}case O.IN_HEAD:{TW(this,t);break}case O.IN_HEAD_NO_SCRIPT:{CW(this,t);break}case O.AFTER_HEAD:{NW(this,t);break}case O.IN_BODY:{Xp(this,t);break}case O.TEXT:{fq(this,t);break}case O.IN_TABLE:{Hc(this,t);break}case O.IN_TABLE_TEXT:{wu(this,t);break}case O.IN_CAPTION:{Tq(this,t);break}case O.IN_COLUMN_GROUP:{Sq(this,t);break}case O.IN_TABLE_BODY:{Iy(this,t);break}case O.IN_ROW:{$R(this,t);break}case O.IN_CELL:{kq(this,t);break}case O.IN_SELECT:{VR(this,t);break}case O.IN_SELECT_IN_TABLE:{Aq(this,t);break}case O.IN_TEMPLATE:{Iq(this,t);break}case O.AFTER_BODY:{qR(this,t);break}case O.IN_FRAMESET:{Dq(this,t);break}case O.AFTER_FRAMESET:{Lq(this,t);break}case O.AFTER_AFTER_BODY:{Uh(this,t);break}}}onEof(t){switch(this.insertionMode){case O.INITIAL:{xu(this,t);break}case O.BEFORE_HTML:{Ju(this,t);break}case O.BEFORE_HEAD:{Zu(this,t);break}case O.IN_HEAD:{ec(this,t);break}case O.IN_HEAD_NO_SCRIPT:{tc(this,t);break}case O.AFTER_HEAD:{nc(this,t);break}case O.IN_BODY:case O.IN_TABLE:case O.IN_CAPTION:case O.IN_COLUMN_GROUP:case O.IN_TABLE_BODY:case O.IN_ROW:case O.IN_CELL:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:{FR(this,t);break}case O.TEXT:{pq(this,t);break}case O.IN_TABLE_TEXT:{wu(this,t);break}case O.IN_TEMPLATE:{WR(this,t);break}case O.AFTER_BODY:case O.IN_FRAMESET:case O.AFTER_FRAMESET:case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{Vb(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===N.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 O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:case O.TEXT:case O.IN_COLUMN_GROUP:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:case O.IN_FRAMESET:case O.AFTER_FRAMESET:{this._insertCharacters(t);break}case O.IN_BODY:case O.IN_CAPTION:case O.IN_CELL:case O.IN_TEMPLATE:case O.AFTER_BODY:case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{PR(this,t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{_g(this,t);break}case O.IN_TABLE_TEXT:{BR(this,t);break}}}}function dW(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):MR(e,t),n}function hW(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 fW(e,t,n){let r=t,s=e.openElements.getCommonAncestor(t);for(let i=0,a=s;a!==n;i++,a=s){s=e.openElements.getCommonAncestor(a);const o=e.activeFormattingElements.getElementEntry(a),u=o&&i>=uW;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(a)):(a=pW(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function pW(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 mW(e,t,n){const r=e.treeAdapter.getTagName(t),s=eu(r);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);s===g.TEMPLATE&&i===Z.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function gW(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,i=e.treeAdapter.createElement(s.tagName,r,s.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,s.tagID)}function zb(e,t){for(let n=0;n<lW;n++){const r=dW(e,t);if(!r)break;const s=hW(e,r);if(!s)break;e.activeFormattingElements.bookmark=r;const i=fW(e,s,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),a&&mW(e,a,i),gW(e,s,r)}}function Ry(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function yW(e,t){e._appendCommentNode(t,e.openElements.items[0])}function vW(e,t){e._appendCommentNode(t,e.document)}function Vb(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 i=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(i);a&&!a.endTag&&e._setEndLocation(i,t)}}}}function bW(e,t){e._setDocumentType(t);const n=t.forceQuirks?Br.QUIRKS:GV(t);KV(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=O.BEFORE_HTML}function xu(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Br.QUIRKS),e.insertionMode=O.BEFORE_HTML,e._processToken(t)}function xW(e,t){t.tagID===g.HTML?(e._insertElement(t,Z.HTML),e.insertionMode=O.BEFORE_HEAD):Ju(e,t)}function wW(e,t){const n=t.tagID;(n===g.HTML||n===g.HEAD||n===g.BODY||n===g.BR)&&Ju(e,t)}function Ju(e,t){e._insertFakeRootElement(),e.insertionMode=O.BEFORE_HEAD,e._processToken(t)}function EW(e,t){switch(t.tagID){case g.HTML:{Ln(e,t);break}case g.HEAD:{e._insertElement(t,Z.HTML),e.headElement=e.openElements.current,e.insertionMode=O.IN_HEAD;break}default:Zu(e,t)}}function _W(e,t){const n=t.tagID;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?Zu(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function Zu(e,t){e._insertFakeElement(H.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=O.IN_HEAD,e._processToken(t)}function bs(e,t){switch(t.tagID){case g.HTML:{Ln(e,t);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,Yt.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Yt.RAWTEXT):(e._insertElement(t,Z.HTML),e.insertionMode=O.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,Yt.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,Yt.SCRIPT_DATA);break}case g.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=O.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(O.IN_TEMPLATE);break}case g.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:ec(e,t)}}function TW(e,t){switch(t.tagID){case g.HEAD:{e.openElements.pop(),e.insertionMode=O.AFTER_HEAD;break}case g.BODY:case g.BR:case g.HTML:{ec(e,t);break}case g.TEMPLATE:{vo(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function vo(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function ec(e,t){e.openElements.pop(),e.insertionMode=O.AFTER_HEAD,e._processToken(t)}function SW(e,t){switch(t.tagID){case g.HTML:{Ln(e,t);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{bs(e,t);break}case g.NOSCRIPT:{e._err(t,q.nestedNoscriptInHead);break}default:tc(e,t)}}function CW(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=O.IN_HEAD;break}case g.BR:{tc(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function tc(e,t){const n=t.type===qe.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=O.IN_HEAD,e._processToken(t)}function kW(e,t){switch(t.tagID){case g.HTML:{Ln(e,t);break}case g.BODY:{e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=O.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,Z.HTML),e.insertionMode=O.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),bs(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:nc(e,t)}}function NW(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{nc(e,t);break}case g.TEMPLATE:{vo(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function nc(e,t){e._insertFakeElement(H.BODY,g.BODY),e.insertionMode=O.IN_BODY,Qp(e,t)}function Qp(e,t){switch(t.type){case qe.CHARACTER:{DR(e,t);break}case qe.WHITESPACE_CHARACTER:{PR(e,t);break}case qe.COMMENT:{Ry(e,t);break}case qe.START_TAG:{Ln(e,t);break}case qe.END_TAG:{Xp(e,t);break}case qe.EOF:{FR(e,t);break}}}function PR(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function DR(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function AW(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function RW(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function IW(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Z.HTML),e.insertionMode=O.IN_FRAMESET)}function OW(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function PW(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Ay.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Z.HTML)}function DW(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function jW(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,Z.HTML),n||(e.formElement=e.openElements.current))}function LW(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===g.LI&&s===g.LI||(n===g.DD||n===g.DT)&&(s===g.DD||s===g.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==g.ADDRESS&&s!==g.DIV&&s!==g.P&&e._isSpecialElement(e.openElements.items[r],s))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function MW(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.tokenizer.state=Yt.PLAINTEXT}function FW(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1}function BW(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(zb(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function UW(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function HW(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(zb(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $W(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function zW(e,t){e.treeAdapter.getDocumentMode(e.document)!==Br.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=O.IN_TABLE}function jR(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function LR(e){const t=TR(e,Xa.TYPE);return t!=null&&t.toLowerCase()===oW}function VW(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),LR(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function WW(e,t){e._appendElement(t,Z.HTML),t.ackSelfClosing=!0}function qW(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function YW(e,t){t.tagName=H.IMG,t.tagID=g.IMG,jR(e,t)}function KW(e,t){e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Yt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=O.TEXT}function GW(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Yt.RAWTEXT)}function QW(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Yt.RAWTEXT)}function a_(e,t){e._switchToTextParsing(t,Yt.RAWTEXT)}function XW(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===O.IN_TABLE||e.insertionMode===O.IN_CAPTION||e.insertionMode===O.IN_TABLE_BODY||e.insertionMode===O.IN_ROW||e.insertionMode===O.IN_CELL?O.IN_SELECT_IN_TABLE:O.IN_SELECT}function JW(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function ZW(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Z.HTML)}function eq(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,Z.HTML)}function tq(e,t){e._reconstructActiveFormattingElements(),RR(t),$b(t),t.selfClosing?e._appendElement(t,Z.MATHML):e._insertElement(t,Z.MATHML),t.ackSelfClosing=!0}function nq(e,t){e._reconstructActiveFormattingElements(),IR(t),$b(t),t.selfClosing?e._appendElement(t,Z.SVG):e._insertElement(t,Z.SVG),t.ackSelfClosing=!0}function o_(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function Ln(e,t){switch(t.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{UW(e,t);break}case g.A:{BW(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{PW(e,t);break}case g.P:case g.DL:case g.OL:case g.UL:case g.DIV:case g.DIR:case g.NAV:case g.MAIN:case g.MENU:case g.ASIDE:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.DETAILS:case g.ADDRESS:case g.ARTICLE:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{OW(e,t);break}case g.LI:case g.DD:case g.DT:{LW(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{jR(e,t);break}case g.HR:{qW(e,t);break}case g.RB:case g.RTC:{ZW(e,t);break}case g.RT:case g.RP:{eq(e,t);break}case g.PRE:case g.LISTING:{DW(e,t);break}case g.XMP:{GW(e,t);break}case g.SVG:{nq(e,t);break}case g.HTML:{AW(e,t);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{bs(e,t);break}case g.BODY:{RW(e,t);break}case g.FORM:{jW(e,t);break}case g.NOBR:{HW(e,t);break}case g.MATH:{tq(e,t);break}case g.TABLE:{zW(e,t);break}case g.INPUT:{VW(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{WW(e,t);break}case g.IMAGE:{YW(e,t);break}case g.BUTTON:{FW(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{$W(e,t);break}case g.IFRAME:{QW(e,t);break}case g.SELECT:{XW(e,t);break}case g.OPTION:case g.OPTGROUP:{JW(e,t);break}case g.NOEMBED:case g.NOFRAMES:{a_(e,t);break}case g.FRAMESET:{IW(e,t);break}case g.TEXTAREA:{KW(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?a_(e,t):o_(e,t);break}case g.PLAINTEXT:{MW(e,t);break}case g.COL:case g.TH:case g.TD:case g.TR:case g.HEAD:case g.FRAME:case g.TBODY:case g.TFOOT:case g.THEAD:case g.CAPTION:case g.COLGROUP:break;default:o_(e,t)}}function rq(e,t){if(e.openElements.hasInScope(g.BODY)&&(e.insertionMode=O.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function sq(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=O.AFTER_BODY,qR(e,t))}function iq(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function aq(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):n&&e.openElements.remove(n))}function oq(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(H.P,g.P),e._closePElement()}function lq(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function uq(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function cq(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function dq(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function hq(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function MR(e,t){const n=t.tagName,r=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const i=e.openElements.items[s],a=e.openElements.tagIDs[s];if(r===a&&(r!==g.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(i,a))break}}function Xp(e,t){switch(t.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{zb(e,t);break}case g.P:{oq(e);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{iq(e,t);break}case g.LI:{lq(e);break}case g.DD:case g.DT:{uq(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{cq(e);break}case g.BR:{hq(e);break}case g.BODY:{rq(e,t);break}case g.HTML:{sq(e,t);break}case g.FORM:{aq(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{dq(e,t);break}case g.TEMPLATE:{vo(e,t);break}default:MR(e,t)}}function FR(e,t){e.tmplInsertionModeStack.length>0?WR(e,t):Vb(e,t)}function fq(e,t){var n;t.tagID===g.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function pq(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function _g(e,t){if(e.openElements.currentTagId!==void 0&&OR.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=O.IN_TABLE_TEXT,t.type){case qe.CHARACTER:{UR(e,t);break}case qe.WHITESPACE_CHARACTER:{BR(e,t);break}}else xd(e,t)}function mq(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Z.HTML),e.insertionMode=O.IN_CAPTION}function gq(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=O.IN_COLUMN_GROUP}function yq(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,g.COLGROUP),e.insertionMode=O.IN_COLUMN_GROUP,Wb(e,t)}function vq(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=O.IN_TABLE_BODY}function bq(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,g.TBODY),e.insertionMode=O.IN_TABLE_BODY,Jp(e,t)}function xq(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function wq(e,t){LR(t)?e._appendElement(t,Z.HTML):xd(e,t),t.ackSelfClosing=!0}function Eq(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Z.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Pl(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{bq(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{bs(e,t);break}case g.COL:{yq(e,t);break}case g.FORM:{Eq(e,t);break}case g.TABLE:{xq(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{vq(e,t);break}case g.INPUT:{wq(e,t);break}case g.CAPTION:{mq(e,t);break}case g.COLGROUP:{gq(e,t);break}default:xd(e,t)}}function Hc(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{vo(e,t);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:xd(e,t)}}function xd(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Qp(e,t),e.fosterParentingEnabled=n}function BR(e,t){e.pendingCharacterTokens.push(t)}function UR(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function wu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)xd(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const HR=new Set([g.CAPTION,g.COL,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]);function _q(e,t){const n=t.tagID;HR.has(n)?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_TABLE,Pl(e,t)):Ln(e,t)}function Tq(e,t){const n=t.tagID;switch(n){case g.CAPTION:case g.TABLE:{e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_TABLE,n===g.TABLE&&Hc(e,t));break}case g.BODY:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Xp(e,t)}}function Wb(e,t){switch(t.tagID){case g.HTML:{Ln(e,t);break}case g.COL:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case g.TEMPLATE:{bs(e,t);break}default:If(e,t)}}function Sq(e,t){switch(t.tagID){case g.COLGROUP:{e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=O.IN_TABLE);break}case g.TEMPLATE:{vo(e,t);break}case g.COL:break;default:If(e,t)}}function If(e,t){e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=O.IN_TABLE,e._processToken(t))}function Jp(e,t){switch(t.tagID){case g.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Z.HTML),e.insertionMode=O.IN_ROW;break}case g.TH:case g.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(H.TR,g.TR),e.insertionMode=O.IN_ROW,Zp(e,t);break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE,Pl(e,t));break}default:Pl(e,t)}}function Iy(e,t){const n=t.tagID;switch(t.tagID){case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE);break}case g.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE,Hc(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:case g.TR:break;default:Hc(e,t)}}function Zp(e,t){switch(t.tagID){case g.TH:case g.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Z.HTML),e.insertionMode=O.IN_CELL,e.activeFormattingElements.insertMarker();break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY,Jp(e,t));break}default:Pl(e,t)}}function $R(e,t){switch(t.tagID){case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY);break}case g.TABLE:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY,Iy(e,t));break}case g.TBODY:case g.TFOOT:case g.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY,Iy(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:break;default:Hc(e,t)}}function Cq(e,t){const n=t.tagID;HR.has(n)?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),Zp(e,t)):Ln(e,t)}function kq(e,t){const n=t.tagID;switch(n){case g.TD:case g.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_ROW);break}case g.TABLE:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),$R(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:break;default:Xp(e,t)}}function zR(e,t){switch(t.tagID){case g.HTML:{Ln(e,t);break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._insertElement(t,Z.HTML);break}case g.OPTGROUP:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Z.HTML);break}case g.HR:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case g.INPUT:case g.KEYGEN:case g.TEXTAREA:case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),t.tagID!==g.SELECT&&e._processStartTag(t));break}case g.SCRIPT:case g.TEMPLATE:{bs(e,t);break}}}function VR(e,t){switch(t.tagID){case g.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===g.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop();break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop();break}case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode());break}case g.TEMPLATE:{vo(e,t);break}}}function Nq(e,t){const n=t.tagID;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processStartTag(t)):zR(e,t)}function Aq(e,t){const n=t.tagID;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e.onEndTag(t)):VR(e,t)}function Rq(e,t){switch(t.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{bs(e,t);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.tmplInsertionModeStack[0]=O.IN_TABLE,e.insertionMode=O.IN_TABLE,Pl(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=O.IN_COLUMN_GROUP,e.insertionMode=O.IN_COLUMN_GROUP,Wb(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=O.IN_TABLE_BODY,e.insertionMode=O.IN_TABLE_BODY,Jp(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=O.IN_ROW,e.insertionMode=O.IN_ROW,Zp(e,t);break}default:e.tmplInsertionModeStack[0]=O.IN_BODY,e.insertionMode=O.IN_BODY,Ln(e,t)}}function Iq(e,t){t.tagID===g.TEMPLATE&&vo(e,t)}function WR(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Vb(e,t)}function Oq(e,t){t.tagID===g.HTML?Ln(e,t):Of(e,t)}function qR(e,t){var n;if(t.tagID===g.HTML){if(e.fragmentContext||(e.insertionMode=O.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===g.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 Of(e,t)}function Of(e,t){e.insertionMode=O.IN_BODY,Qp(e,t)}function Pq(e,t){switch(t.tagID){case g.HTML:{Ln(e,t);break}case g.FRAMESET:{e._insertElement(t,Z.HTML);break}case g.FRAME:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{bs(e,t);break}}}function Dq(e,t){t.tagID===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==g.FRAMESET&&(e.insertionMode=O.AFTER_FRAMESET))}function jq(e,t){switch(t.tagID){case g.HTML:{Ln(e,t);break}case g.NOFRAMES:{bs(e,t);break}}}function Lq(e,t){t.tagID===g.HTML&&(e.insertionMode=O.AFTER_AFTER_FRAMESET)}function Mq(e,t){t.tagID===g.HTML?Ln(e,t):Uh(e,t)}function Uh(e,t){e.insertionMode=O.IN_BODY,Qp(e,t)}function Fq(e,t){switch(t.tagID){case g.HTML:{Ln(e,t);break}case g.NOFRAMES:{bs(e,t);break}}}function Bq(e,t){t.chars=At,e._insertCharacters(t)}function Uq(e,t){e._insertCharacters(t),e.framesetOk=!1}function YR(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Z.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Hq(e,t){if(nW(t))YR(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Z.MATHML?RR(t):r===Z.SVG&&(rW(t),IR(t)),$b(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function $q(e,t){if(t.tagID===g.P||t.tagID===g.BR){YR(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)===Z.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(r);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR;const zq=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Vq=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),l_={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function KR(e,t){const n=eY(e),r=bR("type",{handlers:{root:Wq,element:qq,text:Yq,comment:QR,doctype:Kq,raw:Qq},unknown:Xq}),s={parser:n?new i_(l_):i_.getFragmentParser(void 0,l_),handle(o){r(o,s)},stitches:!1,options:t||{}};r(e,s),tu(s,qs());const i=n?s.parser.document:s.parser.getFragment(),a=tV(i,{file:s.options.file});return s.stitches&&Fb(a,"comment",function(o,u,c){const d=o;if(d.value.stitch&&c&&u!==void 0){const h=c.children;return h[u]=d.value.stitch,u}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function GR(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Wq(e,t){GR(e.children,t)}function qq(e,t){Jq(e,t),GR(e.children,t),Zq(e,t)}function Yq(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:qe.CHARACTER,chars:e.value,location:wd(e)};tu(t,qs(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Kq(e,t){const n={type:qe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:wd(e)};tu(t,qs(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Gq(e,t){t.stitches=!0;const n=tY(e);if("children"in e&&"children"in n){const r=KR({type:"root",children:e.children},t.options);n.children=r.children}QR({type:"comment",value:{stitch:n}},t)}function QR(e,t){const n=e.value,r={type:qe.COMMENT,data:n,location:wd(e)};tu(t,qs(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Qq(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,XR(t,qs(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(zq,"&lt;$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 Xq(e,t){const n=e;
vendor: 4,254 bytes, line 438
438if(t.options.passThrough&&t.options.passThrough.includes(n.type))Gq(n,t);else{let r="";throw Vq.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 tu(e,t){XR(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=Yt.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 XR(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 Jq(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Yt.PLAINTEXT)return;tu(t,qs(e));const r=t.parser.openElements.current;let s="namespaceURI"in r?r.namespaceURI:Ma.html;s===Ma.html&&n==="svg"&&(s=Ma.svg);const i=aV({...e,children:[]},{space:s===Ma.svg?"svg":"html"}),a={type:qe.START_TAG,tagName:n,tagID:eu(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:wd(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Zq(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&pV.includes(n)||t.parser.tokenizer.state===Yt.PLAINTEXT)return;tu(t,qp(e));const r={type:qe.END_TAG,tagName:n,tagID:eu(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:wd(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Yt.RCDATA||t.parser.tokenizer.state===Yt.RAWTEXT||t.parser.tokenizer.state===Yt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Yt.DATA)}function eY(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function wd(e){const t=qs(e)||{line:void 0,column:void 0,offset:void 0},n=qp(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 tY(e){return"children"in e?Ol({...e,children:[]}):Ol(e)}function JR(e){return function(t,n){return KR(t,{...e,file:n})}}var em="Collapsible",[nY,ZR]=Kr(em),[rY,qb]=nY(em),eI=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:a,...o}=e,[u,c]=Bs({prop:r,defaultProp:s??!1,onChange:a,caller:em});return l.jsx(rY,{scope:n,disabled:i,contentId:ai(),open:u,onOpenToggle:y.useCallback(()=>c(d=>!d),[c]),children:l.jsx(De.div,{"data-state":Kb(u),"data-disabled":i?"":void 0,...o,ref:t})})});eI.displayName=em;var tI="CollapsibleTrigger",nI=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=qb(tI,n);return l.jsx(De.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Kb(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:Ce(e.onClick,s.onOpenToggle)})});nI.displayName=tI;var Yb="CollapsibleContent",rI=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=qb(Yb,e.__scopeCollapsible);return l.jsx(ya,{present:n||s.open,children:({present:i})=>l.jsx(sY,{...r,ref:t,present:i})})});rI.displayName=Yb;var sY=y.forwardRef((e,t)=>
vendor: 4,201 bytes, line 438
438{const{__scopeCollapsible:n,present:r,children:s,...i}=e,a=qb(Yb,n),[o,u]=y.useState(r),c=y.useRef(null),d=tt(t,c),h=y.useRef(0),p=h.current,f=y.useRef(0),w=f.current,m=a.open||o,x=y.useRef(m),v=y.useRef(void 0);return y.useEffect(()=>{const b=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(b)},[]),xn(()=>{const b=c.current;if(b){v.current=v.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const E=b.getBoundingClientRect();h.current=E.height,f.current=E.width,x.current||(b.style.transitionDuration=v.current.transitionDuration,b.style.animationName=v.current.animationName),u(r)}},[a.open,r]),l.jsx(De.div,{"data-state":Kb(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...i,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:m&&s})});function Kb(e){return e?"open":"closed"}var iY=eI,aY=nI,oY=rI,xs="Accordion",lY=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Gb,uY,cY]=hp(xs),[tm,nZ]=Kr(xs,[cY,ZR]),Qb=ZR(),sI=W.forwardRef((e,t)=>{const{type:n,...r}=e,s=r,i=r;return l.jsx(Gb.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?l.jsx(pY,{...i,ref:t}):l.jsx(fY,{...s,ref:t})})});sI.displayName=xs;var[iI,dY]=tm(xs),[aI,hY]=tm(xs,{collapsible:!1}),fY=W.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:i=!1,...a}=e,[o,u]=Bs({prop:n,defaultProp:r??"",onChange:s,caller:xs});return l.jsx(iI,{scope:e.__scopeAccordion,value:W.useMemo(()=>o?[o]:[],[o]),onItemOpen:u,onItemClose:W.useCallback(()=>i&&u(""),[i,u]),children:l.jsx(aI,{scope:e.__scopeAccordion,collapsible:i,children:l.jsx(oI,{...a,ref:t})})})}),pY=W.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},...i}=e,[a,o]=Bs({prop:n,defaultProp:r??[],onChange:s,caller:xs}),u=W.useCallback(d=>o((h=[])=>[...h,d]),[o]),c=W.useCallback(d=>o((h=[])=>h.filter(p=>p!==d)),[o]);return l.jsx(iI,{scope:e.__scopeAccordion,value:a,onItemOpen:u,onItemClose:c,children:l.jsx(aI,{scope:e.__scopeAccordion,collapsible:!0,children:l.jsx(oI,{...i,ref:t})})})}),[mY,nm]=tm(xs),oI=W.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:s,orientation:i="vertical",...a}=e,o=W.useRef(null),u=tt(o,t),c=uY(n),h=Lp(s)==="ltr",p=Ce(e.onKeyDown,f=>{var P;if(!lY.includes(f.key))return;const w=f.target,m=c().filter(M=>{var F;return!((F=M.ref.current)!=null&&F.disabled)}),x=m.findIndex(M=>M.ref.current===w),v=m.length;if(x===-1)return;f.preventDefault();let b=x;const E=0,T=v-1,C=()=>{b=x+1,b>T&&(b=E)},_=()=>{b=x-1,b<E&&(b=T)};switch(f.key){case"Home":b=E;break;case"End":b=T;break;case"ArrowRight":i==="horizontal"&&(h?C():_());break;case"ArrowDown":i==="vertical"&&C();break;case"ArrowLeft":i==="horizontal"&&(h?_():C());break;case"ArrowUp":i==="vertical"&&_();break}const k=b%v;(P=m[k].ref.current)==null||P.focus()});return l.jsx(mY,{scope:n,disabled:r,direction:s,orientation:i,children:l.jsx(Gb.Slot,{scope:n,children:l.jsx(De.div,{...a,"data-orientation":i,ref:u,onKeyDown:r?void 0:p})})})}),Pf="AccordionItem",[gY,Xb]=tm(Pf),lI=W.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...s}=e,i=nm(Pf,n),a=dY(Pf,n),o=Qb(n),u=ai(),c=r&&a.value.includes(r)||!1,d=i.disabled||e.disabled;return l.jsx(gY,{scope:n,open:c,disabled:d,triggerId:u,children:l.jsx(iY,{"data-orientation":i.orientation,"data-state":pI(c),...o,...s,ref:t,disabled:d,open:c,onOpenChange:h=>{h?a.onItemOpen(r):a.onItemClose(r)}})})});lI.displayName=Pf;var uI="AccordionHeader",cI=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=nm(xs,n),i=Xb(uI,n);return l.jsx(De.h3,{"data-orientation":s.orientation,"data-state":pI(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});cI.displayName=uI;var Oy="AccordionTrigger",dI=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=nm(xs,n),i=Xb(Oy,n),a=hY(Oy,n),o=Qb(n);return l.jsx(Gb.ItemSlot,{scope:n,children:l.jsx(aY,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...o,...r,ref:t})})});dI.displayName=Oy;var hI="AccordionContent",fI=W.forwardRef((e,t)=>
438{const{__scopeAccordion:n,...r}=e,s=nm(xs,n),i=Xb(hI,n),a=Qb(n);return l.jsx(oY,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});fI.displayName=hI;function pI(e){return e?"open":"closed"}var yY=sI,vY=lI,bY=cI,mI=dI,gI=fI;const xY=yY,yI=y.forwardRef(({className:e,...t},n)=>l.jsx(vY,{ref:n,className:be("border-b",e),...t}));yI.displayName="AccordionItem";const vI=y.forwardRef(({className:e,children:t,...n},r)=>l.jsx(bY,{className:"flex",children:l.jsxs(mI,{ref:r,className:be("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,l.jsx(gp,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));vI.displayName=mI.displayName;const bI=y.forwardRef(({className:e,children:t,...n},r)=>l.jsx(gI,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:l.jsx("div",{className:be("pb-4 pt-0",e),children:t})}));bI.displayName=gI.displayName;function Ed({title:e="Frequently Asked Questions",subtitle:t,items:n,includeStructuredData:r=!0,className:s=""}){const i=Ws(),[a,o]=y.useState(void 0);return y.useEffect(()=>{var c;const u=(c=i.hash)==null?void 0:c.slice(1);u&&n.find(h=>(h.id||"")===u)&&o(u)},[i.hash,n]),n.length===0?null:l.jsxs("section",{className:`py-16 ${s}`,"aria-labelledby":"faq-heading",children:[r&&l.jsx(OA,{data:{"@type":"FAQPage",mainEntity:n}}),l.jsx("div",{className:"container",children:l.jsxs("div",{className:"mx-auto max-w-3xl",children:[l.jsxs("div",{className:"mb-8 text-center",children:[l.jsx("h2",{id:"faq-heading",className:"text-3xl font-bold text-foreground mb-2",children:e}),t&&l.jsx("p",{className:"text-muted-foreground",children:t})]}),l.jsx(xY,{type:"single",collapsible:!0,className:"w-full",value:a,onValueChange:o,children:n.map((u,c)=>{const d=u.id||`faq-${c}`;return l.jsxs(yI,{value:d,id:d,children:[l.jsx(vI,{className:"text-left text-foreground hover:text-primary",children:u.question}),l.jsx(bI,{className:"text-muted-foreground prose prose-sm prose-slate dark:prose-invert max-w-none prose-a:text-primary prose-a:no-underline hover:prose-a:underline",children:l.jsx(mR,{rehypePlugins:[JR],children:u.answer})})]},c)})})]})})]})}const wY="/assets/hero-dinner--3Reh1Pg.jpg",EY="/assets/dinner-place-setting-CQNqKtSL.jpg",_Y="/assets/dinner-networking-v_mgN6Sx.jpg",TY="/assets/dinner-founders-smiling-CiH3Plnu.jpg",SY="/assets/dinner-meetandeat-6aDYHS9P.jpg",CY=[{icon:Us,title:"Curated Dinners",description:"Small, invite-only dinners bringing startup founders together with investors and experienced operators for open, thoughtful conversation.",link:"/events",cta:"View dinners"},{icon:QD,title:"Services & Tools",description:"Practical tools and services across legal, finance, hiring, and fundraising – from free templates to ongoing operational support.",link:"/resources",cta:"Founder services & tools"},{icon:bp,title:"Join TableCrowd",description:"Leave your details to receive dinner invitations and meet founders at the table.",link:null,cta:"Join TableCrowd"}],kY=[{question:"What is TableCrowd?",answer:"TableCrowd hosts curated, invite-only dinners that bring startup founders together with investors and experienced operators for face-to-face conversation. The focus is on thoughtful discussion and building long-term relationships in person."},{question:"Who is TableCrowd for?",answer:"TableCrowd is for startup founders, CEOs, and senior operators building early-stage and growth-stage companies. Attendees come from a range of sectors and backgrounds, with a shared interest in learning from the speaker and peers around the table."},{question:"How do TableCrowd dinners work?",answer:"Each dinner brings together a small group of founders, typically 10–20 people, seated around the table in a relaxed and informal setting. Every dinner includes a guest speaker – usually a foun
438der or investor – who shares their experience, followed by open discussion over food. Our experienced hosts - who are usually founders themselves - ensure all guests are looked after and the evening runs smoothly."},{question:"Are TableCrowd events sales or pitch-focused?",answer:"No. TableCrowd dinners are not pitch events and are not designed for selling. There are no slides or PowerPoint presentations, and the emphasis is on open discussion, learning, shared experiences, and genuine connection."},{question:"How do I get invited to a TableCrowd dinner?",answer:"You can apply to attend a specific dinner through the TableCrowd website. Places are limited, and attendance is subject to approval. Once approved, your place is confirmed."},{question:"Does TableCrowd offer services beyond dinners?",answer:"Yes. Alongside dinners, TableCrowd provides practical resources and services across legal, finance, hiring, and fundraising – from free templates to ongoing operational support."}];function NY(){const{openLeadCapture:e}=kp();return l.jsxs(Vr,{children:[l.jsx(wa,{title:"TableCrowd | Where Founders Connect, Learn & Grow",description:"Join TableCrowd's private founder community. Access curated networking dinners, investor introductions, and exclusive resources for technology founders.",canonicalPath:"/"}),l.jsx(OA,{data:lU}),l.jsx("section",{className:"relative overflow-hidden bg-gradient-to-b from-muted/50 to-background py-20 md:py-32",children:l.jsx("div",{className:"container",children:l.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[l.jsxs("h1",{className:"mb-6 text-4xl font-bold tracking-tight text-foreground md:text-5xl lg:text-6xl",children:["Curated dinners for"," ",l.jsx("span",{className:"text-primary",children:"startup founders"})]}),l.jsx("p",{className:"mb-8 text-lg text-muted-foreground md:text-xl",children:"TableCrowd hosts curated, invite-only dinners that bring startup founders together with investors and experienced operators. The dinners are designed for open conversation and relationship-building in a relaxed, in-person setting."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsx(Ve,{asChild:!0,size:"lg",className:"text-base bg-accent text-accent-foreground hover:bg-accent/90",children:l.jsxs(Cr,{to:"/events",children:["Book a dinner",l.jsx(Zd,{className:"ml-2 h-4 w-4"})]})}),l.jsx(Ve,{asChild:!0,variant:"outline",size:"lg",className:"text-base",children:l.jsx(Cr,{to:"/resources",children:"Founder services & tools"})})]})]})})}),l.jsx("section",{className:"py-0",children:l.jsx("div",{className:"container max-w-5xl",children:l.jsx("img",{src:wY,alt:"Founders gathered around the table at a TableCrowd dinner",className:"w-full rounded-2xl shadow-lg object-cover max-h-[420px]",loading:"lazy"})})}),l.jsx("section",{className:"py-16 md:py-24",children:l.jsxs("div",{className:"container",children:[l.jsxs("div",{className:"mb-12 text-center",children:[l.jsx("h2",{className:"mb-4 text-3xl font-bold text-foreground md:text-4xl",children:"What TableCrowd Offers"}),l.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:"Dinners are at the heart of TableCrowd, supported by practical tools and ongoing support beyond the table."})]}),l.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:CY.map(t=>l.jsxs(qt,{className:"group transition-all hover:shadow-lg hover:border-primary/20",children:[l.jsxs(nr,{children:[l.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10 text-primary group-hover:bg-primary group-hover:text-primary-foreground transition-colors",children:l.jsx(t.icon,{className:"h-6 w-6"})}),l.jsx(rr,{className:"text-xl",children:t.title}),l.jsx(yr,{className:"text-base",children:t.description})]}),l.jsx(Zt,{children:t.link?l.jsxs(Cr,{to:t.link,className:"inline-flex items-center text-sm font-medium text-accent hover:underline",children:[t.cta,l.jsx(Zd,{className:"ml-1 h-4 w-4"})]}):l.jsxs("button",{onClick:e,className:"inline-flex items-center text-sm font-medium text-accent hover:underline",children:[t.cta,l.jsx(Zd,{className:"ml-1 h-4 w-4"})]})})]},t.title))})]})}),l.jsx("section",{className:"py-12 md:py-16",children:l.jsx("div",{className:"container",children:l.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[EY,_Y,SY,TY].map((t,n)=>l.jsx("div",{className:"overflow-hidden rounded-xl aspect-[4/3]",children:l.jsx("img",{src:t,alt:`TableCrowd dinner moment ${n+1}`,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy"})},n))})})}),l.jsx(Ed,{title:"Frequently asked questions",subtitle:"How TableCrowd works",items:kY,className:"bg-muted/30"}),l.jsx("section",{className:"bg-primary py-16 md:py-20",children:l.jsxs("div",{className:"container text-center",children:[l.jsx("h2",{className:"mb-4 text-3xl font-bold text-primary-foreground md:text-4xl",children:"Interested in joining a TableCrowd dinner?"}),l.jsx("p",{className:"mx-auto mb-8 max-w-2xl text-primary-foreground
438/90",children:"Leave your details to receive dinner invitations and meet founders around the table."}),l.jsxs(Ve,{size:"lg",className:"text-base bg-accent text-accent-foreground hover:bg-accent/90",onClick:e,children:["Join TableCrowd",l.jsx(Zd,{className:"ml-2 h-4 w-4"})]})]})})]})}const AY=zl("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Pn({className:e,variant:t,...n}){return l.jsx("div",{className:be(AY({variant:t}),e),...n})}function Gr(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function uo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const xI=6048e5,RY=864e5,wI=6e4,EI=36e5;let IY={};function rm(){return IY}function $c(e,t){var o,u,c,d;const n=rm(),r=(t==null?void 0:t.weekStartsOn)??((u=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Gr(e),i=s.getDay(),a=(i<r?7:0)+i-r;return s.setDate(s.getDate()-a),s.setHours(0,0,0,0),s}function Df(e){return $c(e,{weekStartsOn:1})}function _I(e){const t=Gr(e),n=t.getFullYear(),r=uo(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=Df(r),i=uo(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=Df(i);return t.getTime()>=s.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function u_(e){const t=Gr(e);return t.setHours(0,0,0,0),t}function c_(e){const t=Gr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function OY(e,t){const n=u_(e),r=u_(t),s=+n-c_(n),i=+r-c_(r);return Math.round((s-i)/RY)}function PY(e){const t=_I(e),n=uo(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Df(n)}function DY(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function jY(e){if(!DY(e)&&typeof e!="number")return!1;const t=Gr(e);return!isNaN(Number(t))}function LY(e){const t=Gr(e),n=uo(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const MY={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},FY=(e,t,n)=>{let r;const s=MY[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Tg(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const BY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},UY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},HY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$Y={date:Tg({formats:BY,defaultWidth:"full"}),time:Tg({formats:UY,defaultWidth:"full"}),dateTime:Tg({formats:HY,defaultWidth:"full"})},zY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},VY=(e,t,n,r)=>zY[e];function Eu(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;s=e.formattingValues[o]||e.formattingValues[a]}else{const a=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[o]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const WY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YY={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},KY={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
438ay","Saturday"]},GY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},QY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},XY=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},JY={ordinalNumber:XY,era:Eu({values:WY,defaultWidth:"wide"}),quarter:Eu({values:qY,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Eu({values:YY,defaultWidth:"wide"}),day:Eu({values:KY,defaultWidth:"wide"}),dayPeriod:Eu({values:GY,defaultWidth:"wide",formattingValues:QY,defaultFormattingWidth:"wide"})};function _u(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const a=i[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(o)?eK(o,h=>h.test(a)):ZY(o,h=>h.test(a));let c;c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c;const d=t.slice(a.length);return{value:c,rest:d}}}function ZY(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function eK(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function tK(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const o=t.slice(s.length);return{value:a,rest:o}}}const nK=/^(\d+)(th|st|nd|rd)?/i,rK=/\d+/i,sK={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},iK={any:[/^b/i,/^(a|c)/i]},aK={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oK={any:[/1/i,/2/i,/3/i,/4/i]},lK={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},uK={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},cK={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},dK={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hK={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fK={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},pK={ordinalNumber:tK({matchPattern:nK,parsePattern:rK,valueCallback:e=>parseInt(e,10)}),era:_u({matchPatterns:sK,defaultMatchWidth:"wide",parsePatterns:iK,defaultParseWidth:"any"}),quarter:_u({matchPatterns:aK,defaultMatchWidth:"wide",parsePatterns:oK,defaultParseWidth:"any",valueCallback:e=>e+1}),month:_u({matchPatterns:lK,defaultMatchWidth:"wide",parsePatterns:uK,defaultParseWidth:"any"}),day:_u({matchPatterns:cK,defaultMatchWidth:"wide",parsePatterns:dK,defaultParseWidth:"any"}),dayPeriod:_u({matchPatterns:hK,defaultMatchWidth:"any",parsePatterns:fK,defaultParseWidth:"any"})},mK={code:"en-US",formatDistance:FY,formatLong:$Y,formatRelative:VY,localize:JY,match:pK,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gK(e){const t=Gr(e);return OY(t,LY(t))+1}function yK(e){const t=Gr(e),n=+Df(t)-+PY(t);return Math.round(n/xI)+1}function TI(e,t){var d,h,p,f;const n=Gr(e),r=n.getFullYear(),s=rm(),i=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??s.firstWeekContainsDate??((f=(p=s.locale)==null?void 0:p.options)==null?void 0:f.firstWeekContainsDate)??1,a=uo(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const o=$c(a,t),u=uo(e,0);u.setFullYear(r,0,i),u.setHours(0,0,0,0);const c=$c(u,t);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function vK(e,t){var o,u,c,d;const n=rm(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=TI(e,t),i=uo(e,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),$c(i,t)}function bK(e,t){const n=Gr(e),r=+$c(n,t)-+vK(n,t);return Math.round(r/xI)+1}function ft(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const _i={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ft(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ft(n+1,2)},d(e,t){return ft(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ft(e.getHours()%12||12,t.length)},H(e,t){return ft(e.getHours(),t.length)},m(e,t){return ft(e.getMinutes(),t.length)},s(e,t){return ft(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return ft(s,t.length)}},Ro={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d_={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return _i.y(e,t)},Y:function(e,t,n,r){const s=TI(e,r),i=s>0?s:1-s;if(t==="YY"){const a=i%100;return ft(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):ft(i,t.length)},R:function(e,t){const n=_I(e);return ft(n,t.length)},u:function(e,t){const n=e.getFullYear();return ft(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ft(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ft(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return _i.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ft(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=bK(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):ft(s,t.length)},I:function(e,t,n){const r=yK(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ft(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):_i.d(e,t)},D:function(e,t,n){const r=gK(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ft(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ft(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ft(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return ft(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=Ro.noon:r===0?s=Ro.midnight:s=r/12>
vendor: 4,402 bytes, line 438
438=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=Ro.evening:r>=12?s=Ro.afternoon:r>=4?s=Ro.morning:s=Ro.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return _i.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):_i.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ft(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ft(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):_i.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):_i.s(e,t)},S:function(e,t){return _i.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return f_(r);case"XXXX":case"XX":return Aa(r);case"XXXXX":case"XXX":default:return Aa(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return f_(r);case"xxxx":case"xx":return Aa(r);case"xxxxx":case"xxx":default:return Aa(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+h_(r,":");case"OOOO":default:return"GMT"+Aa(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+h_(r,":");case"zzzz":default:return"GMT"+Aa(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ft(r,t.length)},T:function(e,t,n){const r=e.getTime();return ft(r,t.length)}};function h_(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+t+ft(i,2)}function f_(e,t){return e%60===0?(e>0?"-":"+")+ft(Math.abs(e)/60,2):Aa(e,t)}function Aa(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=ft(Math.trunc(r/60),2),i=ft(r%60,2);return n+s+t+i}const p_=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},SI=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},xK=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return p_(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",p_(r,t)).replace("{{time}}",SI(s,t))},wK={p:SI,P:xK},EK=/^D+$/,_K=/^Y+$/,TK=["D","DD","YY","YYYY"];function SK(e){return EK.test(e)}function CK(e){return _K.test(e)}function kK(e,t,n){const r=NK(e,t,n);if(console.warn(r),TK.includes(e))throw new RangeError(r)}function NK(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const AK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IK=/^'([^]*?)'?$/,OK=/''/g,PK=/[a-zA-Z]/;function Dl(e,t,n){var d,h,p,f;const r=rm(),s=r.locale??mK,i=r.firstWeekContainsDate??((h=(d=r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,a=r.weekStartsOn??((f=(p=r.locale)==null?void 0:p.options)==null?void 0:f.weekStartsOn)??0,o=Gr(e);if(!jY(o))throw new RangeError("Invalid time value");let u=t.match(RK).map(w=>{const m=w[0];if(m==="p"||m==="P"){const x=wK[m];return x(w,s.formatLong)}return w}).join("").match(AK).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const m=w[0];if(m==="'")return{isToken:!1,value:DK(w)};if(d_[m])return{isToken:!0,value:w};
vendor: 5,258 bytes, line 438
438if(m.match(PK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:w}});s.localize.preprocessor&&(u=s.localize.preprocessor(o,u));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:s};return u.map(w=>{if(!w.isToken)return w.value;const m=w.value;(CK(m)||SK(m))&&kK(m,t,String(e));const x=d_[m[0]];return x(o,m,s.localize,c)}).join("")}function DK(e){const t=e.match(IK);return t?t[1].replace(OK,"'"):e}function jK(e){return+Gr(e)<Date.now()}function jl(e,t){const r=BK(e);let s;if(r.date){const u=UK(r.date,2);s=HK(u.restDateString,u.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);const i=s.getTime();let a=0,o;if(r.time&&(a=$K(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(o=zK(r.timezone),isNaN(o))return new Date(NaN)}else{const u=new Date(i+a),c=new Date(0);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return new Date(i+a+o)}const mh={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},LK=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,MK=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,FK=/^([+-])(\d{2})(?::?(\d{2}))?$/;function BK(e){const t={},n=e.split(mh.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],mh.timeZoneDelimiter.test(t.date)&&(t.date=e.split(mh.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const s=mh.timezone.exec(r);s?(t.time=r.replace(s[1],""),t.timezone=s[1]):t.time=r}return t}function UK(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const s=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?s:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function HK(e,t){if(t===null)return new Date(NaN);const n=e.match(LK);if(!n)return new Date(NaN);const r=!!n[4],s=Tu(n[1]),i=Tu(n[2])-1,a=Tu(n[3]),o=Tu(n[4]),u=Tu(n[5])-1;if(r)return KK(t,o,u)?VK(t,o,u):new Date(NaN);{const c=new Date(0);return!qK(t,i,a)||!YK(t,s)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(s,a)),c)}}function Tu(e){return e?parseInt(e):1}function $K(e){const t=e.match(MK);if(!t)return NaN;const n=Sg(t[1]),r=Sg(t[2]),s=Sg(t[3]);return GK(n,r,s)?n*EI+r*wI+s*1e3:NaN}function Sg(e){return e&&parseFloat(e.replace(",","."))||0}function zK(e){if(e==="Z")return 0;const t=e.match(FK);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;return QK(r,s)?n*(r*EI+s*wI):NaN}function VK(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const s=r.getUTCDay()||7,i=(t-1)*7+n+1-s;return r.setUTCDate(r.getUTCDate()+i),r}const WK=[31,null,31,30,31,30,31,31,30,31,30,31];function CI(e){return e%400===0||e%4===0&&e%100!==0}function qK(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(WK[t]||(CI(e)?29:28))}function YK(e,t){return t>=1&&t<=(CI(e)?366:365)}function KK(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function GK(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function QK(e,t){return t>=0&&t<=59}function m_({event:e,onRegister:t,isPast:n=!1}){const r=o=>{try{return Dl(jl(o),"EEE, d MMM, yyyy")}catch{return o}},s=o=>{try{return Dl(jl(o),"h:mm a")}catch{return""}},i=e.capacityStatus==="sold_out",a=e.capacityStatus==="almost_full";return l.jsxs(qt,{className:`overflow-hidden transition-all hover:shadow-lg hover:border-primary/20 group ${i?"opacity-75":""}`,children:[e.coverImage&&l.jsxs("div",{className:"relative aspect-square overflow-hidden",children:[l.jsx("img",{src:e.coverImage,alt:e.title,className:"w-full h-full object-cover transition-transform group-hover:scale-105"}),l.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-2",children:[e.isVirtual&&l.jsxs(Pn,{className:"bg-accent text-accent-foreground",children:[l.jsx(oj,{className:"h-3 w-3 mr-1"}),"Virtual"]}),i&&l.jsxs(Pn,{variant:"destructive",children:[l.jsx(tj,{className:"h-3 w-3 mr-1"}),"Sold Out"]}),a&&!i&&l.jsxs(Pn,{className:"bg-amber-500 text-white hover:bg-amber-600",children:[l.jsx(_j,{className:"h-3 w-3 mr-1"}),"Almost Full"]})]}),n&&l.jsx(Pn,{variant:"secondary",className:"absolute top-3 right-3",children:"Past Event"})]}),l.jsxs(nr,{children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-2",children:[l.jsx(Us,{className:"h-4 w-4"}),l.jsx("span",{children:r(e.date)})]}),l.jsx(rr,{className:"text-xl line-clamp-2",children:e.title}),e.description&&l.jsxs(yr,{className:"line-clamp-2",children:[e.description.replace(/[#*`]/g,"").substring(0,150),"..."]})]}),l.jsxs(Zt,{children:[l.jsxs("div",{className:"space-y-2 mb-4",children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[l.jsx(rj,{className:"h-4 w-4"}),l.jsx("span",{children:s(e.date)})]}),l.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[l.jsx(u2,{className:"h-4 w-4"}),l.jsx("span",{className:"truncate",children:e.location})]}),e.founderTicketPrice&&l.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[l.jsx(Sj,{className:"h-4 w-4 flex-shrink-0"}
438),l.jsxs("span",{children:["£",e.founderTicketPrice," ",e.priceDescription]})]})]}),e.hostName&&l.jsxs("div",{className:"flex items-center gap-2 mb-4 pt-4 border-t border-border",children:[e.hostAvatar&&l.jsx("img",{src:e.hostAvatar,alt:e.hostName,className:"h-6 w-6 rounded-full"}),l.jsxs("span",{className:"text-sm text-muted-foreground",children:["Hosted by ",e.hostName]})]}),l.jsx(Ve,{onClick:()=>t(e),className:`w-full ${!n&&!i?"bg-accent text-accent-foreground hover:bg-accent/90":""}`,variant:n?"outline":i?"secondary":"default",disabled:i&&!n,children:n?"See What You Missed!":i?"Sold Out":"Apply to Attend"})]})]})}function XK(e){const t=e.split(`
439`),n=[];let r=[];const s=()=>{r.length>0&&(n.push(l.jsx("ul",{className:"list-disc list-inside space-y-1 mb-4 text-muted-foreground",children:r.map((a,o)=>l.jsx("li",{children:i(a)},o))},`list-${n.length}`)),r=[])},i=a=>a.split(/(\*\*[^*]+\*\*)/g).map((u,c)=>u.startsWith("**")&&u.endsWith("**")?l.jsx("strong",{className:"font-semibold text-foreground",children:u.slice(2,-2)},c):u);return t.forEach((a,o)=>{const u=a.trim();if(!u){s();return}const c=u.match(/^(#{1,3})\s*\*?\*?(.+?)\*?\*?\s*$/);if(c){s();const h=c[1].length,p=c[2].replace(/\*\*/g,"");h===1?n.push(l.jsx("h3",{className:"text-lg font-bold text-foreground mt-6 mb-3 first:mt-0",children:p},o)):n.push(l.jsx("h4",{className:"text-base font-semibold text-foreground mt-4 mb-2",children:p},o));return}const d=u.match(/^[\*\-]\s+(.+)$/);if(d){r.push(d[1]);return}s(),n.push(l.jsx("p",{className:"text-muted-foreground mb-3 leading-relaxed",children:i(u)},o))}),s(),n}function JK({event:e,isOpen:t,onClose:n,isPast:r=!1}){const[s,i]=y.useState(""),[a,o]=y.useState(!1),u=y.useMemo(()=>e!=null&&e.description?XK(e.description):null,[e==null?void 0:e.description]);if(!e)return null;const c=p=>{try{return Dl(jl(p),"EEEE, MMMM d, yyyy")}catch{return p}},d=p=>{try{return Dl(jl(p),"h:mm a")}catch{return""}},h=async p=>{p.preventDefault(),s&&(o(!0),await new Promise(f=>setTimeout(f,1e3)),Pt.success("Thanks! We'll notify you about similar events."),i(""),o(!1),n())};return l.jsx(Dp,{open:t,onOpenChange:n,children:l.jsxs(hd,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[l.jsxs(fd,{children:[l.jsx(pd,{className:"text-2xl",children:e.title}),l.jsx(jp,{asChild:!0,children:l.jsxs("div",{className:"space-y-3 pt-2",children:[l.jsxs("div",{className:"flex items-center gap-2 text-foreground",children:[l.jsx(Us,{className:"h-4 w-4 text-primary"}),l.jsxs("span",{children:[c(e.date)," • ",d(e.date)," - ",d(e.endDate)]})]}),l.jsxs("div",{className:"flex items-center gap-2 text-foreground",children:[l.jsx(u2,{className:"h-4 w-4 text-primary"}),l.jsx("span",{children:e.location})]})]})})]}),e.coverImage&&l.jsx("div",{className:"rounded-lg overflow-hidden my-4",children:l.jsx("img",{src:e.coverImage,alt:e.title,className:"w-full h-48 object-cover"})}),u&&l.jsx("div",{className:"mb-6 border-t pt-4",children:u}),r?l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 text-center",children:[l.jsx("p",{className:"text-lg font-medium text-foreground mb-1",children:"You missed it!"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Leave your email for an invite next time"})]}),l.jsxs("form",{onSubmit:h,className:"flex flex-col sm:flex-row gap-3",children:[l.jsxs("div",{className:"relative flex-1",children:[l.jsx(vp,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),l.jsx(pt,{type:"email",placeholder:"[email protected]",value:s,onChange:p=>i(p.target.value),className:"pl-10",required:!0})]}),l.jsx(Ve,{type:"submit",disabled:a,children:a?"Submitting...":"Notify Me"})]}),l.jsx(Ve,{variant:"outline",onClick:n,className:"w-full",children:"Close"})]}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[l.jsx(Ve,{asChild:!0,className:"flex-1",children:l.jsxs("a",{href:e.registrationUrl,target:"_blank",rel:"noopener noreferrer",children:["Complete Registration",l.jsx(yp,{className:"ml-2 h-4 w-4"})]})}),l.jsx(Ve,{variant:"outline",onClick:n,children:"Close"})]}),l.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"You'll be redirected to complete your registration securely."})]})]})})}async function ZK(){const{data:e,error:t}=await Ze.functions.invoke("get-luma-events");if(t)throw new Error(t.message);return e.events||[]}function kI(){return mo({queryKey:["luma-events"],queryFn:ZK,staleTime:5*60*1e3,retry:2})}function Vn({className:e,...t}){return l.jsx("div",{className:be("animate-pulse rounded-md bg-muted",e),...t})}const eG=zl("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Jb=y.forwardRef(({className:e,variant:t,...n},r)=>l.jsx("div",{ref:r,role:"alert",className:be(eG({variant:t}),e),...n}));Jb.displayName="Alert";const Zb=y.forwardRef(({className:e,...t},n)=>l.jsx("h5",{ref:n,className:be("mb-1 font-medium leading-none tracking-tight",e),...t}));Zb.displayName="AlertTitle";const ex=y.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:be("text-sm [&_p]:leading-relaxed",e),...t}));ex.displayName="AlertDescription";const tG=[{name:"Paul",role:"CEO",quote:"Warm, friendly group! Great dynamics, educational and superb networking! Opened up new opportunities in terms of potential investment routes."},{name:"Zari",role:"Founder",quote:"It's a rare chance to sit at a table with very influential and interesting speakers. The concept is fantastic and a great springboard to connections."},{name:"Campbell",role:"Founder and Managing Director",quote:"Great speaker who was bang-on. Inspirational and stimulating content with lively debate. The group was diverse."}],nG=["Sifted","Piton Capital","Feel Unique","Drapers","RLC Ventures","Forward Partners","Episode 1 Ventures","Facebook","Lyst","Downing Ventures","Roundhill Ventures","Accel Ventures","Balderton Capital","White Star Capital","Crawston Press","New Look","iwoca","Notes Coffee","Forbes","Pizza Pilgrims","The Garage Soho","Tyrells","Calm","Deliveroo","Kindred Capital","Starling Bank","Octopus Ventures","Hello Fresh","P
439ip & Nut","Shazam","Frog Capital","eToro","Just Park","DFJ Esprit","Google","Wise"],rG=[{question:"How do I apply to attend a dinner?",answer:"You can apply directly to attend a specific dinner via the event listing. Places are limited, and attendance is subject to approval. Once approved, your place is confirmed."},{question:"What does a TableCrowd dinner cost?",answer:"Most TableCrowd dinners are paid events. Pricing is shown on each event listing and typically includes the dinner and the full evening experience."},{question:"Who typically attends TableCrowd dinners?",answer:"Dinners are attended by startup founders, CEOs, and senior operators, with a mix of backgrounds and sectors. Attendees share a common interest in learning from peers around the table."},{question:"What happens at a TableCrowd dinner?",answer:"Each dinner brings together 10–20 founders in a relaxed, in-person setting around the table. The evening is carefully hosted to ensure everything runs smoothly, and includes a guest speaker – usually a founder or investor – who shares candid, real-world experience and insights you can't read online, followed by open discussion over food."},{question:"Are TableCrowd dinners formal or presentation-led?",answer:"No. There are no slides or formal presentations. The evening is designed to feel informal and conversational, with plenty of time for discussion."}];function sG(){const{data:e,isLoading:t,error:n}=kI(),[r,s]=y.useState(null),[i,a]=y.useState(!1),{upcomingEvents:o,pastEvents:u}=y.useMemo(()=>{if(!e)return{upcomingEvents:[],pastEvents:[]};const h=new Date,p=e.filter(w=>new Date(w.date)>=h).sort((w,m)=>new Date(w.date).getTime()-new Date(m.date).getTime()),f=e.filter(w=>new Date(w.date)<h).sort((w,m)=>new Date(m.date).getTime()-new Date(w.date).getTime());return{upcomingEvents:p,pastEvents:f}},[e]),c=(h,p=!1)=>{s(h),a(p)},d=()=>{s(null),a(!1)};return l.jsxs(Vr,{children:[l.jsx(wa,{title:"Founder Events & Dinners | TableCrowd",description:"Join exclusive founder dinners and networking events in London. Connect with investors, fellow founders, and advisors. Limited spots available.",canonicalPath:"/events"}),l.jsx("section",{className:"py-12 md:py-20",children:l.jsxs("div",{className:"container",children:[l.jsxs("div",{className:"mb-12 text-center",children:[l.jsx("h1",{className:"mb-4 text-4xl font-bold text-foreground md:text-5xl",children:"Founder Dinners & Events"}),l.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground mb-4",children:"TableCrowd hosts curated, in-person dinners in London for 10–20 founders, bringing together founders, investors, and operators for open conversation over food."}),l.jsx("p",{className:"mx-auto max-w-2xl text-base text-muted-foreground",children:"Each dinner includes a guest speaker who shares their experience, followed by relaxed discussion around the table."})]}),t&&l.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:[1,2,3,4].map(h=>l.jsxs("div",{className:"space-y-4",children:[l.jsx(Vn,{className:"h-48 w-full rounded-lg"}),l.jsx(Vn,{className:"h-6 w-3/4"}),l.jsx(Vn,{className:"h-4 w-full"}),l.jsx(Vn,{className:"h-4 w-1/2"}),l.jsx(Vn,{className:"h-10 w-full"})]},h))}),n&&l.jsxs(Jb,{variant:"destructive",className:"max-w-2xl mx-auto",children:[l.jsx(a2,{className:"h-4 w-4"}),l.jsx(Zb,{children:"Unable to load events"}),l.jsx(ex,{children:"We couldn't fetch the latest events. Please try again later."})]}),!t&&!n&&e&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"mb-16",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[l.jsx(Us,{className:"h-6 w-6 text-muted-foreground"}),l.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Upcoming Events"})]}),o.length===0?l.jsxs("div",{className:"text-center py-12 bg-muted/30 rounded-lg",children:[l.jsx(Us,{className:"h-10 w-10 mx-auto text-muted-foreground mb-3"}),l.jsx("p",{className:"text-muted-foreground",children:"No upcoming events scheduled. Check back soon!"})]}):l.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:o.map(h=>l.jsx(m_,{event:h,onRegister:p=>c(p,!1)}
439,h.id))})]}),l.jsxs("div",{className:"py-12 mb-16",children:[l.jsx("h2",{className:"mb-8 text-center text-2xl font-semibold text-foreground",children:"What people say about our dinners"}),l.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:tG.map((h,p)=>l.jsx(qt,{children:l.jsxs(Zt,{className:"pt-6",children:[l.jsxs("p",{className:"text-muted-foreground italic mb-4",children:['"',h.quote,'"']}),l.jsxs("div",{children:[l.jsx("p",{className:"font-semibold text-foreground",children:h.name}),l.jsx("p",{className:"text-sm text-primary",children:h.role})]})]})},p))})]}),u.length>0&&l.jsxs("div",{className:"mb-16",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[l.jsx(cj,{className:"h-6 w-6 text-muted-foreground"}),l.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Past Events"})]}),l.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:[u.map(h=>l.jsx(m_,{event:h,onRegister:p=>c(p,!0),isPast:!0},h.id)),l.jsx(qt,{className:"overflow-hidden flex flex-col",children:l.jsxs("div",{className:"bg-primary/5 p-6 flex-1 flex flex-col justify-center",children:[l.jsx("h3",{className:"text-lg font-semibold text-foreground mb-5 text-center",children:"Other Past Speakers From ↓"}),l.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[nG.map(h=>l.jsx("span",{className:"inline-block rounded-full border border-border bg-background px-3 py-1 text-xs font-medium text-foreground",children:h},h)),l.jsx("span",{className:"inline-block rounded-full bg-primary/10 px-3 py-1 text-xs font-medium text-primary",children:"+ many more"})]})]})})]})]})]})]})}),l.jsx(Ed,{title:"Frequently asked questions",subtitle:"How the dinners work and how to apply",items:rG,className:"bg-muted/30"}),l.jsx(JK,{event:r,isOpen:!!r,onClose:d,isPast:i})]})}async function iG(){const{data:e,error:t}=await Ze.from("resources").select("*").order("position",{ascending:!0});if(t)throw new Error(t.message);return e||[]}function NI(){return mo({queryKey:["resources"],queryFn:iG,staleTime:5*60*1e3})}const pi={fundraising:"Fundraising",legal:"Legal",finance:"Finance",marketing:"Marketing",operations:"Operations",hiring:"Hiring",product:"Product",ai:"AI",other:"Other"},zc={free:"Free Asset",paid:"Paid Asset",perk:"Perk",service:"Request a Call",paid_service:"Paid Service"},aG={free:"Free",paid:"",perk:"Perk",service:"Introductory Call",paid_service:""},tx={fundraising:"bg-primary/10 text-primary",legal:"bg-rose-500/10 text-rose-700",finance:"bg-emerald-700/10 text-emerald-800",marketing:"bg-violet-500/10 text-violet-700",operations:"bg-slate-500/10 text-slate-700",hiring:"bg-amber-600/10 text-amber-700",product:"bg-cyan-500/10 text-cyan-700",ai:"bg-indigo-500/10 text-indigo-700",other:"bg-muted text-muted-foreground"},oG={legal:vj,finance:JD,hiring:bp,fundraising:ij,marketing:fj,product:sj,ai:XD,operations:gj,other:Wv};function g_({resource:e,onAccess:t,isPurchasing:n}){const[r,s]=y.useState(!1),i=oG[e.category],a=e.type==="paid"||e.type==="paid_service",o=e.type==="service"&&e.calendly_url&&e.category==="other",c=(()=>{if(!e.price)return null;const m=e.price_prefix?`${e.price_prefix} `:"",x=`£${e.price.toFixed(2)}`,v=e.is_subscription?"/mo":"",b=e.price_unit?` ${e.price_unit}`:"";return`${m}${x}${v}${b}`})(),d=a&&e.stripe_price_id,h=e.description&&e.description.length>120,p=o?"Book Call":aG[e.type],f=m=>m.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer" class="underline text-accent hover:text-accent/80">$1</a>').replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/\n/g,"<br />");if(o)return l.jsxs(qt,{className:"group transition-all hover:shadow-lg flex flex-col h-full bg-primary text-primary-foreground",children:[l.jsxs(nr,{className:"flex-1",children:[l.jsx("div",{className:"flex items-start justify-between gap-2",children:l.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary-foreground/20 text-primary-foreground shrink-0",children:l.jsx(Oh,{className:"h-5 w-5"})})}),l.jsx(rr,{className:"text-lg mt-4 line-clamp-2",children:e.name}
439),e.description&&l.jsx(yr,{className:"text-primary-foreground/80 [&_strong]:font-semibold [&_em]:italic [&_br]:block",dangerouslySetInnerHTML:{__html:f(e.description)}})]}),l.jsx(Zt,{className:"pt-0",children:l.jsxs(Ve,{variant:"secondary",size:"sm",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",onClick:()=>t(e),children:[l.jsx(Oh,{className:"mr-1 h-4 w-4"}),"Book Free 15 Min Call"]})})]});const w=l.jsxs(qt,{className:`group transition-all hover:shadow-lg hover:border-primary/20 flex flex-col h-full ${e.has_detail_page&&e.slug?"cursor-pointer":""}`,children:[l.jsxs(nr,{className:"flex-1",children:[l.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.cover_image_url?l.jsx("img",{src:e.cover_image_url,alt:`${e.name} provider`,className:"h-10 w-10 rounded-full object-cover shrink-0"}):l.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-muted text-muted-foreground group-hover:bg-primary group-hover:text-primary-foreground transition-colors shrink-0",children:l.jsx(i,{className:"h-5 w-5"})}),l.jsx(Pn,{variant:"secondary",className:tx[e.category],children:pi[e.category]})]}),l.jsx(rr,{className:"text-lg mt-4 line-clamp-2",children:e.name}),e.description&&l.jsxs("div",{children:[l.jsx(yr,{className:`${!r&&h?"line-clamp-3":""} [&_strong]:font-semibold [&_em]:italic [&_br]:block`,dangerouslySetInnerHTML:{__html:f(e.description)}}),h&&l.jsx("button",{onClick:m=>{m.preventDefault(),m.stopPropagation(),s(!r)},className:"mt-2 text-sm text-accent hover:underline flex items-center gap-1",children:r?l.jsxs(l.Fragment,{children:["Show less ",l.jsx(i2,{className:"h-3 w-3"})]}):l.jsxs(l.Fragment,{children:["Read more ",l.jsx(gp,{className:"h-3 w-3"})]})})]})]}),l.jsx(Zt,{className:"pt-0",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[p&&l.jsx("span",{className:"text-sm text-muted-foreground",children:p}),a&&c&&l.jsxs(Pn,{variant:"outline",className:"font-semibold",children:[c," + VAT"]})]}),l.jsx(Ve,{variant:"default",size:"sm",className:"bg-accent text-accent-foreground hover:bg-accent/90",onClick:m=>{m.preventDefault(),m.stopPropagation(),t(e)},disabled:n,children:n?l.jsxs(l.Fragment,{children:[l.jsx(Tr,{className:"mr-1 h-4 w-4 animate-spin"}),"Loading..."]}):d?l.jsxs(l.Fragment,{children:["Purchase",l.jsx(Sc,{className:"ml-1 h-4 w-4"})]}):e.type==="service"?l.jsxs(l.Fragment,{children:["Book now",l.jsx(Oh,{className:"ml-1 h-4 w-4"})]}
439):l.jsxs(l.Fragment,{children:["Access",l.jsx(yp,{className:"ml-1 h-4 w-4"})]})})]})})]});return e.has_detail_page&&e.slug?l.jsx(Cr,{to:`/resources/${e.slug}`,className:"block no-underline",children:w}):w}var Py=function(e,t){return Py=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},Py(e,t)};function _d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Py(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Vc=function(){return Vc=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Vc.apply(this,arguments)};function lG(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",n==="top"&&r.firstChild?r.insertBefore(s,r.firstChild):r.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}var uG=`/*
440  code is extracted from Calendly's embed stylesheet: https://assets.calendly.com/assets/external/widget.css
441*/
442
443.calendly-inline-widget,
444.calendly-inline-widget *,
445.calendly-badge-widget,
446.calendly-badge-widget *,
447.calendly-overlay,
448.calendly-overlay * {
449  font-size: 16px;
450  line-height: 1.2em;
451}
452
453.calendly-inline-widget {
454  min-width: 320px;
455  height: 630px;
456}
457
458.calendly-inline-widget iframe,
459.calendly-badge-widget iframe,
460.calendly-overlay iframe {
461  display: inline;
462  width: 100%;
463  height: 100%;
464}
465
466.calendly-popup-content {
467  position: relative;
468}
469
470.calendly-popup-content.calendly-mobile {
471  -webkit-overflow-scrolling: touch;
472  overflow-y: auto;
473}
474
475.calendly-overlay {
476  position: fixed;
477  top: 0;
478  left: 0;
479  right: 0;
480  bottom: 0;
481  overflow: hidden;
482  z-index: 9999;
483  background-color: #a5a5a5;
484  background-color: rgba(31, 31, 31, 0.4);
485}
486
487.calendly-overlay .calendly-close-overlay {
488  position: absolute;
489  top: 0;
490  left: 0;
491  right: 0;
492  bottom: 0;
493}
494
495.calendly-overlay .calendly-popup {
496  box-sizing: border-box;
497  position: absolute;
498  top: 50%;
499  left: 50%;
500  -webkit-transform: translateY(-50%) translateX(-50%);
501  transform: translateY(-50%) translateX(-50%);
502  width: 80%;
503  min-width: 900px;
504  max-width: 1000px;
505  height: 90%;
506  max-height: 680px;
507}
508
509@media (max-width: 975px) {
510  .calendly-overlay .calendly-popup {
511    position: fixed;
512    top: 50px;
513    left: 0;
514    right: 0;
515    bottom: 0;
516    -webkit-transform: none;
517    transform: none;
518    width: 100%;
519    height: auto;
520    min-width: 0;
521    max-height: none;
522  }
523}
524
525.calendly-overlay .calendly-popup .calendly-popup-content {
526  height: 100%;
527}
528
529.calendly-overlay .calendly-popup-close {
530  position: absolute;
531  top: 25px;
532  right: 25px;
533  color: #fff;
534  width: 19px;
535  height: 19px;
536  cursor: pointer;
537  background: url(https://assets.calendly.com/assets/external/close-icon.svg)
538    no-repeat;
539  background-size: contain;
540}
541
542@media (max-width: 975px) {
543  .calendly-overlay .calendly-popup-close {
544    top: 15px;
545    right: 15px;
546  }
547}
548
549.calendly-badge-widget {
550  position: fixed;
551  right: 20px;
552  bottom: 15px;
553  z-index: 9998;
554}
555
556.calendly-badge-widget .calendly-badge-content {
557  display: table-cell;
558  width: auto;
559  height: 45px;
560  padding: 0 30px;
561  border-radius: 25px;
562  box-shadow: rgba(0, 0, 0, 0.25) 0 2px 5px;
563  font-family: sans-serif;
564  text-align: center;
565  vertical-align: middle;
566  font-weight: bold;
567  font-size: 14px;
568  color: #fff;
569  cursor: pointer;
570}
571
572.calendly-badge-widget .calendly-badge-content.calendly-white {
573  color: #666a73;
574}
575
576.calendly-badge-widget .calendly-badge-content span {
577  display: block;
578  font-size: 12px;
579}
580
581.calendly-spinner {
582  position: absolute;
583  top: 50%;
584  left: 0;
585  right: 0;
586  -webkit-transform: translateY(-50%);
587  transform: translateY(-50%);
588  text-align: center;
589  z-index: -1;
590}
591
592.calendly-spinner > div {
593  display: inline-block;
594  width: 18px;
595  height: 18px;
596  background-color: #e1e1e1;
597  border-radius: 50%;
598  vertical-align: middle;
599  -webkit-animation: calendly-bouncedelay 1.4s infinite ease-in-out;
600  animation: calendly-bouncedelay 1.4s infinite ease-in-out;
601  -webkit-animation-fill-mode: both;
602  animation-fill-mode: both;
603}
604
605.calendly-spinner .calendly-bounce1 {
606  -webkit-animation-delay: -0.32s;
607  animation-delay: -0.32s;
608}
609
610.calendly-spinner .calendly-bounce2 {
611  -webkit-animation-delay: -0.16s;
612  animation-delay: -0.16s;
613}
614
615@-webkit-keyframes calendly-bouncedelay {
616  0%,
617  80%,
618  100% {
619    -webkit-transform: scale(0);
620    transform: scale(0);
621  }
622
623  40% {
624    -webkit-transform: scale(1);
625    transform: scale(1);
626  }
627}
628
629@keyframes calendly-bouncedelay {
630  0%,
631  80%,
632  100% {
633    -webkit-transform: scale(0);
634    transform: scale(0);
635  }
636
637  40% {
638    -webkit-transform: scale(1);
639    transform: scale(1);
640  }
641}
642`;lG(uG);function Cg(e){return e.charAt(0)==="#"?e.slice(1):e}function cG(e){return e!=null&&e.primaryColor&&(e.primaryColor=Cg(e.primaryColor)),e!=null&&e.textColor&&(e.textColor=Cg(e.textColor)),e!=null&&e.backgroundColor&&(e.backgroundColor=Cg(e.backgroundColor)),e}var y_;(function(e){e.PROFILE_PAGE_VIEWED="calendly.profile_page_viewed",e.EVENT_TYPE_VIEWED="calendly.event_type_viewed",e.DATE_AND_TIME_SELECTED="calendly.date_and_time_selected",e.EVENT_SCHEDULED="calendly.event_scheduled",e.PAGE_HEIGHT="calendly.page_height"})(y_||(y_={}));var AI=function(e){var t=e.url,n=e.prefill,r=n===void 0?{}:n,s=e.pageSettings,i=s===void 0?{}:s,a=e.utm,o=a===void 0?{}:a,u=e.embedType,c=cG(i),d=c.backgroundColor,h=c.hideEventTypeDetails,p=c.hideLandingPageDetails,f=c.primaryColor,w=c.textColor,m=c.hideGdprBanner,x=r.customAnswers,v=r.date,b=r.email,E=r.firstName,T=r.guests,C=r.lastName,_=r.location,k=r.name,P=o.utmCampaign,M=o.utmContent,F=o.utmMedium,U=o.utmSource,j=o.utmTerm,Y=o.salesforce_uuid,z=t.indexOf("?"),X=z>-1,Q=t.slice(z+1),J=X?t.slice(0,z):t,$=[X?Q:null,d?"background_color=".concat(d):null,h?"hide_event_type_details=1":null,p?"hide_landing_page_details=1":null,f?"primary_color=".concat(f):null,w?"text_color=".concat(w):null,m?"hide_gdpr_banner=1":null,k?"name=".concat(encodeURIComponent(k)):null,_?"location=".concat(encodeURIComponent(_)):null,E?"first_name=".concat(encodeURIComponent(E)):null,C?"last_name=".concat(encodeURIComponent(C)):null,T?"guests=".concat(T.map(encodeURIComponent).join(",")):null,b?"email=".concat(encodeURIComponent(b)):null,v&&v instanceof Date?"date=".concat(dG(v)):null,P?"utm_campaign=".concat(encodeURIComponent(P)):null,M?"utm_content=".concat(encodeURIComponent(M)):null,F?"utm_medium=".concat(encodeURIComponent(F)):null,U?"utm_source=".concat(encodeURIComponent(U)):null,j?"utm_term=".concat(encodeURIComponent(j)):null,Y?"salesforce_uuid=".concat(encodeURIComponent(Y)):null,u?"embed_type=".concat(u):null,"embed_domain=1"].concat(x?fG(x):[]).filter(function(V){return V!==null}).join("&");return"".concat(J,"?").concat($)},dG=function(e){var t=e.getMonth()+1,n=e.getDate(),r=e.getFullYear();return[r,t<10?"0".concat(t):t,n<10?"0".concat(n):n].join("-")},hG=/^a\d{1,2}$/,fG=function(e){var t=Object.keys(e).filter(function(n){return n.match(hG)});return t.length?t.map(function(n){return"".concat(n,"=").concat(encodeURIComponent(e[n]))}):[]},RI=function(e){_d(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return y.createElement("div",{className:"calendly-spinner"},y.createElement("div",{className:"calendly-bounce1"}),y.createElement("div",{className:"calendly-bounce2"}),y.createElement("div",{className:"calendly-bounce3"}))},t}(y.Component),pG="calendly-inline-widget",II=function(e){_d(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isLoading:!0},r.onLoad=r.onLoad.bind(r),r}return t.prototype.onLoad=function(){this.setState({isLoading:!1})},t.prototype.render=function(){var n=AI({url:this.props.url,pageSettings:this.props.pageSettings,prefill:this.props.prefill,utm:this.props.utm,embedType:"Inline"}),r=this.props.LoadingSpinner||RI;return y.createElement("div",{className:this.props.className||pG,style:this.props.styles||{}}
642,this.state.isLoading&&y.createElement(r,null),y.createElement("iframe",{width:"100%",height:"100%",frameBorder:"0",title:this.props.iframeTitle||"Calendly Scheduling Page",onLoad:this.onLoad,src:n}))},t}(y.Component),mG=function(e){_d(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isLoading:!0},r.onLoad=r.onLoad.bind(r),r}return t.prototype.onLoad=function(){this.setState({isLoading:!1})},t.prototype.render=function(){var n=AI({url:this.props.url,pageSettings:this.props.pageSettings,prefill:this.props.prefill,utm:this.props.utm,embedType:"Inline"}),r=this.props.LoadingSpinner||RI;return y.createElement(y.Fragment,null,this.state.isLoading&&y.createElement(r,null),y.createElement("iframe",{width:"100%",height:"100%",frameBorder:"0",title:this.props.iframeTitle||"Calendly Scheduling Page",onLoad:this.onLoad,src:n}))},t}(y.Component),OI=function(e){if(!e.open)return null;if(!e.rootElement)throw new Error("[react-calendly]: PopupModal rootElement property cannot be undefined");return wr.createPortal(y.createElement("div",{className:"calendly-overlay"},y.createElement("div",{onClick:e.onModalClose,className:"calendly-close-overlay"}),y.createElement("div",{className:"calendly-popup"},y.createElement("div",{className:"calendly-popup-content"},y.createElement(mG,Vc({},e)))),y.createElement("button",{className:"calendly-popup-close",onClick:e.onModalClose,"aria-label":"Close modal",style:{display:"block",border:"none",padding:0}})),e.rootElement)};(function(e){_d(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isOpen:!1},r.onClick=r.onClick.bind(r),r.onClose=r.onClose.bind(r),r}return t.prototype.onClick=function(n){n.preventDefault(),this.setState({isOpen:!0})},t.prototype.onClose=function(n){n.stopPropagation(),this.setState({isOpen:!1})},t.prototype.render=function(){return y.createElement(y.Fragment,null,y.createElement("button",{onClick:this.onClick,style:this.props.styles||{},className:this.props.className||""},this.props.text),y.createElement(OI,Vc({},this.props,{open:this.state.isOpen,onModalClose:this.onClose,rootElement:this.props.rootElement})))},t})(y.Component);(function(e){_d(t,e);function t(n){var r=e.call(this,n)||this;return r.state={isOpen:!1},r.onClick=r.onClick.bind(r),r.onClose=r.onClose.bind(r),r}return t.prototype.onClick=function(){this.setState({isOpen:!0})},t.prototype.onClose=function(n){n.stopPropagation(),this.setState({isOpen:!1})},t.prototype.render=function(){return y.createElement("div",{className:"calendly-badge-widget",onClick:this.onClick},y.createElement("div",{className:"calendly-badge-content",style:{background:this.props.color||"#00a2ff",color:this.props.textColor||"#ffffff"}},this.props.text||"Schedule time with me",this.props.branding&&y.createElement("span",null,"powered by Calendly")),y.createElement(OI,Vc({},this.props,{open:this.state.isOpen,onModalClose:this.onClose,rootElement:this.props.rootElement})))},t})(y.Component);async function Su(e){const t=new Date().toISOString();try{const{error:n}=await Ze.from("resource_access").insert({resource_id:e.resourceId,lead_capture_id:e.leadCaptureId||null,email:e.email,first_name:e.firstName,last_name:e.lastName,access_type:e.accessType,amount_paid:e.amountPaid||null,currency:e.amountPaid?"gbp":null,accessed_at:t});n&&console.error("Failed to record resource access:",n),Ze.functions.invoke("send-resource-alert",{body:{email:e.email,firstName:e.firstName,lastName:e.lastName,resourceName:e.resourceName,accessType:e.accessType,amountPaid:e.amountPaid}}).catch(r=>{console.error("Failed to send resource alert email:",r)}),Ze.functions.invoke("sync-resource-access-to-airtable",{body:{email:e.email,first_name:e.firstName,last_name:e.lastName,resource_name:e.resourceName,access_type:e.accessType,amount_paid:e.amountPaid,currency:"gbp",accessed_at:t}}).catch(r=>{console.error("Failed to sync resource access to Airtable:",r)})}catch(n){console.error("Error recording resource access:",n)}}const PI="tc_lead_data";function gG(){try{const e=localStorage.getItem(PI);return e?JSON.parse(e):null}catch{return null}}function yG(e){try{localStorage.setItem(PI,JSON.stringify(e))}catch{}}const vG=[{value:"idea",label:"Idea"},{value:"startup",label:"Startup"},{value:"growth",label:"Growth"},{value:"established",label:"Established"}],bG=[{value:"just_me",label:"Just me"},{value:"1-10",label:"1-10"},{value:"11-50",label:"11-50"},{value:"51-200",label:"51-200"},{value:"200+",label:"200+"}];function DI({resource:e,isOpen:t,onClose:n}){const[r,s]=y.useState(""),[i,a]=y.useState(""),[o,u]=y.useState(""),[c,d]=y.useState(""),[h,p]=y.useState(!0),[f,w]=y.useState(""),[m,x]=y.useState(""),[v,b]=y.useState(""),[E,T]=y.useState(""),[C,_]=y.useState(""),[k,P]=y.useState(""),[M,F]=y.useState(""),[U,j]=y.useState(!1),[Y,z]=y.useState(!1),[X,Q]=y.useState(!1),[J,$]=y.useState(!1),[V,S]=y.useState(null);if(y.useEffect(()=>{if(t&&e){const ce=gG();ce&&(s(ce.firstName),a(ce.lastName),u(ce.email),d(ce.linkedinUrl),p(ce.linkedinReflectsCurrent),w(ce.currentRoleDescription),x(ce.companyName),b(ce.companyStage),T(ce.companySize),_(ce.isFounder),F(ce.phoneNumber),z(!0),Q(!0))}},[t,e]),!e)return null;const ue=e.requires_phone===!0,te=e.type==="service",R=te&&!!e.calendly_url&&e.category==="other",pe=e.type==="paid_service",je=e.type==="paid",_e=je||pe,re=e.price?`£${e.price.toFixed(2)}${e.is_subscription?"/mo":""}`:"Free",we=e.delivery_method||"download",Le=ce=>{const I=ce.trim();return I?/^(https?:\/\/)?(www\.)?linkedin\.com\/.+$/i.test(I):!1},fe=ce=>{if(!ce.trim()){S(null);return}Le(ce)?S(null):S("Please enter a valid LinkedIn URL (e.g., linkedin.com/in/yourname)")},Ne=()=>!(!r.trim()||!i.trim()||!o.trim()||!c.trim()||!m.trim()||!C||!v||!E||!Le(c)||!h&&!f.trim()||ue&&!M.trim()),Ae=async ce=>{try{await Ze.functions.invoke("sync-lead-to-airtable",{body:ce})}catch(I){console.error("Failed to sync to Airtable:",I)}},dt=async ce=>{if(ce.preventDefault(),!Ne()){Pt.error("Please fill in all required fields.");return}j(!0);try{const I={resource_id:e.id,first_name:r.trim(),last_name:i.trim(),email:o.trim(),linkedin_url:c.trim(),linkedin_reflects_current:h,current_role_description:h?null:f.trim(),company_name:m.trim(),company_
642stage:v,company_size:E,is_founder:C==="yes",whats_on_mind:k.trim()||null,phone_number:M.trim()||null},{data:B,error:K}=await Ze.from("lead_captures").insert(I).select("id").single();if(K)throw K;Ae({...I,lead_capture_id:(B==null?void 0:B.id)??null,resource_name:e.name}),yG({firstName:r.trim(),lastName:i.trim(),email:o.trim(),linkedinUrl:c.trim(),linkedinReflectsCurrent:h,currentRoleDescription:f.trim(),companyName:m.trim(),companyStage:v,companySize:E,isFounder:C,phoneNumber:M.trim()}),z(!0),Pt.success("Thanks! You now have access to this resource.")}catch(I){console.error("Lead capture error:",I),Pt.error("Something went wrong. Please try again.")}finally{j(!1)}},Ge=()=>{s(""),a(""),u(""),d(""),p(!0),w(""),x(""),b(""),T(""),_(""),P(""),F(""),z(!1),Q(!1),$(!1),n()},Nt=async()=>{try{await Ze.functions.invoke("send-resource-email",{body:{email:o.trim(),name:`${r.trim()} ${i.trim()}`,resourceName:e.name,deliveryMethod:we,documentUrl:e.document_url,externalLink:e.external_link,calendlyUrl:e.calendly_url,emailContent:e.email_content,resourceType:e.type,companyName:m.trim()}})}catch(ce){console.error("Failed to send resource email:",ce)}},Lt=async()=>{if(pe&&e.stripe_price_id){try{const{data:ce,error:I}=await Ze.functions.invoke("create-checkout",{body:{priceId:e.stripe_price_id,resourceId:e.id,resourceName:e.name,isSubscription:e.is_subscription,customerEmail:o.trim(),customerName:`${r.trim()} ${i.trim()}`}});if(I)throw I;Su({resourceId:e.id,resourceName:e.name,email:o.trim(),firstName:r.trim(),lastName:i.trim(),accessType:"purchase",amountPaid:e.price||void 0}),ce!=null&&ce.url&&window.open(ce.url,"_blank"),Ge()}catch(ce){console.error("Checkout error:",ce),Pt.error("Unable to start checkout. Please try again.")}return}if(je&&e.stripe_price_id){try{const{data:ce,error:I}=await Ze.functions.invoke("create-checkout",{body:{priceId:e.stripe_price_id,resourceId:e.id,resourceName:e.name,customerEmail:o.trim(),customerName:`${r.trim()} ${i.trim()}`}});if(I)throw I;Su({resourceId:e.id,resourceName:e.name,email:o.trim(),firstName:r.trim(),lastName:i.trim(),accessType:"purchase",amountPaid:e.price||void 0}),ce!=null&&ce.url&&window.open(ce.url,"_blank"),Ge()}catch(ce){console.error("Checkout error:",ce),Pt.error("Unable to start checkout. Please try again.")}return}if(te&&e.calendly_url){Su({resourceId:e.id,resourceName:e.name,email:o.trim(),firstName:r.trim(),lastName:i.trim(),accessType:"booking"}),(we==="email"||we==="both")&&(await Nt(),Pt.success("We've also sent booking details to your email!")),$(!0);return}if(we==="email"){Su({resourceId:e.id,resourceName:e.name,email:o.trim(),firstName:r.trim(),lastName:i.trim(),accessType:"email"}),await Nt(),Pt.success("Resource has been sent to your email!"),Ge();return}we==="both"&&await Nt(),Su({resourceId:e.id,resourceName:e.name,email:o.trim(),firstName:r.trim(),lastName:i.trim(),accessType:"download"}),e.document_url?window.open(e.document_url,"_blank"):e.external_link&&window.open(e.external_link,"_blank"),Ge()},wn=()=>pe?l.jsxs(l.Fragment,{children:[l.jsx(Sc,{className:"mr-2 h-4 w-4"}),e.is_subscription?`Subscribe for ${re}`:`Pay ${re} & Book Call`]}):je?l.jsxs(l.Fragment,{children:[l.jsx(Sc,{className:"mr-2 h-4 w-4"}),"Purchase for ",re]}):R?l.jsxs(l.Fragment,{children:[l.jsx(Us,{className:"mr-2 h-4 w-4"}),"Book Free 15 Min Call"]}):te&&e.calendly_url?l.jsxs(l.Fragment,{children:[l.jsx(Us,{className:"mr-2 h-4 w-4"}),"Book a Call"]}):we==="email"?l.jsxs(l.Fragment,{children:[l.jsx(yp,{className:"mr-2 h-4 w-4"}),"Send to My Email"]}):e.document_url?l.jsxs(l.Fragment,{children:[l.jsx(mf,{className:"mr-2 h-4 w-4"}),"Download"]}):l.jsxs(l.Fragment,{children:[l.jsx(mf,{className:"mr-2 h-4 w-4"}),"Download"]}),dr=`${r.trim()} ${i.trim()}`.trim();return l.jsx(Dp,{open:t,onOpenChange:Ge,children:l.jsxs(hd,{className:`${J?"max-w-3xl":"max-w-md"} max-h-[90vh] overflow-y-auto`,children:[l.jsxs(fd,{children:[l.jsx(pd,{className:"text-xl",children:e.name}),!J&&!R&&e.description&&l.jsx(jp,{children:e.description})]}),J&&e.calendly_url?l.jsxs("div",{className:"pt-2",children:[l.jsx(II,{url:e.calendly_url,prefill:{name:dr,email:o},styles:{height:"600px",minWidth:"320px"}}),!R&&l.jsx(Ve,{variant:"outline",onClick:Ge,className:"w-full mt-4",children:"Close"})]}):Y?l.jsxs("div",{className:"space-y-4 pt-4",children:[l.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 text-center",children:[l.jsx("p",{className:"text-foreground font-medium",children:X?te||R?`Looking forward to speaking to you ${r}!`:`I hope you find it useful ${r}!`:"You're all set!"}),l.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:R?"Click below to book your call.":_e?`Complete your ${e.is_subscription?"subscription":"purchase"} to access this ${pe?"service":"resource"}.`:te?"Click below to request your call.":we==="email"?"We'll send the resource to your email.":"Click below to access."})]}),l.jsx(Ve,{onClick:Lt,className:"w-full",children:wn()}),!R&&l.jsx(Ve,{variant:"outline",onClick:Ge,className:"w-full",children:"Close"})]}):l.jsxs("form",{onSubmit:dt,className:"space-y-4 pt-4",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Enter your details to get started."}),l.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"firstName",children:"First name *"}),l.jsx(pt,{id:"firstName",type:"text",placeholder:"First name",value:r,onChange:ce=>s(ce.target.value),required:!0})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"lastName",children:"Last name *"}),l.jsx(pt,{id:"lastName",type:"text",placeholder:"Last name",value:i,onChange:ce=>a(ce.target.value),required:!0})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"email",children:"Email *"}),l.jsx(pt,{id:"email",type:"email",placeholder:"[email protected]",value:o,onChange:ce=>u(ce.target.value),required:!0})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"linkedin",children:"LinkedIn Profile *"}),l.jsx(pt,{id:"linkedin",type:"url",placeholder:"https://linkedin.com/in/yourprofile",value:c,onChange:ce=>{d(ce.target.value),fe(ce.target.value)},onBlur:()=>fe(c),className:V?"border-destructive":"",required:!0}),V&&l.jsx("p",{className:"text-sm text-destructive",children:V})]}),l.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[l.jsx(Xe,{htmlFor:"linkedin-toggle",className:"text-sm font-normal cursor-pointer",children:"My LinkedIn reflects what I'm doing now"}),l.jsx(bb,{id:"linkedin-toggle",checked:h,onCheckedChange:p})]}),!h&&l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"currentRole",children:"What are you doing now? *"}),l.jsx(Ls,{id:"currentRole",placeholder:"Tell us about your current role or focus...",value:f,onChange:ce=>w(ce.target.value),className:"min-h-[80px]",required:!0})]})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx(Xe,{children:"Are you a founder? *"}),l.jsxs(vb,{value:C,onValueChange:_,className:"flex gap-4",children:[l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsx(Oc,{value:"yes",id:"founder-yes"}),l.jsx(Xe,{htmlFor:"founder-yes",className:"font-normal cursor-pointer",children:"Yes"})]}),l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsx(Oc,{value:"no",id:"founder-no"}),l.jsx(Xe,{htmlFor:"founder-no",className:"font-normal cursor-pointer",children:"No"})]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"company",children:"Company *"}),l.jsx(pt,{id:"company",type:"text",placeholder:"Your company name",value:m,onChange:ce=>x(ce.target.value),required:!0})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"companyStage",children:"Company stage *"}),l.jsxs(hs,{value:v,onValueChange:b,children:[l.jsx($r,{id:"companyStage",children:l.jsx(fs,{placeholder:"Select stage"})}),l.jsx(zr,{children:vG.map(ce=>l.jsx(yn,{value:ce.value,children:ce.label},ce.value))})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"companySize",children:"Company size *"}),l.jsxs(hs,{value:E,onValueChange:T,children:[l.jsx($r,{id:"companySize",children:l.jsx(fs,{placeholder:"Select size"})}),l.jsx(zr,{children:bG.map(ce=>l.jsx(yn,{value:ce.value,children:ce.label},ce.value))})]})]})]}),ue&&l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"phone",children:"Phone Number *"}),l.jsx(pt,{id:"phone",type:"tel",placeholder:"+44 7123 456789",value:M,onChange:ce=>F(ce.target.value),required:!0})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"whatsOnMind",children:"What's on your mind?"}),l.jsx(Ls,{id:"whatsOnMind",placeholder:"Raising investment, Hiring, Finding a book keeper...",value:k,onChange:ce=>P(ce.target.value),className:"min-h-[80px]"})]}),l.jsx(Ve,{type:"submit",className:"w-full",disabled:U||!Ne(),children:U?l.jsxs(l.Fragment,{children:[l.jsx(Tr,{className:"mr-2 h-4 w-4 animate-spin"}),"Submitting..."]}):"Continue"})]})]})})}const xG=["fundraising","legal","finance","marketing","operations","hiring","product","ai"],wG=[{question:"Why use the services, tools and resources listed here?",answer:`The TableCrowd team has spent years building and operating startups - and meeting thousands of other founders that do the same. These services and tools reflect the ones we actually choose when running companies.
643
644Some services are delivered directly by TableCrowd. Others are provided by trusted specialist partners.
645
646The goal is simple: give founders access to practical, proven support for legal, finance, hiring and fundraising without having to figure everything out from scratch.`},{question:"Are TableCrowd services and tools free?",answer:"Some services and tools are free to access, while others are paid. Each service or tool clearly shows what's included and whether there is a cost before you proceed."},{question:"What types of services and tools does TableCrowd offer?",answer:"TableCrowd offers a mix of downloadable templates, practical guides, and hands-on services across legal, finance, hiring, and fundraising. Some can be accessed immediately, while others involve a call to arrange one-
646off support or ongoing operational services."},{question:"Do I need to attend a dinner to access services and tools?",answer:"No. Many services and tools can be accessed without attending a dinner. You'll be asked to leave your details to access them, and we may follow up for feedback to understand whether you found them useful."},{question:"How often are new services and tools added?",answer:"New services and tools are added on an ongoing basis, often shaped by questions and challenges raised by founders at TableCrowd dinners."}];function EG(){const{data:e,isLoading:t,error:n}=NI(),[r,s]=y.useState(null),[i,a]=y.useState(null),[o,u]=y.useState(null),{toast:c}=od(),d=(e==null?void 0:e.find(m=>m.type==="service"&&m.category==="other"&&m.calendly_url))??null,h=(()=>{if(!e)return[];const m=e.filter(x=>x!==d&&x.category!=="other");return i?m.filter(x=>x.category===i):m})(),p=(()=>{if(!e)return[];const m=new Set(e.map(x=>x.category));return xG.filter(x=>m.has(x))})(),f=async m=>{if((m.type==="paid"||m.type==="paid_service")&&m.stripe_price_id){u(m.id);try{const{data:v,error:b}=await Ze.functions.invoke("create-checkout",{body:{priceId:m.stripe_price_id,resourceId:m.id,resourceName:m.name,isSubscription:m.is_subscription}});if(b)throw b;v!=null&&v.url&&window.open(v.url,"_blank")}catch(v){console.error("Checkout error:",v),c({title:"Payment Error",description:"Unable to start checkout. Please try again.",variant:"destructive"})}finally{u(null)}return}s(m)},w=()=>{s(null)};return l.jsxs(Vr,{children:[l.jsx(wa,{title:"Founder Resources & Tools | TableCrowd",description:"Free and premium resources for startup founders. Access fundraising templates, legal documents, financial models, and expert services.",canonicalPath:"/resources"}),l.jsx("section",{className:"py-12 md:py-20",children:l.jsxs("div",{className:"container",children:[l.jsxs("div",{className:"mb-12 text-center",children:[l.jsx("h1",{className:"mb-4 text-4xl font-bold text-foreground md:text-5xl",children:"Founder Services & Tools"}),l.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground",children:"The services, tools, and trusted contacts we'd use ourselves – drawn from years of working with founders and refined through real-world use."})]}),p.length>0&&l.jsxs("div",{className:"flex flex-wrap justify-center gap-2 mb-8",children:[l.jsx(Pn,{variant:i===null?"default":"outline",className:"cursor-pointer px-4 py-2 text-sm",onClick:()=>a(null),children:"All"}),p.map(m=>l.jsx(Pn,{variant:"outline",className:`cursor-pointer px-4 py-2 text-sm ${i===m?tx[m]+" border-transparent":""}`,onClick:()=>a(m),children:pi[m]},m))]}),t&&l.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:[1,2,3,4,5,6].map(m=>l.jsxs("div",{className:"space-y-4",children:[l.jsx(Vn,{className:"h-40 w-full rounded-lg"}),l.jsx(Vn,{className:"h-6 w-3/4"}),l.jsx(Vn,{className:"h-4 w-full"}),l.jsx(Vn,{className:"h-10 w-full"})]},m))}),n&&l.jsxs(Jb,{variant:"destructive",className:"max-w-2xl mx-auto",children:[l.jsx(a2,{className:"h-4 w-4"}),l.jsx(Zb,{children:"Unable to load resources"}),l.jsx(ex,{children:"We couldn't fetch the resources. Please try again later."})]}),!t&&!n&&h.length===0&&l.jsxs("div",{className:"text-center py-16",children:[l.jsx(aj,{className:"h-12 w-12 mx-auto text-muted-foreground mb-4"}),l.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:i?`No ${pi[i]} Resources`:"No Resources Yet"}),l.jsx("p",{className:"text-muted-foreground",children:i?"Try selecting a different category or check back soon.":"Check back soon for new resources and tools."})]}),!t&&!n&&(h.length>0||d)&&l.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:[d&&l.jsx(g_,{resource:d,onAccess:f,isPurchasing:o===d.id},d.id),h.map(m=>l.jsx(g_,{resource:m,onAccess:f,isPurchasing:o===m.id},m.id))]})]})}),l.jsx(Ed,{title:"Services & Tools FAQs",subtitle:"Questions about our services and tools",items:wG,className:"bg-muted/30"}),l.jsx(DI,{resource:r,isOpen:!!r,onClose:w})]})}const _G="/assets/team-kate-CEOkpKsi.jpg",TG="/assets/team-sajni-BMZXh4q0.jpg",SG="/assets/team-aneka-7oPcFUbA.jpeg",CG="/assets/team-claire-DFmFyOzB.jpeg",kG="/assets/team-arit-rdFMsV0d.png",NG="/assets/team-andrea-Bhe1jHGW.png",AG="/assets/about-dinner-CEsMDrRZ.jpg",RG="/assets/about-photo-2-Dhh0Ry9v.jpg",IG="/assets/about-photo-1-Bdr0wfaX.jpg",OG="/assets/about-dinner-guest-CEAbNsBo.png",PG=[{icon:uj,title:"Human, al
646ways",description:"We believe the best conversations happen face to face, when people feel comfortable, recognised, and listened to. Everything we do is designed to feel human – from how guests are welcomed, to how conversations unfold around the table."},{icon:wj,title:"Practical by design",description:"We choose speakers, shape conversations, and make introductions with one aim: to be genuinely useful. Insight should help founders think more clearly, make better decisions, and know where to turn next – not just feel inspired for an evening."},{icon:dj,title:"Built by people who've done it",description:"TableCrowd is run by people who've built businesses and learned along the way. That experience shapes how we design events, support founders, and share what we've learned through conversations, introductions, and practical support."},{icon:bp,title:"Thoughtfully hosted",description:"Great evenings don't happen by accident. From knowing who's coming, to the small details that help everyone feel at ease, our hosts take real care in how each dinner is run – so conversations can flow naturally and everyone can take part, introverts included."}],DG=[{name:"Amine",role:"CEO & Founder",quote:"I consider TableCrowd as one of the most efficient and focused ways to network in London. I see as much value in meeting the speakers as connecting with the other guests."},{name:"Frederic",role:"Founder",quote:"It's a great concept. I hate typical networking. This setup is so much better and allows for more natural and better conversations in a great setting."},{name:"Rachel",role:"Founder",quote:"High quality speaker and interesting, driven guests. Very worthwhile taking time out of a busy schedule to attend - educational and fun!"}],jG=[{name:"Kate Jackson",role:"Founder, TableCrowd",bio:`Founder and operator with over 20 years' experience building businesses. Former City lawyer, now focused on creating high-quality, face-to-face dinners where founders can learn from each other, alongside practical tools and services to support them at every stage.
647
648Attended 500+ TableCrowd dinners since 2012.`,linkedIn:"https://www.linkedin.com/in/katejacksonk/",photo:_G},{name:"Claire Jenkins",role:"COO, TableCrowd",subtitle:"Co-founder, TableCrowd Talent",bio:`Start-up connector with a commercial, community and talent focus. Experience in building startup and volunteer communities and leading corporate operations at Tesco and BT.
649
650Attended 500+ TableCrowd dinners since 2016.`,linkedIn:"https://www.linkedin.com/in/claire-jenkins-26495936/",photo:CG},{name:"Sajni Shah",role:"Product Manager, Compare the Market",bio:`Tech start-up all-rounder, with both commercial and product capabilities. Experience as fintech product manager, backed by extensive experience in investment banking/credit trading.
651
652Hosted 50+ TableCrowd dinners since 2017.`,linkedIn:"https://www.linkedin.com/in/sajni-shah-2159b933/",subtitle:"TableCrowd host",photo:TG},{name:"Aneka Johnson",role:"Founder, The Cuddle Club",subtitle:"TableCrowd host",bio:`Cuddle Club was inspired by her experience of how dogs can transform wellbeing – work that has been featured across major UK media. Recently launched The Dog Mum Podcast, which reached #1 in the UK in its category.
653
654Hosted 100+ TableCrowd dinners since 2018.`,linkedIn:"https://www.linkedin.com/in/aneka-johnson-a7b497133/",photo:SG},{name:"Arit Eminue MBE",role:"Leadership Coach",subtitle:"TableCrowd host",bio:`Leadership coach working with founders and senior leaders to build strong, human cultures. Partners with global organisations including Universal Music, Sony Pictures and LinkedIn. Awarded an MBE in 2023.
655
656Hosted 25+ TableCrowd dinners since 2017.`,linkedIn:"https://www.linkedin.com/in/ariteminue/",photo:kG},{name:"Andrea Cooper",role:"Marketing & Event Specialist",subtitle:"Digital Creative Director, TableCrowd",bio:`Marketing strategist who loves building brands, growing communities, and making events feel like more than another date in the diary. Brings people together across teams and time zones, turning complex ideas into clear stories and messy plans into momentum.
657
658Behind the scenes on 500+ TableCrowd dinners since 2018.`,linkedIn:"https://www.linkedin.com/in/andrea-cooper-uk/",photo:NG,photoScale:"scale-[0.75]"}],LG=[{question:"Who founded TableCrowd?",answer:"TableCrowd was founded by Kate Jackson in 2012, following her own experience of building a business and realising how difficult it was to access the right people, insight, and support at the moments it mattered most. As TableCrowd grew, Claire Jenkins joined as co-founder, bringing a shared passion for bringing people together and a strong belief in the power of face-to-face connection. Together, they shaped TableCrowd into the community it is today."},{question:"When was TableCrowd started?",answer:"TableCrowd began in 2012, and we've been hosting founder dinners consistently since 2014. Over the years, the format has stayed deliberately simple: small groups, thoughtful hosts, great food, and the space for honest, open conversation."},{question:"How is TableCrowd different from other founder communities?",answer:"TableCrowd is built around meeting in person, over food, in small groups. Our dinners are not about pitching or formal presentations. They are hosted evenings where founders and investors come together to network, learn, and share real experiences – including the things you don't usually hear on stage or read online. A big part of what makes TableCrowd work is how the evenings are run. Our hosts know who's coming, welcome people by name, and take care of the details so conversations flow naturally and everyone feels comfortable taking part."},{question:"Who is TableCrowd for?",answer:"TableCrowd brings together people at different stages of building businesses – from those exploring ideas, to foun
658ders scaling companies, to those who have already raised funding and want to keep learning. Our community spans many sectors. What brings people to the table is a shared drive to progress, make better decisions, and learn from others who are actively building."},{question:"Is TableCrowd a membership?",answer:"People become part of the TableCrowd community by attending dinners or accessing our tools and services. There's no fixed membership fee. You take part when it's useful to you – by joining an event, accessing a tool, or using a service. Many founders return again and again. It's not unusual to share a table with people who have been dining with TableCrowd for years."}];function MG(){return l.jsxs(Vr,{children:[l.jsx(wa,{title:"About TableCrowd | Our Mission & Team",description:"TableCrowd brings founders together around the table for thoughtful, face-to-face conversation. Through curated dinners, experienced hosts, and shared learning.",canonicalPath:"/about"}),l.jsx("section",{className:"bg-gradient-to-b from-muted/50 to-background py-16 md:py-24",children:l.jsx("div",{className:"container",children:l.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[l.jsx("h1",{className:"mb-6 text-4xl font-bold text-foreground md:text-5xl",children:"About TableCrowd"}),l.jsx("p",{className:"text-lg text-muted-foreground md:text-xl",children:"TableCrowd brings founders together around the table for thoughtful, face-to-face conversation. Through curated dinners, experienced hosts, and shared learning, we create the conditions for meaningful connections and better decisions."})]})})}),l.jsx("section",{className:"py-8",children:l.jsx("div",{className:"container max-w-4xl",children:l.jsx("img",{src:AG,alt:"Founders in conversation at a TableCrowd dinner",className:"w-full rounded-2xl shadow-lg object-cover max-h-[380px]",loading:"lazy"})})}),l.jsx("section",{className:"py-16",children:l.jsx("div",{className:"container",children:l.jsx("div",{className:"mx-auto max-w-4xl",children:l.jsxs("div",{className:"grid gap-8 md:grid-cols-2 items-start",children:[l.jsxs("div",{children:[l.jsx("h2",{className:"mb-4 text-3xl font-bold text-foreground",children:"Why TableCrowd exists"}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"Building a company can feel isolating, especially when the most useful knowledge lives in rooms you're not yet in. Advice is everywhere online, but the real insight – the kind that comes from lived experience – is often harder to access."}),l.jsx("p",{className:"text-muted-foreground",children:"TableCrowd exists to change that. We believe founders learn best from other founders, in person, through open conversation and shared experience. Our aim is to make those conversations easier to access, and more enjoyable to take part in."})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"mb-4 text-3xl font-bold text-foreground",children:"How we do it"}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"We host small, carefully run dinners where founders, investors, and operators come together around the table. Every evening includes a guest speaker who shares candid experience, followed by open discussion over food."}),l.jsx("p",{className:"text-muted-foreground",children:"Our events are intentionally informal. There are no slides, no pitching, and no sales agenda – just thoughtful conversation, guided by experienced hosts who make sure everyone feels welcome and looked after, introverts included."})]})]})})})}),l.jsx("section",{className:"py-16 bg-muted/30",children:l.jsx("div",{className:"container",children:l.jsx("div",{className:"mx-auto max-w-4xl",children:l.jsxs("div",{className:"grid gap-8 md:grid-cols-3 text-center",children:[l.jsxs("div",{className:"bg-background rounded-2xl p-8",children:[l.jsx("p",{className:"text-5xl font-bold text-primary mb-2",children:"1,000s"}),l.jsx("p",{className:"text-muted-foreground",children:"Events"})]}),l.jsxs("div",{className:"bg-background rounded-2xl p-8",children:[l.jsx("p",{className:"text-5xl font-bold text-primary mb-2",children:"10,000s"}),l.jsx("p",{className:"text-muted-foreground",children:"Attendees"})]}),l.jsxs("div",{className:"bg-background rounded-2xl p-8",children:[l.jsx("p",{className:"text-4xl md:text-5xl font-bold text-primary mb-2 whitespace-nowrap",children:"20+ years"}),l.jsx("p",{className:"text-muted-foreground",children:"In startups"})]})]})})})}),l.jsx("section",{className:"py-16",children:l.jsxs("div",{className:"container",children:[l.jsx("h2",{className:"mb-12 text-center text-3xl font-bold text-foreground",children:"Our values"}),l.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-4",children:PG.map(e=>l.jsx(qt,{className:"text-center",children:l.jsxs(Zt,{className:"pt-6",children:[l.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10 text-primary",children:l.jsx(e.icon,{className:"h-6 w-6"})}),l.jsx("h3",{className:"mb-2 font-semibold text-foreground",children:e.title}),l.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})}
658,e.title))})]})}),l.jsx("section",{className:"py-16 bg-muted/30",children:l.jsxs("div",{className:"container",children:[l.jsxs("div",{className:"mx-auto max-w-3xl text-center mb-12",children:[l.jsx("h2",{className:"mb-4 text-3xl font-bold text-foreground",children:"Meet the team"}),l.jsx("p",{className:"text-muted-foreground",children:"TableCrowd is run by a small, experienced team who care deeply about creating great events. Our hosts know who's coming, recognise guests when they arrive, and create an environment where everyone feels comfortable taking part, making sure the evening runs smoothly and conversations flow naturally – introverts included."})]}),l.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3 max-w-5xl mx-auto",children:jG.map(e=>l.jsx(qt,{className:"text-center flex flex-col",children:l.jsxs(Zt,{className:"pt-6 flex flex-col flex-1",children:[e.photo?l.jsx("div",{className:"mx-auto mb-4 h-20 w-20 rounded-full overflow-hidden",children:l.jsx("img",{src:e.photo,alt:e.name,className:`h-full w-full object-cover ${"photoScale"in e&&e.photoScale?e.photoScale:""} ${"photoPosition"in e&&e.photoPosition?e.photoPosition:""}`})}):l.jsx("div",{className:"mx-auto mb-4 h-20 w-20 rounded-full bg-gradient-to-br from-primary to-accent"}),l.jsx("h3",{className:"font-semibold text-foreground",children:e.name}),l.jsx("p",{className:"text-sm text-primary mb-1",children:e.role}),"subtitle"in e&&e.subtitle&&l.jsx("p",{className:"text-xs text-muted-foreground italic mb-2",children:e.subt
658itle}),e.bio&&l.jsx("p",{className:"text-sm text-muted-foreground mb-3 whitespace-pre-line flex-1",children:e.bio}),e.linkedIn&&l.jsxs("a",{href:e.linkedIn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-1 text-xs text-primary hover:underline mt-auto w-full",children:[l.jsx(hj,{className:"h-4 w-4"}),"LinkedIn"]})]})},e.name))})]})}),l.jsx("section",{className:"py-12",children:l.jsx("div",{className:"container max-w-5xl mx-auto",children:l.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[l.jsx("img",{src:IG,alt:"Founders laughing together at a TableCrowd dinner",className:"w-full h-64 object-cover rounded-2xl bg-muted"}),l.jsx("img",{src:RG,alt:"TableCrowd dinner table setting with name cards and guests mingling",className:"w-full h-64 object-cover rounded-2xl bg-muted"}),l.jsx("img",{src:OG,alt:"Founder smiling at a TableCrowd dinner",className:"w-full h-64 object-cover rounded-2xl bg-muted"})]})})}),l.jsx("section",{className:"py-16 bg-muted/30",children:l.jsxs("div",{className:"container",children:[l.jsx("h2",{className:"mb-12 text-center text-3xl font-bold text-foreground",children:"What people say about TableCrowd"}),l.jsx("div",{className:"grid gap-6 md:grid-cols-3 max-w-5xl mx-auto",children:DG.map((e,t)=>l.jsx(qt,{children:l.jsxs(Zt,{className:"pt-6",children:[l.jsxs("p",{className:"text-muted-foreground italic mb-4",children:['"',e.quote,'"']}),l.jsxs("div",{children:[l.jsx("p",{className:"font-semibold text-foreground",children:e.name}),l.jsx("p",{className:"text-sm text-primary",children:e.role})]})]})},t))})]})}),l.jsx("section",{className:"py-12",children:l.jsx("div",{className:"container",children:l.jsx("p",{className:"text-center text-lg text-muted-foreground italic",children:"We've been bringing founders together around the table since 2014."})})}),l.jsx(Ed,{title:"About TableCrowd",subtitle:"Common questions about who we are and how we work",items:LG,className:"bg-muted/30"})]})}const FG="/assets/contact-dinner-DehhZuMo.png";function BG(){const{openLeadCapture:e}=kp(),[t,n]=y.useState(!1),[r,s]=y.useState(!1);return l.jsxs(Vr,{children:[l.jsx(wa,{title:"Contact TableCrowd | Get in Touch",description:"Questions about dinners, tools and services, or where to start? Get instant AI answers or speak to the TableCrowd team.",canonicalPath:"/contact"}),l.jsx("section",{className:"py-12 md:py-20",children:l.jsxs("div",{className:"container",children:[l.jsxs("div",{className:"mb-12 text-center",children:[l.jsx("h1",{className:"mb-4 text-4xl font-bold text-foreground md:text-5xl",children:"Get in Touch"}),l.jsx("p",{className:"mx-auto max-w-2xl text-lg text-muted-foreground",children:"Questions about dinners, tools and services, or where to start? Choose between instant answers from our AI, or speak to a human from the TableCrowd team."})]}),l.jsxs("div",{className:"mx-auto max-w-5xl grid gap-8 md:grid-cols-2",children:[l.jsxs("div",{className:"space-y-6",children:[l.jsxs(qt,{className:"overflow-hidden",children:[l.jsx(nr,{children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:l.jsx(mj,{className:"h-5 w-5"})}),l.jsxs("div",{children:[l.jsx(rr,{className:"text-lg",children:"Chat with us (AI)"}),l.jsx(yr,{children:"Get instant answers to common questions about dinners, tools, and services"})]})]})}),l.jsx(Zt,{children:r?l.jsx("div",{className:"min-h-[500px] rounded-lg overflow-hidden border border-border",children:l.jsx("iframe",{src:"https://www.chatbase.co/chatbot-iframe/EtejUojNLkCQ-rWeljz7V",width:"100%",height:"500",style:{border:"none"},title:"Chat with TableCrowd AI",allow:"microphone"})}):l.jsx(Ve,{onClick:()=>s(!0),className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",children:"Start a Conversation"})})]}),l.jsxs(qt,{className:"overflow-hidden",children:[l.jsx(nr,{children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:l.jsx(Us,{className:"h-5 w-5"})}),l.jsx("div",{children:l.jsx(rr,{className:"text-lg",children:"Book a meeting"})})]})}),l.jsxs(Zt,{className:"space-y-4",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"We've met 1000s of founders around the table and seen them face the same challenges. If you're unsure what you need now, who to work with, or just want to talk things through, we're happy to share what we've learned to help you structure your plans."}),t?l.jsx("div",{className:"min-h-[500px]",children:l.jsx(II,{url:"https://calendly.com/kate-tablecrowd/15min",styles:{height:"500px",width:"100%"}})}):l.jsxs(l.Fragment,{children:[l.jsx(Ve,{onClick:()=>n(!0),variant:"outline",className:"w-full",children:"View Available Times"}),l.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"15-minute, informal conversations with the most relevant member of the TableCrowd team."})]})]})]})]}),l.jsxs("div",{className:"space-y-6",children:[l.jsx(qt,{children:l.jsx(Zt,{className:"pt-6",children:l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:l.jsx(vp,{className:"h-5 w-5"})}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold text-foreground",children:"Email"}),l.jsx("a",{href:"mailto:[email protected]",className:"text-muted-foreground hover:text-primary transition-colors",children:"[email protected]"}),l.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"We're a small team and a little slower than AI – but if you want a person to read your message, use this option. We'll get back to you asap."})]})]})})}),l.jsx(qt,{className:"bg-primary text-primary-foreground",children:l.jsx(Zt,{className:"pt-6",children:l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary-foreground
658/20 text-primary-foreground",children:l.jsx(bp,{className:"h-5 w-5"})}),l.jsxs("div",{className:"flex-1",children:[l.jsx("h3",{className:"font-semibold mb-2",children:"Join TableCrowd"}),l.jsx("p",{className:"text-primary-foreground/90 text-sm mb-4",children:"Leave your details to receive dinner invitations and meet founders around the table."}),l.jsx(Ve,{variant:"secondary",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",onClick:e,children:"Get Dinner Invitations"})]})]})})})]})]}),l.jsx("div",{className:"mt-12 text-center",children:l.jsx("p",{className:"text-muted-foreground italic",children:"TableCrowd is built around face-to-face dinners and real conversations – supported by AI when you want answers quickly."})})]})}),l.jsx("section",{className:"py-0 pb-12",children:l.jsx("div",{className:"container max-w-5xl",children:l.jsx("img",{src:FG,alt:"Founders laughing together at a TableCrowd dinner event",className:"w-full rounded-2xl shadow-lg object-cover object-top max-h-[420px]",loading:"lazy"})})})]})}var Td=e=>e.type==="checkbox",Fa=e=>e instanceof Date,zn=e=>e==null;const jI=e=>typeof e=="object";var Kt=e=>!zn(e)&&!Array.isArray(e)&&jI(e)&&!Fa(e),LI=e=>Kt(e)&&e.target?Td(e.target)?e.target.checked:e.target.value:e,UG=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,MI=(e,t)=>e.has(UG(t)),HG=e=>{const t=e.constructor&&e.constructor.prototype;return Kt(t)&&t.hasOwnProperty("isPrototypeOf")},nx=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function sn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(nx&&(e instanceof Blob||r))&&(n||Kt(e)))if(t=n?[]:{},!n&&!HG(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=sn(e[s]));else return e;return t}var sm=e=>/^\w*$/.test(e),Vt=e=>e===void 0,rx=e=>Array.isArray(e)?e.filter(Boolean):[],sx=e=>rx(e.replace(/["|']|\]/g,"").split(/\.|\[/)),he=(e,t,n)=>{if(!t||!Kt(e))return n;const r=(sm(t)?[t]:sx(t)).reduce((s,i)=>zn(s)?s:s[i],e);return Vt(r)||r===e?Vt(e[t])?n:e[t]:r},mr=e=>typeof e=="boolean",ht=(e,t,n)=>{let r=-1;const s=sm(t)?[t]:sx(t),i=s.length,a=i-1;for(;++r<i;){const o=s[r];let u=n;if(r!==a){const c=e[o];u=Kt(c)||Array.isArray(c)?c:isNaN(+s[r+1])?{}:[]}if(o==="__proto__"||o==="constructor"||o==="prototype")return;e[o]=u,e=e[o]}};const jf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ls={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ks={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},ix=W.createContext(null);ix.displayName="HookFormContext";const im=()=>W.useContext(ix),$G=e=>{const{children:t,...n}=e;return W.createElement(ix.Provider,{value:n},t)};var FI=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const a=i;return t._proxyFormState[a]!==ls.all&&(t._proxyFormState[a]=!r||ls.all),n&&(n[a]=!0),e[a]}});return s};const ax=typeof window<"u"?W.useLayoutEffect:W.useEffect;function zG(e){const t=im(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[a,o]=W.useState(n._formState),u=W.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ax(()=>n._subscribe({name:s,formState:u.current,exact:i,callback:c=>{!r&&o({...n._formState,...c})}}),[s,r,i]),W.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),W.useMemo(()=>FI(a,n,u.current,!1),[a,n])}var Os=e=>typeof e=="string",BI=(e,t,n,r,s)=>Os(e)?(r&&t.watch.add(e),he(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),he(n,i))):(r&&(t.watchAll=!0),n),Dy=e=>zn(e)||!jI(e);function ni(e,t,n=new WeakSet){if(Dy(e)||Dy(t))return e===t;if(Fa(e)&&Fa(t))return e.getTime()===t.getTime();const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!s.includes(i))return!1;if(i!=="ref"){const o=t[i];if(Fa(a)&&Fa(o)||Kt(a)&&Kt(o)||Array.isArray(a)&&Array.isArray(o)?!ni(a,o,n):a!==o)return!1}}return!0}function VG(e){const t=im(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:a,compute:o}=e||{},u=W.useRef(s),c=W.useRef(o),d=W.useRef(void 0);c.current=o;const h=W.useMemo(()=>n._getWatch(r,u.current),[n,r]),[p,f]=W.useState(c.current?c.current(h):h);return ax(()=>n._subscribe({name:r,formState:{values:!0},exact:a,callback:w=>
658{if(!i){const m=BI(r,n._names,w.values||n._formValues,!1,u.current);if(c.current){const x=c.current(m);ni(x,d.current)||(f(x),d.current=x)}else f(m)}}}),[n,i,r,a]),W.useEffect(()=>n._removeUnmounted()),p}function WG(e){const t=im(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i,defaultValue:a}=e,o=MI(s._names.array,n),u=W.useMemo(()=>he(s._formValues,n,he(s._defaultValues,n,a)),[s,n,a]),c=VG({control:s,name:n,defaultValue:u,exact:!0}),d=zG({control:s,name:n,exact:!0}),h=W.useRef(e),p=W.useRef(s.register(n,{...e.rules,value:c,...mr(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const f=W.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!he(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!he(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!he(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!he(d.validatingFields,n)},error:{enumerable:!0,get:()=>he(d.errors,n)}}),[d,n]),w=W.useCallback(b=>p.current.onChange({target:{value:LI(b),name:n},type:jf.CHANGE}),[n]),m=W.useCallback(()=>p.current.onBlur({target:{value:he(s._formValues,n),name:n},type:jf.BLUR}),[n,s._formValues]),x=W.useCallback(b=>{const E=he(s._fields,n);E&&b&&(E._f.ref={focus:()=>b.focus&&b.focus(),select:()=>b.select&&b.select(),setCustomValidity:T=>b.setCustomValidity(T),reportValidity:()=>b.reportValidity()})},[s._fields,n]),v=W.useMemo(()=>({name:n,value:c,...mr(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:w,onBlur:m,ref:x}),[n,r,d.disabled,w,m,x,c]);return W.useEffect(()=>{const b=s._options.shouldUnregister||i;s.register(n,{...h.current.rules,...mr(h.current.disabled)?{disabled:h.current.disabled}:{}});const E=(T,C)=>{const _=he(s._fields,T);_&&_._f&&(_._f.mount=C)};if(E(n,!0),b){const T=sn(he(s._options.defaultValues,n));ht(s._defaultValues,n,T),Vt(he(s._formValues,n))&&ht(s._formValues,n,T)}return!o&&s.register(n),()=>{(o?b&&!s._state.action:b)?s.unregister(n):E(n,!1)}},[n,s,o,i]),W.useEffect(()=>{s._setDisabledField({disabled:r,name:n})},[r,n,s]),W.useMemo(()=>({field:v,formState:d,fieldState:f}),[v,d,f])}const qG=e=>e.render(WG(e));var UI=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},rc=e=>Array.isArray(e)?e:[e],v_=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}}
vendor: 9,718 bytes, line 658
658,Zn=e=>Kt(e)&&!Object.keys(e).length,ox=e=>e.type==="file",us=e=>typeof e=="function",Lf=e=>{if(!nx)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},HI=e=>e.type==="select-multiple",lx=e=>e.type==="radio",YG=e=>lx(e)||Td(e),kg=e=>Lf(e)&&e.isConnected;function KG(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Vt(e)?r++:e[t[r++]];return e}function GG(e){for(const t in e)if(e.hasOwnProperty(t)&&!Vt(e[t]))return!1;return!0}function Qt(e,t){const n=Array.isArray(t)?t:sm(t)?[t]:sx(t),r=n.length===1?e:KG(e,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(Kt(r)&&Zn(r)||Array.isArray(r)&&GG(r))&&Qt(e,n.slice(0,-1)),e}var $I=e=>{for(const t in e)if(us(e[t]))return!0;return!1};function Mf(e,t={}){const n=Array.isArray(e);if(Kt(e)||n)for(const r in e)Array.isArray(e[r])||Kt(e[r])&&!$I(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Mf(e[r],t[r])):zn(e[r])||(t[r]=!0);return t}function zI(e,t,n){const r=Array.isArray(e);if(Kt(e)||r)for(const s in e)Array.isArray(e[s])||Kt(e[s])&&!$I(e[s])?Vt(t)||Dy(n[s])?n[s]=Array.isArray(e[s])?Mf(e[s],[]):{...Mf(e[s])}:zI(e[s],zn(t)?{}:t[s],n[s]):n[s]=!ni(e[s],t[s]);return n}var Cu=(e,t)=>zI(e,t,Mf(t));const b_={value:!1,isValid:!1},x_={value:!0,isValid:!0};var VI=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Vt(e[0].attributes.value)?Vt(e[0].value)||e[0].value===""?x_:{value:e[0].value,isValid:!0}:x_:b_}return b_},WI=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Vt(e)?e:t?e===""?NaN:e&&+e:n&&Os(e)?new Date(e):r?r(e):e;const w_={isValid:!1,value:null};var qI=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,w_):w_;function E_(e){const t=e.ref;return ox(t)?t.files:lx(t)?qI(e.refs).value:HI(t)?[...t.selectedOptions].map(({value:n})=>n):Td(t)?VI(e.refs).value:WI(Vt(t.value)?e.ref.value:t.value,e)}var QG=(e,t,n,r)=>{const s={};for(const i of e){const a=he(t,i);a&&ht(s,i,a._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Ff=e=>e instanceof RegExp,ku=e=>Vt(e)?e:Ff(e)?e.source:Kt(e)?Ff(e.value)?e.value.source:e.value:e,__=e=>({isOnSubmit:!e||e===ls.onSubmit,isOnBlur:e===ls.onBlur,isOnChange:e===ls.onChange,isOnAll:e===ls.all,isOnTouch:e===ls.onTouched});const T_="AsyncFunction";var XG=e=>!!e&&!!e.validate&&!!(us(e.validate)&&e.validate.constructor.name===T_||Kt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===T_)),JG=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),S_=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const sc=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=he(e,s);if(i){const{_f:a,...o}=i;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],s)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(sc(o,t))break}else if(Kt(o)&&sc(o,t))break}}};function C_(e,t,n){const r=he(e,n);if(r||sm(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),a=he(t,i),o=he(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(o&&o.type)return{name:i,error:o};if(o&&o.root&&o.root.type)return{name:`${i}.root`,error:o.root};s.pop()}return{name:n}}var ZG=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Zn(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||ls.all))},eQ=(e,t,n)=>!e||!t||e===t||rc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),tQ=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,nQ=(e,t)=>!rx(he(e,t)).length&&Qt(e,t),rQ=(e,t,n)=>{const r=rc(he(e,n));return ht(r,"root",t[n]),ht(e,n,r),e},Hh=e=>Os(e);function k_(e,t,n="validate"){if(Hh(e)||Array.isArray(e)&&e.every(Hh)||mr(e)&&!e)return{type:n,message:Hh(e)?e:"",ref:t}}var Io=e=>Kt(e)&&!Ff(e)?e:{value:e,message:""},N_=async(e,t,n,r,s,i)=>{const{ref:a,refs:o,required:u,maxLength:c,minLength:d,min:h,max:p,pattern:f,validate:w,name:m,valueAsNumber:x,mount:v}=e._f,b=he(n,m);if(!v||t.has(m))return{};const E=o?o[0]:a,T=j=>{s&&E.reportValidity&&(E.setCustomValidity(mr(j)?"":j||""),E.reportValidity())},C={},_=lx(a),k=Td(a),P=_||k,M=(x||ox(a))&&Vt(a.value)&&Vt(b)||Lf(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,F=UI.bind(null,m,r,C),U=(j,Y,z,X=Ks.maxLength,Q=Ks.minLength)=>{const J=j?Y:z;C[m]={type:j?X:Q,message:J,ref:a,...F(j?X:Q,J)}};if(i?!Array.isArray(b)||!b.length:u&&(!P&&(M||zn(b))||mr(b)&&!b||k&&!VI(o).isValid||_&&!qI(o).isValid)){const{value:j,message:Y}=Hh(u)?{value:!!u,message:u}:Io(u);if(j&&(C[m]={type:Ks.required,message:Y,ref:E,...F(Ks.required,Y)},!r))return T(Y),C}if(!M&&(!zn(h)||!zn(p))){let j,Y;const z=Io(p),X=Io(h);if(!zn(b)&&!isNaN(b)){const Q=a.valueAsNumber||b&&+b;zn(z.value)||(j=Q>z.value),zn(X.value)||(Y=Q<X.value)}else{const Q=a.valueAsDate||new Date(b),J=S=>new Date(new Date().toDateString()+" "+S),$=a.type=="time",V=a.type=="week";Os(z.value)&&b&&(j=$?J(b)>J(z.value):V?b>z.value:Q>new Date(z.value)),Os(X.value)&&b&&(Y=$?J(b)<J(X.value):V?b<X.value:Q<new Date(X.value))}if((j||Y)&&(U(!!j,z.message,X.message,Ks.max,Ks.min),!r))return T(C[m].message),C}if((c||d)&&!M&&(Os(b)||i&&Array.isArray(b))){const j=Io(c),Y=Io(d),z=!zn(j.value)&&b.length>+j.value,X=!zn(Y.value)&&b.length<+Y.value;if((z||X)&&(U(z,j.message,Y.message),!r))return T(C[m].message),C}if(f&&!M&&Os(b)){const{value:j,message:Y}=Io(f);if(Ff(j)&&!b.match(j)&&(C[m]={type:Ks.pattern,message:Y,ref:a,...F(Ks.pattern,Y)},!r))return T(Y),C}if(w){if(us(w)){const j=await w(b,n),Y=k_(j,E);if(Y&&(C[m]={...Y,...F(Ks.validate,Y.message)},!r))return T(Y.message),C}else if(Kt(w)){let j={};for(const Y in w){if(!Zn(j)&&!r)break;const z=k_(await w[Y](b,n),E,Y);z&&(j={...z,...F(Y,z.message)},T(z.message),r&&(C[m]=j))}if(!Zn(j)&&(C[m]={ref:E,...j},!r))return C}}return T(!0),C};const sQ={mode:ls.onSubmit,reValidateMode:ls.onChange,shouldFocusError:!0};function iQ(e={}){let t={...sQ,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:us(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=Kt(t.defaultValues)||Kt(t.values)?sn(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:sn(s),a={action:!1,mount:!1,watch:!1},o={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...d};const p={array:v_(),state:v_()},f=t.criteriaMode===ls.all,w=I=>B=>{clearTimeout(c),c=setTimeout(I,B)},m=async I=>{if(!t.disabled&&(d.isValid||h.isValid||I)){const B=t.resolver?Zn((await k()).errors):await M(r,!0);B!==n.isValid&&p.state.next({isValid:B})}},x=(I,B)=>{!t.disabled&&(d.isValidating||d.validatingFields||h.isValidating||h.validatingFields)&&((I||Array.from(o.mount)).forEach(K=>{K&&(B?ht(n.validatingFields,K,B):Qt(n.validatingFields,K))}),p.state.next({validatingFields:n.validatingFields,isValidating:!Zn(n.validatingFields)}))},v=(I,B=[],K,le,oe=!0,ie=!0)=>{if(le&&K&&!t.disabled){if(a.action=!0,ie&&Array.isArray(he(r,I))){const L=K(he(r,I),le.argA,le.argB);oe&&ht(r,I,L)}if(ie&&Array.isArray(he(n.errors,I))){const L=K(he(n.errors,I),le.argA,le.argB);oe&&ht(n.errors,I,L),nQ(n.errors,I)}if((d.touchedFields||h.touchedFields)&&ie&&Array.isArray(he(n.touchedFields,I))){const L=K(he(n.touchedFields,I),le.argA,le.argB);oe&&ht(n.touchedFields,I,L)}(d.dirtyFields||h.dirtyFields)&&(n.dirtyFields=Cu(s,i)),p.state.next({name:I,isDirty:U(I,B),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ht(i,I,B)},b=(I,B)=>{ht(n.errors,I,B),p.state.next({errors:n.errors})},E=I=>{n.errors=I,p.state.next({errors:n.errors,isValid:!1})},T=(I,B,K,le)=>{const oe=he(r,I);if(oe){const ie=he(i,I,Vt(K)?he(s,I):K);Vt(ie)||le&&le.defaultChecked||B?ht(i,I,B?ie:E_(oe._f)):z(I,ie),a.mount&&m()}},C=(I,B,K,le,oe)=>{let ie=!1,L=!1;const G={name:I};if(!t.disabled){if(!K||le){(d.isDirty||h.isDirty)&&(L=n.isDirty,n.isDirty=G.isDirty=U(),ie=L!==G.isDirty);const de=ni(he(s,I),B);L=!!he(n.dirtyFields,I),de?Qt(n.dirtyFields,I):ht(n.dirtyFields,I,!0),G.dirtyFields=n.dirtyFields,ie=ie||(d.dirtyFields||h.dirtyFields)&&L!==!de}if(K){const de=he(n.touchedFields,I);de||(ht(n.touchedFields,I,K),G.touchedFields=n.touchedFields,ie=ie||(d.touchedFields||h.touchedFields)&&de!==K)}ie&&oe&&p.state.next(G)}return ie?G:{}},_=(I,B,K,le)=>{const oe=he(n.errors,I),ie=(d.isValid||h.isValid)&&mr(B)&&n.isValid!==B;if(t.delayError&&K?(u=w(()=>b(I,K)),u(t.delayError)):(clearTimeout(c),u=null,K?ht(n.errors,I,K):Qt(n.errors,I)),(K?!ni(oe,K):oe)||!Zn(le)||ie){const L={...le,...ie&&mr(B)?{isValid:B}:{},errors:n.errors,name:I};n={...n,...L},p.state.next(L)}},k=async I=>{x(I,!0);const B=await t.resolver(i,t.context,QG(I||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(I),B},P=async I=>{const{errors:B}=await k(I);if(I)for(const K of I){const le=he(B,K);le?ht(n.errors,K,le):Qt(n.errors,K)}else n.errors=B;return B},M=async(I,B,K={valid:!0})=>{for(const le in I){const oe=I[le];if(oe){const{_f:ie,...L}=oe;if(ie){const G=o.array.has(ie.name),de=oe._f&&XG(oe._f);de&&d.validatingFields&&x([le],!0);const Te=await N_(oe,o.disabled,i,f,t.shouldUseNativeValidation&&!B,G);if(de&&d.validatingFields&&x([le]),Te[ie.name]&&(K.valid=!1,B))break;!B&&(he(Te,ie.name)?G?rQ(n.errors,Te,ie.name):ht(n.errors,ie.name,Te[ie.name]):Qt(n.errors,ie.name))}!Zn(L)&&await M(L,B,K)}}return K.valid},F=()=>{for(const I of o.unMount){const B=he(r,I);B&&(B._f.refs?B._f.refs.every(K=>
vendor: 9,567 bytes, line 658
658!kg(K)):!kg(B._f.ref))&&re(I)}o.unMount=new Set},U=(I,B)=>!t.disabled&&(I&&B&&ht(i,I,B),!ni(S(),s)),j=(I,B,K)=>BI(I,o,{...a.mount?i:Vt(B)?s:Os(I)?{[I]:B}:B},K,B),Y=I=>rx(he(a.mount?i:s,I,t.shouldUnregister?he(s,I,[]):[])),z=(I,B,K={})=>{const le=he(r,I);let oe=B;if(le){const ie=le._f;ie&&(!ie.disabled&&ht(i,I,WI(B,ie)),oe=Lf(ie.ref)&&zn(B)?"":B,HI(ie.ref)?[...ie.ref.options].forEach(L=>L.selected=oe.includes(L.value)):ie.refs?Td(ie.ref)?ie.refs.forEach(L=>{(!L.defaultChecked||!L.disabled)&&(Array.isArray(oe)?L.checked=!!oe.find(G=>G===L.value):L.checked=oe===L.value||!!oe)}):ie.refs.forEach(L=>L.checked=L.value===oe):ox(ie.ref)?ie.ref.value="":(ie.ref.value=oe,ie.ref.type||p.state.next({name:I,values:sn(i)})))}(K.shouldDirty||K.shouldTouch)&&C(I,oe,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&V(I)},X=(I,B,K)=>{for(const le in B){if(!B.hasOwnProperty(le))return;const oe=B[le],ie=I+"."+le,L=he(r,ie);(o.array.has(I)||Kt(oe)||L&&!L._f)&&!Fa(oe)?X(ie,oe,K):z(ie,oe,K)}},Q=(I,B,K={})=>{const le=he(r,I),oe=o.array.has(I),ie=sn(B);ht(i,I,ie),oe?(p.array.next({name:I,values:sn(i)}),(d.isDirty||d.dirtyFields||h.isDirty||h.dirtyFields)&&K.shouldDirty&&p.state.next({name:I,dirtyFields:Cu(s,i),isDirty:U(I,ie)})):le&&!le._f&&!zn(ie)?X(I,ie,K):z(I,ie,K),S_(I,o)&&p.state.next({...n,name:I}),p.state.next({name:a.mount?I:void 0,values:sn(i)})},J=async I=>{a.mount=!0;const B=I.target;let K=B.name,le=!0;const oe=he(r,K),ie=de=>{le=Number.isNaN(de)||Fa(de)&&isNaN(de.getTime())||ni(de,he(i,K,de))},L=__(t.mode),G=__(t.reValidateMode);if(oe){let de,Te;const $e=B.type?E_(oe._f):LI(I),ot=I.type===jf.BLUR||I.type===jf.FOCUS_OUT,Mn=!JG(oe._f)&&!t.resolver&&!he(n.errors,K)&&!oe._f.deps||tQ(ot,he(n.touchedFields,K),n.isSubmitted,G,L),nn=S_(K,o,ot);ht(i,K,$e),ot?(oe._f.onBlur&&oe._f.onBlur(I),u&&u(0)):oe._f.onChange&&oe._f.onChange(I);const cn=C(K,$e,ot),Kn=!Zn(cn)||nn;if(!ot&&p.state.next({name:K,type:I.type,values:sn(i)}),Mn)return(d.isValid||h.isValid)&&(t.mode==="onBlur"?ot&&m():ot||m()),Kn&&p.state.next({name:K,...nn?{}:cn});if(!ot&&nn&&p.state.next({...n}),t.resolver){const{errors:gt}=await k([K]);if(ie($e),le){const Ir=C_(n.errors,r,K),En=C_(gt,r,Ir.name||K);de=En.error,K=En.name,Te=Zn(gt)}}else x([K],!0),de=(await N_(oe,o.disabled,i,f,t.shouldUseNativeValidation))[K],x([K]),ie($e),le&&(de?Te=!1:(d.isValid||h.isValid)&&(Te=await M(r,!0)));le&&(oe._f.deps&&V(oe._f.deps),_(K,Te,de,cn))}},$=(I,B)=>{if(he(n.errors,B)&&I.focus)return I.focus(),1},V=async(I,B={})=>{let K,le;const oe=rc(I);if(t.resolver){const ie=await P(Vt(I)?I:oe);K=Zn(ie),le=I?!oe.some(L=>he(ie,L)):K}else I?(le=(await Promise.all(oe.map(async ie=>{const L=he(r,ie);return await M(L&&L._f?{[ie]:L}:L)}))).every(Boolean),!(!le&&!n.isValid)&&m()):le=K=await M(r);return p.state.next({...!Os(I)||(d.isValid||h.isValid)&&K!==n.isValid?{}:{name:I},...t.resolver||!I?{isValid:K}:{},errors:n.errors}),B.shouldFocus&&!le&&sc(r,$,I?oe:o.mount),le},S=I=>{const B={...a.mount?i:s};return Vt(I)?B:Os(I)?he(B,I):I.map(K=>he(B,K))},ue=(I,B)=>({invalid:!!he((B||n).errors,I),isDirty:!!he((B||n).dirtyFields,I),error:he((B||n).errors,I),isValidating:!!he(n.validatingFields,I),isTouched:!!he((B||n).touchedFields,I)}),te=I=>{I&&rc(I).forEach(B=>Qt(n.errors,B)),p.state.next({errors:I?n.errors:{}})},R=(I,B,K)=>{const le=(he(r,I,{_f:{}})._f||{}).ref,oe=he(n.errors,I)||{},{ref:ie,message:L,type:G,...de}=oe;ht(n.errors,I,{...de,...B,ref:le}),p.state.next({name:I,errors:n.errors,isValid:!1}),K&&K.shouldFocus&&le&&le.focus&&le.focus()},pe=(I,B)=>us(I)?p.state.subscribe({next:K=>"values"in K&&I(j(void 0,B),K)}):j(I,B,!0),je=I=>p.state.subscribe({next:B=>{eQ(I.name,B.name,I.exact)&&ZG(B,I.formState||d,wn,I.reRenderRoot)&&I.callback({values:{...i},...n,...B,defaultValues:s})}}).unsubscribe,_e=I=>(a.mount=!0,h={...h,...I.formState},je({...I,formState:h})),re=(I,B={})=>{for(const K of I?rc(I):o.mount)o.mount.delete(K),o.array.delete(K),B.keepValue||(Qt(r,K),Qt(i,K)),!B.keepError&&Qt(n.errors,K),!B.keepDirty&&Qt(n.dirtyFields,K),!B.keepTouched&&Qt(n.touchedFields,K),!B.keepIsValidating&&Qt(n.validatingFields,K),!t.shouldUnregister&&!B.keepDefaultValue&&Qt(s,K);p.state.next({values:sn(i)}),p.state.next({...n,...B.keepDirty?{isDirty:U()}:{}}),!B.keepIsValid&&m()},we=({disabled:I,name:B})=>{(mr(I)&&a.mount||I||o.disabled.has(B))&&(I?o.disabled.add(B):o.disabled.delete(B))},Le=(I,B={})=>{let K=he(r,I);const le=mr(B.disabled)||mr(t.disabled);return ht(r,I,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:I}},name:I,mount:!0,...B}}),o.mount.add(I),K?we({disabled:mr(B.disabled)?B.disabled:t.disabled,name:I}):T(I,!0,B.value),{...le?{disabled:B.disabled||t.disabled}:{},...t.progressive?{required:!!B.required,min:ku(B.min),max:ku(B.max),minLength:ku(B.minLength),maxLength:ku(B.maxLength),pattern:ku(B.pattern)}:{},name:I,onChange:J,onBlur:J,ref:oe=>{if(oe){Le(I,B),K=he(r,I);const ie=Vt(oe.value)&&oe.querySelectorAll&&oe.querySelectorAll("input,select,textarea")[0]||oe,L=YG(ie),G=K._f.refs||[];if(L?G.find(de=>de===ie):ie===K._f.ref)return;ht(r,I,{_f:{...K._f,...L?{refs:[...G.filter(kg),ie,...Array.isArray(he(s,I))?[{}]:[]],ref:{type:ie.type,name:I}}:{ref:ie}}}),T(I,!1,void 0,ie)}else K=he(r,I,{}),K._f&&(K._f.mount=!1),(t.shouldUnregister||B.shouldUnregister)&&!(MI(o.array,I)&&a.action)&&o.unMount.add(I)}}},fe=()=>t.shouldFocusError&&sc(r,$,o.mount),Ne=I=>{mr(I)&&(p.state.next({disabled:I}),sc(r,(B,K)=>{const le=he(r,K);le&&(B.disabled=le._f.disabled||I,Array.isArray(le._f.refs)&&le._f.refs.forEach(oe=>{oe.disabled=le._f.disabled||I}))},0,!1))},Ae=(I,B)=>async K=>{let le;K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let oe=sn(i);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:ie,values:L}=await k();n.errors=ie,oe=sn(L)}else await M(r);if(o.disabled.size)for(const ie of o.disabled)Qt(oe,ie);if(Qt(n.errors,"root"),Zn(n.errors)){p.state.next({errors:{}});try{await I(oe,K)}catch(ie){le=ie}}else B&&await B({...n.errors},K),fe(),setTimeout(fe);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zn(n.errors)&&!le,submitCount:n.submitCount+1,errors:n.errors}),le)throw le},dt=(I,B={})=>{he(r,I)&&(Vt(B.defaultValue)?Q(I,sn(he(s,I))):(Q(I,B.defaultValue),ht(s,I,sn(B.defaultValue))),B.keepTouched||Qt(n.touchedFields,I),B.keepDirty||(Qt(n.dirtyFields,I),n.isDirty=B.defaultValue?U(I,sn(he(s,I))):U()),B.keepError||(Qt(n.errors,I),d.isValid&&m()),p.state.next({...n}))},Ge=(I,B={})=>{const K=I?sn(I):s,le=sn(K),oe=Zn(I),ie=oe?s:le;if(B.keepDefaultValues||(s=K),!B.keepValues){if(B.keepDirtyValues){const L=new Set([...o.mount,...Object.keys(Cu(s,i))]);for(const G of Array.from(L))he(n.dirtyFields,G)?ht(ie,G,he(i,G)):Q(G,he(ie,G))}else{if(nx&&Vt(I))for(const L of o.mount){const G=he(r,L);if(G&&G._f){const de=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(Lf(de)){const Te=de.closest("form");if(Te){Te.reset();break}}}}if(B.keepFieldsRef)for(const L of o.mount)Q(L,he(ie,L));else r={}}i=t.shouldUnregister?B.keepDefaultValues?sn(s):{}:sn(ie),p.array.next({values:{...ie}}),p.state.next({values:{...ie}})}o={mount:B.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!B.keepIsValid||!!B.keepDirtyValues,a.watch=!!t.shouldUnregister,p.state.next({submitCount:B.keepSubmitCount?n.submitCount:0,isDirty:oe?!1:B.keepDirty?n.isDirty:!!(B.keepDefaultValues&&!ni(I,s)),isSubmitted:B.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:oe?{}:B.keepDirtyValues?B.keepDefaultValues&&i?Cu(s,i):n.dirtyFields:B.keepDefaultValues&&I?Cu(s,I):B.keepDirty?n.dirtyFields:{},touchedFields:B.keepTouched?n.touchedFields:{},errors:B.keepErrors?n.errors:{},isSubmitSuccessful:B.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Nt=(I,B)=>Ge(us(I)?I(i):I,B),Lt=(I,B={})=>{const K=he(r,I),le=K&&K._f;if(le){const oe=le.refs?le.refs[0]:le.ref;oe.focus&&(oe.focus(),B.shouldSelect&&us(oe.select)&&oe.select())}},wn=I=>{n={...n,...I}},ce={control:{register:Le,unregister:re,getFieldState:ue,handleSubmit:Ae,setError:R,_subscribe:je,_runSchema:k,_focusError:fe,_getWatch:j,_getDirty:U,_setValid:m,_setFieldArray:v,_setDisabledField:we,_setErrors:E,_getFieldArray:Y,_reset:Ge,_resetDefaultValues:()=>us(t.defaultValues)&&t.defaultValues().then(I=>{Nt(I,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:F,_disableForm:Ne,_subjects:p,_proxyFormState:d,get _fields(){return r},get _formValues(){return i},get _state(){return a},set _state(I){a=I},get _defaultValues(){return s},get _names(){return o},set _names(I){o=I},get _formState(){return n},get _options(){return t},set _options(I){t={...t,...I}}},subscribe:_e,trigger:V,register:Le,handleSubmit:Ae,watch:pe,setValue:Q,getValues:S,reset:Nt,resetField:dt,clearErrors:te,unregister:re,setError:R,setFocus:Lt,getFieldState:ue};return{...ce,formControl:ce}}function YI(e={}){const t=W.useRef(void 0),n=W.useRef(void 0),[r,s]=W.useState({isDirty:!1,isValidating:!1,isLoading:us(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:us(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!us(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...o}=iQ(e);t.current={...o,formState:r}}const i=t.current.control;return i._options=e,ax(()=>{const a=i._subscribe({formState:i._proxyFormState,callback:()=>s({...i._formState}
vendor: 4,307 bytes, line 658
658),reRenderRoot:!0});return s(o=>({...o,isReady:!0})),i._formState.isReady=!0,a},[i]),W.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),W.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),W.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),W.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),W.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==r.isDirty&&i._subjects.state.next({isDirty:a})}},[i,r.isDirty]),W.useEffect(()=>{e.values&&!ni(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,s(a=>({...a}))):i._resetDefaultValues()},[i,e.values]),W.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=FI(r,i),t.current}const A_=(e,t,n)=>{if(e&&"reportValidity"in e){const r=he(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},KI=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?A_(r.ref,n,e):r.refs&&r.refs.forEach(s=>A_(s,n,e))}},aQ=(e,t)=>{t.shouldUseNativeValidation&&KI(e,t);const n={};for(const r in e){const s=he(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(oQ(t.names||Object.keys(e),r)){const a=Object.assign({},he(n,r));ht(a,"root",i),ht(n,r,a)}else ht(n,r,i)}return n},oQ=(e,t)=>e.some(n=>n.startsWith(t+"."));var lQ=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,a=r.path.join(".");if(!n[a])if("unionErrors"in r){var o=r.unionErrors[0].errors[0];n[a]={message:o.message,type:o.code}}else n[a]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(h){return e.push(h)})}),t){var u=n[a].types,c=u&&u[r.code];n[a]=UI(a,t,n,s,c?[].concat(c,r.message):r.message)}e.shift()}return n},GI=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(a,o){try{var u=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return i.shouldUseNativeValidation&&KI({},i),{errors:{},values:n.raw?r:c}})}catch(c){return o(c)}return u&&u.then?u.then(void 0,o):u}(0,function(a){if(function(o){return Array.isArray(o==null?void 0:o.errors)}(a))return{values:{},errors:aQ(lQ(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}}},at;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const a of s)i[a]=a;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),a={};for(const o of i)a[o]=s[o];return e.objectValues(a)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const a in s)Object.prototype.hasOwnProperty.call(s,a)&&i.push(a);return i},e.find=(s,i)=>{for(const a of s)if(i(a))return a},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(at||(at={}));var R_;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(R_||(R_={}));const ve=at.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ii=e=>{switch(typeof e){case"undefined":return ve.undefined;case"string":return ve.string;case"number":return Number.isNaN(e)?ve.nan:ve.number;case"boolean":return ve.boolean;case"function":return ve.function;case"bigint":return ve.bigint;case"symbol":return ve.symbol;case"object":return Array.isArray(e)?ve.array:e===null?ve.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ve.promise:typeof Map<"u"&&e instanceof Map?ve.map:typeof Set<"u"&&e instanceof Set?ve.set:typeof Date<"u"&&e instanceof Date?ve.date:ve.object;default:return ve.unknown}}
vendor: 4,703 bytes, line 658
658,ae=at.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class mi extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(s);else if(a.code==="invalid_return_type")s(a.returnTypeError);else if(a.code==="invalid_arguments")s(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let o=r,u=0;for(;u<a.path.length;){const c=a.path[u];u===a.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(n(a))):o[c]=o[c]||{_errors:[]},o=o[c],u++}}};return s(this),r}static assert(t){if(!(t instanceof mi))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,at.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];n[i]=n[i]||[],n[i].push(t(s))}else r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}mi.create=e=>new mi(e);const jy=(e,t)=>{let n;switch(e.code){case ae.invalid_type:e.received===ve.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ae.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,at.jsonStringifyReplacer)}`;break;case ae.unrecognized_keys:n=`Unrecognized key(s) in object: ${at.joinValues(e.keys,", ")}`;break;case ae.invalid_union:n="Invalid input";break;case ae.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${at.joinValues(e.options)}`;break;case ae.invalid_enum_value:n=`Invalid enum value. Expected ${at.joinValues(e.options)}, received '${e.received}'`;break;case ae.invalid_arguments:n="Invalid function arguments";break;case ae.invalid_return_type:n="Invalid function return type";break;case ae.invalid_date:n="Invalid date";break;case ae.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:at.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ae.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ae.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ae.custom:n="Invalid input";break;case ae.invalid_intersection_types:n="Intersection results could not be merged";break;case ae.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ae.not_finite:n="Number must be finite";break;default:n=t.defaultError,at.assertNever(e)}return{message:n}};let uQ=jy;function cQ(){return uQ}const dQ=e=>
vendor: 17,856 bytes, line 658
658{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],a={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let o="";const u=r.filter(c=>!!c).slice().reverse();for(const c of u)o=c(a,{data:t,defaultError:o}).message;return{...s,path:i,message:o}};function ge(e,t){const n=cQ(),r=dQ({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===jy?void 0:jy].filter(s=>!!s)});e.common.issues.push(r)}class Nr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return Me;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const i=await s.key,a=await s.value;r.push({key:i,value:a})}return Nr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:a}=s;if(i.status==="aborted"||a.status==="aborted")return Me;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||s.alwaysSet)&&(r[i.value]=a.value)}return{status:t.value,value:r}}}const Me=Object.freeze({status:"aborted"}),Lu=e=>({status:"dirty",value:e}),Qr=e=>({status:"valid",value:e}),I_=e=>e.status==="aborted",O_=e=>e.status==="dirty",Ll=e=>e.status==="valid",Bf=e=>typeof Promise<"u"&&e instanceof Promise;var xe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(xe||(xe={}));class ha{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const P_=(e,t)=>{if(Ll(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new mi(e.common.issues);return this._error=n,this._error}}};function Ye(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(a,o)=>{const{message:u}=e;return a.code==="invalid_enum_value"?{message:u??o.defaultError}:typeof o.data>"u"?{message:u??r??o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:u??n??o.defaultError}},description:s}}class nt{get description(){return this._def.description}_getType(t){return Ii(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ii(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Nr,ctx:{common:t.parent.common,data:t.data,parsedType:Ii(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Bf(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ii(t)},s=this._parseSync({data:t,path:r.path,parent:r});return P_(r,s)}"~validate"(t){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ii(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:n});return Ll(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>Ll(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ii(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(Bf(s)?s:Promise.resolve(s));return P_(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const a=t(s),o=()=>i.addIssue({code:ae.custom,...r(s)});return typeof Promise<"u"&&a instanceof Promise?a.then(u=>u?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new Fl({schema:this,typeName:Fe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return oa.create(this,this._def)}nullable(){return Bl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ms.create(this)}promise(){return zf.create(this,this._def)}or(t){return Hf.create([this,t],this._def)}and(t){return $f.create(this,t,this._def)}transform(t){return new Fl({...Ye(this._def),schema:this,typeName:Fe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new By({...Ye(this._def),innerType:this,defaultValue:n,typeName:Fe.ZodDefault})}brand(){return new DQ({typeName:Fe.ZodBranded,type:this,...Ye(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Uy({...Ye(this._def),innerType:this,catchValue:n,typeName:Fe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ux.create(this,t)}readonly(){return Hy.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const hQ=/^c[^\s-]{8,}$/i,fQ=/^[0-9a-z]+$/,pQ=/^[0-9A-HJKMNP-TV-Z]{26}$/i,mQ=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,gQ=/^[a-z0-9_-]{21}$/i,yQ=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,vQ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,bQ=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,xQ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ng;const wQ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,EQ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,_Q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,TQ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,SQ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,CQ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,QI="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",kQ=new RegExp(`^${QI}$`);function XI(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function NQ(e){return new RegExp(`^${XI(e)}$`)}function AQ(e){let t=`${QI}T${XI(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function RQ(e,t){return!!((t==="v4"||!t)&&wQ.test(e)||(t==="v6"||!t)&&_Q.test(e))}function IQ(e,t){if(!yQ.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function OQ(e,t){return!!((t==="v4"||!t)&&EQ.test(e)||(t==="v6"||!t)&&TQ.test(e))}class Qi extends nt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ve.string){const i=this._getOrReturnCtx(t);return ge(i,{code:ae.invalid_type,expected:ve.string,received:i.parsedType}),Me}const r=new Nr;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),ge(s,{code:ae.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),ge(s,{code:ae.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const a=t.data.length>i.value,o=t.data.length<i.value;(a||o)&&(s=this._getOrReturnCtx(t,s),a?ge(s,{code:ae.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&ge(s,{code:ae.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")bQ.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"email",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Ng||(Ng=new RegExp(xQ,"u")),Ng.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"emoji",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")mQ.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"uuid",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")gQ.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"nanoid",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")hQ.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"cuid",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")fQ.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"cuid2",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")pQ.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"ulid",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),ge(s,{validation:"url",code:ae.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"regex",code:ae.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),ge(s,{code:ae.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),ge(s,{code:ae.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),ge(s,{code:ae.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?AQ(i).test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{code:ae.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?kQ.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{code:ae.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?NQ(i).test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{code:ae.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?vQ.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"duration",code:ae.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?RQ(t.data,i.version)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"ip",code:ae.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?IQ(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"jwt",code:ae.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?OQ(t.data,i.version)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"cidr",code:ae.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?SQ.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"base64",code:ae.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?CQ.test(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{validation:"base64url",code:ae.invalid_string,message:i.message}),r.dirty()):at.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:ae.invalid_string,...xe.errToObj(r)})}_addCheck(t){return new Qi({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...xe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...xe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...xe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...xe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...xe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...xe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...xe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...xe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...xe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...xe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...xe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...xe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...xe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...xe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...xe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...xe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...xe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...xe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...xe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...xe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...xe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...xe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...xe.errToObj(n)})}nonempty(t){return this.min(1,xe.errToObj(t))}trim(){return new Qi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Qi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Qi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,670 bytes, line 658
658get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Qi.create=e=>new Qi({checks:[],typeName:Fe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ye(e)});function PQ(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=Number.parseInt(e.toFixed(s).replace(".","")),a=Number.parseInt(t.toFixed(s).replace(".",""));return i%a/10**s}class Wc extends nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ve.number){const i=this._getOrReturnCtx(t);return ge(i,{code:ae.invalid_type,expected:ve.number,received:i.parsedType}),Me}let r;const s=new Nr;for(const i of this._def.checks)i.kind==="int"?at.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ge(r,{code:ae.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ge(r,{code:ae.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ge(r,{code:ae.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?PQ(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ge(r,{code:ae.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ge(r,{code:ae.not_finite,message:i.message}),s.dirty()):at.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,xe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,xe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,xe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,xe.toString(n))}setLimit(t,n,r,s){return new Wc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:xe.toString(s)}]})}_addCheck(t){return new Wc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:xe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:xe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:xe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:xe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:xe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:xe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:xe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:xe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:xe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&at.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}
vendor: 4,397 bytes, line 658
658}Wc.create=e=>new Wc({checks:[],typeName:Fe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ye(e)});class qc extends nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ve.bigint)return this._getInvalidInput(t);let r;const s=new Nr;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ge(r,{code:ae.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ge(r,{code:ae.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ge(r,{code:ae.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):at.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ge(n,{code:ae.invalid_type,expected:ve.bigint,received:n.parsedType}),Me}gte(t,n){return this.setLimit("min",t,!0,xe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,xe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,xe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,xe.toString(n))}setLimit(t,n,r,s){return new qc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:xe.toString(s)}]})}_addCheck(t){return new qc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:xe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:xe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:xe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:xe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:xe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}qc.create=e=>new qc({checks:[],typeName:Fe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ye(e)});class Ly extends nt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ve.boolean){const r=this._getOrReturnCtx(t);return ge(r,{code:ae.invalid_type,expected:ve.boolean,received:r.parsedType}),Me}return Qr(t.data)}}Ly.create=e=>new Ly({typeName:Fe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ye(e)});class Uf extends nt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ve.date){const i=this._getOrReturnCtx(t);return ge(i,{code:ae.invalid_type,expected:ve.date,received:i.parsedType}),Me}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ge(i,{code:ae.invalid_date}),Me}const r=new Nr;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),ge(s,{code:ae.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),ge(s,{code:ae.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):at.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Uf({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:xe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:xe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Uf.create=e=>new Uf({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Fe.ZodDate,...Ye(e)});class D_ extends nt{_parse(t){if(this._getType(t)!==ve.symbol){const r=this._getOrReturnCtx(t);return ge(r,{code:ae.invalid_type,expected:ve.symbol,received:r.parsedType}),Me}return Qr(t.data)}}D_.create=e=>new D_({typeName:Fe.ZodSymbol,...Ye(e)});
vendor: 8,280 bytes, line 658
658class j_ extends nt{_parse(t){if(this._getType(t)!==ve.undefined){const r=this._getOrReturnCtx(t);return ge(r,{code:ae.invalid_type,expected:ve.undefined,received:r.parsedType}),Me}return Qr(t.data)}}j_.create=e=>new j_({typeName:Fe.ZodUndefined,...Ye(e)});class L_ extends nt{_parse(t){if(this._getType(t)!==ve.null){const r=this._getOrReturnCtx(t);return ge(r,{code:ae.invalid_type,expected:ve.null,received:r.parsedType}),Me}return Qr(t.data)}}L_.create=e=>new L_({typeName:Fe.ZodNull,...Ye(e)});class M_ extends nt{constructor(){super(...arguments),this._any=!0}_parse(t){return Qr(t.data)}}M_.create=e=>new M_({typeName:Fe.ZodAny,...Ye(e)});class F_ extends nt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Qr(t.data)}}F_.create=e=>new F_({typeName:Fe.ZodUnknown,...Ye(e)});class fa extends nt{_parse(t){const n=this._getOrReturnCtx(t);return ge(n,{code:ae.invalid_type,expected:ve.never,received:n.parsedType}),Me}}fa.create=e=>new fa({typeName:Fe.ZodNever,...Ye(e)});class B_ extends nt{_parse(t){if(this._getType(t)!==ve.undefined){const r=this._getOrReturnCtx(t);return ge(r,{code:ae.invalid_type,expected:ve.void,received:r.parsedType}),Me}return Qr(t.data)}}B_.create=e=>new B_({typeName:Fe.ZodVoid,...Ye(e)});class Ms extends nt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==ve.array)return ge(n,{code:ae.invalid_type,expected:ve.array,received:n.parsedType}),Me;if(s.exactLength!==null){const a=n.data.length>s.exactLength.value,o=n.data.length<s.exactLength.value;(a||o)&&(ge(n,{code:a?ae.too_big:ae.too_small,minimum:o?s.exactLength.value:void 0,maximum:a?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(ge(n,{code:ae.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(ge(n,{code:ae.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,o)=>s.type._parseAsync(new ha(n,a,n.path,o)))).then(a=>Nr.mergeArray(r,a));const i=[...n.data].map((a,o)=>s.type._parseSync(new ha(n,a,n.path,o)));return Nr.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Ms({...this._def,minLength:{value:t,message:xe.toString(n)}})}max(t,n){return new Ms({...this._def,maxLength:{value:t,message:xe.toString(n)}})}length(t,n){return new Ms({...this._def,exactLength:{value:t,message:xe.toString(n)}})}nonempty(t){return this.min(1,t)}}Ms.create=(e,t)=>new Ms({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Fe.ZodArray,...Ye(t)});function jo(e){if(e instanceof $t){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=oa.create(jo(r))}return new $t({...e._def,shape:()=>t})}else return e instanceof Ms?new Ms({...e._def,type:jo(e.element)}):e instanceof oa?oa.create(jo(e.unwrap())):e instanceof Bl?Bl.create(jo(e.unwrap())):e instanceof co?co.create(e.items.map(t=>jo(t))):e}class $t extends nt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=at.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ve.object){const c=this._getOrReturnCtx(t);return ge(c,{code:ae.invalid_type,expected:ve.object,received:c.parsedType}),Me}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof fa&&this._def.unknownKeys==="strip"))for(const c in s.data)a.includes(c)||o.push(c);const u=[];for(const c of a){const d=i[c],h=s.data[c];u.push({key:{status:"valid",value:c},value:d._parse(new ha(s,h,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof fa){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of o)u.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(c==="strict")o.length>0&&(ge(s,{code:ae.unrecognized_keys,keys:o}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of o){const h=s.data[d];u.push({key:{status:"valid",value:d},value:c._parse(new ha(s,h,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of u){const h=await d.key,p=await d.value;c.push({key:h,value:p,alwaysSet:d.alwaysSet})}return c}).then(c=>Nr.mergeObjectSync(r,c)):Nr.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return xe.errToObj,new $t({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a;const s=((a=(i=this._def).errorMap)==null?void 0:a.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:xe.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new $t({...this._def,unknownKeys:"strip"})}passthrough(){return new $t({...this._def,unknownKeys:"passthrough"})}extend(t){return new $t({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new $t({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Fe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new $t({...this._def,catchall:t})}pick(t){const n={};for(const r of at.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new $t({...this._def,shape:()=>n})}omit(t){const n={};for(const r of at.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new $t({...this._def,shape:()=>n})}deepPartial(){return jo(this)}partial(t){const n={};for(const r of at.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}return new $t({...this._def,shape:()=>n})}required(t){const n={};for(const r of at.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof oa;)i=i._def.innerType;n[r]=i}return new $t({...this._def,shape:()=>n})}keyof(){return JI(at.objectKeys(this.shape))}}$t.create=(e,t)=>new $t({shape:()=>e,unknownKeys:"strip",catchall:fa.create(),typeName:Fe.ZodObject,...Ye(t)});$t.strictCreate=(e,t)=>new $t({shape:()=>e,unknownKeys:"strict",catchall:fa.create(),typeName:Fe.ZodObject,...Ye(t)});$t.lazycreate=(e,t)=>new $t({shape:e,unknownKeys:"strip",catchall:fa.create(),typeName:Fe.ZodObject,...Ye(t)});class Hf extends nt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const o of i)if(o.result.status==="valid")return o.result;for(const o of i)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(o=>new mi(o.ctx.common.issues));return ge(n,{code:ae.invalid_union,unionErrors:a}),Me}if(n.common.async)return Promise.all(r.map(async i=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(s);{let i;const a=[];for(const u of r){const c={...n,common:{...n.common,issues:[]},parent:null},d=u._parseSync({data:n.data,path:n.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const o=a.map(u=>new mi(u));return ge(n,{code:ae.invalid_union,unionErrors:o}),Me}}get options(){return this._def.options}}Hf.create=(e,t)=>new Hf({options:e,typeName:Fe.ZodUnion,...Ye(t)});function My(e,t){const n=Ii(e),r=Ii(t);if(e===t)return{valid:!0,data:e};if(n===ve.object&&r===ve.object){const s=at.objectKeys(t),i=at.objectKeys(e).filter(o=>s.indexOf(o)!==-1),a={...e,...t};for(const o of i){const u=My(e[o],t[o]);if(!u.valid)return{valid:!1};a[o]=u.data}return{valid:!0,data:a}}else if(n===ve.array&&r===ve.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<e.length;i++){const a=e[i],o=t[i],u=My(a,o);if(!u.valid)return{valid:!1};s.push(u.data)}return{valid:!0,data:s}}else return n===ve.date&&r===ve.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class $f extends nt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(i,a)=>
vendor: 4,181 bytes, line 658
658{if(I_(i)||I_(a))return Me;const o=My(i.value,a.value);return o.valid?((O_(i)||O_(a))&&n.dirty(),{status:n.value,value:o.data}):(ge(r,{code:ae.invalid_intersection_types}),Me)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,a])=>s(i,a)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}$f.create=(e,t,n)=>new $f({left:e,right:t,typeName:Fe.ZodIntersection,...Ye(n)});class co extends nt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ve.array)return ge(r,{code:ae.invalid_type,expected:ve.array,received:r.parsedType}),Me;if(r.data.length<this._def.items.length)return ge(r,{code:ae.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Me;!this._def.rest&&r.data.length>this._def.items.length&&(ge(r,{code:ae.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((a,o)=>{const u=this._def.items[o]||this._def.rest;return u?u._parse(new ha(r,a,r.path,o)):null}).filter(a=>!!a);return r.common.async?Promise.all(i).then(a=>Nr.mergeArray(n,a)):Nr.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new co({...this._def,rest:t})}}co.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new co({items:e,typeName:Fe.ZodTuple,rest:null,...Ye(t)})};class U_ extends nt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ve.map)return ge(r,{code:ae.invalid_type,expected:ve.map,received:r.parsedType}),Me;const s=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([o,u],c)=>({key:s._parse(new ha(r,o,r.path,[c,"key"])),value:i._parse(new ha(r,u,r.path,[c,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const u of a){const c=await u.key,d=await u.value;if(c.status==="aborted"||d.status==="aborted")return Me;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),o.set(c.value,d.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const u of a){const c=u.key,d=u.value;if(c.status==="aborted"||d.status==="aborted")return Me;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),o.set(c.value,d.value)}return{status:n.value,value:o}}}}U_.create=(e,t,n)=>new U_({valueType:t,keyType:e,typeName:Fe.ZodMap,...Ye(n)});class Yc extends nt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ve.set)return ge(r,{code:ae.invalid_type,expected:ve.set,received:r.parsedType}),Me;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(ge(r,{code:ae.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(ge(r,{code:ae.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function a(u){const c=new Set;for(const d of u){if(d.status==="aborted")return Me;d.status==="dirty"&&n.dirty(),c.add(d.value)}return{status:n.value,value:c}}const o=[...r.data.values()].map((u,c)=>i._parse(new ha(r,u,r.path,c)));return r.common.async?Promise.all(o).then(u=>a(u)):a(o)}min(t,n){return new Yc({...this._def,minSize:{value:t,message:xe.toString(n)}})}max(t,n){return new Yc({...this._def,maxSize:{value:t,message:xe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Yc.create=(e,t)=>new Yc({valueType:e,minSize:null,maxSize:null,typeName:Fe.ZodSet,...Ye(t)});class H_ extends nt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}H_.create=(e,t)=>new H_({getter:e,typeName:Fe.ZodLazy,...Ye(t)});class Fy extends nt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ge(n,{received:n.data,code:ae.invalid_literal,expected:this._def.value}),Me}
vendor: 4,160 bytes, line 658
658return{status:"valid",value:t.data}}get value(){return this._def.value}}Fy.create=(e,t)=>new Fy({value:e,typeName:Fe.ZodLiteral,...Ye(t)});function JI(e,t){return new Ml({values:e,typeName:Fe.ZodEnum,...Ye(t)})}class Ml extends nt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ge(n,{expected:at.joinValues(r),received:n.parsedType,code:ae.invalid_type}),Me}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ge(n,{received:n.data,code:ae.invalid_enum_value,options:r}),Me}return Qr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ml.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ml.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Ml.create=JI;class $_ extends nt{_parse(t){const n=at.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ve.string&&r.parsedType!==ve.number){const s=at.objectValues(n);return ge(r,{expected:at.joinValues(s),received:r.parsedType,code:ae.invalid_type}),Me}if(this._cache||(this._cache=new Set(at.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=at.objectValues(n);return ge(r,{received:r.data,code:ae.invalid_enum_value,options:s}),Me}return Qr(t.data)}get enum(){return this._def.values}}$_.create=(e,t)=>new $_({values:e,typeName:Fe.ZodNativeEnum,...Ye(t)});class zf extends nt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ve.promise&&n.common.async===!1)return ge(n,{code:ae.invalid_type,expected:ve.promise,received:n.parsedType}),Me;const r=n.parsedType===ve.promise?n.data:Promise.resolve(n.data);return Qr(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}zf.create=(e,t)=>new zf({type:e,typeName:Fe.ZodPromise,...Ye(t)});class Fl extends nt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Fe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:a=>{ge(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const a=s.transform(r.data,i);if(r.common.async)return Promise.resolve(a).then(async o=>{if(n.value==="aborted")return Me;const u=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return u.status==="aborted"?Me:u.status==="dirty"||n.value==="dirty"?Lu(u.value):u});{if(n.value==="aborted")return Me;const o=this._def.schema._parseSync({data:a,path:r.path,parent:r});return o.status==="aborted"?Me:o.status==="dirty"||n.value==="dirty"?Lu(o.value):o}}if(s.type==="refinement"){const a=o=>{const u=s.refinement(o,i);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Me:(o.status==="dirty"&&n.dirty(),a(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?Me:(o.status==="dirty"&&n.dirty(),a(o.value).then(()=>({status:n.value,value:o.value}))))}if(s.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ll(a))return Me;const o=s.transform(a.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Ll(a)?Promise.resolve(s.transform(a.value,i)).then(o=>({status:n.value,value:o})):Me);at.assertNever(s)}}
vendor: 4,098 bytes, line 658
658Fl.create=(e,t,n)=>new Fl({schema:e,typeName:Fe.ZodEffects,effect:t,...Ye(n)});Fl.createWithPreprocess=(e,t,n)=>new Fl({schema:t,effect:{type:"preprocess",transform:e},typeName:Fe.ZodEffects,...Ye(n)});class oa extends nt{_parse(t){return this._getType(t)===ve.undefined?Qr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}oa.create=(e,t)=>new oa({innerType:e,typeName:Fe.ZodOptional,...Ye(t)});class Bl extends nt{_parse(t){return this._getType(t)===ve.null?Qr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Bl.create=(e,t)=>new Bl({innerType:e,typeName:Fe.ZodNullable,...Ye(t)});class By extends nt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ve.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}By.create=(e,t)=>new By({innerType:e,typeName:Fe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ye(t)});class Uy extends nt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Bf(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new mi(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new mi(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Uy.create=(e,t)=>new Uy({innerType:e,typeName:Fe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ye(t)});class z_ extends nt{_parse(t){if(this._getType(t)!==ve.nan){const r=this._getOrReturnCtx(t);return ge(r,{code:ae.invalid_type,expected:ve.nan,received:r.parsedType}),Me}return{status:"valid",value:t.data}}}z_.create=e=>new z_({typeName:Fe.ZodNaN,...Ye(e)});class DQ extends nt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ux extends nt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Me:i.status==="dirty"?(n.dirty(),Lu(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Me:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new ux({in:t,out:n,typeName:Fe.ZodPipeline})}}class Hy extends nt{_parse(t){const n=this._def.innerType._parse(t),r=s=>(Ll(s)&&(s.value=Object.freeze(s.value)),s);return Bf(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Hy.create=(e,t)=>new Hy({innerType:e,typeName:Fe.ZodReadonly,...Ye(t)});$t.lazycreate;var Fe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Fe||(Fe={}));const pn=Qi.create,Ba=Ly.create;fa.create;Ms.create;const ZI=$t.create;$t.strictCreate;Hf.create;$f.create;co.create;const Vf=Fy.create,ll=Ml.create;zf.create;oa.create;Bl.create;
658const eO=$G,tO=y.createContext({}),lt=({...e})=>l.jsx(tO.Provider,{value:{name:e.name},children:l.jsx(qG,{...e})}),am=()=>{const e=y.useContext(tO),t=y.useContext(nO),{getFieldState:n,formState:r}=im(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},nO=y.createContext({}),rt=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return l.jsx(nO.Provider,{value:{id:r},children:l.jsx("div",{ref:n,className:be("space-y-2",e),...t})})});rt.displayName="FormItem";const st=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=am();return l.jsx(Xe,{ref:n,className:be(r&&"text-destructive",e),htmlFor:s,...t})});st.displayName="FormLabel";const it=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=am();return l.jsx(RC,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});it.displayName="FormControl";const jQ=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=am();return l.jsx("p",{ref:n,id:r,className:be("text-sm text-muted-foreground",e),...t})});jQ.displayName="FormDescription";const St=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=am(),a=s?String(s==null?void 0:s.message):t;return a?l.jsx("p",{ref:r,id:i,className:be("text-sm font-medium text-destructive",e),...n,children:a}):null});St.displayName="FormMessage";function LQ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.useMemo(()=>r=>{t.forEach(s=>s(r))},t)}const om=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function nu(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function cx(e){return"nodeType"in e}function cr(e){var t,n;return e?nu(e)?e:cx(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function dx(e){const{Document:t}=cr(e);return e instanceof t}function Sd(e){return nu(e)?!1:e instanceof cr(e).HTMLElement}function rO(e){return e instanceof cr(e).SVGElement}function ru(e){return e?nu(e)?e.document:cx(e)?dx(e)?e:Sd(e)||rO(e)?e.ownerDocument:document:document:document}const zs=om?y.useLayoutEffect:y.useEffect;function hx(e){const t=y.useRef(e);return zs(()=>{t.current=e}),y.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function MQ(){const e=y.useRef(null),t=y.useCallback((r,s)=>{e.current=setInterval(r,s)},[]),n=y.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Kc(e,t){t===void 0&&(t=[e]);const n=y.useRef(e);return zs(()=>{n.current!==e&&(n.current=e)},t),n}function Cd(e,t){const n=y.useRef();return y.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Wf(e){const t=hx(e),n=y.useRef(null),r=y.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,r]}function $y(e){const t=y.useRef();return y.useEffect(()=>{t.current=e},[e]),t.current}let Ag={};function kd(e,t){return y.useMemo(()=>{if(t)return t;const n=Ag[e]==null?0:Ag[e]+1;return Ag[e]=n,e+"-"+n},[e,t])}function sO(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.reduce((i,a)=>{const o=Object.entries(a);for(const[u,c]of o){const d=i[u];d!=null&&(i[u]=d+e*c)}return i},{...t})}}const ul=sO(1),Gc=sO(-1);function FQ(e){return"clientX"in e&&"clientY"in e}function fx(e){if(!e)return!1;const{KeyboardEvent:t}=cr(e.target);return t&&e instanceof t}function BQ(e){if(!e)return!1;const{TouchEvent:t}=cr(e.target);return t&&e instanceof t}function zy(e){if(BQ(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return FQ(e)?{x:e.clientX,y:e.clientY}:null}const Qc=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Qc.Translate.toString(e),Qc.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),V_="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function UQ(e){return e.matches(V_)?e:e.querySelector(V_)}
658const HQ={display:"none"};function $Q(e){let{id:t,value:n}=e;return W.createElement("div",{id:t,style:HQ},n)}function zQ(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return W.createElement("div",{id:t,style:s,role:"status","aria-live":r,"aria-atomic":!0},n)}function VQ(){const[e,t]=y.useState("");return{announce:y.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const iO=y.createContext(null);function WQ(e){const t=y.useContext(iO);y.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function qQ(){const[e]=y.useState(()=>new Set),t=y.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[y.useCallback(r=>{let{type:s,event:i}=r;e.forEach(a=>{var o;return(o=a[s])==null?void 0:o.call(a,i)})},[e]),t]}const YQ={draggable:`
659    To pick up a draggable item, press the space bar.
660    While dragging, use the arrow keys to move the item.
661    Press space again to drop the item in its new position, or press escape to cancel.
662  `},KQ={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function GQ(e){let{announcements:t=KQ,container:n,hiddenTextDescribedById:r,screenReaderInstructions:s=YQ}=e;const{announce:i,announcement:a}=VQ(),o=kd("DndLiveRegion"),[u,c]=y.useState(!1);if(y.useEffect(()=>{c(!0)},[]),WQ(y.useMemo(()=>({onDragStart(h){let{active:p}=h;i(t.onDragStart({active:p}))},onDragMove(h){let{active:p,over:f}=h;t.onDragMove&&i(t.onDragMove({active:p,over:f}))},onDragOver(h){let{active:p,over:f}=h;i(t.onDragOver({active:p,over:f}))},onDragEnd(h){let{active:p,over:f}=h;i(t.onDragEnd({active:p,over:f}))},onDragCancel(h){let{active:p,over:f}=h;i(t.onDragCancel({active:p,over:f}))}}),[i,t])),!u)return null;const d=W.createElement(W.Fragment,null,W.createElement($Q,{id:r,value:s.draggable}),W.createElement(zQ,{id:o,announcement:a}));return n?wr.createPortal(d,n):d}var on;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(on||(on={}));function qf(){}function W_(e,t){return y.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function QQ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const ys=Object.freeze({x:0,y:0});function aO(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function oO(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function XQ(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function q_(e){let{left:t,top:n,height:r,width:s}=e;return[{x:t,y:n},{x:t+s,y:n},{x:t,y:n+r},{x:t+s,y:n+r}]}function lO(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Y_(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const JQ=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const s=Y_(t,t.left,t.top),i=[];for(const a of r){const{id:o}=a,u=n.get(o);if(u){const c=aO(Y_(u),s);i.push({id:o,data:{droppableContainer:a,value:c}})}}return i.sort(oO)},ZQ=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const s=q_(t),i=[];for(const a of r){const{id:o}=a,u=n.get(o);if(u){const c=q_(u),d=s.reduce((p,f,w)=>p+aO(c[w],f),0),h=Number((d/4).toFixed(4));i.push({id:o,data:{droppableContainer:a,value:h}})}}return i.sort(oO)};function eX(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),s=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=s-r,o=i-n;if(r<s&&n<i){const u=t.width*t.height,c=e.width*e.height,d=a*o,h=d/(u+c-d);return Number(h.toFixed(4))}return 0}const tX=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const s=[];for(const i of r){const{id:a}=i,o=n.get(a);if(o){const u=eX(o,t);u>0&&s.push({id:a,data:{droppableContainer:i,value:u}})}}return s.sort(XQ)};function nX(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function uO(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ys}function rX(e){return function(n){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];return s.reduce((a,o)=>({...a,top:a.top+e*o.y,bottom:a.bottom+e*o.y,left:a.left+e*o.x,right:a.right+e*o.x}),{...n})}}const sX=rX(1);function iX(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function aX(e,t,n){const r=iX(t);
662if(!r)return e;const{scaleX:s,scaleY:i,x:a,y:o}=r,u=e.left-a-(1-s)*parseFloat(n),c=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=s?e.width/s:e.width,h=i?e.height/i:e.height;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u}}const oX={ignoreTransform:!1};function su(e,t){t===void 0&&(t=oX);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:d}=cr(e).getComputedStyle(e);c&&(n=aX(n,c,d))}const{top:r,left:s,width:i,height:a,bottom:o,right:u}=n;return{top:r,left:s,width:i,height:a,bottom:o,right:u}}function K_(e){return su(e,{ignoreTransform:!0})}function lX(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function uX(e,t){return t===void 0&&(t=cr(e).getComputedStyle(e)),t.position==="fixed"}function cX(e,t){t===void 0&&(t=cr(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(s=>{const i=t[s];return typeof i=="string"?n.test(i):!1})}function lm(e,t){const n=[];function r(s){if(t!=null&&n.length>=t||!s)return n;if(dx(s)&&s.scrollingElement!=null&&!n.includes(s.scrollingElement))return n.push(s.scrollingElement),n;if(!Sd(s)||rO(s)||n.includes(s))return n;const i=cr(e).getComputedStyle(s);return s!==e&&cX(s,i)&&n.push(s),uX(s,i)?n:r(s.parentNode)}return e?r(e):n}function cO(e){const[t]=lm(e,1);return t??null}function Rg(e){return!om||!e?null:nu(e)?e:cx(e)?dx(e)||e===ru(e).scrollingElement?window:Sd(e)?e:null:null}function dO(e){return nu(e)?e.scrollX:e.scrollLeft}function hO(e){return nu(e)?e.scrollY:e.scrollTop}function Vy(e){return{x:dO(e),y:hO(e)}}var gn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(gn||(gn={}));function fO(e){return!om||!e?!1:e===document.scrollingElement}function pO(e){const t={x:0,y:0},n=fO(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},s=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,o=e.scrollLeft>=r.x;return{isTop:s,isLeft:i,isBottom:a,isRight:o,maxScroll:r,minScroll:t}}const dX={x:.2,y:.2};function hX(e,t,n,r,s){let{top:i,left:a,right:o,bottom:u}=n;r===void 0&&(r=10),s===void 0&&(s=dX);const{isTop:c,isBottom:d,isLeft:h,isRight:p}=pO(e),f={x:0,y:0},w={x:0,y:0},m={height:t.height*s.y,width:t.width*s.x};return!c&&i<=t.top+m.height?(f.y=gn.Backward,w.y=r*Math.abs((t.top+m.height-i)/m.height)):!d&&u>=t.bottom-m.height&&(f.y=gn.Forward,w.y=r*Math.abs((t.bottom-m.height-u)/m.height)),!p&&o>=t.right-m.width?(f.x=gn.Forward,w.x=r*Math.abs((t.right-m.width-o)/m.width)):!h&&a<=t.left+m.width&&(f.x=gn.Backward,w.x=r*Math.abs((t.left+m.width-a)/m.width)),{direction:f,speed:w}}function fX(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:s}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:s,width:e.clientWidth,height:e.clientHeight}}function mO(e){return e.reduce((t,n)=>ul(t,Vy(n)),ys)}function pX(e){return e.reduce((t,n)=>t+dO(n),0)}function mX(e){return e.reduce((t,n)=>t+hO(n),0)}function gX(e,t){if(t===void 0&&(t=su),!e)return;const{top:n,left:r,bottom:s,right:i}=t(e);cO(e)&&(s<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const yX=[["x",["left","right"],pX],["y",["top","bottom"],mX]];class px{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=lm(n),s=mO(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,o]of yX)for(const u of a)Object.defineProperty(this,u,{get:()=>{const c=o(r),d=s[i]-c;return this.rect[u]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ic{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var s;(s=this.target)==null||s.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function vX(e){const{EventTarget:t}=cr(e);return e instanceof t?e:ru(e)}function Ig(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var jr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(jr||(jr={}));function G_(e){e.preventDefault()}function bX(e){e.stopPropagation()}var Je;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Je||(Je={}));const gO={start:[Je.Space,Je.Enter],cancel:[Je.Esc],end:[Je.Space,Je.Enter,Je.Tab]},xX=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Je.Right:return{...n,x:n.x+25};case Je.Left:return{...n,x:n.x-25};case Je.Down:return{...n,y:n.y+25};case Je.Up:return{...n,y:n.y-25}}};class mx{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ic(ru(n)),this.windowListeners=new ic(cr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(jr.Resize,this.handleCancel),this.windowListeners.add(jr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(jr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&gX(r),n(ys)}handleKeyDown(t){if(fx(t)){const{active:n,context:r,options:s}=this.props,{keyboardCodes:i=gO,coordinateGetter:a=xX,scrollBehavior:o="smooth"}=s,{code:u}=t;if(i.end.includes(u)){this.handleEnd(t);return}if(i.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:c}=r.current,d=c?{x:c.left,y:c.top}:ys;this.referenceCoordinates||(this.referenceCoordinates=d);const h=a(t,{active:n,context:r.current,currentCoordinates:d});if(h){const p=Gc(h,d),f={x:0,y:0},{scrollableAncestors:w}=r.current;for(const m of w){const x=t.code,{isTop:v,isRight:b,isLeft:E,isBottom:T,maxScroll:C,minScroll:_}=pO(m),k=fX(m),P={x:Math.min(x===Je.Right?k.right-k.width/2:k.right,Math.max(x===Je.Right?k.left:k.left+k.width/2,h.x)),y:Math.min(x===Je.Down?k.bottom-k.height/2:k.bottom,Math.max(x===Je.Down?k.top:k.top+k.height/2,h.y))},M=x===Je.Right&&!b||x===Je.Left&&!E,F=x===Je.Down&&!T||x===Je.Up&&
662!v;if(M&&P.x!==h.x){const U=m.scrollLeft+p.x,j=x===Je.Right&&U<=C.x||x===Je.Left&&U>=_.x;if(j&&!p.y){m.scrollTo({left:U,behavior:o});return}j?f.x=m.scrollLeft-U:f.x=x===Je.Right?m.scrollLeft-C.x:m.scrollLeft-_.x,f.x&&m.scrollBy({left:-f.x,behavior:o});break}else if(F&&P.y!==h.y){const U=m.scrollTop+p.y,j=x===Je.Down&&U<=C.y||x===Je.Up&&U>=_.y;if(j&&!p.x){m.scrollTo({top:U,behavior:o});return}j?f.y=m.scrollTop-U:f.y=x===Je.Down?m.scrollTop-C.y:m.scrollTop-_.y,f.y&&m.scrollBy({top:-f.y,behavior:o});break}}this.handleMove(t,ul(Gc(h,this.referenceCoordinates),f))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}mx.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=gO,onActivation:s}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const o=i.activatorNode.current;return o&&e.target!==o?!1:(e.preventDefault(),s==null||s({event:e.nativeEvent}),!0)}return!1}}];function Q_(e){return!!(e&&"distance"in e)}function X_(e){return!!(e&&"delay"in e)}class gx{constructor(t,n,r){var s;r===void 0&&(r=vX(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=ru(a),this.documentListeners=new ic(this.document),this.listeners=new ic(r),this.windowListeners=new ic(cr(a)),this.initialCoordinates=(s=zy(i))!=null?s:ys,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(jr.Resize,this.handleCancel),this.windowListeners.add(jr.DragStart,G_),this.windowListeners.add(jr.VisibilityChange,this.handleCancel),this.windowListeners.add(jr.ContextMenu,G_),this.documentListeners.add(jr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(X_(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Q_(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:s}=this.props;s(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(jr.Click,bX,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(jr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:s,props:i}=this,{onMove:a,options:{activationConstraint:o}}=i;if(!s)return;const u=(n=zy(t))!=null?n:ys,c=Gc(s,u);if(!r&&o){if(Q_(o)){if(o.tolerance!=null&&Ig(c,o.tolerance))return this.handleCancel();if(Ig(c,o.distance))return this.handleStart()}if(X_(o)&&Ig(c,o.tolerance))return this.handleCancel();this.handlePending(o,c);return}t.cancelable&&t.preventDefault(),a(u)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Je.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const wX={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class yx extends gx{constructor(t){const{event:n}=t,r=ru(n.target);super(t,wX,r)}}yx.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const EX={move:{name:"mousemove"},end:{name:"mouseup"}};var Wy;(function(e){e[e.RightClick=2]="RightClick"})(Wy||(Wy={}));class _X extends gx{constructor(t){super(t,EX,ru(t.event.target))}}_X.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Wy.RightClick?!1:(r==null||r({event:n}),!0)}}];const Og={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class TX extends gx{constructor(t){super(t,Og)}static setup(){return window.addEventListener(Og.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Og.move.name,t)};function t(){}}}TX.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:s}=n;return s.length>1?!1:(r==null||r({event:n}),!0)}}];var ac;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ac||(ac={}));var Yf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
662sedTreeOrder"})(Yf||(Yf={}));function SX(e){let{acceleration:t,activator:n=ac.Pointer,canScroll:r,draggingRect:s,enabled:i,interval:a=5,order:o=Yf.TreeOrder,pointerCoordinates:u,scrollableAncestors:c,scrollableAncestorRects:d,delta:h,threshold:p}=e;const f=kX({delta:h,disabled:!i}),[w,m]=MQ(),x=y.useRef({x:0,y:0}),v=y.useRef({x:0,y:0}),b=y.useMemo(()=>{switch(n){case ac.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ac.DraggableRect:return s}},[n,s,u]),E=y.useRef(null),T=y.useCallback(()=>{const _=E.current;if(!_)return;const k=x.current.x*v.current.x,P=x.current.y*v.current.y;_.scrollBy(k,P)},[]),C=y.useMemo(()=>o===Yf.TreeOrder?[...c].reverse():c,[o,c]);y.useEffect(()=>{if(!i||!c.length||!b){m();return}for(const _ of C){if((r==null?void 0:r(_))===!1)continue;const k=c.indexOf(_),P=d[k];if(!P)continue;const{direction:M,speed:F}=hX(_,P,b,t,p);for(const U of["x","y"])f[U][M[U]]||(F[U]=0,M[U]=0);if(F.x>0||F.y>0){m(),E.current=_,w(T,a),x.current=F,v.current=M;return}}x.current={x:0,y:0},v.current={x:0,y:0},m()},[t,T,r,m,i,a,JSON.stringify(b),JSON.stringify(f),w,c,C,d,JSON.stringify(p)])}const CX={x:{[gn.Backward]:!1,[gn.Forward]:!1},y:{[gn.Backward]:!1,[gn.Forward]:!1}};function kX(e){let{delta:t,disabled:n}=e;const r=$y(t);return Cd(s=>{if(n||!r||!s)return CX;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[gn.Backward]:s.x[gn.Backward]||i.x===-1,[gn.Forward]:s.x[gn.Forward]||i.x===1},y:{[gn.Backward]:s.y[gn.Backward]||i.y===-1,[gn.Forward]:s.y[gn.Forward]||i.y===1}}},[n,t,r])}function NX(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Cd(s=>{var i;return t==null?null:(i=r??s)!=null?i:null},[r,t])}function AX(e,t){return y.useMemo(()=>e.reduce((n,r)=>{const{sensor:s}=r,i=s.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var Xc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Xc||(Xc={}));var qy;(function(e){e.Optimized="optimized"})(qy||(qy={}));const J_=new Map;function RX(e,t){let{dragging:n,dependencies:r,config:s}=t;const[i,a]=y.useState(null),{frequency:o,measure:u,strategy:c}=s,d=y.useRef(e),h=x(),p=Kc(h),f=y.useCallback(function(v){v===void 0&&(v=[]),!p.current&&a(b=>b===null?v:b.concat(v.filter(E=>!b.includes(E))))},[p]),w=y.useRef(null),m=Cd(v=>{if(h&&!n)return J_;if(!v||v===J_||d.current!==e||i!=null){const b=new Map;for(let E of e){if(!E)continue;if(i&&i.length>0&&!i.includes(E.id)&&E.rect.current){b.set(E.id,E.rect.current);continue}const T=E.node.current,C=T?new px(u(T),T):null;E.rect.current=C,C&&b.set(E.id,C)}return b}return v},[e,i,n,h,u]);return y.useEffect(()=>{d.current=e},[e]),y.useEffect(()=>{h||f()},[n,h]),y.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),y.useEffect(()=>{h||typeof o!="number"||w.current!==null||(w.current=setTimeout(()=>{f(),w.current=null},o))},[o,h,f,...r]),{droppableRects:m,measureDroppableContainers:f,measuringScheduled:i!=null};function x(){switch(c){case Xc.Always:return!1;case Xc.BeforeDragging:return n;default:return!n}}}function yO(e,t){return Cd(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function IX(e,t){return yO(e,t)}function OX(e){let{callback:t,disabled:n}=e;const r=hx(t),s=y.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return y.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function um(e){let{callback:t,disabled:n}=e;const r=hx(t),s=y.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return y.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function PX(e){return new px(su(e),e)}function Z_(e,t,n){t===void 0&&(t=PX);const[r,s]=y.useState(null);function i(){s(u=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=u??n)!=null?c:null}const d=t(e);return JSON.stringify(u)===JSON.stringify(d)?u:d})}const a=OX({callback(u){if(e)for(const c of u){const{type:d,target:h}=c;if(d==="childList"&&h instanceof HTMLElement&&h.contains(e)){i();break}}}}),o=um({callback:i});return zs(()=>{i(),e?(o==null||o.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),a==null||a.disconnect())},[e]),r}function DX(e){const t=yO(e);return uO(e,t)}const eT=[];function jX(e){const t=y.useRef(e),n=Cd(r=>e?r&&r!==eT&&e&&t.current&&e.parentNode===t.current.parentNode?r:lm(e):eT,[e]);return y.useEffect(()=>{t.current=e},[e]),n}function LX(e){const[t,n]=y.useState(null),r=y.useRef(e),s=y.useCallback(i=>{const a=Rg(i.target);a&&n(o=>
662o?(o.set(a,Vy(a)),new Map(o)):null)},[]);return y.useEffect(()=>{const i=r.current;if(e!==i){a(i);const o=e.map(u=>{const c=Rg(u);return c?(c.addEventListener("scroll",s,{passive:!0}),[c,Vy(c)]):null}).filter(u=>u!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(i)};function a(o){o.forEach(u=>{const c=Rg(u);c==null||c.removeEventListener("scroll",s)})}},[s,e]),y.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>ul(i,a),ys):mO(e):ys,[e,t])}function tT(e,t){t===void 0&&(t=[]);const n=y.useRef(null);return y.useEffect(()=>{n.current=null},t),y.useEffect(()=>{const r=e!==ys;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Gc(e,n.current):ys}function MX(e){y.useEffect(()=>{if(!om)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function FX(e,t){return y.useMemo(()=>e.reduce((n,r)=>{let{eventName:s,handler:i}=r;return n[s]=a=>{i(a,t)},n},{}),[e,t])}function vO(e){return y.useMemo(()=>e?lX(e):null,[e])}const nT=[];function BX(e,t){t===void 0&&(t=su);const[n]=e,r=vO(n?cr(n):null),[s,i]=y.useState(nT);function a(){i(()=>e.length?e.map(u=>fO(u)?r:new px(t(u),u)):nT)}const o=um({callback:a});return zs(()=>{o==null||o.disconnect(),a(),e.forEach(u=>o==null?void 0:o.observe(u))},[e]),s}function UX(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Sd(t)?t:e}function HX(e){let{measure:t}=e;const[n,r]=y.useState(null),s=y.useCallback(c=>{for(const{target:d}of c)if(Sd(d)){r(h=>{const p=t(d);return h?{...h,width:p.width,height:p.height}:p});break}},[t]),i=um({callback:s}),a=y.useCallback(c=>{const d=UX(c);i==null||i.disconnect(),d&&(i==null||i.observe(d)),r(d?t(d):null)},[t,i]),[o,u]=Wf(a);return y.useMemo(()=>({nodeRef:o,rect:n,setRef:u}),[n,o,u])}const $X=[{sensor:yx,options:{}},{sensor:mx,options:{}}],zX={current:{}},$h={draggable:{measure:K_},droppable:{measure:K_,strategy:Xc.WhileDragging,frequency:qy.Optimized},dragOverlay:{measure:su}};class oc extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const VX={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new oc,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:qf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:$h,measureDroppableContainers:qf,windowRect:null,measuringScheduled:!1},WX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:qf,draggableNodes:new Map,over:null,measureDroppableContainers:qf},cm=y.createContext(WX),bO=y.createContext(VX);function qX(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new oc}}}function YX(e,t){switch(t.type){case on.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case on.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case on.DragEnd:case on.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case on.RegisterDroppable:{const{element:n}=t,{id:r}=n,s=new oc(e.droppable.containers);return s.set(r,n),{...e,droppable:{...e.droppable,containers:s}}}case on.SetDroppableDisabled:{const{id:n,key:r,disabled:s}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new oc(e.droppable.containers);return a.set(n,{...i,disabled:s}),{...e,droppable:{...e.droppable,containers:a}}}case on.UnregisterDroppable:{const{id:n,key:r}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;
662const i=new oc(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function KX(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:s}=y.useContext(cm),i=$y(r),a=$y(n==null?void 0:n.id);return y.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!fx(i)||document.activeElement===i.target)return;const o=s.get(a);if(!o)return;const{activatorNode:u,node:c}=o;if(!u.current&&!c.current)return;requestAnimationFrame(()=>{for(const d of[u.current,c.current]){if(!d)continue;const h=UQ(d);if(h){h.focus();break}}})}},[r,t,s,a,i]),null}function GX(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((s,i)=>i({transform:s,...r}),n):n}function QX(e){return y.useMemo(()=>({draggable:{...$h.draggable,...e==null?void 0:e.draggable},droppable:{...$h.droppable,...e==null?void 0:e.droppable},dragOverlay:{...$h.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function XX(e){let{activeNode:t,measure:n,initialRect:r,config:s=!0}=e;const i=y.useRef(!1),{x:a,y:o}=typeof s=="boolean"?{x:s,y:s}:s;zs(()=>{if(!a&&!o||!t){i.current=!1;return}if(i.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const d=n(c),h=uO(d,r);if(a||(h.x=0),o||(h.y=0),i.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const p=cO(c);p&&p.scrollBy({top:h.y,left:h.x})}},[t,a,o,r,n])}const xO=y.createContext({...ys,scaleX:1,scaleY:1});var Oi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Oi||(Oi={}));const JX=y.memo(function(t){var n,r,s,i;let{id:a,accessibility:o,autoScroll:u=!0,children:c,sensors:d=$X,collisionDetection:h=tX,measuring:p,modifiers:f,...w}=t;const m=y.useReducer(YX,void 0,qX),[x,v]=m,[b,E]=qQ(),[T,C]=y.useState(Oi.Uninitialized),_=T===Oi.Initialized,{draggable:{active:k,nodes:P,translate:M},droppable:{containers:F}}=x,U=k!=null?P.get(k):null,j=y.useRef({initial:null,translated:null}),Y=y.useMemo(()=>{var Gt;return k!=null?{id:k,data:(Gt=U==null?void 0:U.data)!=null?Gt:zX,rect:j}:null},[k,U]),z=y.useRef(null),[X,Q]=y.useState(null),[J,$]=y.useState(null),V=Kc(w,Object.values(w)),S=kd("DndDescribedBy",a),ue=y.useMemo(()=>F.getEnabled(),[F]),te=QX(p),{droppableRects:R,measureDroppableContainers:pe,measuringScheduled:je}=RX(ue,{dragging:_,dependencies:[M.x,M.y],config:te.droppable}),_e=NX(P,k),re=y.useMemo(()=>J?zy(J):null,[J]),we=dm(),Le=IX(_e,te.draggable.measure);XX({activeNode:k!=null?P.get(k):null,config:we.layoutShiftCompensation,initialRect:Le,measure:te.draggable.measure});const fe=Z_(_e,te.draggable.measure,Le),Ne=Z_(_e?_e.parentElement:null),Ae=y.useRef({activatorEvent:null,active:null,activeNode:_e,collisionRect:null,collisions:null,droppableRects:R,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:F,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),dt=F.getNodeFor((n=Ae.current.over)==null?void 0:n.id),Ge=HX({measure:te.dragOverlay.measure}),Nt=(r=Ge.nodeRef.current)!=null?r:_e,Lt=_?(s=Ge.rect)!=null?s:fe:null,wn=!!(Ge.nodeRef.current&&Ge.rect),dr=DX(wn?
662null:fe),ce=vO(Nt?cr(Nt):null),I=jX(_?dt??_e:null),B=BX(I),K=GX(f,{transform:{x:M.x-dr.x,y:M.y-dr.y,scaleX:1,scaleY:1},activatorEvent:J,active:Y,activeNodeRect:fe,containerNodeRect:Ne,draggingNodeRect:Lt,over:Ae.current.over,overlayNodeRect:Ge.rect,scrollableAncestors:I,scrollableAncestorRects:B,windowRect:ce}),le=re?ul(re,M):null,oe=LX(I),ie=tT(oe),L=tT(oe,[fe]),G=ul(K,ie),de=Lt?sX(Lt,K):null,Te=Y&&de?h({active:Y,collisionRect:de,droppableRects:R,droppableContainers:ue,pointerCoordinates:le}):null,$e=lO(Te,"id"),[ot,Mn]=y.useState(null),nn=wn?K:ul(K,L),cn=nX(nn,(i=ot==null?void 0:ot.rect)!=null?i:null,fe),Kn=y.useRef(null),gt=y.useCallback((Gt,Mt)=>{let{sensor:Fn,options:ke}=Mt;if(z.current==null)return;const Be=P.get(z.current);if(!Be)return;const We=Gt.nativeEvent,Ft=new Fn({active:z.current,activeNode:Be,event:We,options:ke,context:Ae,onAbort(yt){if(!P.get(yt))return;const{onDragAbort:Bt}=V.current,hn={id:yt};Bt==null||Bt(hn),b({type:"onDragAbort",event:hn})},onPending(yt,Nn,Bt,hn){if(!P.get(yt))return;const{onDragPending:au}=V.current,vi={id:yt,constraint:Nn,initialCoordinates:Bt,offset:hn};au==null||au(vi),b({type:"onDragPending",event:vi})},onStart(yt){const Nn=z.current;if(Nn==null)return;const Bt=P.get(Nn);if(!Bt)return;const{onDragStart:hn}=V.current,iu={activatorEvent:We,active:{id:Nn,data:Bt.data,rect:j}};wr.unstable_batchedUpdates(()=>{hn==null||hn(iu),C(Oi.Initializing),v({type:on.DragStart,initialCoordinates:yt,active:Nn}),b({type:"onDragStart",event:iu}),Q(Kn.current),$(We)})},onMove(yt){v({type:on.DragMove,coordinates:yt})},onEnd:dn(on.DragEnd),onCancel:dn(on.DragCancel)});Kn.current=Ft;function dn(yt){return async function(){const{active:Bt,collisions:hn,over:iu,scrollAdjustedTranslate:au}=Ae.current;let vi=null;if(Bt&&au){const{cancelDrop:ou}=V.current;vi={activatorEvent:We,active:Bt,collisions:hn,delta:au,over:iu},yt===on.DragEnd&&typeof ou=="function"&&await Promise.resolve(ou(vi))&&(yt=on.DragCancel)}z.current=null,wr.unstable_batchedUpdates(()=>{v({type:yt}),C(Oi.Uninitialized),Mn(null),Q(null),$(null),Kn.current=null;const ou=yt===on.DragEnd?"onDragEnd":"onDragCancel";if(vi){const hm=V.current[ou];hm==null||hm(vi),b({type:ou,event:vi})}})}}},[P]),Ir=y.useCallback((Gt,Mt)=>(Fn,ke)=>{const Be=Fn.nativeEvent,We=P.get(ke);if(z.current!==null||!We||Be.dndKit||Be.defaultPrevented)return;const Ft={active:We};Gt(Fn,Mt.options,Ft)===!0&&(Be.dndKit={capturedBy:Mt.sensor},z.current=ke,gt(Fn,Mt))},[P,gt]),En=AX(d,Ir);MX(d),zs(()=>{fe&&T===Oi.Initializing&&C(Oi.Initialized)},[fe,T]),y.useEffect(()=>{const{onDragMove:Gt}=V.current,{active:Mt,activatorEvent:Fn,collisions:ke,over:Be}=Ae.current;if(!Mt||!Fn)return;const We={active:Mt,activatorEvent:Fn,collisions:ke,delta:{x:G.x,y:G.y},over:Be};wr.unstable_batchedUpdates(()=>{Gt==null||Gt(We),b({type:"onDragMove",event:We})})},[G.x,G.y]),y.useEffect(()=>{const{active:Gt,activatorEvent:Mt,collisions:Fn,droppableContainers:ke,scrollAdjustedTranslate:Be}=Ae.current;if(!Gt||z.current==null||!Mt||!Be)return;const{onDragOver:We}=V.current,Ft=ke.get($e),dn=Ft&&Ft.rect.current?{id:Ft.id,rect:Ft.rect.current,data:Ft.data,disabled:Ft.disabled}:null,yt={active:Gt,activatorEvent:Mt,collisions:Fn,delta:{x:Be.x,y:Be.y},over:dn};wr.unstable_batchedUpdates(()=>{Mn(dn),We==null||We(yt),b({type:"onDragOver",event:yt})})},[$e]),zs(()=>{Ae.current={activatorEvent:J,active:Y,activeNode:_e,collisionRect:de,collisions:Te,droppableRects:R,draggableNodes:P,draggingNode:Nt,draggingNodeRect:Lt,droppableContainers:F,over:ot,scrollableAncestors:I,scrollAdjustedTranslate:G},j.current={initial:Lt,translated:de}},[Y,_e,Te,de,P,Nt,Lt,R,F,ot,I,G]),SX({...we,delta:M,draggingRect:de,pointerCoordinates:le,scrollableAncestors:I,scrollableAncestorRects:B});const Id=y.useMemo(()=>({active:Y,activeNode:_e,activeNodeRect:fe,activatorEvent:J,collisions:Te,containerNodeRect:Ne,dragOverlay:Ge,draggableNodes:P,droppableContainers:F,droppableRects:R,over:ot,measureDroppableContainers:pe,scrollableAncestors:I,scrollableAncestorRects:B,measuringConfiguration:te,measuringScheduled:je,windowRect:ce}),[Y,_e,fe,J,Te,Ne,Ge,P,F,R,ot,pe,I,B,te,je,ce]),Od=y.useMemo(()=>({activatorEvent:J,activators:En,active:Y,activeNodeRect:fe,ariaDescribedById:{draggable:S},dispatch:v,draggableNodes:P,over:ot,measureDroppableContainers:pe}),[J,En,Y,fe,v,S,P,ot,pe]);return W.createElement(iO.Provider,{value:E},W.createElement(cm.Provider,{value:Od},W.createElement(bO.Provider,{value:Id},W.createElement(xO.Provider,{value:cn},c)),W.createElement(KX,{disabled:(o==null?void 0:o.restoreFocus)===!1})),W.createElement(GQ,{...o,hiddenTextDescribedById:S}));function dm(){const Gt=(X==null?void 0:X.autoScrollEnabled)===!1,Mt=typeof u=="object"?u.enabled===!1:u===!1,Fn=_&&!Gt&&!Mt;return typeof u=="object"?{...u,enabled:Fn}:{enabled:Fn}}}),ZX=y.createContext(null),rT="button",eJ="Draggable";function tJ(e){let{id:t,data:n,disabled:r=!1,attributes:s}=e;const i=kd(eJ),{activators:a,activatorEvent:o,active:u,activeNodeRect:c,ariaDescribedById:d,draggableNodes:h,over:p}=y.useContext(cm),{role:f=rT,roleDescription:w="draggable",tabIndex:m=0}=s??{},x=(u==null?void 0:u.id)===t,v=y.useContext(x?xO:ZX),[b,E]=Wf(),[T,C]=Wf(),_=FX(a,t),k=Kc(n);zs(()=>(h.set(t,{id:t,key:i,node:b,activatorNode:T,data:k}),()=>{const M=h.get(t);M&&M.key===i&&h.delete(t)}),[h,t]);const P=y.useMemo(()=>({role:f,tabIndex:m,"aria-disabled":r,"aria-pressed":x&&f===rT?!0:void 0,"aria-roledescription":w,"aria-describedby":d.draggable}),[r,f,m,x,w,d.draggable]);return{active:u,activatorEvent:o,activeNodeRect:c,attributes:P,isDragging:x,listeners:r?void 0:_,node:b,over:p,setNodeRef:E,setActivatorNodeRef:C,transform:v}}function nJ(){return y.useContext(bO)}const rJ="Droppable",sJ={timeout:25};function iJ(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:s}=e;const i=kd(rJ),{active:a,dispatch:o,over:u,measureDroppableContainers:c}=y.useContext(cm),d=y.useRef({disabled:n}),h=y.useRef(!1),p=y.useRef(null),f=y.useRef(null),{disabled:w,updateMeasurementsFor:m,timeout:x}={...sJ,...s},v=Kc(m??r),b=y.useCallback(()=>
662{if(!h.current){h.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{c(Array.isArray(v.current)?v.current:[v.current]),f.current=null},x)},[x]),E=um({callback:b,disabled:w||!a}),T=y.useCallback((P,M)=>{E&&(M&&(E.unobserve(M),h.current=!1),P&&E.observe(P))},[E]),[C,_]=Wf(T),k=Kc(t);return y.useEffect(()=>{!E||!C.current||(E.disconnect(),h.current=!1,E.observe(C.current))},[C,E]),y.useEffect(()=>(o({type:on.RegisterDroppable,element:{id:r,key:i,disabled:n,node:C,rect:p,data:k}}),()=>o({type:on.UnregisterDroppable,key:i,id:r})),[r]),y.useEffect(()=>{n!==d.current.disabled&&(o({type:on.SetDroppableDisabled,id:r,key:i,disabled:n}),d.current.disabled=n)},[r,i,n,o]),{active:a,rect:p,isOver:(u==null?void 0:u.id)===r,node:C,over:u,setNodeRef:_}}function vx(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function aJ(e,t){return e.reduce((n,r,s)=>{const i=t.get(r);return i&&(n[s]=i),n},Array(e.length))}function gh(e){return e!==null&&e>=0}function oJ(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function lJ(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const wO=e=>{let{rects:t,activeIndex:n,overIndex:r,index:s}=e;const i=vx(t,r,n),a=t[s],o=i[s];return!o||!a?null:{x:o.left-a.left,y:o.top-a.top,scaleX:o.width/a.width,scaleY:o.height/a.height}},yh={scaleX:1,scaleY:1},uJ=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:s,rects:i,overIndex:a}=e;const o=(t=i[n])!=null?t:r;if(!o)return null;if(s===n){const c=i[a];return c?{x:0,y:n<a?c.top+c.height-(o.top+o.height):c.top-o.top,...yh}:null}const u=cJ(i,s,n);return s>n&&s<=a?{x:0,y:-o.height-u,...yh}:s<n&&s>=a?{x:0,y:o.height+u,...yh}:{x:0,y:0,...yh}};function cJ(e,t,n){const r=e[t],s=e[t-1],i=e[t+1];return r?n<t?s?r.top-(s.top+s.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):s?r.top-(s.top+s.height):0:0}const EO="Sortable",_O=W.createContext({activeIndex:-1,containerId:EO,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:wO,disabled:{draggable:!1,droppable:!1}});function dJ(e){let{children:t,id:n,items:r,strategy:s=wO,disabled:i=!1}=e;const{active:a,dragOverlay:o,droppableRects:u,over:c,measureDroppableContainers:d}=nJ(),h=kd(EO,n),p=o.rect!==null,f=y.useMemo(()=>r.map(_=>typeof _=="object"&&"id"in _?_.id:_),[r]),w=a!=null,m=a?f.indexOf(a.id):-1,x=c?f.indexOf(c.id):-1,v=y.useRef(f),b=!oJ(f,v.current),E=x!==-1&&m===-1||b,T=lJ(i);zs(()=>{b&&w&&d(f)},[b,f,w,d]),y.useEffect(()=>{v.current=f},[f]);const C=y.useMemo(()=>({activeIndex:m,containerId:h,disabled:T,disableTransforms:E,items:f,overIndex:x,useDragOverlay:p,sortedRects:aJ(f,u),strategy:s}),[m,h,T.draggable,T.droppable,E,f,x,u,p,s]);return W.createElement(_O.Provider,{value:C},t)}const hJ=e=>{let{id:t,items:n,activeIndex:r,overIndex:s}=e;return vx(n,r,s).indexOf(t)},fJ=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:s,items:i,newIndex:a,previousItems:o,previousContainerId:u,transition:c}=e;return!c||!r||o!==i&&s===a?!1:n?!0:a!==s&&t===u},pJ={duration:200,easing:"ease"},TO="transform",mJ=Qc.Transition.toString({property:TO,duration:0,easing:"linear"}),gJ={roleDescription:"sortable"};function yJ(e){let{disabled:t,index:n,node:r,rect:s}=e;const[i,a]=y.useState(null),o=y.useRef(n);return zs(()=>{if(!t&&n!==o.current&&r.current){const u=s.current;if(u){const c=su(r.current,{ignoreTransform:!0}),d={x:u.left-c.left,y:u.top-c.top,scaleX:u.width/c.width,scaleY:u.height/c.height};(d.x||d.y)&&a(d)}}n!==o.current&&(o.current=n)},[t,n,r,s]),y.useEffect(()=>{i&&a(null)},[i]),i}function vJ(e){let{animateLayoutChanges:t=fJ,attributes:n,disabled:r,data:s,getNewIndex:i=hJ,id:a,strategy:o,resizeObserverConfig:u,transition:c=pJ}=e;const{items:d,containerId:h,activeIndex:p,disabled:f,disableTransforms:w,sortedRects:m,overIndex:x,useDragOverlay:v,strategy:b}=y.useContext(_O),E=bJ(r,f),T=d.indexOf(a),C=y.useMemo(()=>({sortable:{containerId:h,index:T,items:d},...s}),[h,s,T,d]),_=y.useMemo(()=>d.slice(d.indexOf(a)),[d,a]),{rect:k,node:P,isOver:M,setNodeRef:F}=iJ({id:a,data:C,disabled:E.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...u}}),{active:U,activatorEvent:j,activeNodeRect:Y,attributes:z,setNodeRef:X,listeners:Q,isDragging:J,over:$,setActivatorNodeRef:V,transform:S}=tJ({id:a,data:C,attributes:{...gJ,...n},disabled:E.draggable}),ue=LQ(F,X),te=!!U,R=te&&!w&&gh(p)&&gh(x),pe=!v&&J,je=pe&&R?S:null,re=R?je??(o??b)({rects:m,activeNodeRect:Y,activeIndex:p,overIndex:x,index:T}):null,we=gh(p)&&gh(x)?i({id:a,items:d,activeIndex:p,overIndex:x}):T,Le=U==null?void 0:U.id,fe=y.useRef({activeId:Le,items:d,newIndex:we,containerId:h}),Ne=d!==fe.current.items,Ae=t({active:U,containerId:h,isDragging:J,isSorting:te,id:a,index:T,items:d,newIndex:fe.current.newIndex,previousItems:fe.current.items,previousContainerId:fe.current.containerId,transition:c,wasDragging:fe.current.activeId!=null}),dt=yJ({disabled:!Ae,index:T,node:P,rect:k});return y.useEffect(()=>{te&&fe.current.newIndex!==we&&(fe.current.newIndex=we),h!==fe.current.containerId&&(fe.current.containerId=h),d!==fe.current.items&&(fe.current.items=d)},[te,we,h,d]),y.useEffect(()=>{if(Le===fe.current.activeId)return;if(Le!=null&&fe.current.activeId==null){fe.current.activeId=Le;return}const Nt=setTimeout(()=>{fe.current.activeId=Le},50);return()=>clearTimeout(Nt)},[Le]),{active:U,activeIndex:p,attributes:z,data:C,rect:k,index:T,newIndex:we,items:d,isOver:M,isSorting:te,isDragging:J,listeners:Q,node:P,overIndex:x,over:$,setNodeRef:ue,setActivatorNodeRef:V,setDroppableNodeRef:F,setDraggableNodeRef:X,transform:dt??re,transition:Ge()};function Ge(){if(dt||Ne&&fe.current.newIndex===T)return mJ;if(!(pe&&!fx(j)||!c)&&(te||Ae))return Qc.Transition.toString({...c,property:TO})}}function bJ(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}function Kf(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const xJ=[Je.Down,Je.Right,Je.Up,Je.Left],wJ=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:s,droppableContainers:i,over:a,scrollableAncestors:o}}=t;if(xJ.includes(e.code)){if(e.preventDefault(),!n||!r)return;const u=[];
662i.getEnabled().forEach(h=>{if(!h||h!=null&&h.disabled)return;const p=s.get(h.id);if(p)switch(e.code){case Je.Down:r.top<p.top&&u.push(h);break;case Je.Up:r.top>p.top&&u.push(h);break;case Je.Left:r.left>p.left&&u.push(h);break;case Je.Right:r.left<p.left&&u.push(h);break}});const c=ZQ({active:n,collisionRect:r,droppableRects:s,droppableContainers:u,pointerCoordinates:null});let d=lO(c,"id");if(d===(a==null?void 0:a.id)&&c.length>1&&(d=c[1].id),d!=null){const h=i.get(n.id),p=i.get(d),f=p?s.get(p.id):null,w=p==null?void 0:p.node.current;if(w&&f&&h&&p){const x=lm(w).some((_,k)=>o[k]!==_),v=SO(h,p),b=EJ(h,p),E=x||!v?{x:0,y:0}:{x:b?r.width-f.width:0,y:b?r.height-f.height:0},T={x:f.left,y:f.top};return E.x&&E.y?T:Gc(T,E)}}}};function SO(e,t){return!Kf(e)||!Kf(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function EJ(e,t){return!Kf(e)||!Kf(t)||!SO(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const Nd=y.forwardRef(({className:e,...t},n)=>l.jsx("div",{className:"relative w-full overflow-auto",children:l.jsx("table",{ref:n,className:be("w-full caption-bottom text-sm",e),...t})}));Nd.displayName="Table";const Ad=y.forwardRef(({className:e,...t},n)=>l.jsx("thead",{ref:n,className:be("[&_tr]:border-b",e),...t}));Ad.displayName="TableHeader";const Rd=y.forwardRef(({className:e,...t},n)=>l.jsx("tbody",{ref:n,className:be("[&_tr:last-child]:border-0",e),...t}));Rd.displayName="TableBody";const _J=y.forwardRef(({className:e,...t},n)=>l.jsx("tfoot",{ref:n,className:be("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));_J.displayName="TableFooter";const Fs=y.forwardRef(({className:e,...t},n)=>l.jsx("tr",{ref:n,className:be("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Fs.displayName="TableRow";const Ct=y.forwardRef(({className:e,...t},n)=>l.jsx("th",{ref:n,className:be("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ct.displayName="TableHead";const xt=y.forwardRef(({className:e,...t},n)=>l.jsx("td",{ref:n,className:be("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));xt.displayName="TableCell";const TJ=y.forwardRef(({className:e,...t},n)=>l.jsx("caption",{ref:n,className:be("mt-4 text-sm text-muted-foreground",e),...t}));TJ.displayName="TableCaption";const SJ=ZI({name:pn().min(1,"Name is required").max(200),description:pn().max(2e3).optional(),category:ll(["fundraising","legal","finance","marketing","operations","hiring","product","ai","other"]),type:ll(["free","paid","perk","service","paid_service"]),price:pn().optional(),price_prefix:pn().max(20).optional(),price_unit:pn().max(50).optional(),external_link:pn().url("Must be a valid URL").optional().or(Vf("")),is_featured:Ba(),delivery_method:ll(["download","email","both"]),requires_phone:Ba(),calendly_url:pn().url("Must be a valid URL").optional().or(Vf("")),email_content:pn().max(5e3).optional(),is_subscription:Ba(),has_detail_page:Ba(),slug:pn().max(200).optional(),detail_content:pn().max(5e4).optional()});function CJ({resource:e,isOpen:t,onClose:n}){const r=po(),[s,i]=y.useState(null),[a,o]=y.useState(null),[u,c]=y.useState(!1),d=YI({resolver:GI(SJ),defaultValues:{name:"",description:"",category:"other",type:"free",price:"",price_prefix:"",price_unit:"",external_link:"",is_featured:!1,delivery_method:"download",requires_phone:!1,calendly_url:"",email_content:"",is_subscription:!1,has_detail_page:!1,slug:"",detail_content:""}});y.useEffect(()=>{var m;e&&(d.reset({name:e.name,description:e.description||"",category:e.category,type:e.type,price:((m=e.price)==null?void 0:m.toString())||"",price_prefix:e.price_prefix||"",price_unit:e.price_unit||"",external_link:e.external_link||"",is_featured:e.is_featured,delivery_method:e.delivery_method||"download",requires_phone:e.requires_phone||!1,calendly_url:e.calendly_url||"",email_content:e.email_content||"",is_subscription:e.is_subscription||!1,has_detail_page:e.has_detail_page||!1,slug:e.slug||"",detail_content:e.detail_content||""}),i(null),o(null))},[e,d]);const h=d.watch("type"),p=async(m,x)=>{const v=m.name.split(".").pop(),b=`${x}
662/${Date.now()}-${Math.random().toString(36).substring(7)}.${v}`,{error:E}=await Ze.storage.from("resource-documents").upload(b,m);if(E)throw new Error(`Failed to upload ${x}: ${E.message}`);const{data:T}=Ze.storage.from("resource-documents").getPublicUrl(b);return T.publicUrl},f=Ac({mutationFn:async m=>{if(!e)throw new Error("No resource to update");c(!0);const x=m.type==="paid"||m.type==="paid_service";let v=e.cover_image_url,b=e.document_url;s&&(v=await p(s,"covers")),a&&(b=await p(a,"documents"));const{error:E}=await Ze.from("resources").update({name:m.name,description:m.description||null,category:m.category,type:m.type,price:m.price&&x?parseFloat(m.price):null,price_prefix:m.price_prefix&&x?m.price_prefix:null,price_unit:m.price_unit&&x?m.price_unit:null,external_link:m.external_link||null,is_featured:m.is_featured,delivery_method:m.delivery_method,requires_phone:m.requires_phone,calendly_url:m.calendly_url||null,email_content:m.email_content||null,is_subscription:m.type==="paid_service"?m.is_subscription:!1,cover_image_url:v,document_url:b,has_detail_page:m.has_detail_page,slug:m.has_detail_page&&m.slug?m.slug:null,detail_content:m.has_detail_page&&m.detail_content?m.detail_content:null}).eq("id",e.id);if(E)throw E},onSuccess:()=>{Pt.success("Resource updated successfully."),r.invalidateQueries({queryKey:["resources"]}),n()},onError:m=>{Pt.error(`Failed to update: ${m.message}`)},onSettled:()=>{c(!1)}}),w=m=>{f.mutate(m)};return e?l.jsx(Dp,{open:t,onOpenChange:n,children:l.jsxs(hd,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[l.jsx(fd,{children:l.jsx(pd,{children:"Edit Resource"})}),l.jsx(eO,{...d,children:l.jsxs("form",{onSubmit:d.handleSubmit(w),className:"space-y-4",children:[l.jsx(lt,{control:d.control,name:"name",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Name *"}),l.jsx(it,{children:l.jsx(pt,{...m})}),l.jsx(St,{})]})}),l.jsx(lt,{control:d.control,name:"description",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Description"}),l.jsx(it,{children:l.jsx(Ls,{...m,className:"min-h-[80px]"})}),l.jsx(St,{})]})}),l.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[l.jsx(lt,{control:d.control,name:"category",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Category"}),l.jsxs(hs,{onValueChange:m.onChange,value:m.value,children:[l.jsx(it,{children:l.jsx($r,{children:l.jsx(fs,{})})}),l.jsx(zr,{children:Object.keys(pi).map(x=>l.jsx(yn,{value:x,children:pi[x]},x))})]}),l.jsx(St,{})]})}),l.jsx(lt,{control:d.control,name:"type",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Type"}),l.jsxs(hs,{onValueChange:m.onChange,value:m.value,children:[l.jsx(it,{children:l.jsx($r,{children:l.jsx(fs,{})})}),l.jsx(zr,{children:Object.keys(zc).map(x=>l.jsx(yn,{value:x,children:zc[x]},x))})]}),l.jsx(St,{})]})})]}),(h==="paid"||h==="paid_service")&&l.jsxs(l.Fragment,{children:[l.jsx(lt,{control:d.control,name:"price",render:({field:m})=>l.jsxs(rt,{children:[l.jsxs(st,{children:["Price (£)",h==="paid_service"&&d.watch("is_subscription")?" /month":""]}),l.jsx(it,{children:l.jsx(pt,{type:"number",step:"0.01",min:"0",...m})}),l.jsx(St,{})]})}),l.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[l.jsx(lt,{control:d.control,name:"price_prefix",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Price Prefix (optional)"}),l.jsx(it,{children:l.jsx(pt,{placeholder:"e.g. From",...m})}),l.jsx("p",{className:"text-xs text-muted-foreground",children:'Displays before the price, e.g. "From £99"'}),l.jsx(St,{})]})}),l.jsx(lt,{control:d.control,name:"price_unit",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Price Unit (optional)"}),l.jsx(it,{children:l.jsx(pt,{placeholder:"e.g. per document",...m})}),l.jsx("p",{className:"text-xs text-muted-foreground",children:'Displays after the price, e.g. "£99 per document"'}),l.jsx(St,{})]})})]})]}),h==="paid_service"&&l.jsx(lt,{control:d.control,name:"is_subscription",render:({field:m})=>l.jsxs(rt,{className:"flex items-center gap-3",children:[l.jsx(it,{children:l.jsx("input",{type:"checkbox",checked:m.value,onChange:m.onChange,className:"h-4 w-4 roun
662ded border-input"})}),l.jsx(st,{className:"!mt-0",children:"Monthly subscription (recurring payment)"})]})}),(h==="free"||h==="paid")&&l.jsx(lt,{control:d.control,name:"delivery_method",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Delivery Method"}),l.jsxs(hs,{onValueChange:m.onChange,value:m.value,children:[l.jsx(it,{children:l.jsx($r,{children:l.jsx(fs,{})})}),l.jsxs(zr,{children:[l.jsx(yn,{value:"download",children:"Download"}),l.jsx(yn,{value:"email",children:"Email"}),l.jsx(yn,{value:"both",children:"Both"})]})]}),l.jsx(St,{})]})}),l.jsx(lt,{control:d.control,name:"requires_phone",render:({field:m})=>l.jsxs(rt,{className:"flex items-center gap-3",children:[l.jsx(it,{children:l.jsx("input",{type:"checkbox",checked:m.value,onChange:m.onChange,className:"h-4 w-4 rounded border-input"})}),l.jsx(st,{className:"!mt-0",children:"Require phone number"})]})}),(h==="free"||h==="paid")&&l.jsx(lt,{control:d.control,name:"external_link",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"External Link"}),l.jsx(it,{children:l.jsx(pt,{type:"url",placeholder:"https://...",...m})}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Used if no document is uploaded. The download button will open this URL instead."}),l.jsx(St,{})]})}),(h==="service"||h==="paid_service")&&l.jsx(lt,{control:d.control,name:"calendly_url",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Calendly URL (for booking calls)"}),l.jsx(it,{children:l.jsx(pt,{type:"url",placeholder:"https://calendly.com/...",...m})}),l.jsx(St,{})]})}),(h==="free"||h==="paid")&&l.jsx(lt,{control:d.control,name:"email_content",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Email Content (custom message in delivery email)"}),l.jsx(it,{children:l.jsx(Ls,{...m,className:"min-h-[100px]",placeholder:"Additional content to include in the resource delivery email..."})}),l.jsxs("p",{className:"text-xs text-muted-foreground",children:["Available placeholders: ","{{first_name}}",", ","{{name}}",", ","{{company}}",", ","{{company_name}}",", ","{{resource_name}}"]}),l.jsx(St,{})]})}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{children:"Cover Image"}),(e==null?void 0:e.cover_image_url)&&!s&&l.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",l.jsx("a",{href:e.cover_image_url,target:"_blank",rel:"noopener noreferrer",className:"underline",children:"View current image"})]}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsxs("label",{className:"flex items-center gap-2 px-4 py-2 border border-input rounded-md cursor-pointer hover:bg-accent transition-colors",children:[l.jsx(l2,{className:"h-4 w-4"}),l.jsx("span",{className:"text-sm",children:s?s.name:"Choose image"}),l.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:m=>{var x;return i(((x=m.target.files)==null?void 0:x[0])||null)}})]}),s&&l.jsx(Ve,{type:"button",variant:"ghost",size:"sm",onClick:()=>i(null),children:"Remove"})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{children:"Document / File"}),(e==null?void 0:e.document_url)&&!a&&l.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",l.jsx("a",{href:e.document_url,target:"_blank",rel:"noopener noreferrer",className:"underline",children:"View current file"})]}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsxs("label",{className:"flex items-center gap-2 px-4 py-2 border border-input rounded-md cursor-pointer hover:bg-accent transition-colors",children:[l.jsx(Wv,{className:"h-4 w-4"}),l.jsx("span",{className:"text-sm",children:a?a.name:"Choose file"}),l.jsx("input",{type:"file",accept:".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.zip",className:"hidden",onChange:m=>{var x;return o(((x=m.target.files)==null?void 0:x[0])||null)}})]}),a&&l.jsx(Ve,{type:"button",variant:"ghost",size:"sm",onClick:()=>o(null),children:"Remove"})]})]}),l.jsx(lt,{control:d.control,name:"is_featured",render:({field:m})=>l.jsxs(rt,{className:"flex items-center gap-3",children:[l.jsx(it,{children:l.jsx("input",{type:"checkbox",checked:m.value,onChange:m.onChange,className:"h-4 w-4 roun
662ded border-input"})}),l.jsx(st,{className:"!mt-0",children:"Feature this resource"})]})}),l.jsxs("div",{className:"border-t pt-4 mt-4 space-y-4",children:[l.jsx("h3",{className:"font-semibold text-sm",children:"Detail Page"}),l.jsx(lt,{control:d.control,name:"has_detail_page",render:({field:m})=>l.jsxs(rt,{className:"flex items-center gap-3",children:[l.jsx(it,{children:l.jsx("input",{type:"checkbox",checked:m.value,onChange:m.onChange,className:"h-4 w-4 rounded border-input"})}),l.jsx(st,{className:"!mt-0",children:"Enable detail page for this resource"})]})}),d.watch("has_detail_page")&&l.jsxs(l.Fragment,{children:[l.jsx(lt,{control:d.control,name:"slug",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"URL Slug *"}),l.jsx(it,{children:l.jsx(pt,{placeholder:"seis-eis-advance-assurance",...m})}),l.jsxs("p",{className:"text-xs text-muted-foreground",children:["Page will be at /resources/",m.value||"your-slug"]}),l.jsx(St,{})]})}),l.jsx(lt,{control:d.control,name:"detail_content",render:({field:m})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Page Content (Markdown)"}),l.jsx(it,{children:l.jsx(Ls,{...m,className:"min-h-[300px] font-mono text-sm",placeholder:`## What it is
663
664Description here...
665
666## FAQs
667
668### Question here?
669
670Answer here...`})}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Use ## for sections, ### under ## FAQs for FAQ items. Supports full Markdown."}),l.jsx(St,{})]})})]})]}),l.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[l.jsx(Ve,{type:"button",variant:"outline",onClick:n,children:"Cancel"}),l.jsx(Ve,{type:"submit",disabled:u||f.isPending,children:u||f.isPending?l.jsxs(l.Fragment,{children:[l.jsx(Tr,{className:"mr-2 h-4 w-4 animate-spin"}),u?"Uploading...":"Saving..."]}):"Save Changes"})]})]})})]})}):null}function kJ({resource:e,onEdit:t,onDelete:n,isDeleting:r}){const[s,i]=y.useState(!1),{attributes:a,listeners:o,setNodeRef:u,transform:c,transition:d,isDragging:h}=vJ({id:e.id}),p={transform:Qc.Transform.toString(c),transition:d,opacity:h?.5:1};return l.jsxs(Fs,{ref:u,style:p,children:[l.jsx(xt,{className:"w-[40px]",children:l.jsx("button",{...a,...o,className:"cursor-grab active:cursor-grabbing p-1 hover:bg-muted rounded touch-none",children:l.jsx(lj,{className:"h-4 w-4 text-muted-foreground"})})}),l.jsx(xt,{className:"font-medium",children:l.jsxs("div",{className:"flex items-center gap-2",children:[e.is_featured&&l.jsx(xj,{className:"h-4 w-4 text-yellow-500 fill-yellow-500"}),l.jsx("span",{className:"truncate max-w-[200px]",children:e.name})]})}),l.jsx(xt,{children:l.jsx(Pn,{variant:"outline",children:pi[e.category]})}),l.jsx(xt,{children:l.jsxs(Pn,{variant:e.type==="paid"||e.type==="paid_service"?"default":"secondary",children:[zc[e.type],e.is_subscription&&" (Monthly)"]})}),l.jsx(xt,{children:e.price?`£${e.price.toFixed(2)}`:"—"}),l.jsx(xt,{className:"capitalize",children:e.delivery_method||"download"}),l.jsx(xt,{children:e.requires_phone?"Yes":"No"}),l.jsx(xt,{className:"text-right",children:l.jsxs("div",{className:"flex justify-end gap-1",children:[l.jsx(Ve,{variant:"ghost",size:"icon",title:"Send test email to [email protected]",onClick:async()=>{i(!0);try{const{error:f}=await Ze.functions.invoke("send-resource-email",{body:{email:"[email protected]",name:"Kate (Test)",resourceName:e.name,deliveryMethod:e.delivery_method||"download",documentUrl:e.document_url,externalLink:e.external_link,calendlyUrl:e.calendly_url,emailContent:e.email_content,resourceType:e.type,companyName:"TestCo"}});if(f)throw f;Pt.success("Test email sent to [email protected]")}catch(f){Pt.error(`Failed to send test email: ${f.message}`)}finally{i(!1)}},disabled:s,children:s?l.jsx(Tr,{className:"h-4 w-4 animate-spin"}):l.jsx(vp,{className:"h-4 w-4"})}),e.external_link&&l.jsx(Ve,{variant:"ghost",size:"icon",onClick:()=>window.open(e.external_link,"_blank"),children:l.jsx(yp,{className:"h-4 w-4"})}),l.jsx(Ve,{variant:"ghost",size:"icon",onClick:()=>t(e),children:l.jsx(bj,{className:"h-4 w-4"})}),l.jsx(Ve,{variant:"ghost",size:"icon",onClick:()=>n(e),disabled:r,children:l.jsx(Ej,{className:"h-4 w-4 text-destructive"})})]})})]})}function NJ({resources:e,isLoading:t}){const n=po(),[r,s]=y.useState(null),i=QQ(W_(yx),W_(mx,{coordinateGetter:wJ})),a=Ac({mutationFn:async d=>{const{error:h}=await Ze.from("resources").delete().eq("id",d);if(h)throw h},onSuccess:()=>{Pt.success("Resource deleted successfully."),n.invalidateQueries({queryKey:["resources"]})},onError:d=>{Pt.error(`Failed to delete: ${d.message}`)}}),o=Ac({mutationFn:async d=>{var w;const h=d.map(({id:m,position:x})=>Ze.from("resources").update({position:x}).eq("id",m)),f=(w=(await Promise.all(h)).find(m=>m.error))==null?void 0:w.error;if(f)throw f},onSuccess:()=>{Pt.success("Order updated successfully."),n.invalidateQueries({queryKey:["resources"]})},onError:d=>{Pt.error(`Failed to reorder: ${d.message}`),n.invalidateQueries({queryKey:["resources"]})}}),u=d=>{confirm(`Are you sure you want to delete "${d.name}"?`)&&a.mutate(d.id)},c=d=>{const{active:h,over:p}=d;
670if(p&&h.id!==p.id){const f=e.findIndex(v=>v.id===h.id),w=e.findIndex(v=>v.id===p.id),x=vx(e,f,w).map((v,b)=>({id:v.id,position:b+1}));o.mutate(x)}};return t?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"Loading resources..."}):e.length===0?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No resources found. Add one above!"}):l.jsxs(l.Fragment,{children:[l.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Drag and drop to reorder. Resources at the top will appear first on the page."}),l.jsx("div",{className:"rounded-md border overflow-x-auto",children:l.jsx(JX,{sensors:i,collisionDetection:JQ,onDragEnd:c,children:l.jsxs(Nd,{children:[l.jsx(Ad,{children:l.jsxs(Fs,{children:[l.jsx(Ct,{className:"w-[40px]"}),l.jsx(Ct,{className:"w-[250px]",children:"Name"}),l.jsx(Ct,{children:"Category"}),l.jsx(Ct,{children:"Type"}),l.jsx(Ct,{children:"Price"}),l.jsx(Ct,{children:"Delivery"}),l.jsx(Ct,{children:"Phone Req."}),l.jsx(Ct,{className:"text-right",children:"Actions"})]})}),l.jsx(Rd,{children:l.jsx(dJ,{items:e.map(d=>d.id),strategy:uJ,children:e.map(d=>l.jsx(kJ,{resource:d,onEdit:s,onDelete:u,isDeleting:a.isPending},d.id))})})]})})}),l.jsx(CJ,{resource:r,isOpen:!!r,onClose:()=>s(null)})]})}const sT={download:{label:"Download",icon:l.jsx(mf,{className:"h-3 w-3"}),variant:"secondary"},email:{label:"Emailed",icon:l.jsx(vp,{className:"h-3 w-3"}),variant:"outline"},purchase:{label:"Purchase",icon:l.jsx(Sc,{className:"h-3 w-3"}),variant:"default"},booking:{label:"Booking",icon:l.jsx(Us,{className:"h-3 w-3"}),variant:"secondary"}};function AJ(){const{data:e,isLoading:t}=mo({queryKey:["resource-access"],queryFn:async()=>{const{data:n,error:r}=await Ze.from("resource_access").select(`
671          id,
672          email,
673          first_name,
674          last_name,
675          access_type,
676          amount_paid,
677          currency,
678          accessed_at,
679          resource_id,
680          resources (
681            name
682          )
683        `).order("accessed_at",{ascending:!1}).limit(100);if(r)throw r;return n}});return t?l.jsx("div",{className:"space-y-3",children:[...Array(5)].map((n,r)=>l.jsx(Vn,{className:"h-12 w-full"},r))}):!e||e.length===0?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No resource access records yet. Records will appear here when users download, purchase, or book resources."}):l.jsx("div",{className:"overflow-x-auto",children:l.jsxs(Nd,{children:[l.jsx(Ad,{children:l.jsxs(Fs,{children:[l.jsx(Ct,{children:"Date"}),l.jsx(Ct,{children:"Name"}),l.jsx(Ct,{children:"Email"}),l.jsx(Ct,{children:"Resource"}),l.jsx(Ct,{children:"Type"}),l.jsx(Ct,{className:"text-right",children:"Amount"})]})}),l.jsx(Rd,{children:e.map(n=>{var i;const r=sT[n.access_type]||sT.download,s=[n.first_name,n.last_name].filter(Boolean).join(" ")||"—";return l.jsxs(Fs,{children:[l.jsx(xt,{className:"whitespace-nowrap text-sm text-muted-foreground",children:Dl(new Date(n.accessed_at),"dd MMM yyyy, HH:mm")}),l.jsx(xt,{className:"font-medium",children:s}),l.jsx(xt,{className:"text-sm",children:n.email}),l.jsx(xt,{className:"text-sm",children:((i=n.resources)==null?void 0:i.name)||"—"}),l.jsx(xt,{children:l.jsxs(Pn,{variant:r.variant,className:"flex items-center gap-1 w-fit",children:[r.icon,r.label]})}),l.jsx(xt,{className:"text-right font-medium",children:n.amount_paid?`£${n.amount_paid.toFixed(2)}`:"—"})]},n.id)})})]})})}function RJ(){const{toast:e}=od(),t=po(),[n,r]=y.useState(null),[s,i]=y.useState({}),{data:a=[],isLoading:o}=kI(),{data:u=[]}=mo({queryKey:["event-statuses"],queryFn:async()=>{const{data:v,error:b}=await Ze.from("event_status").select("*");if(b)throw b;return v}}),c=Ac({mutationFn:async({eventId:v,eventName:b,status:E,price:T})=>{const C=u.find(k=>k.luma_event_id===v),_={event_name:b};if(E!==void 0&&(_.status=E),T!==void 0&&(_.price=T),C){const{error:k}=await Ze.from("event_status").update(_).eq("luma_event_id",v);if(k)throw k}else{const{error:k}=await Ze.from("event_status").insert({luma_event_id:v,event_name:b,status:E||"available",price:T||null,registration_count:0});if(k)throw k}},onSuccess:()=>{e({title:"Event updated",description:"Event settings have been saved."}),t.invalidateQueries({queryKey:["event-statuses"]}),t.invalidateQueries({queryKey:["luma-events"]})},onError:v=>{e({title:"Error updating event",description:v.message,variant:"destructive"})},onSettled:()=>{r(null)}}),d=(v,b)=>{r(v.id),c.mutate({eventId:v.id,eventName:v.title,status:b})},h=v=>{const b=s[v.id],E=u.find(_=>_.luma_event_id===v.id),T=E==null?void 0:E.price,C=b===""||b===void 0?null:parseFloat(b);C!==T&&(r(v.id),c.mutate({eventId:v.id,eventName:v.title,price:C}
683))},p=v=>{const b=u.find(E=>E.luma_event_id===v);return(b==null?void 0:b.status)||"available"},f=v=>{var E;if(s[v]!==void 0)return s[v];const b=u.find(T=>T.luma_event_id===v);return((E=b==null?void 0:b.price)==null?void 0:E.toString())||""},w=v=>{try{return Dl(jl(v),"MMM d, yyyy")}catch{return v}},m=v=>{try{return jK(jl(v))}catch{return!1}};if(o)return l.jsx("div",{className:"flex items-center justify-center py-8",children:l.jsx(Tr,{className:"h-6 w-6 animate-spin text-muted-foreground"})});const x=[...a].sort((v,b)=>new Date(b.date).getTime()-new Date(v.date).getTime());return l.jsxs("div",{className:"space-y-4",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Set capacity status and custom pricing for events. Leave price empty to use the global founder ticket price."}),x.length===0?l.jsx("p",{className:"text-center py-8 text-muted-foreground",children:"No events found"}):l.jsxs(Nd,{children:[l.jsx(Ad,{children:l.jsxs(Fs,{children:[l.jsx(Ct,{children:"Event"}),l.jsx(Ct,{children:"Date"}),l.jsx(Ct,{children:"Status"}),l.jsx(Ct,{children:"Price (£)"})]})}),l.jsx(Rd,{children:x.map(v=>{const b=m(v.date),E=p(v.id),T=n===v.id;return l.jsxs(Fs,{className:b?"opacity-60":"",children:[l.jsx(xt,{children:l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"font-medium max-w-[200px] truncate",children:v.title}),l.jsx(Pn,{variant:b?"outline":"secondary",className:"w-fit",children:b?"Past":"Upcoming"})]})}),l.jsx(xt,{children:w(v.date)}),l.jsx(xt,{children:l.jsx("div",{className:"flex items-center gap-2",children:l.jsxs(hs,{value:E,onValueChange:C=>d(v,C),disabled:T,children:[l.jsx($r,{className:"w-[130px]",children:l.jsx(fs,{})}),l.jsxs(zr,{children:[l.jsx(yn,{value:"available",children:"Available"}),l.jsx(yn,{value:"almost_full",children:"Almost Full"}),l.jsx(yn,{value:"sold_out",children:"Sold Out"})]})]})})}),l.jsx(xt,{children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(pt,{type:"number",step:"0.01",min:"0",placeholder:"Global",className:"w-[100px]",value:f(v.id),onChange:C=>i(_=>({..._,[v.id]:C.target.value})),onBlur:()=>h(v),disabled:T}),T&&l.jsx(Tr,{className:"h-4 w-4 animate-spin"})]})})]},v.id)})})]})]})}function IJ(){const e=po(),[t,n]=y.useState(!1),[r,s]=y.useState(null),[i,a]=y.useState(!1),{data:o,isLoading:u}=mo({queryKey:["lead_captures_admin"],queryFn:async()=>{const{data:f,error:w}=await Ze.from("lead_captures").select("*").order("captured_at",{ascending:!1}).limit(500);if(w)throw w;return f}}),c=async f=>{s(f.id);try{const{error:w}=await Ze.functions.invoke("sync-lead-to-airtable",{body:{lead_capture_id:f.id,first_name:f.first_name,last_name:f.last_name,email:f.email,linkedin_url:f.linkedin_url,linkedin_reflects_current:f.linkedin_reflects_current,current_role_description:f.current_role_description,company_name:f.company_name,company_stage:f.company_stage,company_size:f.company_size,is_founder:f.is_founder,whats_on_mind:f.whats_on_mind,phone_number:f.phone_number,resource_id:f.resource_id,captured_at:f.captured_at}});if(w)throw w;Pt.success(`Re-synced ${f.email}`),await e.invalidateQueries({queryKey:["lead_captures_admin"]})}catch(w){console.error(w),Pt.error(`Failed to sync ${f.email}`)}finally{s(null)}},d=async()=>{if(!o)return;const f=o.filter(x=>!x.airtable_synced_at);if(f.length===0){Pt.info("Nothing to re-sync.");return}a(!0);let w=0,m=0;for(const x of f)try{const{error:v}=await Ze.functions.invoke("sync-lead-to-airtable",{body:{lead_capture_id:x.id,first_name:x.first_name,last_name:x.last_name,email:x.email,linkedin_url:x.linkedin_url,linkedin_reflects_current:x.linkedin_reflects_current,current_role_description:x.current_role_description,company_name:x.company_name,company_stage:x.company_stage,company_size:x.company_size,is_founder:x.is_founder,whats_on_mind:x.whats_on_mind,phone_number:x.phone_number,resource_id:x.resource_id,captured_at:x.captured_at}});if(v)throw v;w++}catch{m++}a(!1),Pt.success(`Re-sync complete: ${w} succeeded, ${m} failed.`),await e.invalidateQueries({queryKey:["lead_captures_admin"]})};if(u)return l.jsx("div",{className:"flex items-center justify-center py-8",children:l.jsx(Tr,{className:"h-6 w-6 animate-spin text-muted-foreground"})});const h=t?o==null?void 0:o.filter(f=>!f.airtable_synced_at):o,p=(o==null?void 0:o.filter(f=>!f.airtable_synced_at).length)??0;return l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[l.jsxs("div",{className:"text-sm text-muted-foreground",children:[(o==null?void 0:o.length)??0," total · ",p," not synced to Airtable"]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Ve,{variant:"outline",size:"sm",onClick:()=>n(f=>!f),children:t?"Show all":"Show unsynced only"}),l.jsxs(Ve,{size:"sm",onClick:d,disabled:i||p===0,children:[i?l.jsx(Tr,{className:"h-4 w-4 animate-spin mr-2"}):l.jsx(M1,{className:"h-4 w-4 mr-2"}),"Re-sync all unsynced"]})]})]}),l.jsx("div",{className:"border rounded-lg overflow-x-auto",children:l.jsxs(Nd,{children:[l.jsx(Ad,{children:l.jsxs(Fs,{children:[l.jsx(Ct,{children:"Date"}),l.jsx(Ct,{children:"Name"}),l.jsx(Ct,{children:"Email"}),l.jsx(Ct,{children:"Company"}),l.jsx(Ct,{children:"Airtable"}),l.jsx(Ct,{className:"text-right",children:"Action"})]})}),l.jsxs(Rd,{children:[h==null?void 0:h.map(f=>l.jsxs(Fs,{children:[l.jsx(xt,{className:"text-sm text-muted-foreground whitespace-nowrap",children:new Date(f.captured_at).toLocaleDateString()}),l.jsxs(xt,{children:[f.first_name," ",f.last_name]}),l.jsx(xt,{className:"text-sm",children:f.email}),l.jsx(xt,{className:"text-sm",children:f.company_name}),l.jsx(xt,{children:f.airtable_synced_at?l.jsx(Pn,{variant:"secondary",className:"bg-accent/10 text-accent-foreground",children:"Synced"}):f.airtable_sync_error?l.jsx(Pn,{variant:"destructive",title:f.airtable_sync_error,children:"Failed"}):l.jsx(Pn,{variant:"outline",children:"Unknown"})}),l.jsx(xt,{className:"text-right",children:l.jsx(Ve,{size:"sm",variant:"outline",onClick:()=>
683c(f),disabled:r===f.id,children:r===f.id?l.jsx(Tr,{className:"h-3 w-3 animate-spin"}):l.jsxs(l.Fragment,{children:[l.jsx(M1,{className:"h-3 w-3 mr-1"}),"Sync"]})})})]},f.id)),(h==null?void 0:h.length)===0&&l.jsx(Fs,{children:l.jsx(xt,{colSpan:6,className:"text-center text-muted-foreground py-6",children:"No leads to show."})})]})]})})]})}const OJ=ZI({name:pn().min(1,"Name is required").max(200,"Name must be less than 200 characters"),description:pn().max(2e3,"Description must be less than 2000 characters").optional(),category:ll(["fundraising","legal","finance","marketing","operations","hiring","product","ai","other"]),type:ll(["free","paid","perk","service","paid_service"]),price:pn().optional(),price_prefix:pn().max(20).optional(),price_unit:pn().max(50).optional(),external_link:pn().url("Must be a valid URL").optional().or(Vf("")),is_featured:Ba().default(!1),delivery_method:ll(["download","email","both"]),requires_phone:Ba().default(!1),calendly_url:pn().url("Must be a valid URL").optional().or(Vf("")),email_content:pn().max(5e3).optional(),is_subscription:Ba().default(!1)});function PJ(){const{toast:e}=od(),t=po(),[n,r]=y.useState(null),[s,i]=y.useState(null),[a,o]=y.useState(!1),[u,c]=y.useState("82"),[d,h]=y.useState("(2 course founder dinner inc. drinks & speaker)"),[p,f]=y.useState(!1),{data:w=[],isLoading:m}=NI(),{data:x}=mo({queryKey:["event-settings"],queryFn:async()=>{const{data:_,error:k}=await Ze.from("event_settings").select("*").limit(1).single();if(k)throw k;return _}});y.useEffect(()=>{x!=null&&x.founder_ticket_price&&c(String(x.founder_ticket_price)),x!=null&&x.price_description&&h(x.price_description)},[x]);const v=YI({resolver:GI(OJ),defaultValues:{name:"",description:"",category:"other",type:"free",price:"",price_prefix:"",price_unit:"",external_link:"",is_featured:!1,delivery_method:"download",requires_phone:!1,calendly_url:"",email_content:`Hi {{first_name}},
684
685Thank you for downloading {{resource_name}}. We hope you find it useful for {{company_name}}.
686
687If you have any questions, just reply to this email.`,is_subscription:!1}}),b=v.watch("type"),E=async(_,k)=>{const P=_.name.split(".").pop(),M=`${k}/${Date.now()}-${Math.random().toString(36).substring(7)}.${P}`,{error:F}=await Ze.storage.from("resource-documents").upload(M,_);if(F)throw console.error("Upload error:",F),new Error(`Failed to upload ${k}: ${F.message}`);const{data:U}=Ze.storage.from("resource-documents").getPublicUrl(M);return U.publicUrl},T=Ac({mutationFn:async _=>{o(!0);let k=null,P=null,M=null;n&&(k=await E(n,"covers")),s&&(P=await E(s,"documents"));const F=_.type==="paid"||_.type==="paid_service";if(F&&_.price){const{data:j,error:Y}=await Ze.functions.invoke("create-stripe-product",{body:{name:_.name,description:_.description,price:parseFloat(_.price),imageUrl:k,isSubscription:_.type==="paid_service"&&_.is_subscription}});if(Y)throw new Error(`Failed to create Stripe product: ${Y.message}`);M=j.priceId}const{error:U}=await Ze.from("resources").insert({name:_.name,description:_.description||null,category:_.category,type:_.type,price:_.price&&F?parseFloat(_.price):null,price_prefix:_.price_prefix&&F?_.price_prefix:null,price_unit:_.price_unit&&F?_.price_unit:null,external_link:_.external_link||null,is_featured:_.is_featured,cover_image_url:k,document_url:P,stripe_price_id:M,delivery_method:_.delivery_method,requires_phone:_.requires_phone,calendly_url:_.calendly_url||null,email_content:_.email_content||null,is_subscription:_.type==="paid_service"?_.is_subscription:!1});if(U)throw U},onSuccess:()=>{e({title:"Resource created!",description:"The resource has been successfully added."}),v.reset(),r(null),i(null),t.invalidateQueries({queryKey:["resources"]})},onError:_=>{e({title:"Error creating resource",description:_.message,variant:"destructive"})},onSettled:()=>{o(!1)}}),C=_=>{T.mutate(_)};return l.jsx(Vr,{children:l.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-5xl space-y-8",children:[l.jsxs(qt,{children:[l.jsxs(nr,{children:[l.jsx(rr,{className:"text-2xl",children:"Add New Resource"}),l.jsxs(yr,{children:["Fill out the form below to add a new resource. Fields marked with ",l.jsx("span",{className:"text-destructive",children:"*"})," are required."]})]}),l.jsx(Zt,{children:l.jsx(eO,{...v,children:l.jsxs("form",{onSubmit:v.handleSubmit(C),className:"space-y-6",children:[l.jsx(lt,{control:v.control,name:"name",render:({field:_})=>l.jsxs(rt,{children:[l.jsxs(st,{children:["Name ",l.jsx("span",{className:"text-destructive",children:"*"})]}),l.jsx(it,{children:l.jsx(pt,{placeholder:"Resource name",..._})}),l.jsx(St,{})]})}),l.jsx(lt,{control:v.control,name:"description",render:({field:_})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Description"}),l.jsx(it,{children:l.jsx(Ls,{placeholder:"Brief description of the resource...",className:"min-h-[100px]",..._})}),l.jsx(St,{})]})}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[l.jsx(lt,{control:v.control,name:"category",render:({field:_})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Category"}),l.jsxs(hs,{onValueChange:_.onChange,defaultValue:_.value,children:[l.jsx(it,{children:l.jsx($r,{children:l.jsx(fs,{placeholder:"Select category"})})}),l.jsx(zr,{children:Object.keys(pi).map(k=>l.jsx(yn,{value:k,children:pi[k]},k))})]}),l.jsx(St,{})]})}),l.jsx(lt,{control:v.control,name:"type",render:({field:_})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Type"}),l.jsxs(hs,{onValueChange:_.onChange,defaultValue:_.value,children:[l.jsx(it,{children:l.jsx($r,{children:l.jsx(fs,{placeholder:"Select type"})})}),l.jsx(zr,{children:Object.keys(zc).map(k=>l.jsx(yn,{value:k,children:zc[k]},k))})]}),l.jsx(St,{})]})})]}),(b==="paid"||b==="paid_service")&&l.jsxs(l.Fragment,{children:[l.jsx(lt,{control:v.control,name:"price",render:({field:_})=>l.jsxs(rt,{children:[l.jsxs(st,{children:["Price (£)",b==="paid_service"&&v.watch("is_subscription")?" /month":""]}),l.jsx(it,{children:l.jsx(pt,{type:"number",step:"0.01",min:"0",placeholder:"0.00",..._})}),l.jsx(St,{})]})}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[l.jsx(lt,{control:v.control,name:"price_prefix",render:({field:_})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Price Prefix (optional)"}),l.jsx(it,{children:l.jsx(pt,{placeholder:"e.g. From",..._})}),l.jsx("p",{className:"text-xs text-muted-foreground",children:'Displays before the price, e.g. "From £99"'}),l.jsx(St,{})]})}),l.jsx(lt,{control:v.control,name:"price_unit",render:({field:_})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Price Unit (optional)"}),l.jsx(it,{children:l.jsx(pt,{placeholder:"e.g. per document",..._})}),l.jsx("p",{className:"text-xs text-muted-foreground",children:'Displays after the price, e.g. "£99 per document"'}),l.jsx(St,{})]})})]})]}),b==="paid_service"&&l.jsx(lt,{control:v.control,name:"is_subscription",render:({field:_})=>l.jsxs(rt,{className:"flex items-center gap-3",children:[l.jsx(it,{children:l.jsx("input",{type:"checkbox",checked:_.value,onChange:_.onChange,className:"h-4 w-4 roun
687ded border-input"})}),l.jsx(st,{className:"!mt-0 cursor-pointer",children:"Monthly subscription (recurring payment)"})]})}),(b==="free"||b==="paid")&&l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[l.jsx(lt,{control:v.control,name:"delivery_method",render:({field:_})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Delivery Method"}),l.jsxs(hs,{onValueChange:_.onChange,value:_.value,children:[l.jsx(it,{children:l.jsx($r,{children:l.jsx(fs,{placeholder:"Select delivery method"})})}),l.jsxs(zr,{children:[l.jsx(yn,{value:"download",children:"Download"}),l.jsx(yn,{value:"email",children:"Email"}),l.jsx(yn,{value:"both",children:"Both"})]})]}),l.jsx(St,{})]})}),l.jsx(lt,{control:v.control,name:"requires_phone",render:({field:_})=>l.jsxs(rt,{className:"flex items-center gap-3 pt-8",children:[l.jsx(it,{children:l.jsx("input",{type:"checkbox",checked:_.value,onChange:_.onChange,className:"h-4 w-4 rounded border-input"})}),l.jsx(st,{className:"!mt-0 cursor-pointer",children:"Require phone number"})]})})]}),(b==="free"||b==="paid")&&l.jsx(lt,{control:v.control,name:"external_link",render:({field:_})=>l.jsxs(rt,{children:[l.jsx(st,{children:"External Link"}),l.jsx(it,{children:l.jsx(pt,{type:"url",placeholder:"https://example.com",..._})}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Used if no document is uploaded. The download button will open this URL instead."}),l.jsx(St,{})]})}),(b==="service"||b==="paid_service")&&l.jsx(lt,{control:v.control,name:"calendly_url",render:({field:_})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Calendly URL (for booking calls)"}),l.jsx(it,{children:l.jsx(pt,{type:"url",placeholder:"https://calendly.com/...",..._})}),l.jsx(St,{})]})}),(b==="free"||b==="paid")&&l.jsx(lt,{control:v.control,name:"email_content",render:({field:_})=>l.jsxs(rt,{children:[l.jsx(st,{children:"Email Content (custom message in delivery email)"}),l.jsx(it,{children:l.jsx(Ls,{placeholder:"Additional content to include in the resource delivery email...",className:"min-h-[100px]",..._})}),l.jsxs("p",{className:"text-xs text-muted-foreground",children:["Available placeholders: ","{{first_name}}",", ","{{name}}",", ","{{company}}",", ","{{company_name}}",", ","{{resource_name}}"]}),l.jsx(St,{})]})}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{children:"Cover Image"}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsxs("label",{className:"flex items-center gap-2 px-4 py-2 border border-input rounded-md cursor-pointer hover:bg-accent transition-colors",children:[l.jsx(l2,{className:"h-4 w-4"}),l.jsx("span",{className:"text-sm",children:n?n.name:"Choose image"}),l.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:_=>{var k;return r(((k=_.target.files)==null?void 0:k[0])||null)}})]}),n&&l.jsx(Ve,{type:"button",variant:"ghost",size:"sm",onClick:()=>r(null),children:"Remove"})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{children:"Document / File"}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsxs("label",{className:"flex items-center gap-2 px-4 py-2 border border-input rounded-md cursor-pointer hover:bg-accent transition-colors",children:[l.jsx(Wv,{className:"h-4 w-4"}),l.jsx("span",{className:"text-sm",children:s?s.name:"Choose file"}),l.jsx("input",{type:"file",accept:".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.zip",className:"hidden",onChange:_=>{var k;return i(((k=_.target.files)==null?void 0:k[0])||null)}})]}),s&&l.jsx(Ve,{type:"button",variant:"ghost",size:"sm",onClick:()=>i(null),children:"Remove"})]})]}),l.jsx(lt,{control:v.control,name:"is_featured",render:({field:_})=>l.jsxs(rt,{className:"flex items-center gap-3",children:[l.jsx(it,{children:l.jsx("input",{type:"checkbox",checked:_.value,onChange:_.onChange,className:"h-4 w-4 rounded border-input"})}),l.jsx(st,{className:"!mt-0 cursor-pointer",children:"Feature this resource"})]})}),l.jsx(Ve,{type:"submit",className:"w-full",disabled:a||T.isPending,children:a||T.isPending?l.jsxs(l.Fragment,{children:[l.jsx(Tr,{className:"mr-2 h-4 w-4 animate-spin"}),"Uploading..."]}):l.jsxs(l.Fragment,{children:[l.jsx(Tj,{className:"mr-2 h-4 w-4"}),"Add Resource"]})})]})})})]}),l.jsxs(qt,{children:[l.jsxs(nr,{children:[l.jsx(rr,{className:"text-2xl",children:"Manage Resources"}),l.jsx(yr,{children:"View, edit, or delete existing resources."})]}),l.jsx(Zt,{children:l.jsx(NJ,{resources:w,isLoading:m})})]}),l.jsxs(qt,{children:[l.jsxs(nr,{children:[l.jsxs(rr,{className:"text-2xl flex items-center gap-2",children:[l.jsx(L1,{className:"h-6 w-6"}),"Resource Access Log"]}),l.jsx(yr,{children:"Track downloads, purchases, and bookings. Also synced to Airtable."})]}),l.jsx(Zt,{children:l.jsx(AJ,{})})]}),l.jsxs(qt,{children:[l.jsxs(nr,{children:[l.jsxs(rr,{className:"text-2xl flex items-center gap-2",children:[l.jsx(L1,{className:"h-6 w-6"}),"Lead Captures"]}),l.jsx(yr,{children:"All people who joined TableCrowd or downloaded a resource. Re-sync any that failed to reach Airtable."})]}),l.jsx(Zt,{children:l.jsx(IJ,{})})]}),l.jsxs(qt,{children:[l.jsxs(nr,{children:[l.jsxs(rr,{className:"text-2xl flex items-center gap-2",children:[l.jsx(ZD,{className:"h-6 w-6"}),"Event Status"]}),l.jsx(yr,{children:"Manually set capacity status for events (for social proof on past events)."})]}),l.jsx(Zt,{children:l.jsx(RJ,{})})]}),l.jsxs(qt,{children:[l.jsxs(nr,{children:[l.jsxs(rr,{className:"text-2xl flex items-center gap-2",children:[l.jsx(yj,{className:"h-6 w-6"}),"Event Pricing"]}),l.jsx(yr,{children:"Configure pricing displayed on event cards."})]}),l.jsx(Zt,{children:l.jsxs("form",{onSubmit:async _=>{_.preventDefault(),f(!0);try{const{error:k}
687=await Ze.from("event_settings").update({founder_ticket_price:parseFloat(u),price_description:d}).eq("id",x==null?void 0:x.id);if(k)throw k;t.invalidateQueries({queryKey:["event-settings"]}),t.invalidateQueries({queryKey:["luma-events"]}),e({title:"Settings saved!",description:"Event pricing has been updated."})}catch(k){e({title:"Error saving settings",description:k.message,variant:"destructive"})}finally{f(!1)}},className:"space-y-4",children:[l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"founderTicketPrice",children:"Default Price (£)"}),l.jsx(pt,{id:"founderTicketPrice",type:"number",step:"0.01",min:"0",value:u,onChange:_=>c(_.target.value),placeholder:"82.00"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Used when no per-event price is set."})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Xe,{htmlFor:"priceDescription",children:"Price Description"}),l.jsx(pt,{id:"priceDescription",type:"text",value:d,onChange:_=>h(_.target.value),placeholder:"(2 course dinner inc. drinks)"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Shown after the price on event cards."})]})]}),l.jsx(Ve,{type:"submit",disabled:p,children:p?l.jsxs(l.Fragment,{children:[l.jsx(Tr,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save Event Settings"})]})})]})]})})}function DJ(){const[e]=i5(),t=e.get("resource_id"),[n,r]=y.useState(null),[s,i]=y.useState(!0);return y.useEffect(()=>{async function a(){if(!t){i(!1);return}const{data:o,error:u}=await Ze.from("resources").select("*").eq("id",t).single();!u&&o&&r(o),i(!1)}a()},[t]),l.jsx(Vr,{children:l.jsx("div",{className:"container mx-auto px-4 py-16 max-w-lg",children:l.jsxs(qt,{className:"text-center",children:[l.jsxs(nr,{className:"space-y-4",children:[l.jsx("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-primary/10",children:l.jsx(o2,{className:"h-10 w-10 text-primary"})}),l.jsx(rr,{className:"text-2xl",children:"Payment Successful!"}),l.jsx(yr,{children:"Thank you for your purchase. Your payment has been processed successfully."})]}),l.jsxs(Zt,{className:"space-y-6",children:[s?l.jsx("p",{className:"text-muted-foreground",children:"Loading resource details..."}):n?l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"rounded-lg border p-4",children:[l.jsx("p",{className:"font-medium",children:n.name}),n.description&&l.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:n.description})]}),n.document_url&&l.jsx(Ve,{asChild:!0,className:"w-full",children:l.jsxs("a",{href:n.document_url,target:"_blank",rel:"noopener noreferrer",children:[l.jsx(mf,{className:"mr-2 h-4 w-4"}),"Download Resource"]})}),n.external_link&&l.jsx(Ve,{asChild:!0,variant:"outline",className:"w-full",children:l.jsx("a",{href:n.external_link,target:"_blank",rel:"noopener noreferrer",children:"Download"})})]}):l.jsx("p",{className:"text-muted-foreground",children:"Your purchase was successful. You should receive a confirmation email shortly."}),l.jsx(Ve,{asChild:!0,variant:"ghost",className:"w-full",children:l.jsxs(Cr,{to:"/resources",children:[l.jsx(A0,{className:"mr-2 h-4 w-4"}),"Back to Resources"]})})]})]})})})}function jJ(e){return mo({queryKey:["resource",e],queryFn:async()=>{const{data:t,error:n}=await Ze.from("resources").select("*").eq("slug",e).single();if(n)throw n;return t},enabled:!!e})}function LJ(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function MJ(e){const t=e.split(`
688`),n=[],r=[];let s=!1,i="";for(const a of t){if(a.trim()==="## FAQs"||a.trim()==="## FAQ"){s=!0;continue}s?a.startsWith("### ")?(i&&n.length>0&&(n[n.length-1].answer=n[n.length-1].answer.trim()),i=a.replace("### ","").trim(),n.push({question:i,answer:"",id:`faq-${LJ(i)}`})):n.length>0&&(n[n.length-1].answer+=a+`
689`):r.push(a)}return n.length>0&&(n[n.length-1].answer=n[n.length-1].answer.trim()),{mainContent:r.join(`
690`),faqs:n}}function FJ(){const{slug:e}=OM(),t=Ws(),{data:n,isLoading:r,error:s}=jJ(e),[i,a]=y.useState(null),[o,u]=y.useState(!1),{toast:c}=od();y.useEffect(()=>{if(t.hash&&!r){const v=setTimeout(()=>{const b=document.getElementById(t.hash.slice(1));b&&b.scrollIntoView({behavior:"smooth",block:"start"})},100);return()=>clearTimeout(v)}},[t.hash,r]);const d=async()=>
690{if(!n)return;if((n.type==="paid"||n.type==="paid_service")&&n.stripe_price_id){u(!0);try{const{data:b,error:E}=await Ze.functions.invoke("create-checkout",{body:{priceId:n.stripe_price_id,resourceId:n.id,resourceName:n.name,isSubscription:n.is_subscription}});if(E)throw E;b!=null&&b.url&&window.open(b.url,"_blank")}catch(b){console.error("Checkout error:",b),c({title:"Payment Error",description:"Unable to start checkout. Please try again.",variant:"destructive"})}finally{u(!1)}return}a(n)},{mainContent:h,faqs:p}=n!=null&&n.detail_content?MJ(n.detail_content):{mainContent:"",faqs:[]},f=()=>{if(!(n!=null&&n.price))return null;const v=n.price_prefix?`${n.price_prefix} `:"",b=`£${n.price.toFixed(2)}`,E=n.is_subscription?"/mo":"",T=n.price_unit?` ${n.price_unit}`:"";return`${v}${b}${E}${T}`};if(r)return l.jsx(Vr,{children:l.jsxs("div",{className:"container py-12 max-w-3xl mx-auto",children:[l.jsx(Vn,{className:"h-8 w-48 mb-4"}),l.jsx(Vn,{className:"h-12 w-full mb-4"}),l.jsx(Vn,{className:"h-4 w-full mb-2"}),l.jsx(Vn,{className:"h-4 w-3/4 mb-8"}),l.jsx(Vn,{className:"h-64 w-full"})]})});if(s||!n)return l.jsx(Vr,{children:l.jsxs("div",{className:"container py-16 text-center",children:[l.jsx("h1",{className:"text-2xl font-bold text-foreground mb-4",children:"Resource not found"}),l.jsx(Ve,{asChild:!0,variant:"ghost",children:l.jsxs(Cr,{to:"/resources",children:[l.jsx(A0,{className:"mr-2 h-4 w-4"}),"Back to Tools & Services"]})})]})});const w=f(),m=n.type==="paid"||n.type==="paid_service",x=n.type==="service"&&n.calendly_url;return l.jsxs(Vr,{children:[l.jsx(wa,{title:`${n.name} | TableCrowd`,description:n.description||`Learn more about ${n.name} from TableCrowd.`,canonicalPath:`/resources/${n.slug}`}),l.jsxs("article",{className:"py-12 md:py-20",children:[l.jsxs("div",{className:"container max-w-3xl mx-auto",children:[l.jsx("div",{className:"mb-8",children:l.jsxs(Cr,{to:"/resources",className:"text-sm text-muted-foreground hover:text-primary flex items-center gap-1",children:[l.jsx(A0,{className:"h-3 w-3"}),"Tools & Services"]})}),l.jsxs("header",{className:"mb-10",children:[l.jsx(Pn,{variant:"secondary",className:`mb-4 ${tx[n.category]}`,children:pi[n.category]}),l.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:n.name}),n.description&&l.jsx("p",{className:"text-lg text-muted-foreground",children:n.description})]}),h&&l.jsx("div",{className:`prose prose-slate dark:prose-invert max-w-none mb-12
691              prose-headings:text-foreground prose-p:text-muted-foreground
692              prose-strong:text-foreground prose-li:text-muted-foreground
693              prose-h2:text-2xl prose-h2:font-bold prose-h2:mt-10 prose-h2:mb-4
694              prose-h3:text-xl prose-h3:font-semibold prose-h3:mt-8 prose-h3:mb-3
695              prose-ul:my-4 prose-li:my-1
696              prose-a:text-primary prose-a:no-underline hover:prose-a:underline`,children:l.jsx(mR,{rehypePlugins:[JR],children:h})}),l.jsxs("div",{className:"rounded-xl border bg-card p-8 mb-12",id:"purchase",children:[l.jsx("h2",{className:"text-xl font-bold text-foreground mb-2",children:"Next step"}),m&&w&&l.jsxs("p",{className:"text-2xl font-bold text-foreground mb-1",children:[w,!n.is_subscription&&l.jsx("span",{className:"text-sm font-normal text-muted-foreground ml-2",children:"plus VAT"})]}),l.jsx("p",{className:"text-muted-foreground mb-6",children:n.type==="paid_service"?"Purchase below and we'll be in touch to start this work.":n.type==="paid"?"Purchase below to access this.":x?"Book a short call with the team.":"Access this for free."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[l.jsx(Ve,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-accent/90",onClick:d,disabled:o,children:o?l.jsxs(l.Fragment,{children:[l.jsx(Tr,{className:"mr-2 h-4 w-4 animate-spin"}),"Processing..."]}):m?l.jsxs(l.Fragment,{children:[l.jsx(Sc,{className:"mr-2 h-4 w-4"}),"Purchase"]}):x?l.jsxs(l.Fragment,{children:[l.jsx(Oh,{className:"mr-2 h-4 w-4"}),"Book Free Call"]}):l.jsx(l.Fragment,{children:"Download now"})}),n.calendly_url&&m&&l.jsx(Ve,{variant:"outline",size:"lg",asChild:!0,children:l.jsxs("a",{href:n.calendly_url,target:"_blank",rel:"noopener noreferrer",children:[l.jsx(Us,{className:"mr-2 h-4 w-4"}),"Book a Call First"]})})]})]})]}),p.length>0&&l.jsx(Ed,{title:"Frequently Asked Questions",items:p,className:"bg-muted/30"})]}),l.jsx(DI,{resource:i,isOpen:!!i,onClose:()=>a(null)})]})}const BJ=()=>{const e=Ws();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),l.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:l.jsxs("div",{className:"text-center",children:[l.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),l.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),l.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})};function UJ(){return l.jsxs(Vr,{children:[l.jsx(wa,{title:"Privacy Policy | TableCrowd",description:"TableCrowd Limited privacy policy. How we collect, use, share, and protect your personal data.",canonicalPath:"/privacy"}),l.jsx("section",{className:"py-16 md:py-24",children:l.jsxs("div",{className:"container max-w-3xl prose prose-neutral dark:prose-invert",children:[l.jsx("h1",{children:"Privacy Policy"}),l.jsx("p",{children:'TableCrowd Limited ("we," "us," "our," or "the Company") operates the website tablecrowd.com (the "Website"). This Privacy Policy explains how we 
696collect, use, share, and protect your personal data when you visit and use our Website. This Privacy Policy is effective as of January 2026 and is governed by the UK General Data Protection Regulation (UK GDPR) and the Data Protection Act 2018.'}),l.jsx("h2",{children:"1. Who We Are"}),l.jsx("p",{children:"Data Controller: TableCrowd Limited"}),l.jsxs("p",{children:["Contact Email: ",l.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),l.jsx("p",{children:"If you have questions about this Privacy Policy or our data practices, please contact us using the details above."}),l.jsx("h2",{children:"2. What Personal Data We Collect"}),l.jsx("p",{children:"We collect personal data in the following ways:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Information you provide directly:"})," When you contact us via email, contact form, or subscription, we collect your name, email address, phone number (if provided), and any other information you submit."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Automatic information:"})," When you visit the Website, we automatically collect technical information including your IP address, browser type, device type, pages visited, time spent, and referring URL through server logs and analytics tools."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Cookies and tracking technologies:"})," We use cookies and similar tracking technologies to recognise you and enhance your experience (see Section 5 below)."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Third-party sources:"})," We may receive personal data about you from third-party partners or publicly available sources, where permitted by law."]})]}),l.jsx("h2",{children:"3. How We Use Your Personal Data"}),l.jsx("p",{children:"We use your personal data for the following purposes and on the following lawful bases under UK GDPR:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"To respond to your inquiries and communicate with you"})," – We retain your data for the duration of your relationship with us and for a reasonable period afterwards, to handle any queries or disputes that may arise."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"To provide and improve the Website and our services"})," – We retain your data for as long as necessary to fulfil our legitimate business interests, after which it is securely deleted or anonymised."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"To analyse Website usage and trends"})," – We retain your data for as long as necessary to fulfil our legitimate business interests, after which it is securely deleted or anonymised."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"To send marketing communications (if you have opted in)"})," – We retain your data until you withdraw your consent or we determine it is no longer relevant."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"To comply with legal and regulatory obligations"})," – We retain your data for as long as required to comply with our legal obligations."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"To protect against fraud and maintain security"})," – We retain your data for as long as necessary to fulfil our legitimate business interests, after which it is securely deleted or anonymised."]})]}),l.jsx("h3",{children:"Legitimate Interest Assessment"}),l.jsx("p",{children:"Where we rely on legitimate interest, we have balanced our interests against your privacy rights. You have the right to object to processing based on legitimate interest (see Section 7 below)."}),l.jsx("h2",{children:"4. Lawful Basis"}),l.jsx("p",{children:"Our processing of your personal data is lawful under one or more of the following bases in Article 6 of UK GDPR:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Consent:"})," Where you have explicitly agreed (e.g., to receive marketing emails or accept non-essential cookies)."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Contractual Performance:"})," Where processing is necessary to provide services you have requested."]})]}),l.jsx("h2",{children:"5. Cookies and Tracking Technologies"}),l.jsx("p",{children:"We use cookies and similar tracking technologies to enhance your experience. Cookies are small text files stored on your device."}),l.jsx("h3",{children:"Types of cookies we use:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Essential cookies:"})," Required for the Website to function (no consent required)."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Analytics cookies:"})," Help us understand how you use the Website (consent required under PECR)."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Marketing cookies:"})," Used to deliver targeted content and advertisements (consent required)."]})]}),l.jsx("p",{children:"You can control cookie preferences through your browser settings or our cookie consent banner. Rejecting non-essential cookies will not affect your ability to use the Website, although some features may be limited."}),l.jsx("h2",{children:"6. Data Sharing with Third Parties"}),l.jsx("p",{children:"We do not sell your personal data. However, we may share your data with third parties in the following circumstances:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Service providers:"})," We engage third-party vendors (e.g., hosting providers, analytics services, email delivery services, payment processors) who process data on our behalf under data processing agreements."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Legal requirements:"})," We may disclose data where required by law, court order, or government request."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Business transfers:"})," If we are acquired or merged, your data may be transferred as part of that transaction (you will be notified)."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"With your consent:"})," We may share data with third parties if you explicitly agree."]})]}),l.jsx("p",{children:"We ensure all third parties have appropriate safeguards in place and comply with UK GDPR."}),l.jsx("h2",{children:"7. International Data Transfers"}),l.jsx("p",{children:"We primarily store and process data within the United Kingdom. If we transfer data outside the UK, we ensure adequate safeguards are in place, such as Standard Contractual Clauses or adequacy decisions, as required by UK GDPR."}),l.jsx("h2",{children:"8. Data Retention"}),l.jsx("p",{children:"We retain your personal data only for as long as necessary to fulfill the purposes outlined above. After the retention period expires, we securely delete or anonymise your data, except where we are required to retain it by law."}),l.jsx("h2",{children:"9. Your Data Rights"}),l.jsx("p",{children:"Under UK GDPR, you have the following rights regarding your personal data:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Right of access:"}),' You may request a copy of your personal data we hold (Subject Access Request or "SAR").']}
696),l.jsxs("li",{children:[l.jsx("strong",{children:"Right to rectification:"})," You may request we correct inaccurate or incomplete data."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Right to erasure:"})," You may request we delete your data (subject to legal obligations and legitimate reasons to retain)."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Right to restrict processing:"})," You may request we limit how we use your data."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Right to data portability:"})," You may request your data in a portable, machine-readable format."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Right to object:"})," You may object to processing based on legitimate interest or direct marketing."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Right to withdraw consent:"})," If processing relies on consent, you may withdraw it at any time."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Rights relating to automated decision-making:"})," You have rights relating to decisions made solely by automated means that produce legal or similarly significant effects."]})]}),l.jsxs("p",{children:["To exercise any of these rights, contact us at ",l.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),". We will respond to your request within 30 days (or as required by law). We may ask for proof of identity before processing your request."]}),l.jsx("h2",{children:"10. Security"}),l.jsx("p",{children:"We implement appropriate technical and organisational security measures to protect your personal data against unauthorised access, alteration, disclosure, or destruction. These include encryption, secure server storage, and staff training. However, no method of transmission over the internet is 100% secure, and we cannot guarantee absolute security."}),l.jsx("h2",{children:"11. Children's Privacy"}),l.jsx("p",{children:"The Website is intended for users aged 18 and over. We do not knowingly collect personal data from individuals under the age of 18. If you believe we have received data from a person under 18, please contact us immediately and we will delete it promptly."}),l.jsx("h2",{children:"12. Right to Complain to the ICO"}),l.jsx("p",{children:"If you believe we have violated your data protection rights, you have the right to lodge a complaint with the Information Commissioner's Office (ICO), the UK's independent data protection authority:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:["Website: ",l.jsx("a",{href:"https://www.ico.org.uk",target:"_blank",rel:"noopener noreferrer",children:"www.ico.org.uk"})]}),l.jsx("li",{children:"Address: Information Commissioner's Office, Wycliffe House, Water Lane, Wilmslow, Cheshire SK9 5AF"}),l.jsx("li",{children:"Phone: 0303 123 1113"})]}),l.jsx("p",{children:"You may lodge a complaint without first contacting us, although we encourage you to reach out to resolve your concerns directly."}),l.jsx("h2",{children:"13. Changes to This Privacy Policy"}),l.jsx("p",{children:'We may update this Privacy Policy from time to time to reflect changes in our practices, technology, or legal requirements. We will notify you of material changes by posting the updated policy on the Website and updating the "Effective Date" above. Your continued use of the Website constitutes acceptance of the updated Privacy Policy.'}),l.jsx("h2",{children:"14. Contact Us"}),l.jsx("p",{children:"If you have questions, concerns, or requests regarding this Privacy Policy or our data practices, please contact us:"}),l.jsxs("p",{children:["TableCrowd Limited",l.jsx("br",{}),"Email: ",l.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),l.jsx("p",{children:"We will respond to all inquiries within 10 business days."})]})})]})}function HJ(){return l.jsxs(Vr,{children:[l.jsx(wa,{title:"Terms of Use | TableCrowd",description:"Terms and conditions for using the TableCrowd website.",canonicalPath:"/terms"}),l.jsx("section",{className:"py-16 md:py-24",children:l.jsxs("div",{className:"container max-w-3xl prose prose-neutral dark:prose-invert",children:[l.jsx("h1",{children:"Terms of Website Use"}),l.jsx("p",{children:l.jsx("strong",{children:"Please read these terms and conditions carefully before using this site."})}),l.jsx("h2",{children:"1. What's in these terms?"}),l.jsx("p",{children:"1.1. These terms tell you the rules for using our website."}),l.jsx("h2",{children:"2. Who we are and how to contact us"}),l.jsxs("p",{children:["2.1. ",l.jsx("a",{href:"https://www.tablecrowd.com",children:"www.tablecrowd.com"}),' is a site ("our site") operated by TableCrowd Limited ("We"). We are registered in England and Wales under company number 08751246. We are a limited company.']}),l.jsxs("p",{children:["2.2. To contact us, please email ",l.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),l.jsx("h2",{children:"3. By using our site you accept these terms"}),l.jsx("p",{children:"3.1. By using our site, you confirm that you accept these terms of use and that you agree to comply with them."}),l.jsx("p",{children:"3.2. If you do not agree to these terms, you must not use our site."}),l.jsx("p",{children:"3.3. We recommend that you print a copy of these terms for future reference."}),l.jsx("h2",{children:"4. There are other terms that may apply to you"}),l.jsx("p",{children:"4.1. These terms of use refer to the following additional terms, which also apply to your use of our site:"}),l.jsx("ul",{children:l.jsxs("li",{children:["(a) Our ",l.jsx(Cr,{to:"/privacy",children:"Privacy Policy"}),", which sets out the terms on which we process any personal data we collect from you, or that you provide to us, and information about the cookies on our site. By using our site, you consent to such processing and you warrant that all data provided by you is accurate."]})}),l.jsx("p",{children:"4.2. Other terms may apply to any purchases or services provided through our site."}),l.jsx("h2",{children:"5. We may make changes to these terms"}
696),l.jsx("p",{children:"5.1. We amend these terms from time to time. Every time you wish to use our site, please check these terms to ensure you understand the terms that apply at that time. These terms were most recently updated in January 2026."}),l.jsx("h2",{children:"6. We may make changes to our site"}),l.jsx("p",{children:"6.1. We may update and change our site from time to time to reflect changes to our products, our users' needs, and our business priorities. We will try to give you reasonable notice of any major changes."}),l.jsx("h2",{children:"7. We may suspend or withdraw our site"}),l.jsx("p",{children:"7.1. Our site is made available free of charge."}),l.jsx("p",{children:"7.2. We do not guarantee that our site, or any content on it, will always be available or be uninterrupted. We may suspend or withdraw or restrict the availability of all or any part of our site for business and operational reasons. We will try to give you reasonable notice of any suspension or withdrawal."}),l.jsx("p",{children:"7.3. You are also responsible for ensuring that all persons who access our site through your internet connection are aware of these terms of use and other applicable terms and conditions, and that they comply with them."}),l.jsx("h2",{children:"8. You must keep your account details safe"}),l.jsx("p",{children:"8.1. If you choose, or you are provided with, a user identification code, password or any other piece of information as part of our security procedures, you must treat such information as confidential. You must not disclose it to any third party."}),l.jsx("p",{children:"8.2. We have the right to disable any user identification code or password, whether chosen by you or allocated by us, at any time, if in our reasonable opinion you have failed to comply with any of the provisions of these terms of use."}),l.jsxs("p",{children:["8.3. If you know or suspect that anyone other than you knows your user identification code or password, you must promptly notify us at ",l.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),l.jsx("h2",{children:"9. How you may use material on our site"}),l.jsx("p",{children:"9.1. We are the owner or the licensee of all intellectual property rights in our site, and in the material published on it. Those works are protected by copyright laws and treaties around the world. All such rights are reserved."}),l.jsx("p",{children:"9.2. You may print off one copy, and may download extracts, of any page(s) from our site for your personal use and you may draw the attention of others within your organisation to content posted on our site."}),l.jsx("p",{children:"9.3. You must not modify the paper or digital copies of any materials you have printed off or downloaded in any way, and you must not use any illustrations, photographs, video or audio sequences or any graphics separately from any accompanying text."}),l.jsx("p",{children:"9.4. Our status (and that of any identified contributors) as the authors of content on our site must always be acknowledged."}),l.jsx("p",{children:"9.5. You must not use any part of the content on our site for commercial purposes without obtaining a licence to do so from us or our licensors."}),l.jsx("p",{children:"9.6. If you print off, copy or download any part of our site in breach of these terms of use, your right to use our site will cease immediately and you must, at our option, return or destroy any copies of the materials you have made."}),l.jsx("h2",{children:"10. Do not rely on information on this site"}),l.jsx("p",{children:"10.1. The content on our site is provided for general information only. It is not intended to amount to advice on which you should rely. You must obtain professional or specialist advice before taking, or refraining from, any action on the basis of the content on our site."}),l.jsx("p",{children:"10.2. Although we make reasonable efforts to update the information on our site, we make no representations, warranties or guarantees, whether express or implied, that the content on our site is accurate, complete, or up to date."}),l.jsx("h2",{children:"11. We are not responsible for websites we link to"}),l.jsx("p",{children:"11.1. Where our site contains links to other sites and resources provided by third parties, these links are provided for your information only. Such links should not be interpreted as approval by us of those linked websites or information you may obtain from them."}),l.jsx("p",{children:"11.2. We have no control over the contents of those sites or resources."}),l.jsx("h2",{children:"12. User-generated content is not approved by us"}),l.jsx("p",{children:"12.1. This website may include information and materials uploaded by other users of the site, including to bulletin boards and chat rooms. This information and these materials have not been verified or approved by us. The views expressed by other users on our site do not represent our views or values."}),l.jsxs("p",{children:["12.2. If you wish to complain about information and materials uploaded by other users please contact us at ",l.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),l.jsx("h2",{children:"13. Our responsibility for loss or damage suffered by you"}),l.jsx("p",{children:"13.1. Whether you are a consumer or a business user:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"(a) We do not exclude or limit in any way our liability to you where it would be unlawful to do so. This includes liability for death or personal injury caused by our negligence or the negligence of our employees, agents, or subcontractors and for fraud or fraudulent misrepresentation."}),l.jsx("li",{children:"(b) Different limitations and exclusions of liability may apply to liability arising as a result of the supply of any products to you, which will be set out in any other applicable terms."})]}),l.jsx("p",{children:"13.2. If you are a business user:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"(a) We exclude all implied conditions, warranties, representations, or other terms that may apply to our site or any content on it."}),l.jsx("li",{children:"(b) We will not be liable to you for any loss or damage, whether in contract, tort (including negligence), breach of statutory duty, or otherwise, even if foreseeable, arising under or in connection with: (i) use of, or inability to use, our site; or (ii) use of or reliance on any content displayed on our site."}),l.jsx("li",{children:"(c) In particular, we will not be liable for: (i) loss of profits, sales, business, or revenue; (ii) business interruption; (iii) loss of anticipated savings; (iv) loss of business opportunity, goodwill, or reputation; or (v) any indirect or consequential loss or damage."})]}),l.jsx("p",{children:"13.3. If you are a consumer user:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"(a) Please note that we only provide our site for domestic and private use. You agree not to use our site for any commercial or business purposes, and we have no liability to you for any loss of profit, loss of business, business interruption, or loss of business opportunity."}),l.jsx("li",{children:"(b) If defective digital content that we have supplied damages a device or digital content belonging to you and this is caused by our failure to use reasonable care and skill, we will either repair the damage or pay you compensation. However, we will not be liable for damage that you could have avoided by following our advice to apply an update offered to you free of charge or for damage that was caused by you failing to correctly follow installation instructions or to have in place the minimum system requirements advised by us."})]}),l.jsx("h2",{children:"14. Uploading content to our site"}),l.jsx("p",{children:"14.1. Whenever you make use of a feature that allows you to upload content to our site, or to make contact with other users of our site, you must comply with reasonable content standards."}),l.jsx("p",{children:"14.2. You warrant that any such contribution does comply with those standards, and you will be liable to us and indemnify us for any breach of that warranty."}),l.jsx("p",{children:"14.3. Any content you upload to our site will be considered non-confidential and n
696on-proprietary. You retain all of your ownership rights in your content, but you are required to grant us a limited licence to use, store and copy that content and to distribute and make it available to third parties."}),l.jsx("p",{children:"14.4. We also have the right to disclose your identity to any third party who is claiming that any content posted or uploaded by you to our site constitutes a violation of their intellectual property rights, or of their right to privacy."}),l.jsx("p",{children:"14.5. We have the right to remove any posting you make on our site if, in our opinion, your post does not comply with reasonable content standards."}),l.jsx("p",{children:"14.6. You are solely responsible for securing and backing up your content."}),l.jsx("h2",{children:"15. Rights you are giving us to use material you upload"}),l.jsx("p",{children:"15.1. When you upload or post content to our site, you grant us the following rights to use that content:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"(a) a worldwide, non-exclusive, royalty-free, transferable licence to use, reproduce, distribute, prepare derivative works of, display, and perform that user-generated content in connection with the service provided by the website and across different media including to promote the site or the service, to expire when the user deletes content from the site;"}),l.jsx("li",{children:"(b) a worldwide, non-exclusive, royalty-free, transferable licence for other users, partners, or advertisers to use the content for their purposes, to expire when the user deletes content from the site."})]}),l.jsx("h2",{children:"16. We are not responsible for viruses and you must not introduce them"}),l.jsx("p",{children:"16.1. We do not guarantee that our site will be secure or free from bugs or viruses."}),l.jsx("p",{children:"16.2. You are responsible for configuring your information technology, computer programmes and platform to access our site. You should use your own virus protection software."}),l.jsx("p",{children:"16.3. You must not misuse our site by knowingly introducing viruses, trojans, worms, logic bombs or other material that is malicious or technologically harmful. You must not attempt to gain unauthorised access to our site, the server on which our site is stored or any server, computer or database connected to our site. You must not attack our site via a denial-of-service attack or a distributed denial-of-service attack. By breaching this provision, you would commit a criminal offence under the Computer Misuse Act 1990. We will report any such breach to the relevant law enforcement authorities, and we will co-operate with those authorities by disclosing your identity to them. In the event of such a breach, your right to use our site will cease immediately."}),l.jsx("h2",{children:"17. Rules about linking to our site"}),l.jsx("p",{children:"17.1. You may link to our home page, provided you do so in a way that is fair and legal and does not damage our reputation or take advantage of it."}),l.jsx("p",{children:"17.2. You must not establish a link in such a way as to suggest any form of association, approval or endorsement on our part where none exists."}),l.jsx("p",{children:"17.3. You must not establish a link to our site in any website that is not owned by you."}),l.jsx("p",{children:"17.4. Our site must not be framed on any other site, nor may you create a link to any part of our site other than the home page."}),l.jsx("p",{children:"17.5. We reserve the right to withdraw linking permission without notice."}),l.jsx("p",{children:"17.6. The website in which you are linking must comply in all respects with reasonable content standards."}),l.jsxs("p",{children:["17.7. If you wish to link to or make any use of content on our site other than that set out above, please contact ",l.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),l.jsx("h2",{children:"18. Which country's laws apply to any disputes?"}),l.jsx("p",{children:"18.1. If you are a consumer, please note that these terms of use, their subject matter, and their formation, are governed by English law. You and we both agree that the courts of England and Wales will have exclusive jurisdiction except that if you are a resident of Northern Ireland, you may also bring proceedings in Northern Ireland, and if you are resident of Scotland, you may also bring proceedings in Scotland."}),l.jsx("p",{children:"18.2. If you are a business, these terms of use, their subject matter, and their formation (and any non-contractual disputes or claims) are governed by English law. We both agree to the exclusive jurisdiction of the courts of England and Wales."})]})})]})}function $J(){const{pathname:e}=Ws();return y.useEffect(()=>{window.scrollTo(0,0),typeof window.gtag=="function"&&window.gtag("event","page_view",{page_path:e,page_location:window.location.href})},[e]),null}const zJ=new H6,VJ=()=>l.jsx(q6,{client:zJ,children:l.jsx(T6,{children:l.jsxs(a5,{children:[l.jsx(oL,{}),l.jsx(BL,{}),l.jsx(Z9,{}),l.jsxs(t5,{children:[l.jsx($J,{}),l.jsxs(YM,{children:[l.jsx(Or,{path:"/",element:l.jsx(NY,{})}),l.jsx(Or,{path:"/events",element:l.jsx(sG,{})}),l.jsx(Or,{path:"/resources",element:l.jsx(EG,{})}),l.jsx(Or,{path:"/resources/:slug",element:l.jsx(FJ,{})}),l.jsx(Or,{path:"/about",element:l.jsx(MG,{})}),l.jsx(Or,{path:"/contact",element:l.jsx(BG,{})}),l.jsx(Or,{path:"/admin",element:l.jsx(PJ,{})}),l.jsx(Or,{path:"/payment-success",element:l.jsx(DJ,{})}),l.jsx(Or,{path:"/privacy",element:l.jsx(UJ,{})}),l.jsx(Or,{path:"/terms",element:l.jsx(HJ,{})}),l.jsx(Or,{path:"*",element:l.jsx(BJ,{})})]})]})]})})});NC(document.getElementById("root")).render(l.jsx(VJ,{}));

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.