PageSourceSearch

https://corbanenergygroup.com/assets/index-BJvtj6sd.js

js corbanenergygroup.com collected 2026-10-07 21:08:54 UTC 1,064,248 bytes, 352 lines download raw bytes

vendor: 4,305 bytes, lines 1-9
1var BT=Object.defineProperty;var Wv=e=>{throw TypeError(e)};var GT=(e,t,n)=>t in e?BT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Yr=(e,t,n)=>GT(e,typeof t!="symbol"?t+"":t,n),oh=(e,t,n)=>t.has(e)||Wv("Cannot "+n);var P=(e,t,n)=>(oh(e,t,"read from private field"),n?n.call(e):t.get(e)),$e=(e,t,n)=>t.has(e)?Wv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),be=(e,t,n,r)=>(oh(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Wt=(e,t,n)=>(oh(e,t,"access private method"),n);var lu=(e,t,n,r)=>({set _(s){be(e,t,s,n)},get _(){return P(e,t,r)}});function HT(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 o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).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)}})();function Lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jw={exports:{}},lf={},kw={exports:{}},Ce={};/**
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 Fc=Symbol.for("react.element"),qT=Symbol.for("react.portal"),VT=Symbol.for("react.fragment"),KT=Symbol.for("react.strict_mode"),YT=Symbol.for("react.profiler"),QT=Symbol.for("react.provider"),JT=Symbol.for("react.context"),ZT=Symbol.for("react.forward_ref"),XT=Symbol.for("react.suspense"),eE=Symbol.for("react.memo"),tE=Symbol.for("react.lazy"),$v=Symbol.iterator;function nE(e){return e===null||typeof e!="object"?null:(e=$v&&e[$v]||e["@@iterator"],typeof e=="function"?e:null)}var _w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sw=Object.assign,Nw={};function Ho(e,t,n){this.props=e,this.context=t,this.refs=Nw,this.updater=n||_w}Ho.prototype.isReactComponent={};Ho.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")};Ho.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cw(){}Cw.prototype=Ho.prototype;function kg(e,t,n){this.props=e,this.context=t,this.refs=Nw,this.updater=n||_w}var _g=kg.prototype=new Cw;_g.constructor=kg;Sw(_g,Ho.prototype);_g.isPureReactComponent=!0;var zv=Array.isArray,Tw=Object.prototype.hasOwnProperty,Sg={current:null},Ew={key:!0,ref:!0,__self:!0,__source:!0};function Aw(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Tw.call(t,r)&&!Ew.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:Fc,type:e,key:i,ref:o,props:s,_owner:Sg.current}}function rE(e,t){return{$$typeof:Fc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ng(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fc}function sE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Uv=/\/+/g;function lh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sE(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function Bu(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Fc:case qT:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+lh(o,0):r,zv(s)?(n="",e!=null&&(n=e.replace(Uv,"$&/")+"/"),Bu(s,t,n,"",function(u){return u})):s!=null&&(Ng(s)&&(s=rE(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Uv,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",zv(e))for(var l=0;l<e.length;l++){i=e[l];var c=r+lh(i,l);o+=Bu(i,t,n,c,s)}else if(c=nE(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=r+lh(i,l++),o+=Bu(i,t,n,c,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 o}function cu(e,t,n){if(e==null)return e;var r=[],s=0;return Bu(e,r,"","",function(i){return t.call(n,i,s++)}),r}function aE(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 tn={current:null},Gu={transition:null},iE={ReactCurrentDispatcher:tn,ReactCurrentBatchConfig:Gu,ReactCurrentOwner:Sg};function Pw(){throw Error("act(...) is not supported in production builds of React.")}Ce.Children={map:cu,forEach:function(e,t,n){cu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return cu(e,function(){t++}),t},toArray:function(e){return cu(e,function(t){return t})||[]},only:function(e){if(!Ng(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ce.Component=Ho;Ce.Fragment=VT;Ce.Profiler=YT;Ce.PureComponent=kg;Ce.StrictMode=KT;Ce.Suspense=XT;Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iE;Ce.act=Pw;Ce.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=Sw({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Sg.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Tw.call(t,c)&&!Ew.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Fc,type:e.type,key:s,ref:i,props:r,_owner:o}};Ce.createContext=function(e){return e={$$typeof:JT,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:QT,_context:e},e.Consumer=e};Ce.createElement=Aw;Ce.createFactory=function(e){var t=Aw.bind(null,e);return t.type=e,t};Ce.createRef=function(){return{current:null}};Ce.forwardRef=function(e){return{$$typeof:ZT,render:e}};Ce.isValidElement=Ng;Ce.lazy=function(e){return{$$typeof:tE,_payload:{_status:-1,_result:e},_init:aE}};Ce.memo=function(e,t){return{$$typeof:eE,type:e,compare:t===void 0?null:t}};Ce.startTransition=function(e){var t=Gu.transition;Gu.transition={};try{e()}finally{Gu.transition=t}};Ce.unstable_act=Pw;Ce.useCallback=function(e,t){return tn.current.useCallback(e,t)};Ce.useContext=function(e){return tn.current.useContext(e)};Ce.useDebugValue=function(){};Ce.useDeferredValue=function(e){return tn.current.useDeferredValue(e)};Ce.useEffect=function(e,t){return tn.current.useEffect(e,t)};Ce.useId=function(){return tn.current.useId()};Ce.useImperativeHandle=function(e,t,n){return tn.current.useImperativeHandle(e,t,n)};Ce.useInsertionEffect=function(e,t){return tn.current.useInsertionEffect(e,t)};Ce.useLayoutEffect=function(e,t){return tn.current.useLayoutEffect(e,t)};Ce.useMemo=function(e,t){return tn.current.useMemo(e,t)};Ce.useReducer=function(e,t,n){return tn.current.useReducer(e,t,n)};Ce.useRef=function(e){return tn.current.useRef(e)};Ce.useState=function(e){return tn.current.useState(e)};Ce.useSyncExternalStore=function(e,t,n){return tn.current.useSyncExternalStore(e,t,n)};Ce.useTransition=function(){return tn.current.useTransition()};Ce.version="18.3.1";kw.exports=Ce;var m=kw.exports;const z=Lc(m),Cg=HT({__proto__:null,default:z},[m]);/**
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 oE=m,lE=Symbol.for("react.element"),cE=Symbol.for("react.fragment"),uE=Object.prototype.hasOwnProperty,dE=oE.__SECRET_INT
vendor: 11,415 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fE={key:!0,ref:!0,__self:!0,__source:!0};function Rw(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)uE.call(t,r)&&!fE.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:lE,type:e,key:i,ref:o,props:s,_owner:dE.current}}lf.Fragment=cE;lf.jsx=Rw;lf.jsxs=Rw;jw.exports=lf;var a=jw.exports,Ow={exports:{}},Pn={},Iw={exports:{}},Dw={};/**
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(S,T){var M=S.length;S.push(T);e:for(;0<M;){var Z=M-1>>>1,$=S[Z];if(0<s($,T))S[Z]=T,S[M]=$,M=Z;else break e}}function n(S){return S.length===0?null:S[0]}function r(S){if(S.length===0)return null;var T=S[0],M=S.pop();if(M!==T){S[0]=M;e:for(var Z=0,$=S.length,ie=$>>>1;Z<ie;){var le=2*(Z+1)-1,We=S[le],Be=le+1,G=S[Be];if(0>s(We,M))Be<$&&0>s(G,We)?(S[Z]=G,S[Be]=M,Z=Be):(S[Z]=We,S[le]=M,Z=le);else if(Be<$&&0>s(G,M))S[Z]=G,S[Be]=M,Z=Be;else break e}}return T}function s(S,T){var M=S.sortIndex-T.sortIndex;return M!==0?M:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,f=null,h=3,p=!1,w=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(S){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=S)r(u),T.sortIndex=T.expirationTime,t(c,T);else break;T=n(u)}}function j(S){if(y=!1,g(S),!w)if(n(c)!==null)w=!0,H(_);else{var T=n(u);T!==null&&O(j,T.startTime-S)}}function _(S,T){w=!1,y&&(y=!1,x(A),A=-1),p=!0;var M=h;try{for(g(T),f=n(c);f!==null&&(!(f.expirationTime>T)||S&&!V());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,h=f.priorityLevel;var $=Z(f.expirationTime<=T);T=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(c)&&r(c),g(T)}else r(c);f=n(c)}if(f!==null)var ie=!0;else{var le=n(u);le!==null&&O(j,le.startTime-T),ie=!1}return ie}finally{f=null,h=M,p=!1}}var C=!1,N=null,A=-1,R=5,I=-1;function V(){return!(e.unstable_now()-I<R)}function D(){if(N!==null){var S=e.unstable_now();I=S;var T=!0;try{T=N(!0,S)}finally{T?Q():(C=!1,N=null)}}else C=!1}var Q;if(typeof v=="function")Q=function(){v(D)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,ae=F.port2;F.port1.onmessage=D,Q=function(){ae.postMessage(null)}}else Q=function(){b(D,0)};function H(S){N=S,C||(C=!0,Q())}function O(S,T){A=b(function(){S(e.unstable_now())},T)}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(S){S.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,H(_))},e.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<S?Math.floor(1e3/S):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(S){switch(h){case 1:case 2:case 3:var T=3;break;default:T=h}var M=h;h=T;try{return S()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var M=h;h=S;try{return T()}finally{h=M}},e.unstable_scheduleCallback=function(S,T,M){var Z=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?Z+M:Z):M=Z,S){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=M+$,S={id:d++,callback:T,priorityLevel:S,startTime:M,expirationTime:$,sortIndex:-1},M>Z?(S.sortIndex=M,t(u,S),n(c)===null&&S===n(u)&&(y?(x(A),A=-1):y=!0,O(j,M-Z))):(S.sortIndex=$,t(c,S),w||p||(w=!0,H(_))),S},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(S){var T=h;return function(){var M=h;h=T;try{return S.apply(this,arguments)}finally{h=M}}}})(Dw);Iw.exports=Dw;var hE=Iw.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 mE=m,Tn=hE;function W(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 Mw=new Set,Ql={};function li(e,t){Co(e,t),Co(e+"Capture",t)}function Co(e,t){for(Ql[e]=t,e=0;e<t.length;e++)Mw.add(t[e])}var is=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_m=Object.prototype.hasOwnProperty,pE=/^[: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]*$/,Bv={},Gv={};function gE(e){return _m.call(Gv,e)?!0:_m.call(Bv,e)?!1:pE.test(e)?Gv[e]=!0:(Bv[e]=!0,!1)}function yE(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 vE(e,t,n,r){if(t===null||typeof t>"u"||yE(e,t,n,r))return!0;if(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 nn(e,t,n,r,s,i,o){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=o}var Mt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Mt[e]=new nn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Mt[t]=new nn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Mt[e]=new nn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Mt[e]=new nn(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){Mt[e]=new nn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Mt[e]=new nn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Mt[e]=new nn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Mt[e]=new nn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Mt[e]=new nn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Tg=/[\-:]([a-z])/g;function Eg(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(Tg,Eg);Mt[t]=new nn(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(Tg,Eg);Mt[t]=new nn(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(Tg,Eg);Mt[t]=new nn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Mt[e]=new nn(e,1,!1,e.toLowerCase(),null,!1,!1)});Mt.xlinkHref=new nn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Mt[e]=new nn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ag(e,t,n,r){var s=Mt.hasOwnProperty(t)?Mt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(vE(t,n,s,r)&&(n=null),r||s===null?gE(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 ms=mE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,uu=Symbol.for("react.element"),Hi=Symbol.for("react.portal"),qi=Symbol.for("react.fragment"),Pg=Symbol.for("react.strict_mode"),Sm=Symbol.for("react.profiler"),Lw=Symbol.for("react.provider"),Fw=Symbol.for("react.context"),Rg=Symbol.for("react.forward_ref"),Nm=Symbol.for("react.suspense"),Cm=Symbol.for("react.suspense_list"),Og=Symbol.for("react.memo"),As=Symbol.for("react.lazy"),Ww=Symbol.for("react.offscreen"),Hv=Symbol.iterator;function dl(e){return e===null||typeof e!="object"?null:(e=Hv&&e[Hv]||e["@@iterator"],typeof e=="function"?e:null)}var ct=Object.assign,ch;function Cl(e){if(ch===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ch=t&&t[1]||""}return`
34`+ch+e}var uh=!1;function dh(e,t){if(!e||uh)return"";uh=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 5,497 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),i=r.stack.split(`
36`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var c=`
37`+s[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{uh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cl(e):""}function xE(e){switch(e.tag){case 5:return Cl(e.type);case 16:return Cl("Lazy");case 13:return Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 2:case 15:return e=dh(e.type,!1),e;case 11:return e=dh(e.type.render,!1),e;case 1:return e=dh(e.type,!0),e;default:return""}}function Tm(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 qi:return"Fragment";case Hi:return"Portal";case Sm:return"Profiler";case Pg:return"StrictMode";case Nm:return"Suspense";case Cm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fw:return(e.displayName||"Context")+".Consumer";case Lw:return(e._context.displayName||"Context")+".Provider";case Rg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Og:return t=e.displayName||null,t!==null?t:Tm(e.type)||"Memo";case As:t=e._payload,e=e._init;try{return Tm(e(t))}catch{}}return null}function bE(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 Tm(t);case 8:return t===Pg?"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 ra(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $w(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wE(e){var t=$w(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(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function du(e){e._valueTracker||(e._valueTracker=wE(e))}function zw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$w(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ud(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 Em(e,t){var n=t.checked;return ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ra(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 Uw(e,t){t=t.checked,t!=null&&Ag(e,"checked",t,!1)}function Am(e,t){Uw(e,t);var n=ra(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")?Pm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pm(e,t.type,ra(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vv(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 Pm(e,t,n){(t!=="number"||ud(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Tl=Array.isArray;function so(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=""+ra(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 Rm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return ct({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kv(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(W(92));
vendor: 8,593 bytes, line 37
37if(Tl(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ra(n)}}function Bw(e,t){var n=ra(t.value),r=ra(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 Yv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Gw(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 Om(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Gw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fu,Hw=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(fu=fu||document.createElement("div"),fu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ml={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},jE=["Webkit","ms","Moz","O"];Object.keys(Ml).forEach(function(e){jE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ml[t]=Ml[e]})});function qw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ml.hasOwnProperty(e)&&Ml[e]?(""+t).trim():t+"px"}function Vw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=qw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var kE=ct({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 Im(e,t){if(t){if(kE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function Dm(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 Mm=null;function Ig(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lm=null,ao=null,io=null;function Qv(e){if(e=zc(e)){if(typeof Lm!="function")throw Error(W(280));var t=e.stateNode;t&&(t=hf(t),Lm(e.stateNode,e.type,t))}}function Kw(e){ao?io?io.push(e):io=[e]:ao=e}function Yw(){if(ao){var e=ao,t=io;if(io=ao=null,Qv(e),t)for(e=0;e<t.length;e++)Qv(t[e])}}function Qw(e,t){return e(t)}function Jw(){}var fh=!1;function Zw(e,t,n){if(fh)return e(t,n);fh=!0;try{return Qw(e,t,n)}finally{fh=!1,(ao!==null||io!==null)&&(Jw(),Yw())}}function Zl(e,t){var n=e.stateNode;if(n===null)return null;var r=hf(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(W(231,t,typeof n));return n}var Fm=!1;if(is)try{var fl={};Object.defineProperty(fl,"passive",{get:function(){Fm=!0}}),window.addEventListener("test",fl,fl),window.removeEventListener("test",fl,fl)}catch{Fm=!1}function _E(e,t,n,r,s,i,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ll=!1,dd=null,fd=!1,Wm=null,SE={onError:function(e){Ll=!0,dd=e}};function NE(e,t,n,r,s,i,o,l,c){Ll=!1,dd=null,_E.apply(SE,arguments)}function CE(e,t,n,r,s,i,o,l,c){if(NE.apply(this,arguments),Ll){if(Ll){var u=dd;Ll=!1,dd=null}else throw Error(W(198));fd||(fd=!0,Wm=u)}}function ci(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 Xw(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 Jv(e){if(ci(e)!==e)throw Error(W(188))}function TE(e){var t=e.alternate;if(!t){if(t=ci(e),t===null)throw Error(W(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 Jv(s),e;if(i===r)return Jv(s),t;i=i.sibling}throw Error(W(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o)throw Error(W(189))}}if(n.alternate!==r)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?e:t}function e1(e){return e=TE(e),e!==null?t1(e):null}function t1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=t1(e);if(t!==null)return t;e=e.sibling}return null}var n1=Tn.unstable_scheduleCallback,Zv=Tn.unstable_cancelCallback,EE=Tn.unstable_shouldYield,AE=Tn.unstable_requestPaint,gt=Tn.unstable_now,PE=Tn.unstable_getCurrentPriorityLevel,Dg=Tn.unstable_ImmediatePriority,r1=Tn.unstable_UserBlockingPriority,hd=Tn.unstable_NormalPriority,RE=Tn.unstable_LowPriority,s1=Tn.unstable_IdlePriority,cf=null,Mr=null;function OE(e){if(Mr&&typeof Mr.onCommitFiberRoot=="function")try{Mr.onCommitFiberRoot(cf,e,void 0,(e.current.flags&128)===128)}catch{}}var hr=Math.clz32?Math.clz32:ME,IE=Math.log,DE=Math.LN2;function ME(e){return e>>>=0,e===0?32:31-(IE(e)/DE|0)|0}var hu=64,mu=4194304;function El(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 md(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=El(l):(i&=o,i!==0&&(r=El(i)))}else o=n&~s,o!==0?r=El(o):i!==0&&(r=El(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-hr(t),s=1<<n,r|=e[n],t&=~s;return r}function LE(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 FE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-hr(i),l=1<<o,c=s[o];c===-1?(!(l&n)||l&r)&&(s[o]=LE(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function $m(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function a1(){var e=hu;return hu<<=1,!(hu&4194240)&&(hu=64),e}function hh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function Wc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-hr(t),e[t]=n}function WE(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-hr(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Mg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-hr(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Ke=0;function i1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var o1,Lg,l1,c1,u1,zm=!1,pu=[],Vs=null,Ks=null,Ys=null,Xl=new Map,ec=new Map,Is=[],$E="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Xv(e,t){switch(e){case"focusin":case"focusout":Vs=null;break;case"dragenter":case"dragleave":Ks=null;break;case"mouseover":case"mouseout":Ys=null;break;case"pointerover":case"pointerout":Xl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ec.delete(t.pointerId)}}function hl(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=zc(t),t!==null&&Lg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function zE(e,t,n,r,s){switch(t){case"focusin":return Vs=hl(Vs,e,t,n,r,s),!0;case"dragenter":return Ks=hl(Ks,e,t,n,r,s),!0;case"mouseover":return Ys=hl(Ys,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Xl.set(i,hl(Xl.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ec.set(i,hl(ec.get(i)||null,e,t,n,r,s)),!0}return!1}function d1(e){var t=Fa(e.target);if(t!==null){var n=ci(t);if(n!==null){if(t=n.tag,t===13){if(t=Xw(n),t!==null){e.blockedOn=t,u1(e.priority,function(){l1(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 Hu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Um(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mm=r,n.target.dispatchEvent(r),Mm=null}else return t=zc(n),t!==null&&Lg(t),e.blockedOn=n,!1;t.shift()}return!0}function ex(e,t,n){Hu(e)&&n.delete(t)}function UE(){zm=!1,Vs!==null&&Hu(Vs)&&(Vs=null),Ks!==null&&Hu(Ks)&&(Ks=null),Ys!==null&&Hu(Ys)&&(Ys=null),Xl.forEach(ex),ec.forEach(ex)}function ml(e,t){e.blockedOn===t&&(e.blockedOn=null,zm||(zm=!0,Tn.unstable_scheduleCallback(Tn.unstable_NormalPriority,UE)))}function tc(e){function t(s){return ml(s,e)}if(0<pu.length){ml(pu[0],e);for(var n=1;n<pu.length;n++){var r=pu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Vs!==null&&ml(Vs,e),Ks!==null&&ml(Ks,e),Ys!==null&&ml(Ys,e),Xl.forEach(t),ec.forEach(t),n=0;n<Is.length;n++)r=Is[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Is.length&&(n=Is[0],n.blockedOn===null);)d1(n),n.blockedOn===null&&Is.shift()}var oo=ms.ReactCurrentBatchConfig,pd=!0;function BE(e,t,n,r){var s=Ke,i=oo.transition;oo.transition=null;try{Ke=1,Fg(e,t,n,r)}finally{Ke=s,oo.transition=i}}function GE(e,t,n,r){var s=Ke,i=oo.transition;oo.transition=null;try{Ke=4,Fg(e,t,n,r)}finally{Ke=s,oo.transition=i}}function Fg(e,t,n,r){if(pd){var s=Um(e,t,n,r);if(s===null)kh(e,t,r,gd,n),Xv(e,r);else if(zE(s,e,t,n,r))r.stopPropagation();else if(Xv(e,r),t&4&&-1<$E.indexOf(e)){for(;s!==null;){var i=zc(s);if(i!==null&&o1(i),i=Um(e,t,n,r),i===null&&kh(e,t,r,gd,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else kh(e,t,r,null,n)}}var gd=null;function Um(e,t,n,r){if(gd=null,e=Ig(r),e=Fa(e),e!==null)if(t=ci(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Xw(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 gd=e,null}
vendor: 9,127 bytes, line 37
37function f1(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(PE()){case Dg:return 1;case r1:return 4;case hd:case RE:return 16;case s1:return 536870912;default:return 16}default:return 16}}var Bs=null,Wg=null,qu=null;function h1(){if(qu)return qu;var e,t=Wg,n=t.length,r,s="value"in Bs?Bs.value:Bs.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return qu=s.slice(e,1<r?1-r:void 0)}function Vu(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 gu(){return!0}function tx(){return!1}function Rn(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?gu:tx,this.isPropagationStopped=tx,this}return ct(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=gu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gu)},persist:function(){},isPersistent:gu}),t}var qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$g=Rn(qo),$c=ct({},qo,{view:0,detail:0}),HE=Rn($c),mh,ph,pl,uf=ct({},$c,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zg,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!==pl&&(pl&&e.type==="mousemove"?(mh=e.screenX-pl.screenX,ph=e.screenY-pl.screenY):ph=mh=0,pl=e),mh)},movementY:function(e){return"movementY"in e?e.movementY:ph}}),nx=Rn(uf),qE=ct({},uf,{dataTransfer:0}),VE=Rn(qE),KE=ct({},$c,{relatedTarget:0}),gh=Rn(KE),YE=ct({},qo,{animationName:0,elapsedTime:0,pseudoElement:0}),QE=Rn(YE),JE=ct({},qo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ZE=Rn(JE),XE=ct({},qo,{data:0}),rx=Rn(XE),e2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t2={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"},n2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=n2[e])?!!t[e]:!1}function zg(){return r2}var s2=ct({},$c,{key:function(e){if(e.key){var t=e2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?t2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zg,charCode:function(e){return e.type==="keypress"?Vu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a2=Rn(s2),i2=ct({},uf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sx=Rn(i2),o2=ct({},$c,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zg}),l2=Rn(o2),c2=ct({},qo,{propertyName:0,elapsedTime:0,pseudoElement:0}),u2=Rn(c2),d2=ct({},uf,{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}),f2=Rn(d2),h2=[9,13,27,32],Ug=is&&"CompositionEvent"in window,Fl=null;is&&"documentMode"in document&&(Fl=document.documentMode);var m2=is&&"TextEvent"in window&&!Fl,m1=is&&(!Ug||Fl&&8<Fl&&11>=Fl),ax=" ",ix=!1;function p1(e,t){switch(e){case"keyup":return h2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vi=!1;function p2(e,t){switch(e){case"compositionend":return g1(t);case"keypress":return t.which!==32?null:(ix=!0,ax);case"textInput":return e=t.data,e===ax&&ix?null:e;default:return null}}function g2(e,t){if(Vi)return e==="compositionend"||!Ug&&p1(e,t)?(e=h1(),qu=Wg=Bs=null,Vi=!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 m1&&t.locale!=="ko"?null:t.data;default:return null}}var y2={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 ox(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!y2[e.type]:t==="textarea"}function y1(e,t,n,r){Kw(r),t=yd(t,"onChange"),0<t.length&&(n=new $g("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wl=null,nc=null;function v2(e){T1(e,0)}function df(e){var t=Qi(e);if(zw(t))return e}function x2(e,t){if(e==="change")return t}var v1=!1;if(is){var yh;if(is){var vh="oninput"in document;if(!vh){var lx=document.createElement("div");lx.setAttribute("oninput","return;"),vh=typeof lx.oninput=="function"}yh=vh}else yh=!1;v1=yh&&(!document.documentMode||9<document.documentMode)}function cx(){Wl&&(Wl.detachEvent("onpropertychange",x1),nc=Wl=null)}function x1(e){if(e.propertyName==="value"&&df(nc)){var t=[];y1(t,nc,e,Ig(e)),Zw(v2,t)}}function b2(e,t,n){e==="focusin"?(cx(),Wl=t,nc=n,Wl.attachEvent("onpropertychange",x1)):e==="focusout"&&cx()}function w2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return df(nc)}function j2(e,t){if(e==="click")return df(t)}function k2(e,t){if(e==="input"||e==="change")return df(t)}function _2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pr=typeof Object.is=="function"?Object.is:_2;function rc(e,t){if(pr(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(!_m.call(t,s)||!pr(e[s],t[s]))return!1}return!0}function ux(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dx(e,t){var n=ux(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=ux(n)}}function b1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?b1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function w1(){for(var e=window,t=ud();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ud(e.document)}return t}function Bg(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 S2(e){var t=w1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&b1(n.ownerDocument.documentElement,n)){if(r!==null&&Bg(n)){if
vendor: 4,424 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=dx(n,i);var o=dx(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var N2=is&&"documentMode"in document&&11>=document.documentMode,Ki=null,Bm=null,$l=null,Gm=!1;function fx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gm||Ki==null||Ki!==ud(r)||(r=Ki,"selectionStart"in r&&Bg(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}),$l&&rc($l,r)||($l=r,r=yd(Bm,"onSelect"),0<r.length&&(t=new $g("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ki)))}function yu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yi={animationend:yu("Animation","AnimationEnd"),animationiteration:yu("Animation","AnimationIteration"),animationstart:yu("Animation","AnimationStart"),transitionend:yu("Transition","TransitionEnd")},xh={},j1={};is&&(j1=document.createElement("div").style,"AnimationEvent"in window||(delete Yi.animationend.animation,delete Yi.animationiteration.animation,delete Yi.animationstart.animation),"TransitionEvent"in window||delete Yi.transitionend.transition);function ff(e){if(xh[e])return xh[e];if(!Yi[e])return e;var t=Yi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in j1)return xh[e]=t[n];return e}var k1=ff("animationend"),_1=ff("animationiteration"),S1=ff("animationstart"),N1=ff("transitionend"),C1=new Map,hx="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 fa(e,t){C1.set(e,t),li(t,[e])}for(var bh=0;bh<hx.length;bh++){var wh=hx[bh],C2=wh.toLowerCase(),T2=wh[0].toUpperCase()+wh.slice(1);fa(C2,"on"+T2)}fa(k1,"onAnimationEnd");fa(_1,"onAnimationIteration");fa(S1,"onAnimationStart");fa("dblclick","onDoubleClick");fa("focusin","onFocus");fa("focusout","onBlur");fa(N1,"onTransitionEnd");Co("onMouseEnter",["mouseout","mouseover"]);Co("onMouseLeave",["mouseout","mouseover"]);Co("onPointerEnter",["pointerout","pointerover"]);Co("onPointerLeave",["pointerout","pointerover"]);li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));li("onBeforeInput",["compositionend","keypress","textInput","paste"]);li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Al="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(" "),E2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Al));function mx(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,CE(r,t,void 0,e),e.currentTarget=null}
vendor: 4,378 bytes, line 37
37function T1(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 o=r.length-1;0<=o;o--){var l=r[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;mx(s,l,u),i=c}else for(o=0;o<r.length;o++){if(l=r[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;mx(s,l,u),i=c}}}if(fd)throw e=Wm,fd=!1,Wm=null,e}function tt(e,t){var n=t[Ym];n===void 0&&(n=t[Ym]=new Set);var r=e+"__bubble";n.has(r)||(E1(t,e,2,!1),n.add(r))}function jh(e,t,n){var r=0;t&&(r|=4),E1(n,e,r,t)}var vu="_reactListening"+Math.random().toString(36).slice(2);function sc(e){if(!e[vu]){e[vu]=!0,Mw.forEach(function(n){n!=="selectionchange"&&(E2.has(n)||jh(n,!1,e),jh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vu]||(t[vu]=!0,jh("selectionchange",!1,t))}}function E1(e,t,n,r){switch(f1(t)){case 1:var s=BE;break;case 4:s=GE;break;default:s=Fg}n=s.bind(null,t,n,e),s=void 0,!Fm||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)}function kh(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;o=o.return}for(;l!==null;){if(o=Fa(l),o===null)return;if(c=o.tag,c===5||c===6){r=i=o;continue e}l=l.parentNode}}r=r.return}Zw(function(){var u=i,d=Ig(n),f=[];e:{var h=C1.get(e);if(h!==void 0){var p=$g,w=e;switch(e){case"keypress":if(Vu(n)===0)break e;case"keydown":case"keyup":p=a2;break;case"focusin":w="focus",p=gh;break;case"focusout":w="blur",p=gh;break;case"beforeblur":case"afterblur":p=gh;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":p=nx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=VE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=l2;break;case k1:case _1:case S1:p=QE;break;case N1:p=u2;break;case"scroll":p=HE;break;case"wheel":p=f2;break;case"copy":case"cut":case"paste":p=ZE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=sx}var y=(t&4)!==0,b=!y&&e==="scroll",x=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,g;v!==null;){g=v;var j=g.stateNode;if(g.tag===5&&j!==null&&(g=j,x!==null&&(j=Zl(v,x),j!=null&&y.push(ac(v,j,g)))),b)break;v=v.return}0<y.length&&(h=new p(h,w,null,n,d),f.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Mm&&(w=n.relatedTarget||n.fromElement)&&(Fa(w)||w[os]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=u,w=w?Fa(w):null,w!==null&&(b=ci(w),w!==b||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=u),p!==w)){if(y=nx,j="onMouseLeave",x="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=sx,j="onPointerLeave",x="onPointerEnter",v="pointer"),b=p==null?h:Qi(p),g=w==null?h:Qi(w),h=new y(j,v+"leave",p,n,d),h.target=b,h.relatedTarget=g,j=null,Fa(d)===u&&(y=new y(x,v+"enter",w,n,d),y.target=g,y.relatedTarget=b,j=y),b=j,p&&w)t:{for(y=p,x=w,v=0,g=y;g;g=bi(g))v++;for(g=0,j=x;j;j=bi(j))g++;for(;0<v-g;)y=bi(y),v--;for(;0<g-v;)x=bi(x),g--;for(;v--;){if(y===x||x!==null&&y===x.alternate)break t;y=bi(y),x=bi(x)}y=null}else y=null;p!==null&&px(f,h,p,y,!1),w!==null&&b!==null&&px(f,b,w,y,!0)}}e:{if(h=u?Qi(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var _=x2;else if(ox(h))if(v1)_=k2;else{_=w2;var C=b2}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(_=j2);if(_&&(_=_(e,u))){y1(f,_,n,d);break e}C&&C(e,h,u),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&Pm(h,"number",h.value)}switch(C=u?Qi(u):window,e){case"focusin":(ox(C)||C.contentEditable==="true")&&(Ki=C,Bm=u,$l=null);break;
vendor: 4,158 bytes, lines 37-38
37case"focusout":$l=Bm=Ki=null;break;case"mousedown":Gm=!0;break;case"contextmenu":case"mouseup":case"dragend":Gm=!1,fx(f,n,d);break;case"selectionchange":if(N2)break;case"keydown":case"keyup":fx(f,n,d)}var N;if(Ug)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Vi?p1(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(m1&&n.locale!=="ko"&&(Vi||A!=="onCompositionStart"?A==="onCompositionEnd"&&Vi&&(N=h1()):(Bs=d,Wg="value"in Bs?Bs.value:Bs.textContent,Vi=!0)),C=yd(u,A),0<C.length&&(A=new rx(A,e,null,n,d),f.push({event:A,listeners:C}),N?A.data=N:(N=g1(n),N!==null&&(A.data=N)))),(N=m2?p2(e,n):g2(e,n))&&(u=yd(u,"onBeforeInput"),0<u.length&&(d=new rx("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=N))}T1(f,t)})}function ac(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yd(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Zl(e,n),i!=null&&r.unshift(ac(e,i,s)),i=Zl(e,t),i!=null&&r.push(ac(e,i,s))),e=e.return}return r}function bi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function px(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,s?(c=Zl(n,i),c!=null&&o.unshift(ac(n,c,l))):s||(c=Zl(n,i),c!=null&&o.push(ac(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var A2=/\r\n?/g,P2=/\u0000|\uFFFD/g;function gx(e){return(typeof e=="string"?e:""+e).replace(A2,`
38`).replace(P2,"")}function xu(e,t,n){if(t=gx(t),gx(e)!==t&&n)throw Error(W(425))}function vd(){}var Hm=null,qm=null;function Vm(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 Km=typeof setTimeout=="function"?setTimeout:void 0,R2=typeof clearTimeout=="function"?clearTimeout:void 0,yx=typeof Promise=="function"?Promise:void 0,O2=typeof queueMicrotask=="function"?queueMicrotask:typeof yx<"u"?function(e){return yx.resolve(null).then(e).catch(I2)}:Km;function I2(e){setTimeout(function(){throw e})}function _h(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),tc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);tc(t)}function Qs(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 vx(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 Vo=Math.random().toString(36).slice(2),Rr="__reactFiber$"+Vo,ic="__reactProps$"+Vo,os="__reactContainer$"+Vo,Ym="__reactEvents$"+Vo,D2="__reactListeners$"+Vo,M2="__reactHandles$"+Vo;function Fa(e){var t=e[Rr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[os]||n[Rr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vx(e);e!==null;){if(n=e[Rr])return n;e=vx(e)}return t}e=n,n=e.parentNode}return null}function zc(e){return e=e[Rr]||e[os],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function hf(e){return e[ic]||null}var Qm=[],Ji=-1;function ha(e){return{current:e}}function nt(e){0>Ji||(e.current=Qm[Ji],Qm[Ji]=null,Ji--)}function Ze(e,t){Ji++,Qm[Ji]=e.current,e.current=t}var sa={},Ht=ha(sa),dn=ha(!1),Ja=sa;function To(e,t){var n=e.type.contextTypes;if(!n)return sa;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 fn(e){return e=e.childContextTypes,e!=null}function xd(){nt(dn),nt(Ht)}
vendor: 17,171 bytes, line 38
38function xx(e,t,n){if(Ht.current!==sa)throw Error(W(168));Ze(Ht,t),Ze(dn,n)}function A1(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(W(108,bE(e)||"Unknown",s));return ct({},n,r)}function bd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sa,Ja=Ht.current,Ze(Ht,e),Ze(dn,dn.current),!0}function bx(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=A1(e,t,Ja),r.__reactInternalMemoizedMergedChildContext=e,nt(dn),nt(Ht),Ze(Ht,e)):nt(dn),Ze(dn,n)}var ts=null,mf=!1,Sh=!1;function P1(e){ts===null?ts=[e]:ts.push(e)}function L2(e){mf=!0,P1(e)}function ma(){if(!Sh&&ts!==null){Sh=!0;var e=0,t=Ke;try{var n=ts;for(Ke=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ts=null,mf=!1}catch(s){throw ts!==null&&(ts=ts.slice(e+1)),n1(Dg,ma),s}finally{Ke=t,Sh=!1}}return null}var Zi=[],Xi=0,wd=null,jd=0,Ln=[],Fn=0,Za=null,rs=1,ss="";function Pa(e,t){Zi[Xi++]=jd,Zi[Xi++]=wd,wd=e,jd=t}function R1(e,t,n){Ln[Fn++]=rs,Ln[Fn++]=ss,Ln[Fn++]=Za,Za=e;var r=rs;e=ss;var s=32-hr(r)-1;r&=~(1<<s),n+=1;var i=32-hr(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,rs=1<<32-hr(t)+s|n<<s|r,ss=i+e}else rs=1<<i|n<<s|r,ss=e}function Gg(e){e.return!==null&&(Pa(e,1),R1(e,1,0))}function Hg(e){for(;e===wd;)wd=Zi[--Xi],Zi[Xi]=null,jd=Zi[--Xi],Zi[Xi]=null;for(;e===Za;)Za=Ln[--Fn],Ln[Fn]=null,ss=Ln[--Fn],Ln[Fn]=null,rs=Ln[--Fn],Ln[Fn]=null}var Nn=null,Sn=null,rt=!1,cr=null;function O1(e,t){var n=Wn(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 wx(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Nn=e,Sn=Qs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Nn=e,Sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Za!==null?{id:rs,overflow:ss}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Wn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Nn=e,Sn=null,!0):!1;default:return!1}}function Jm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zm(e){if(rt){var t=Sn;if(t){var n=t;if(!wx(e,t)){if(Jm(e))throw Error(W(418));t=Qs(n.nextSibling);var r=Nn;t&&wx(e,t)?O1(r,n):(e.flags=e.flags&-4097|2,rt=!1,Nn=e)}}else{if(Jm(e))throw Error(W(418));e.flags=e.flags&-4097|2,rt=!1,Nn=e}}}function jx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Nn=e}function bu(e){if(e!==Nn)return!1;if(!rt)return jx(e),rt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vm(e.type,e.memoizedProps)),t&&(t=Sn)){if(Jm(e))throw I1(),Error(W(418));for(;t;)O1(e,t),t=Qs(t.nextSibling)}if(jx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Sn=Qs(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Sn=null}}else Sn=Nn?Qs(e.stateNode.nextSibling):null;return!0}function I1(){for(var e=Sn;e;)e=Qs(e.nextSibling)}function Eo(){Sn=Nn=null,rt=!1}function qg(e){cr===null?cr=[e]:cr.push(e)}var F2=ms.ReactCurrentBatchConfig;function gl(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(W(309));var r=n.stateNode}if(!r)throw Error(W(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(o){var l=s.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(W(284));if(!n._owner)throw Error(W(290,e))}return e}function wu(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function kx(e){var t=e._init;return t(e._payload)}function D1(e){function t(x,v){if(e){var g=x.deletions;g===null?(x.deletions=[v],x.flags|=16):g.push(v)}}function n(x,v){if(!e)return null;for(;v!==null;)t(x,v),v=v.sibling;return null}function r(x,v){for(x=new Map;v!==null;)v.key!==null?x.set(v.key,v):x.set(v.index,v),v=v.sibling;return x}function s(x,v){return x=ea(x,v),x.index=0,x.sibling=null,x}function i(x,v,g){return x.index=g,e?(g=x.alternate,g!==null?(g=g.index,g<v?(x.flags|=2,v):g):(x.flags|=2,v)):(x.flags|=1048576,v)}function o(x){return e&&x.alternate===null&&(x.flags|=2),x}function l(x,v,g,j){return v===null||v.tag!==6?(v=Rh(g,x.mode,j),v.return=x,v):(v=s(v,g),v.return=x,v)}function c(x,v,g,j){var _=g.type;return _===qi?d(x,v,g.props.children,j,g.key):v!==null&&(v.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===As&&kx(_)===v.type)?(j=s(v,g.props),j.ref=gl(x,v,g),j.return=x,j):(j=ed(g.type,g.key,g.props,null,x.mode,j),j.ref=gl(x,v,g),j.return=x,j)}function u(x,v,g,j){return v===null||v.tag!==4||v.stateNode.containerInfo!==g.containerInfo||v.stateNode.implementation!==g.implementation?(v=Oh(g,x.mode,j),v.return=x,v):(v=s(v,g.children||[]),v.return=x,v)}function d(x,v,g,j,_){return v===null||v.tag!==7?(v=Qa(g,x.mode,j,_),v.return=x,v):(v=s(v,g),v.return=x,v)}function f(x,v,g){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Rh(""+v,x.mode,g),v.return=x,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case uu:return g=ed(v.type,v.key,v.props,null,x.mode,g),g.ref=gl(x,null,v),g.return=x,g;case Hi:return v=Oh(v,x.mode,g),v.return=x,v;case As:var j=v._init;return f(x,j(v._payload),g)}if(Tl(v)||dl(v))return v=Qa(v,x.mode,g,null),v.return=x,v;wu(x,v)}return null}function h(x,v,g,j){var _=v!==null?v.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return _!==null?null:l(x,v,""+g,j);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case uu:return g.key===_?c(x,v,g,j):null;case Hi:return g.key===_?u(x,v,g,j):null;case As:return _=g._init,h(x,v,_(g._payload),j)}if(Tl(g)||dl(g))return _!==null?null:d(x,v,g,j,null);wu(x,g)}return null}function p(x,v,g,j,_){if(typeof j=="string"&&j!==""||typeof j=="number")return x=x.get(g)||null,l(v,x,""+j,_);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case uu:return x=x.get(j.key===null?g:j.key)||null,c(v,x,j,_);case Hi:return x=x.get(j.key===null?g:j.key)||null,u(v,x,j,_);case As:var C=j._init;return p(x,v,g,C(j._payload),_)}if(Tl(j)||dl(j))return x=x.get(g)||null,d(v,x,j,_,null);wu(v,j)}return null}function w(x,v,g,j){for(var _=null,C=null,N=v,A=v=0,R=null;N!==null&&A<g.length;A++){N.index>A?(R=N,N=null):R=N.sibling;var I=h(x,N,g[A],j);if(I===null){N===null&&(N=R);break}e&&N&&I.alternate===null&&t(x,N),v=i(I,v,A),C===null?_=I:C.sibling=I,C=I,N=R}if(A===g.length)return n(x,N),rt&&Pa(x,A),_;if(N===null){for(;A<g.length;A++)N=f(x,g[A],j),N!==null&&(v=i(N,v,A),C===null?_=N:C.sibling=N,C=N);return rt&&Pa(x,A),_}for(N=r(x,N);A<g.length;A++)R=p(N,x,A,g[A],j),R!==null&&(e&&R.alternate!==null&&N.delete(R.key===null?A:R.key),v=i(R,v,A),C===null?_=R:C.sibling=R,C=R);return e&&N.forEach(function(V){return t(x,V)}),rt&&Pa(x,A),_}function y(x,v,g,j){var _=dl(g);if(typeof _!="function")throw Error(W(150));if(g=_.call(g),g==null)throw Error(W(151));for(var C=_=null,N=v,A=v=0,R=null,I=g.next();N!==null&&!I.done;A++,I=g.next()){N.index>A?(R=N,N=null):R=N.sibling;var V=h(x,N,I.value,j);if(V===null){N===null&&(N=R);break}e&&N&&V.alternate===null&&t(x,N),v=i(V,v,A),C===null?_=V:C.sibling=V,C=V,N=R}if(I.done)return n(x,N),rt&&Pa(x,A),_;if(N===null){for(;!I.done;A++,I=g.next())I=f(x,I.value,j),I!==null&&(v=i(I,v,A),C===null?_=I:C.sibling=I,C=I);return rt&&Pa(x,A),_}for(N=r(x,N);!I.done;A++,I=g.next())I=p(N,x,A,I.value,j),I!==null&&(e&&I.alternate!==null&&N.delete(I.key===null?A:I.key),v=i(I,v,A),C===null?_=I:C.sibling=I,C=I);return e&&N.forEach(function(D){return t(x,D)}),rt&&Pa(x,A),_}function b(x,v,g,j){if(typeof g=="object"&&g!==null&&g.type===qi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case uu:e:{for(var _=g.key,C=v;C!==null;){if(C.key===_){if(_=g.type,_===qi){if(C.tag===7){n(x,C.sibling),v=s(C,g.props.children),v.return=x,x=v;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===As&&kx(_)===C.type){n(x,C.sibling),v=s(C,g.props),v.ref=gl(x,C,g),v.return=x,x=v;break e}n(x,C);break}else t(x,C);C=C.sibling}g.type===qi?(v=Qa(g.props.children,x.mode,j,g.key),v.return=x,x=v):(j=ed(g.type,g.key,g.props,null,x.mode,j),j.ref=gl(x,v,g),j.return=x,x=j)}return o(x);case Hi:e:{for(C=g.key;v!==null;){if(v.key===C)if(v.tag===4&&v.stateNode.containerInfo===g.containerInfo&&v.stateNode.implementation===g.implementation){n(x,v.sibling),v=s(v,g.children||[]),v.return=x,x=v;break e}else{n(x,v);break}else t(x,v);v=v.sibling}v=Oh(g,x.mode,j),v.return=x,x=v}return o(x);case As:return C=g._init,b(x,v,C(g._payload),j)}if(Tl(g))return w(x,v,g,j);if(dl(g))return y(x,v,g,j);wu(x,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,v!==null&&v.tag===6?(n(x,v.sibling),v=s(v,g),v.return=x,x=v):(n(x,v),v=Rh(g,x.mode,j),v.return=x,x=v),o(x)):n(x,v)}return b}var Ao=D1(!0),M1=D1(!1),kd=ha(null),_d=null,eo=null,Vg=null;function Kg(){Vg=eo=_d=null}function Yg(e){var t=kd.current;nt(kd),e._currentValue=t}function Xm(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 lo(e,t){_d=e,Vg=eo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(cn=!0),e.firstContext=null)}function Un(e){var t=e._currentValue;if(Vg!==e)if(e={context:e,memoizedValue:t,next:null},eo===null){if(_d===null)throw Error(W(308));eo=e,_d.dependencies={lanes:0,firstContext:e}}else eo=eo.next=e;return t}var Wa=null;function Qg(e){Wa===null?Wa=[e]:Wa.push(e)}function L1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Qg(t)):(n.next=s.next,s.next=n),t.interleaved=n,ls(e,r)}function ls(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 Ps=!1;function Jg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function F1(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 as(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Js(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Me&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,ls(e,n)}return s=r.interleaved,s===null?(t.next=t,Qg(r)):(t.next=s.next,s.next=t),r.interleaved=t,ls(e,n)}function Ku(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,Mg(e,n)}}function _x(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 o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,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 Sd(e,t,n,r){var s=e.updateQueue;Ps=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?i=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var f=s.baseState;o=0,d=u=c=null,l=i;do{var h=l.lane,p=l.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,y=l;switch(h=t,p=n,y.tag){case 1:if(w=y.payload,typeof w=="function"){f=w.call(p,f,h);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=y.payload,h=typeof w=="function"?w.call(p,f,h):w,h==null)break e;f=ct({},f,h);break e;case 2:Ps=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[l]:h.push(l))}else p={eventTime:p,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,c=f):d=d.next=p,o|=h;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;h=l,l=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(c=f),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);ei|=o,e.lanes=o,e.memoizedState=f}}function Sx(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(W(191,s));s.call(r)}}}var Uc={},Lr=ha(Uc),oc=ha(Uc),lc=ha(Uc);function $a(e){if(e===Uc)throw Error(W(174));return e}function Zg(e,t){switch(Ze(lc,t),Ze(oc,e),Ze(Lr,Uc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Om(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Om(t,e)}nt(Lr),Ze(Lr,t)}function Po(){nt(Lr),nt(oc),nt(lc)}function W1(e){$a(lc.current);var t=$a(Lr.current),n=Om(t,e.type);t!==n&&(Ze(oc,e),Ze(Lr,n))}function Xg(e){oc.current===e&&(nt(Lr),nt(oc))}var ot=ha(0);function Nd(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 Nh=[];function ey(){for(var e=0;e<Nh.length;e++)Nh[e]._workInProgressVersionPrimary=null;Nh.length=0}var Yu=ms.ReactCurrentDispatcher,Ch=ms.ReactCurrentBatchConfig,Xa=0,lt=null,_t=null,Et=null,Cd=!1,zl=!1,cc=0,W2=0;function $t(){throw Error(W(321))}function ty(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pr(e[n],t[n]))return!1;return!0}function ny(e,t,n,r,s,i){if(Xa=i,lt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yu.current=e===null||e.memoizedState===null?B2:G2,e=n(r,s),zl){i=0;do{if(zl=!1,cc=0,25<=i)throw Error(W(301));i+=1,Et=_t=null,t.updateQueue=null,Yu.current=H2,e=n(r,s)}while(zl)}if(Yu.current=Td,t=_t!==null&&_t.next!==null,Xa=0,Et=_t=lt=null,Cd=!1,t)throw Error(W(300));return e}function ry(){var e=cc!==0;return cc=0,e}function Tr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?lt.memoizedState=Et=e:Et=Et.next=e,Et}function Bn(){if(_t===null){var e=lt.alternate;e=e!==null?e.memoizedState:null}else e=_t.next;var t=Et===null?lt.memoizedState:Et.next;if(t!==null)Et=t,_t=e;else{if(e===null)throw Error(W(310));_t=e,e={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},Et===null?lt.memoizedState=Et=e:Et=Et.next=e}return Et}function uc(e,t){return typeof t=="function"?t(e):t}function Th(e){var t=Bn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=_t,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,c=null,u=i;do{var d=u.lane;if((Xa&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=f,o=r):c=c.next=f,lt.lanes|=d,ei|=d}u=u.next}while(u!==null&&u!==i);c===null?o=r:c.next=l,pr(r,t.memoizedState)||(cn=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,lt.lanes|=i,ei|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Eh(e){var t=Bn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);pr(i,t.memoizedState)||(cn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function $1(){}function z1(e,t){var n=lt,r=Bn(),s=t(),i=!pr(r.memoizedState,s);if(i&&(r.memoizedState=s,cn=!0),r=r.queue,sy(G1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Et!==null&&Et.memoizedState.tag&1){if(n.flags|=2048,dc(9,B1.bind(null,n,r,s,t),void 0,null),At===null)throw Error(W(349));Xa&30||U1(n,t,s)}return s}function U1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=lt.updateQueue,t===null?(t={lastEffect:null,stores:null},lt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function B1(e,t,n,r){t.value=n,t.getSnapshot=r,H1(t)&&q1(e)}
vendor: 1,865 bytes, line 38
38function G1(e,t,n){return n(function(){H1(t)&&q1(e)})}function H1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pr(e,n)}catch{return!0}}function q1(e){var t=ls(e,1);t!==null&&mr(t,e,1,-1)}function Nx(e){var t=Tr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:uc,lastRenderedState:e},t.queue=e,e=e.dispatch=U2.bind(null,lt,e),[t.memoizedState,e]}function dc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=lt.updateQueue,t===null?(t={lastEffect:null,stores:null},lt.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 V1(){return Bn().memoizedState}function Qu(e,t,n,r){var s=Tr();lt.flags|=e,s.memoizedState=dc(1|t,n,void 0,r===void 0?null:r)}function pf(e,t,n,r){var s=Bn();r=r===void 0?null:r;var i=void 0;if(_t!==null){var o=_t.memoizedState;if(i=o.destroy,r!==null&&ty(r,o.deps)){s.memoizedState=dc(t,n,i,r);return}}lt.flags|=e,s.memoizedState=dc(1|t,n,i,r)}function Cx(e,t){return Qu(8390656,8,e,t)}function sy(e,t){return pf(2048,8,e,t)}function K1(e,t){return pf(4,2,e,t)}function Y1(e,t){return pf(4,4,e,t)}function Q1(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 J1(e,t,n){return n=n!=null?n.concat([e]):null,pf(4,4,Q1.bind(null,t,e),n)}function ay(){}function Z1(e,t){var n=Bn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ty(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function X1(e,t){var n=Bn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ty(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ej(e,t,n){return Xa&21?(pr(n,t)||(n=a1(),lt.lanes|=n,ei|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,
vendor: 7,632 bytes, lines 38-40
38cn=!0),e.memoizedState=n)}function $2(e,t){var n=Ke;Ke=n!==0&&4>n?n:4,e(!0);var r=Ch.transition;Ch.transition={};try{e(!1),t()}finally{Ke=n,Ch.transition=r}}function tj(){return Bn().memoizedState}function z2(e,t,n){var r=Xs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nj(e))rj(t,n);else if(n=L1(e,t,n,r),n!==null){var s=Xt();mr(n,e,r,s),sj(n,t,r)}}function U2(e,t,n){var r=Xs(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nj(e))rj(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,pr(l,o)){var c=t.interleaved;c===null?(s.next=s,Qg(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=L1(e,t,s,r),n!==null&&(s=Xt(),mr(n,e,r,s),sj(n,t,r))}}function nj(e){var t=e.alternate;return e===lt||t!==null&&t===lt}function rj(e,t){zl=Cd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sj(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mg(e,n)}}var Td={readContext:Un,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useInsertionEffect:$t,useLayoutEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useMutableSource:$t,useSyncExternalStore:$t,useId:$t,unstable_isNewReconciler:!1},B2={readContext:Un,useCallback:function(e,t){return Tr().memoizedState=[e,t===void 0?null:t],e},useContext:Un,useEffect:Cx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qu(4194308,4,Q1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qu(4,2,e,t)},useMemo:function(e,t){var n=Tr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tr();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=z2.bind(null,lt,e),[r.memoizedState,e]},useRef:function(e){var t=Tr();return e={current:e},t.memoizedState=e},useState:Nx,useDebugValue:ay,useDeferredValue:function(e){return Tr().memoizedState=e},useTransition:function(){var e=Nx(!1),t=e[0];return e=$2.bind(null,e[1]),Tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=lt,s=Tr();if(rt){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),At===null)throw Error(W(349));Xa&30||U1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Cx(G1.bind(null,r,i,e),[e]),r.flags|=2048,dc(9,B1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Tr(),t=At.identifierPrefix;if(rt){var n=ss,r=rs;n=(r&~(1<<32-hr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=cc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=W2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},G2={readContext:Un,useCallback:Z1,useContext:Un,useEffect:sy,useImperativeHandle:J1,useInsertionEffect:K1,useLayoutEffect:Y1,useMemo:X1,useReducer:Th,useRef:V1,useState:function(){return Th(uc)},useDebugValue:ay,useDeferredValue:function(e){var t=Bn();return ej(t,_t.memoizedState,e)},useTransition:function(){var e=Th(uc)[0],t=Bn().memoizedState;return[e,t]},useMutableSource:$1,useSyncExternalStore:z1,useId:tj,unstable_isNewReconciler:!1},H2={readContext:Un,useCallback:Z1,useContext:Un,useEffect:sy,useImperativeHandle:J1,useInsertionEffect:K1,useLayoutEffect:Y1,useMemo:X1,useReducer:Eh,useRef:V1,useState:function(){return Eh(uc)},useDebugValue:ay,useDeferredValue:function(e){var t=Bn();return _t===null?t.memoizedState=e:ej(t,_t.memoizedState,e)},useTransition:function(){var e=Eh(uc)[0],t=Bn().memoizedState;return[e,t]},useMutableSource:$1,useSyncExternalStore:z1,useId:tj,unstable_isNewReconciler:!1};function nr(e,t){if(e&&e.defaultProps){t=ct({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ep(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ct({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var gf={isMounted:function(e){return(e=e._reactInternals)?ci(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xt(),s=Xs(e),i=as(r,s);i.payload=t,n!=null&&(i.callback=n),t=Js(e,i,s),t!==null&&(mr(t,e,s,r),Ku(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xt(),s=Xs(e),i=as(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Js(e,i,s),t!==null&&(mr(t,e,s,r),Ku(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xt(),r=Xs(e),s=as(n,r);s.tag=2,t!=null&&(s.callback=t),t=Js(e,s,r),t!==null&&(mr(t,e,r,n),Ku(t,e,r))}};function Tx(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!rc(n,r)||!rc(s,i):!0}function aj(e,t,n){var r=!1,s=sa,i=t.contextType;return typeof i=="object"&&i!==null?i=Un(i):(s=fn(t)?Ja:Ht.current,r=t.contextTypes,i=(r=r!=null)?To(e,s):sa),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ex(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&&gf.enqueueReplaceState(t,t.state,null)}function tp(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Jg(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Un(i):(i=fn(t)?Ja:Ht.current,s.context=To(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ep(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&&gf.enqueueReplaceState(s,s.state,null),Sd(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ro(e,t){try{var n="",r=t;do n+=xE(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 Ah(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function np(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var q2=typeof WeakMap=="function"?WeakMap:Map;function ij(e,t,n){n=as(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ad||(Ad=!0,fp=r),np(e,t)},n}function oj(e,t,n){n=as(-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(){np(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){np(e,t),typeof r!="function"&&(Zs===null?Zs=new Set([this]):Zs.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ax(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new q2;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=iA.bind(null,e,t,n),t.then(e,e))}function Px(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}
vendor: 5,306 bytes, line 40
40function Rx(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=as(-1,1),t.tag=2,Js(n,t,1))),n.lanes|=1),e)}var V2=ms.ReactCurrentOwner,cn=!1;function Qt(e,t,n,r){t.child=e===null?M1(t,null,n,r):Ao(t,e.child,n,r)}function Ox(e,t,n,r,s){n=n.render;var i=t.ref;return lo(t,s),r=ny(e,t,n,r,i,s),n=ry(),e!==null&&!cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,cs(e,t,s)):(rt&&n&&Gg(t),t.flags|=1,Qt(e,t,r,s),t.child)}function Ix(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!hy(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,lj(e,t,i,r,s)):(e=ed(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 o=i.memoizedProps;if(n=n.compare,n=n!==null?n:rc,n(o,r)&&e.ref===t.ref)return cs(e,t,s)}return t.flags|=1,e=ea(i,r),e.ref=t.ref,e.return=t,t.child=e}function lj(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(rc(i,r)&&e.ref===t.ref)if(cn=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(cn=!0);else return t.lanes=e.lanes,cs(e,t,s)}return rp(e,t,n,r,s)}function cj(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},Ze(no,wn),wn|=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,Ze(no,wn),wn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ze(no,wn),wn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ze(no,wn),wn|=r;return Qt(e,t,s,n),t.child}function uj(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rp(e,t,n,r,s){var i=fn(n)?Ja:Ht.current;return i=To(t,i),lo(t,s),n=ny(e,t,n,r,i,s),r=ry(),e!==null&&!cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,cs(e,t,s)):(rt&&r&&Gg(t),t.flags|=1,Qt(e,t,n,s),t.child)}function Dx(e,t,n,r,s){if(fn(n)){var i=!0;bd(t)}else i=!1;if(lo(t,s),t.stateNode===null)Ju(e,t),aj(t,n,r),tp(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Un(u):(u=fn(n)?Ja:Ht.current,u=To(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||c!==u)&&Ex(t,o,r,u),Ps=!1;var h=t.memoizedState;o.state=h,Sd(t,r,o,s),c=t.memoizedState,l!==r||h!==c||dn.current||Ps?(typeof d=="function"&&(ep(t,n,d,r),c=t.memoizedState),(l=Ps||Tx(t,n,l,r,h,c,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,F1(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nr(t.type,l),o.props=u,f=t.pendingProps,h=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=Un(c):(c=fn(n)?Ja:Ht.current,c=To(t,c));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||h!==c)&&Ex(t,o,r,c),Ps=!1,h=t.memoizedState,o.state=h,Sd(t,r,o,s);var w=t.memoizedState;l!==f||h!==w||dn.current||Ps?(typeof p=="function"&&(ep(t,n,p,r),w=t.memoizedState),(u=Ps||Tx(t,n,u,r,h,w,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=c,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return sp(e,t,n,r,i,s)}function sp(e,t,n,r,s,i){uj(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&bx(t,n,!1),cs(e,t,i);r=t.stateNode,V2.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ao(t,e.child,null,i),t.child=Ao(t,null,l,i)):Qt(e,t,l,i),t.memoizedState=r.state,s&&bx(t,n,!0),t.child}function dj(e){var t=e.stateNode;t.pendingContext?xx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xx(e,t.context,!1),Zg(e,t.containerInfo)}
vendor: 8,684 bytes, line 40
40function Mx(e,t,n,r,s){return Eo(),qg(s),t.flags|=256,Qt(e,t,n,r),t.child}var ap={dehydrated:null,treeContext:null,retryLane:0};function ip(e){return{baseLanes:e,cachePool:null,transitions:null}}function fj(e,t,n){var r=t.pendingProps,s=ot.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Ze(ot,s&1),e===null)return Zm(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):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=xf(o,r,0,null),e=Qa(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ip(n),t.memoizedState=ap,e):iy(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return K2(e,t,o,r,l,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=ea(s,c),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=ea(l,i):(i=Qa(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?ip(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=ap,r}return i=e.child,e=i.sibling,r=ea(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 iy(e,t){return t=xf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ju(e,t,n,r){return r!==null&&qg(r),Ao(t,e.child,null,n),e=iy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function K2(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Ah(Error(W(422))),ju(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=xf({mode:"visible",children:r.children},s,0,null),i=Qa(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ao(t,e.child,null,o),t.child.memoizedState=ip(o),t.memoizedState=ap,i);if(!(t.mode&1))return ju(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(W(419)),r=Ah(i,r,void 0),ju(e,t,o,r)}if(l=(o&e.childLanes)!==0,cn||l){if(r=At,r!==null){switch(o&-o){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|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,ls(e,s),mr(r,e,s,-1))}return fy(),r=Ah(Error(W(421))),ju(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=oA.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Sn=Qs(s.nextSibling),Nn=t,rt=!0,cr=null,e!==null&&(Ln[Fn++]=rs,Ln[Fn++]=ss,Ln[Fn++]=Za,rs=e.id,ss=e.overflow,Za=t),t=iy(t,r.children),t.flags|=4096,t)}function Lx(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xm(e.return,t,n)}function Ph(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 hj(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Qt(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&&Lx(e,n,t);else if(e.tag===19)Lx(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(Ze(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&&Nd(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ph(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&&Nd(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ph(t,!0,n,null,i);break;case"together":Ph(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ju(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ei|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=ea(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ea(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Y2(e,t,n){switch(t.tag){case 3:dj(t),Eo();break;case 5:W1(t);break;case 1:fn(t.type)&&bd(t);break;case 4:Zg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Ze(kd,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ze(ot,ot.current&1),t.flags|=128,null):n&t.child.childLanes?fj(e,t,n):(Ze(ot,ot.current&1),e=cs(e,t,n),e!==null?e.sibling:null);Ze(ot,ot.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hj(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ze(ot,ot.current),r)break;return null;case 22:case 23:return t.lanes=0,cj(e,t,n)}return cs(e,t,n)}var mj,op,pj,gj;mj=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}};op=function(){};pj=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,$a(Lr.current);var i=null;switch(n){case"input":s=Em(e,s),r=Em(e,r),i=[];break;case"select":s=ct({},s,{value:void 0}),r=ct({},r,{value:void 0}),i=[];break;case"textarea":s=Rm(e,s),r=Rm(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vd)}Im(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ql.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ql.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&tt("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};gj=function(e,t,n,r){n!==r&&(t.flags|=4)};function yl(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 zt(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 Q2(e,t,n){var r=t.pendingProps;switch(Hg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(t),null;case 1:return fn(t.type)&&xd(),zt(t),null;case 3:return r=t.stateNode,Po(),nt(dn),nt(Ht),ey(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(bu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,cr!==null&&(pp(cr),cr=null))),op(e,t),zt(t),null;case 5:Xg(t);var s=$a(lc.current);
vendor: 31,187 bytes, line 40
40if(n=t.type,e!==null&&t.stateNode!=null)pj(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return zt(t),null}if(e=$a(Lr.current),bu(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Rr]=t,r[ic]=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<Al.length;s++)tt(Al[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":qv(r,i),tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},tt("invalid",r);break;case"textarea":Kv(r,i),tt("invalid",r)}Im(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&xu(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&xu(r.textContent,l,e),s=["children",""+l]):Ql.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&tt("scroll",r)}switch(n){case"input":du(r),Vv(r,i,!0);break;case"textarea":du(r),Yv(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=vd)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Gw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Rr]=t,e[ic]=r,mj(e,t,!1,!1),t.stateNode=e;e:{switch(o=Dm(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<Al.length;s++)tt(Al[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":qv(e,r),s=Em(e,r),tt("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ct({},r,{value:void 0}),tt("invalid",e);break;case"textarea":Kv(e,r),s=Rm(e,r),tt("invalid",e);break;default:s=r}Im(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?Vw(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Hw(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Jl(e,c):typeof c=="number"&&Jl(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ql.hasOwnProperty(i)?c!=null&&i==="onScroll"&&tt("scroll",e):c!=null&&Ag(e,i,c,o))}switch(n){case"input":du(e),Vv(e,r,!1);break;case"textarea":du(e),Yv(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ra(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?so(e,!!r.multiple,i,!1):r.defaultValue!=null&&so(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=vd)}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 zt(t),null;case 6:if(e&&t.stateNode!=null)gj(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(166));if(n=$a(lc.current),$a(Lr.current),bu(t)){if(r=t.stateNode,n=t.memoizedProps,r[Rr]=t,(i=r.nodeValue!==n)&&(e=Nn,e!==null))switch(e.tag){case 3:xu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xu(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Rr]=t,t.stateNode=r}return zt(t),null;case 13:if(nt(ot),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(rt&&Sn!==null&&t.mode&1&&!(t.flags&128))I1(),Eo(),t.flags|=98560,i=!1;else if(i=bu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(W(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(W(317));i[Rr]=t}else Eo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zt(t),i=!1}else cr!==null&&(pp(cr),cr=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?St===0&&(St=3):fy())),t.updateQueue!==null&&(t.flags|=4),zt(t),null);case 4:return Po(),op(e,t),e===null&&sc(t.stateNode.containerInfo),zt(t),null;case 10:return Yg(t.type._context),zt(t),null;case 17:return fn(t.type)&&xd(),zt(t),null;case 19:if(nt(ot),i=t.memoizedState,i===null)return zt(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)yl(i,!1);else{if(St!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Nd(e),o!==null){for(t.flags|=128,yl(i,!1),r=o.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,o=i.alternate,o===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=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ze(ot,ot.current&1|2),t.child}e=e.sibling}i.tail!==null&&gt()>Oo&&(t.flags|=128,r=!0,yl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Nd(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!rt)return zt(t),null}else 2*gt()-i.renderingStartTime>Oo&&n!==1073741824&&(t.flags|=128,r=!0,yl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=gt(),t.sibling=null,n=ot.current,Ze(ot,r?n&1|2:n&1),t):(zt(t),null);case 22:case 23:return dy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?wn&1073741824&&(zt(t),t.subtreeFlags&6&&(t.flags|=8192)):zt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function J2(e,t){switch(Hg(t),t.tag){case 1:return fn(t.type)&&xd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Po(),nt(dn),nt(Ht),ey(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xg(t),null;case 13:if(nt(ot),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Eo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ot),null;case 4:return Po(),null;case 10:return Yg(t.type._context),null;case 22:case 23:return dy(),null;case 24:return null;default:return null}}var ku=!1,Gt=!1,Z2=typeof WeakSet=="function"?WeakSet:Set,X=null;function to(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pt(e,t,r)}else n.current=null}function lp(e,t,n){try{n()}catch(r){pt(e,t,r)}}var Fx=!1;function X2(e,t){if(Hm=pd,e=w1(),Bg(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 o=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||s!==0&&f.nodeType!==3||(l=o+s),f!==i||r!==0&&f.nodeType!==3||(c=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===s&&(l=o),h===i&&++d===r&&(c=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(qm={focusedElem:e,selectionRange:n},pd=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;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 y=w.memoizedProps,b=w.memoizedState,x=t.stateNode,v=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:nr(t.type,y),b);x.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(j){pt(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return w=Fx,Fx=!1,w}function Ul(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&&lp(t,n,i)}s=s.next}while(s!==r)}}function yf(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 cp(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 yj(e){var t=e.alternate;t!==null&&(e.alternate=null,yj(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rr],delete t[ic],delete t[Ym],delete t[D2],delete t[M2])),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 vj(e){return e.tag===5||e.tag===3||e.tag===4}function Wx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vj(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}}function up(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=vd));else if(r!==4&&(e=e.child,e!==null))for(up(e,t,n),e=e.sibling;e!==null;)up(e,t,n),e=e.sibling}function dp(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(dp(e,t,n),e=e.sibling;e!==null;)dp(e,t,n),e=e.sibling}var Ot=null,or=!1;function ks(e,t,n){for(n=n.child;n!==null;)xj(e,t,n),n=n.sibling}function xj(e,t,n){if(Mr&&typeof Mr.onCommitFiberUnmount=="function")try{Mr.onCommitFiberUnmount(cf,n)}catch{}switch(n.tag){case 5:Gt||to(n,t);case 6:var r=Ot,s=or;Ot=null,ks(e,t,n),Ot=r,or=s,Ot!==null&&(or?(e=Ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ot.removeChild(n.stateNode));break;case 18:Ot!==null&&(or?(e=Ot,n=n.stateNode,e.nodeType===8?_h(e.parentNode,n):e.nodeType===1&&_h(e,n),tc(e)):_h(Ot,n.stateNode));break;case 4:r=Ot,s=or,Ot=n.stateNode.containerInfo,or=!0,ks(e,t,n),Ot=r,or=s;break;case 0:case 11:case 14:case 15:if(!Gt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&lp(n,t,o),s=s.next}while(s!==r)}ks(e,t,n);break;case 1:if(!Gt&&(to(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){pt(n,t,l)}ks(e,t,n);break;case 21:ks(e,t,n);break;case 22:n.mode&1?(Gt=(r=Gt)||n.memoizedState!==null,ks(e,t,n),Gt=r):ks(e,t,n);break;default:ks(e,t,n)}}function $x(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Z2),t.forEach(function(r){var s=lA.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Jn(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,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Ot=l.stateNode,or=!1;break e;case 3:Ot=l.stateNode.containerInfo,or=!0;break e;case 4:Ot=l.stateNode.containerInfo,or=!0;break e}l=l.return}if(Ot===null)throw Error(W(160));xj(i,o,s),Ot=null,or=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){pt(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)bj(t,e),t=t.sibling}function bj(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jn(t,e),Cr(e),r&4){try{Ul(3,e,e.return),yf(3,e)}catch(y){pt(e,e.return,y)}try{Ul(5,e,e.return)}catch(y){pt(e,e.return,y)}}break;case 1:Jn(t,e),Cr(e),r&512&&n!==null&&to(n,n.return);break;case 5:if(Jn(t,e),Cr(e),r&512&&n!==null&&to(n,n.return),e.flags&32){var s=e.stateNode;try{Jl(s,"")}catch(y){pt(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Uw(s,i),Dm(l,o);var u=Dm(l,i);for(o=0;o<c.length;o+=2){var d=c[o],f=c[o+1];d==="style"?Vw(s,f):d==="dangerouslySetInnerHTML"?Hw(s,f):d==="children"?Jl(s,f):Ag(s,d,f,u)}switch(l){case"input":Am(s,i);break;case"textarea":Bw(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?so(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?so(s,!!i.multiple,i.defaultValue,!0):so(s,!!i.multiple,i.multiple?[]:"",!1))}s[ic]=i}catch(y){pt(e,e.return,y)}}break;case 6:if(Jn(t,e),Cr(e),r&4){if(e.stateNode===null)throw Error(W(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){pt(e,e.return,y)}}break;case 3:if(Jn(t,e),Cr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{tc(t.containerInfo)}catch(y){pt(e,e.return,y)}break;case 4:Jn(t,e),Cr(e);break;case 13:Jn(t,e),Cr(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(cy=gt())),r&4&&$x(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Gt=(u=Gt)||d,Jn(t,e),Gt=u):Jn(t,e),Cr(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(X=e,d=e.child;d!==null;){for(f=X=d;X!==null;){switch(h=X,p=h.child,h.tag){case 0:case 11:case 14:case 15:Ul(4,h,h.return);break;case 1:to(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(y){pt(r,n,y)}}break;case 5:to(h,h.return);break;case 22:if(h.memoizedState!==null){Ux(f);continue}}p!==null?(p.return=h,X=p):Ux(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,c=f.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=qw("display",o))}catch(y){pt(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){pt(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Jn(t,e),Cr(e),r&4&&$x(e);break;case 21:break;default:Jn(t,e),Cr(e)}}function Cr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vj(n)){var r=n;break e}n=n.return}throw Error(W(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Jl(s,""),r.flags&=-33);var i=Wx(e);dp(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Wx(e);up(e,l,o);break;default:throw Error(W(161))}}catch(c){pt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eA(e,t,n){X=e,wj(e)}function wj(e,t,n){for(var r=(e.mode&1)!==0;X!==null;){var s=X,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||ku;if(!o){var l=s.alternate,c=l!==null&&l.memoizedState!==null||Gt;l=ku;var u=Gt;if(ku=o,(Gt=c)&&!u)for(X=s;X!==null;)o=X,c=o.child,o.tag===22&&o.memoizedState!==null?Bx(s):c!==null?(c.return=o,X=c):Bx(s);for(;i!==null;)X=i,wj(i),i=i.sibling;X=s,ku=l,Gt=u}zx(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,X=i):zx(e)}}function zx(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Gt||yf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Gt)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:nr(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Sx(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Sx(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&tc(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}Gt||t.flags&512&&cp(t)}catch(h){pt(t,t.return,h)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function Ux(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function Bx(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yf(4,t)}catch(c){pt(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){pt(t,s,c)}}var i=t.return;try{cp(t)}catch(c){pt(t,i,c)}break;case 5:var o=t.return;try{cp(t)}catch(c){pt(t,o,c)}}}catch(c){pt(t,t.return,c)}if(t===e){X=null;break}var l=t.sibling;if(l!==null){l.return=t.return,X=l;break}X=t.return}}var tA=Math.ceil,Ed=ms.ReactCurrentDispatcher,oy=ms.ReactCurrentOwner,$n=ms.ReactCurrentBatchConfig,Me=0,At=null,wt=null,Dt=0,wn=0,no=ha(0),St=0,fc=null,ei=0,vf=0,ly=0,Bl=null,ln=null,cy=0,Oo=1/0,Xr=null,Ad=!1,fp=null,Zs=null,_u=!1,Gs=null,Pd=0,Gl=0,hp=null,Zu=-1,Xu=0;function Xt(){return Me&6?gt():Zu!==-1?Zu:Zu=gt()}function Xs(e){return e.mode&1?Me&2&&Dt!==0?Dt&-Dt:F2.transition!==null?(Xu===0&&(Xu=a1()),Xu):(e=Ke,e!==0||(e=window.event,e=e===void 0?16:f1(e.type)),e):1}function mr(e,t,n,r){if(50<Gl)throw Gl=0,hp=null,Error(W(185));Wc(e,n,r),(!(Me&2)||e!==At)&&(e===At&&(!(Me&2)&&(vf|=n),St===4&&Ds(e,Dt)),hn(e,r),n===1&&Me===0&&!(t.mode&1)&&(Oo=gt()+500,mf&&ma()))}function hn(e,t){var n=e.callbackNode;FE(e,t);var r=md(e,e===At?Dt:0);if(r===0)n!==null&&Zv(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Zv(n),t===1)e.tag===0?L2(Gx.bind(null,e)):P1(Gx.bind(null,e)),O2(function(){!(Me&6)&&ma()}),n=null;else{switch(i1(r)){case 1:n=Dg;break;case 4:n=r1;break;case 16:n=hd;break;case 536870912:n=s1;break;default:n=hd}n=Ej(n,jj.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jj(e,t){if(Zu=-1,Xu=0,Me&6)throw Error(W(327));var n=e.callbackNode;if(co()&&e.callbackNode!==n)return null;var r=md(e,e===At?Dt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Rd(e,r);else{t=r;var s=Me;Me|=2;var i=_j();(At!==e||Dt!==t)&&(Xr=null,Oo=gt()+500,Ya(e,t));do try{sA();break}catch(l){kj(e,l)}while(!0);Kg(),Ed.current=i,Me=s,wt!==null?t=0:(At=null,Dt=0,t=St)}if(t!==0){if(t===2&&(s=$m(e),s!==0&&(r=s,t=mp(e,s))),t===1)throw n=fc,Ya(e,0),Ds(e,r),hn(e,gt()),n;if(t===6)Ds(e,r);else{if(s=e.current.alternate,!(r&30)&&!nA(s)&&(t=Rd(e,r),t===2&&(i=$m(e),i!==0&&(r=i,t=mp(e,i))),t===1))throw n=fc,Ya(e,0),Ds(e,r),hn(e,gt()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(W(345));case 2:Ra(e,ln,Xr);break;case 3:if(Ds(e,r),(r&130023424)===r&&(t=cy+500-gt(),10<t)){if(md(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Xt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Km(Ra.bind(null,e,ln,Xr),t);break}Ra(e,ln,Xr);break;case 4:if(Ds(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-hr(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=gt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tA(r/1960))-r,10<r){e.timeoutHandle=Km(Ra.bind(null,e,ln,Xr),r);break}Ra(e,ln,Xr);break;case 5:Ra(e,ln,Xr);break;default:throw Error(W(329))}}}return hn(e,gt()),e.callbackNode===n?jj.bind(null,e):null}function mp(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(Ya(e,t).flags|=256),e=Rd(e,t),e!==2&&(t=ln,ln=n,t!==null&&pp(t)),e}function pp(e){ln===null?ln=e:ln.push.apply(ln,e)}function nA(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(!pr(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 Ds(e,t){for(t&=~ly,t&=~vf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-hr(t),r=1<<n;e[n]=-1,t&=~r}}function Gx(e){if(Me&6)throw Error(W(327));co();var t=md(e,0);if(!(t&1))return hn(e,gt()),null;var n=Rd(e,t);if(e.tag!==0&&n===2){var r=$m(e);r!==0&&(t=r,n=mp(e,r))}if(n===1)throw n=fc,Ya(e,0),Ds(e,t),hn(e,gt()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ra(e,ln,Xr),hn(e,gt()),null}function uy(e,t){var n=Me;Me|=1;try{return e(t)}finally{Me=n,Me===0&&(Oo=gt()+500,mf&&ma())}}function ti(e){Gs!==null&&Gs.tag===0&&!(Me&6)&&co();var t=Me;Me|=1;var n=$n.transition,r=Ke;try{if($n.transition=null,Ke=1,e)return e()}finally{Ke=r,$n.transition=n,Me=t,!(Me&6)&&ma()}}function dy(){wn=no.current,nt(no)}function Ya(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,R2(n)),wt!==null)for(n=wt.return;n!==null;){var r=n;switch(Hg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xd();break;case 3:Po(),nt(dn),nt(Ht),ey();break;case 5:Xg(r);break;case 4:Po();break;case 13:nt(ot);break;case 19:nt(ot);break;case 10:Yg(r.type._context);break;case 22:case 23:dy()}n=n.return}if(At=e,wt=e=ea(e.current,null),Dt=wn=t,St=0,fc=null,ly=vf=ei=0,ln=Bl=null,Wa!==null){for(t=0;t<Wa.length;t++)if(n=Wa[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Wa=null}return e}function kj(e,t){do{var n=wt;try{if(Kg(),Yu.current=Td,Cd){for(var r=lt.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Cd=!1}if(Xa=0,Et=_t=lt=null,zl=!1,cc=0,oy.current=null,n===null||n.return===null){St=1,fc=t,wt=null;break}e:{var i=e,o=n.return,l=n,c=t;if(t=Dt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Px(o);if(p!==null){p.flags&=-257,Rx(p,o,l,i,t),p.mode&1&&Ax(i,u,t),t=p,c=u;var w=t.updateQueue;if(w===null){var y=new Set;y.add(c),t.updateQueue=y}else w.add(c);break e}else{if(!(t&1)){Ax(i,u,t),fy();break e}c=Error(W(426))}}else if(rt&&l.mode&1){var b=Px(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Rx(b,o,l,i,t),qg(Ro(c,l));break e}}i=c=Ro(c,l),St!==4&&(St=2),Bl===null?Bl=[i]:Bl.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var x=ij(i,c,t);_x(i,x);break e;case 1:l=c;var v=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Zs===null||!Zs.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var j=oj(i,l,t);_x(i,j);break e}}i=i.return}while(i!==null)}Nj(n)}catch(_){t=_,wt===n&&n!==null&&(wt=n=n.return);continue}break}while(!0)}function _j(){var e=Ed.current;return Ed.current=Td,e===null?Td:e}function fy(){(St===0||St===3||St===2)&&(St=4),At===null||!(ei&268435455)&&!(vf&268435455)||Ds(At,Dt)}function Rd(e,t){var n=Me;Me|=2;var r=_j();(At!==e||Dt!==t)&&(Xr=null,Ya(e,t));do try{rA();break}catch(s){kj(e,s)}while(!0);if(Kg(),Me=n,Ed.current=r,wt!==null)throw Error(W(261));return At=null,Dt=0,St}function rA(){for(;wt!==null;)Sj(wt)}function sA(){for(;wt!==null&&!EE();)Sj(wt)}function Sj(e){var t=Tj(e.alternate,e,wn);e.memoizedProps=e.pendingProps,t===null?Nj(e):wt=t,oy.current=null}function Nj(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=J2(n,t),n!==null){n.flags&=32767,wt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{St=6,wt=null;return}}else if(n=Q2(n,t,wn),n!==null){wt=n;return}if(t=t.sibling,t!==null){wt=t;return}wt=t=e}while(t!==null);St===0&&(St=5)}function Ra(e,t,n){var r=Ke,s=$n.transition;try{$n.transition=null,Ke=1,aA(e,t,n,r)}finally{$n.transition=s,Ke=r}return null}function aA(e,t,n,r){do co();while(Gs!==null);if(Me&6)throw Error(W(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(W(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(WE(e,i),e===At&&(wt=At=null,Dt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||_u||(_u=!0,Ej(hd,function(){return co(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=$n.transition,$n.transition=null;var o=Ke;Ke=1;var l=Me;Me|=4,oy.current=null,X2(e,n),bj(n,e),S2(qm),pd=!!Hm,qm=Hm=null,e.current=n,eA(n),AE(),Me=l,Ke=o,$n.transition=i}else e.current=n;if(_u&&(_u=!1,Gs=e,Pd=s),i=e.pendingLanes,i===0&&(Zs=null),OE(n.stateNode),hn(e,gt()),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(Ad)throw Ad=!1,e=fp,fp=null,e;return Pd&1&&e.tag!==0&&co(),i=e.pendingLanes,i&1?e===hp?Gl++:(Gl=0,hp=e):Gl=0,ma(),null}function co(){if(Gs!==null){var e=i1(Pd),t=$n.transition,n=Ke;try{if($n.transition=null,Ke=16>e?16:e,Gs===null)var r=!1;else{if(e=Gs,Gs=null,Pd=0,Me&6)throw Error(W(331));var s=Me;for(Me|=4,X=e.current;X!==null;){var i=X,o=i.child;if(X.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(X=u;X!==null;){var d=X;switch(d.tag){case 0:case 11:case 15:Ul(8,d,i)}var f=d.child;if(f!==null)f.return=d,X=f;else for(;X!==null;){d=X;var h=d.sibling,p=d.return;if(yj(d),d===u){X=null;break}if(h!==null){h.return=p,X=h;break}X=p}}}var w=i.alternate;if(w!==null){var y=w.child;if(y!==null){w.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(y!==null)}}X=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,X=o;else e:for(;X!==null;){if(i=X,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ul(9,i,i.return)}var x=i.sibling;if(x!==null){x.return=i.return,X=x;break e}X=i.return}}var v=e.current;for(X=v;X!==null;){o=X;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,X=g;else e:for(o=v;X!==null;){if(l=X,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:yf(9,l)}}catch(_){pt(l,l.return,_)}if(l===o){X=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,X=j;break e}X=l.return}}if(Me=s,ma(),Mr&&typeof Mr.onPostCommitFiberRoot=="function")try{Mr.onPostCommitFiberRoot(cf,e)}catch{}r=!0}return r}finally{Ke=n,$n.transition=t}}return!1}function Hx(e,t,n){t=Ro(n,t),t=ij(e,t,1),e=Js(e,t,1),t=Xt(),e!==null&&(Wc(e,1,t),hn(e,t))}function pt(e,t,n){if(e.tag===3)Hx(e,e,n);else for(;t!==null;){if(t.tag===3){Hx(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zs===null||!Zs.has(r))){e=Ro(n,e),e=oj(t,e,1),t=Js(t,e,1),e=Xt(),t!==null&&(Wc(t,1,e),hn(t,e));break}}t=t.return}}function iA(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Xt(),e.pingedLanes|=e.suspendedLanes&n,At===e&&(Dt&n)===n&&(St===4||St===3&&(Dt&130023424)===Dt&&500>gt()-cy?Ya(e,0):ly|=n),hn(e,t)}function Cj(e,t){t===0&&(e.mode&1?(t=mu,mu<<=1,!(mu&130023424)&&(mu=4194304)):t=1);var n=Xt();e=ls(e,t),e!==null&&(Wc(e,t,n),hn(e,n))}function oA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cj(e,n)}function lA(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(W(314))}r!==null&&r.delete(t),Cj(e,n)}var Tj;Tj=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dn.current)cn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return cn=!1,Y2(e,t,n);cn=!!(e.flags&131072)}else cn=!1,rt&&t.flags&1048576&&R1(t,jd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ju(e,t),e=t.pendingProps;var s=To(t,Ht.current);lo(t,n),s=ny(null,t,r,e,s,n);var i=ry();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,fn(r)?(i=!0,bd(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Jg(t),s.updater=gf,t.stateNode=s,s._reactInternals=t,tp(t,r,e,n),t=sp(null,t,r,!0,i,n)):(t.tag=0,rt&&i&&Gg(t),Qt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ju(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=uA(r),e=nr(r,e),s){case 0:t=rp(null,t,r,e,n);break e;case 1:t=Dx(null,t,r,e,n);break e;case 11:t=Ox(null,t,r,e,n);break e;case 14:t=Ix(null,t,r,nr(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nr(r,s),rp(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nr(r,s),Dx(e,t,r,s,n);case 3:e:{if(dj(t),e===null)throw Error(W(387));r=t.pendingProps,i=t.memoizedState,s=i.element,F1(e,t),Sd(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Ro(Error(W(423)),t),t=Mx(e,t,r,n,s);break e}else if(r!==s){s=Ro(Error(W(424)),t),t=Mx(e,t,r,n,s);break e}else for(Sn=Qs(t.stateNode.containerInfo.firstChild),Nn=t,rt=!0,cr=null,n=M1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Eo(),r===s){t=cs(e,t,n);break e}Qt(e,t,r,n)}t=t.child}return t;case 5:return W1(t),e===null&&Zm(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Vm(r,s)?o=null:i!==null&&Vm(r,i)&&(t.flags|=32),uj(e,t),Qt(e,t,o,n),t.child;case 6:return e===null&&Zm(t),null;case 13:return fj(e,t,n);case 4:return Zg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ao(t,null,r,n):Qt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nr(r,s),Ox(e,t,r,s,n);case 7:return Qt(e,t,t.pendingProps,n),t.child;case 8:return Qt(e,t,t.pendingProps.children,n),t.child;case 12:return Qt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,Ze(kd,r._currentValue),r._currentValue=o,i!==null)if(pr(i.value,o)){if(i.children===s.children&&!dn.current){t=cs(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);
vendor: 4,742 bytes, line 40
40i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=as(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Xm(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(W(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Xm(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Qt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,lo(t,n),s=Un(s),r=r(s),t.flags|=1,Qt(e,t,r,n),t.child;case 14:return r=t.type,s=nr(r,t.pendingProps),s=nr(r.type,s),Ix(e,t,r,s,n);case 15:return lj(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nr(r,s),Ju(e,t),t.tag=1,fn(r)?(e=!0,bd(t)):e=!1,lo(t,n),aj(t,r,s),tp(t,r,s,n),sp(null,t,r,!0,e,n);case 19:return hj(e,t,n);case 22:return cj(e,t,n)}throw Error(W(156,t.tag))};function Ej(e,t){return n1(e,t)}function cA(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 Wn(e,t,n,r){return new cA(e,t,n,r)}function hy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uA(e){if(typeof e=="function")return hy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rg)return 11;if(e===Og)return 14}return 2}function ea(e,t){var n=e.alternate;return n===null?(n=Wn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ed(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")hy(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case qi:return Qa(n.children,s,i,t);case Pg:o=8,s|=8;break;case Sm:return e=Wn(12,n,t,s|2),e.elementType=Sm,e.lanes=i,e;case Nm:return e=Wn(13,n,t,s),e.elementType=Nm,e.lanes=i,e;case Cm:return e=Wn(19,n,t,s),e.elementType=Cm,e.lanes=i,e;case Ww:return xf(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lw:o=10;break e;case Fw:o=9;break e;case Rg:o=11;break e;case Og:o=14;break e;case As:o=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=Wn(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Qa(e,t,n,r){return e=Wn(7,e,r,t),e.lanes=n,e}function xf(e,t,n,r){return e=Wn(22,e,r,t),e.elementType=Ww,e.lanes=n,e.stateNode={isHidden:!1},e}function Rh(e,t,n){return e=Wn(6,e,null,t),e.lanes=n,e}function Oh(e,t,n){return t=Wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dA(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=hh(0),this.expirationTimes=hh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hh(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function my(e,t,n,r,s,i,o,l,c){return e=new dA(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Wn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jg(i),e}function fA(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Aj(e){if(!e)return sa;e=e._reactInternals;e:{if(ci(e)!==e||e.tag!==1)throw Error(W(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(fn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(W(171))}if(e.tag===1){var n=e.type;if(fn(n))return A1(e,n,t)}return t}
vendor: 4,149 bytes, line 40
40function Pj(e,t,n,r,s,i,o,l,c){return e=my(n,r,!0,e,s,i,o,l,c),e.context=Aj(null),n=e.current,r=Xt(),s=Xs(n),i=as(r,s),i.callback=t??null,Js(n,i,s),e.current.lanes=s,Wc(e,s,r),hn(e,r),e}function bf(e,t,n,r){var s=t.current,i=Xt(),o=Xs(s);return n=Aj(n),t.context===null?t.context=n:t.pendingContext=n,t=as(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Js(s,t,o),e!==null&&(mr(e,s,o,i),Ku(e,s,o)),o}function Od(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 qx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function py(e,t){qx(e,t),(e=e.alternate)&&qx(e,t)}function hA(){return null}var Rj=typeof reportError=="function"?reportError:function(e){console.error(e)};function gy(e){this._internalRoot=e}wf.prototype.render=gy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));bf(e,t,null,null)};wf.prototype.unmount=gy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ti(function(){bf(null,e,null,null)}),t[os]=null}};function wf(e){this._internalRoot=e}wf.prototype.unstable_scheduleHydration=function(e){if(e){var t=c1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Is.length&&t!==0&&t<Is[n].priority;n++);Is.splice(n,0,e),n===0&&d1(e)}};function yy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vx(){}function mA(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Od(o);i.call(u)}}var o=Pj(t,r,e,0,null,!1,!1,"",Vx);return e._reactRootContainer=o,e[os]=o.current,sc(e.nodeType===8?e.parentNode:e),ti(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=Od(c);l.call(u)}}var c=my(e,0,!1,null,null,!1,!1,"",Vx);return e._reactRootContainer=c,e[os]=c.current,sc(e.nodeType===8?e.parentNode:e),ti(function(){bf(t,c,n,r)}),c}function kf(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var c=Od(o);l.call(c)}}bf(t,o,e,s)}else o=mA(n,t,e,s,r);return Od(o)}o1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=El(t.pendingLanes);n!==0&&(Mg(t,n|1),hn(t,gt()),!(Me&6)&&(Oo=gt()+500,ma()))}break;case 13:ti(function(){var r=ls(e,1);if(r!==null){var s=Xt();mr(r,e,1,s)}}),py(e,1)}};Lg=function(e){if(e.tag===13){var t=ls(e,134217728);if(t!==null){var n=Xt();mr(t,e,134217728,n)}py(e,134217728)}};l1=function(e){if(e.tag===13){var t=Xs(e),n=ls(e,t);if(n!==null){var r=Xt();mr(n,e,t,r)}py(e,t)}};c1=function(){return Ke};u1=function(e,t){var n=Ke;try{return Ke=e,t()}finally{Ke=n}};Lm=function(e,t,n){switch(t){case"input":if(Am(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=hf(r);if(!s)throw Error(W(90));zw(r),Am(r,s)}}}break;case"textarea":Bw(e,n);break;case"select":t=n.value,t!=null&&so(e,!!n.multiple,t,!1)}};Qw=uy;Jw=ti;var pA={usingClientEntryPoint:!1,Events:[zc,Qi,hf,Kw,Yw,uy]},vl={findFiberByHostInstance:Fa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gA={bundleType:vl.bundleType,version:vl.version,rendererPackageName:vl.rendererPackageName,rendererConfig:vl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ms.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=e1(e),e===null?null:e.stateNode},findFiberByHostInstance:vl.findFiberByHostInstance||hA,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{cf=Su.inject(gA),Mr=Su}catch{}}Pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pA;Pn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yy(t))throw Error(W(200));return fA(e,t,null,n)};Pn.createRoot=function(e,t){if(!yy(e))throw Error(W(299));var n=!1,r="",s=Rj;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=my(e,1,!1,null,null,n,!1,r,s),e[os]=t.current,sc(e.nodeType===8?e.parentNode:e),new gy(t)};Pn.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(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=e1(t),e=e===null?null:e.stateNode,e};Pn.flushSync=function(e){return ti(e)};Pn.hydrate=function(e,t,n){if(!jf(t))throw Error(W(200));return kf(null,e,t,!0,n)};Pn.hydrateRoot=function(e,t,n){if(!yy(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Rj;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Pj(t,null,e,1,n??null,s,!1,i,o),e[os]=t.current,sc(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 wf(t)};Pn.render=function(e,t,n){if(!jf(t))throw Error(W(200));return kf(null,e,t,!1,n)};Pn.unmountComponentAtNode=function(e){if(!jf(e))throw Error(W(40));return e._reactRootContainer?(ti(function(){kf(null,null,e,!1,function(){e._reactRootContainer=null,e[os]=null})}),!0):!1};Pn.unstable_batchedUpdates=uy;Pn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jf(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return kf(e,t,n,!1,r)};Pn.version="18.3.1-next-f1338f8080-20240426";function Oj(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Oj)}catch(e){console.error(e)}}Oj(),Ow.exports=Pn;var ui=Ow.exports;const Ij=Lc(ui);var Dj,Kx=ui;Dj=Kx.createRoot,Kx.hydrateRoot;var yA=typeof Element<"u",vA=typeof Map=="function",xA=typeof Set=="function",bA=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function td(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!td(e[r],t[r]))return!1;return!0}var i;if(vA&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!td(r.value[1],t.get(r.value[0])))return!1;return!0}if(xA&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(bA&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(yA&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!td(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var wA=function(t,n){try{return td(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const jA=Lc(wA);var kA=function(e,t,n,r,s,i,o,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,s,i,o,l],d=0;c=new Error(t.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},_A=kA;const Yx=Lc(_A);var SA=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;
40if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),l=Object.keys(n);if(o.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<o.length;u++){var d=o[u];if(!c(d))return!1;var f=t[d],h=n[d];if(i=r?r.call(s,f,h,d):void 0,i===!1||i===void 0&&f!==h)return!1}return!0};const NA=Lc(SA);var Mj=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Mj||{}),Ih={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Qx=Object.values(Mj),vy={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},CA=Object.entries(vy).reduce((e,[t,n])=>(e[n]=t,e),{}),fr="data-rh",uo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},fo=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},TA=e=>{let t=fo(e,"title");const n=fo(e,uo.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=fo(e,uo.DEFAULT_TITLE);return t||r||void 0},EA=e=>fo(e,uo.ON_CHANGE_CLIENT_STATE)||(()=>{}),Dh=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),AA=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const l=s[i].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),PA=e=>console&&typeof console.warn=="function"&&console.warn(e),xl=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&PA(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const o={};i.filter(c=>{let u;const d=Object.keys(c);for(let h=0;h<d.length;h+=1){const p=d[h],w=p.toLowerCase();t.indexOf(w)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(w==="rel"&&c[w].toLowerCase()==="stylesheet")&&(u=w),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(u=p)}if(!u||!c[u])return!1;const f=c[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][f]?!1:(o[u][f]=!0,!0)}).reverse().forEach(c=>s.push(c));const l=Object.keys(o);for(let c=0;c<l.length;c+=1){const u=l[c],d={...r[u],...o[u]};r[u]=d}return s},[]).reverse()},RA=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},OA=e=>({baseTag:AA(["href"],e),bodyAttributes:Dh("bodyAttributes",e),defer:fo(e,uo.DEFER),encode:fo(e,uo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Dh("htmlAttributes",e),linkTags:xl("link",["rel","href"],e),metaTags:xl("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:xl("noscript",["innerHTML"],e),onChangeClientState:EA(e),scriptTags:xl("script",["src","innerHTML"],e),styleTags:xl("style",["cssText"],e),title:TA(e),titleAttributes:Dh("titleAttributes",e),prioritizeSeoTags:RA(e,uo.PRIORITIZE_SEO_TAGS)}),Lj=e=>Array.isArray(e)?e.join(""):e,IA=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Mh=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(IA(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Jx=(e,t)=>({...e,[t]:void 0}),DA=["noscript","script","style"],gp=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Fj=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),MA=(e,t,n,r)=>{const s=Fj(n),i=Lj(t);return s?`<${e} ${fr}="true" ${s}>${gp(i,r)}</${e}>`:`<${e} ${fr}="true">${gp(i,r)}</${e}>`},LA=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,o=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const f=typeof i[d]>"u"?d:`${d}="${gp(i[d],n)}"`;return u?`${u} ${f}`:f},""),l=i.innerHTML||i.cssText||"",c=DA.indexOf(e)===-1;return`${r}<${e} ${fr}="true" ${o}${c?"/>":`>${l}</${e}>`}`},""),Wj=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=vy[r];return n[s||r]=e[r],n},t),FA=(e,t,n)=>{const r={key:t,[fr]:!0},s=Wj(n,r);return[z.createElement("title",s,t)]},nd=(e,t)=>t.map((n,r)=>{const s={key:r,[fr]:!0};
40return Object.keys(n).forEach(i=>{const l=vy[i]||i;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[l]=n[i]}),z.createElement(e,s)}),Dn=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>FA(e,t.title,t.titleAttributes),toString:()=>MA(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Wj(t),toString:()=>Fj(t)};default:return{toComponent:()=>nd(e,t),toString:()=>LA(e,t,n)}}},WA=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=Mh(e,Ih.meta),i=Mh(t,Ih.link),o=Mh(n,Ih.script);return{priorityMethods:{toComponent:()=>[...nd("meta",s.priority),...nd("link",i.priority),...nd("script",o.priority)],toString:()=>`${Dn("meta",s.priority,r)} ${Dn("link",i.priority,r)} ${Dn("script",o.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},$A=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:l="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:f,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:p,linkTags:d,metaTags:f,scriptTags:h}=WA(e)),{priority:p,base:Dn("base",t,r),bodyAttributes:Dn("bodyAttributes",n,r),htmlAttributes:Dn("htmlAttributes",s,r),link:Dn("link",d,r),meta:Dn("meta",f,r),noscript:Dn("noscript",i,r),script:Dn("script",h,r),style:Dn("style",o,r),title:Dn("title",{title:l,titleAttributes:c},r)}},yp=$A,Nu=[],$j=!!(typeof window<"u"&&window.document&&window.document.createElement),vp=class{constructor(e,t){Yr(this,"instances",[]);Yr(this,"canUseDOM",$j);Yr(this,"context");Yr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Nu:this.instances,add:e=>{(this.canUseDOM?Nu:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Nu:this.instances).indexOf(e);(this.canUseDOM?Nu:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=yp({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},zA={},zj=z.createContext(zA),Ua,Uj=(Ua=class extends m.Component{constructor(n){super(n);Yr(this,"helmetData");this.helmetData=new vp(this.props.context||{},Ua.canUseDOM)}render(){return z.createElement(zj.Provider,{value:this.helmetData.value},this.props.children)}},Yr(Ua,"canUseDOM",$j),Ua),wi=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${fr}]`),s=[].slice.call(r),i=[];let o;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const d=u,f=typeof l[d]>"u"?"":l[d];c.setAttribute(u,f)}c.setAttribute(fr,"true"),s.some((u,d)=>(o=d,c.isEqualNode(u)))?s.splice(o,1):i.push(c)}),s.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),i.forEach(l=>n.appendChild(l)),{oldTags:s,newTags:i}},xp=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(fr),s=r?r.split(","):[],i=[...s],o=Object.keys(t);for(const l of o){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),s.indexOf(l)===-1&&s.push(l);const u=i.indexOf(l);u!==-1&&i.splice(u,1)}for(let l=i.length-1;l>=0;l-=1)n.removeAttribute(i[l]);s.length===i.length?n.removeAttribute(fr):n.getAttribute(fr)!==o.join(",")&&n.setAttribute(fr,o.join(","))},UA=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Lj(e)),xp("title",t)},Zx=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:d,title:f,titleAttributes:h}=e;xp("body",r),xp("html",s),UA(f,h);const p={baseTag:wi("base",n),linkTags:wi("link",i),metaTags:wi("meta",o),noscriptTags:wi("noscript",l),scriptTags:wi("script",u),styleTags:wi("style",d)},w={},y={};Object.keys(p).forEach(b=>{const{newTags:x,oldTags:v}=p[b];x.length&&(w[b]=x),v.length&&(y[b]=p[b].oldTags)}),t&&t(),c(e,w,y)},bl=null,BA=e=>{bl&&cancelAnimationFrame(bl),e.defer?bl=requestAnimationFrame(()=>{Zx(e,()=>{bl=null})}):(Zx(e),bl=null)},GA=BA,Xx=class extends m.Component{constructor(){super(...arguments);Yr(this,"rendered",!1)}shouldComponentUpdate(t){return!NA(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=OA(t.get().map(i=>{const o={...i.props};return delete o.context,o}));Uj.canUseDOM?GA(s):yp&&(r=yp(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},km,Bj=(km=class extends m.Component{shouldComponentUpdate(e){return!jA(Jx(this.props,"helmetData"),Jx(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
40warnOnInvalidChildren(e,t){return Yx(Qx.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Qx.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Yx(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return z.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,o=Object.keys(i).reduce((c,u)=>(c[CA[u]||u]=i[u],c),{});let{type:l}=r;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,s),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,s);break;default:t=this.mapObjectTypeChildren(r,t,o,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof vp)){const s=r;r=new vp(s.context,!0),delete n.helmetData}return r?z.createElement(Xx,{...n,context:r.value}):z.createElement(zj.Consumer,null,s=>z.createElement(Xx,{...n,context:s}))}},Yr(km,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),km);const HA=1,qA=1e6;let Lh=0;function VA(){return Lh=(Lh+1)%Number.MAX_SAFE_INTEGER,Lh.toString()}const Fh=new Map,e0=e=>{if(Fh.has(e))return;const t=setTimeout(()=>{Fh.delete(e),Hl({type:"REMOVE_TOAST",toastId:e})},qA);Fh.set(e,t)},KA=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,HA)};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;return n?e0(n):e.toasts.forEach(r=>{e0(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)}}},rd=[];let sd={toasts:[]};function Hl(e){sd=KA(sd,e),rd.forEach(t=>{t(sd)})}function YA({...e}){const t=VA(),n=s=>Hl({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Hl({type:"DISMISS_TOAST",toastId:t});return Hl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function On(){const[e,t]=m.useState(sd);return m.useEffect(()=>(rd.push(t),()=>{const n=rd.indexOf(t);n>-1&&rd.splice(n,1)}),[e]),{...e,toast:YA,dismiss:n=>Hl({type:"DISMISS_TOAST",toastId:n})}}function q(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 t0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _f(...e){return t=>{let n=!1;const r=e.map(s=>{const i=t0(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():t0(e[s],null)}}}}function Ne(...e){return m.useCallback(_f(...e),e)}function QA(e,t){const n=m.createContext(t),r=i=>{const{children:o,...l}=i,c=m.useMemo(()=>l,Object.values(l));return a.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function s(i){const o=m.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function Gn(e,t=[]){let n=[];function r(i,o){const l=m.createContext(o),c=n.length;n=[...n,o];const u=f=>{var x;const{scope:h,children:p,...w}=f,y=((x=h==null?void 0:h[e])==null?void 0:x[c])||l,b=m.useMemo(()=>w,Object.values(w));return a.jsx(y.Provider,{value:b,children:p})};u.displayName=i+"Provider";function d(f,h){var y;const p=((y=h==null?void 0:h[e])==null?void 0:y[c])||l,w=m.useContext(p);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=n.map(o=>m.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[r,JA(s,...t)]}function JA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));
vendor: 10,695 bytes, line 40
40return function(i){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function aa(e){const t=XA(e),n=m.forwardRef((r,s)=>{const{children:i,...o}=r,l=m.Children.toArray(i),c=l.find(e3);if(c){const u=c.props.children,d=l.map(f=>f===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:f);return a.jsx(t,{...o,ref:s,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return a.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var ZA=aa("Slot");function XA(e){const t=m.forwardRef((n,r)=>{const{children:s,...i}=n;if(m.isValidElement(s)){const o=n3(s),l=t3(i,s.props);return s.type!==m.Fragment&&(l.ref=r?_f(r,o):o),m.cloneElement(s,l)}return m.Children.count(s)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gj=Symbol("radix.slottable");function Hj(e){const t=({children:n})=>a.jsx(a.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Gj,t}function e3(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gj}function t3(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]=(...l)=>{const c=i(...l);return s(...l),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function n3(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 Sf(e){const t=e+"CollectionProvider",[n,r]=Gn(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:b,children:x}=y,v=z.useRef(null),g=z.useRef(new Map).current;return a.jsx(s,{scope:b,itemMap:g,collectionRef:v,children:x})};o.displayName=t;const l=e+"CollectionSlot",c=aa(l),u=z.forwardRef((y,b)=>{const{scope:x,children:v}=y,g=i(l,x),j=Ne(b,g.collectionRef);return a.jsx(c,{ref:j,children:v})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=aa(d),p=z.forwardRef((y,b)=>{const{scope:x,children:v,...g}=y,j=z.useRef(null),_=Ne(b,j),C=i(d,x);return z.useEffect(()=>(C.itemMap.set(j,{ref:j,...g}),()=>void C.itemMap.delete(j))),a.jsx(h,{[f]:"",ref:_,children:v})});p.displayName=d;function w(y){const b=i(e+"CollectionConsumer",y);return z.useCallback(()=>{const v=b.collectionRef.current;if(!v)return[];const g=Array.from(v.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((C,N)=>g.indexOf(C.ref.current)-g.indexOf(N.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:u,ItemSlot:p},w,r]}var r3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=r3.reduce((e,t)=>{const n=aa(`Primitive.${t}`),r=m.forwardRef((s,i)=>{const{asChild:o,...l}=s,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function xy(e,t){e&&ui.flushSync(()=>e.dispatchEvent(t))}function pn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function s3(e,t=globalThis==null?void 0:globalThis.document){const n=pn(e);m.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 a3="DismissableLayer",bp="dismissableLayer.update",i3="dismissableLayer.pointerDownOutside",o3="dismissableLayer.focusOutside",n0,qj=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),di=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,u=m.useContext(qj),[d,f]=m.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=m.useState({}),w=Ne(t,N=>f(N)),y=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(b),v=d?y.indexOf(d):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,j=v>=x,_=c3(N=>{const A=N.target,R=[...u.branches].some(I=>I.contains(A));!j||R||(s==null||s(N),o==null||o(N),N.defaultPrevented||l==null||l())},h),C=u3(N=>{const A=N.target;[...u.branches].some(I=>I.contains(A))||(i==null||i(N),o==null||o(N),N.defaultPrevented||l==null||l())},h);return s3(N=>{v===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&l&&(N.preventDefault(),l()))},h),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(n0=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),r0(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=n0)}},[d,h,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),r0())},[d,u]),m.useEffect(()=>{const N=()=>p({});return document.addEventListener(bp,N),()=>document.removeEventListener(bp,N)},[]),a.jsx(ge.div,{...c,ref:w,style:{pointerEvents:g?j?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,C.onFocusCapture),onBlurCapture:q(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,_.onPointerDownCapture)})});di.displayName=a3;var l3="DismissableLayerBranch",Vj=m.forwardRef((e,t)=>{const n=m.useContext(qj),r=m.useRef(null),s=Ne(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),a.jsx(ge.div,{...e,ref:s})});Vj.displayName=l3;function c3(e,t=globalThis==null?void 0:globalThis.document){const n=pn(e),r=m.useRef(!1),s=m.useRef(()=>{});return m.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){Kj(i3,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function u3(e,t=globalThis==null?void 0:globalThis.document){const n=pn(e),r=m.useRef(!1);return m.useEffect(()=>{const s=i=>{i.target&&!r.current&&Kj(o3,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 r0(){const e=new CustomEvent(bp);document.dispatchEvent(e)}function Kj(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?xy(s,i):s.dispatchEvent(i)}var d3=di,f3=Vj,Lt=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},h3="Portal",Ko=m.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[s,i]=m.useState(!1);Lt(()=>i(!0),[]);const o=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Ij.createPortal(a.jsx(ge.div,{...r,ref:t}),o):null});Ko.displayName=h3;function m3(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var Hn=e=>{const{present:t,children:n}=e,r=p3(t),s=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=Ne(r.ref,g3(s));return typeof n=="function"||r.isPresent?m.cloneElement(s,{ref:i}):null};Hn.displayName="Presence";function p3(e){const[t,n]=m.useState(),r=m.useRef(null),s=m.useRef(e),i=m.useRef("none"),o=e?"mounted":"unmounted",[l,c]=m3(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=Cu(r.current);i.current=l==="mounted"?u:"none"},[l]),Lt(()=>{const u=r.current,d=s.current;if(d!==e){const h=i.current,p=Cu(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),Lt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=p=>{const y=Cu(r.current).includes(p.animationName);if(p.target===t&&y&&(c("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=p=>{p.target===t&&(i.current=Cu(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Cu(e){return(e==null?void 0:e.animationName)||"none"}function g3(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 y3=Cg[" useInsertionEffect ".trim().toString()]||Lt;function ia({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=v3({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:s;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=m.useCallback(d=>{var f;if(l){const h=x3(d)?d(e):d;h!==e&&((f=o.current)==null||f.call(o,h))}else i(d)},[l,e,i,o]);return[c,u]}function v3({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),s=m.useRef(n),i=m.useRef(t);return y3(()=>{i.current=t},[t]),m.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function x3(e){return typeof e=="function"}var Yj=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"}),b3="VisuallyHidden",Nf=m.forwardRef((e,t)=>
40a.jsx(ge.span,{...e,ref:t,style:{...Yj,...e.style}}));Nf.displayName=b3;var w3=Nf,by="ToastProvider",[wy,j3,k3]=Sf("Toast"),[Qj,R7]=Gn("Toast",[k3]),[_3,Cf]=Qj(by),Jj=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[l,c]=m.useState(null),[u,d]=m.useState(0),f=m.useRef(!1),h=m.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${by}\`. Expected non-empty \`string\`.`),a.jsx(wy.Provider,{scope:t,children:a.jsx(_3,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:m.useCallback(()=>d(p=>p+1),[]),onToastRemove:m.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:o})})};Jj.displayName=by;var Zj="ToastViewport",S3=["F8"],wp="toast.viewportPause",jp="toast.viewportResume",Xj=m.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=S3,label:s="Notifications ({hotkey})",...i}=e,o=Cf(Zj,n),l=j3(n),c=m.useRef(null),u=m.useRef(null),d=m.useRef(null),f=m.useRef(null),h=Ne(t,f,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;m.useEffect(()=>{const b=x=>{var g;r.length!==0&&r.every(j=>x[j]||x.code===j)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),m.useEffect(()=>{const b=c.current,x=f.current;if(w&&b&&x){const v=()=>{if(!o.isClosePausedRef.current){const C=new CustomEvent(wp);x.dispatchEvent(C),o.isClosePausedRef.current=!0}},g=()=>{if(o.isClosePausedRef.current){const C=new CustomEvent(jp);x.dispatchEvent(C),o.isClosePausedRef.current=!1}},j=C=>{!b.contains(C.relatedTarget)&&g()},_=()=>{b.contains(document.activeElement)||g()};return b.addEventListener("focusin",v),b.addEventListener("focusout",j),b.addEventListener("pointermove",v),b.addEventListener("pointerleave",_),window.addEventListener("blur",v),window.addEventListener("focus",g),()=>{b.removeEventListener("focusin",v),b.removeEventListener("focusout",j),b.removeEventListener("pointermove",v),b.removeEventListener("pointerleave",_),window.removeEventListener("blur",v),window.removeEventListener("focus",g)}}},[w,o.isClosePausedRef]);const y=m.useCallback(({tabbingDirection:b})=>{const v=l().map(g=>{const j=g.ref.current,_=[j,...F3(j)];return b==="forwards"?_:_.reverse()});return(b==="forwards"?v.reverse():v).flat()},[l]);return m.useEffect(()=>{const b=f.current;if(b){const x=v=>{var _,C,N;const g=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!g){const A=document.activeElement,R=v.shiftKey;if(v.target===b&&R){(_=u.current)==null||_.focus();return}const D=y({tabbingDirection:R?"backwards":"forwards"}),Q=D.findIndex(F=>F===A);Wh(D.slice(Q+1))?v.preventDefault():R?(C=u.current)==null||C.focus():(N=d.current)==null||N.focus()}};return b.addEventListener("keydown",x),()=>b.removeEventListener("keydown",x)}},[l,y]),a.jsxs(f3,{ref:c,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&a.jsx(kp,{ref:u,onFocusFromOutsideViewport:()=>{const b=y({tabbingDirection:"forwards"});Wh(b)}}),a.jsx(wy.Slot,{scope:n,children:a.jsx(ge.ol,{tabIndex:-1,...i,ref:h})}),w&&a.jsx(kp,{ref:d,onFocusFromOutsideViewport:()=>{const b=y({tabbingDirection:"backwards"});Wh(b)}})]})});Xj.displayName=Zj;var ek="ToastFocusProxy",kp=m.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=Cf(ek,n);return a.jsx(Nf,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const l=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});kp.displayName=ek;var Bc="Toast",N3="toast.swipeStart",C3="toast.swipeMove",T3="toast.swipeCancel",E3="toast.swipeEnd",tk=m.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[l,c]=ia({prop:r,defaultProp:s??!0,onChange:i,caller:Bc});return a.jsx(Hn,{present:n||l,children:a.jsx(R3,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:pn(e.onPause),onResume:pn(e.onResume),onSwipeStart:q(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:q(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:q(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:q(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});tk.displayName=Bc;var[A3,P3]=Qj(Bc,{onClose(){}}),R3=m.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...w}=e,y=Cf(Bc,n),[b,x]=m.useState(null),v=Ne(t,F=>x(F)),g=m.useRef(null),j=m.useRef(null),_=s||y.duration,C=m.useRef(0),N=m.useRef(_),A=m.useRef(0),{onToastAdd:R,onToastRemove:I}=y,V=pn(()=>{var ae;(b==null?void 0:b.contains(document.activeElement))&&((ae=y.viewport)==null||ae.focus()),o()}),D=m.useCallback(F=>{!F||F===1/0||(window.clearTimeout(A.current),C.current=new Date().getTime(),A.current=window.setTimeout(V,F))},[V]);m.useEffect(()=>{const F=y.viewport;if(F){const ae=()=>{D(N.current),u==null||u()},H=()=>{const O=new Date().getTime()-C.current;N.current=N.current-O,window.clearTimeout(A.current),c==null||c()};return F.addEventListener(wp,H),F.addEventListener(jp,ae),()=>{F.removeEventListener(wp,H),F.removeEventListener(jp,ae)}}},[y.viewport,_,c,u,D]),m.useEffect(()=>{i&&!y.isClosePausedRef.current&&D(_)},[i,_,y.isClosePausedRef,D]),m.useEffect(()=>(R(),()=>I()),[R,I]);const Q=m.useMemo(()=>b?lk(b):null,[b]);return y.viewport?a.jsxs(a.Fragment,{children:[Q&&a.jsx(O3,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),a.jsx(A3,{scope:n,onClose:V,children:ui.createPortal(a.jsx(wy.ItemSlot,{scope:n,children:a.jsx(d3,{asChild:!0,onEscapeKeyDown:q(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||V(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(ge.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...w,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:q(e.onKeyDown,F=>{F.key==="Escape"&&(l==null||l(F.nativeEvent),F.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,V()))}),onPointerDown:q(e.onPointerDown,F=>{F.button===0&&(g.current={x:F.clientX,y:F.clientY})}),onPointerMove:q(e.onPointerMove,F=>{if(!g.current)return;const ae=F.clientX-g.current.x,H=F.clientY-g.current.y,O=!!j.current,S=["left","right"].includes(y.swipeDirection),T=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,M=S?T(0,ae):0,Z=S?0:T(0,H),$=F.pointerType==="touch"?10:2,ie={x:M,y:Z},le={originalEvent:F,delta:ie};O?(j.current=ie,Tu(C3,f,le,{discrete:!1})):s0(ie,y.swipeDirection,$)?(j.current=ie,Tu(N3,d,le,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(ae)>$||Math.abs(H)>$)&&(g.current=null)}),onPointerUp:q(e.onPointerUp,F=>{const ae=j.current,H=F.target;if(H.hasPointerCapture(F.pointerId)&&H.releasePointerCapture(F.pointerId),j.current=null,g.current=null,ae){const O=F.currentTarget,S={originalEvent:F,delta:ae};s0(ae,y.swipeDirection,y.swipeThreshold)?Tu(E3,p,S,{discrete:!0}):Tu(T3,h,S,{discrete:!0}),O.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),O3=e=>{const{__scopeToast:t,children:n,...r}=e,s=Cf(Bc,t),[i,o]=m.useState(!1),[l,c]=m.useState(!1);return M3(()=>o(!0)),m.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:a.jsx(Ko,{asChild:!0,children:a.jsx(Nf,{...r,children:i&&a.jsxs(a.Fragment,{children:[s.label," ",n]})})})},I3="ToastTitle",nk=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(ge.div,{...r,ref:t})});nk.displayName=I3;var D3="ToastDescription",rk=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(ge.div,{...r,ref:t})});rk.displayName=D3;var sk="ToastAction",ak=m.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?a.jsx(ok,{altText:n,asChild:!0,children:a.jsx(jy,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${sk}\`. Expected non-empty \`string\`.`),null)});ak.displayName=sk;var ik="ToastClose",jy=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=P3(ik,n);return a.jsx(ok,{asChild:!0,children:a.jsx(ge.button,{type:"button",...r,ref:t,onClick:q(e.onClick,s.onClose)})})});jy.displayName=ik;var ok=m.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return a.jsx(ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function lk(e){const t=[];
vendor: 4,716 bytes, lines 40-74
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),L3(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...lk(r))}}),t}function Tu(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?xy(s,i):s.dispatchEvent(i)}var s0=(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 M3(e=()=>{}){const t=pn(e);Lt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function L3(e){return e.nodeType===e.ELEMENT_NODE}function F3(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 Wh(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var W3=Jj,ck=Xj,uk=tk,dk=nk,fk=rk,hk=ak,mk=jy;function pk(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=pk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gk(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=pk(e))&&(r&&(r+=" "),r+=t);return r}const a0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,i0=gk,ky=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return i0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],f=i==null?void 0:i[u];if(d===null)return null;const h=a0(d)||a0(f);return s[u][h]}),l=n&&Object.entries(n).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(w=>{let[y,b]=w;return Array.isArray(b)?b.includes({...i,...l}[y]):{...i,...l}[y]===b})?[...u,f,h]:u},[]);return i0(e,o,c,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 $3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yk=(...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 z3={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 U3=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...l},c)=>m.createElement("svg",{ref:c,...z3,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:yk("lucide",s),...l},[...o.map(([u,d])=>m.createElement(u,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 Ie=(e,t)=>{const n=m.forwardRef(({className:r,...s},i)=>m.createElement(U3,{ref:i,iconNode:t,className:yk(`lucide-${$3(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 vk=Ie("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 xk=Ie("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
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 o0=Ie("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"}]]);/**
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 B3=Ie("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
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 bk=Ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 ql=Ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 en=Ie("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
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 qt=Ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
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 G3=Ie("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 H3=Ie("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
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 _p=Ie("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
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 q3=Ie("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"}]]);/**
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 Id=Ie("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
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 Dd=Ie("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
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 V3=Ie("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"}]]);/**
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 wk=Ie("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
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 K3=Ie("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
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 Y3=Ie("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 Vl=Ie("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
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 Q3=Ie("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
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 Tf=Ie("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"}]]);/**
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 J3=Ie("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"}]]);/**
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 hc=Ie("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
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 _y=Ie("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
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 Z3=Ie("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"}]]);/**
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 zr=Ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
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 mc=Ie("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"}]]);/**
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 Md=Ie("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
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 X3=Ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
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 eP=Ie("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
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 oa=Ie("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 8,693 bytes, lines 215-230
215],["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"}]]);/**
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 tP=Ie("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"}]]);/**
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 nP=Ie("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"}]]);/**
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 Ef=Ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Sy="-",rP=e=>{const t=aP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const l=o.split(Sy);return l[0]===""&&l.length!==1&&l.shift(),jk(l,t)||sP(o)},getConflictingClassGroupIds:(o,l)=>{const c=n[o]||[];return l&&r[o]?[...c,...r[o]]:c}}},jk=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?jk(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Sy);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},l0=/^\[(.+)\]$/,sP=e=>{if(l0.test(e)){const t=l0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},aP=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return oP(Object.entries(e.classGroups),n).forEach(([i,o])=>{Sp(o,r,i,t)}),r},Sp=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:c0(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(iP(s)){Sp(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Sp(o,c0(t,i),n,r)})})},c0=(e,t)=>{let n=e;return t.split(Sy).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},iP=e=>e.isThemeGetter,oP=(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(([o,l])=>[t+o,l])):i);return[n,s]}):e,lP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},kk="!",cP=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=l=>{const c=[];let u=0,d=0,f;for(let b=0;b<l.length;b++){let x=l[b];if(u===0){if(x===s&&(r||l.slice(b,b+i)===t)){c.push(l.slice(d,b)),d=b+i;continue}if(x==="/"){f=b;continue}}x==="["?u++:x==="]"&&u--}const h=c.length===0?l:l.substring(d),p=h.startsWith(kk),w=p?h.substring(1):h,y=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:w,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:o}):o},uP=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},dP=e=>({cache:lP(e.cacheSize),parseClassName:cP(e),...rP(e)}),fP=/\s+/,hP=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(fP);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=n(u);let w=!!p,y=r(w?h.substring(0,p):h);if(!y){if(!w){l=u+(l.length>0?" "+l:l);continue}if(y=r(h),!y){l=u+(l.length>0?" "+l:l);continue}w=!1}const b=uP(d).join(":"),x=f?b+kk:b,v=x+y;if(i.includes(v))continue;i.push(v);const g=s(y,w);for(let j=0;j<g.length;++j){const _=g[j];i.push(x+_)}l=u+(l.length>0?" "+l:l)}return l};function mP(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=_k(t))&&(r&&(r+=" "),r+=n);return r}const _k=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_k(e[r]))&&(n&&(n+=" "),n+=t);return n};function pP(e,...t){let n,r,s,i=o;function o(c){const u=t.reduce((d,f)=>f(d),e());return n=dP(u),r=n.cache.get,s=n.cache.set,i=l,l(c)}function l(c){const u=r(c);if(u)return u;const d=hP(c,n);return s(c,d),d}return function(){return i(mP.apply(null,arguments))}}const et=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Sk=/^\[(?:([a-z-]+):)?(.+)\]$/i,gP=/^\d+\/\d+$/,yP=new Set(["px","full","screen"]),vP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xP=/\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$/,bP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qr=e=>ho(e)||yP.has(e)||gP.test(e),_s=e=>Yo(e,"length",AP),ho=e=>!!e&&!Number.isNaN(Number(e)),$h=e=>Yo(e,"number",ho),wl=e=>!!e&&Number.isInteger(Number(e)),kP=e=>e.endsWith("%")&&ho(e.slice(0,-1)),je=e=>Sk.test(e),Ss=e=>vP.test(e),_P=new Set(["length","size","percentage"]),SP=e=>Yo(e,_P,Nk),NP=e=>Yo(e,"position",Nk),CP=new Set(["image","url"]),TP=e=>Yo(e,CP,RP),EP=e=>Yo(e,"",PP),jl=()=>!0,Yo=(e,t,n)=>{const r=Sk.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},AP=e=>xP.test(e)&&!bP.test(e),Nk=()=>!1,PP=e=>wP.test(e),RP=e=>jP.test(e),OP=()=>{const e=et("colors"),t=et("spacing"),n=et("blur"),r=et("brightness"),s=et("borderColor"),i=et("borderRadius"),o=et("borderSpacing"),l=et("borderWidth"),c=et("contrast"),u=et("grayscale"),d=et("hueRotate"),f=et("invert"),h=et("gap"),p=et("gradientColorStops"),w=et("gradientColorStopPositions"),y=et("inset"),b=et("margin"),x=et("opacity"),v=et("padding"),g=et("saturate"),j=et("scale"),_=et("sepia"),C=et("skew"),N=et("space"),A=et("translate"),R=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",je,t],D=()=>[je,t],Q=()=>["",Qr,_s],F=()=>["auto",ho,je],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",je],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[ho,je];return{cacheSize:500,separator:":",theme:{colors:[jl],spacing:[Qr,_s],blur:["none","",Ss,je],brightness:Z(),borderColor:[e],borderRadius:["none","","full",Ss,je],borderSpacing:D(),borderWidth:Q(),contrast:Z(),grayscale:T(),hueRotate:Z(),invert:T(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[kP,_s],inset:V(),margin:V(),opacity:Z(),padding:D(),saturate:Z(),scale:Z(),sepia:T(),skew:Z(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",je]}],container:["container"],columns:[{columns:[Ss]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:[...ae(),je]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}
vendor: 9,948 bytes, line 230
230],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wl,je]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",je]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",wl,je]}],"grid-cols":[{"grid-cols":[jl]}],"col-start-end":[{col:["auto",{span:["full",wl,je]},je]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[jl]}],"row-start-end":[{row:["auto",{span:[wl,je]},je]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",je]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",je]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...S()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...S(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...S(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",je,t]}],"min-w":[{"min-w":[je,t,"min","max","fit"]}],"max-w":[{"max-w":[je,t,"none","full","min","max","fit","prose",{screen:[Ss]},Ss]}],h:[{h:[je,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[je,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[je,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[je,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ss,_s]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$h]}],"font-family":[{font:[jl]}],"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",je]}],"line-clamp":[{"line-clamp":["none",ho,$h]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qr,je]}],"list-image":[{"list-image":["none",je]}],"list-style-type":[{list:["none","disc","decimal",je]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qr,_s]}],"underline-offset":[{"underline-offset":["auto",Qr,je]}],"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:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je]}],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",je]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),NP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",SP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},TP]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:H()}],"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:["",...H()]}],"outline-offset":[{"outline-offset":[Qr,je]}],"outline-w":[{outline:[Qr,_s]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Qr,_s]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ss,EP]}],"shadow-color":[{shadow:[jl]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Ss,je]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[g]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",je]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",je]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",je]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[wl,je]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",je]}],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",je]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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 230
230],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",je]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qr,_s,$h]}],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"]}}},IP=pP(OP);function ue(...e){return IP(gk(e))}const DP=W3,Ck=m.forwardRef(({className:e,...t},n)=>a.jsx(ck,{ref:n,className:ue("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}));Ck.displayName=ck.displayName;const MP=ky("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"}}),Tk=m.forwardRef(({className:e,variant:t,...n},r)=>a.jsx(uk,{ref:r,className:ue(MP({variant:t}),e),...n}));Tk.displayName=uk.displayName;const LP=m.forwardRef(({className:e,...t},n)=>a.jsx(hk,{ref:n,className:ue("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}));LP.displayName=hk.displayName;const Ek=m.forwardRef(({className:e,...t},n)=>a.jsx(mk,{ref:n,className:ue("absolute right-2 top-2 rounded-md p-1 text-foreground
230/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:a.jsx(Ef,{className:"h-4 w-4"})}));Ek.displayName=mk.displayName;const Ak=m.forwardRef(({className:e,...t},n)=>a.jsx(dk,{ref:n,className:ue("text-sm font-semibold",e),...t}));Ak.displayName=dk.displayName;const Pk=m.forwardRef(({className:e,...t},n)=>a.jsx(fk,{ref:n,className:ue("text-sm opacity-90",e),...t}));Pk.displayName=fk.displayName;function FP(){const{toasts:e}=On();return a.jsxs(DP,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return a.jsxs(Tk,{...i,children:[a.jsxs("div",{className:"grid gap-1",children:[n&&a.jsx(Ak,{children:n}),r&&a.jsx(Pk,{children:r})]}),s,a.jsx(Ek,{})]},t)}),a.jsx(Ck,{})]})}var u0=["light","dark"],WP="(prefers-color-scheme: dark)",$P=m.createContext(void 0),zP={setTheme:e=>{},themes:[]},UP=()=>{var e;return(e=m.useContext($P))!=null?e:zP};m.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=s?u0.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(w,y=!1,b=!0)=>{let x=o?o[w]:w,v=y?w+"|| ''":`'${x}'`,g="";return s&&b&&!y&&u0.includes(w)&&(g+=`d.style.colorScheme = '${w}';`),n==="class"?y||x?g+=`c.add(${v})`:g+="null":x&&(g+=`d[s](n,${v})`),g},p=e?`!function(){${d}${h(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${WP}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${f}}catch(t){}}();`;return m.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:p}})});var BP=e=>{switch(e){case"success":return qP;case"info":return KP;case"warning":return VP;case"error":return YP;default:return null}},GP=Array(12).fill(0),HP=({visible:e,className:t})=>z.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},z.createElement("div",{className:"sonner-spinner"},GP.map((n,r)=>z.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),qP=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),VP=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},z.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"})),KP=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),YP=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),QP=z.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"},z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),JP=()=>{let[e,t]=z.useState(document.hidden);return z.useEffect(()=>{let n=()=>{t(document.hidden)};
230return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Np=1,ZP=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:Np++,i=this.toasts.find(l=>l.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:n}),{...l,...e,id:s,dismissible:o,title:n}):l):this.addToast({title:n,...r,dismissible:o,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)=>
230this.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,o=r.then(async c=>{if(i=["resolve",c],z.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(eR(c)&&!c.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(i=["reject",c],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;s&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,u)=>o.then(()=>i[0]==="reject"?u(i[1]):c(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Np++;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}},on=new ZP,XP=(e,t)=>{let n=(t==null?void 0:t.id)||Np++;return on.addToast({title:e,...t,id:n}),n},eR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",tR=XP,nR=()=>on.toasts,rR=()=>on.getActiveToasts();Object.assign(tR,{success:on.success,info:on.info,warning:on.warning,error:on.error,custom:on.custom,message:on.message,promise:on.promise,dismiss:on.dismiss,loading:on.loading},{getHistory:nR,getToasts:rR});function sR(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))}sR(`: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;
230left: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}
230: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%);
230--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%)}
231`);function Eu(e){return e.label!==void 0}var aR=3,iR="32px",oR="16px",d0=4e3,lR=356,cR=14,uR=20,dR=200;function Zn(...e){return e.filter(Boolean).join(" ")}function fR(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var hR=e=>{var t,n,r,s,i,o,l,c,u,d,f;let{invert:h,toast:p,unstyled:w,interacting:y,setHeights:b,visibleToasts:x,heights:v,index:g,toasts:j,expanded:_,removeToast:C,defaultRichColors:N,closeButton:A,style:R,cancelButtonStyle:I,actionButtonStyle:V,className:D="",descriptionClassName:Q="",duration:F,position:ae,gap:H,loadingIcon:O,expandByDefault:S,classNames:T,icons:M,closeButtonAriaLabel:Z="Close toast",pauseWhenPageIsHidden:$}=e,[ie,le]=z.useState(null),[We,Be]=z.useState(null),[G,Re]=z.useState(!1),[Ae,Te]=z.useState(!1),[_e,se]=z.useState(!1),[vt,Se]=z.useState(!1),[Vn,Ue]=z.useState(!1),[gn,vs]=z.useState(0),[Vt,nl]=z.useState(0),Hr=z.useRef(p.duration||F||d0),rl=z.useRef(null),jr=z.useRef(null),kr=g===0,_r=g+1<=x,xt=p.type,Sr=p.dismissible!==!1,mi=p.className||"",pi=p.descriptionClassName||"",xs=z.useMemo(()=>v.findIndex(pe=>pe.toastId===p.id)||0,[v,p.id]),bs=z.useMemo(()=>{var pe;
231return(pe=p.closeButton)!=null?pe:A},[p.closeButton,A]),ka=z.useMemo(()=>p.duration||F||d0,[p.duration,F]),ws=z.useRef(0),qr=z.useRef(0),sl=z.useRef(0),Vr=z.useRef(null),[al,gi]=ae.split("-"),Kr=z.useMemo(()=>v.reduce((pe,De,Ge)=>Ge>=xs?pe:pe+De.height,0),[v,xs]),yn=JP(),il=p.invert||h,yi=xt==="loading";qr.current=z.useMemo(()=>xs*H+Kr,[xs,Kr]),z.useEffect(()=>{Hr.current=ka},[ka]),z.useEffect(()=>{Re(!0)},[]),z.useEffect(()=>{let pe=jr.current;if(pe){let De=pe.getBoundingClientRect().height;return nl(De),b(Ge=>[{toastId:p.id,height:De,position:p.position},...Ge]),()=>b(Ge=>Ge.filter(dt=>dt.toastId!==p.id))}},[b,p.id]),z.useLayoutEffect(()=>{if(!G)return;let pe=jr.current,De=pe.style.height;pe.style.height="auto";let Ge=pe.getBoundingClientRect().height;pe.style.height=De,nl(Ge),b(dt=>dt.find(Nt=>Nt.toastId===p.id)?dt.map(Nt=>Nt.toastId===p.id?{...Nt,height:Ge}:Nt):[{toastId:p.id,height:Ge,position:p.position},...dt])},[G,p.title,p.description,b,p.id]);let Kn=z.useCallback(()=>{Te(!0),vs(qr.current),b(pe=>pe.filter(De=>De.toastId!==p.id)),setTimeout(()=>{C(p)},dR)},[p,C,b,qr]);z.useEffect(()=>{if(p.promise&&xt==="loading"||p.duration===1/0||p.type==="loading")return;let pe;return _||y||$&&yn?(()=>{if(sl.current<ws.current){let De=new Date().getTime()-ws.current;Hr.current=Hr.current-De}sl.current=new Date().getTime()})():Hr.current!==1/0&&(ws.current=new Date().getTime(),pe=setTimeout(()=>{var De;(De=p.onAutoClose)==null||De.call(p,p),Kn()},Hr.current)),()=>clearTimeout(pe)},[_,y,p,xt,$,yn,Kn]),z.useEffect(()=>{p.delete&&Kn()},[Kn,p.delete]);function ol(){var pe,De,Ge;return M!=null&&M.loading?z.createElement("div",{className:Zn(T==null?void 0:T.loader,(pe=p==null?void 0:p.classNames)==null?void 0:pe.loader,"sonner-loader"),"data-visible":xt==="loading"},M.loading):O?z.createElement("div",{className:Zn(T==null?void 0:T.loader,(De=p==null?void 0:p.classNames)==null?void 0:De.loader,"sonner-loader"),"data-visible":xt==="loading"},O):z.createElement(HP,{className:Zn(T==null?void 0:T.loader,(Ge=p==null?void 0:p.classNames)==null?void 0:Ge.loader),visible:xt==="loading"})}return z.createElement("li",{tabIndex:0,ref:jr,className:Zn(D,mi,T==null?void 0:T.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[xt],(n=p==null?void 0:p.classNames)==null?void 0:n[xt]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:N,"data-styled":!(p.jsx||p.unstyled||w),"data-mounted":G,"data-promise":!!p.promise,"data-swiped":Vn,"data-removed":Ae,"data-visible":_r,"data-y-position":al,"data-x-position":gi,"data-index":g,"data-front":kr,"data-swiping":_e,"data-dismissible":Sr,"data-type":xt,"data-invert":il,"data-swipe-out":vt,"data-swipe-direction":We,"data-expanded":!!(_||S&&G),style:{"--index":g,"--toasts-before":g,"--z-index":j.length-g,"--offset":`${Ae?gn:qr.current}px`,"--initial-height":S?"auto":`${Vt}px`,...R,...p.style},onDragEnd:()=>{se(!1),le(null),Vr.current=null},onPointerDown:pe=>{yi||!Sr||(rl.current=new Date,vs(qr.current),pe.target.setPointerCapture(pe.pointerId),pe.target.tagName!=="BUTTON"&&(se(!0),Vr.current={x:pe.clientX,y:pe.clientY}))},onPointerUp:()=>{var pe,De,Ge,dt;if(vt||!Sr)return;Vr.current=null;let Nt=Number(((pe=jr.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),In=Number(((De=jr.current)==null?void 0:De.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Yn=new Date().getTime()-((Ge=rl.current)==null?void 0:Ge.getTime()),vn=ie==="x"?Nt:In,Qn=Math.abs(vn)/Yn;if(Math.abs(vn)>=uR||Qn>.11){vs(qr.current),(dt=p.onDismiss)==null||dt.call(p,p),Be(ie==="x"?Nt>0?"right":"left":In>0?"down":"up"),Kn(),Se(!0),Ue(!1);return}se(!1),le(null)},onPointerMove:pe=>{var De,Ge,dt,Nt;if(!Vr.current||!Sr||((De=window.getSelection())==null?void 0:De.toString().length)>0)return;let In=pe.clientY-Vr.current.y,Yn=pe.clientX-Vr.current.x,vn=(Ge=e.swipeDirections)!=null?Ge:fR(ae);!ie&&(Math.abs(Yn)>1||Math.abs(In)>1)&&le(Math.abs(Yn)>Math.abs(In)?"x":"y");let Qn={x:0,y:0};ie==="y"?(vn.includes("top")||vn.includes("bottom"))&&(vn.includes("top")&&In<0||vn.includes("bottom")&&In>0)&&(Qn.y=In):ie==="x"&&(vn.includes("left")||vn.includes("right"))&&(vn.includes("left")&&Yn<0||vn.includes("right")&&Yn>0)&&(Qn.x=Yn),(Math.abs(Qn.x)>0||Math.abs(Qn.y)>0)&&Ue(!0),(dt=jr.current)==null||dt.style.setProperty("--swipe-amount-x",`${Qn.x}px`),(Nt=jr.current)==null||Nt.style.setProperty("--swipe-amount-y",`${Qn.y}px`)}},bs&&!p.jsx?z.createElement("button",{"aria-label":Z,"data-disabled":yi,"data-close-button":!0,onClick:yi||!Sr?()=>{}:()=>{var pe;Kn(),(pe=p.onDismiss)==null||pe.call(p,p)},className:Zn(T==null?void 0:T.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=M==null?void 0:M.close)!=null?i:QP):null,p.jsx||m.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:z.createElement(z.Fragment,null,xt||p.icon||p.promise?z.createElement("div",{"data-icon":"",className:Zn(T==null?void 0:T.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)}
231,p.promise||p.type==="loading"&&!p.icon?p.icon||ol():null,p.type!=="loading"?p.icon||(M==null?void 0:M[xt])||BP(xt):null):null,z.createElement("div",{"data-content":"",className:Zn(T==null?void 0:T.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},z.createElement("div",{"data-title":"",className:Zn(T==null?void 0:T.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},typeof p.title=="function"?p.title():p.title),p.description?z.createElement("div",{"data-description":"",className:Zn(Q,pi,T==null?void 0:T.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),m.isValidElement(p.cancel)?p.cancel:p.cancel&&Eu(p.cancel)?z.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||I,onClick:pe=>{var De,Ge;Eu(p.cancel)&&Sr&&((Ge=(De=p.cancel).onClick)==null||Ge.call(De,pe),Kn())},className:Zn(T==null?void 0:T.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,m.isValidElement(p.action)?p.action:p.action&&Eu(p.action)?z.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||V,onClick:pe=>{var De,Ge;Eu(p.action)&&((Ge=(De=p.action).onClick)==null||Ge.call(De,pe),!pe.defaultPrevented&&Kn())},className:Zn(T==null?void 0:T.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};function f0(){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 mR(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",l=i?oR:iR;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=l:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}var pR=m.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:f,duration:h,style:p,visibleToasts:w=aR,toastOptions:y,dir:b=f0(),gap:x=cR,loadingIcon:v,icons:g,containerAriaLabel:j="Notifications",pauseWhenPageIsHidden:_}=e,[C,N]=z.useState([]),A=z.useMemo(()=>Array.from(new Set([r].concat(C.filter($=>$.position).map($=>$.position)))),[C,r]),[R,I]=z.useState([]),[V,D]=z.useState(!1),[Q,F]=z.useState(!1),[ae,H]=z.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),O=z.useRef(null),S=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=z.useRef(null),M=z.useRef(!1),Z=z.useCallback($=>{N(ie=>{var le;return(le=ie.find(We=>We.id===$.id))!=null&&le.delete||on.dismiss($.id),ie.filter(({id:We})=>We!==$.id)})},[]);return z.useEffect(()=>on.subscribe($=>{if($.dismiss){N(ie=>ie.map(le=>le.id===$.id?{...le,delete:!0}:le));return}setTimeout(()=>{Ij.flushSync(()=>{N(ie=>{let le=ie.findIndex(We=>We.id===$.id);return le!==-1?[...ie.slice(0,le),{...ie[le],...$},...ie.slice(le+1)]:[$,...ie]})})})}),[]),z.useEffect(()=>{if(d!=="system"){H(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:ie})=>{H(ie?"dark":"light")})}catch{$.addListener(({matches:le})=>{try{H(le?"dark":"light")}catch(We){console.error(We)}})}},[d]),z.useEffect(()=>{C.length<=1&&D(!1)},[C]),z.useEffect(()=>{let $=ie=>{var le,We;s.every(Be=>ie[Be]||ie.code===Be)&&(D(!0),(le=O.current)==null||le.focus()),ie.code==="Escape"&&(document.activeElement===O.current||(We=O.current)!=null&&We.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[s]),z.useEffect(()=>{if(O.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,M.current=!1)}},[O.current]),z.createElement("section",{ref:t,"aria-label":`${j} ${S}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map(($,ie)=>{var le;let[We,Be]=$.split("-");return C.length?z.createElement("ol",{key:$,dir:b==="auto"?f0():b,tabIndex:-1,ref:O,className:l,"data-sonner-toaster":!0,"data-theme":ae,"data-y-position":We,"data-lifted":V&&C.length>1&&!i,"data-x-position":Be,style:{"--front-toast-height":`${((le=R[0])==null?void 0:le.height)||0}px`,"--width":`${lR}px`,"--gap":`${x}px`,...p,...mR(c,u)},onBlur:G=>{M.current&&!G.currentTarget.contains(G.relatedTarget)&&(M.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||M.current||(M.current=!0,T.current=G.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{Q||D(!1)},onDragEnd:()=>D(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},C.filter(G=>!G.position&&ie===0||G.position===$).map((G,Re)=>{var Ae,Te;return z.createElement(hR,{key:G.id,icons:g,index:Re,toast:G,defaultRichColors:f,duration:(Ae=y==null?void 0:y.duration)!=null?Ae:h,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:w,closeButton:(Te=y==null?void 0:y.closeButton)!=null?Te:o,interacting:Q,position:$,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:Z,toasts:C.filter(_e=>_e.position==G.position),heights:R.filter(_e=>_e.position==G.position),setHeights:I,expandByDefault:i,gap:x,loadingIcon:v,expanded:V,pauseWhenPageIsHidden:_,swipeDirections:e.swipeDirections})})):null}))});const gR=({...e})=>{const{theme:t="system"}=UP();return a.jsx(pR,{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 yR=Cg[" useId ".trim().toString()]||(()=>{}),vR=0;function Fr(e){const[t,n]=m.useState(yR());return Lt(()=>{n(r=>r??String(vR++))},[e]),t?`radix-${t}`:""}const xR=["top","right","bottom","left"],la=Math.min,jn=Math.max,Ld=Math.round,Au=Math.floor,Wr=e=>({x:e,y:e}
vendor: 9,400 bytes, line 231
231),bR={left:"right",right:"left",bottom:"top",top:"bottom"},wR={start:"end",end:"start"};function Cp(e,t,n){return jn(e,la(t,n))}function us(e,t){return typeof e=="function"?e(t):e}function ds(e){return e.split("-")[0]}function Qo(e){return e.split("-")[1]}function Ny(e){return e==="x"?"y":"x"}function Cy(e){return e==="y"?"height":"width"}const jR=new Set(["top","bottom"]);function Ir(e){return jR.has(ds(e))?"y":"x"}function Ty(e){return Ny(Ir(e))}function kR(e,t,n){n===void 0&&(n=!1);const r=Qo(e),s=Ty(e),i=Cy(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Fd(o)),[o,Fd(o)]}function _R(e){const t=Fd(e);return[Tp(e),t,Tp(t)]}function Tp(e){return e.replace(/start|end/g,t=>wR[t])}const h0=["left","right"],m0=["right","left"],SR=["top","bottom"],NR=["bottom","top"];function CR(e,t,n){switch(e){case"top":case"bottom":return n?t?m0:h0:t?h0:m0;case"left":case"right":return t?SR:NR;default:return[]}}function TR(e,t,n,r){const s=Qo(e);let i=CR(ds(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Tp)))),i}function Fd(e){return e.replace(/left|right|bottom|top/g,t=>bR[t])}function ER(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rk(e){return typeof e!="number"?ER(e):{top:e,right:e,bottom:e,left:e}}function Wd(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 p0(e,t,n){let{reference:r,floating:s}=e;const i=Ir(t),o=Ty(t),l=Cy(o),c=ds(t),u=i==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[l]/2-s[l]/2;let p;switch(c){case"top":p={x:d,y:r.y-s.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-s.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Qo(t)){case"start":p[o]-=h*(n&&u?-1:1);break;case"end":p[o]+=h*(n&&u?-1:1);break}return p}const AR=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=p0(u,r,c),h=r,p={},w=0;for(let y=0;y<l.length;y++){const{name:b,fn:x}=l[y],{x:v,y:g,data:j,reset:_}=await x({x:d,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});d=v??d,f=g??f,p={...p,[b]:{...p[b],...j}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(u=_.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):_.rects),{x:d,y:f}=p0(u,h,c)),y=-1)}return{x:d,y:f,placement:h,strategy:s,middlewareData:p}};async function pc(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=us(t,e),w=Rk(p),b=l[h?f==="floating"?"reference":"floating":f],x=Wd(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),v=f==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,g=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),j=await(i.isElement==null?void 0:i.isElement(g))?await(i.getScale==null?void 0:i.getScale(g))||{x:1,y:1}:{x:1,y:1},_=Wd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:g,strategy:c}):v);return{top:(x.top-_.top+w.top)/j.y,bottom:(_.bottom-x.bottom+w.bottom)/j.y,left:(x.left-_.left+w.left)/j.x,right:(_.right-x.right+w.right)/j.x}}const PR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=us(e,t)||{};if(u==null)return{};const f=Rk(d),h={x:n,y:r},p=Ty(s),w=Cy(p),y=await o.getDimensions(u),b=p==="y",x=b?"top":"left",v=b?"bottom":"right",g=b?"clientHeight":"clientWidth",j=i.reference[w]+i.reference[p]-h[p]-i.floating[w],_=h[p]-i.reference[p],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let N=C?C[g]:0;(!N||!await(o.isElement==null?void 0:o.isElement(C)))&&(N=l.floating[g]||i.floating[w]);const A=j/2-_/2,R=N/2-y[w]/2-1,I=la(f[x],R),V=la(f[v],R),D=I,Q=N-y[w]-V,F=N/2-y[w]/2+A,ae=Cp(D,F,Q),H=!c.arrow&&Qo(s)!=null&&F!==ae&&i.reference[w]/2-(F<D?I:V)-y[w]/2<0,O=H?F<D?F-D:F-Q:0;return{[p]:h[p]+O,data:{[p]:ae,centerOffset:F-ae-O,...H&&{alignmentOffset:O}},reset:H}}}),RR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:y=!0,...b}=us(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=ds(s),v=Ir(l),g=ds(l)===l,j=await(c.isRTL==null?void 0:c.isRTL(u.floating)),_=h||(g||!y?[Fd(l)]:_R(l)),C=w!=="none";!h&&C&&_.push(...TR(l,y,w,j));const N=[l,..._],A=await pc(t,b),R=[];let I=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&R.push(A[x]),f){const F=kR(s,o,j);R.push(A[F[0]],A[F[1]])}if(I=[...I,{placement:s,overflows:R}],!R.every(F=>F<=0)){var V,D;const F=(((V=i.flip)==null?void 0:V.index)||0)+1,ae=N[F];if(ae&&(!(f==="alignment"?v!==Ir(ae):!1)||I.every(S=>S.overflows[0]>0&&Ir(S.placement)===v)))return{data:{index:F,overflows:I},reset:{placement:ae}};let H=(D=I.filter(O=>O.overflows[0]<=0).sort((O,S)=>O.overflows[1]-S.overflows[1])[0])==null?void 0:D.placement;if(!H)switch(p){case"bestFit":{var Q;const O=(Q=I.filter(S=>{if(C){const T=Ir(S.placement);return T===v||T==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(T=>T>0).reduce((T,M)=>T+M,0)]).sort((S,T)=>S[1]-T[1])[0])==null?void 0:Q[0];O&&(H=O);break}case"initialPlacement":H=l;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function g0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function y0(e){return xR.some(t=>e[t]>=0)}const OR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=us(e,t);switch(r){case"referenceHidden":{const i=await pc(t,{...s,elementContext:"reference"}),o=g0(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:y0(o)}}}case"escaped":{const i=await pc(t,{...s,altBoundary:!0}),o=g0(i,n.floating);return{data:{escapedOffsets:o,escaped:y0(o)}}}default:return{}}}}},Ok=new Set(["left","top"]);async function IR(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=ds(n),l=Qo(n),c=Ir(n)==="y",u=Ok.has(o)?-1:1,d=i&&c?-1:1,f=us(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),c?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const DR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=t,c=await IR(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},MR=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:o=!1,limiter:l={fn:b=>{let{x,y:v}=b;return{x,y:v}}},...c}=us(e,t),u={x:n,y:r},d=await pc(t,c),f=Ir(ds(s)),h=Ny(f);let p=u[h],w=u[f];if(i){const b=h==="y"?"top":"left",x=h==="y"?"bottom":"right",v=p+d[b],g=p-d[x];p=Cp(v,p,g)}if(o){const b=f==="y"?"top":"left",x=f==="y"?"bottom":"right",v=w+d[b],g=w-d[x];w=Cp(v,w,g)}const y=l.fn({...t,[h]:p,[f]:w});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[h]:i,[f]:o}}}}}},LR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=us(e,t),d={x:n,y:r},f=Ir(s),h=Ny(f);let p=d[h],w=d[f];const y=us(l,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const g=h==="y"?"height":"width",j=i.reference[h]-i.floating[g]+b.mainAxis,_=i.reference[h]+i.reference[g]-b.mainAxis;p<j?p=j:p>_&&(p=_)}if(u){var x,v;const g=h==="y"?"width":"height",j=Ok.has(ds(s)),_=i.reference[f]-i.floating[g]+(j&&((x=o.offset)==null?void 0:x[f])||0)+(j?0:b.crossAxis),C=i.reference[f]+i.reference[g]+(j?0:((v=o.offset)==null?void 0:v[f])||0)-(j?b.crossAxis:0);w<_?w=_:w>C&&(w=C)}return{[h]:p,[f]:w}}}},FR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...u}=us(e,t),d=await pc(t,u),f=ds(s),h=Qo(s),p=Ir(s)==="y",{width:w,height:y}=i.floating;let b,x;f==="top"||f==="bottom"?(b=f,x=h===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(x=f,b=h==="end"?"top":"bottom");const v=y-d.top-d.bottom,g=w-d.left-d.right,j=la(y-d[b],v),_=la(w-d[x],g),C=!t.middlewareData.shift;let N=j,A=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=v),C&&!h){const I=jn(d.left,0),V=jn(d.right,0),D=jn(d.top,0),Q=jn(d.bottom,0);p?A=w-2*(I!==0||V!==0?I+V:jn(d.left,d.right)):N=y-2*(D!==0||Q!==0?D+
vendor: 4,412 bytes, line 231
231Q:jn(d.top,d.bottom))}await c({...t,availableWidth:A,availableHeight:N});const R=await o.getDimensions(l.floating);return w!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function Af(){return typeof window<"u"}function Jo(e){return Ik(e)?(e.nodeName||"").toLowerCase():"#document"}function Cn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gr(e){var t;return(t=(Ik(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ik(e){return Af()?e instanceof Node||e instanceof Cn(e).Node:!1}function gr(e){return Af()?e instanceof Element||e instanceof Cn(e).Element:!1}function Ur(e){return Af()?e instanceof HTMLElement||e instanceof Cn(e).HTMLElement:!1}function v0(e){return!Af()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Cn(e).ShadowRoot}const WR=new Set(["inline","contents"]);function Gc(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=yr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!WR.has(s)}const $R=new Set(["table","td","th"]);function zR(e){return $R.has(Jo(e))}const UR=[":popover-open",":modal"];function Pf(e){return UR.some(t=>{try{return e.matches(t)}catch{return!1}})}const BR=["transform","translate","scale","rotate","perspective"],GR=["transform","translate","scale","rotate","perspective","filter"],HR=["paint","layout","strict","content"];function Ey(e){const t=Ay(),n=gr(e)?yr(e):e;return BR.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)||GR.some(r=>(n.willChange||"").includes(r))||HR.some(r=>(n.contain||"").includes(r))}function qR(e){let t=ca(e);for(;Ur(t)&&!Io(t);){if(Ey(t))return t;if(Pf(t))return null;t=ca(t)}return null}function Ay(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const VR=new Set(["html","body","#document"]);function Io(e){return VR.has(Jo(e))}function yr(e){return Cn(e).getComputedStyle(e)}function Rf(e){return gr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ca(e){if(Jo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||v0(e)&&e.host||Gr(e);return v0(t)?t.host:t}function Dk(e){const t=ca(e);return Io(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ur(t)&&Gc(t)?t:Dk(t)}function gc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Dk(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Cn(s);if(i){const l=Ep(o);return t.concat(o,o.visualViewport||[],Gc(s)?s:[],l&&n?gc(l):[])}return t.concat(s,gc(s,[],n))}function Ep(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mk(e){const t=yr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Ur(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,l=Ld(n)!==i||Ld(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function Py(e){return gr(e)?e:e.contextElement}function mo(e){const t=Py(e);if(!Ur(t))return Wr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Mk(t);let o=(i?Ld(n.width):n.width)/r,l=(i?Ld(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const KR=Wr(0);function Lk(e){const t=Cn(e);return!Ay()||!t.visualViewport?KR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function YR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Cn(e)?!1:t}function ni(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Py(e);let o=Wr(1);t&&(r?gr(r)&&(o=mo(r)):o=mo(e));const l=YR(i,n,r)?Lk(i):Wr(0);let c=(s.left+l.x)/o.x,u=(s.top+l.y)/o.y,d=s.width/o.x,f=s.height/o.y;if(i){const h=Cn(i),p=r&&gr(r)?Cn(r):r;let w=h,y=Ep(w);for(;y&&r&&p!==w;){const b=mo(y),x=y.getBoundingClientRect(),v=yr(y),g=x.left+(y.clientLeft+parseFloat(v.paddingLeft))*b.x,j=x.top+(y.clientTop+parseFloat(v.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,f*=b.y,c+=g,u+=j,w=Cn(y),y=Ep(w)}}return Wd({width:d,height:f,x:c,y:u})}function Ry(e,t){const n=Rf(e).scrollLeft;return t?t.left+n:ni(Gr(e)).left+n}function Fk(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Ry(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function QR(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Gr(r),l=t?Pf(t.floating):!1;if(r===o||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Wr(1);const d=Wr(0),f=Ur(r);
vendor: 13,871 bytes, line 231
231if((f||!f&&!i)&&((Jo(r)!=="body"||Gc(o))&&(c=Rf(r)),Ur(r))){const p=ni(r);u=mo(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const h=o&&!f&&!i?Fk(o,c,!0):Wr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function JR(e){return Array.from(e.getClientRects())}function ZR(e){const t=Gr(e),n=Rf(e),r=e.ownerDocument.body,s=jn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=jn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Ry(e);const l=-n.scrollTop;return yr(r).direction==="rtl"&&(o+=jn(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}function XR(e,t){const n=Cn(e),r=Gr(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,c=0;if(s){i=s.width,o=s.height;const u=Ay();(!u||u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:l,y:c}}const eO=new Set(["absolute","fixed"]);function tO(e,t){const n=ni(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Ur(e)?mo(e):Wr(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=s*i.x,u=r*i.y;return{width:o,height:l,x:c,y:u}}function x0(e,t,n){let r;if(t==="viewport")r=XR(e,n);else if(t==="document")r=ZR(Gr(e));else if(gr(t))r=tO(t,n);else{const s=Lk(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Wd(r)}function Wk(e,t){const n=ca(e);return n===t||!gr(n)||Io(n)?!1:yr(n).position==="fixed"||Wk(n,t)}function nO(e,t){const n=t.get(e);if(n)return n;let r=gc(e,[],!1).filter(l=>gr(l)&&Jo(l)!=="body"),s=null;const i=yr(e).position==="fixed";let o=i?ca(e):e;for(;gr(o)&&!Io(o);){const l=yr(o),c=Ey(o);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&eO.has(s.position)||Gc(o)&&!c&&Wk(e,o))?r=r.filter(d=>d!==o):s=l,o=ca(o)}return t.set(e,r),r}function rO(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Pf(t)?[]:nO(t,this._c):[].concat(n),r],l=o[0],c=o.reduce((u,d)=>{const f=x0(t,d,s);return u.top=jn(f.top,u.top),u.right=la(f.right,u.right),u.bottom=la(f.bottom,u.bottom),u.left=jn(f.left,u.left),u},x0(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function sO(e){const{width:t,height:n}=Mk(e);return{width:t,height:n}}function aO(e,t,n){const r=Ur(t),s=Gr(t),i=n==="fixed",o=ni(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Wr(0);function u(){c.x=Ry(s)}if(r||!r&&!i)if((Jo(t)!=="body"||Gc(s))&&(l=Rf(t)),r){const p=ni(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else s&&u();i&&!r&&s&&u();const d=s&&!r&&!i?Fk(s,l):Wr(0),f=o.left+l.scrollLeft-c.x-d.x,h=o.top+l.scrollTop-c.y-d.y;return{x:f,y:h,width:o.width,height:o.height}}function zh(e){return yr(e).position==="static"}function b0(e,t){if(!Ur(e)||yr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Gr(e)===n&&(n=n.ownerDocument.body),n}function $k(e,t){const n=Cn(e);if(Pf(e))return n;if(!Ur(e)){let s=ca(e);for(;s&&!Io(s);){if(gr(s)&&!zh(s))return s;s=ca(s)}return n}let r=b0(e,t);for(;r&&zR(r)&&zh(r);)r=b0(r,t);return r&&Io(r)&&zh(r)&&!Ey(r)?n:r||qR(e)||n}const iO=async function(e){const t=this.getOffsetParent||$k,n=this.getDimensions,r=await n(e.floating);return{reference:aO(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function oO(e){return yr(e).direction==="rtl"}const lO={convertOffsetParentRelativeRectToViewportRelativeRect:QR,getDocumentElement:Gr,getClippingRect:rO,getOffsetParent:$k,getElementRects:iO,getClientRects:JR,getDimensions:sO,getScale:mo,isElement:gr,isRTL:oO};function zk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cO(e,t){let n=null,r;const s=Gr(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:p}=u;if(l||t(),!h||!p)return;const w=Au(f),y=Au(s.clientWidth-(d+h)),b=Au(s.clientHeight-(f+p)),x=Au(d),g={rootMargin:-w+"px "+-y+"px "+-b+"px "+-x+"px",threshold:jn(0,la(1,c))||1};let j=!0;function _(C){const N=C[0].intersectionRatio;if(N!==c){if(!j)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!zk(u,e.getBoundingClientRect())&&o(),j=!1}try{n=new IntersectionObserver(_,{...g,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return o(!0),i}function uO(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Py(e),d=s||i?[...u?gc(u):[],...gc(t)]:[];d.forEach(x=>{s&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const f=u&&l?cO(u,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(x=>{let[v]=x;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let w,y=c?ni(e):null;c&&b();function b(){const x=ni(e);y&&!zk(y,x)&&n(),y=x,w=requestAnimationFrame(b)}return n(),()=>{var x;d.forEach(v=>{s&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f==null||f(),(x=p)==null||x.disconnect(),p=null,c&&cancelAnimationFrame(w)}}const dO=DR,fO=MR,hO=RR,mO=FR,pO=OR,w0=PR,gO=LR,yO=(e,t,n)=>{const r=new Map,s={platform:lO,...n},i={...s.platform,_c:r};return AR(e,t,{...s,platform:i})};var vO=typeof document<"u",xO=function(){},ad=vO?m.useLayoutEffect:xO;function $d(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(!$d(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)&&!$d(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Uk(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function j0(e,t){const n=Uk(e);return Math.round(t*n)/n}function Uh(e){const t=m.useRef(e);return ad(()=>{t.current=e}),t}function bO(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=m.useState(r);$d(h,r)||p(r);const[w,y]=m.useState(null),[b,x]=m.useState(null),v=m.useCallback(S=>{S!==C.current&&(C.current=S,y(S))},[]),g=m.useCallback(S=>{S!==N.current&&(N.current=S,x(S))},[]),j=i||w,_=o||b,C=m.useRef(null),N=m.useRef(null),A=m.useRef(d),R=c!=null,I=Uh(c),V=Uh(s),D=Uh(u),Q=m.useCallback(()=>{if(!C.current||!N.current)return;const S={placement:t,strategy:n,middleware:h};V.current&&(S.platform=V.current),yO(C.current,N.current,S).then(T=>{const M={...T,isPositioned:D.current!==!1};F.current&&!$d(A.current,M)&&(A.current=M,ui.flushSync(()=>{f(M)}))})},[h,t,n,V,D]);ad(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(S=>({...S,isPositioned:!1})))},[u]);const F=m.useRef(!1);ad(()=>(F.current=!0,()=>{F.current=!1}),[]),ad(()=>{if(j&&(C.current=j),_&&(N.current=_),j&&_){if(I.current)return I.current(j,_,Q);Q()}},[j,_,Q,I,R]);const ae=m.useMemo(()=>({reference:C,floating:N,setReference:v,setFloating:g}),[v,g]),H=m.useMemo(()=>({reference:j,floating:_}),[j,_]),O=m.useMemo(()=>{const S={position:n,left:0,top:0};if(!H.floating)return S;const T=j0(H.floating,d.x),M=j0(H.floating,d.y);return l?{...S,transform:"translate("+T+"px, "+M+"px)",...Uk(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:M}},[n,l,H.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:Q,refs:ae,elements:H,floatingStyles:O}),[d,Q,ae,H,O])}const wO=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?w0({element:r.current,padding:s}).fn(n):{}:r?w0({element:r,padding:s}).fn(n):{}}}},jO=(e,t)=>({...dO(e),options:[e,t]}),kO=(e,t)=>({...fO(e),options:[e,t]}),_O=(e,t)=>({...gO(e),options:[e,t]}),SO=(e,t)=>({...hO(e),options:[e,t]}),NO=(e,t)=>({...mO(e),options:[e,t]}),CO=(e,t)=>({...pO(e),options:[e,t]}),TO=(e,t)=>({...wO(e),options:[e,t]});var EO="Arrow",Bk=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return a.jsx(ge.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});Bk.displayName=EO;var AO=Bk;function Gk(e){const[t,n]=m.useState(void 0);return Lt(()=>{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 o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Oy="Popper",[Hk,pa]=Gn(Oy),[PO,qk]=Hk(Oy),Vk=e=>{const{__scopePopper:t,children:n}=e,[r,s]=m.useState(null);return a.jsx(PO,{scope:t,anchor:r,onAnchorChange:s,children:n})};Vk.displayName=Oy;var Kk="PopperAnchor",Yk=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=qk(Kk,n),o=m.useRef(null),l=Ne(t,o);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:a.jsx(ge.div,{...s,ref:l})});Yk.displayName=Kk;var Iy="PopperContent",[RO,OO]=Hk(Iy),Qk=m.forwardRef((e,t)=>{var G,Re,Ae,Te,_e,se;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:w,...y}=e,b=qk(Iy,n),[x,v]=m.useState(null),g=Ne(t,vt=>v(vt)),[j,_]=m.useState(null),C=Gk(j),N=(C==null?void 0:C.width)??0,A=(C==null?void 0:C.height)??0,R=r+(i!=="center"?"-"+i:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(u)?u:[u],D=V.length>0,Q={padding:I,boundary:V.filter(DO),altBoundary:D},{refs:F,floatingStyles:ae,placement:H,isPositioned:O,middlewareData:S}=bO({strategy:"fixed",placement:R,whileElementsMounted:(...vt)=>uO(...vt,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[jO({mainAxis:s+A,alignmentAxis:o}),c&&kO({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?_O():void 0,...Q}),c&&SO({...Q}),NO({...Q,apply:({elements:vt,rects:Se,availableWidth:Vn,availableHeight:Ue})=>{const{width:gn,height:vs}=Se.reference,Vt=vt.floating.style;Vt.setProperty("--radix-popper-available-width",`${Vn}px`),Vt.setProperty("--radix-popper-available-height",`${Ue}px`),Vt.setProperty("--radix-popper-anchor-width",`${gn}px`),Vt.setProperty("--radix-popper-anchor-height",`${vs}px`)}}),j&&TO({element:j,padding:l}),MO({arrowWidth:N,arrowHeight:A}),h&&CO({strategy:"referenceHidden",...Q})]}),[T,M]=Xk(H),Z=pn(w);Lt(()=>{O&&(Z==null||Z())},[O,Z]);const $=(G=S.arrow)==null?void 0:G.x,ie=(Re=S.arrow)==null?void 0:Re.y,le=((Ae=S.arrow)==null?void 0:Ae.centerOffset)!==0,[We,Be]=m.useState();return Lt(()=>{x&&Be(window.getComputedStyle(x).zIndex)},[x]),a.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:O?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:We,"--radix-popper-transform-origin":[(Te=S.transformOrigin)==null?void 0:Te.x,(_e=S.transformOrigin)==null?void 0:_e.y].join(" "),...((se=S.hide)==null?void 0:se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(RO,{scope:n,placedSide:T,onArrowChange:_,arrowX:$,arrowY:ie,shouldHideArrow:le,children:a.jsx(ge.div,{"data-side":T,"data-align":M,...y,ref:g,style:{...y.style,animation:O?void 0:"none"}})})})});Qk.displayName=Iy;var Jk="PopperArrow",IO={top:"bottom",right:"left",bottom:"top",left:"right"},Zk=m.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=OO(Jk,r),o=IO[i.placedSide];return a.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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:a.jsx(AO,{...s,ref:n,style:{...s.style,display:"block"}})})});Zk.displayName=Jk;function DO(e){return e!==null}var MO=e=>({name:"transformOrigin",options:e,fn(t){var b,x,v;const{placement:n,rects:r,middlewareData:s}=t,o=((b=s.arrow)==null?void 0:b.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=Xk(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((x=s.arrow)==null?void 0:x.x)??0)+l/2,p=(((v=s.arrow)==null?void 0:v.y)??0)+c/2;let w="",y="";return u==="bottom"?(w=o?f:`${h}px`,y=`${-c}px`):u==="top"?(w=o?f:`${h}px`,y=`${r.floating.height+c}px`):u==="right"?(w=`${-c}px`,y=o?f:`${p}px`):u==="left"&&(w=`${r.floating.width+c}px`,y=o?f:`${p}px`),{data:{x:w,y}}}});function Xk(e){const[t,n="center"]=e.split("-");return[t,n]}var Dy=Vk,Hc=Yk,Of=Qk,If=Zk,[Df,O7]=Gn("Tooltip",[pa]),My=pa(),e_="TooltipProvider",LO=700,k0="tooltip.open",[FO,t_]=Df(e_),n_=e=>{const{__scopeTooltip:t,delayDuration:n=LO,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=m.useRef(!0),l=m.useRef(!1),c=m.useRef(0);return m.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),a.jsx(FO,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 4,659 bytes, line 231
231o.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:m.useCallback(u=>{l.current=u},[]),disableHoverableContent:s,children:i})};n_.displayName=e_;var r_="Tooltip",[I7,Mf]=Df(r_),Ap="TooltipTrigger",WO=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Mf(Ap,n),i=t_(Ap,n),o=My(n),l=m.useRef(null),c=Ne(t,l,s.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),f=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),a.jsx(Hc,{asChild:!0,...o,children:a.jsx(ge.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:q(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:q(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:q(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:q(e.onBlur,s.onClose),onClick:q(e.onClick,s.onClose)})})});WO.displayName=Ap;var $O="TooltipPortal",[D7,zO]=Df($O,{forceMount:void 0}),Do="TooltipContent",s_=m.forwardRef((e,t)=>{const n=zO(Do,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=Mf(Do,e.__scopeTooltip);return a.jsx(Hn,{present:r||o.open,children:o.disableHoverableContent?a.jsx(a_,{side:s,...i,ref:t}):a.jsx(UO,{side:s,...i,ref:t})})}),UO=m.forwardRef((e,t)=>{const n=Mf(Do,e.__scopeTooltip),r=t_(Do,e.__scopeTooltip),s=m.useRef(null),i=Ne(t,s),[o,l]=m.useState(null),{trigger:c,onClose:u}=n,d=s.current,{onPointerInTransitChange:f}=r,h=m.useCallback(()=>{l(null),f(!1)},[f]),p=m.useCallback((w,y)=>{const b=w.currentTarget,x={x:w.clientX,y:w.clientY},v=VO(x,b.getBoundingClientRect()),g=KO(x,v),j=YO(y.getBoundingClientRect()),_=JO([...g,...j]);l(_),f(!0)},[f]);return m.useEffect(()=>()=>h(),[h]),m.useEffect(()=>{if(c&&d){const w=b=>p(b,d),y=b=>p(b,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",y)}}},[c,d,p,h]),m.useEffect(()=>{if(o){const w=y=>{const b=y.target,x={x:y.clientX,y:y.clientY},v=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),g=!QO(x,o);v?h():g&&(h(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,o,u,h]),a.jsx(a_,{...e,ref:i})}),[BO,GO]=Df(r_,{isInside:!1}),HO=Hj("TooltipContent"),a_=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=Mf(Do,n),u=My(n),{onClose:d}=c;return m.useEffect(()=>(document.addEventListener(k0,d),()=>document.removeEventListener(k0,d)),[d]),m.useEffect(()=>{if(c.trigger){const f=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),a.jsx(di,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:a.jsxs(Of,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.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:[a.jsx(HO,{children:r}),a.jsx(BO,{scope:n,isInside:!0,children:a.jsx(w3,{id:c.contentId,role:"tooltip",children:s||r})})]})})});s_.displayName=Do;var i_="TooltipArrow",qO=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=My(n);return GO(i_,n).isInside?null:a.jsx(If,{...s,...r,ref:t})});qO.displayName=i_;function VO(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 KO(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 YO(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 QO(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;
231o=i++){const l=t[i],c=t[o],u=l.x,d=l.y,f=c.x,h=c.y;d>r!=h>r&&n<(f-u)*(r-d)/(h-d)+u&&(s=!s)}return s}function JO(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),ZO(t)}function ZO(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],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.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],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.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 XO=n_,o_=s_;const e4=XO,t4=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(o_,{ref:r,sideOffset:t,className:ue("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}));t4.displayName=o_.displayName;var Lf=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(){}},Ff=typeof window>"u"||"Deno"in globalThis;function rr(){}function n4(e,t){return typeof e=="function"?e(t):e}function r4(e){return typeof e=="number"&&e>=0&&e!==1/0}function s4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pp(e,t){return typeof e=="function"?e(t):e}function a4(e,t){return typeof e=="function"?e(t):e}function _0(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Ly(o,t.options))return!1}else if(!vc(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||i&&!i(t))}function S0(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(yc(t.options.mutationKey)!==yc(i))return!1}else if(!vc(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Ly(e,t){return((t==null?void 0:t.queryKeyHashFn)||yc)(e)}function yc(e){return JSON.stringify(e,(t,n)=>Rp(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function vc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>vc(e[n],t[n])):!1}function l_(e,t){if(e===t)return e;const n=N0(e)&&N0(t);if(n||Rp(e)&&Rp(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{},c=new Set(r);let u=0;for(let d=0;d<o;d++){const f=n?d:i[d];(!n&&c.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(l[f]=void 0,u++):(l[f]=l_(e[f],t[f]),l[f]===e[f]&&e[f]!==void 0&&u++)}return s===o&&u===s?e:l}return t}function N0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rp(e){if(!C0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!C0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function C0(e){return Object.prototype.toString.call(e)==="[object Object]"}function i4(e){return new Promise(t=>{setTimeout(t,e)})}function o4(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?l_(e,t):t}function l4(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function c4(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Fy=Symbol();function c_(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Fy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ba,Fs,xo,mw,u4=(mw=class extends Lf{constructor(){super();$e(this,Ba);$e(this,Fs);$e(this,xo);be(this,xo,t=>{if(!Ff&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,Fs)||this.setEventListener(P(this,xo))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Fs))==null||t.call(this),be(this,Fs,void 0))}setEventListener(t){var n;be(this,xo,t),(n=P(this,Fs))==null||n.call(this),be(this,Fs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Ba)!==t&&(be(this,Ba,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 3,618 bytes, line 231
231this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,Ba)=="boolean"?P(this,Ba):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ba=new WeakMap,Fs=new WeakMap,xo=new WeakMap,mw),u_=new u4,bo,Ws,wo,pw,d4=(pw=class extends Lf{constructor(){super();$e(this,bo,!0);$e(this,Ws);$e(this,wo);be(this,wo,t=>{if(!Ff&&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(){P(this,Ws)||this.setEventListener(P(this,wo))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Ws))==null||t.call(this),be(this,Ws,void 0))}setEventListener(t){var n;be(this,wo,t),(n=P(this,Ws))==null||n.call(this),be(this,Ws,t(this.setOnline.bind(this)))}setOnline(t){P(this,bo)!==t&&(be(this,bo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,bo)}},bo=new WeakMap,Ws=new WeakMap,wo=new WeakMap,pw),zd=new d4;function f4(){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 h4(e){return Math.min(1e3*2**e,3e4)}function d_(e){return(e??"online")==="online"?zd.isOnline():!0}var f_=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Bh(e){return e instanceof f_}function h_(e){let t=!1,n=0,r=!1,s;const i=f4(),o=y=>{var b;r||(h(new f_(y)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>u_.isFocused()&&(e.networkMode==="always"||zd.isOnline())&&e.canRun(),d=()=>d_(e.networkMode)&&e.canRun(),f=y=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,y),s==null||s(),i.resolve(y))},h=y=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,y),s==null||s(),i.reject(y))},p=()=>new Promise(y=>{var b;s=x=>{(r||u())&&y(x)},(b=e.onPause)==null||b.call(e)}).then(()=>{var y;s=void 0,r||(y=e.onContinue)==null||y.call(e)}),w=()=>{if(r)return;let y;const b=n===0?e.initialPromise:void 0;try{y=b??e.fn()}catch(x){y=Promise.reject(x)}Promise.resolve(y).then(f).catch(x=>{var C;if(r)return;const v=e.retry??(Ff?0:3),g=e.retryDelay??h4,j=typeof g=="function"?g(n,x):g,_=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,x);if(t||!_){h(x);return}n++,(C=e.onFail)==null||C.call(e,n,x),i4(j).then(()=>u()?void 0:p()).then(()=>{t?h(x):w()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?w():p().then(w),i)}}var m4=e=>setTimeout(e,0);function p4(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=m4;const i=l=>{t?e.push(l):s(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var Zt=p4(),Ga,gw,m_=(gw=class{constructor(){$e(this,Ga)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),r4(this.gcTime)&&be(this,Ga,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ff?1/0:5*60*1e3))}clearGcTimeout(){P(this,Ga)&&(clearTimeout(P(this,Ga)),be(this,Ga,void 0))}},Ga=new WeakMap,gw),jo,Ha,Mn,qa,Bt,Dc,Va,ar,Zr,yw,g4=(yw=class extends m_{constructor(t){super();$e(this,ar);$e(this,jo);$e(this,Ha);$e(this,Mn);$e(this,qa);$e(this,Bt);$e(this,Dc);
vendor: 2,580 bytes, line 231
231$e(this,Va);be(this,Va,!1),be(this,Dc,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,qa,t.client),be(this,Mn,P(this,qa).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,jo,v4(this.options)),this.state=t.state??P(this,jo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,Bt))==null?void 0:t.promise}setOptions(t){this.options={...P(this,Dc),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,Mn).remove(this)}setData(t,n){const r=o4(this.state.data,t,this.options);return Wt(this,ar,Zr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Wt(this,ar,Zr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=P(this,Bt))==null?void 0:r.promise;return(s=P(this,Bt))==null||s.cancel(t),n?n.then(rr).catch(rr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,jo))}isActive(){return this.observers.some(t=>a4(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fy||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Pp(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:!s4(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Bt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Bt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,Mn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,Bt)&&(P(this,Va)?P(this,Bt).cancel({revert:!0}):P(this,Bt).cancelRetry()),this.scheduleGc()),P(this,Mn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Wt(this,ar,Zr).call(this,{type:"invalidate"})}
vendor: 13,738 bytes, line 231
231fetch(t,n){var u,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,Bt))return P(this,Bt).continueRetry(),P(this,Bt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(be(this,Va,!0),r.signal)})},i=()=>{const h=c_(this.options,n),w=(()=>{const y={client:P(this,qa),queryKey:this.queryKey,meta:this.meta};return s(y),y})();return be(this,Va,!1),this.options.persister?this.options.persister(h,w,this):h(w)},l=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,qa),state:this.state,fetchFn:i};return s(h),h})();(u=this.options.behavior)==null||u.onFetch(l,this),be(this,Ha,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Wt(this,ar,Zr).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const c=h=>{var p,w,y,b;Bh(h)&&h.silent||Wt(this,ar,Zr).call(this,{type:"error",error:h}),Bh(h)||((w=(p=P(this,Mn).config).onError)==null||w.call(p,h,this),(b=(y=P(this,Mn).config).onSettled)==null||b.call(y,this.state.data,h,this)),this.scheduleGc()};return be(this,Bt,h_({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,w,y,b;if(h===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(x){c(x);return}(w=(p=P(this,Mn).config).onSuccess)==null||w.call(p,h,this),(b=(y=P(this,Mn).config).onSettled)==null||b.call(y,h,this.state.error,this),this.scheduleGc()},onError:c,onFail:(h,p)=>{Wt(this,ar,Zr).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{Wt(this,ar,Zr).call(this,{type:"pause"})},onContinue:()=>{Wt(this,ar,Zr).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),P(this,Bt).start()}},jo=new WeakMap,Ha=new WeakMap,Mn=new WeakMap,qa=new WeakMap,Bt=new WeakMap,Dc=new WeakMap,Va=new WeakMap,ar=new WeakSet,Zr=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,...y4(r.data,this.options),fetchMeta:t.meta??null};case"success":return be(this,Ha,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 Bh(s)&&s.revert&&P(this,Ha)?{...P(this,Ha),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),Zt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,Mn).notify({query:this,type:"updated",action:t})})},yw);function y4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:d_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function v4(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 Er,vw,x4=(vw=class extends Lf{constructor(t={}){super();$e(this,Er);this.config=t,be(this,Er,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Ly(s,n);let o=this.get(i);return o||(o=new g4({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){P(this,Er).has(t.queryHash)||(P(this,Er).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,Er).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,Er).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Zt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,Er).get(t)}getAll(){return[...P(this,Er).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>_0(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>_0(t,r)):n}notify(t){Zt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Zt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Zt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Er=new WeakMap,vw),Ar,Yt,Ka,Pr,Ts,xw,b4=(xw=class extends m_{constructor(t){super();$e(this,Pr);$e(this,Ar);$e(this,Yt);$e(this,Ka);this.mutationId=t.mutationId,be(this,Yt,t.mutationCache),be(this,Ar,[]),this.state=t.state||w4(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Ar).includes(t)||(P(this,Ar).push(t),this.clearGcTimeout(),P(this,Yt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,Ar,P(this,Ar).filter(n=>n!==t)),this.scheduleGc(),P(this,Yt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Ar).length||(this.state.status==="pending"?this.scheduleGc():P(this,Yt).remove(this))}continue(){var t;return((t=P(this,Ka))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,c,u,d,f,h,p,w,y,b,x,v,g,j,_,C,N,A;const n=()=>{Wt(this,Pr,Ts).call(this,{type:"continue"})};be(this,Ka,h_({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,I)=>{Wt(this,Pr,Ts).call(this,{type:"failed",failureCount:R,error:I})},onPause:()=>{Wt(this,Pr,Ts).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Yt).canRun(this)}));const r=this.state.status==="pending",s=!P(this,Ka).canStart();try{if(r)n();else{Wt(this,Pr,Ts).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=P(this,Yt).config).onMutate)==null?void 0:o.call(i,t,this));const I=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));I!==this.state.context&&Wt(this,Pr,Ts).call(this,{type:"pending",context:I,variables:t,isPaused:s})}const R=await P(this,Ka).start();return await((d=(u=P(this,Yt).config).onSuccess)==null?void 0:d.call(u,R,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,R,t,this.state.context)),await((w=(p=P(this,Yt).config).onSettled)==null?void 0:w.call(p,R,null,this.state.variables,this.state.context,this)),await((b=(y=this.options).onSettled)==null?void 0:b.call(y,R,null,t,this.state.context)),Wt(this,Pr,Ts).call(this,{type:"success",data:R}),R}catch(R){try{throw await((v=(x=P(this,Yt).config).onError)==null?void 0:v.call(x,R,t,this.state.context,this)),await((j=(g=this.options).onError)==null?void 0:j.call(g,R,t,this.state.context)),await((C=(_=P(this,Yt).config).onSettled)==null?void 0:C.call(_,void 0,R,this.state.variables,this.state.context,this)),await((A=(N=this.options).onSettled)==null?void 0:A.call(N,void 0,R,t,this.state.context)),R}finally{Wt(this,Pr,Ts).call(this,{type:"error",error:R})}}finally{P(this,Yt).runNext(this)}}},Ar=new WeakMap,Yt=new WeakMap,Ka=new WeakMap,Pr=new WeakSet,Ts=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),Zt.batch(()=>{P(this,Ar).forEach(r=>{r.onMutationUpdate(t)}),P(this,Yt).notify({mutation:this,type:"updated",action:t})})},xw);function w4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ns,ir,Mc,bw,j4=(bw=class extends Lf{constructor(t={}){super();$e(this,ns);$e(this,ir);$e(this,Mc);this.config=t,be(this,ns,new Set),be(this,ir,new Map),be(this,Mc,0)}build(t,n,r){const s=new b4({mutationCache:this,mutationId:++lu(this,Mc)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){P(this,ns).add(t);const n=Pu(t);if(typeof n=="string"){const r=P(this,ir).get(n);r?r.push(t):P(this,ir).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,ns).delete(t)){const n=Pu(t);if(typeof n=="string"){const r=P(this,ir).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&P(this,ir).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Pu(t);if(typeof n=="string"){const r=P(this,ir).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=Pu(t);if(typeof n=="string"){const s=(r=P(this,ir).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(){Zt.batch(()=>{P(this,ns).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,ns).clear(),P(this,ir).clear()})}getAll(){return Array.from(P(this,ns))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>S0(n,r))}findAll(t={}){return this.getAll().filter(n=>S0(t,n))}notify(t){Zt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Zt.batch(()=>Promise.all(t.map(n=>n.continue().catch(rr))))}},ns=new WeakMap,ir=new WeakMap,Mc=new WeakMap,bw);function Pu(e){var t;return(t=e.options.scope)==null?void 0:t.id}function T0(e){return{onFetch:(t,n)=>{var d,f,h,p,w;const r=t.options,s=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let y=!1;const b=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},x=c_(t.options,t.fetchOptions),v=async(g,j,_)=>{if(y)return Promise.reject();if(j==null&&g.pages.length)return Promise.resolve(g);const N=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:j,direction:_?"backward":"forward",meta:t.options.meta};return b(V),V})(),A=await x(N),{maxPages:R}=t.options,I=_?c4:l4;return{pages:I(g.pages,A,R),pageParams:I(g.pageParams,j,R)}};if(s&&i.length){const g=s==="backward",j=g?k4:E0,_={pages:i,pageParams:o},C=j(r,_);l=await v(_,C,g)}else{const g=e??i.length;do{const j=c===0?o[0]??r.initialPageParam:E0(r,l);if(c>0&&j==null)break;l=await v(l,j),c++}while(c<g)}return l};t.options.persister?t.fetchFn=()=>{var y,b;return(b=(y=t.options).persister)==null?void 0:b.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function E0(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 k4(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 ft,$s,zs,ko,_o,Us,So,No,ww,_4=(ww=class{constructor(e={}){$e(this,ft);$e(this,$s);$e(this,zs);$e(this,ko);$e(this,_o);$e(this,Us);$e(this,So);$e(this,No);be(this,ft,e.queryCache||new x4),be(this,$s,e.mutationCache||new j4),be(this,zs,e.defaultOptions||{}),be(this,ko,new Map),be(this,_o,new Map),be(this,Us,0)}mount(){lu(this,Us)._++,P(this,Us)===1&&(be(this,So,u_.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,ft).onFocus())})),be(this,No,zd.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,ft).onOnline())})))}unmount(){var e,t;lu(this,Us)._--,P(this,Us)===0&&((e=P(this,So))==null||e.call(this),be(this,So,void 0),(t=P(this,No))==null||t.call(this),be(this,No,void 0))}isFetching(e){return P(this,ft).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,$s).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,ft).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,ft).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pp(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,ft).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=P(this,ft).get(r.queryHash),i=s==null?void 0:s.state.data,o=n4(t,i);if(o!==void 0)return P(this,ft).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Zt.batch(()=>P(this,ft).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,ft).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,ft);Zt.batch(()=>
231{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,ft);return Zt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Zt.batch(()=>P(this,ft).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(rr).catch(rr)}invalidateQueries(e,t={}){return Zt.batch(()=>(P(this,ft).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=Zt.batch(()=>P(this,ft).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(rr)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(rr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,ft).build(this,t);return n.isStaleByTime(Pp(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rr).catch(rr)}fetchInfiniteQuery(e){return e.behavior=T0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rr).catch(rr)}ensureInfiniteQueryData(e){return e.behavior=T0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zd.isOnline()?P(this,$s).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,ft)}getMutationCache(){return P(this,$s)}getDefaultOptions(){return P(this,zs)}setDefaultOptions(e){be(this,zs,e)}setQueryDefaults(e,t){P(this,ko).set(yc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,ko).values()],n={};return t.forEach(r=>{vc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,_o).set(yc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,_o).values()],n={};return t.forEach(r=>{vc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,zs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ly(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===Fy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,zs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,ft).clear(),P(this,$s).clear()}},ft=new WeakMap,$s=new WeakMap,zs=new WeakMap,ko=new WeakMap,_o=new WeakMap,Us=new WeakMap,So=new WeakMap,No=new WeakMap,ww),S4=m.createContext(void 0),N4=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(S4.Provider,{value:e,children:t}));/**
232 * @remix-run/router v1.23.0
233 *
234 * Copyright (c) Remix Software Inc.
235 *
236 * This source code is licensed under the MIT license found in the
237 * LICENSE.md file in the root directory of this source tree.
238 *
239 * @license MIT
240 */function xc(){return xc=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},xc.apply(this,arguments)}var Hs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Hs||(Hs={}));const A0="popstate";function C4(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:l}=r.location;return Op("",{pathname:i,search:o,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ud(s)}return E4(t,n,null,e)}function yt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function p_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function T4(){return Math.random().toString(36).substr(2,8)}function P0(e,t){return{usr:e.state,key:e.key,idx:t}}function Op(e,t,n,r){return n===void 0&&(n=null),xc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Zo(t):t,{state:n,key:t&&t.key||r||T4()})}function Ud(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 Zo(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 E4(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,l=Hs.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(xc({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){l=Hs.Pop;let b=d(),x=b==null?null:b-u;u=b,c&&c({action:l,location:y.location,delta:x})}function h(b,x){l=Hs.Push;let v=Op(y.location,b,x);u=d()+1;let g=P0(v,u),j=y.createHref(v);try{o.pushState(g,"",j)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;s.location.assign(j)}i&&c&&c({action:l,location:y.location,delta:1})}function p(b,x){l=Hs.Replace;let v=Op(y.location,b,x);u=d();let g=P0(v,u),j=y.createHref(v);o.replaceState(g,"",j),i&&c&&c({action:l,location:y.location,delta:0})}function w(b){let x=s.location.origin!=="null"?s.location.origin:s.location.href,v=typeof b=="string"?b:Ud(b);return v=v.replace(/ $/,"%20"),yt(x,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,x)}let y={get action(){return l},get location(){return e(s,o)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(A0,f),c=b,()=>{s.removeEventListener(A0,f),c=null}},createHref(b){return t(s,b)},createURL:w,encodeLocation(b){let x=w(b);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:h,replace:p,go(b){return o.go(b)}};return y}var R0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(R0||(R0={}));function A4(e,t,n){return n===void 0&&(n="/"),P4(e,t,n,!1)}function P4(e,t,n,r){let s=typeof t=="string"?Zo(t):t,i=Wy(s.pathname||"/",n);if(i==null)return null;let o=g_(e);R4(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=B4(i);l=z4(o[c],u,r)}return l}function g_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(yt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
240id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=ta([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(yt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),g_(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:W4(u,i.index),routesMeta:d})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,o);else for(let c of y_(i.path))s(i,o,c)}),t}function y_(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 o=y_(r.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function R4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const O4=/^:[\w-]+$/,I4=3,D4=2,M4=1,L4=10,F4=-2,O0=e=>e==="*";function W4(e,t){let n=e.split("/"),r=n.length;return n.some(O0)&&(r+=F4),t&&(r+=D4),n.filter(s=>!O0(s)).reduce((s,i)=>s+(O4.test(i)?I4:i===""?M4:L4),r)}function $4(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 z4(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=I0({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),h=c.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=I0({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!f)return null;
vendor: 6,917 bytes, lines 240-249
240Object.assign(s,f.params),o.push({params:s,pathname:ta([i,f.pathname]),pathnameBase:V4(ta([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=ta([i,f.pathnameBase]))}return o}function I0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=U4(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:h,isOptional:p}=d;if(h==="*"){let y=l[f]||"";o=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const w=l[f];return p&&!w?u[h]=void 0:u[h]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function U4(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),p_(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,(o,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function B4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return p_(!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 Wy(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 G4(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Zo(e):e;return{pathname:n?n.startsWith("/")?n:H4(n,t):t,search:K4(r),hash:Y4(s)}}function H4(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 Gh(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 q4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $y(e,t){let n=q4(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function zy(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Zo(e):(s=xc({},e),yt(!s.pathname||!s.pathname.includes("?"),Gh("?","pathname","search",s)),yt(!s.pathname||!s.pathname.includes("#"),Gh("#","pathname","hash",s)),yt(!s.search||!s.search.includes("#"),Gh("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}l=f>=0?t[f]:"/"}let c=G4(s,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const ta=e=>e.join("/").replace(/\/\/+/g,"/"),V4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),K4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Y4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Q4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const v_=["post","put","patch","delete"];new Set(v_);const J4=["get",...v_];new Set(J4);/**
241 * React Router v6.30.1
242 *
243 * Copyright (c) Remix Software Inc.
244 *
245 * This source code is licensed under the MIT license found in the
246 * LICENSE.md file in the root directory of this source tree.
247 *
248 * @license MIT
249 */function bc(){return bc=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},bc.apply(this,arguments)}const Uy=m.createContext(null),Z4=m.createContext(null),ga=m.createContext(null),Wf=m.createContext(null),ps=m.createContext({outlet:null,matches:[],isDataRoute:!1}),x_=m.createContext(null);function X4(e,t){let{relative:n}=t===void 0?{}:t;Xo()||yt(!1);let{basename:r,navigator:s}=m.useContext(ga),{hash:i,pathname:o,search:l}=w_(e,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:ta([r,o])),s.createHref({pathname:c,search:l,hash:i})}function Xo(){return m.useContext(Wf)!=null}function br(){return Xo()||yt(!1),m.useContext(Wf).location}function b_(e){m.useContext(ga).static||m.useLayoutEffect(e)}function ya(){let{isDataRoute:e}=m.useContext(ps);return e?fI():eI()}function eI(){Xo()||yt(!1);let e=m.useContext(Uy),{basename:t,future:n,navigator:r}=m.useContext(ga),{matches:s}=m.useContext(ps),{pathname:i}=br(),o=JSON.stringify($y(s,n.v7_relativeSplatPath)),l=m.useRef(!1);return b_(()=>{l.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=zy(u,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ta([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}function By(){let{matches:e}=m.useContext(ps),t=e[e.length-1];return t?t.params:{}}function w_(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(ga),{matches:s}=m.useContext(ps),{pathname:i}=br(),o=JSON.stringify($y(s,r.v7_relativeSplatPath));return m.useMemo(()=>zy(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function tI(e,t){return nI(e,t)}function nI(e,t,n,r){Xo()||yt(!1);let{navigator:s}=m.useContext(ga),{matches:i}=m.useContext(ps),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=br(),d;if(t){var f;let b=typeof t=="string"?Zo(t):t;c==="/"||(f=b.pathname)!=null&&f.startsWith(c)||yt(!1),d=b}else d=u;let h=d.pathname||"/",p=h;if(c!=="/"){let b=c.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=A4(e,{pathname:p}),y=oI(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:ta([c,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:ta([c,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&y?m.createElement(Wf.Provider,{value:{location:bc({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Hs.Pop}},y):y}function rI(){let e=dI(),t=Q4(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 m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application 
249Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:s},n):null,null)}const sI=m.createElement(rI,null);class aI extends m.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?m.createElement(ps.Provider,{value:this.props.routeContext},m.createElement(x_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function iI(e){let{routeContext:t,match:n,children:r}=e,s=m.useContext(Uy);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(ps.Provider,{value:t},r)}function oI(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 o=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let d=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||yt(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:p}=n,w=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||w){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,w=!1,y=null,b=null;n&&(p=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||sI,c&&(u<0&&h===0?(w=!0,b=null):u===h&&(w=!0,b=f.route.hydrateFallbackElement||null)));let x=t.concat(o.slice(0,h+1)),v=()=>{let g;return p?g=y:w?g=b:f.route.Component?g=m.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=d,m.createElement(iI,{match:f,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:g})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?m.createElement(aI,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:v(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):v()},null)}var j_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(j_||{}),Bd=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}(Bd||{});function lI(e){let t=m.useContext(Uy);return t||yt(!1),t}function cI(e){let t=m.useContext(Z4);return t||yt(!1),t}function uI(e){let t=m.useContext(ps);return t||yt(!1),t}function k_(e){let t=uI(),n=t.matches[t.matches.length-1];return n.route.id||yt(!1),n.route.id}function dI(){var e;let t=m.useContext(x_),n=cI(Bd.UseRouteError),r=k_(Bd.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function fI(){let{router:e}=lI(j_.UseNavigateStable),t=k_(Bd.UseNavigateStable),n=m.useRef(!1);return b_(()=>{n.current=!0}),m.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,bc({fromRouteId:t},i)))},[e,t])}function hI(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function mI(e){let{to:t,replace:n,state:r,relative:s}=e;Xo()||yt(!1);let{future:i,static:o}=m.useContext(ga),{matches:l}=m.useContext(ps),{pathname:c}=br(),u=ya(),d=zy(t,$y(l,i.v7_relativeSplatPath),c,s==="path"),f=JSON.stringify(d);return m.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:s}),[u,f,s,n,r]),null}function Y(e){yt(!1)}function pI(e){let{basename:t="/",children:n=null,location:r,navigationType:s=
249Hs.Pop,navigator:i,static:o=!1,future:l}=e;Xo()&&yt(!1);let c=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:i,static:o,future:bc({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof r=="string"&&(r=Zo(r));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:w="default"}=r,y=m.useMemo(()=>{let b=Wy(d,c);return b==null?null:{location:{pathname:b,search:f,hash:h,state:p,key:w},navigationType:s}},[c,d,f,h,p,w,s]);return y==null?null:m.createElement(ga.Provider,{value:u},m.createElement(Wf.Provider,{children:n,value:y}))}function gI(e){let{children:t,location:n}=e;return tI(Ip(t),n)}new Promise(()=>{});function Ip(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,s)=>{if(!m.isValidElement(r))return;let i=[...t,s];if(r.type===m.Fragment){n.push.apply(n,Ip(r.props.children,i));return}r.type!==Y&&yt(!1),!r.props.index||!r.props.children||yt(!1);let o={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&&(o.children=Ip(r.props.children,i)),n.push(o)}),n}/**
250 * React Router DOM v6.30.1
251 *
252 * Copyright (c) Remix Software Inc.
253 *
254 * This source code is licensed under the MIT license found in the
255 * LICENSE.md file in the root directory of this source tree.
256 *
257 * @license MIT
258 */function Dp(){return Dp=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},Dp.apply(this,arguments)}function yI(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 vI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xI(e,t){return e.button===0&&(!t||t==="_self")&&!vI(e)}const bI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],wI="6";try{window.__reactRouterVersion=wI}catch{}const jI="startTransition",D0=Cg[jI];function kI(e){let{basename:t,children:n,future:r,window:s}=e,i=m.useRef();i.current==null&&(i.current=C4({window:s,v5Compat:!0}));let o=i.current,[l,c]=m.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=m.useCallback(f=>{u&&D0?D0(()=>c(f)):c(f)},[c,u]);return m.useLayoutEffect(()=>o.listen(d),[o,d]),m.useEffect(()=>hI(r),[r]),m.createElement(pI,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const _I=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K=m.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,h=yI(t,bI),{basename:p}=m.useContext(ga),w,y=!1;if(typeof u=="string"&&SI.test(u)&&(w=u,_I))try{let g=new URL(window.location.href),j=u.startsWith("//")?new URL(g.protocol+u):new URL(u),_=Wy(j.pathname,p);j.origin===g.origin&&_!=null?u=_+j.search+j.hash:y=!0}catch{}let b=X4(u,{relative:s}),x=NI(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:f});function v(g){r&&r(g),g.defaultPrevented||x(g)}return m.createElement("a",Dp({},h,{href:w||b,onClick:y||i?r:v,ref:n,target:c}))});var M0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(M0||(M0={}));var L0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(L0||(L0={}));function NI(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,c=ya(),u=br(),d=w_(e,{relative:o});return m.useCallback(f=>{if(xI(f,n)){f.preventDefault();let h=r!==void 0?r:Ud(u)===Ud(d);c(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:l})}},[u,c,d,r,s,n,e,i,o,l])}const He=({to:e,permanent:t=!0})=>{const n=br(),r=ya(),s=e+n.search+n.hash;m.useEffect(()=>{r(s,{replace:!0})},[r,s]);const i=typeof window<"u"?window.location.origin:"https://corbanenergygroup.com";return a.jsxs(Bj,{children:[a.jsx("link",{rel:"canonical",href:`${i}${e}`}),a.jsx("meta",{name:"robots",content:"noindex, follow"}),a.jsx("meta",{httpEquiv:"refresh",content:`0; url=${s}`}),a.jsx("meta",{name:"redirect-type",content:t?"301":"302"})]})},CI=()=>{const{pathname:e}=br();return m.useEffect(()=>{window.scrollTo(0,0)},[e]),null},wc=ky("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"}}),ye=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?ZA:"button";return a.jsx(o,{className:ue(wc({variant:t,size:n,className:e})),ref:i,...s})});ye.displayName="Button";var TI=m.createContext(void 0);function Gy(e){const t=m.useContext(TI);return e||t||"ltr"}var Hh=0;function $f(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??F0()),document.body.insertAdjacentElement("beforeend",e[1]??F0()),Hh++,()=>{Hh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hh--}},[])}function F0(){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: 4,724 bytes, line 258
258style.position="fixed",e.style.pointerEvents="none",e}var qh="focusScope.autoFocusOnMount",Vh="focusScope.autoFocusOnUnmount",W0={bubbles:!1,cancelable:!0},EI="FocusScope",qc=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[l,c]=m.useState(null),u=pn(s),d=pn(i),f=m.useRef(null),h=Ne(t,y=>c(y)),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let y=function(g){if(p.paused||!l)return;const j=g.target;l.contains(j)?f.current=j:Es(f.current,{select:!0})},b=function(g){if(p.paused||!l)return;const j=g.relatedTarget;j!==null&&(l.contains(j)||Es(f.current,{select:!0}))},x=function(g){if(document.activeElement===document.body)for(const _ of g)_.removedNodes.length>0&&Es(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const v=new MutationObserver(x);return l&&v.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),v.disconnect()}}},[r,l,p.paused]),m.useEffect(()=>{if(l){z0.add(p);const y=document.activeElement;if(!l.contains(y)){const x=new CustomEvent(qh,W0);l.addEventListener(qh,u),l.dispatchEvent(x),x.defaultPrevented||(AI(DI(__(l)),{select:!0}),document.activeElement===y&&Es(l))}return()=>{l.removeEventListener(qh,u),setTimeout(()=>{const x=new CustomEvent(Vh,W0);l.addEventListener(Vh,d),l.dispatchEvent(x),x.defaultPrevented||Es(y??document.body,{select:!0}),l.removeEventListener(Vh,d),z0.remove(p)},0)}}},[l,u,d,p]);const w=m.useCallback(y=>{if(!n&&!r||p.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(b&&x){const v=y.currentTarget,[g,j]=PI(v);g&&j?!y.shiftKey&&x===j?(y.preventDefault(),n&&Es(g,{select:!0})):y.shiftKey&&x===g&&(y.preventDefault(),n&&Es(j,{select:!0})):x===v&&y.preventDefault()}},[n,r,p.paused]);return a.jsx(ge.div,{tabIndex:-1,...o,ref:h,onKeyDown:w})});qc.displayName=EI;function AI(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Es(r,{select:t}),document.activeElement!==n)return}function PI(e){const t=__(e),n=$0(t,e),r=$0(t.reverse(),e);return[n,r]}function __(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 $0(e,t){for(const n of e)if(!RI(n,{upTo:t}))return n}function RI(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 OI(e){return e instanceof HTMLInputElement&&"select"in e}function Es(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&OI(e)&&t&&e.select()}}var z0=II();function II(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=U0(e,t),e.unshift(t)},remove(t){var n;e=U0(e,t),(n=e[0])==null||n.resume()}}}function U0(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function DI(e){return e.filter(t=>t.tagName!=="A")}var Kh="rovingFocusGroup.onEntryFocus",MI={bubbles:!1,cancelable:!0},Vc="RovingFocusGroup",[Mp,S_,LI]=Sf(Vc),[FI,N_]=Gn(Vc,[LI]),[WI,$I]=FI(Vc),C_=m.forwardRef((e,t)=>a.jsx(Mp.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Mp.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(zI,{...e,ref:t})})}));C_.displayName=Vc;var zI=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,h=m.useRef(null),p=Ne(t,h),w=Gy(i),[y,b]=ia({prop:o,defaultProp:l??null,onChange:c,caller:Vc}),[x,v]=m.useState(!1),g=pn(u),j=S_(n),_=m.useRef(!1),[C,N]=m.useState(0);return m.useEffect(()=>{const A=h.current;if(A)return A.addEventListener(Kh,g),()=>A.removeEventListener(Kh,g)},[g]),a.jsx(WI,{scope:n,orientation:r,dir:w,loop:s,currentTabStopId:y,onItemFocus:m.useCallback(A=>b(A),[b]),onItemShiftTab:m.useCallback(()=>v(!0),[]),onFocusableItemAdd:m.useCallback(()=>N(A=>A+1),[]),onFocusableItemRemove:m.useCallback(()=>N(A=>A-1),[]),children:a.jsx(ge.div,{tabIndex:x||C===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:q(e.onMouseDown,()=>{_.current=!0}),onFocus:q(e.onFocus,A=>{const R=!_.current;if(A.target===A.currentTarget&&R&&!x){const I=new CustomEvent(Kh,MI);if(A.currentTarget.dispatchEvent(I),!I.defaultPrevented){const V=j().filter(H=>H.focusable),D=V.find(H=>H.active),Q=V.find(H=>
vendor: 4,202 bytes, line 258
258H.id===y),ae=[D,Q,...V].filter(Boolean).map(H=>H.ref.current);A_(ae,d)}}_.current=!1}),onBlur:q(e.onBlur,()=>v(!1))})})}),T_="RovingFocusGroupItem",E_=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:i,children:o,...l}=e,c=Fr(),u=i||c,d=$I(T_,n),f=d.currentTabStopId===u,h=S_(n),{onFocusableItemAdd:p,onFocusableItemRemove:w,currentTabStopId:y}=d;return m.useEffect(()=>{if(r)return p(),()=>w()},[r,p,w]),a.jsx(Mp.ItemSlot,{scope:n,id:u,focusable:r,active:s,children:a.jsx(ge.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:q(e.onMouseDown,b=>{r?d.onItemFocus(u):b.preventDefault()}),onFocus:q(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:q(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=GI(b,d.orientation,d.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let g=h().filter(j=>j.focusable).map(j=>j.ref.current);if(x==="last")g.reverse();else if(x==="prev"||x==="next"){x==="prev"&&g.reverse();const j=g.indexOf(b.currentTarget);g=d.loop?HI(g,j+1):g.slice(j+1)}setTimeout(()=>A_(g))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:y!=null}):o})})});E_.displayName=T_;var UI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function BI(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function GI(e,t,n){const r=BI(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return UI[r]}function A_(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function HI(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var qI=C_,VI=E_,KI=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ji=new WeakMap,Ru=new WeakMap,Ou={},Yh=0,P_=function(e){return e&&(e.host||P_(e.parentNode))},YI=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=P_(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})},QI=function(e,t,n,r){var s=YI(t,Array.isArray(e)?e:[e]);Ou[n]||(Ou[n]=new WeakMap);var i=Ou[n],o=[],l=new Set,c=new Set(s),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};s.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))d(h);else try{var p=h.getAttribute(r),w=p!==null&&p!=="false",y=(ji.get(h)||0)+1,b=(i.get(h)||0)+1;ji.set(h,y),i.set(h,b),o.push(h),y===1&&w&&Ru.set(h,!0),b===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return d(t),l.clear(),Yh++,function(){o.forEach(function(f){var h=ji.get(f)-1,p=i.get(f)-1;ji.set(f,h),i.set(f,p),h||(Ru.has(f)||f.removeAttribute(r),Ru.delete(f)),p||f.removeAttribute(n)}),Yh--,Yh||(ji=new WeakMap,ji=new WeakMap,Ru=new WeakMap,Ou={})}},zf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=KI(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),QI(r,s,n,"aria-hidden")):function(){return null}},Or=function(){return Or=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},Or.apply(this,arguments)};function el(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 JI(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})}
vendor: 5,048 bytes, lines 258-273
258function ZI(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 id="right-scroll-bar-position",od="width-before-scroll-bar",XI="with-scroll-bars-hidden",eD="--removed-body-scroll-bar-size";function Qh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tD(e,t){var n=m.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 nD=typeof window<"u"?m.useLayoutEffect:m.useEffect,B0=new WeakMap;function rD(e,t){var n=tD(null,function(r){return e.forEach(function(s){return Qh(s,r)})});return nD(function(){var r=B0.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(l){i.has(l)||Qh(l,null)}),i.forEach(function(l){s.has(l)||Qh(l,o)})}B0.set(n,e)},[e]),n}function sD(e){return e}function aD(e,t){t===void 0&&(t=sD);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 o=t(i,r);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(i),o=n}var c=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return s}function iD(e){e===void 0&&(e={});var t=aD(null);return t.options=Or({async:!0,ssr:!1},e),t}var R_=function(e){var t=e.sideCar,n=el(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 m.createElement(r,Or({},n))};R_.isSideCarExport=!0;function oD(e,t){return e.useMedium(t),R_}var O_=iD(),Jh=function(){},Uf=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Jh,onWheelCapture:Jh,onTouchMoveCapture:Jh}),s=r[0],i=r[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noRelative,w=e.noIsolation,y=e.inert,b=e.allowPinchZoom,x=e.as,v=x===void 0?"div":x,g=e.gapMode,j=el(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,C=rD([n,t]),N=Or(Or({},j),s);return m.createElement(m.Fragment,null,d&&m.createElement(_,{sideCar:O_,removeScrollBar:u,shards:f,noRelative:p,noIsolation:w,inert:y,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:g}),o?m.cloneElement(m.Children.only(l),Or(Or({},N),{ref:C})):m.createElement(v,Or({},N,{className:c,ref:C}),l))});Uf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Uf.classNames={fullWidth:od,zeroRight:id};var lD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=lD();return t&&e.setAttribute("nonce",t),e}function uD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fD=function(){var e=0,t=null;return{add:function(n){e==0&&(t=cD())&&(uD(t,n),dD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hD=function(){var e=fD();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},I_=function(){var e=hD(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},mD={left:0,top:0,right:0,gap:0},Zh=function(e){return parseInt(e||"",10)||0},pD=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[Zh(n),Zh(r),Zh(s)]},gD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mD;var t=pD(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])}},yD=I_(),po="data-scroll-locked",vD=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
259  .`.concat(XI,` {
260   overflow: hidden `).concat(r,`;
261   padding-right: `).concat(l,"px ").concat(r,`;
262  }
263  body[`).concat(po,`] {
264    overflow: hidden `).concat(r,`;
265    overscroll-behavior: contain;
266    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
267    padding-left: `.concat(s,`px;
268    padding-top: `).concat(i,`px;
269    padding-right: `).concat(o,`px;
270    margin-left:0;
271    margin-top:0;
272    margin-right: `).concat(l,"px ").concat(r,`;
273    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
273")].filter(Boolean).join(""),`
274  }
275  
276  .`).concat(id,` {
277    right: `).concat(l,"px ").concat(r,`;
278  }
279  
280  .`).concat(od,` {
281    margin-right: `).concat(l,"px ").concat(r,`;
282  }
283  
284  .`).concat(id," .").concat(id,` {
285    right: 0 `).concat(r,`;
286  }
287  
288  .`).concat(od," .").concat(od,` {
289    margin-right: 0 `).concat(r,`;
290  }
291  
292  body[`).concat(po,`] {
293    `).concat(eD,": ").concat(l,`px;
294  }
295`)},G0=function(){var e=parseInt(document.body.getAttribute(po)||"0",10);return isFinite(e)?e:0},xD=function(){m.useEffect(function(){return document.body.setAttribute(po,(G0()+1).toString()),function(){var e=G0()-1;e<=0?document.body.removeAttribute(po):document.body.setAttribute(po,e.toString())}},[])},bD=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;xD();var i=m.useMemo(function(){return gD(s)},[s]);return m.createElement(yD,{styles:vD(i,!t,s,n?"":"!important")})},Lp=!1;if(typeof window<"u")try{var Iu=Object.defineProperty({},"passive",{get:function(){return Lp=!0,!0}});window.addEventListener("test",Iu,Iu),window.removeEventListener("test",Iu,Iu)}catch{Lp=!1}var ki=Lp?{passive:!1}:!1,wD=function(e){return e.tagName==="TEXTAREA"},D_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!wD(e)&&n[t]==="visible")},jD=function(e){return D_(e,"overflowY")},kD=function(e){return D_(e,"overflowX")},H0=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=M_(e,r);if(s){var i=L_(e,r),o=i[1],l=i[2];if(o>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_D=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},SD=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},M_=function(e,t){return e==="v"?jD(t):kD(t)},L_=function(e,t){return e==="v"?_D(t):SD(t)},ND=function(e,t){return e==="h"&&t==="rtl"?-1:1},CD=function(e,t,n,r,s){var i=ND(e,window.getComputedStyle(t).direction),o=i*r,l=n.target,c=t.contains(l),u=!1,d=o>0,f=0,h=0;do{if(!l)break;var p=L_(e,l),w=p[0],y=p[1],b=p[2],x=y-b-i*w;(w||x)&&M_(e,l)&&(f+=x,h+=w);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(f)<1||!s)||!d&&(Math.abs(h)<1||!s))&&(u=!0),u},Du=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},q0=function(e){return[e.deltaX,e.deltaY]},V0=function(e){return e&&"current"in e?e.current:e},TD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ED=function(e){return`
296  .block-interactivity-`.concat(e,` {pointer-events: none;}
297  .allow-interactivity-`).concat(e,` {pointer-events: all;}
298`)},AD=0,_i=[];function PD(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),s=m.useState(AD++)[0],i=m.useState(I_)[0],o=m.useRef(e);m.useEffect(function(){o.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var y=ZI([e.lockRef.current],(e.shards||[]).map(V0),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=m.useCallback(function(y,b){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!o.current.allowPinchZoom;var x=Du(y),v=n.current,g="deltaX"in y?y.deltaX:v[0]-x[0],j="deltaY"in y?y.deltaY:v[1]-x[1],_,C=y.target,N=Math.abs(g)>Math.abs(j)?"h":"v";if("touches"in y&&N==="h"&&C.type==="range")return!1;var A=H0(N,C);if(!A)return!0;if(A?_=N:(_=N==="v"?"h":"v",A=H0(N,C)),!A)return!1;if(!r.current&&"changedTouches"in y&&(g||j)&&(r.current=_),!_)return!0;var R=r.current||_;return CD(R,b,y,R==="h"?g:j,!0)},[]),c=m.useCallback(function(y){var b=y;if(!(!_i.length||_i[_i.length-1]!==i)){var x="deltaY"in b?q0(b):Du(b),v=t.current.filter(function(_){return _.name===b.type&&(_.target===b.target||b.target===_.shadowParent)&&TD(_.delta,x)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}
vendor: 1,467 bytes, line 298
298if(!v){var g=(o.current.shards||[]).map(V0).filter(Boolean).filter(function(_){return _.contains(b.target)}),j=g.length>0?l(b,g[0]):!o.current.noIsolation;j&&b.cancelable&&b.preventDefault()}}},[]),u=m.useCallback(function(y,b,x,v){var g={name:y,delta:b,target:x,should:v,shadowParent:RD(x)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(j){return j!==g})},1)},[]),d=m.useCallback(function(y){n.current=Du(y),r.current=void 0},[]),f=m.useCallback(function(y){u(y.type,q0(y),y.target,l(y,e.lockRef.current))},[]),h=m.useCallback(function(y){u(y.type,Du(y),y.target,l(y,e.lockRef.current))},[]);m.useEffect(function(){return _i.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,ki),document.addEventListener("touchmove",c,ki),document.addEventListener("touchstart",d,ki),function(){_i=_i.filter(function(y){return y!==i}),document.removeEventListener("wheel",c,ki),document.removeEventListener("touchmove",c,ki),document.removeEventListener("touchstart",d,ki)}},[]);var p=e.removeScrollBar,w=e.inert;return m.createElement(m.Fragment,null,w?m.createElement(i,{styles:ED(s)}):null,p?m.createElement(bD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function RD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const OD=oD(O_,PD);var Kc=m.forwardRef(function(e,t){return m.createElement(Uf,Or({},e,{ref:t,sideCar:OD}))});
vendor: 14,066 bytes, line 298
298Kc.classNames=Uf.classNames;var Fp=["Enter"," "],ID=["ArrowDown","PageUp","Home"],F_=["ArrowUp","PageDown","End"],DD=[...ID,...F_],MD={ltr:[...Fp,"ArrowRight"],rtl:[...Fp,"ArrowLeft"]},LD={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Yc="Menu",[jc,FD,WD]=Sf(Yc),[fi,W_]=Gn(Yc,[WD,pa,N_]),Bf=pa(),$_=N_(),[$D,hi]=fi(Yc),[zD,Qc]=fi(Yc),z_=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:s,onOpenChange:i,modal:o=!0}=e,l=Bf(t),[c,u]=m.useState(null),d=m.useRef(!1),f=pn(i),h=Gy(s);return m.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),a.jsx(Dy,{...l,children:a.jsx($D,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:u,children:a.jsx(zD,{scope:t,onClose:m.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:h,modal:o,children:r})})})};z_.displayName=Yc;var UD="MenuAnchor",Hy=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,s=Bf(n);return a.jsx(Hc,{...s,...r,ref:t})});Hy.displayName=UD;var qy="MenuPortal",[BD,U_]=fi(qy,{forceMount:void 0}),B_=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:s}=e,i=hi(qy,t);return a.jsx(BD,{scope:t,forceMount:n,children:a.jsx(Hn,{present:n||i.open,children:a.jsx(Ko,{asChild:!0,container:s,children:r})})})};B_.displayName=qy;var zn="MenuContent",[GD,Vy]=fi(zn),G_=m.forwardRef((e,t)=>{const n=U_(zn,e.__scopeMenu),{forceMount:r=n.forceMount,...s}=e,i=hi(zn,e.__scopeMenu),o=Qc(zn,e.__scopeMenu);return a.jsx(jc.Provider,{scope:e.__scopeMenu,children:a.jsx(Hn,{present:r||i.open,children:a.jsx(jc.Slot,{scope:e.__scopeMenu,children:o.modal?a.jsx(HD,{...s,ref:t}):a.jsx(qD,{...s,ref:t})})})})}),HD=m.forwardRef((e,t)=>{const n=hi(zn,e.__scopeMenu),r=m.useRef(null),s=Ne(t,r);return m.useEffect(()=>{const i=r.current;if(i)return zf(i)},[]),a.jsx(Ky,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:q(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),qD=m.forwardRef((e,t)=>{const n=hi(zn,e.__scopeMenu);return a.jsx(Ky,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),VD=aa("MenuContent.ScrollLock"),Ky=m.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:p,disableOutsideScroll:w,...y}=e,b=hi(zn,n),x=Qc(zn,n),v=Bf(n),g=$_(n),j=FD(n),[_,C]=m.useState(null),N=m.useRef(null),A=Ne(t,N,b.onContentChange),R=m.useRef(0),I=m.useRef(""),V=m.useRef(0),D=m.useRef(null),Q=m.useRef("right"),F=m.useRef(0),ae=w?Kc:m.Fragment,H=w?{as:VD,allowPinchZoom:!0}:void 0,O=T=>{var G,Re;const M=I.current+T,Z=j().filter(Ae=>!Ae.disabled),$=document.activeElement,ie=(G=Z.find(Ae=>Ae.ref.current===$))==null?void 0:G.textValue,le=Z.map(Ae=>Ae.textValue),We=aM(le,M,ie),Be=(Re=Z.find(Ae=>Ae.textValue===We))==null?void 0:Re.ref.current;(function Ae(Te){I.current=Te,window.clearTimeout(R.current),Te!==""&&(R.current=window.setTimeout(()=>Ae(""),1e3))})(M),Be&&setTimeout(()=>Be.focus())};m.useEffect(()=>()=>window.clearTimeout(R.current),[]),$f();const S=m.useCallback(T=>{var Z,$;return Q.current===((Z=D.current)==null?void 0:Z.side)&&oM(T,($=D.current)==null?void 0:$.area)},[]);return a.jsx(GD,{scope:n,searchRef:I,onItemEnter:m.useCallback(T=>{S(T)&&T.preventDefault()},[S]),onItemLeave:m.useCallback(T=>{var M;S(T)||((M=N.current)==null||M.focus(),C(null))},[S]),onTriggerLeave:m.useCallback(T=>{S(T)&&T.preventDefault()},[S]),pointerGraceTimerRef:V,onPointerGraceIntentChange:m.useCallback(T=>{D.current=T},[]),children:a.jsx(ae,{...H,children:a.jsx(qc,{asChild:!0,trapped:s,onMountAutoFocus:q(i,T=>{var M;T.preventDefault(),(M=N.current)==null||M.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:a.jsx(di,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:p,children:a.jsx(qI,{asChild:!0,...g,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:C,onEntryFocus:q(c,T=>{x.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsx(Of,{role:"menu","aria-orientation":"vertical","data-state":iS(b.open),"data-radix-menu-content":"",dir:x.dir,...v,...y,ref:A,style:{outline:"none",...y.style},onKeyDown:q(y.onKeyDown,T=>{const Z=T.target.closest("[data-radix-menu-content]")===T.currentTarget,$=T.ctrlKey||T.altKey||T.metaKey,ie=T.key.length===1;Z&&(T.key==="Tab"&&T.preventDefault(),!$&&ie&&O(T.key));const le=N.current;if(T.target!==le||!DD.includes(T.key))return;T.preventDefault();const Be=j().filter(G=>!G.disabled).map(G=>G.ref.current);F_.includes(T.key)&&Be.reverse(),rM(Be)}),onBlur:q(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(R.current),I.current="")}),onPointerMove:q(e.onPointerMove,kc(T=>{const M=T.target,Z=F.current!==T.clientX;if(T.currentTarget.contains(M)&&Z){const $=T.clientX>F.current?"right":"left";Q.current=$,F.current=T.clientX}}))})})})})})})});G_.displayName=zn;var KD="MenuGroup",Yy=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return a.jsx(ge.div,{role:"group",...r,ref:t})});Yy.displayName=KD;var YD="MenuLabel",H_=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return a.jsx(ge.div,{...r,ref:t})});H_.displayName=YD;var Gd="MenuItem",K0="menu.itemSelect",Gf=m.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...s}=e,i=m.useRef(null),o=Qc(Gd,e.__scopeMenu),l=Vy(Gd,e.__scopeMenu),c=Ne(t,i),u=m.useRef(!1),d=()=>{const f=i.current;if(!n&&f){const h=new CustomEvent(K0,{bubbles:!0,cancelable:!0});f.addEventListener(K0,p=>r==null?void 0:r(p),{once:!0}),xy(f,h),h.defaultPrevented?u.current=!1:o.onClose()}};return a.jsx(q_,{...s,ref:c,disabled:n,onClick:q(e.onClick,d),onPointerDown:f=>{var h;(h=e.onPointerDown)==null||h.call(e,f),u.current=!0},onPointerUp:q(e.onPointerUp,f=>{var h;u.current||(h=f.currentTarget)==null||h.click()}),onKeyDown:q(e.onKeyDown,f=>{const h=l.searchRef.current!=="";n||h&&f.key===" "||Fp.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Gf.displayName=Gd;var q_=m.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:s,...i}=e,o=Vy(Gd,n),l=$_(n),c=m.useRef(null),u=Ne(t,c),[d,f]=m.useState(!1),[h,p]=m.useState("");return m.useEffect(()=>{const w=c.current;w&&p((w.textContent??"").trim())},[i.children]),a.jsx(jc.ItemSlot,{scope:n,disabled:r,textValue:s??h,children:a.jsx(VI,{asChild:!0,...l,focusable:!r,children:a.jsx(ge.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:q(e.onPointerMove,kc(w=>{r?o.onItemLeave(w):(o.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:q(e.onPointerLeave,kc(w=>o.onItemLeave(w))),onFocus:q(e.onFocus,()=>f(!0)),onBlur:q(e.onBlur,()=>f(!1))})})})}),QD="MenuCheckboxItem",V_=m.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...s}=e;return a.jsx(Z_,{scope:e.__scopeMenu,checked:n,children:a.jsx(Gf,{role:"menuitemcheckbox","aria-checked":Hd(n)?"mixed":n,...s,ref:t,"data-state":Jy(n),onSelect:q(s.onSelect,()=>r==null?void 0:r(Hd(n)?!0:!n),{checkForDefaultPrevented:!1})})})});V_.displayName=QD;var K_="MenuRadioGroup",[JD,ZD]=fi(K_,{value:void 0,onValueChange:()=>{}}),Y_=m.forwardRef((e,t)=>{const{value:n,onValueChange:r,...s}=e,i=pn(r);return a.jsx(JD,{scope:e.__scopeMenu,value:n,onValueChange:i,children:a.jsx(Yy,{...s,ref:t})})});Y_.displayName=K_;var Q_="MenuRadioItem",J_=m.forwardRef((e,t)=>{const{value:n,...r}=e,s=ZD(Q_,e.__scopeMenu),i=n===s.value;return a.jsx(Z_,{scope:e.__scopeMenu,checked:i,children:a.jsx(Gf,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Jy(i),onSelect:q(r.onSelect,()=>{var o;return(o=s.onValueChange)==null?void 0:o.call(s,n)},{checkForDefaultPrevented:!1})})})});J_.displayName=Q_;var Qy="MenuItemIndicator",[Z_,XD]=fi(Qy,{checked:!1}),X_=m.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...s}=e,i=XD(Qy,n);return a.jsx(Hn,{present:r||Hd(i.checked)||i.checked===!0,children:a.jsx(ge.span,{...s,ref:t,"data-state":Jy(i.checked)})})});X_.displayName=Qy;var eM="MenuSeparator",eS=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return a.jsx(ge.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eS.displayName=eM;var tM="MenuArrow",tS=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,s=Bf(n);return a.jsx(If,{...s,...r,ref:t})});tS.displayName=tM;var nM="MenuSub",[M7,nS]=fi(nM),Pl="MenuSubTrigger",rS=m.forwardRef((e,t)=>{const n=hi(Pl,e.__scopeMenu),r=Qc(Pl,e.__scopeMenu),s=nS(Pl,e.__scopeMenu),i=Vy(Pl,e.__scopeMenu),o=m.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,u={__scopeMenu:e.__scopeMenu},d=m.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return m.useEffect(()=>d,[d]),m.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),c(null)}},[l,c]),a.jsx(Hy,{asChild:!0,...u,children:a.jsx(q_,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":iS(n.open),...e,ref:_f(t,s.onTriggerChange),onClick:f=>{var h;(h=e.onClick)==null||h.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:q(e.onPointerMove,kc(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:q(e.onPointerLeave,kc(f=>{var p,w;d();const h=(p=n.content)==null?void 0:p.getBoundingClientRect();if(h){const y=(w=n.content)==null?void 0:w.dataset.side,b=y==="right",x=b?-5:5,v=h[b?"left":"right"],g=h[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+x,y:f.clientY},{x:v,y:h.top},{x:g,y:h.top},{x:g,y:h.bottom},{x:v,y:h.bottom}],side:y}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:q(e.onKeyDown,f=>{var p;const h=i.searchRef.current!=="";e.disabled||h&&f.key===" "||MD[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});rS.displayName=Pl;var sS="MenuSubContent",aS=m.forwardRef((e,t)=>{const n=U_(zn,e.__scopeMenu),{forceMount:r=n.forceMount,...s}=e,i=hi(zn,e.__scopeMenu),o=Qc(zn,e.__scopeMenu),l=nS(sS,e.__scopeMenu),c=m.useRef(null),u=Ne(t,c);return a.jsx(jc.Provider,{scope:e.__scopeMenu,children:a.jsx(Hn,{present:r||i.open,children:a.jsx(jc.Slot,{scope:e.__scopeMenu,children:a.jsx(Ky,{id:l.contentId,"aria-labelledby":l.triggerId,...s,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;o.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:q(e.onFocusOutside,d=>{d.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:q(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:q(e.onKeyDown,d=>{var p;const f=d.currentTarget.contains(d.target),h=LD[o.dir].includes(d.key);f&&h&&(i.onOpenChange(!1),(p=l.trigger)==null||p.focus(),d.preventDefault())})})})})})});aS.displayName=sS;function iS(e){return e?"open":"closed"}function Hd(e){return e==="indeterminate"}function Jy(e){return Hd(e)?"indeterminate":e?"checked":"unchecked"}function rM(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function sM(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function aM(e,t,n){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=sM(e,Math.max(i,0));s.length===1&&(o=o.filter(u=>u!==n));const c=o.find(u=>u.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function iM(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],c=t[o],u=l.x,d=l.y,f=c.x,h=c.y;d>r!=h>r&&n<(f-u)*(r-d)/(h-d)+u&&(s=!s)}return s}function oM(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return iM(n,t)}function kc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lM=z_,cM=Hy,uM=B_,dM=G_,fM=Yy,hM=H_,mM=Gf,pM=V_,gM=Y_,yM=J_,vM=X_,xM=eS,bM=tS,wM=rS,jM=aS,Hf="DropdownMenu",[kM,L7]=Gn(Hf,[W_]),rn=W_(),[_M,oS]=kM(Hf),lS=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:s,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,c=rn(t),u=m.useRef(null),[d,f]=ia({prop:s,defaultProp:i??!1,onChange:o,caller:Hf});return a.jsx(_M,{scope:t,triggerId:Fr(),triggerRef:u,contentId:Fr(),open:d,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(h=>!h),[f]),modal:l,children:a.jsx(lM,{...c,open:d,onOpenChange:f,dir:r,modal:l,children:n})})};lS.displayName=Hf;var cS="DropdownMenuTrigger",uS=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...s}=e,i=oS(cS,n),o=rn(n);return a.jsx(cM,{asChild:!0,...o,children:a.jsx(ge.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...s,ref:_f(t,i.triggerRef),onPointerDown:q(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:q(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});uS.displayName=cS;var SM="DropdownMenuPortal",dS=e=>{const{__scopeDropdownMenu:t,...n}=e,r=rn(t);return a.jsx(uM,{...r,...n})};dS.displayName=SM;var fS="DropdownMenuContent",hS=m.forwardRef((e,t)=>
298{const{__scopeDropdownMenu:n,...r}=e,s=oS(fS,n),i=rn(n),o=m.useRef(!1);return a.jsx(dM,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...r,ref:t,onCloseAutoFocus:q(e.onCloseAutoFocus,l=>{var c;o.current||(c=s.triggerRef.current)==null||c.focus(),o.current=!1,l.preventDefault()}),onInteractOutside:q(e.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!s.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hS.displayName=fS;var NM="DropdownMenuGroup",CM=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(fM,{...s,...r,ref:t})});CM.displayName=NM;var TM="DropdownMenuLabel",mS=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(hM,{...s,...r,ref:t})});mS.displayName=TM;var EM="DropdownMenuItem",pS=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(mM,{...s,...r,ref:t})});pS.displayName=EM;var AM="DropdownMenuCheckboxItem",gS=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(pM,{...s,...r,ref:t})});gS.displayName=AM;var PM="DropdownMenuRadioGroup",RM=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(gM,{...s,...r,ref:t})});RM.displayName=PM;var OM="DropdownMenuRadioItem",yS=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(yM,{...s,...r,ref:t})});yS.displayName=OM;var IM="DropdownMenuItemIndicator",vS=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(vM,{...s,...r,ref:t})});vS.displayName=IM;var DM="DropdownMenuSeparator",xS=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(xM,{...s,...r,ref:t})});xS.displayName=DM;var MM="DropdownMenuArrow",LM=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(bM,{...s,...r,ref:t})});LM.displayName=MM;var FM="DropdownMenuSubTrigger",bS=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(wM,{...s,...r,ref:t})});bS.displayName=FM;var WM="DropdownMenuSubContent",wS=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=rn(n);return a.jsx(jM,{...s,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wS.displayName=WM;var $M=lS,zM=uS,UM=dS,jS=hS,kS=mS,_S=pS,SS=gS,NS=yS,CS=vS,TS=xS,ES=bS,AS=wS;const Xh=$M,em=zM,BM=m.forwardRef(({className:e,inset:t,children:n,...r},s)=>a.jsxs(ES,{ref:s,className:ue("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...r,children:[n,a.jsx(qt,{className:"ml-auto h-4 w-4"})]}));BM.displayName=ES.displayName;const GM=m.forwardRef(({className:e,...t},n)=>a.jsx(AS,{ref:n,className:ue("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",e),...t}));GM.displayName=AS.displayName;const ld=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(UM,{children:a.jsx(jS,{ref:r,sideOffset:t,className:ue("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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]:sli
298de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));ld.displayName=jS.displayName;const Oa=m.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(_S,{ref:r,className:ue("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-[#00b1ef] focus:text-white hover:bg-[#00b1ef] hover:text-white",t&&"pl-8",e),...n}));Oa.displayName=_S.displayName;const HM=m.forwardRef(({className:e,children:t,checked:n,...r},s)=>a.jsxs(SS,{ref:s,className:ue("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:n,...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(CS,{children:a.jsx(bk,{className:"h-4 w-4"})})}),t]}));HM.displayName=SS.displayName;const qM=m.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(NS,{ref:r,className:ue("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(CS,{children:a.jsx(H3,{className:"h-2 w-2 fill-current"})})}),t]}));qM.displayName=NS.displayName;const VM=m.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(kS,{ref:r,className:ue("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));VM.displayName=kS.displayName;const KM=m.forwardRef(({className:e,...t},n)=>a.jsx(TS,{ref:n,className:ue("-mx-1 my-1 h-px bg-muted",e),...t}));KM.displayName=TS.displayName;var qf="Dialog",[PS,RS]=Gn(qf),[YM,wr]=PS(qf),OS=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,l=m.useRef(null),c=m.useRef(null),[u,d]=ia({prop:r,defaultProp:s??!1,onChange:i,caller:qf});return a.jsx(YM,{scope:t,triggerRef:l,contentRef:c,contentId:Fr(),titleId:Fr(),descriptionId:Fr(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(f=>!f),[d]),modal:o,children:n})};OS.displayName=qf;var IS="DialogTrigger",DS=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=wr(IS,n),i=Ne(t,s.triggerRef);return a.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ev(s.open),...r,ref:i,onClick:q(e.onClick,s.onOpenToggle)})});DS.displayName=IS;var Zy="DialogPortal",[QM,MS]=PS(Zy,{forceMount:void 0}),LS=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=wr(Zy,t);return a.jsx(QM,{scope:t,forceMount:n,children:m.Children.map(r,o=>a.jsx(Hn,{present:n||i.open,children:a.jsx(Ko,{asChild:!0,container:s,children:o})}))})};LS.displayName=Zy;var qd="DialogOverlay",FS=m.forwardRef((e,t)=>{const n=MS(qd,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=wr(qd,e.__scopeDialog);return i.modal?a.jsx(Hn,{present:r||i.open,children:a.jsx(ZM,{...s,ref:t})}):null});FS.displayName=qd;var JM=aa("DialogOverlay.RemoveScroll"),ZM=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=wr(qd,n);return a.jsx(Kc,{as:JM,allowPinchZoom:!0,shards:[s.contentRef],children:a.jsx(ge.div,{"data-state":ev(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ri="DialogContent",WS=m.forwardRef((e,t)=>{const n=MS(ri,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=wr(ri,e.__scopeDialog);return a.jsx(Hn,{present:r||i.open,children:i.modal?a.jsx(XM,{...s,ref:t}):a.jsx(eL,{...s,ref:t})})});WS.displayName=ri;var XM=m.forwardRef((e,t)=>{const n=wr(ri,e.__scopeDialog),r=m.useRef(null),s=Ne(t,n.contentRef,r);return m.useEffect(()=>{const i=r.current;if(i)return zf(i)},[]),a.jsx($S,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:q(e.onFocusOutside,i=>i.preventDefault())})}),eL=m.forwardRef((e,t)=>
vendor: 3,671 bytes, lines 298-302
298{const n=wr(ri,e.__scopeDialog),r=m.useRef(!1),s=m.useRef(!1);return a.jsx($S,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),$S=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,l=wr(ri,n),c=m.useRef(null),u=Ne(t,c);return $f(),a.jsxs(a.Fragment,{children:[a.jsx(qc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:a.jsx(di,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ev(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(nL,{titleId:l.titleId}),a.jsx(sL,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Xy="DialogTitle",zS=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=wr(Xy,n);return a.jsx(ge.h2,{id:s.titleId,...r,ref:t})});zS.displayName=Xy;var US="DialogDescription",BS=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=wr(US,n);return a.jsx(ge.p,{id:s.descriptionId,...r,ref:t})});BS.displayName=US;var GS="DialogClose",HS=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=wr(GS,n);return a.jsx(ge.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>s.onOpenChange(!1))})});HS.displayName=GS;function ev(e){return e?"open":"closed"}var qS="DialogTitleWarning",[tL,VS]=QA(qS,{contentName:ri,titleName:Xy,docsSlug:"dialog"}),nL=({titleId:e})=>{const t=VS(qS),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
299
300If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
301
302For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},rL="DialogDescriptionWarning",sL=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${VS(rL).contentName}}.`;return m.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},KS=OS,YS=DS,QS=LS,tv=FS,nv=WS,rv=zS,sv=BS,av=HS;const _c=KS,JS=YS,aL=QS,ZS=m.forwardRef(({className:e,...t},n)=>a.jsx(tv,{ref:n,className:ue("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}));ZS.displayName=tv.displayName;const Mo=m.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(aL,{children:[a.jsx(ZS,{}),a.jsxs(nv,{ref:r,className:ue("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:rounded-lg",e),...n,children:[t,a.jsxs(av,{className:"absolute right-4 top-4 roun
302ded-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:[a.jsx(Ef,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Mo.displayName=nv.displayName;const Lo=({className:e,...t})=>a.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Lo.displayName="DialogHeader";const Fo=m.forwardRef(({className:e,...t},n)=>a.jsx(rv,{ref:n,className:ue("text-lg font-semibold leading-none tracking-tight",e),...t}));Fo.displayName=rv.displayName;const XS=m.forwardRef(({className:e,...t},n)=>a.jsx(sv,{ref:n,className:ue("text-sm text-muted-foreground",e),...t}));XS.displayName=sv.displayName;const Ve=m.forwardRef(({className:e,type:t,...n},r)=>a.jsx("input",{type:t,className:ue("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}));Ve.displayName="Input";const eN="/assets/logo-CznbjNFI.png",Wp=[{name:"Intermodal ISO Tank-Container",path:"/products/iso-tank"},{name:"Factory-Built Bulk Storage Tank",path:"/lng/bulk-storage"},{name:"Marine Cargo & Bunkering Tank",path:"/products/marine-cargo"},{name:"Site-built Flat-bottom Tank",path:"/products/flat-bottom"},{name:"LNG-Cooled Data Centers",path:"/products/lng-cooled"},{name:"Ethane & Ethylene",path:"/lng/ethane-ethylene"},{name:"LNG and Cryogenic Tank",path:"/lng/cryogenic-tank"}],$p=[{name:"Factory-Built Bulk Storage Tank",path:"/products/bulk-storage"},{name:"Intermodal ISO Tank-Container",path:"/products/iso-tank"},{name:"Marine Cargo & Bunkering Tank",path:"/products/marine-cargo"},{name:"Site-built Flat-bottom Tank",path:"/products/flat-bottom"},{name:"Peak-Shaving Systems",path:"/products/peak-shaving"},{name:"LNG-Cooled Data Centers",path:"/products/lng-cooled"},{name:"CNG Products",path:"/products/cng"},{name:"Modular Refinery Solutions",path:"/products/modular-refinery"}],iL=[{name:"Home",path:"/"},{name:"About Us",path:"/about"},{name:"LNG Products",path:"/lng"},{name:"Products",path:"/products"},{name:"SpaceCom 2026",path:"/event/spacecom-2026"},{name:"SpaceCom 2026 Recap",path:"/event/spacecom-2026-recap"},{name:"Tradewinds Award 2025",path:"/event/tradewinds-award-2025"},{name:"News",path:"/news"},{name:"Contact Us",path:"/contact"},...Wp,...$p],oL=()=>{const[e,t]=m.useState(!1),[n,r]=m.useState(""),[s,i]=m.useState(!1),o=br(),l=ya(),c=h=>o.pathname===h,u=h=>o.pathname.startsWith(h),d=n.trim()?iL.filter(h=>h.name.toLowerCase().includes(n.toLowerCase())):[],f=h=>{r(""),i(!1),l(h)};return a.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background border-b border-border",children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsxs("div",{className:"flex items-center justify-between h-16",children:[a.jsx(K,{to:"/",className:"flex items-center",children:a.jsx("img",{src:eN,alt:"Corban Energy Group",className:"h-10"})}),a.jsxs("nav",{className:"hidden lg:flex items-center gap-8",children:[a.jsx(K,{to:"/",className:`font-medium transition-colors ${c("/")?"text-[#00b1ef]":"text-foreground hover:text-[#00b1ef]"}`,style:{fontSize:"16px"},children:"Home"}),a.jsx(K,{to:"/about",className:`font-medium transition-colors ${c("/about")?"text-[#00b1ef]":"text-foreground hover:text-[#00b1ef]"}`,style:{fontSize:"16px"},children:"About Us"}),a.jsxs(Xh,{children:[a.jsxs(em,{className:`font-medium flex items-center gap-1 transition-colors ${u("/lng")?"text-[#00b1ef]":"text-foreground hover:text-[#00b1ef]"}`,style:{fontSize:"16px"},children:["LNG ",a.jsx(ql,{className:"w-4 h-4"})]}),a.jsxs(ld,{className:"bg-white border-gray-200 z-50 mt-4",children:[a.jsx(Oa,{asChild:!0,children:a.jsx(K,{to:"/lng",className:"cursor-pointer font-semibold text-black hover:text-[#00b1ef]",children:"LNG Products"})}),Wp.map(h=>a.jsx(Oa,{asChild:!0,children:a.jsx(K,{to:h.path,className:"cursor-pointer text-black hover:text-[#00b1ef]",children:h.name})},h.path))]})]}),a.jsxs(Xh,{children:[a.jsxs(em,{className:`font-medium flex items-center gap-1 transition-colors ${u("/products")?"text-[#00b1ef]":"text-foreground hover:text-[#00b1ef]"}`,style:{fontSize:"16px"},children:["Products ",a.jsx(ql,{className:"w-4 h-4"})]}),a.jsx(ld,{className:"bg-white border-gray-200 z-50 mt-4",children:$p.map(h=>a.jsx(Oa,{asChild:!0,children:a.jsx(K,{to:h.path,className:"cursor-pointer text-black hover:text-[#00b1ef]",children:h.name})},h.path))})]}),a.jsxs(Xh,{children:[a.jsxs(em,{className:`font-medium flex items-center gap-1 transition-colors ${u("/event")?"text-[#00b1ef]":"text-foreground hover:text-[#00b1ef]"}`,style:{fontSize:"16px"},children:["Event ",a.jsx(ql,{className:"w-4 h-4"})]}),a.jsxs(ld,{className:"bg-white border-gray-200 z-50 mt-4",children:[a.jsx(Oa,{asChild:!0,children:a.jsx(K,{to:"/event/spacecom-2026",className:"cursor-pointer text-black hover:text-[#00b1ef]",children:"SpaceCom 2026"})}),a.jsx(Oa,{asChild:!0,children:a.jsx(K,{to:"/event/spacecom-2026-recap",className:"cursor-pointer text-black hover:text-[#00b1ef]",children:"SpaceCom 2026 Recap"})}),a.jsx(Oa,{asChild:!0,children:a.jsx(K,{to:"/event/tradewinds-award-2025",className:"cursor-pointer text-black hover:text-[#00b1ef]",children:"Tradewinds Award 2025"})})]})]}),a.jsx(K,{to:"/news",className:`font-medium transition-colors ${u("/news")?"text-[#00b1ef]":"text-foreground hover:text-[#00b1ef]"}`,style:{fontSize:"16px"},children:"News"}),a.jsx(K,{to:"/contact",className:`font-medium transition-colors ${c("/contact")?"text-[#00b1ef]":"text-foreground hover:text-[#00b1ef]"}`,style:{fontSize:"16px"},children:"Contact Us"})]}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsxs(_c,{open:s,onOpenChange:i,children:[a.jsx(JS,{asChild:!0,children:a.jsx(ye,{variant:"ghost",size:"icon",className:"text-foreground hover:text-[#00b1ef]",children:a.jsx(X3,{className:"w-5 h-5"})})}),a.jsxs(Mo,{className:"bg-white border-gray-200","aria-describedby":"search-description",children:[a.jsxs(Lo,{children:[a.jsx(Fo,{className:"text-black",children:"Search"}),a.jsx(XS,{id:"search-description",className:"text-gray-600",children:"Search for products and pages"})]}),a.jsxs("div",{className:"mt-4",children:[a.jsx(Ve,{placeholder:"Search products, pages...",value:n,onChange:h=>r(h.target.value),className:"bg-white border-gray-300 text-black placeholder:text-gray-500",autoFocus:!0}),n.trim()&&a.jsx("div",{className:"mt-4 max-h-64 overflow-y-auto",children:d.length>0?a.jsx("ul",{className:"space-y-1",children:d.map(h=>a.jsx("li",{children:a.jsx("button",{onClick:()=>f(h.path),className:"w-full text-left px-3 py-2 text-black hover:bg-gray-100 rounded transition-colors",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:h.name})},h.path))}):a.jsx("p",{className:"text-gray-500 text-center py-4",children:"No results found"})})]})]})]}),a.jsx(ye,{variant:"ghost",size:"icon",className:"lg:hidden text-foreground",onClick:()=>t(!e),children:e?a.jsx(Ef,{className:"w-6 h-6"}):a.jsx(J3,{className:"w-6 h-6"})})]})]}),e&&a.jsx("div",{className:"lg:hidden py-6 border-t border-border",children:a.jsxs("nav",{className:"flex flex-col gap-4",children:[a.jsx(K,{to:"/",className:"text-foreground hover:text-[#00b1ef] py-2",onClick:()=>t(!1),children:"Home"}),a.jsx(K,{to:"/about",className:"text-foreground hover:text-[#00b1ef] py-2",onClick:()=>t(!1),children:"About Us"}),a.jsxs("div",{className:"py-2",children:[a.jsx("span",{className:"text-foreground font-medium",children:"LNG"}),a.jsx("div",{className:"ml-4 mt-2 flex flex-col gap-2",children:Wp.map(h=>a.jsx(K,{to:h.path,className:"text-muted-foreground text-sm hover:text-[#00b1ef] transition-colors",onClick:()=>t(!1),children:h.name},h.path))})]}),a.jsxs("div",{className:"py-2",children:[a.jsx("span",{className:"text-foreground font-medium",children:"Products"}),a.jsx("div",{className:"ml-4 mt-2 flex flex-col gap-2",children:$p.map(h=>a.jsx(K,{to:h.path,className:"text-muted-foreground text-sm hover:text-[#00b1ef] transition-colors",onClick:()=>t(!1),children:h.name},h.path))})]}),a.jsxs("div",{className:"py-2",children:[a.jsx("span",{className:"text-foreground font-medium",children:"Event"}),a.jsxs("div",{className:"ml-4 mt-2 flex flex-col gap-2",children:[a.jsx(K,{to:"/event/spacecom-2026",className:"text-muted-foreground text-sm hover:text-[#00b1ef] transition-colors",onClick:()=>t(!1),children:"SpaceCom 2026"}),a.jsx(K,{to:"/event/spacecom-2026-recap",className:"text-muted-foreground text-sm hover:text-[#00b1ef] transition-colors",onClick:()=>t(!1),children:"SpaceCom 2026 Recap"}),a.jsx(K,{to:"/event/tradewinds-award-2025",className:"text-muted-foreground text-sm hover:text-[#00b1ef] transition-colors",onClick:()=>t(!1),children:"Tradewinds Award 2025"})]})]}),a.jsx(K,{to:"/news",className:"text-foreground hover:text-[#00b1ef] py-2",onClick:()=>t(!1),children:"News"}),a.jsx(K,{to:"/contact",className:"text-foreground hover:text-[#00b1ef] py-2",onClick:()=>t(!1),children:"Contact Us"})]})})]})})},lL=()=>a.jsx("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 384 512",fill:"#1a3a4a",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"})}),cL=()=>a.jsx("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 512 512",fill:"#1a3a4a",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.5
30279-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"})}),uL=()=>a.jsx("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 512 512",fill:"#1a3a4a",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"})}),dL=()=>a.jsx("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 512 512",fill:"#1a3a4a",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"})}),fL=()=>a.jsx("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 512 512",fill:"#1a3a4a",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"})}),hL=()=>a.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 512 512",fill:"white",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"})}),mL=()=>a.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 448 512",fill:"white",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"})}),pL=({hideLetsTalk:e=!1})=>a.jsxs("footer",{children:[!e&&a.jsx("div",{className:"py-12",style:{backgroundColor:"#00b1ef"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-6",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-2",style:{color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Let's Talk"}),a.jsx("p",{style:{color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"We can help you optimize your system with our expertise and know-how."})]}),a.jsx(K,{to:"/contact#contact-form",className:"inline-block px-8 py-3 font-semibold transition-colors border-2",style:{backgroundColor:"#fff",color:"#333",borderColor:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Get A Quote"})]})})}),a.jsx("div",{className:"py-12",style:{backgroundColor:"#f2f2f2"}
302,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[a.jsxs("div",{children:[a.jsx(K,{to:"/",className:"inline-block mb-4",children:a.jsx("img",{src:eN,alt:"Corban Energy Group",className:"h-10"})}),a.jsx("div",{className:"w-12 h-0.5 mb-6",style:{backgroundColor:"#1a3a4a"}}),a.jsxs("ul",{className:"space-y-4",children:[a.jsxs("li",{className:"flex items-start gap-3",children:[a.jsx(lL,{}),a.jsxs("span",{className:"text-sm",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:["418 Falmouth Ave",a.jsx("br",{}),"Elmwood Park, NJ 07407, USA"]})]}),a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx(cL,{}),a.jsx("a",{href:"mailto:[email protected]",className:"text-sm hover:underline",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"[email protected]"})]}),a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx(uL,{}),a.jsx("a",{href:"tel:+12015098555",className:"text-sm hover:underline",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"+1-201-509-8555"})]})]})]}),a.jsxs("div",{children:[a.jsx(K,{to:"/products",className:"font-bold text-xl mb-2 block hover:underline",style:{color:"#00b4d8",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Products & Services"}),a.jsx("div",{className:"w-12 h-0.5 mb-6",style:{backgroundColor:"#00b4d8"}}),a.jsxs("ul",{className:"space-y-4",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00b4d8"},children:"•"}),a.jsxs("div",{children:[a.jsx(K,{to:"/cryogenic-storage",className:"font-bold text-sm hover:underline",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Cryogenic Storage & Transport Vessels (Factory-Built & Onsite)"}),a.jsxs("p",{className:"text-sm",style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif"},children:[a.jsx(K,{to:"/products/iso-tank",className:"hover:underline",children:"ISO Tank-Containers"})," • ",a.jsx(K,{to:"/products/bulk-storage",className:"hover:underline",children:"Bulk Storage Tanks"})," • ",a.jsx(K,{to:"/products/flat-bottom",className:"hover:underline",children:"Flat-bottom Tanks"})," • ",a.jsx(K,{to:"/products/marine-cargo",className:"hover:underline",children:"Marine Bunkering Tanks"})]})]})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00b4d8"},children:"•"}),a.jsxs("div",{children:[a.jsx(K,{to:"/products/modular-refinery",className:"font-bold text-sm hover:underline",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Modular Refinery Solutions"}),a.jsx("p",{className:"text-sm",style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Scalable Modular Units • Custom Process Design • Rapid Deployment"})]})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00b4d8"},children:"•"}),a.jsxs("div",{children:[a.jsx(K,{to:"/products/peak-shaving",className:"font-bold text-sm hover:underline",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"LNG Peak Shaving & Energy"}),a.jsxs("p",{className:"text-sm",style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif"},children:["Peak Shaving Plants • Regasification Systems • ",a.jsx(K,{to:"/products/lng-cooled",className:"hover:underline",children:"Cryogenic Cooling (Data Centers)"})," & ",a.jsx(K,{to:"/products/refrigerated-warehouses",className:"hover:underline",children:"Refrigerated Warehouses"})]})]})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00b4d8"},children:"•"}),a.jsxs("div",{children:[a.jsx(K,{to:"/products/engineering-services",className:"font-bold text-sm hover:underline",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Engineering & Project Services"}),a.jsx("p",{className:"text-sm",style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Design • Fabrication • Installation • Maintenance"})]})]})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-bold text-xl mb-2",style:{color:"#00b4d8",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Get In Touch"}),a.jsx("div",{className:"w-12 h-0.5 mb-6",style:{backgroundColor:"#00b4d8"}}),a.jsxs("div",{className:"flex gap-2 mb-6",children:[a.jsx("a",{href:"https://www.facebook.com/CorbanEnergyGroup/",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded flex items-center justify-center transition-opacity hover:opacity-80",style:{backgroundColor:"#3b5998"},children:a.jsx(hL,{})}),a.jsx("a",{href:"https://www.linkedin.com/company/corban-energy-group/",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded flex items-center justify-center transition-opacity hover:opacity-80",style:{backgroundColor:"#0077b5"},children:a.jsx(mL,{})})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(dL,{}),a.jsx("span",{className:"text-sm",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Monday – Friday > 9am – 5pm"})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(fL,{}),a.jsx("span",{className:"text-sm",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Saturday – Sunday > Closed"})]})]})]})]})})}),a.jsx("div",{className:"py-4",style:{backgroundColor:"#000"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsxs("p",{className:"text-center text-xs",style:{color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:["ⓒ 2026 by Corban Energy Group. All Rights Reserved."," ",a.jsx(K,{to:"/policies",className:"text-white hover:underline",onClick:()=>window.scrollTo(0,0),children:"Privacy and Other Policies"})]}),a.jsxs("p",{className:"text-center text-xs mt-1",style:{color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:["Supported by"," ",a.jsx("a",{href:"https://www.i2websolutions.
302com",target:"_blank",rel:"noopener noreferrer",className:"text-white no-underline",children:"i2WebSolutions"})]})]})})]}),Pe=({children:e,hideFooterCTA:t=!1})=>a.jsxs("div",{className:"min-h-screen flex flex-col",children:[a.jsx(oL,{}),a.jsx("main",{className:"flex-grow pt-20",children:e}),a.jsx(pL,{hideLetsTalk:t})]}),gL=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class iv extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class yL extends iv{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Y0 extends iv{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Q0 extends iv{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var zp;(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"})(zp||(zp={}));class vL{constructor(t,{headers:n={},customFetch:r,region:s=zp.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=gL(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return JI(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:l,method:c,body:u,signal:d,timeout:f}=r;let h={},{region:p}=r;p||(p=this.region);const w=new URL(`${this.url}/${n}`);p&&p!=="any"&&(h["x-region"]=p,w.searchParams.set("forceFunctionRegion",p));let y;u&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",y=u):typeof u=="string"?(h["Content-Type"]="text/plain",y=u):typeof FormData<"u"&&u instanceof FormData?y=u:(h["Content-Type"]="application/json",y=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?y=JSON.stringify(u):y=u;let b=d;f&&(o=new AbortController,i=setTimeout(()=>o.abort(),f),d?(b=o.signal,d.addEventListener("abort",()=>o.abort())):b=o.signal);const x=yield this.fetch(w.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),l),body:y,signal:b}).catch(_=>{throw new yL(_)}),v=x.headers.get("x-relay-error");if(v&&v==="true")throw new Y0(x);if(!x.ok)throw new Q0(x);let g=((s=x.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),j;return g==="application/json"?j=yield x.json():g==="application/octet-stream"||g==="application/pdf"?j=yield x.blob():g==="text/event-stream"?j=x:g==="multipart/form-data"?j=yield x.formData():j=yield x.text(),{data:j,error:null,response:x}}catch(l){return{data:null,error:l,response:l instanceof Q0||l instanceof Y0?l.context:void 0}}finally{i&&clearTimeout(i)}})}}var xL=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
302de=e.code}},bL=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 o=null,l=null,c=null,u=i.status,d=i.statusText;if(i.ok){var f,h;if(n.method!=="HEAD"){var p;const x=await i.text();x===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((p=n.headers.get("Accept"))===null||p===void 0)&&p.includes("application/vnd.pgrst.plan+text"))?l=x:l=JSON.parse(x))}const y=(f=n.headers.get("Prefer"))===null||f===void 0?void 0:f.match(/count=(exact|planned|estimated)/),b=(h=i.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");y&&b&&b.length>1&&(c=parseInt(b[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(l)&&(l.length>1?(o={code:"PGRST116",details:`Results contain ${l.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},l=null,c=null,u=406,d="Not Acceptable"):l.length===1?l=l[0]:l=null)}else{var w;const y=await i.text();try{o=JSON.parse(y),Array.isArray(o)&&i.status===404&&(l=[],o=null,u=200,d="OK")}catch{i.status===404&&y===""?(u=204,d="No Content"):o={message:y}}if(o&&n.isMaybeSingle&&(!(o==null||(w=o.details)===null||w===void 0)&&w.includes("0 rows"))&&(o=null,u=200,d="OK"),o&&n.shouldThrowOnError)throw new xL(o)}return{error:o,data:l,count:c,status:u,statusText:d}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let l="";const c=i==null?void 0:i.cause;if(c){var u,d,f,h;const w=(u=c==null?void 0:c.message)!==null&&u!==void 0?u:"",y=(d=c==null?void 0:c.code)!==null&&d!==void 0?d:"";l=`${(f=i==null?void 0:i.name)!==null&&f!==void 0?f:"FetchError"}: ${i==null?void 0:i.message}`,l+=`
303
304Caused by: ${(h=c==null?void 0:c.name)!==null&&h!==void 0?h:"Error"}: ${w}`,y&&(l+=` (${y})`),c!=null&&c.stack&&(l+=`
305${c.stack}`)}else{var p;l=(p=i==null?void 0:i.stack)!==null&&p!==void 0?p:""}return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:l,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},wL=class extends bL{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",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${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}
305explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const l=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),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 J0=new RegExp("[,()]");var $i=class extends wL{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"&&J0.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"&&J0.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}},jL=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 o=(e??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",o),r&&c.append("Prefer",`count=${r}`),new $i({method:s,url:l,headers:c,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);i.searchParams.set("columns",c.join(","))}}return new $i({method:s,url:i,headers:o,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 o="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&l.searchParams.set("on_conflict",t),r&&c.append("Prefer",`count=${r}`),s||c.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((d,f)=>d.concat(Object.keys(f)),[]);if(u.length>0){const d=[...new Set(u)].map(f=>`"${f}"`);l.searchParams.set("columns",d.join(","))}}return new $i({method:o,url:l,headers:c,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 $i({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 $i({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},kL=class tN{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 jL(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new tN(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let l;const c=new URL(`${this.url}/rpc/${t}`);let u;const d=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(d)),f=r&&Object.values(n).some(d);f?(l="POST",u=n):r||s?(l=r?"HEAD":"GET",Object.entries(n).filter(([p,w])=>w!==void 0).map(([p,w])=>[p,Array.isArray(w)?`{${w.join(",")}}`:`${w}
305`]).forEach(([p,w])=>{c.searchParams.append(p,w)})):(l="POST",u=n);const h=new Headers(this.headers);return f?h.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&h.set("Prefer",`count=${i}`),new $i({method:l,url:c,headers:h,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};class _L{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:
306import ws from "ws"
307new 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+=`
308
309Suggested 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 SL="2.90.1",NL=`realtime-js/${SL}`,nN="1.0.0",CL="2.0.0",Z0=nN,Up=1e4,TL=1e3,EL=100;var Rs;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Rs||(Rs={}));var kt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(kt||(kt={}));var lr;(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"})(lr||(lr={}));var Bp;(function(e){e.websocket="websocket"})(Bp||(Bp={}));var Ma;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Ma||(Ma={}));class AL{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:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=t.topic,l=(s=t.ref)!==null&&s!==void 0?s:"",c=(i=t.join_ref)!==null&&i!==void 0?i:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},f=Object.keys(d).length===0?"":JSON.stringify(d);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`metadata length ${f.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+o.length+u.length+f.length,p=new ArrayBuffer(this.HEADER_LENGTH+h);let w=new DataView(p),y=0;w.setUint8(y++,this.KINDS.userBroadcastPush),w.setUint8(y++,c.length),w.setUint8(y++,l.length),w.setUint8(y++,o.length),w.setUint8(y++,u.length),w.setUint8(y++,f.length),w.setUint8(y++,n),Array.from(c,x=>w.setUint8(y++,x.charCodeAt(0))),Array.from(l,x=>w.setUint8(y++,x.charCodeAt(0))),Array.from(o,x=>w.setUint8(y++,x.charCodeAt(0))),Array.from(u,x=>w.setUint8(y++,x.charCodeAt(0))),Array.from(f,x=>w.setUint8(y++,x.charCodeAt(0)));var b=new Uint8Array(p.byteLength+r.byteLength);return b.set(new Uint8Array(p),0),b.set(new Uint8Array(r),p.byteLength),b.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,o,l,c]=r;
309return n({join_ref:s,ref:i,topic:o,event:l,payload:c})}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),o=n.getUint8(3),l=n.getUint8(4);let c=this.HEADER_LENGTH+4;const u=r.decode(t.slice(c,c+s));c=c+s;const d=r.decode(t.slice(c,c+i));c=c+i;const f=r.decode(t.slice(c,c+o));c=c+o;const h=t.slice(c,t.byteLength),p=l===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,w={type:this.BROADCAST_EVENT,event:d,payload:p};return o>0&&(w.meta=JSON.parse(f)),{join_ref:null,ref:null,topic:u,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 rN{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 Qe;(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"})(Qe||(Qe={}));const X0=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=PL(o,e,t,s),i),{}):{}},PL=(e,t,n,r)=>{const s=t.find(l=>
309l.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?sN(i,o):Gp(o)},sN=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return DL(t,n)}switch(e){case Qe.bool:return RL(t);case Qe.float4:case Qe.float8:case Qe.int2:case Qe.int4:case Qe.int8:case Qe.numeric:case Qe.oid:return OL(t);case Qe.json:case Qe.jsonb:return IL(t);case Qe.timestamp:return ML(t);case Qe.abstime:case Qe.date:case Qe.daterange:case Qe.int4range:case Qe.int8range:case Qe.money:case Qe.reltime:case Qe.text:case Qe.time:case Qe.timestamptz:case Qe.timetz:case Qe.tsrange:case Qe.tstzrange:return Gp(t);default:return Gp(t)}},Gp=e=>e,RL=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},OL=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},IL=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},DL=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>sN(t,l))}return e},ML=e=>typeof e=="string"?e.replace(" ","T"):e,aN=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 tm{constructor(t,n,r={},s=Up){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.recHooks.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 eb;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(eb||(eb={}));class Kl{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:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Kl.syncState(this.state,s,i,o),this.pendingDiffs.forEach(c=>{this.state=Kl.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Kl.syncDiff(this.state,s,i,o),l())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),l={},c={};return this.map(i,(u,d)=>{o[u]||(c[u]=d)}),this.map(o,(u,d)=>{const f=i[u];if(f){const h=d.map(b=>b.presence_ref),p=f.map(b=>b.presence_ref),w=d.filter(b=>p.indexOf(b.presence_ref)<0),y=f.filter(b=>h.indexOf(b.presence_ref)<0);w.length>0&&(l[u]=w),y.length>0&&(c[u]=y)}else l[u]=d}),this.syncDiff(i,{joins:l,leaves:c},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(l,c)=>{var u;
309const d=(u=t[l])!==null&&u!==void 0?u:[];if(t[l]=this.cloneDeep(c),d.length>0){const f=t[l].map(p=>p.presence_ref),h=d.filter(p=>f.indexOf(p.presence_ref)<0);t[l].unshift(...h)}r(l,d,c)}),this.map(o,(l,c)=>{let u=t[l];if(!u)return;const d=c.map(f=>f.presence_ref);u=u.filter(f=>d.indexOf(f.presence_ref)<0),t[l]=u,s(l,u,c),u.length===0&&delete t[l]}),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 tb;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(tb||(tb={}));var Yl;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Yl||(Yl={}));var es;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(es||(es={}));class ro{constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=kt.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 tm(this,lr.join,this.params,this.timeout),this.rejoinTimer=new rN(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=kt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=kt.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=kt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=kt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=kt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(lr.reply,{},(o,l)=>{this._trigger(this._replyEventName(l),o)}),this.presence=new Kl(this),this.broadcastEndpointURL=aN(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==kt.closed){const{config:{broadcast:o,presence:l,private:c}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Yl.PRESENCE]&&this.bindings[Yl.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,f={},h={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(p=>t==null?void 0:t(es.CHANNEL_ERROR,p)),this._onClose(()=>t==null?void 0:t(es.CLOSED)),this.updateJoinPayload(Object.assign({config:h},f)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:p})=>{var w;if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t(es.SUBSCRIBED);return}else{const y=this.bindings.postgres_changes,b=(w=y==null?void 0:y.length)!==null&&w!==void 0?w:0,x=[];for(let v=0;v<b;v++){const g=y[v],{filter:{event:j,schema:_,table:C,filter:N}}=g,A=p&&p[v];if(A&&A.event===j&&ro.isFilterValueEqual(A.schema,_)&&ro.isFilterValueEqual(A.table,C)&&ro.isFilterValueEqual(A.filter,N))x.push(Object.assign(Object.assign({},g),{id:A.id}));else{this.unsubscribe(),this.state=kt.errored,t==null||t(es.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=x,t&&t(es.SUBSCRIBED);return}}).receive("error",p=>{this.state=kt.errored,t==null||t(es.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(es.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===kt.joined&&t===Yl.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 o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(l.status===202)return{success:!0};let c=l.statusText;
309try{const u=await l.json();c=u.error||u.message||c}catch{}return Promise.reject(new Error(c))}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 in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=kt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(lr.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new tm(this,lr.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=kt.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_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 tm(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>EL){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 o=t.toLocaleLowerCase(),{close:l,error:c,leave:u,join:d}=lr;if(r&&[l,c,u,d].indexOf(o)>=0&&r!==this._joinRef())return;let h=this._onMessage(o,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(p=>{var w,y,b;return((w=p.filter)===null||w===void 0?void 0:w.event)==="*"||((b=(y=p.filter)===null||y===void 0?void 0:y.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===o}).map(p=>p.callback(h,r)):(i=this.bindings[o])===null||i===void 0||i.filter(p=>{var w,y,b,x,v,g,j,_;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const C=p.id,N=(w=p.filter)===null||w===void 0?void 0:w.event;return C&&((y=n.ids)===null||y===void 0?void 0:y.includes(C))&&(N==="*"||(N==null?void 0:N.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))&&(!(!((x=p.filter)===null||x===void 0)&&x.table)||p.filter.table===((v=n.data)===null||v===void 0?void 0:v.table))}else{const C=(j=(g=p==null?void 0:p.filter)===null||g===void 0?void 0:g.event)===null||j===void 0?void 0:j.toLocaleLowerCase();return C==="*"||C===((_=n==null?void 0:n.event)===null||_===void 0?void 0:_.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof h=="object"&&"ids"in h){const w=h.data,{schema:y,table:b,commit_timestamp:x,type:v,errors:g}=w;h=Object.assign(Object.assign({},{schema:y,table:b,commit_timestamp:x,eventType:v,new:{},old:{},errors:g}),this._getPayloadRecords(w))}p.callback(h,r)})}_isClosed(){return this.state===kt.closed}_isJoined(){return this.state===kt.joined}_isJoining(){return this.state===kt.joining}_isLeaving(){return this.state===kt.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&&ro.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(lr.close,{},t)}_onError(t){this._on(lr.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=kt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=X0(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=X0(t.columns,t.old_record)),n}}const nm=()=>{},Mu={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},LL=[1e3,2e3,5e3,1e4],FL=1e4,WL=`
310  addEventListener("message", (e) => {
311    if (e.data.event === "start") {
312      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
313    }
314  });`;class $L{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=Up,this.transport=null,this.heartbeatIntervalMs=Mu.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=nm,this.ref=0,this.reconnectTimer=null,this.vsn=Z0,this.logger=nm,this.conn=null,this.sendBuffer=[],this.serializer
314=new AL,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}/${Bp.websocket}`,this.httpEndpoint=aN(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=_L.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
315
316To use Realtime in Node.js, you need to provide a WebSocket implementation:
317
318Option 1: Use Node.js 22+ which has native WebSocket support
319Option 2: Install and provide the "ws" package:
320
321  npm install ws
322
323  import ws from "ws"
324  const client = new RealtimeClient(url, {
325    ...options,
326    transport: ws
327  })`):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 Rs.connecting:return Ma.Connecting;case Rs.open:return Ma.Open;case Rs.closing:return Ma.Closing;default:return Ma.Closed}}isConnected(){return this.connectionState()===Ma.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 ro(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}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(TL,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Mu.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=>
327{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",u)}catch(d){this.log("error","error in heartbeat callback",d)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:s,payload:i,ref:o}=n,l=o?`(${o})`:"",c=i.status||"";this.log("receive",`${c} ${r} ${s} ${l}`.trim(),i),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(s,i,o)),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===Rs.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Rs.open||this.conn.readyState===Rs.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(lr.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([WL],{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:NL};n&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(lr.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 rN(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Mu.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,o,l,c,u,d,f,h,p;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
327imeout)!==null&&r!==void 0?r:Up,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:Mu.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(l=t==null?void 0:t.heartbeatCallback)!==null&&l!==void 0?l:nm,this.vsn=(c=t==null?void 0:t.vsn)!==null&&c!==void 0?c:Z0,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=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:w=>LL[w-1]||FL,this.vsn){case nN:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(w,y)=>y(JSON.stringify(w)),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:(w,y)=>y(JSON.parse(w));break;case CL:this.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:this.serializer.encode.bind(this.serializer),this.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p: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 Sc=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 zL(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 UL(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 BL(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const l=zL(e.baseUrl,r,s),c=await UL(e.auth),u=await t(l,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...c,...o},body:i?JSON.stringify(i):void 0}),d=await u.text(),f=(u.headers.get("content-type")||"").includes("application/json"),h=f&&d?JSON.parse(d):d;if(!u.ok){const p=f?h:void 0,w=p==null?void 0:p.error;throw new Sc((w==null?void 0:w.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:p})}return{status:u.status,headers:u.headers,data:h}}}}function Lu(e){return e.join("�")}var GL=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Lu(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/${Lu(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Lu(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Lu(e.namespace)}`}),!0}catch(t){if(t instanceof Sc&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Sc&&n.status===409)return;throw n}}};function Si(e){return e.join("�")}var HL=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/${Si(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/${Si(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/${Si(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/${Si(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/${Si(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/${Si(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Sc&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Sc&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},qL=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=BL({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new GL(this.client,t),this.tableOps=new HL(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)}
327async 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)}},Vf=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 VL=class extends Vf{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}}},Hp=class extends Vf{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}};const ov=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),KL=()=>Response,qp=e=>{if(Array.isArray(e))return e.map(n=>qp(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]=qp(r)}),t},YL=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)},QL=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Nc(e){"@babel/helpers - typeof";return Nc=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},Nc(e)}function JL(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZL(e){var t=JL(e,"string");return Nc(t)=="symbol"?t:t+""}function XL(e,t,n){return(t=ZL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nb(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 fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(n),!0).forEach(function(r){XL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const rm=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)},e5=async(e,t,n)=>{e instanceof await KL()&&!(n!=null&&n.noResolveJson)?e.json().then(r=>{const s=e.status||500,i=(r==null?void 0:r.statusCode)||s+"";t(new VL(rm(r),s,i))}).catch(r=>{t(new Hp(rm(r),r))}):t(new Hp(rm(e),e))},t5=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?s:(YL(r)?(s.headers=fe({"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),fe(fe({},s),n))};async function Jc(e,t,n,r,s,i){return new Promise((o,l)=>{e(n,t5(t,r,s,i)).then(c=>{if(!c.ok)throw c;return r!=null&&r.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>e5(c,l,r))})}async function Cc(e,t,n,r){return Jc(e,"GET",t,n,r)}async function sr(e,t,n,r,s){return Jc(e,"POST",t,r,s,n)}async function Vp(e,t,n,r,s){return Jc(e,"PUT",t,r,s,n)}async function n5(e,t,n,r){return Jc(e,"HEAD",t,fe(fe({},n),{},{noResolveJson:!0}),r)}async function lv(e,t,n,r,s){return Jc(e,"DELETE",t,r,s,n)}var r5=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 iN;iN=Symbol.toStringTag;var s5=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[iN]="BlobDownloadBuilder",this.promise=null}asStream(){return new r5(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 a5={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},rb={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var i5=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=n,this.fetch=ov(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(e,t,n,r){var s=this;try{let i;const o=fe(fe({},rb),r);let l=fe(fe({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",s.encodeMetadata(c)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),c&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(c))):(i=n,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=s.toBase64(s.encodeMetadata(c))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(l=fe(fe({},l),r.headers));const u=s._removeEmptyFolders(t),d=s._getFinalPath(u),f=await(e=="PUT"?Vp:sr)(s.fetch,`${s.url}/object/${d}`,i,fe({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:f.Id,fullPath:f.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),o=s._getFinalPath(i),l=new URL(s.url+`/object/upload/sign/${o}`);l.searchParams.set("token",t);try{let c;const u=fe({upsert:rb.upsert},r),d=fe(fe({},s.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.append("cacheControl",u.cacheControl)):(c=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{data:{path:i,fullPath:(await Vp(s.fetch,l.toString(),c,{headers:d})).Key},error:null}}catch(c){if(s.shouldThrowOnError)throw c;if(it(c))return{data:null,error:c};throw c}}async createSignedUploadUrl(e,t){var n=this;try{let r=n._getFinalPath(e);const s=fe({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await sr(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),l=o.searchParams.get("token");if(!l)throw new Vf("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:l},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 sr(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
327stinationBucket: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 sr(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 sr(r.fetch,`${r.url}/object/sign/${s}`,fe({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${r.url}${i.signedURL}${o}`)},{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 sr(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(o=>fe(fe({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.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),o=()=>Cc(this.fetch,`${this.url}/${n}/${i}${s}`,{headers:this.headers,noResolveJson:!0});return new s5(o,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);try{return{data:qp(await Cc(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 n5(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 Hp){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",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let l=r.join("&");return l!==""&&(l=`?${l}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}${l}`)}}}async remove(e){var t=this;try{return{data:await lv(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=fe(fe(fe({},a5),t),{},{prefix:e||""});return{data:await sr(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=fe({},e);return{data:await sr(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 oN="2.90.1",lN={"X-Client-Info":`storage-js/${oN}`};var o5=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=fe(fe({},lN),t),this.fetch=ov(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(e){var t=this;try{const n=t.listBucketOptionsToQueryString(e);return{data:await Cc(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 Cc(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 sr(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 Vp(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 sr(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 lv(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():""}},l5=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=fe(fe({},lN),t),this.fetch=ov(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await sr(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 Cc(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 lv(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(!QL(e))throw new Vf("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 qL({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
327),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...l)=>{try{return{data:await o.apply(s,l),error:null}}catch(c){if(r)throw c;return{data:null,error:c}}}}})}};const cv={"X-Client-Info":`storage-js/${oN}`,"Content-Type":"application/json"};var cN=class extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function kn(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}var sm=class extends cN{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}}},c5=class extends cN{constructor(e,t){super(e),this.name="StorageVectorsUnknownError",this.originalError=t}};const uv=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),u5=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)},sb=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),d5=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 o=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||r+"";t(new sm(sb(i),r,o))}).catch(()=>{const i=r+"";t(new sm(s.statusText||`HTTP ${r} error`,r,i))});else{const i=r+"";t(new sm(s.statusText||`HTTP ${r} error`,r,i))}}else t(new c5(sb(e),e))},f5=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return r?(u5(r)?(s.headers=fe({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,fe(fe({},s),n)):s};async function h5(e,t,n,r,s,i){return new Promise((o,l)=>{e(n,f5(t,r,s,i)).then(c=>{if(!c.ok)throw c;if(r!=null&&r.noResolveJson)return c;const u=c.headers.get("content-type");return!u||!u.includes("application/json")?{}:c.json()}).then(c=>o(c)).catch(c=>d5(c,l,r))})}async function _n(e,t,n,r,s){return h5(e,"POST",t,r,s,n)}var m5=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=fe(fe({},cv),t),this.fetch=uv(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(e){var t=this;try{return{data:await _n(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(n))return{data:null,error:n};throw n}}async getIndex(e,t){var n=this;try{return{data:await _n(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(kn(r))return{data:null,error:r};throw r}}async listIndexes(e){var t=this;try{return{data:await _n(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(n))return{data:null,error:n};throw n}}async deleteIndex(e,t){var n=this;try{return{data:await _n(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(kn(r))return{data:null,error:r};throw r}}},p5=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=fe(fe({},cv),t),this.fetch=uv(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 _n(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(n))return{data:null,error:n};throw n}}async getVectors(e){var t=this;try{return{data:await _n(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(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");
327if(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 _n(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(n))return{data:null,error:n};throw n}}async queryVectors(e){var t=this;try{return{data:await _n(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(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 _n(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(n))return{data:null,error:n};throw n}}},g5=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=fe(fe({},cv),t),this.fetch=uv(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await _n(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await _n(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(n))return{data:null,error:n};throw n}}async listBuckets(e={}){var t=this;try{return{data:await _n(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await _n(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(kn(n))return{data:null,error:n};throw n}}},y5=class extends g5{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new v5(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)}},v5=class extends m5{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,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,fe(fe({},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 x5(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},x5=class extends p5{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,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},b5=class extends o5{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new i5(this.url,this.headers,e,this.fetch)}get vectors(){return new y5(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new l5(this.url+"/iceberg",this.headers,this.fetch)}};const uN="2.90.1",zi=30*1e3,Kp=3,am=Kp*zi,w5="http://localhost:9999",j5="supabase.auth.token",k5={"X-Client-Info":`gotrue-js/${uN}`},Yp="X-Supabase-Api-Version",dN={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},_5=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,S5=10*60*1e3;
327class Tc extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function re(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class N5 extends Tc{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function C5(e){return re(e)&&e.name==="AuthApiError"}class La extends Tc{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class gs extends Tc{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class bn extends gs{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function T5(e){return re(e)&&e.name==="AuthSessionMissingError"}class Ni extends gs{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Fu extends gs{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Wu extends gs{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 E5(e){return re(e)&&e.name==="AuthImplicitGrantRedirectError"}class ab extends gs{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 A5 extends gs{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 Qp extends gs{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function im(e){return re(e)&&e.name==="AuthRetryableFetchError"}class ib extends gs{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Jp extends gs{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Vd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),ob=` 	
328\r=`.split(""),P5=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<ob.length;t+=1)e[ob[t].charCodeAt(0)]=-2;for(let t=0;t<Vd.length;t+=1)e[Vd[t].charCodeAt(0)]=t;return e})();function lb(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(Vd[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(Vd[r]),t.queuedBits-=6}}function fN(e,t,n){const r=P5[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 cb(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{I5(o,r,n)};for(let o=0;o<e.length;o+=1)fN(e.charCodeAt(o),s,i);return t.join("")}function R5(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 O5(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}R5(r,t)}}function I5(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 go(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)fN(e.charCodeAt(s),n,r);return new Uint8Array(t)}function D5(e){const t=[];return O5(e,n=>t.push(n)),new Uint8Array(t)}function za(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>lb(s,n,r)),lb(null,n,r),t.join("")}function M5(e){return Math.round(Date.now()/1e3)+e}function L5(){return Symbol("auth-callback")}const Rt=()=>typeof window<"u"&&typeof document<"u",Sa={tested:!1,writable:!1},hN=()=>
328{if(!Rt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Sa.tested)return Sa.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Sa.tested=!0,Sa.writable=!0}catch{Sa.tested=!0,Sa.writable=!1}return Sa.writable};function F5(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const mN=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),W5=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Ui=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Na=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Pt=async(e,t)=>{await e.removeItem(t)};class Kf{constructor(){this.promise=new Kf.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Kf.promiseConstructor=Promise;function om(e){const t=e.split(".");if(t.length!==3)throw new Jp("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!_5.test(t[r]))throw new Jp("JWT not in base64url format");return{header:JSON.parse(cb(t[0])),payload:JSON.parse(cb(t[1])),signature:go(t[2]),raw:{header:t[0],payload:t[1]}}}async function $5(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function z5(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function U5(e){return("0"+e.toString(16)).substr(-2)}function B5(){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,U5).join("")}async function G5(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 H5(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 G5(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Ci(e,t,n=!1){const r=B5();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await Ui(e,`${t}-code-verifier`,s);const i=await H5(r);return[i,r===i?"plain":"s256"]}const q5=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function V5(e){const t=e.headers.get(Yp);if(!t||!t.match(q5))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function K5(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 Y5(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 Q5=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Ti(e){if(!Q5.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function lm(){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 J5(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
328if(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 ub(e){return JSON.parse(JSON.stringify(e))}const Ia=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Z5=[502,503,504];async function db(e){var t;if(!W5(e))throw new Qp(Ia(e),0);if(Z5.includes(e.status))throw new Qp(Ia(e),e.status);let n;try{n=await e.json()}catch(i){throw new La(Ia(i),i)}let r;const s=V5(e);if(s&&s.getTime()>=dN["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 ib(Ia(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new bn}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,o)=>i&&typeof o=="string",!0))throw new ib(Ia(n),e.status,n.weak_password.reasons);throw new N5(Ia(n),e.status||500,r)}const X5=(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 de(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Yp]||(i[Yp]=dN["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await eF(e,t,n+l,{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(c):{data:Object.assign({},c),error:null}}async function eF(e,t,n,r,s,i){const o=X5(t,r,s,i);let l;try{l=await e(n,Object.assign({},o))}catch(c){throw console.error(c),new Qp(Ia(c),0)}if(l.ok||await db(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await db(c)}}function Xn(e){var t;let n=null;rF(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=M5(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function fb(e){const t=Xn(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 Ms(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function tF(e){return{data:e,error:null}}function nF(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=el(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function hb(e){return e}function rF(e){return e.access_token&&e.refresh_token&&e.expires_in}const cm=["global","local","others"];class sF{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=mN(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=cm[0]){if(cm.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${cm.join(", ")}`);try{return await de(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(re(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await de(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Ms})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=el(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 de(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:nF,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(re(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await de(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Ms})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await de(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:hb});if(d.error)throw d.error;const f=await d.json(),h=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>
3280&&(p.forEach(w=>{const y=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);u[`${b}Page`]=y}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(re(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Ti(t);try{return await de(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Ms})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Ti(t);try{return await de(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Ms})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Ti(t);try{return await de(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Ms})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Ti(t.userId);try{const{data:n,error:r}=await de(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(re(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Ti(t.userId),Ti(t.id);try{return{data:await de(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await de(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:hb});if(d.error)throw d.error;const f=await d.json(),h=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>0&&(p.forEach(w=>{const y=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);u[`${b}Page`]=y}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(re(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await de(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await de(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await de(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(re(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await de(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await de(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}}function mb(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Ei={debug:!!(globalThis&&hN()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class pN extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class aF extends pN{}async function iF(e,t,n){Ei.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Ei.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){Ei.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Ei.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Ei.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new aF(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Ei.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 oF(){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 gN(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
328" is invalid.`);return e.toLowerCase()}function lF(e){return parseInt(e,16)}function cF(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function uF(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:l,requestId:c,resources:u,scheme:d,uri:f,version:h}=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(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!f)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
329`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=gN(e.address),w=d?`${d}://${r}`:r,y=e.statement?`${e.statement}
330`:"",b=`${w} wants you to sign in with your Ethereum account:
331${p}
332
333${y}`;let x=`URI: ${f}
334Version: ${h}
335Chain ID: ${n}${o?`
336Nonce: ${o}`:""}
337Issued At: ${i.toISOString()}`;if(s&&(x+=`
338Expiration Time: ${s.toISOString()}`),l&&(x+=`
339Not Before: ${l.toISOString()}`),c&&(x+=`
340Request ID: ${c}`),u){let v=`
341Resources:`;for(const g of u){if(!g||typeof g!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${g}`);v+=`
342- ${g}`}x+=v}return`${b}
343${x}`}class bt 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 Kd extends bt{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function dF({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 bt({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 bt({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 bt({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 bt({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 bt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new bt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new bt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new bt({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 o=window.location.hostname;if(yN(o)){if(i.rp.id!==o)return new bt({message:`The RP ID "${i.rp.id}
343" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new bt({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 bt({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 bt({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 bt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function fF({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 bt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new bt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(yN(r)){if(n.rpId!==r)return new bt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new bt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new bt({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 bt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class hF{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 mF=new hF;function pF(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=el(e,["challenge","user","excludeCredentials"]),i=go(t).buffer,o=Object.assign(Object.assign({},n),{id:go(n.id).buffer}),l=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){l.excludeCredentials=new Array(r.length);for(let c=0;c<r.length;c++){const u=r[c];l.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:go(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function gF(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=el(e,["challenge","allowCredentials"]),s=go(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const l=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},l),{id:go(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function yF(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:za(new Uint8Array(e.response.attestationObject)),clientDataJSON:za(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function vF(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:za(new Uint8Array(s.authenticatorData)),clientDataJSON:za(new Uint8Array(s.clientDataJSON)),signature:za(new Uint8Array(s.signature)),userHandle:s.userHandle?za(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function yN(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function pb(){var e,t;return!!(Rt()&&"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 xF(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Kd("Browser returned unexpected credential type",t)}:{data:null,error:new Kd("Empty credential response",t)}}
343catch(t){return{data:null,error:dF({error:t,options:e})}}}async function bF(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Kd("Browser returned unexpected credential type",t)}:{data:null,error:new Kd("Empty credential response",t)}}catch(t){return{data:null,error:fF({error:t,options:e})}}}const wF={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},jF={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Yd(...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 o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const l=r[i];t(l)?r[i]=Yd(l,o):r[i]=Yd(o)}else r[i]=o}return r}function kF(e,t){return Yd(wF,e,t||{})}function _F(e,t){return Yd(jF,e,t||{})}class SF{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:o,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!o)return{data:null,error:l};const c=s??mF.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:u}=o.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${r}`),u.displayName||(u.displayName=u.name)}switch(o.webauthn.type){case"create":{const u=kF(o.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:f}=await xF({publicKey:u,signal:c});return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}case"request":{const u=_F(o.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:f}=await bF(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}}}catch(o){return re(o)?{data:null,error:o}:{data:null,error:new La("Unexpected error in challenge",o)}}}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 Tc("rpId is required for WebAuthn authentication")};try{if(!pb())return{data:null,error:new La("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:l};const{webauthn:c}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:c.type,rpId:n,rpOrigins:r,credential_response:c.credential_response}})}catch(o){return re(o)?{data:null,error:o}:{data:null,error:new La("Unexpected error in authenticate",o)}}}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 Tc("rpId is required for WebAuthn registration")};try{if(!pb())return{data:null,error:new La("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(d=>{var f;return(f=d.data)===null||f===void 0?void 0:f.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:l};const{data:c,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:n,rpOrigins:r,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(o){return re(o)?{data:null,error:o}:{data:null,error:new La("Unexpected error in register",o)}}}}oF();const NF={url:w5,storageKey:j5,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:k5,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function gb(e,t,n){return await n()}const Ai={};class Ec{get jwks(){var t,n;return(n=(t=Ai[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Ai[this.storageKey]=Object.assign(Object.assign({},Ai[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Ai[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ai[this.storageKey]=Object.assign(Object.assign({},Ai[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({},NF),t);if(this.storageKey=i.storageKey,this.instanceID=(n=Ec.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Ec.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&Rt()){const o=`${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(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new sF({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=mN(i.fetch),this.lock=i.lock||gb,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&&Rt()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=iF:this.lock=gb,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 SF(this)}
343,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:hN()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=mb(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=mb(this.memoryStorage)),Rt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.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} (${uN}) ${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(Rt()&&(n=F5(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Rt()&&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),E5(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return re(n)?this._returnResult({error:n}):this._returnResult({error:new La("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await de(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:Xn}),{data:o,error:l}=i;if(l||!o)return this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(re(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:f,options:h}=t;let p=null,w=null;this.flowType==="pkce"&&([p,w]=await Ci(this.storage,this.storageKey)),i=await de(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:p,code_challenge_method:w},xform:Xn})}else if("phone"in t){const{phone:d,password:f,options:h}=t;i=await de(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Xn})}else throw new Fu("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return await Pt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(await Pt(this.storage,`${this.storageKey}-code-verifier`),re(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:o,options:l}=t;n=await de(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:fb})}else if("phone"in t){const{phone:i,password:o,options:l}=t;n=await de(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:fb})}else throw new Fu("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 Ni;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(re(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,o,l,c,u,d,f,h;let p,w;if("message"in t)p=t.message,w=t.signature;else{const{chain:y,wallet:b,statement:x,options:v}=t;let g;if(Rt())if(typeof b=="object")g=b;else{const R=window;if("ethereum"in R&&typeof R.ethereum=="object"&&"request"in R.ethereum&&typeof R.ethereum.request=="function")g=R.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 b!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");g=b}const j=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href),_=await g.request({method:"eth_requestAccounts"}).then(R=>R).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!_||_.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const C=gN(_[0]);let N=(r=v==null?void 0:v.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!N){const R=await g.request({method:"eth_chainId"});N=lF(R)}const A={domain:j.host,address:C,statement:x,uri:j.href,version:"1",chainId:N,nonce:(s=v==null?void 0:v.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=v==null?void 0:v.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(l=v==null?void 0:v.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=v==null?void 0:v.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=v==null?void 0:v.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=v==null?void 0:v.signInWithEthereum)===null||d===void 0?void 0:d.resources};p=uF(A),w=await g.request({method:"personal_sign",params:[cF(p),C]})}try{const{data:y,error:b}=await de(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:w},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Xn});if(b)throw b;if(!y||!y.session||!y.user){const x=new Ni;return this._returnResult({data:{user:null,session:null},error:x})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:b})}catch(y){if(re(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async signInWithSolana(t){var n,r,s,i,o,l,c,u,d,f,h,p;let w,y;if("message"in t)w=t.message,y=t.signature;else{const{chain:b,wallet:x,statement:v,options:g}=t;let j;if(Rt())if(typeof x=="object")j=x;else{const C=window;if("solana"in C&&typeof C.solana=="object"&&("signIn"in C.solana&&typeof C.solana.signIn=="function"||"signMessage"in C.solana&&typeof C.solana.signMessage=="function"))j=C.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 x!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");j=x}const _=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in j&&j.signIn){const C=await j.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},g==null?void 0:g.signInWithSolana),{version:"1",domain:_.host,uri:_.href}),v?{statement:v}:null));let N;if(Array.isArray(C)&&C[0]&&typeof C[0]=="object")N=C[0];else if(C&&typeof C=="object"&&"signedMessage"in C&&"signature"in C)N=C;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in N&&"signature"in N&&(typeof N.signedMessage=="string"||N.signedMessage instanceof Uint8Array)&&N.signature instanceof Uint8Array)w=typeof N.signedMessage=="string"?N.signedMessage:new TextDecoder().decode(N.signedMessage),y=N.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in j)||typeof j.signMessage!="function"||!("publicKey"in j)||typeof j!="object"||!j.publicKey||!("toBase58"in j.publicKey)||typeof j.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${_.host} wants you to sign in with your Solana account:`,j.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(s=(r=g==null?void 0:g.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=g==null?void 0:g.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...!((o=g==null?void 0:g.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...!((l=g==null?void 0:g.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...!((c=g==null?void 0:g.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...!((u=g==null?void 0:g.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...!((f=(d=g==null?void 0:g.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||f===void 0)&&f.length?["Resources",...g.signInWithSolana.resources.map(N=>`- ${N}`)]:[]].join(`
344`);const C=await j.signMessage(new TextEncoder().encode(w),"utf8");if(!C||!(C instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");y=C}}try{const{data:b,error:x}=await de(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:za(y)}
344,!((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:Xn});if(x)throw x;if(!b||!b.session||!b.user){const v=new Ni;return this._returnResult({data:{user:null,session:null},error:v})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:x})}catch(b){if(re(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const n=await Na(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new A5;const{data:i,error:o}=await de(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Xn});if(await Pt(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const l=new Ni;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}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:o})}catch(i){if(await Pt(this.storage,`${this.storageKey}-code-verifier`),re(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:o}=t,l=await de(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Xn}),{data:c,error:u}=l;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const d=new Ni;return this._returnResult({data:{user:null,session:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:u})}catch(n){if(re(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:l,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Ci(this.storage,this.storageKey));const{error:f}=await de(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in t){const{phone:l,options:c}=t,{data:u,error:d}=await de(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new Fu("You must provide either an email or phone number.")}catch(l){if(await Pt(this.storage,`${this.storageKey}-code-verifier`),re(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}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:o,error:l}=await de(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Xn});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(s){if(re(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await Ci(this.storage,this.storageKey));const u=await de(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}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:tF});return!((i=u.data)===null||i===void 0)&&i.url&&Rt()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(l){if(await Pt(this.storage,`${this.storageKey}-code-verifier`),re(l))return this._returnResult({data:null,error:l});throw l}}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 bn;const{error:s}=await de(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(re(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:o}=await de(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:o})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:l}=await de(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:o==null?void 0:o.message_id},error:l})}throw new Fu("You must provide either an email or phone number and a type")}catch(n){if(re(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 Na(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 val
344id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<am:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Na(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=lm()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=J5(t.user,o),o.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 de(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Ms}):await this._useSession(async n=>{var r,s,i;const{data:o,error:l}=n;if(l)throw l;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new bn}:await de(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Ms})})}catch(n){if(re(n))return T5(n)&&(await this._removeSession(),await Pt(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 bn;const o=s.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await Ci(this.storage,this.storageKey));const{data:u,error:d}=await de(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:Ms});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Pt(this.storage,`${this.storageKey}-code-verifier`),re(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 bn;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=om(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)throw c;i={access_token:t.access_token,refresh_token:t.refresh_token,user:l.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(re(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:o,error:l}=n;if(l)throw l;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new bn;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(re(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}
344async _getSessionFromURL(t,n){try{if(!Rt())throw new Wu("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Wu(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 ab("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Wu("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 ab("No code detected.");const{data:v,error:g}=await this._exchangeCodeForSession(t.code);if(g)throw g;const j=new URL(window.location.href);return j.searchParams.delete("code"),window.history.replaceState(window.history.state,"",j.toString()),{data:{session:v.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:l,expires_at:c,token_type:u}=t;if(!i||!l||!o||!u)throw new Wu("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(l);let h=d+f;c&&(h=parseInt(c));const p=h-d;p*1e3<=zi&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${f}s`);const w=h-f;d-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,h,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,h,d);const{data:y,error:b}=await this._getUser(i);if(b)throw b;const x={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:h,refresh_token:o,token_type:u,user:y.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:x,redirectType:t.type},error:null})}catch(r){if(re(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 Na(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 o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(C5(l)&&(l.status===404||l.status===401||l.status===403)))return this._returnResult({error:l})}return t!=="others"&&(await this._removeSession(),await Pt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=L5(),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:o}=n;if(o)throw o;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 Ci(this.storage,this.storageKey,!0));try{return await de(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 Pt(this.storage,`${this.storageKey}-code-verifier`),re(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(re(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 o,l,c,u,d;const{data:f,error:h}=i;if(h)throw h;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await de(this.fetch,"GET",p,{headers:this.headers,jwt:(d=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Rt()&&!(!((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(re(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;
344if(s)throw s;const{options:o,provider:l,token:c,access_token:u,nonce:d}=t,f=await de(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:l,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Xn}),{data:h,error:p}=f;return p?this._returnResult({data:{user:null,session:null},error:p}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new Ni}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:p}))}catch(s){if(await Pt(this.storage,`${this.storageKey}-code-verifier`),re(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:o}=n;if(o)throw o;return await de(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(re(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 z5(async s=>(s>
3440&&await $5(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await de(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Xn})),(s,i)=>{const o=200*Math.pow(2,s);return i&&im(i)&&Date.now()+o-r<zi})}catch(r){if(this._debug(n,"error",r),re(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),Rt()&&!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 Na(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Na(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Ui(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:lm()}else if(s&&!s.user&&!s.user){const o=await Na(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Pt(this.storage,this.storageKey+"-user"),await Ui(this.storage,this.storageKey,s)):s.user=lm()}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()<am;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${am}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),im(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(s.access_token);!l&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}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 bn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Kf;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new bn;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={data:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(s,"error",i),re(i)){const o={data:null,error:i};return im(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}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=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Pt(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 Ui(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=ub(s);await Ui(this.storage,this.storageKey,i)}else{const s=ub(n);await Ui(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Pt(this.storage,this.storageKey),await Pt(this.storage,this.storageKey+"-code-verifier"),await Pt(this.storage,this.storageKey+"-user"),this.userStorage&&await Pt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Rt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
344catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),zi);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)/zi);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${zi}ms, refresh threshold is ${Kp} ticks`),s<=Kp&&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 pN)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Rt()||!(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,o]=await Ci(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(l.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 de(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(re(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:o}=n;if(o)return this._returnResult({data:null,error:o});const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:u}=await de(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&c.type==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(n){if(re(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 o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?yF(t.webauthn.credential_response):vF(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:c}=await de(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}catch(n){if(re(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 o=await de(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(o.error)return o;const{data:l}=o;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:pF(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:gF(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(re(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}
344=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}=om(r.access_token);let o=null;i.aal&&(o=i.aal);let l=o;((n=(t=r.user.factors)===null||t===void 0?void 0:t.filter(d=>d.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(l="aal2");const u=i.amr||[];return{data:{currentLevel:o,nextLevel:l,currentAuthenticationMethods:u},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 de(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 bn})})}catch(n){if(re(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 bn});const o=await de(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&Rt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(re(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 bn});const o=await de(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&Rt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(re(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 de(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 bn})})}catch(t){if(re(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 de(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 bn})})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(l=>l.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(l=>l.kid===t),r&&this.jwks_cached_at+S5>s)return r;const{data:i,error:o}=await de(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(l=>l.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:p,error:w}
344=await this.getSession();if(w||!p.session)return this._returnResult({data:null,error:w});r=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:l,payload:c}}=om(r);n!=null&&n.allowExpired||K5(i.exp);const u=!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(!u){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const d=Y5(s.alg),f=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,o,D5(`${l}.${c}`)))throw new Jp("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}}}Ec.nextInstanceID={};const CF=Ec,TF="2.90.1";let Rl="";typeof Deno<"u"?Rl="deno":typeof document<"u"?Rl="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Rl="react-native":Rl="node";const EF={"X-Client-Info":`supabase-js-${Rl}/${TF}`},AF={headers:EF},PF={schema:"public"},RF={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},OF={};function Ac(e){"@babel/helpers - typeof";return Ac=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},Ac(e)}function IF(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DF(e){var t=IF(e,"string");return Ac(t)=="symbol"?t:t+""}function MF(e,t,n){return(t=DF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yb(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?yb(Object(n),!0).forEach(function(r){MF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const LF=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),FF=()=>Headers,WF=(e,t,n)=>{const r=LF(n),s=FF();return async(i,o)=>{var l;const c=(l=await t())!==null&&l!==void 0?l:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),r(i,ht(ht({},o),{},{headers:u}))}};function $F(e){return e.endsWith("/")?e:e+"/"}function zF(e,t){var n,r;const{db:s,auth:i,realtime:o,global:l}=e,{db:c,auth:u,realtime:d,global:f}=t,h={db:ht(ht({},c),s),auth:ht(ht({},u),i),realtime:ht(ht({},d),o),storage:{},global:ht(ht(ht({},f),l),{},{headers:ht(ht({},(n=f==null?void 0:f.headers)!==null&&n!==void 0?n:{}),(r=l==null?void 0:l.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function UF(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($F(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var BF=class extends CF{constructor(e){super(e)}},GF=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=UF(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 o=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:PF,realtime:OF,auth:ht(ht({},RF),{},{storageKey:o}),global:AF},c=zF(n??{},l);if(this.storageKey=(r=c.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=WF(t,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(ht({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.accessToken&&this.accessToken().then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new kL(new URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new b5(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new vL(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)}
344channel(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:o,lock:l,debug:c,throwOnError:u},d,f){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new BF({url:this.authUrl.href,headers:ht(ht({},h),d),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:l,debug:c,throwOnError:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new $L(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 HF=(e,t,n)=>new GF(e,t,n);function qF(){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}qF()&&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");function VF(){var b,x;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(v=>e===v||e.endsWith("."+v)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((b=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:b[1])??((x=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:x[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),l=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,c=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=c&&l.test(c)?[c]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",f=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(v,g,j)=>new Promise(_=>{const C=h();let N=!1,A;const R=D=>{N||(N=!0,clearTimeout(A),window.removeEventListener("message",I),_(D))},I=D=>{if(u.indexOf(D.origin)<0)return;const Q=D.data;Q&&Q.type===d&&Q.requestId===C&&R(Q)};window.addEventListener("message",I);const V={type:v,requestId:C,projectId:s,key:g};j!==void 0&&(V.value=j);for(const D of u)window.parent.postMessage(V,D);A=setTimeout(()=>R(null),f)});let w=!0;const y=250;return{getItem:async v=>{let g=await p("lovable-preview-auth:get",v);return!g&&w&&(await new Promise(j=>setTimeout(j,y)),g=await p("lovable-preview-auth:get",v)),w=!1,g&&g.ok&&typeof g.value=="string"?g.value===""?(localStorage.removeItem(v),null):g.value:localStorage.getItem(v)},setItem:(v,g)=>(localStorage.setItem(v,g),p("lovable-preview-auth:set",v,g).then(j=>{j&&j.ok&&typeof j.value=="string"&&localStorage.getItem(v)===g&&(j.value===""?localStorage.removeItem(v):localStorage.setItem(v,j.value))})),removeItem:v=>(localStorage.removeItem(v),p("lovable-preview-auth:remove",v).then(()=>{}))}}const KF="https://ofbbpfwycgbntpqpayhn.supabase.co",YF="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9mYmJwZnd5Y2dibnRwcXBheWhuIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njg3ODMyNjQsImV4cCI6MjA4NDM1OTI2NH0.rxfJeNCqrKye-bePtPpiJ9R35WkYAas0fOYO08HeH_o",ce=HF(KF,YF,{auth:{storage:VF(),persistSession:!0,autoRefreshToken:!0}}),va=()=>{const e=br(),[t,n]=m.useState(null);return m.useEffect(()=>{(async()=>{const{data:s}=await ce.from("page_content").select("meta_title, meta_description, meta_keywords, h1_tag, content").eq("page_slug",e.pathname).maybeSingle();n(s||null)})()},[e.pathname]),t},Ee=({title:e,description:t,canonical:n,noIndex:r})=>{const s=va(),i="Corban Energy Group",o=(s==null?void 0:s.meta_title)||e,l=(s==null?void 0:s.meta_description)||t,c=(s==null?void 0:s.meta_keywords)||null,u=o.includes(i)?o:`${o} | ${i}`;return a.jsxs(Bj,{children:[a.jsx("title",{children:u}),a.jsx("meta",{name:"description",content:l}),c&&a.jsx("meta",{name:"keywords",content:c}),n&&a.jsx("link",{rel:"canonical",href:n}),r&&a.jsx("meta",{name:"robots",content:"noindex, nofollow"})]})};/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function vb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function QF(e){if(Array.isArray(e))return e}function JF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,s=d}
vendor: 6,671 bytes, lines 344-345
344finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function ZF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
345In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XF(e,t){return QF(e)||JF(e,t)||e6(e,t)||ZF()}function e6(e,t){if(e){if(typeof e=="string")return vb(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vb(e,t):void 0}}const vN=Object.entries,xb=Object.setPrototypeOf,t6=Object.isFrozen,n6=Object.getPrototypeOf,r6=Object.getOwnPropertyDescriptor;let It=Object.freeze,Ft=Object.seal,Bi=Object.create,xN=typeof Reflect<"u"&&Reflect,Zp=xN.apply,Xp=xN.construct;It||(It=function(t){return t});Ft||(Ft=function(t){return t});Zp||(Zp=function(t,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return t.apply(n,s)});Xp||(Xp=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 new t(...r)});const Pi=jt(Array.prototype.forEach),s6=jt(Array.prototype.lastIndexOf),bb=jt(Array.prototype.pop),Ri=jt(Array.prototype.push),a6=jt(Array.prototype.splice),Ls=Array.isArray,Ol=jt(String.prototype.toLowerCase),um=jt(String.prototype.toString),wb=jt(String.prototype.match),kl=jt(String.prototype.replace),jb=jt(String.prototype.indexOf),i6=jt(String.prototype.trim),o6=jt(Number.prototype.toString),l6=jt(Boolean.prototype.toString),kb=typeof BigInt>"u"?null:jt(BigInt.prototype.toString),_b=typeof Symbol>"u"?null:jt(Symbol.prototype.toString),Tt=jt(Object.prototype.hasOwnProperty),_l=jt(Object.prototype.toString),Ct=jt(RegExp.prototype.test),Ca=c6(TypeError);function jt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return Zp(e,t,r)}}function c6(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xp(e,n)}}function Oe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ol;if(xb&&xb(e,null),!Ls(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=n(s);i!==s&&(t6(t)||(t[r]=i),s=i)}e[s]=!0}return e}function u6(e){for(let t=0;t<e.length;t++)Tt(e,t)||(e[t]=null);return e}function Ut(e){const t=Bi(null);for(const r of vN(e)){var n=XF(r,2);const s=n[0],i=n[1];Tt(e,s)&&(Ls(i)?t[s]=u6(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=Ut(i):t[s]=i)}return t}function d6(e){switch(typeof e){case"string":return e;case"number":return o6(e);case"boolean":return l6(e);case"bigint":return kb?kb(e):"0";case"symbol":return _b?_b(e):"Symbol()";case"undefined":return _l(e);case"function":case"object":{if(e===null)return _l(e);const t=e,n=er(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:_l(r)}return _l(e)}default:return _l(e)}}function er(e,t){for(;e!==null;){const r=r6(e,t);if(r){if(r.get)return jt(r.get);if(typeof r.value=="function")return jt(r.value)}e=n6(e)}function n(){return null}return n}function f6(e){try{return Ct(e,""),!0}catch{return!1}}const Sb=It(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),dm=It(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fm=It(["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"]),h6=It(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),hm=It(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),m6=It(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Nb=It(["#text"]),Cb=It(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
345spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mm=It(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Tb=It(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$u=It(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),p6=Ft(/{{[\w\W]*|^[\w\W]*}}/g),g6=Ft(/<%[\w\W]*|^[\w\W]*%>/g),y6=Ft(/\${[\w\W]*/g),v6=Ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),x6=Ft(/^aria-[\-\w]+$/),Eb=Ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),b6=Ft(/^(?:\w+script|data):/i),w6=Ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),j6=Ft(/^html$/i),k6=Ft(/^[a-z][.\w]*(-[.\w]+)+$/i),Ab=Ft(/<[/\w!]/g),Pb=Ft(/<[/\w]/g),_6=Ft(/<\/no(script|embed|frames)/i),S6=Ft(/\/>/i),xn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},N6=function(){return typeof window>"u"?null:window},C6=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;
vendor: 4,149 bytes, line 345
345const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Rb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ns=function(t,n,r,s){return Tt(t,n)&&Ls(t[n])?Oe(s.base?Ut(s.base):{},t[n],s.transform):r};function bN(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:N6();const t=B=>bN(B);if(t.version="3.4.13",t.removed=[],!e||!e.document||e.document.nodeType!==xn.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,o=e.Node,l=e.Element,c=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,f=e.trustedTypes,h=l.prototype,p=er(h,"cloneNode"),w=er(h,"remove"),y=er(h,"nextSibling"),b=er(h,"childNodes"),x=er(h,"parentNode"),v=er(h,"shadowRoot"),g=er(h,"attributes"),j=o&&o.prototype?er(o.prototype,"nodeType"):null,_=o&&o.prototype?er(o.prototype,"nodeName"):null,C=o&&o.prototype?er(o.prototype,"ownerDocument"):null;if(typeof i=="function"){const B=n.createElement("template");B.content&&B.content.ownerDocument&&(n=B.content.ownerDocument)}let N,A="",R,I=!1,V=0;const D=function(){if(V>0)throw Ca('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Q=function(k){D(),V++;try{return N.createHTML(k)}finally{V--}},F=function(k){D(),V++;try{return N.createScriptURL(k)}finally{V--}},ae=function(){return I||(R=C6(f,s),I=!0),R},H=n,O=H.implementation,S=H.createNodeIterator,T=H.createDocumentFragment,M=H.getElementsByTagName,Z=r.importNode;let $=Rb();t.isSupported=typeof vN=="function"&&typeof x=="function"&&O&&O.createHTMLDocument!==void 0;const ie=p6,le=g6,We=y6,Be=v6,G=x6,Re=b6,Ae=w6,Te=k6;let _e=Eb,se=null;const vt=Oe({},[...Sb,...dm,...fm,...hm,...Nb]);let Se=null;const Vn=Oe({},[...Cb,...mm,...Tb,...$u]);let Ue=Object.seal(Bi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),gn=null,vs=null;const Vt=Object.seal(Bi(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let nl=!0,Hr=!0,rl=!1,jr=!0,kr=!1,_r=!0,xt=!1,Sr=!1,mi=null,pi=null,xs=!1,bs=!1,ka=!1,ws=!1,qr=!0,sl=!1;const Vr="user-content-";let al=!0,gi=!1,Kr={},yn=null;const il=Oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let yi=null;const Kn=Oe({},["audio","video","img","source","image","track"]);let ol=null;const pe=Oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",dt="http://www.w3.org/1999/xhtml";let Nt=dt,In=!1,Yn=null;const vn=Oe({},[De,Ge,dt],um),Qn=It(["mi","mo","mn","ms","mtext"]);let th=Oe({},Qn);const Tv=It(["annotation-xml"]);let nh=Oe({},Tv);const TT=Oe({},["title","style","font","a","script"]);let ll=null;const ET=["application/xhtml+xml","text/html"],AT="text/html";let st=null,vi=null;const PT=n.createElement("form"),Ev=function(k){return k instanceof RegExp||k instanceof Function},rh=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(vi&&vi===k)return;(!k||typeof k!="object")&&(k={}
vendor: 4,337 bytes, line 345
345),k=Ut(k),ll=ET.indexOf(k.PARSER_MEDIA_TYPE)===-1?AT:k.PARSER_MEDIA_TYPE,st=ll==="application/xhtml+xml"?um:Ol,se=Ns(k,"ALLOWED_TAGS",vt,{transform:st}),Se=Ns(k,"ALLOWED_ATTR",Vn,{transform:st}),Yn=Ns(k,"ALLOWED_NAMESPACES",vn,{transform:um}),ol=Ns(k,"ADD_URI_SAFE_ATTR",pe,{transform:st,base:pe}),yi=Ns(k,"ADD_DATA_URI_TAGS",Kn,{transform:st,base:Kn}),yn=Ns(k,"FORBID_CONTENTS",il,{transform:st}),gn=Ns(k,"FORBID_TAGS",Ut({}),{transform:st}),vs=Ns(k,"FORBID_ATTR",Ut({}),{transform:st}),Kr=Tt(k,"USE_PROFILES")?k.USE_PROFILES&&typeof k.USE_PROFILES=="object"?Ut(k.USE_PROFILES):k.USE_PROFILES:!1,nl=k.ALLOW_ARIA_ATTR!==!1,Hr=k.ALLOW_DATA_ATTR!==!1,rl=k.ALLOW_UNKNOWN_PROTOCOLS||!1,jr=k.ALLOW_SELF_CLOSE_IN_ATTR!==!1,kr=k.SAFE_FOR_TEMPLATES||!1,_r=k.SAFE_FOR_XML!==!1,xt=k.WHOLE_DOCUMENT||!1,bs=k.RETURN_DOM||!1,ka=k.RETURN_DOM_FRAGMENT||!1,ws=k.RETURN_TRUSTED_TYPE||!1,xs=k.FORCE_BODY||!1,qr=k.SANITIZE_DOM!==!1,sl=k.SANITIZE_NAMED_PROPS||!1,al=k.KEEP_CONTENT!==!1,gi=k.IN_PLACE||!1,_e=f6(k.ALLOWED_URI_REGEXP)?k.ALLOWED_URI_REGEXP:Eb,Nt=typeof k.NAMESPACE=="string"?k.NAMESPACE:dt,th=Tt(k,"MATHML_TEXT_INTEGRATION_POINTS")&&k.MATHML_TEXT_INTEGRATION_POINTS&&typeof k.MATHML_TEXT_INTEGRATION_POINTS=="object"?Ut(k.MATHML_TEXT_INTEGRATION_POINTS):Oe({},Qn),nh=Tt(k,"HTML_INTEGRATION_POINTS")&&k.HTML_INTEGRATION_POINTS&&typeof k.HTML_INTEGRATION_POINTS=="object"?Ut(k.HTML_INTEGRATION_POINTS):Oe({},Tv);const E=Tt(k,"CUSTOM_ELEMENT_HANDLING")&&k.CUSTOM_ELEMENT_HANDLING&&typeof k.CUSTOM_ELEMENT_HANDLING=="object"?Ut(k.CUSTOM_ELEMENT_HANDLING):Bi(null);if(Ue=Bi(null),Tt(E,"tagNameCheck")&&Ev(E.tagNameCheck)&&(Ue.tagNameCheck=E.tagNameCheck),Tt(E,"attributeNameCheck")&&Ev(E.attributeNameCheck)&&(Ue.attributeNameCheck=E.attributeNameCheck),Tt(E,"allowCustomizedBuiltInElements")&&typeof E.allowCustomizedBuiltInElements=="boolean"&&(Ue.allowCustomizedBuiltInElements=E.allowCustomizedBuiltInElements),Ft(Ue),kr&&(Hr=!1),ka&&(bs=!0),Kr&&(se=Oe({},Nb),Se=Bi(null),Kr.html===!0&&(Oe(se,Sb),Oe(Se,Cb)),Kr.svg===!0&&(Oe(se,dm),Oe(Se,mm),Oe(Se,$u)),Kr.svgFilters===!0&&(Oe(se,fm),Oe(Se,mm),Oe(Se,$u)),Kr.mathMl===!0&&(Oe(se,hm),Oe(Se,Tb),Oe(Se,$u))),Vt.tagCheck=null,Vt.attributeCheck=null,Tt(k,"ADD_TAGS")&&(typeof k.ADD_TAGS=="function"?Vt.tagCheck=k.ADD_TAGS:Ls(k.ADD_TAGS)&&(se===vt&&(se=Ut(se)),Oe(se,k.ADD_TAGS,st))),Tt(k,"ADD_ATTR")&&(typeof k.ADD_ATTR=="function"?Vt.attributeCheck=k.ADD_ATTR:Ls(k.ADD_ATTR)&&(Se===Vn&&(Se=Ut(Se)),Oe(Se,k.ADD_ATTR,st))),Tt(k,"ADD_URI_SAFE_ATTR")&&Ls(k.ADD_URI_SAFE_ATTR)&&Oe(ol,k.ADD_URI_SAFE_ATTR,st),Tt(k,"FORBID_CONTENTS")&&Ls(k.FORBID_CONTENTS)&&(yn===il&&(yn=Ut(yn)),Oe(yn,k.FORBID_CONTENTS,st)),Tt(k,"ADD_FORBID_CONTENTS")&&Ls(k.ADD_FORBID_CONTENTS)&&(yn===il&&(yn=Ut(yn)),Oe(yn,k.ADD_FORBID_CONTENTS,st)),al&&(se["#text"]=!0),xt&&Oe(se,["html","head","body"]),se.table&&(Oe(se,["tbody"]),delete gn.tbody),k.TRUSTED_TYPES_POLICY){if(typeof k.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ca('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof k.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ca('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const L=N;N=k.TRUSTED_TYPES_POLICY;try{A=Q("")}catch(te){throw N=L,te}}else k.TRUSTED_TYPES_POLICY===null?(N=void 0,A=""):(N===void 0&&(N=ae()),N&&typeof A=="string"&&(A=Q("")));It&&It(k),vi=k},Av=Oe({},[...dm,...fm,...h6]),Pv=Oe({},[...hm,...m6]),RT=function(k,E,L){return E.namespaceURI===dt?k==="svg":E.namespaceURI===De?k==="svg"&&(L==="annotation-xml"||th[L]):!!Av[k]},OT=function(k,E,L){return E.namespaceURI===dt?k==="math":E.namespaceURI===Ge?k==="math"&&nh[L]:!!Pv[k]},IT=function(k,E,L){return E.namespaceURI===Ge&&!nh[L]||E.namespaceURI===De&&!th[L]?!1:!Pv[k]&&(TT[k]||!Av[k])},DT=function(k){let E=x(k);(!E||!E.tagName)&&(E={namespaceURI:Nt,tagName:"template"});const L=Ol(k.tagName),te=Ol(E.tagName);return Yn[k.namespaceURI]?k.namespaceURI===Ge?RT(L,E,te):k.namespaceURI===De?OT(L,E,te):k.namespaceURI===dt?IT(L,E,te):!!(ll==="application/xhtml+xml"&&Yn[k.namespaceURI]):!1},js=function(k){Ri(t.removed,{element:k});try{x(k).removeChild(k)}catch{if(w(k),!x(k))throw Ca("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},su=function(k){cl(k);const E=b(k);if(E){const te=[];
vendor: 4,801 bytes, line 345
345Pi(E,oe=>{Ri(te,oe)}),Pi(te,oe=>{try{w(oe)}catch{}})}const L=g(k);if(L)for(let te=L.length-1;te>=0;--te){const oe=L[te],we=oe&&oe.name;if(typeof we=="string")try{k.removeAttribute(we)}catch{}}},_a=function(k,E){try{Ri(t.removed,{attribute:E.getAttributeNode(k),from:E})}catch{Ri(t.removed,{attribute:null,from:E})}if(E.removeAttribute(k),k==="is")if(bs||ka)try{js(E)}catch{}else try{E.setAttribute(k,"")}catch{}},MT=function(k){const E=g(k);if(E)for(let L=E.length-1;L>=0;--L){const te=E[L],oe=te&&te.name;if(!(typeof oe!="string"||Se[st(oe)]))try{k.removeAttribute(oe)}catch{}}},cl=function(k){const E=[k];for(;E.length>0;){const L=E.pop();(j?j(L):L.nodeType)===xn.element&&MT(L);const oe=b(L);if(oe)for(let we=oe.length-1;we>=0;--we)E.push(oe[we])}},LT=function(k){if(!_r)return;const E=[k];for(;E.length>0;){const L=E.pop(),te=j?j(L):L.nodeType;if(te===xn.processingInstruction||te===xn.comment&&Ct(Pb,L.data)){try{w(L)}catch{}continue}if(te===xn.element){const we=L,Ye=st(_?_(L):L.nodeName);try{we.hasAttribute&&we.hasAttribute("patchsrc")&&we.removeAttribute("patchsrc"),we.hasAttribute&&we.hasAttribute("for")&&Ye!=="label"&&Ye!=="output"&&we.removeAttribute("for")}catch{}}const oe=b(L);if(oe)for(let we=oe.length-1;we>=0;--we)E.push(oe[we])}},Rv=function(k){let E=null,L=null;if(xs)k="<remove></remove>"+k;else{const we=wb(k,/^[\r\n\t ]+/);L=we&&we[0]}ll==="application/xhtml+xml"&&Nt===dt&&(k='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+k+"</body></html>");const te=N?Q(k):k;if(Nt===dt)try{E=new d().parseFromString(te,ll)}catch{}if(!E||!E.documentElement){E=O.createDocument(Nt,"template",null);try{E.documentElement.innerHTML=In?A:te}catch{}}const oe=E.body||E.documentElement;return k&&L&&oe.insertBefore(n.createTextNode(L),oe.childNodes[0]||null),Nt===dt?M.call(E,xt?"html":"body")[0]:xt?E.documentElement:oe},Ov=function(k){const E=C?C(k):k.ownerDocument;return S.call(E||k,k,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},au=function(k){return k=kl(k,ie," "),k=kl(k,le," "),k=kl(k,We," "),k},sh=function(k){var E;k.normalize();const L=C?C(k):k.ownerDocument,te=S.call(L||k,k,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let oe=te.nextNode();for(;oe;)oe.data=au(oe.data),oe=te.nextNode();const we=(E=k.querySelectorAll)===null||E===void 0?void 0:E.call(k,"template");we&&Pi(we,Ye=>{xi(Ye.content)&&sh(Ye.content)})},iu=function(k){const E=_?_(k):null;return typeof E!="string"||st(E)!=="form"?!1:typeof k.nodeName!="string"||typeof k.textContent!="string"||typeof k.removeChild!="function"||k.attributes!==g(k)||typeof k.removeAttribute!="function"||typeof k.setAttribute!="function"||typeof k.namespaceURI!="string"||typeof k.insertBefore!="function"||typeof k.hasChildNodes!="function"||k.nodeType!==j(k)||k.childNodes!==b(k)},xi=function(k){if(!j||typeof k!="object"||k===null)return!1;try{return j(k)===xn.documentFragment}catch{return!1}},ul=function(k){if(!j||typeof k!="object"||k===null)return!1;try{return typeof j(k)=="number"}catch{return!1}};function Nr(B,k,E){B.length!==0&&Pi(B,L=>{L.call(t,k,E,vi)})}const FT=function(k,E){return!!(_r&&k.hasChildNodes()&&!ul(k.firstElementChild)&&Ct(Ab,k.textContent)&&Ct(Ab,k.innerHTML)||_r&&k.namespaceURI===dt&&E==="style"&&ul(k.firstElementChild)||k.nodeType===xn.processingInstruction||_r&&k.nodeType===xn.comment&&Ct(Pb,k.data))},WT=function(k,E,L){if(!gn[E]&&Lv(E)&&(Ue.tagNameCheck instanceof RegExp&&Ct(Ue.tagNameCheck,E)||Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(E)))return!1;if(al&&!yn[E]){const te=x(k),oe=b(k);if(oe&&te){const we=oe.length;for(let Ye=we-1;Ye>=0;--Ye){const at=k===L?p(oe[Ye],!0):oe[Ye];te.insertBefore(at,y(k))}}}return js(k),!0},Iv=function(k,E,L,te){return k.length===0?E:E===L||E===te?Ut(E):E},Dv=function(k,E){if(Nr($.beforeSanitizeElements,k,null),k!==E&&x(k)===null)return gi&&cl(k),!0;if(iu(k))return js(k),!0;const L=st(_?_(k):k.nodeName);if(se=Iv($.uponSanitizeElement,se,vt,mi),Nr($.uponSanitizeElement,k,{tagName:L,allowedTags:se}),k!==E&&x(k)===null)return gi&&cl(k),!0;if(FT(k,L))return js(k),!0;if(gn[L]||!(Vt.tagCheck instanceof Function&&Vt.tagCheck(L))&&!se[L]){const oe=WT(k,L,E);return oe===!1&&Nr($.afterSanitizeElements,k,null),oe}if((j?j(k):k.nodeType)===xn.element&&!DT(k)||(L==="noscript"||L==="noembed"||L==="noframes")&&Ct(_6,k.innerHTML))return js(k),!0;if(kr&&k.nodeType===xn.text){const oe=au(k.textContent);k.textContent!==oe&&(Ri(t.removed,{element:k.cloneNode()}),k.textContent=oe)}return Nr($.afterSanitizeElements,k,null),!1},Mv=function(k,E,L){if(vs[E]||_r&&E==="patchsrc"||_r&&E==="for"&&k!=="label"&&k!=="output"||qr&&(E==="id"||E==="name")&&(L in n||L in PT))return!1;const te=Se[E]||Vt.attributeCheck instanceof Function&&Vt.attributeCheck(E,k
345);if(!(Hr&&Ct(Be,E))){if(!(nl&&Ct(G,E))){if(te){if(!ol[E]){if(!Ct(_e,kl(L,Ae,""))){if(!((E==="src"||E==="xlink:href"||E==="href")&&k!=="script"&&jb(L,"data:")===0&&yi[k])){if(!(rl&&!Ct(Re,kl(L,Ae,"")))){if(L)return!1}}}}}else if(!(Lv(k)&&(Ue.tagNameCheck instanceof RegExp&&Ct(Ue.tagNameCheck,k)||Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(k))&&(Ue.attributeNameCheck instanceof RegExp&&Ct(Ue.attributeNameCheck,E)||Ue.attributeNameCheck instanceof Function&&Ue.attributeNameCheck(E,k))||E==="is"&&Ue.allowCustomizedBuiltInElements&&(Ue.tagNameCheck instanceof RegExp&&Ct(Ue.tagNameCheck,L)||Ue.tagNameCheck instanceof Function&&Ue.tagNameCheck(L))))return!1}}return!0},$T=Oe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Lv=function(k){return!$T[Ol(k)]&&Ct(Te,k)},zT=function(k,E,L,te){if(N&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!L)switch(f.getAttributeType(k,E)){case"TrustedHTML":return Q(te);case"TrustedScriptURL":return F(te)}return te},UT=function(k,E,L,te){try{L?k.setAttributeNS(L,E,te):k.setAttribute(E,te),iu(k)?js(k):bb(t.removed)}catch{_a(E,k)}},Fv=function(k){Nr($.beforeSanitizeAttributes,k,null);const E=k.attributes;if(!E||iu(k))return;Se=Iv($.uponSanitizeAttribute,Se,Vn,pi);const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let te=E.length;const oe=st(k.nodeName);for(;te--;){const we=E[te],Ye=we.name,at=we.namespaceURI,sn=we.value,an=st(Ye),ih=sn;let Kt=Ye==="value"?ih:i6(ih);if(L.attrName=an,L.attrValue=Kt,L.keepAttr=!0,L.forceKeepAttr=void 0,Nr($.uponSanitizeAttribute,k,L),Kt=L.attrValue,sl&&(an==="id"||an==="name")&&jb(Kt,Vr)!==0&&(_a(Ye,k),Kt=Vr+Kt),_r&&Ct(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Kt)){_a(Ye,k);continue}if(an==="attributename"&&wb(Kt,"href")){_a(Ye,k);continue}if(!L.forceKeepAttr){if(!L.keepAttr){_a(Ye,k);continue}if(!jr&&Ct(S6,Kt)){_a(Ye,k);continue}if(kr&&(Kt=au(Kt)),!Mv(oe,an,Kt)){_a(Ye,k);continue}Kt=zT(oe,an,at,Kt),Kt!==ih&&UT(k,Ye,at,Kt)}}Nr($.afterSanitizeAttributes,k,null)},ou=function(k){let E=null;const L=Ov(k);for(Nr($.beforeSanitizeShadowDOM,k,null);E=L.nextNode();)if(Nr($.uponSanitizeShadowNode,E,null),Dv(E,k),Fv(E),xi(E.content)&&ou(E.content),(j?j(E):E.nodeType)===xn.element){const oe=v(E);xi(oe)&&(ah(oe),ou(oe))}Nr($.afterSanitizeShadowDOM,k,null)},ah=function(k){const E=[{node:k,shadow:null}];for(;E.length>0;){const L=E.pop();if(L.shadow){ou(L.shadow);continue}const te=L.node,we=(j?j(te):te.nodeType)===xn.element,Ye=b(te);if(Ye)for(let at=Ye.length-1;at>=0;--at)E.push({node:Ye[at],shadow:null});if(we){const at=_?_(te):null;if(typeof at=="string"&&st(at)==="template"){const sn=te.content;xi(sn)&&E.push({node:sn,shadow:null})}}if(we){const at=v(te);xi(at)&&E.push({node:null,shadow:at},{node:at,shadow:null})}}};return t.sanitize=function(B){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=null,L=null,te=null,oe=null;if(In=!B,In&&(B="<!-->"),typeof B!="string"&&!ul(B)&&(B=d6(B),typeof B!="string"))throw Ca("dirty is not a string, aborting");if(!t.isSupported)return B;Sr?(se=mi,Se=pi):rh(k),($.uponSanitizeElement.length>0||$.uponSanitizeAttribute.length>0)&&(se=Ut(se)),$.uponSanitizeAttribute.length>0&&(Se=Ut(Se)),t.removed=[];const we=gi&&typeof B!="string"&&ul(B);if(we){LT(B);const sn=_?_(B):B.nodeName;if(typeof sn=="string"){const an=st(sn);if(!se[an]||gn[an])throw su(B),Ca("root node is forbidden and cannot be sanitized in-place")}if(iu(B))throw su(B),Ca("root node is clobbered and cannot be sanitized in-place");try{ah(B)}catch(an){throw su(B),an}}else if(ul(B))E=Rv("<!---->"),L=E.ownerDocument.importNode(B,!0),L.nodeType===xn.element&&L.nodeName==="BODY"||L.nodeName==="HTML"?E=L:E.appendChild(L),ah(L);else{if(!bs&&!kr&&!xt&&B.indexOf("<")===-1)return N&&ws?Q(B):B;if(E=Rv(B),!E)return bs?null:ws?A:""}E&&xs&&js(E.firstChild);const Ye=we?B:E;try{const sn=Ov(Ye);for(;te=sn.nextNode();)Dv(te,Ye),Fv(te),xi(te.content)&&ou(te.content)}catch(sn){throw we&&(su(B),Pi(t.removed,an=>{an.element&&cl(an.element)})),sn}if(we)return Pi(t.removed,sn=>{sn.element&&cl(sn.element)}),kr&&sh(B),B;if(bs){if(kr&&sh(E),ka)for(oe=T.call(E.ownerDocument);
345E.firstChild;)oe.appendChild(E.firstChild);else oe=E;return(Se.shadowroot||Se.shadowrootmode)&&(oe=Z.call(r,oe,!0)),oe}let at=xt?E.outerHTML:E.innerHTML;return xt&&se["!doctype"]&&E.ownerDocument&&E.ownerDocument.doctype&&E.ownerDocument.doctype.name&&Ct(j6,E.ownerDocument.doctype.name)&&(at="<!DOCTYPE "+E.ownerDocument.doctype.name+`>
346`+at),kr&&(at=au(at)),N&&ws?Q(at):at},t.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rh(B),Sr=!0,mi=se,pi=Se},t.clearConfig=function(){vi=null,Sr=!1,mi=null,pi=null,N=R,A=""},t.isValidAttribute=function(B,k,E){vi||rh({});const L=st(B),te=st(k);return Mv(L,te,E)},t.addHook=function(B,k){typeof k=="function"&&Tt($,B)&&Ri($[B],k)},t.removeHook=function(B,k){if(Tt($,B)){if(k!==void 0){const E=s6($[B],k);return E===-1?void 0:a6($[B],E,1)[0]}return bb($[B])}},t.removeHooks=function(B){Tt($,B)&&($[B]=[])},t.removeAllHooks=function(){$=Rb()},t}var wN=bN();const me=({contentKey:e="body_html",children:t})=>{const n=va(),r=n!=null&&n.content?n.content[e]:void 0;if(r){const s=wN.sanitize(r,{FORBID_TAGS:["script","style","iframe","object","embed","form"],FORBID_ATTR:["onerror","onload","onclick","onmouseover","style"]});return a.jsx("div",{className:"cms-content",dangerouslySetInnerHTML:{__html:s}})}return a.jsx(a.Fragment,{children:t})},T6="/assets/home-page-banner-BlfeiDQR.webp",dv="/assets/bulk-storage-BQN0PCzE.png",E6="/assets/iso-tank-BqBlAb5Y.jpg",A6="/assets/marine-cargo-DLQC_dlK.png",P6="/assets/flat-bottom-C72te48d.jpg",Qd="/assets/lng-cooled-CRih9rsJ.jpg",R6=1,O6="707e50b3-71ed-470c-b740-52f7bbba1145",I6="20d7ae0e-a98e-4bb6-8c7e-4e388858c8a2",D6="/__l5e/assets-v1/707e50b3-71ed-470c-b740-52f7bbba1145/modular-refinery-home.png",M6="a/v1/20d7ae0e-a98e-4bb6-8c7e-4e388858c8a2/707e50b3-71ed-470c-b740-52f7bbba1145/modular-refinery-home.png",L6="modular-refinery-home.png",F6=313117,W6="image/png",$6="2026-07-13T15:49:53Z",z6={version:R6,asset_id:O6,project_id:I6,url:D6,r2_key:M6,original_filename:L6,size:F6,content_type:W6,created_at:$6},jN="/assets/aboutus-1-BGEPj_H9.jpg",U6="/assets/tradewinds-logo-DsBgnek6.png",B6="/assets/kogas-partner-CLLxFCUe.png",G6=[{title:"Factory-built Bulk Storage Tanks",image:dv,path:"/lng/bulk-storage"},{title:"Intermodal ISO Tank-Containers",image:E6,path:"/lng/iso-tank"},{title:"Marine Cargo & Bunkering Tanks",image:A6,path:"/products/marine-cargo"},{title:"Site-built Flat-bottom Tanks",image:P6,path:"/products/flat-bottom"},{title:"Micro Modular Refinery Solutions",image:z6.url,path:"/products/modular-refinery"},{title:"LNG-Cooled Data Centers",image:Qd,path:"/products/lng-cooled"}],H6=()=>{const e=va(),t=(e==null?void 0:e.h1_tag)||"Fast Solution for All Your LNG / Cryogenic Gas Storage & Transport Needs";return a.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold text-white leading-snug mb-4 drop-shadow-lg",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:t})},q6=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"LNG & Cryogenic Storage Solutions - U.S. Manufacturer",description:"Corban Energy Group manufactures LNG storage tanks, ISO containers, and cryogenic transport equipment. American-owned, serving global energy industries."}),a.jsx("section",{className:"relative min-h-[600px] flex items-start pt-24 pb-48",style:{backgroundImage:`url(${T6})`,backgroundSize:"cover",backgroundPosition:"center center"},children:a.jsx("div",{className:"relative z-10 container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"max-w-3xl",children:[a.jsx(H6,{}),a.jsx("p",{className:"text-sm md:text-base text-white font-bold mb-6 drop-shadow-md",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Factory-built bulk storage tanks, Intermodal ISO tank-containers, Marine cargo tanks, & Fueling station construction"}),a.jsx(ye,{asChild:!0,size:"lg",className:"bg-[#00afef] hover:bg-[#009dd8] text-white font-semibold px-8 py-3 rounded-sm shadow-lg",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:a.jsx(K,{to:"/lng",children:"Our Products"})})]})})}),a.jsx("section",{className:"relative -mt-32 z-20 pb-16 bg-transparent",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-4",children:G6.map(e=>a.jsxs(K,{to:e.path,className:"group block overflow-hidden bg-white border-4 border-white shadow-md hover:shadow-xl transition-all duration-300",children:[a.jsx("div",{className:"aspect-square overflow-hidden",children:a.jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),a.jsx("div",{className:"p-3 bg-white",children:a.jsx("h3",{className:"text-sm font-bold text-black group-hover:text-primary transition-colors text-center leading-tight",children:e.title})})]},e.path))})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[52%_1fr] gap-12 items-start",children:[a.jsx("div",{children:a.jsx("img",{src:jN,alt:"Corban Energy Group Engineers",className:"w-full"})}),a.jsxs("div",{children:[a.jsxs(me,{contentKey:"about_html",children:[a.jsx("h2",{className:"text-lg font-semibold mb-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"About Us"}),a.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Dedicated to Build the Best"}),a.jsxs("p",{className:"mb-8 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:[a.jsx("strong",{style:{color:"#333"},children:"Corban Energy Group (CEG)"})," is a U.S. based, American-owned/invested cryogenic storage & transport vessel manufacturer/supplier, serving the LNG and other liquefied gas industries worldwide with cutting-edge equipment and services."]}),a.jsx(K,{to:"/about",className:"inline-block px-8 py-3 font-semibold transition-colors",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Learn more"})]}),a.jsxs("div",{className:"flex items-center gap-4 mt-10",children:[a.jsx("img",{src:U6,alt:"Tradewinds Solutions Marketplace",className:"w-44 md:w-56 flex-shrink-0"}),a.jsxs("div",{children:[a.jsxs("h2",{className:"text-xl md:text-2xl font-bold mb-2",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:["2025 Awarded Vendor",a.jsx("br",{}),"U.S. Air Force Tradewinds",a.jsx("br",{}),"Solutions Marketplace"]}),a.jsx("p",{className:"text-sm leading-relaxed",style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"We are proud to be recognized as an Awardable Vendor supporting U.S. Air Force energy initiative."})]})]})]})]})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg mb-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Our Partner"}),a.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-6 border-b-2 inline-block pb-1",style:{color:"#00afef",borderColor:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"KOGAS-Tech"}),a.jsxs("p",{className:"mb-4 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:["Corban Energy Group is the business development partner of"," ",a.jsx("a",{href:"https://kogas-tech.co.kr/eng/index.do",target:"_blank",rel:"noopener noreferrer",className:"font-bold hover:underline",style:{color:"#00afef"},children:"KOGAS-Tech"}),", a state-owned public natural gas engineering company of South Korea."]}),a.jsx("p",{className:"mb-8 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"CEG and KOGAS-Tech are working together on numerous large scale projects involving development of LNG terminals and power plants, in Central & South Americas."}),a.jsxs("div",{className:"bg-white p-6 grid grid-cols-2 gap-6",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"mb-3",children:a.jsxs("svg",{className:"w-10 h-10 mx-auto",viewBox:"0 0 24 24",fill:"none",stroke:"#00afef",strokeWidth:"1.5",children:[a.jsx("circle",{cx:"12",cy:"12",r:"10"}),a.jsx("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})}),a.jsx("h4",{className:"font-bold mb-2",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Global Operation"}),a.jsx("p",{className:"text-sm",style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"KOGAS operates on a global level, providing the best services and products."})]}),a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"mb-3",children:a.jsx("svg",{className:"w-10 h-10 mx-auto",viewBox:"0 0 24 24",fill:"none",stroke:"#00afef",strokeWidth:"1.5",children:a.jsx("path",{d:"M12 2l3 7h7l-5.5 4.5 2 7.5-6.5-4.5-6.5 4.5 2-7.5L2 9h7l3-7z"})})}),a.jsx("h4",{className:"font-bold mb-2",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Largest In The World"}),a.jsx("p",{className:"text-sm",style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"KOGAS is ranked first in the world for LNG storage capacity."})]})]})]}),a.jsx("div",{children:a.jsx("img",{src:B6,alt:"KOGAS Partner Facility",className:"w-full"})})]})})}),a.jsx("section",{className:"w-full",children:a.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d200000!2d-74.12!3d40.85!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c2f9a8b9c8d7e6%3A0x1234567890abcdef!2s418%20Falmouth%20Ave%2C%20Elmwood%20Park%2C%20NJ%2007407!5e0!3m2!1sen!2sus!4v1234567890123",width:"100%",height:"400",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Corban Energy Group Location"})})]}),ut=({backgroundImage:e,title:t,subtitle:n,className:r=""})=>{const s=va(),i=(s==null?void 0:s.h1_tag)||t;return a.jsxs("section",{className:`relative flex items-center justify-center ${r}`,style:{height:"320px",minHeight:"320px",maxHeight:"320px",backgroundImage:`url(${e})`,backgroundSize:"cover",backgroundPosition:"center"},children:[a.jsx("div",{className:"absolute inset-0 bg-black/5"}),a.jsxs("div",{className:"relative z-10 container mx-auto px-4 lg:px-8 text-center",children:[a.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif",textShadow:"0 2px 4px rgba(0, 0, 0, 0.5)"},children:i}),n&&a.jsx("p",{className:"text-lg md:text-xl text-white mt-2",style:{fontFamily:"'Titillium Web', Arial, sans-serif",textShadow:"0 2px 4px rgba(0, 0, 0, 0.5)"},children:n})]})]})},V6="/assets/hero-about-BXJd9CCQ.png",K6="/assets/engineers2-Cbtc0XP8.jpg",fv="/assets/engineers-5PswSYxS.jpg",Y6="/assets/weld-D7XS2FnU.jpg",Ta=[{src:K6,alt:"Engineers at work"},{src:fv,alt:"Engineering team"},{src:Y6,alt:"Welding work"},{src:jN,alt:"Facility"}],Q6=()=>{const[e,t]=m.useState(0);m.useEffect(()=>{const s=setInterval(()=>{t(i=>(i+1)%Ta.length)},4e3);return()=>clearInterval(s)},[]);const n=()=>{t(s=>(s+1)%Ta.length)},r=()=>{t(s=>(s-1+Ta.length)%Ta.length)};return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"About Us - LNG Equipment Manufacturer Since 2012",description:"Learn about Corban Energy Group, a U.S.-based cryogenic equipment manufacturer founded in 2012. We design and build custom LNG storage and transport solutions."}),a.jsx(ut,{backgroundImage:V6,title:"About Us"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 items-start",children:[a.jsx("div",{className:"lg:col-span-6",children:a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"relative overflow-hidden",style:{width:"540px",height:"490px",maxWidth:"100%"},children:[a.jsx("img",{src:Ta[e].src,alt:Ta[e].alt,className:"w-full h-full object-cover transition-opacity duration-500"}),a.jsx("button",{onClick:r,className:"absolute left-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors",children:a.jsx(en,{className:"w-5 h-5"})}),a.jsx("button",{onClick:n,className:"absolute right-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors",children:a.jsx(qt,{className:"w-5 h-5"})})]}),a.jsx("div",{className:"flex justify-center gap-2 mt-4",style:{maxWidth:"540px"},children:Ta.map((s,i)=>a.jsx("button",{onClick:()=>t(i),className:`overflow-hidden transition-all ${e===i?"opacity-100":"opacity-70 hover:opacity-100"}`,style:{width:"120px",height:"120px",border:e===i?"4px solid #00afef":"4px solid transparent"},children:a.jsx("img",{src:s.src,alt:s.alt,className:"w-full h-full object-cover"})},i))})]})}),a.jsx("div",{className:"lg:col-span-6",children:a.jsxs(me,{contentKey:"body_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"About CEG"}),a.jsxs("h3",{className:"text-xl md:text-2xl mb-6",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:["Offering Optimized Solutions",a.jsx("br",{}),"for Every Project"]}),a.jsxs("div",{className:"space-y-4 text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:[a.jsx("p",{children:"Corban Energy Group (CEG), founded in 2012 in Elmwood Park, New Jersey, U.S.A., is an American-owned/invested company specialized in design, manufacture, distribution, installation, operation and maintenance of vessels used in Natural Gas and other cryogenic, liquefied gas applications."}),a.jsx("p",{children:"CEG serves the mid/downstream liquefied natural gas (LNG) supply chains and operations. CEG develops custom, state-of-the-art solutions to support fuel distribution, power generation, and manufacturing operations anywhere in the world."}),a.jsx("p",{className:"font-bold",children:"We strive to deliver to our clients optimally customized solutions that meet unique performance & budgetary objectives in a manner that is inherently safe, easy to operate, economical to maintain, and trouble-free over an extended service life."}),a.jsx("p",{children:"Our engineering centers are located in the U.S. and in South Korea. Some of our senior engineers have over 30 years of professional experience. We own and operate several manufacturing facilities that carry ISO 9001 Certificates of Quality Management Systems. We use the highest quality materials and components, modernized production facilities, skilled labor, highly efficient manufacturing methods, and rigorous quality control."})]})]})})]})})})]})},dr="/assets/hero-lng-BbtY_DnZ.png",J6="/assets/lng-crane-BLHB8fet.jpg",Z6="/assets/hero-bulk-storage-DcB_s2si.jpg",X6="/assets/lng-bunkering-roYhzsFv.png",e8="/assets/lng-gensets-BLddzAKU.jpg",t8="/assets/flat-bottom-C72te48d.jpg",n8="/assets/lng-view-1-C-Pq1TBh.jpg",r8="/assets/lng-view-2-ICVQ9Vtw.jpg",s8=[{title:"Intermodal ISO Tank-container",image:J6,path:"/lng/iso-tank"},{title:"Factory-built Bulk Storage Tank",image:Z6,path:"/lng/bulk-storage"},{title:"Marine Cargo & Bunkering Tank",image:X6,path:"https://corbanenergygroup.com/products/marine-cargo",external:!0},{title:"Peak Shaving Power System",image:e8,path:"https://corbanenergygroup.com/products/peak-shaving",external:!0},{title:"Site-built Flat-bottom Tank",image:t8,path:"https://corbanenergygroup.com/products/flat-bottom",external:!0}],a8=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"LNG Storage Tanks & Cryogenic Storage — LNG Products",description:"Browse our LNG storage solutions: LNG storage tanks, cryogenic storage, ISO tank-containers, marine cargo tanks, and peak shaving systems. Factory-built and vacuum-insulated."}),a.jsx(ut,{backgroundImage:dr,title:"LNG Products"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-8 text-center",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"CEG's LNG Product Line"}),a.jsx(me,{contentKey:"body_html",children:a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-16",children:[a.jsx("p",{className:"leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Corban Energy Group provides the most cost efficient, reliable, and technically advanced LNG equipment available in today's marketplace. We believe that our customers should have the most optimized solutions to best suit their needs and SCHEDULE with custom options, high quality/EXPEDITED construction, and comprehensive services."}),a.jsx("p",{className:"leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"As a cryogenic tank manufacturer we provide a variety of solutions and offer our expertise in the industry. Our LNG equipment, such as ISO tank containers, storage tanks, and specialized gas transportation products and services have been thoroughly tested to meet all safety standards."})]})}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:s8.map(e=>{const t=a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"overflow-hidden shadow-md",style:{width:"540px",height:"320px",maxWidth:"100%"},children:a.jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),a.jsx("div",{className:"flex justify-center mt-4",children:a.jsx("span",{className:"inline-block py-2 px-8 font-semibold text-white transition-opacity group-hover:opacity-90",style:{backgroundColor:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:e.title})})]});return e.external?a.jsx("a",{href:e.path,className:"group block",style:{maxWidth:"540px"},children:t},e.path):a.jsx(K,{to:e.path,className:"group block",style:{maxWidth:"540px"},children:t},e.path)})})]})}),a.jsx("section",{className:"text-center flex items-center justify-center",style:{backgroundColor:"#00afef",height:"165px"},children:a.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Our View of LNG"})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 mb-16",children:[a.jsxs("div",{className:"flex flex-col justify-center",children:[a.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-center",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"What is LNG?"}),a.jsx("h4",{className:"text-lg font-semibold mb-6 text-center",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"The Clean-Burning Fuel"}),a.jsx("p",{className:"leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Liquefied Natural Gas (LNG) is a clear, colorless, non-toxic liquid that forms when natural gas is cooled to -162ºC (-260ºF). This shrinks the volume of the gas 600 times, making it an efficient source of fuel that is easy to store and ship overseas over long distances. Taken from gas deposits in the earth, natural gas is thoroughly filtered and conditioned to be made of mostly methane among other trace gases. After liquefaction, it is sent to re-gasification plants to be piped through to consumers. Natural gas deposits are abundant enough for a hundred-year supply in the United States, making LNG a viable fuel source."})]}),a.jsx("div",{className:"h-full min-h-[300px]",children:a.jsx("img",{src:n8,alt:"LNG Storage Tanks",className:"w-full h-full object-cover"})})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 mb-16",children:[a.jsx("div",{className:"h-full",children:a.jsx("img",{src:r8,alt:"Natural Gas Flame",className:"w-full h-full object-cover"})}),a.jsxs("div",{className:"flex flex-col justify-center",children:[a.jsx("h3",{className:"text-xl font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Our Aim With LNG"}),a.jsx("h4",{className:"text-base font-semibold mb-4",style:{color:"#c68b00",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"CEG aims to further the LNG industry with our equipment and services for transportation, storage, and utilization of liquefied natural gas."}),a.jsx("p",{className:"mb-4 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Corban Energy Group (CEG) serves the mid/downstream liquefied natural gas (LNG) supply chains and operations. CEG develops custom, state-of-the-art solutions to support fuel distribution, power generation, and manufacturing operations anywhere in the world."}),a.jsx("p",{className:"leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"As a large-scale LNG tank and container manufacturer, we strive to provide businesses the perfect solutions and equipment for their fueling business operations. Our years of hard work, level of expertise, and proficient knowledge in the industry allows us to push for the United States' future fuel industry."})]})]})]})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("h3",{className:"text-2xl font-bold mb-12 text-center",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Benefits of LNG"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto text-center",children:[a.jsxs("div",{children:[a.jsx("div",{className:"w-24 h-24 mx-auto mb-4 rounded-full flex items-center justify-center",style:{border:"3px solid #00afef",backgroundColor:"#fff"},children:a.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 576 512",fill:"#00afef",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"})})}),a.jsx("h4",{className:"font-bold mb-2",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Low Carbon Footprint"}),a.jsx("p",{style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px",lineHeight:"1.6"},children:"LNG releases significantly less CO2, NOx, SO2, and other pollutants, and leaves virtually no ash or particulates."})]}),a.jsxs("div",{children:[a.jsx("div",{className:"w-24 h-24 mx-auto mb-4 rounded-full flex items-center justify-center",style:{border:"3px solid #00afef",backgroundColor:"#fff"},children:a.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 576 512",fill:"#00afef",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M271.06,144.3l54.27,14.3a8.59,8.59,0,0,1,6.63,8.1c0,4.6-4.09,8.4-9.12,8.4h-35.6a30,30,0,0,1-11.19-2.2c-5.24-2.2-11.28-1.7-15.3,2l-19,17.5a11.68,11.68,0,0,0-2.25,2.66,11.42,11.42,0,0,0,3.88,15.74,83.77,83.77,0,0,0,34.51,11.5V240c0,8.8,7.83,16,17.37,16h17.37c9.55,0,17.38-7.2,17.38-16V222.4c32.93-3.6,57.84-31,53.5-63-3.15-23-22.46-41.3-46.56-47.7L282.68,97.4a8.59,8.59,0,0,1-6.63-8.1c0-4.6,4.09-8.4,9.12-8.4h35.6A30,30,0,0,1,332,83.1c5.23,2.2,11.28,1.7,15.3-2l19-17.5A11.31,11.31,0,0,0,368.47,61a11.43,11.43,0,0,0-3.84-15.78,83.82,83.82,0,0,0-34.52-11.5V16c0-8.8-7.82-16-17.37-16H295.37C285.82,0,278,7.2,278,16V33.6c-32.89,3.6-57.85,31-53.51,63C227.63,119.6,247,137.9,271.06,144.3ZM565.27,328.1c-11.8-10.7-30.2-10-42.6,0L430.27,402a63.64,63.64,0,0,1-40,14H272a16,16,0,0,1,0-32h78.29c15.9,0,30.71-10.9,33.25-26.6a31.2,31.2,0,0,0,.46-5.46A32,32,0,0,0,352,320H192a117.66,117.66,0,0,0-74.1,26.29L71.4,384H16A16,16,0,0,0,0,400v96a16,16,0,0,0,16,16H372.77a64,64,0,0,0,40-14L564,377a32,32,0,0,0,1.28-48.9Z"})})}),a.jsx("h4",{className:"font-bold mb-2",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Low Cost"}),a.jsx("p",{style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px",lineHeight:"1.6"},children:"LNG is less expensive than diesel by virtue of the lower commodity price."})]}),a.jsxs("div",{children:[a.jsx("div",{className:"w-24 h-24 mx-auto mb-4 rounded-full flex items-center justify-center",style:{border:"3px solid #00afef",backgroundColor:"#fff"},children:a.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 352 512",fill:"#00afef",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"})})}),a.jsx("h4",{className:"font-bold mb-2",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Plenty in America"}),a.jsx("p",{style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px",lineHeight:"1.6"},children:"Estimates of supply show that there is enough natural gas to meet America's energy needs for more than 100 years to come."})]})]})]})}),a.jsx("section",{className:"w-full",children:a.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d200000!2d-74.12!3d40.85!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c2f9a8b9c8d7e6%3A0x1234567890abcdef!2s418%20Falmouth%20Ave%2C%20Elmwood%20Park%2C%20NJ%2007407!5e0!3m2!1sen!2sus!4v1234567890123",width:"100%",height:"400",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Corban Energy Group Location"})})]}),kN="/assets/product-iso-tank-VyJhoRuU.jpg",_N="/assets/product-bulk-storage-e62VTqpe.jpg",SN="/assets/product-marine-cargo-Bai6o3mU.jpg",NN="/assets/product-flat-bottom-Bs5jhgXf.jpg",i8="/assets/hero-bulk-storage-DcB_s2si.jpg",o8="/assets/lng-bunkering-roYhzsFv.png",l8="/assets/flat-bottom-C72te48d.jpg",CN="/assets/iso-tank-sli
346de-1-DdmgjxUm.jpg",TN="/assets/iso-tank-slide-2-D8LJCGOw.jpg",EN="/assets/iso-tank-slide-3-D7_uARzg.jpg",AN="/assets/iso-tank-slide-4-UWFy2xEs.jpg",PN="/assets/iso-tank-slide-5-DTiw4Bg3.jpg",Oi=[CN,TN,EN,AN,PN],c8={"iso-tank":{title:"Intermodal ISO Tank-Container",subtitle:"ISO Tank-Containers",description:"Built to last, our Cryogenic Tank-Containers provide versatile and efficient means of transportation over road. CEG also specializes in manufacturing Tank Trailers for LNG transportation and fueling/refueling. Designed for ease of use and equipped with numerous safety features, our transport vessels are optimized for intermodal transportation of cryogenic/liquefied gases via Road, Rail and Sea.",image:kN,heroImage:"https://www.corbanenergygroup.com/wp-content/uploads/2021/04/isotc-banner.png",hasSlider:!0,features:["Ideal for short/mid term small storage","Can be fully custom designed","20, 40, and 53 foot sizes","CSC, IMDG, DOT, RID, ADR, TPED, ASME, TC approved","Triple liquid (LNG, Ethane, Ethylene) certified","Low boil-off-rate (BOR), at 0.15 to 0.30% per day","Long holding time (up to 90+ days)","Top quality with extensive manufacturing/servicing experience"]},"bulk-storage":{title:"Factory-Built Bulk Storage Tank",subtitle:"CEG has designed, built, and delivered the world's largest vacuum-insulated bullet LNG tanks",description:"For day to day fueling and refueling operations, our LNG storage tanks are ideal. Perfect for low to medium volume markets, our storage tanks can be customized from the ground up. As shop-fabricated tanks, the tanks have been thoroughly tested under harsh conditions, and constructed to meet international standards. Orientations include both horizontal and vertical positions; your ideal storage tank depends on your business operation. Corban offers factory-built storage tanks in the capacity of up to 1,250 m³.",image:_N,heroImage:i8,features:["From 100 m³ (26,417 gal.) up to 1,250 m³ (330,215 gal.) gross volume","Double-wall, vacuum insulated","Fast delivery","Highest quality materials / engineering / fabrication","Fully custom designed"]},"marine-cargo":{title:"Marine Cargo & Bunkering Tank",subtitle:"CEG is currently building the World's Largest double-wall, vacuum insulated LNG cargo tanks for a marine barge conversion project.",description:"LNG is becoming the choice for maritime fuel. CEG offers marine cargo tanks and small scale LNG bunkering systems for various applications.",image:SN,heroImage:o8,features:["Cargo tank engineering & manufacturing","Cargo handling system engineering, sourcing, & assembly","Operations & maintenance support"],advantages:{title:"Advantages of Double-wall, Vacuum Insulation over Single-wall, PUF insulation:",items:["Superior Performance with Boil-Off-Rate (<0.06% per day)","Longer Lifespan (30+ years vs. 10 years)","Better Durability"]}},"flat-bottom":{title:"Site-built Flat-bottom Tank",subtitle:"Full Containment LNG Storage Tanks",description:"Engineered by our partner KOGAS-Tech, our onsite-fabricated, full containment LNG storage tanks have been operational globally. Available in various sizes, with capacities all the way up to 200,000 m³ (~53,000,000 gallons), these full containment storage tanks have been built to international standards. With years of experience in designing and constructing these tanks, Corban Energy Group has a vast portfolio that substantiates our ability to construct reliable LNG storage tanks.",additionalDescription:"Having the right tank for the proper storage of LNG ensures that your operation runs smoothly. Our LNG storage tanks are manufactured to be highly efficient while safe to operate and easy to maintain. Corban Energy Group offers its high level of expertise and knowledge in the natural gas industry as an LNG equipment manufacturer. After a short survey and diagnostic analysis of your business operation, our team can advise and help identify a suitable and customized solution for your LNG storage tank. Our storage tank solutions also go beyond storing LNG; Corban's engineering team also have experience in building Ethane and Ethylene storage tanks.",image:NN,heroImage:l8,features:[]},"peak-shaving":{title:"Peak Shaving Power Systems",subtitle:"LNG-powered Peak Shaving & Backup Systems",description:"Energy consumption peaks are critical to grid stability, and they also affect CAPEX of supply facilities: The grid load and the energy production systems need to be designed to accommodate these peak loads. This is how Peak Shaving systems can benefit both the energy producers/distributors and the power consumers, b
346y cost-efficiently relieving the sporadic peak demands. Peak Shaving plants can also function as emergency power backup system in case of outages.",image:dr,heroImage:dr,features:["Mobile or Stationary LNG Storage Vessels","Re-gas Systems (Vaporizers)","State-of-the-art LNG fired Generator sets"],advantages:{title:"Why LNG is a growing choice for data center backup power:",items:["Scalability and Reliability: LNG can be delivered via truck or pipeline, allowing for flexible and scalable power solutions","Cost-Effectiveness: LNG generators can be more cost-effective than diesel generators, particularly for large, long-running applications","Sustainability: LNG is a cleaner-burning fuel than diesel, offering a more environmentally friendly backup power option","Flexibility: LNG can be used for both backup power and continuous power generation","Reduced Emissions: LNG reduces emissions compared to diesel","Long-Term Savings: LNG offers long-term cost savings compared to diesel due to lower fuel costs and maintenance requirements"]}}},u8=()=>{const[e,t]=m.useState(0);m.useEffect(()=>{const s=setInterval(()=>{t(i=>(i+1)%Oi.length)},4e3);return()=>clearInterval(s)},[]);const n=()=>{t(s=>(s+1)%Oi.length)},r=()=>{t(s=>(s-1+Oi.length)%Oi.length)};return a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"relative overflow-hidden",style:{width:"540px",height:"490px",maxWidth:"100%"},children:[a.jsx("img",{src:Oi[e],alt:`ISO Tank Container ${e+1}`,className:"w-full h-full object-cover transition-opacity duration-500"}),a.jsx("button",{onClick:r,className:"absolute left-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors",children:a.jsx(en,{className:"w-5 h-5"})}),a.jsx("button",{onClick:n,className:"absolute right-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors",children:a.jsx(qt,{className:"w-5 h-5"})})]}),a.jsx("div",{className:"flex justify-center gap-2 mt-4",style:{maxWidth:"540px"},children:Oi.map((s,i)=>a.jsx("button",{onClick:()=>t(i),className:`overflow-hidden transition-all ${e===i?"opacity-100":"opacity-70 hover:opacity-100"}`,style:{width:"120px",height:"120px",border:e===i?"4px solid #00afef":"4px solid transparent"},children:a.jsx("img",{src:s,alt:`Thumbnail ${i+1}`,className:"w-full h-full object-cover"})},i))})]})},d8=()=>{const{slug:e}=By(),t=e?c8[e]:null;if(!t)return a.jsx(Pe,{children:a.jsxs("div",{className:"container mx-auto px-4 py-20 text-center",children:[a.jsx("h1",{className:"text-2xl font-bold text-foreground mb-4",children:"Product Not Found"}),a.jsx(K,{to:"/lng",className:"inline-block px-8 py-3 font-semibold transition-colors",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Back to LNG Products"})]})});const n=()=>e==="iso-tank"?a.jsxs("p",{className:"mb-5",style:{color:"#7a7a7a",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"16px",lineHeight:"1.7",fontWeight:400,textAlign:"justify"},children:["Built to last, our ",a.jsx("strong",{style:{color:"#7a7a7a",fontWeight:700},children:"Cryogenic Tank-Containers"})," provide versatile and efficient means of transportation over road.  CEG also specializes in manufacturing ",a.jsx("strong",{style:{color:"#7a7a7a",fontWeight:700},children:"Tank Trailers "}),"for LNG transportation and fueling/refueling. Designed for ease of use and equipped with numerous safety features, our transport vessels are optimized for intermodal transportation of cryogenic/liquefied gases via Road, Rail and Sea."]}):a.jsx("p",{className:"mb-5",style:{color:"#7a7a7a",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"16px",lineHeight:"1.7",fontWeight:400,textAlign:"justify"},children:t.description});return a.jsxs(Pe,{hideFooterCTA:!0,children:[a.jsx(Ee,{title:`${t.title} - LNG Equipment`,description:t.description.slice(0,155)}),a.jsx(ut,{backgroundImage:t.heroImage,title:t.title}),a.jsx("section",{className:"py-10 md:py-14",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4",style:{maxWidth:"1140px"},children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 items-start",children:[a.jsx("div",{className:"lg:col-span-6",children:t.hasSlider?a.jsx(u8,{}):a.jsx("img",{src:t.image,alt:t.title,className:"w-full"})}),a.jsxs("div",{className:"lg:col-span-6",children:[a.jsx("h2",{className:"text-[26px] md:text-[32px] mb-5",style:{color:"#54595f",fontFamily:"'Titillium Web', Arial, sans-serif",fontWeight:400,lineHeight:"1.2"},children:t.subtitle}),n(),t.additionalDescription&&a.jsx("p",{className:"mb-6 leading-relaxed",style:{color:"#7a7a7a",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"16px",lineHeight:"1.7",fontWeight:400},children:t.additionalDescription}),t.features.length>0&&a.jsx("ul",{className:"space-y-1 mb-8 list-disc pl-5",children:t.features.map(r=>a.jsx("li",{style:{color:"#7a7a7a",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"16px",lineHeight:"1.7",fontWeight:400},children:r},r))}),t.advantages&&a.jsxs("div",{className:"mb-8",children:[a.jsx("h3",{className:"font-semibold mb-3",style:{color:"#4a4a4a",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:t.advantages.title}),a.jsx("ul",{className:"space-y-2",children:t.advantages.items.map(r=>a.jsxs("li",{className:"flex items-start gap-3",style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px"},children:[a.jsx("span",{style:{color:"#00afef",fontSize:"8px",marginTop:"6px"},children:"●"}),a.jsx("span",{children:r})]},r))})]})]})]})})}),a.jsx("section",{className:"py-10 md:py-12",style:{backgroundColor:"#00b1ef"},children:a.jsx("div",{className:"container mx-auto px-4",style:{maxWidth:"1140px"},children:a.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-6",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-[28px] md:text-[36px] font-bold text-white mb-2",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Let's Talk"}),a.jsx("p",{className:"text-base md:text-lg",style:{color:"rgba(255,255,255,0.9)",fontFamily:"'Titillium Web', Arial, sans-serif",fontWeight:400},children:"We can help you optimize your system with our expertise and know-how."})]}),a.jsx("div",{className:"flex-shrink-0",children:a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors uppercase tracking-wider text-center",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",minWidth:"140px"},children:"Get A Quote"})})]})})})]})},f8="/assets/cng-truck-fueling-RMtwncFh.jpg",h8="/assets/cng-compressors-dispensers-DWfVal05.jpg",m8="/assets/lng-peak-shaving-DSmfUMIB.jpg",p8=[{title:"CNG",description:"CNG (Compressed Natural Gas) is made by compressing natural gas to less than 1% of its volume for use as a cleaner alternative fuel.",image:f8,path:"/products/cng"},{title:"CNG Compressors & Dispensers",description:"Heavy-duty industrial CNG compressors and dispensers from our partnership with Kwang-Shin Co. Ltd., a world leader in compressor manufacturing.",image:h8,path:"/products/cng-compressors"},{title:"Cryogenic Storage Tank",description:"Highly effective cryogenic storage units designed to store large quantities of gas in below-freezing temperatures.",image:dv,path:"/products/cryogenic-storage"},{title:"Modular Refinery Solutions",description:"Scalable, mobile, and fully automated refineries engineered for efficiency and rapid deployment.",image:dr,path:"/products/modular-refinery"},{title:"LNG Peak Shaving & Energy",description:"LNG-powered peak shaving and backup systems for grid stability and emergency power.",image:m8,path:"/products/peak-shaving"},{title:"LNG-Cooled Data Centers",description:"Innovative cooling solutions for data centers utilizing LNG's cryogenic properties for efficient and sustainable cooling.",image:Qd,path:"/products/lng-cooled"},{title:"Refrigerated Warehouses",description:"LNG-powered refrigerated warehouse solutions leveraging cryogenic cooling technology for large-scale storage facilities.",image:Qd,path:"/products/refrigerated-warehouses"},{title:"Engineering & Project Services",description:"End-to-end engineering and project management services including design, fabrication, installation, and maintenance.",image:fv,path:"/products/engineering-services"}],g8=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"LNG Storage Tanks & Cryogenic Tanks — Products",description:"Explore Corban Energy Group LNG storage tanks, cryogenic tanks, CNG equipment, modular refineries, and LNG-cooled data center solutions."}),a.jsx(ut,{backgroundImage:dr,title:"Products"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("div",{className:"text-center mb-12",children:a.jsxs(me,{contentKey:"body_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Additional Products & Services"}),a.jsx("p",{className:"max-w-2xl mx-auto",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:"Beyond our core LNG storage and transport solutions, we offer specialized products and services to meet diverse energy infrastructure needs."})]})}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:p8.map(e=>a.jsxs(K,{to:e.path,className:"bg-white overflow-hidden shadow-md hover:shadow-xl transition-all group",style:{maxWidth:"540px"},children:[a.jsx("div",{className:"overflow-hidden",style:{width:"540px",height:"320px",maxWidth:"100%"},children:a.jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"})}),a.jsx("div",{className:"py-3 px-4 text-center transition-colors group-hover:opacity-90",style:{backgroundColor:"#00afef"},children:a.jsx("span",{className:"font-semibold text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:e.title})})]},e.path))})]})})]}),y8="/assets/product-data-center-Dr8S5iki.jpg",v8={"lng-cooled":{title:"LNG-Cooled Data Centers",subtitle:"LNG-Cooled Data Centers",description:"Envision a future where AI and quantum computing flourish on a sustainable, net-zero foundation. By harnessing the power of cryogenic technology and untapped cooling energy, we're transforming data centers and advancing the next era of intelligent innovation.",additionalDescription:"Ark AI International, a subsidiary of Corban Energy Group, offers cryo-cooling system design, custom engineering for data centers, and performance monitoring & technical support.",image:y8,heroImage:dr,features:["Cryo-cooling System Design","Custom Engineering for Data Centers","Performance Monitoring & Technical Support"]},"peak-shaving":{title:"Peak Shaving Power Systems",subtitle:"LNG-powered Peak Shaving & Backup Systems",description:"Energy consumption peaks are critical to grid stability, and they also affect CAPEX of supply facilities: The grid load and the energy production systems need to be designed to accommodate these peak loads. This is how Peak Shaving systems can benefit both the energy producers/distributors and the power consumers, by cost-efficiently relieving the sporadic peak demands. Peak Shaving plants can also function as emergency power backup system in case of outages.",image:dr,heroImage:dr,features:["Mobile or Stationary LNG Storage Vessels","Re-gas Systems (Vaporizers)","State-of-the-art LNG fired Generator sets"],benefits:{title:"Why LNG is a growing choice for data center backup power:",items:["Scalability and Reliability: LNG can be delivered via truck or pipeline","Cost-Effectiveness: LNG generators can be more cost-effective than diesel","Sustainability: LNG is a cleaner-burning fuel than diesel","Flexibility: LNG can be used for both backup power and continuous power generation","Reduced Emissions: LNG reduces emissions compared to diesel","Long-Term Savings: Lower fuel costs and maintenance requirements"]}},"modular-refinery":{title:"Modular Refinery Solutions",subtitle:"Scalable. Deployable. Self-Sustaining.",description:"Corban Energy Group is proud to introduce our Modular Refinery Solutions— an innovative line of scalable, mobile, and fully automated refineries engineered for efficiency, simplicity, and rapid deployment.",additionalDescription:"These systems are ideal for military operations, remote industrial sites, and disaster relief logistics, offering scalable capacities from 1,200 to 10,000 barrels per day (50,000 to 420,000 gallons per day). Built on a skid-mounted, self-sustaining platform, Corban's modular refineries are a game-changer in local fuel production.",image:dr,heroImage:dr,features:["Heat Cascade Benefit - Reduces crude oil heater size and operating expense","Scalable Capacities - 1,200 BPD to 10,000 BPD configurations","No Water Requirement - No steam boiler or water treatment systems","No Pneumatics - No compressors, filters, or air lines required","Fully Automated PAC-Based Control System with 10-tier security","Rapid Deployment & Mobility","Environmental Efficiency with carbon-capture compatibility","On-Site Energy Generation","Operational Simplicity - Minimal operator training"],applications:["Military forward operating bases (FOBs)","Emergency & disaster recovery zones","Remote mining or construction sites","Temporary fuel infrastru
346cture in developing regions","Energy independence for off-grid installations"]}},x8=({fallback:e})=>{const t=va();return a.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:(t==null?void 0:t.h1_tag)||e})},b8=()=>{const{slug:e}=By(),t=e?v8[e]:null;return t?a.jsxs(Pe,{children:[a.jsx(Ee,{title:`${t.title} - Energy Solutions`,description:t.description.slice(0,155)}),a.jsxs("section",{className:"relative h-48 md:h-64 flex items-center justify-center",style:{backgroundImage:`url(${t.heroImage})`,backgroundSize:"cover",backgroundPosition:"center"},children:[a.jsx("div",{className:"absolute inset-0 bg-black/40"}),a.jsx("div",{className:"relative z-10 container mx-auto px-4 lg:px-8 text-center",children:a.jsx(x8,{fallback:t.title})})]}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsx("img",{src:t.image,alt:t.title,className:"w-full shadow-lg"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:t.subtitle}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:t.description}),t.additionalDescription&&a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:t.additionalDescription}),t.features&&t.features.length>0&&a.jsx("ul",{className:"space-y-2 mb-8",children:t.features.map(n=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:n})]},n))}),t.equipment&&t.equipment.map(n=>a.jsxs("div",{className:"mb-8",children:[a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:n.title}),a.jsx("ul",{className:"space-y-2",children:n.items.map(r=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:r})]},r))})]},n.title)),t.benefits&&a.jsxs("div",{className:"mb-8",children:[a.jsx("h3",{className:"font-bold mb-3",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:t.benefits.title}),a.jsx("ul",{className:"space-y-2",children:t.benefits.items.map(n=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:n})]},n))})]}),t.applications&&a.jsxs("div",{className:"mb-8",children:[a.jsx("h3",{className:"font-bold mb-3",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Applications:"}),a.jsx("ul",{className:"space-y-2",children:t.applications.map(n=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:n})]},n))})]}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Get A Quote"})]})]})})})]}):a.jsx(mI,{to:"/products",replace:!0})},yo=m.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:ue("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
346ing-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}));yo.displayName="Textarea";var w8="Label",RN=m.forwardRef((e,t)=>a.jsx(ge.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())}}));RN.displayName=w8;var ON=RN;const j8=ky("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Je=m.forwardRef(({className:e,...t},n)=>a.jsx(ON,{ref:n,className:ue(j8(),e),...t}));Je.displayName=ON.displayName;function Ob(e,[t,n]){return Math.min(n,Math.max(t,e))}function IN(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var k8=[" ","Enter","ArrowUp","ArrowDown"],_8=[" ","Enter"],si="Select",[Yf,Qf,S8]=Sf(si),[tl,F7]=Gn(si,[S8,pa]),Jf=pa(),[N8,xa]=tl(si),[C8,T8]=tl(si),DN=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:i,value:o,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:h,required:p,form:w}=e,y=Jf(t),[b,x]=m.useState(null),[v,g]=m.useState(null),[j,_]=m.useState(!1),C=Gy(u),[N,A]=ia({prop:r,defaultProp:s??!1,onChange:i,caller:si}),[R,I]=ia({prop:o,defaultProp:l,onChange:c,caller:si}),V=m.useRef(null),D=b?w||!!b.closest("form"):!0,[Q,F]=m.useState(new Set),ae=Array.from(Q).map(H=>H.props.value).join(";");return a.jsx(Dy,{...y,children:a.jsxs(N8,{required:p,scope:t,trigger:b,onTriggerChange:x,valueNode:v,onValueNodeChange:g,valueNodeHasChildren:j,onValueNodeHasChildrenChange:_,contentId:Fr(),value:R,onValueChange:I,open:N,onOpenChange:A,dir:C,triggerPointerDownPosRef:V,disabled:h,children:[a.jsx(Yf.Provider,{scope:t,children:a.jsx(C8,{scope:e.__scopeSelect,onNativeOptionAdd:m.useCallback(H=>{F(O=>new Set(O).add(H))},[]),onNativeOptionRemove:m.useCallback(H=>{F(O=>{const S=new Set(O);return S.delete(H),S})},[]),children:n})}),D?a.jsxs(aC,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:f,value:R,onChange:H=>I(H.target.value),disabled:h,form:w,children:[R===void 0?a.jsx("option",{value:""}):null,Array.from(Q)]},ae):null]})})};DN.displayName=si;var MN="SelectTrigger",LN=m.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,i=Jf(n),o=xa(MN,n),l=o.disabled||r,c=Ne(t,o.onTriggerChange),u=Qf(n),d=m.useRef("touch"),[f,h,p]=oC(y=>{const b=u().filter(g=>!g.disabled),x=b.find(g=>g.value===o.value),v=lC(b,y,x);v!==void 0&&o.onValueChange(v.value)}),w=y=>{l||(o.onOpenChange(!0),p()),y&&(o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return a.jsx(Hc,{asChild:!0,...i,children:a.jsx(ge.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":iC(o.value)?"":void 0,...s,ref:c,onClick:q(s.onClick,y=>{y.currentTarget.focus(),d.current!=="mouse"&&w(y)}),onPointerDown:q(s.onPointerDown,y=>{d.current=y.pointerType;const b=y.target;b.hasPointerCapture(y.pointerId)&&b.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(w(y),y.preventDefault())}),onKeyDown:q(s.onKeyDown,y=>{const b=f.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&h(y.key),!(b&&y.key===" ")&&k8.includes(y.key)&&(w(),y.preventDefault())})})})});LN.displayName=MN;var FN="SelectValue",WN=m.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:o="",...l}=e,c=xa(FN,n),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,f=Ne(t,c.onValueNodeChange);return Lt(()=>{u(d)},[u,d]),a.jsx(ge.span,{...l,ref:f,style:{pointerEvents:"none"},children:iC(c.value)?a.jsx(a.Fragment,{children:o}):i})});WN.displayName=FN;var E8="SelectIcon",$N=m.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return a.jsx(ge.span,{"aria-hidden":!0,...s,ref:t,children:r||"▼"})});$N.displayName=E8;var A8="SelectPortal",zN=e=>a.jsx(Ko,{asChild:!0,...e});zN.displayName=A8;var ai="SelectContent",UN=m.forwardRef((e,t)=>
vendor: 14,922 bytes, line 346
346{const n=xa(ai,e.__scopeSelect),[r,s]=m.useState();if(Lt(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?ui.createPortal(a.jsx(BN,{scope:e.__scopeSelect,children:a.jsx(Yf.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),i):null}return a.jsx(GN,{...e,ref:t})});UN.displayName=ai;var tr=10,[BN,ba]=tl(ai),P8="SelectContentImpl",R8=aa("SelectContent.RemoveScroll"),GN=m.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:p,sticky:w,hideWhenDetached:y,avoidCollisions:b,...x}=e,v=xa(ai,n),[g,j]=m.useState(null),[_,C]=m.useState(null),N=Ne(t,G=>j(G)),[A,R]=m.useState(null),[I,V]=m.useState(null),D=Qf(n),[Q,F]=m.useState(!1),ae=m.useRef(!1);m.useEffect(()=>{if(g)return zf(g)},[g]),$f();const H=m.useCallback(G=>{const[Re,...Ae]=D().map(se=>se.ref.current),[Te]=Ae.slice(-1),_e=document.activeElement;for(const se of G)if(se===_e||(se==null||se.scrollIntoView({block:"nearest"}),se===Re&&_&&(_.scrollTop=0),se===Te&&_&&(_.scrollTop=_.scrollHeight),se==null||se.focus(),document.activeElement!==_e))return},[D,_]),O=m.useCallback(()=>H([A,g]),[H,A,g]);m.useEffect(()=>{Q&&O()},[Q,O]);const{onOpenChange:S,triggerPointerDownPosRef:T}=v;m.useEffect(()=>{if(g){let G={x:0,y:0};const Re=Te=>{var _e,se;G={x:Math.abs(Math.round(Te.pageX)-(((_e=T.current)==null?void 0:_e.x)??0)),y:Math.abs(Math.round(Te.pageY)-(((se=T.current)==null?void 0:se.y)??0))}},Ae=Te=>{G.x<=10&&G.y<=10?Te.preventDefault():g.contains(Te.target)||S(!1),document.removeEventListener("pointermove",Re),T.current=null};return T.current!==null&&(document.addEventListener("pointermove",Re),document.addEventListener("pointerup",Ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Re),document.removeEventListener("pointerup",Ae,{capture:!0})}}},[g,S,T]),m.useEffect(()=>{const G=()=>S(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[S]);const[M,Z]=oC(G=>{const Re=D().filter(_e=>!_e.disabled),Ae=Re.find(_e=>_e.ref.current===document.activeElement),Te=lC(Re,G,Ae);Te&&setTimeout(()=>Te.ref.current.focus())}),$=m.useCallback((G,Re,Ae)=>{const Te=!ae.current&&!Ae;(v.value!==void 0&&v.value===Re||Te)&&(R(G),Te&&(ae.current=!0))},[v.value]),ie=m.useCallback(()=>g==null?void 0:g.focus(),[g]),le=m.useCallback((G,Re,Ae)=>{const Te=!ae.current&&!Ae;(v.value!==void 0&&v.value===Re||Te)&&V(G)},[v.value]),We=r==="popper"?eg:HN,Be=We===eg?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:p,sticky:w,hideWhenDetached:y,avoidCollisions:b}:{};return a.jsx(BN,{scope:n,content:g,viewport:_,onViewportChange:C,itemRefCallback:$,selectedItem:A,onItemLeave:ie,itemTextRefCallback:le,focusSelectedItem:O,selectedItemText:I,position:r,isPositioned:Q,searchRef:M,children:a.jsx(Kc,{as:R8,allowPinchZoom:!0,children:a.jsx(qc,{asChild:!0,trapped:v.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:q(s,G=>{var Re;(Re=v.trigger)==null||Re.focus({preventScroll:!0}),G.preventDefault()}),children:a.jsx(di,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:a.jsx(We,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:G=>G.preventDefault(),...x,...Be,onPlaced:()=>F(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:q(x.onKeyDown,G=>{const Re=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!Re&&G.key.length===1&&Z(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let Te=D().filter(_e=>!_e.disabled).map(_e=>_e.ref.current);if(["ArrowUp","End"].includes(G.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const _e=G.target,se=Te.indexOf(_e);Te=Te.slice(se+1)}setTimeout(()=>H(Te)),G.preventDefault()}})})})})})})});GN.displayName=P8;var O8="SelectItemAlignedPosition",HN=m.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,i=xa(ai,n),o=ba(ai,n),[l,c]=m.useState(null),[u,d]=m.useState(null),f=Ne(t,N=>d(N)),h=Qf(n),p=m.useRef(!1),w=m.useRef(!0),{viewport:y,selectedItem:b,selectedItemText:x,focusSelectedItem:v}=o,g=m.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&y&&b&&x){const N=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),R=i.valueNode.getBoundingClientRect(),I=x.getBoundingClientRect();if(i.dir!=="rtl"){const _e=I.left-A.left,se=R.left-_e,vt=N.left-se,Se=N.width+vt,Vn=Math.max(Se,A.width),Ue=window.innerWidth-tr,gn=Ob(se,[tr,Math.max(tr,Ue-Vn)]);l.style.minWidth=Se+"px",l.style.left=gn+"px"}else{const _e=A.right-I.right,se=window.innerWidth-R.right-_e,vt=window.innerWidth-N.right-se,Se=N.width+vt,Vn=Math.max(Se,A.width),Ue=window.innerWidth-tr,gn=Ob(se,[tr,Math.max(tr,Ue-Vn)]);l.style.minWidth=Se+"px",l.style.right=gn+"px"}const V=h(),D=window.innerHeight-tr*2,Q=y.scrollHeight,F=window.getComputedStyle(u),ae=parseInt(F.borderTopWidth,10),H=parseInt(F.paddingTop,10),O=parseInt(F.borderBottomWidth,10),S=parseInt(F.paddingBottom,10),T=ae+H+Q+S+O,M=Math.min(b.offsetHeight*5,T),Z=window.getComputedStyle(y),$=parseInt(Z.paddingTop,10),ie=parseInt(Z.paddingBottom,10),le=N.top+N.height/2-tr,We=D-le,Be=b.offsetHeight/2,G=b.offsetTop+Be,Re=ae+H+G,Ae=T-Re;if(Re<=le){const _e=V.length>0&&b===V[V.length-1].ref.current;l.style.bottom="0px";const se=u.clientHeight-y.offsetTop-y.offsetHeight,vt=Math.max(We,Be+(_e?ie:0)+se+O),Se=Re+vt;l.style.height=Se+"px"}else{const _e=V.length>0&&b===V[0].ref.current;l.style.top="0px";const vt=Math.max(le,ae+y.offsetTop+(_e?$:0)+Be)+Ae;l.style.height=vt+"px",y.scrollTop=Re-le+y.offsetTop}l.style.margin=`${tr}px 0`,l.style.minHeight=M+"px",l.style.maxHeight=D+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[h,i.trigger,i.valueNode,l,u,y,b,x,i.dir,r]);Lt(()=>g(),[g]);const[j,_]=m.useState();Lt(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const C=m.useCallback(N=>{N&&w.current===!0&&(g(),v==null||v(),w.current=!1)},[g,v]);return a.jsx(D8,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:a.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:a.jsx(ge.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});HN.displayName=O8;var I8="SelectPopperPosition",eg=m.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=tr,...i}=e,o=Jf(n);return a.jsx(Of,{...o,...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)"}})});eg.displayName=I8;var[D8,hv]=tl(ai,{}),tg="SelectViewport",qN=m.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,i=ba(tg,n),o=hv(tg,n),l=Ne(t,i.onViewportChange),c=m.useRef(0);return a.jsxs(a.Fragment,{children:[a.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}),a.jsx(Yf.Slot,{scope:n,children:a.jsx(ge.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:q(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&f){const p=Math.abs(c.current-d.scrollTop);if(p>0){const w=window.innerHeight-tr*2,y=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),x=Math.max(y,b);if(x<w){const v=x+p,g=Math.min(w,v),j=v-g;f.style.height=g+"px",f.style.bottom==="0px"&&(d.scrollTop=j>0?j:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});qN.displayName=tg;var VN="SelectGroup",[M8,L8]=tl(VN),F8=m.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Fr();return a.jsx(M8,{scope:n,id:s,children:a.jsx(ge.div,{role:"group","aria-labelledby":s,...r,ref:t})})});F8.displayName=VN;var KN="SelectLabel",YN=m.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=L8(KN,n);return a.jsx(ge.div,{id:s.id,...r,ref:t})});YN.displayName=KN;var Jd="SelectItem",[W8,QN]=tl(Jd),JN=m.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...o}=e,l=xa(Jd,n),c=ba(Jd,n),u=l.value===r,[d,f]=m.useState(i??""),[h,p]=m.useState(!1),w=Ne(t,v=>{var g;return(g=c.itemRefCallback)==null?void 0:g.call(c,v,r,s)}),y=Fr(),b=m.useRef("touch"),x=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsx(W8,{scope:n,value:r,disabled:s,textId:y,isSelected:u,onItemTextChange:m.useCallback(v=>{f(g=>g||((v==null?void 0:v.textContent)??"").trim())},[]),children:a.jsx(Yf.ItemSlot,{scope:n,value:r,disabled:s,textValue:d,children:a.jsx(ge.div,{role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:w,onFocus:q(o.onFocus,()=>p(!0)),onBlur:q(o.onBlur,()=>p(!1)),onClick:q(o.onClick,()=>{b.current!=="mouse"&&x()}),onPointerUp:q(o.onPointerUp,()=>{b.current==="mouse"&&x()}),onPointerDown:q(o.onPointerDown,v=>{b.current=v.pointerType}),onPointerMove:q(o.onPointerMove,v=>{var g;b.current=v.pointerType,s?(g=c.onItemLeave)==null||g.call(c):b.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:q(o.onPointerLeave,v=>{var g;v.currentTarget===document.activeElement&&((g=c.onItemLeave)==null||g.call(c))}),onKeyDown:q(o.onKeyDown,v=>{var j;((j=c.searchRef)==null?void 0:j.current)!==""&&v.key===" "||(_8.includes(v.key)&&x(),v.key===" "&&v.preventDefault())})})})})});JN.displayName=Jd;var Il="SelectItemText",ZN=m.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...i}=e,o=xa(Il,n),l=ba(Il,n),c=QN(Il,n),u=T8(Il,n),[d,f]=m.useState(null),h=Ne(t,x=>f(x),c.onItemTextChange,x=>{var v;return(v=l.itemTextRefCallback)==null?void 0:v.call(l,x,c.value,c.disabled)}),p=d==null?void 0:d.textContent,w=m.useMemo(()=>a.jsx("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=u;return Lt(()=>(y(w),()=>b(w)),[y,b,w]),a.jsxs(a.Fragment,{children:[a.jsx(ge.span,{id:c.textId,...i,ref:h}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ui.createPortal(i.children,o.valueNode):null]})});ZN.displayName=Il;var XN="SelectItemIndicator",eC=m.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return QN(XN,n).isSelected?a.jsx(ge.span,{"aria-hidden":!0,...r,ref:t}):null});eC.displayName=XN;var ng="SelectScrollUpButton",tC=m.forwardRef((e,t)=>{const n=ba(ng,e.__scopeSelect),r=hv(ng,e.__scopeSelect),[s,i]=m.useState(!1),o=Ne(t,r.onScrollButtonChange);return Lt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;i(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?a.jsx(rC,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});tC.displayName=ng;var rg="SelectScrollDownButton",nC=m.forwardRef((e,t)=>{const n=ba(rg,e.__scopeSelect),r=hv(rg,e.__scopeSelect),[s,i]=m.useState(!1),o=Ne(t,r.onScrollButtonChange);return Lt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?a.jsx(rC,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});nC.displayName=rg;var rC=m.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,i=ba("SelectScrollButton",n),o=m.useRef(null),l=Qf(n),c=m.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return m.useEffect(()=>()=>c(),[c]),Lt(()=>{var d;const u=l().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),a.jsx(ge.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:q(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:q(s.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:q(s.onPointerLeave,()=>{c()})})}),$8="SelectSeparator",sC=m.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return a.jsx(ge.div,{"aria-hidden":!0,...r,ref:t})});sC.displayName=$8;var sg="SelectArrow",z8=m.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Jf(n),i=xa(sg,n),o=ba(sg,n);return i.open&&o.position==="popper"?a.jsx(If,{...s,...r,ref:t}):null});z8.displayName=sg;var U8="SelectBubbleInput",aC=m.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const s=m.useRef(null),i=Ne(r,s),o=IN(t);return m.useEffect(()=>{const l=s.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&d){const f=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(f)}},[o,t]),a.jsx(ge.select,{...n,style:{...Yj,...n.style},ref:i,defaultValue:t})});aC.displayName=U8;function iC(e){return e===""||e===void 0}function oC(e){const t=pn(e),n=m.useRef(""),r=m.useRef(0),s=m.useCallback(o=>{const l=n.current+o;t(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),i=m.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function lC(e,t,n){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=B8(e,Math.max(i,0));s.length===1&&(o=o.filter(u=>u!==n));const c=o.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function B8(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var G8=DN,cC=LN,H8=WN,q8=$N,V8=zN,uC=UN,K8=qN,dC=YN,fC=JN,Y8=ZN,Q8=eC,hC=tC,mC=nC,pC=sC;const ag=G8,ig=H8,Zd=m.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(cC,{ref:r,className:ue("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
346ing-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,a.jsx(q8,{asChild:!0,children:a.jsx(ql,{className:"h-4 w-4 opacity-50"})})]}));Zd.displayName=cC.displayName;const gC=m.forwardRef(({className:e,...t},n)=>a.jsx(hC,{ref:n,className:ue("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(G3,{className:"h-4 w-4"})}));gC.displayName=hC.displayName;const yC=m.forwardRef(({className:e,...t},n)=>a.jsx(mC,{ref:n,className:ue("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(ql,{className:"h-4 w-4"})}));yC.displayName=mC.displayName;const Xd=m.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>a.jsx(V8,{children:a.jsxs(uC,{ref:s,className:ue("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:[a.jsx(gC,{}),a.jsx(K8,{className:ue("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(yC,{})]})}));Xd.displayName=uC.displayName;const J8=m.forwardRef(({className:e,...t},n)=>a.jsx(dC,{ref:n,className:ue("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));J8.displayName=dC.displayName;const ur=m.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(fC,{ref:r,className:ue("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:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(Q8,{children:a.jsx(bk,{className:"h-4 w-4"})})}),a.jsx(Y8,{children:t})]}));ur.displayName=fC.displayName;const Z8=m.forwardRef(({className:e,...t},n)=>a.jsx(pC,{ref:n,className:ue("-mx-1 my-1 h-px bg-muted",e),...t}));Z8.displayName=pC.displayName;const X8="/assets/corban-logo-contact-hBYfhCYA.jpg",eW="/assets/hero-contact-nozecma3.png";var ze;(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 o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(l=>typeof s[s[l]]!="number"),o={};for(const l of i)o[l]=s[l];return e.objectValues(o)},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 o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},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(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(ze||(ze={}));var Ib;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ib||(Ib={}));const ee=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Os=e=>{switch(typeof e){case"undefined":return ee.undefined;case"string":return ee.string;
vendor: 5,170 bytes, line 346
346case"number":return Number.isNaN(e)?ee.nan:ee.number;case"boolean":return ee.boolean;case"function":return ee.function;case"bigint":return ee.bigint;case"symbol":return ee.symbol;case"object":return Array.isArray(e)?ee.array:e===null?ee.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ee.promise:typeof Map<"u"&&e instanceof Map?ee.map:typeof Set<"u"&&e instanceof Set?ee.set:typeof Date<"u"&&e instanceof Date?ee.date:ee.object;default:return ee.unknown}},U=ze.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 fs 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 o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let l=r,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(n(o))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return s(this),r}static assert(t){if(!(t instanceof fs))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.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()}}fs.create=e=>new fs(e);const og=(e,t)=>{let n;switch(e.code){case U.invalid_type:e.received===ee.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case U.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ze.jsonStringifyReplacer)}`;break;case U.unrecognized_keys:n=`Unrecognized key(s) in object: ${ze.joinValues(e.keys,", ")}`;break;case U.invalid_union:n="Invalid input";break;case U.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ze.joinValues(e.options)}`;break;case U.invalid_enum_value:n=`Invalid enum value. Expected ${ze.joinValues(e.options)}, received '${e.received}'`;break;case U.invalid_arguments:n="Invalid function arguments";break;case U.invalid_return_type:n="Invalid function return type";break;case U.invalid_date:n="Invalid date";break;case U.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}"`:ze.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case U.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 U.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 U.custom:n="Invalid input";break;case U.invalid_intersection_types:n="Intersection results could not be merged";break;case U.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case U.not_finite:n="Number must be finite";break;default:n=t.defaultError,ze.assertNever(e)}return{message:n}};let tW=og;function nW(){return tW}const rW=e=>
vendor: 17,801 bytes, line 346
346{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let l="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)l=u(o,{data:t,defaultError:l}).message;return{...s,path:i,message:l}};function J(e,t){const n=nW(),r=rW({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===og?void 0:og].filter(s=>!!s)});e.common.issues.push(r)}class En{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 ve;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,o=await s.value;r.push({key:i,value:o})}return En.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return ve;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const ve=Object.freeze({status:"aborted"}),Dl=e=>({status:"dirty",value:e}),qn=e=>({status:"valid",value:e}),Db=e=>e.status==="aborted",Mb=e=>e.status==="dirty",Wo=e=>e.status==="valid",ef=e=>typeof Promise<"u"&&e instanceof Promise;var ne;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ne||(ne={}));class ua{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 Lb=(e,t)=>{if(Wo(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 fs(e.common.issues);return this._error=n,this._error}}};function ke(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:(o,l)=>{const{message:c}=e;return o.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??r??l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:c??n??l.defaultError}},description:s}}class Fe{get description(){return this._def.description}_getType(t){return Os(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Os(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new En,ctx:{common:t.parent.common,data:t.data,parsedType:Os(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ef(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:Os(t)},s=this._parseSync({data:t,path:r.path,parent:r});return Lb(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:Os(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:n});return Wo(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=>Wo(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:Os(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(ef(s)?s:Promise.resolve(s));return Lb(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 o=t(s),l=()=>i.addIssue({code:U.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(l(),!1)):o?!0:(l(),!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 zo({schema:this,typeName:xe.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 na.create(this,this._def)}nullable(){return Uo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $r.create(this)}promise(){return sf.create(this,this._def)}or(t){return nf.create([this,t],this._def)}and(t){return rf.create(this,t,this._def)}transform(t){return new zo({...ke(this._def),schema:this,typeName:xe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new cg({...ke(this._def),innerType:this,defaultValue:n,typeName:xe.ZodDefault})}brand(){return new NW({typeName:xe.ZodBranded,type:this,...ke(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ug({...ke(this._def),innerType:this,catchValue:n,typeName:xe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return mv.create(this,t)}readonly(){return dg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sW=/^c[^\s-]{8,}$/i,aW=/^[0-9a-z]+$/,iW=/^[0-9A-HJKMNP-TV-Z]{26}$/i,oW=/^[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,lW=/^[a-z0-9_-]{21}$/i,cW=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,uW=/^[-+]?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)?)??$/,dW=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,fW="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let pm;const hW=/^(?:(?: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])$/,mW=/^(?:(?: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])$/,pW=/^(([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]))$/,gW=/^(([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])$/,yW=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,vW=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vC="((\\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])))",xW=new RegExp(`^${vC}$`);function xC(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 bW(e){return new RegExp(`^${xC(e)}$`)}function wW(e){let t=`${vC}T${xC(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 jW(e,t){return!!((t==="v4"||!t)&&hW.test(e)||(t==="v6"||!t)&&pW.test(e))}function kW(e,t){if(!cW.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 _W(e,t){return!!((t==="v4"||!t)&&mW.test(e)||(t==="v6"||!t)&&gW.test(e))}class qs extends Fe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ee.string){const i=this._getOrReturnCtx(t);return J(i,{code:U.invalid_type,expected:ee.string,received:i.parsedType}),ve}const r=new En;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),J(s,{code:U.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),J(s,{code:U.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,l=t.data.length<i.value;(o||l)&&(s=this._getOrReturnCtx(t,s),o?J(s,{code:U.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&J(s,{code:U.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")dW.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"email",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")pm||(pm=new RegExp(fW,"u")),pm.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"emoji",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")oW.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"uuid",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")lW.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"nanoid",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")sW.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"cuid",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")aW.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"cuid2",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")iW.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"ulid",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),J(s,{validation:"url",code:U.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),J(s,{validation:"regex",code:U.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),J(s,{code:U.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),J(s,{code:U.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),J(s,{code:U.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?wW(i).test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{code:U.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?xW.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{code:U.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?bW(i).test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{code:U.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?uW.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"duration",code:U.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?jW(t.data,i.version)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"ip",code:U.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?kW(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"jwt",code:U.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?_W(t.data,i.version)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"cidr",code:U.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?yW.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"base64",code:U.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?vW.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"base64url",code:U.invalid_string,message:i.message}),r.dirty()):ze.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:U.invalid_string,...ne.errToObj(r)})}_addCheck(t){return new qs({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ne.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ne.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ne.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ne.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ne.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ne.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ne.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ne.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ne.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ne.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ne.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ne.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ne.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,...ne.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,...ne.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ne.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ne.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ne.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ne.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ne.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ne.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ne.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ne.errToObj(n)})}nonempty(t){return this.min(1,ne.errToObj(t))}trim(){return new qs({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new qs({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new qs({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,658 bytes, line 346
346get 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}}qs.create=e=>new qs({checks:[],typeName:xe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ke(e)});function SW(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(".","")),o=Number.parseInt(t.toFixed(s).replace(".",""));return i%o/10**s}class Pc extends Fe{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)!==ee.number){const i=this._getOrReturnCtx(t);return J(i,{code:U.invalid_type,expected:ee.number,received:i.parsedType}),ve}let r;const s=new En;for(const i of this._def.checks)i.kind==="int"?ze.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),J(r,{code:U.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),J(r,{code:U.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),J(r,{code:U.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?SW(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),J(r,{code:U.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),J(r,{code:U.not_finite,message:i.message}),s.dirty()):ze.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ne.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ne.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ne.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ne.toString(n))}setLimit(t,n,r,s){return new Pc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ne.toString(s)}]})}_addCheck(t){return new Pc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ne.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ne.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ne.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ne.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ne.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ne.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ne.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ne.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ne.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"&&ze.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: 6,689 bytes, line 346
346}Pc.create=e=>new Pc({checks:[],typeName:xe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ke(e)});class Rc extends Fe{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)!==ee.bigint)return this._getInvalidInput(t);let r;const s=new En;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),J(r,{code:U.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),J(r,{code:U.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),J(r,{code:U.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):ze.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return J(n,{code:U.invalid_type,expected:ee.bigint,received:n.parsedType}),ve}gte(t,n){return this.setLimit("min",t,!0,ne.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ne.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ne.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ne.toString(n))}setLimit(t,n,r,s){return new Rc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ne.toString(s)}]})}_addCheck(t){return new Rc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ne.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ne.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ne.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ne.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ne.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}}Rc.create=e=>new Rc({checks:[],typeName:xe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ke(e)});class Fb extends Fe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ee.boolean){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:ee.boolean,received:r.parsedType}),ve}return qn(t.data)}}Fb.create=e=>new Fb({typeName:xe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ke(e)});class tf extends Fe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ee.date){const i=this._getOrReturnCtx(t);return J(i,{code:U.invalid_type,expected:ee.date,received:i.parsedType}),ve}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return J(i,{code:U.invalid_date}),ve}const r=new En;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),J(s,{code:U.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),J(s,{code:U.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):ze.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new tf({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ne.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ne.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}}tf.create=e=>new tf({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:xe.ZodDate,...ke(e)});class Wb extends Fe{_parse(t){if(this._getType(t)!==ee.symbol){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:ee.symbol,received:r.parsedType}),ve}return qn(t.data)}}Wb.create=e=>new Wb({typeName:xe.ZodSymbol,...ke(e)});class $b extends Fe{_parse(t){if(this._getType(t)!==ee.undefined){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:ee.undefined,received:r.parsedType}),ve}return qn(t.data)}}$b.create=e=>new $b({typeName:xe.ZodUndefined,...ke(e)});class zb extends Fe{_parse(t){if(this._getType(t)!==ee.null){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:ee.null,received:r.parsedType}),ve}return qn(t.data)}}zb.create=e=>new zb({typeName:xe.ZodNull,...ke(e)});class Ub extends Fe{constructor(){super(...arguments),this._any=!0}_parse(t){return qn(t.data)}}Ub.create=e=>new Ub({typeName:xe.ZodAny,...ke(e)});class Bb extends Fe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return qn(t.data)}}Bb.create=e=>new Bb({typeName:xe.ZodUnknown,...ke(e)});class da extends Fe{_parse(t){const n=this._getOrReturnCtx(t);return J(n,{code:U.invalid_type,expected:ee.never,received:n.parsedType}),ve}}da.create=e=>new da({typeName:xe.ZodNever,...ke(e)});class Gb extends Fe{_parse(t){if(this._getType(t)!==ee.undefined){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:ee.void,received:r.parsedType}),ve}return qn(t.data)}}Gb.create=e=>new Gb({typeName:xe.ZodVoid,...ke(e)});class $r extends Fe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==ee.array)return J(n,{code:U.invalid_type,expected:ee.array,received:n.parsedType}),ve;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,l=n.data.length<s.exactLength.value;(o||l)&&(J(n,{code:o?U.too_big:U.too_small,minimum:l?s.exactLength.value:void 0,maximum:o?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&&(J(n,{code:U.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&&(J(n,{code:U.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((o,l)=>s.type._parseAsync(new ua(n,o,n.path,l)))).then(o=>En.mergeArray(r,o));const i=[...n.data].map((o,l)=>s.type._parseSync(new ua(n,o,n.path,l)));return En.mergeArray(r,i)}
vendor: 4,176 bytes, line 346
346get element(){return this._def.type}min(t,n){return new $r({...this._def,minLength:{value:t,message:ne.toString(n)}})}max(t,n){return new $r({...this._def,maxLength:{value:t,message:ne.toString(n)}})}length(t,n){return new $r({...this._def,exactLength:{value:t,message:ne.toString(n)}})}nonempty(t){return this.min(1,t)}}$r.create=(e,t)=>new $r({type:e,minLength:null,maxLength:null,exactLength:null,typeName:xe.ZodArray,...ke(t)});function Gi(e){if(e instanceof mt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=na.create(Gi(r))}return new mt({...e._def,shape:()=>t})}else return e instanceof $r?new $r({...e._def,type:Gi(e.element)}):e instanceof na?na.create(Gi(e.unwrap())):e instanceof Uo?Uo.create(Gi(e.unwrap())):e instanceof ii?ii.create(e.items.map(t=>Gi(t))):e}class mt extends Fe{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=ze.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ee.object){const u=this._getOrReturnCtx(t);return J(u,{code:U.invalid_type,expected:ee.object,received:u.parsedType}),ve}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof da&&this._def.unknownKeys==="strip"))for(const u in s.data)o.includes(u)||l.push(u);const c=[];for(const u of o){const d=i[u],f=s.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new ua(s,f,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof da){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of l)c.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(u==="strict")l.length>0&&(J(s,{code:U.unrecognized_keys,keys:l}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of l){const f=s.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new ua(s,f,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const f=await d.key,h=await d.value;u.push({key:f,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>En.mergeObjectSync(r,u)):En.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return ne.errToObj,new mt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:ne.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new mt({...this._def,unknownKeys:"strip"})}passthrough(){return new mt({...this._def,unknownKeys:"passthrough"})}extend(t){return new mt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new mt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:xe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new mt({...this._def,catchall:t})}pick(t){const n={};for(const r of ze.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new mt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of ze.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new mt({...this._def,shape:()=>n})}deepPartial(){return Gi(this)}partial(t){const n={};for(const r of ze.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}return new mt({...this._def,shape:()=>n})}required(t){const n={};for(const r of ze.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof na;)i=i._def.innerType;n[r]=i}return new mt({...this._def,shape:()=>n})}keyof(){return bC(ze.objectKeys(this.shape))}}mt.create=(e,t)=>new mt({shape:()=>e,unknownKeys:"strip",catchall:da.create(),typeName:xe.ZodObject,...ke(t)});mt.strictCreate=(e,t)=>new mt({shape:()=>e,unknownKeys:"strict",catchall:da.create(),typeName:xe.ZodObject,...ke(t)});mt.lazycreate=(e,t)=>new mt({shape:e,unknownKeys:"strip",catchall:da.create(),typeName:xe.ZodObject,...ke(t)});
vendor: 3,650 bytes, line 346
346class nf extends Fe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const l of i)if(l.result.status==="valid")return l.result;for(const l of i)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const o=i.map(l=>new fs(l.ctx.common.issues));return J(n,{code:U.invalid_union,unionErrors:o}),ve}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const l=o.map(c=>new fs(c));return J(n,{code:U.invalid_union,unionErrors:l}),ve}}get options(){return this._def.options}}nf.create=(e,t)=>new nf({options:e,typeName:xe.ZodUnion,...ke(t)});function lg(e,t){const n=Os(e),r=Os(t);if(e===t)return{valid:!0,data:e};if(n===ee.object&&r===ee.object){const s=ze.objectKeys(t),i=ze.objectKeys(e).filter(l=>s.indexOf(l)!==-1),o={...e,...t};for(const l of i){const c=lg(e[l],t[l]);if(!c.valid)return{valid:!1};o[l]=c.data}return{valid:!0,data:o}}else if(n===ee.array&&r===ee.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<e.length;i++){const o=e[i],l=t[i],c=lg(o,l);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return n===ee.date&&r===ee.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class rf extends Fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(i,o)=>{if(Db(i)||Db(o))return ve;const l=lg(i.value,o.value);return l.valid?((Mb(i)||Mb(o))&&n.dirty(),{status:n.value,value:l.data}):(J(r,{code:U.invalid_intersection_types}),ve)};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,o])=>s(i,o)):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}))}}rf.create=(e,t,n)=>new rf({left:e,right:t,typeName:xe.ZodIntersection,...ke(n)});class ii extends Fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.array)return J(r,{code:U.invalid_type,expected:ee.array,received:r.parsedType}),ve;if(r.data.length<this._def.items.length)return J(r,{code:U.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ve;!this._def.rest&&r.data.length>this._def.items.length&&(J(r,{code:U.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new ua(r,o,r.path,l)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>En.mergeArray(n,o)):En.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new ii({...this._def,rest:t})}}ii.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ii({items:e,typeName:xe.ZodTuple,rest:null,...ke(t)})};class Hb extends Fe{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!==ee.map)return J(r,{code:U.invalid_type,expected:ee.map,received:r.parsedType}),ve;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([l,c],u)=>
vendor: 4,160 bytes, line 346
346({key:s._parse(new ua(r,l,r.path,[u,"key"])),value:i._parse(new ua(r,c,r.path,[u,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return ve;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of o){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return ve;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}}}}Hb.create=(e,t,n)=>new Hb({valueType:t,keyType:e,typeName:xe.ZodMap,...ke(n)});class Oc extends Fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.set)return J(r,{code:U.invalid_type,expected:ee.set,received:r.parsedType}),ve;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(J(r,{code:U.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&&(J(r,{code:U.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const d of c){if(d.status==="aborted")return ve;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const l=[...r.data.values()].map((c,u)=>i._parse(new ua(r,c,r.path,u)));return r.common.async?Promise.all(l).then(c=>o(c)):o(l)}min(t,n){return new Oc({...this._def,minSize:{value:t,message:ne.toString(n)}})}max(t,n){return new Oc({...this._def,maxSize:{value:t,message:ne.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Oc.create=(e,t)=>new Oc({valueType:e,minSize:null,maxSize:null,typeName:xe.ZodSet,...ke(t)});class qb extends Fe{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})}}qb.create=(e,t)=>new qb({getter:e,typeName:xe.ZodLazy,...ke(t)});class Vb extends Fe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return J(n,{received:n.data,code:U.invalid_literal,expected:this._def.value}),ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}Vb.create=(e,t)=>new Vb({value:e,typeName:xe.ZodLiteral,...ke(t)});function bC(e,t){return new $o({values:e,typeName:xe.ZodEnum,...ke(t)})}class $o extends Fe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return J(n,{expected:ze.joinValues(r),received:n.parsedType,code:U.invalid_type}),ve}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 J(n,{received:n.data,code:U.invalid_enum_value,options:r}),ve}return qn(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 $o.create(t,{...this._def,...n})}exclude(t,n=this._def){return $o.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}$o.create=bC;class Kb extends Fe{_parse(t){const n=ze.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ee.string&&r.parsedType!==ee.number){const s=ze.objectValues(n);return J(r,{expected:ze.joinValues(s),received:r.parsedType,code:U.invalid_type}),ve}if(this._cache||(this._cache=new Set(ze.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=ze.objectValues(n);return J(r,{received:r.data,code:U.invalid_enum_value,options:s}),ve}return qn(t.data)}get enum(){return this._def.values}}Kb.create=(e,t)=>new Kb({values:e,typeName:xe.ZodNativeEnum,...ke(t)});class sf extends Fe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.promise&&n.common.async===!1)return J(n,{code:U.invalid_type,expected:ee.promise,received:n.parsedType}),ve;
vendor: 4,095 bytes, line 346
346const r=n.parsedType===ee.promise?n.data:Promise.resolve(n.data);return qn(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}sf.create=(e,t)=>new sf({type:e,typeName:xe.ZodPromise,...ke(t)});class zo extends Fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===xe.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:o=>{J(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async l=>{if(n.value==="aborted")return ve;const c=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return c.status==="aborted"?ve:c.status==="dirty"||n.value==="dirty"?Dl(c.value):c});{if(n.value==="aborted")return ve;const l=this._def.schema._parseSync({data:o,path:r.path,parent:r});return l.status==="aborted"?ve:l.status==="dirty"||n.value==="dirty"?Dl(l.value):l}}if(s.type==="refinement"){const o=l=>{const c=s.refinement(l,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?ve:(l.status==="dirty"&&n.dirty(),o(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?ve:(l.status==="dirty"&&n.dirty(),o(l.value).then(()=>({status:n.value,value:l.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Wo(o))return ve;const l=s.transform(o.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>Wo(o)?Promise.resolve(s.transform(o.value,i)).then(l=>({status:n.value,value:l})):ve);ze.assertNever(s)}}zo.create=(e,t,n)=>new zo({schema:e,typeName:xe.ZodEffects,effect:t,...ke(n)});zo.createWithPreprocess=(e,t,n)=>new zo({schema:t,effect:{type:"preprocess",transform:e},typeName:xe.ZodEffects,...ke(n)});class na extends Fe{_parse(t){return this._getType(t)===ee.undefined?qn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}na.create=(e,t)=>new na({innerType:e,typeName:xe.ZodOptional,...ke(t)});class Uo extends Fe{_parse(t){return this._getType(t)===ee.null?qn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Uo.create=(e,t)=>new Uo({innerType:e,typeName:xe.ZodNullable,...ke(t)});class cg extends Fe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ee.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}cg.create=(e,t)=>new cg({innerType:e,typeName:xe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ke(t)});class ug extends Fe{_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 ef(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new fs(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new fs(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ug.create=(e,t)=>new ug({innerType:e,typeName:xe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ke(t)});class Yb extends Fe{_parse(t){if(this._getType(t)!==ee.nan){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:ee.nan,received:r.parsedType}),ve}
346return{status:"valid",value:t.data}}}Yb.create=e=>new Yb({typeName:xe.ZodNaN,...ke(e)});class NW extends Fe{_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 mv extends Fe{_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"?ve:i.status==="dirty"?(n.dirty(),Dl(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"?ve: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 mv({in:t,out:n,typeName:xe.ZodPipeline})}}class dg extends Fe{_parse(t){const n=this._def.innerType._parse(t),r=s=>(Wo(s)&&(s.value=Object.freeze(s.value)),s);return ef(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}dg.create=(e,t)=>new dg({innerType:e,typeName:xe.ZodReadonly,...ke(t)});mt.lazycreate;var xe;(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"})(xe||(xe={}));const Ii=qs.create;da.create;$r.create;const CW=mt.create;mt.strictCreate;nf.create;rf.create;ii.create;$o.create;sf.create;na.create;Uo.create;const TW=CW({firstName:Ii().trim().min(1,"First name is required"),lastName:Ii().trim().min(1,"Last name is required"),email:Ii().trim().email("Invalid email address"),category:Ii().min(1,"Please select a category"),subject:Ii().trim().min(1,"Subject is required"),message:Ii().trim().min(1,"Message is required")}),EW=()=>{const{toast:e}=On(),t=br(),[n,r]=m.useState(!1),s=m.useRef(Date.now()),[i,o]=m.useState({firstName:"",lastName:"",email:"",category:"",subject:"",message:""});m.useEffect(()=>{t.hash==="#contact-form"&&setTimeout(()=>{const u=document.getElementById("contact-form");u&&u.scrollIntoView({behavior:"smooth",block:"start"})},100)},[t.hash]);const l=u=>{o(d=>({...d,[u.target.name]:u.target.value}))},c=async u=>{u.preventDefault(),r(!0);try{TW.parse(i);const{data:d,error:f}=await ce.functions.invoke("send-contact-email",{body:{...i,elapsedMs:Date.now()-s.current}});if(f)throw new Error(f.message);if(d!=null&&d.blocked){e({title:"Submission Blocked",description:"Sorry. Your submission failed. Your email has been blocked from submitting our form.",variant:"destructive"});return}e({title:"Message Sent!",description:"Thank you for contacting us. We'll get back to you soon."}),o({firstName:"",lastName:"",email:"",category:"",subject:"",message:""})}catch(d){console.error("Contact form error:",d),e({title:"Error",description:d.message||"Please fill in all required fields.",variant:"destructive"})}finally{r(!1)}};return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Contact Us - Request a Quote for LNG Equipment",description:"Contact Corban Energy Group for LNG storage tanks, ISO containers, and cryogenic equipment quotes. Located in Elmwood Park, NJ. Call +1-201-509-8555."}),a.jsx(ut,{backgroundImage:eW,title:"Contact Us"}),a.jsx("section",{className:"py-12",style:{backgroundColor:"#ffffff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"max-w-2xl",children:[a.jsx("div",{className:"mb-8",children:a.jsx("img",{src:X8,alt:"Corban Energy Group",className:"h-10"})}),a.jsxs("div",{className:"flex flex-col gap-4 text-gray-600",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("svg",{className:"h-5 w-5 flex-shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"#00afef",strokeWidth:"1.5",children:[a.jsx("rect",{x:"3",y:"3",width:"7",height:"7"}),a.jsx("rect",{x:"14",y:"3",width:"7",height:"7"}),a.jsx("rect",{x:"3",y:"14",width:"7",height:"7"}),a.jsx("rect",{x:"14",y:"14",width:"7",height:"7"})]}),a.jsx("span",{children:"418 Falmouth Ave. Elmwood Park, NJ 07407, USA"})]}),a.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 hover:underline",children:[a.jsx(Tf,{className:"h-5 w-5 flex-shrink-0",stroke:"#00afef",strokeWidth:1.5}),a.jsx("span",{children:"[email protected]"})]}),a.jsxs("a",{href:"tel:+12015098555",className:"flex items-center gap-3 hover:underline",children:[a.jsx(Z3,{className:"h-5 w-5 flex-shrink-0",stroke:"#00afef",strokeWidth:1.5}),a.jsx("span",{children:"+1-201-509-8555"})]})]})]})})}),a.jsx("section",{id:"contact-form",className:"py-16",style:{backgroundColor:"#ffffff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"max-w-2xl",children:[a.jsx("h2",{className:"text-3xl font-bold mb-4",style:{color:"#333333"},children:"Contact Us"}),a.jsx("p",{className:"mb-8",style:{color:"#555555"}
346,children:"We thank you for your interest in our company and our products. We would sincerely welcome your inquiries, comments, or request for quotation. Please send your message to us using the form below."}),a.jsxs("form",{onSubmit:c,className:"space-y-6",children:[a.jsxs("div",{children:[a.jsxs(Je,{htmlFor:"firstName",className:"text-sm",style:{color:"#333333"},children:["Name ",a.jsx("span",{className:"text-red-500",children:"*"})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-2",children:[a.jsxs("div",{children:[a.jsx(Ve,{id:"firstName",name:"firstName",value:i.firstName,onChange:l,required:!0,className:"bg-white border-gray-300 text-gray-900"}),a.jsx("span",{className:"text-xs",style:{color:"#666666"},children:"First"})]}),a.jsxs("div",{children:[a.jsx(Ve,{id:"lastName",name:"lastName",value:i.lastName,onChange:l,required:!0,className:"bg-white border-gray-300 text-gray-900"}),a.jsx("span",{className:"text-xs",style:{color:"#666666"},children:"Last"})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Je,{htmlFor:"email",style:{color:"#333333"},children:["Email ",a.jsx("span",{className:"text-red-500",children:"*"})]}),a.jsx(Ve,{type:"email",id:"email",name:"email",value:i.email,onChange:l,required:!0,className:"bg-white border-gray-300 text-gray-900"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Je,{htmlFor:"category",style:{color:"#333333"},children:["Interested Category ",a.jsx("span",{className:"text-red-500",children:"*"})]}),a.jsxs(ag,{value:i.category,onValueChange:u=>o(d=>({...d,category:u})),children:[a.jsx(Zd,{className:"bg-white border-gray-300 text-gray-900",children:a.jsx(ig,{placeholder:"Select a category"})}),a.jsxs(Xd,{children:[a.jsx(ur,{value:"Cryogenic Tank",children:"Cryogenic Tank"}),a.jsx(ur,{value:"LNG",children:"LNG"}),a.jsx(ur,{value:"Modular Refinery",children:"Modular Refinery"}),a.jsx(ur,{value:"CNG Station",children:"CNG Station"}),a.jsx(ur,{value:"Data Center Cooling",children:"Data Center Cooling"}),a.jsx(ur,{value:"Other",children:"Other"})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Je,{htmlFor:"subject",style:{color:"#333333"},children:["Subject ",a.jsx("span",{className:"text-red-500",children:"*"})]}),a.jsx(Ve,{id:"subject",name:"subject",value:i.subject,onChange:l,required:!0,className:"bg-white border-gray-300 text-gray-900"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Je,{htmlFor:"message",style:{color:"#333333"},children:["Message ",a.jsx("span",{className:"text-red-500",children:"*"})]}),a.jsx(yo,{id:"message",name:"message",rows:6,value:i.message,onChange:l,required:!0,className:"bg-white border-gray-300 text-gray-900"})]}),a.jsx("button",{type:"submit",disabled:n,className:"inline-block px-8 py-3 font-semibold transition-colors disabled:opacity-50",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:n?"Submitting...":"Submit"})]})]})})})]})},AW="/assets/spacecom-hero-new-yoIbl7pJ.png",PW="/assets/spacecom-booth-map-w0zCzCjk.png",wC="/assets/tradewinds-logo-DsBgnek6.png",RW=()=>{const e=new Date("2026-01-28T09:00:00"),t=()=>{const s=new Date,i=e.getTime()-s.getTime();return i<=0?{days:0,hours:0,minutes:0,seconds:0}:{days:Math.floor(i/(1e3*60*60*24)),hours:Math.floor(i/(1e3*60*60)%24),minutes:Math.floor(i/1e3/60%60),seconds:Math.floor(i/1e3%60)}},[n,r]=m.useState(t());return m.useEffect(()=>{const s=setInterval(()=>{r(t())},1e3);return()=>clearInterval(s)},[]),a.jsxs(Pe,{children:[a.jsx(Ee,{title:"SpaceCom 2026 - Visit Booth #8484 in Orlando",description:"Meet Corban Energy Group at SpaceCom 2026, January 28-30 in Orlando. Aerospace cryogenic fuel storage systems. U.S. Air Force Tradewinds Awardable Vendor."}),a.jsx("section",{className:"w-full bg-[#001d2e]",children:a.jsx("div",{className:"mx-auto px-4 lg:px-8",style:{maxWidth:"1330px"},children:a.jsx("img",{src:AW,alt:"SpaceCom 2026 - We're Exhibiting - January 28-30, 2026, Orlando, FL",className:"w-full h-auto"})})}),a.jsx("section",{className:"py-5 bg-[#001d2e]",children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("h2",{className:"text-base md:text-lg font-bold text-white text-center mb-3",children:"Event Starts In"}),a.jsxs("div",{className:"flex justify-center gap-2 md:gap-3",children:[a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx("div",{className:"bg-[#00b1ef] text-white text-sm md:text-xl font-bold w-10 md:w-12 h-10 md:h-12 flex items-center justify-center rounded shadow-lg",children:n.days}),a.jsx("span",{className:"text-white/80 mt-1 text-[10px] md:text-xs uppercase tracking-wide",children:"Days"})]}),a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx("div",{className:"bg-[#00b1ef] text-white text-sm md:text-xl font-bold w-10 md:w-12 h-10 md:h-12 flex items-center justify-center rounded shadow-lg",children:n.hours.toString().padStart(2,"0")}),a.jsx("span",{className:"text-white/80 mt-1 text-[10px] md:text-xs uppercase tracking-wide",children:"Hours"})]}),a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx("div",{className:"bg-[#00b1ef] text-white text-sm md:text-xl font-bold w-10 md:w-12 h-10 md:h-12 flex items-center justify-center rounded shadow-lg",children:n.minutes.toString().padStart(2,"0")}),a.jsx("span",{className:"text-white/80 mt-1 text-[10px] md:text-xs uppercase tracking-wide",children:"Minutes"})]}),a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx("div",{className:"bg-[#00b1ef] text-white text-sm md:text-xl font-bold w-10 md:w-12 h-10 md:h-12 flex items-center justify-center rounded shadow-lg",children:n.seconds.toString().padStart(2,"0")}),a.jsx("span",{className:"text-white/80 mt-1 text-[10px] md:text-xs uppercase tracking-wide",children:"Seconds"})]})]})]})}),a.jsx("section",{className:"py-16 bg-white",children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("div",{className:"text-center mb-12",children:a.jsxs(me,{contentKey:"visit_intro_html",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#2d3e50] mb-4",children:"Visit Us at Booth #8484"}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"SpaceCom is one of the largest aerospace exhibitions in the U.S., taking place in Orlando later this month. We would like our potential website visitors to be aware that we will be participating in this event as an exhibitor."})]})}),a.jsx("div",{className:"flex justify-center mb-12",children:a.jsx("img",{src:PW,alt:"SpaceCom Booth Map - Corban Energy Group at Booth #8484",className:"max-w-full md:max-w-4xl rounded-lg shadow-lg"})}),a.jsx("div",{className:"max-w-4xl mx-auto text-center",children:a.jsx(me,{contentKey:"visit_company_html",children:a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed",children:"Corban Energy Group is a US-based engineering and manufacturing company specializing in cryogenic and high-pressure fuel storage systems for aerospace, space launch, and defense infrastru
346cture."})})})]})}),a.jsx("section",{className:"py-16 bg-[#f2f2f2]",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-12 max-w-5xl mx-auto",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("img",{src:wC,alt:"TradeWinds Solutions Marketplace - Awardable Vendor",className:"w-48 md:w-64 h-auto"})}),a.jsx("div",{className:"flex-1 text-center md:text-left",children:a.jsxs(me,{contentKey:"tradewinds_html",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-primary mb-4",children:"2025 Awarded Vendor"}),a.jsx("h3",{className:"text-xl font-semibold text-[#2d3e50] mb-4",children:"U.S. Air Force Tradewinds Solutions Marketplace"}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed mb-6",children:"We are proud to be recognized as an Awardable Vendor supporting U.S. Air Force energy initiative."}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed",children:"We have successfully delivered launchpad fuel tanks for rocket operations and continue to support next-generation spaceports and advanced propulsion programs worldwide."})]})})]})})}),a.jsx("section",{className:"py-16 bg-primary",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 text-center",children:a.jsxs(me,{contentKey:"cta_html",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-6",children:"Come Visit Us at SpaceCom Booth #8484"}),a.jsx("a",{href:"https://www.spacecomexpo.com/",target:"_blank",rel:"noopener noreferrer",className:"inline-block bg-white text-primary font-semibold px-8 py-4 rounded hover:bg-gray-100 transition-colors text-lg",children:"Visit SpaceCom Website"})]})})})]})},jC=()=>{const[e,t]=m.useState(null);return m.useEffect(()=>{let n=!0;return(async()=>{const{data:s}=await ce.from("news_posts").select("id, slug, title, excerpt, body_html, cover_image_url, cover_image_alt, published_at").eq("is_published",!0).order("published_at",{ascending:!1});n&&t(s??[])})(),()=>{n=!1}},[]),e},kC=e=>new Date(`${e}T12:00:00`).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),OW=()=>{const e=va(),t=jC(),n=(e==null?void 0:e.h1_tag)||"News";return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"News & Updates",description:"Latest news, projects, and insights from Corban Energy Group on LNG storage, cryogenic tanks, modular refineries, and energy infrastructure.",canonical:"https://corbanenergygroup.com/news"}),a.jsx("section",{className:"pt-12 pb-6 bg-background",children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:n}),a.jsx("div",{className:"w-16 h-1 bg-[#00b1ef] mt-4"})]})}),a.jsx("section",{className:"pb-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 pt-12",children:t===null?a.jsx("p",{className:"text-muted-foreground",children:"Loading news…"}):t.length===0?a.jsx("p",{className:"text-muted-foreground",children:"No news posts yet."}):a.jsx("div",{className:"grid gap-8 md:grid-cols-2 lg:grid-cols-3",children:t.map(r=>a.jsxs("article",{className:"bg-background border border-border flex flex-col",children:[r.cover_image_url&&a.jsx(K,{to:`/news/${r.slug}`,children:a.jsx("img",{src:r.cover_image_url,alt:r.cover_image_alt||r.title,loading:"lazy",className:"w-full h-48 object-cover"})}),a.jsxs("div",{className:"p-6 flex flex-col flex-grow",children:[a.jsx("p",{className:"text-xs uppercase tracking-wide text-[#00b1ef] mb-2",children:kC(r.published_at)}),a.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:a.jsx(K,{to:`/news/${r.slug}`,className:"hover:text-[#00b1ef] transition-colors",children:r.title})}),r.excerpt&&a.jsx("p",{className:"text-muted-foreground text-sm flex-grow",children:r.excerpt}),a.jsx(K,{to:`/news/${r.slug}`,className:"mt-5 inline-block bg-[#00b1ef] text-white px-5 py-2 text-sm font-semibold hover:opacity-90 transition-opacity w-fit",children:"Read More"})]})]},r.id))})})})]})},IW=()=>{const{slug:e}=By(),t=jC();if(t===null)return a.jsx(Pe,{children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 py-20 text-muted-foreground",children:"Loading…"})});const n=t.findIndex(l=>l.slug===e),r=n>=0?t[n]:null;if(!r)return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"News Not Found",description:"This news article could not be found.",noIndex:!0}),a.jsxs("div",{className:"container mx-auto px-4 lg:px-8 py-20",children:[a.jsx("h1",{className:"text-3xl font-bold text-foreground mb-4",children:"Article Not Found"}),a.jsx(K,{to:"/news",className:"text-[#00b1ef] hover:underline",children:"Back to News"})]})]});const s=n>0?t[n-1]:null,i=n<t.length-1?t[n+1]:null,o=wN.sanitize(r.body_html,{FORBID_TAGS:["script","style","iframe","object","embed","form"],FORBID_ATTR:["onerror","onload","onclick","onmouseover","style"]});return a.jsxs(Pe,{children:[a.jsx(Ee,{title:r.title,description:r.excerpt||r.title,canonical:`https://corbanenergygroup.com/news/${r.slug}`}),a.jsx("article",{className:"py-12",style:{backgroundColor:"#ffffff"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8 max-w-3xl",children:[a.jsxs(K,{to:"/news",className:"inline-flex items-center gap-2 text-[#00b1ef] hover:underline mb-6",children:[a.jsx(vk,{className:"w-4 h-4"})," Back to News List"]}),a.jsx("p",{className:"text-xs uppercase tracking-wide text-[#00b1ef] mb-2",children:kC(r.published_at)}),a.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-6",style:{fontFamily:"'Titillium Web', Arial, sans-serif",color:"#222"},children:r.title}),r.cover_image_url&&a.jsx("img",{src:r.cover_image_url,alt:r.cover_image_alt||r.title,className:"w-full mb-8 object-cover"}),a.jsx("div",{className:"cms-content",dangerouslySetInnerHTML:{__html:o}}),a.jsxs("nav",{className:"mt-12 pt-6 border-t border-gray-300 flex flex-wrap items-center justify-between gap-4",children:[i?a.jsxs(K,{to:`/news/${i.slug}`,className:"inline-flex items-center gap-2 text-[#333] hover:text-[#00b1ef] transition-colors max-w-[45%]",children:[a.jsx(en,{className:"w-4 h-4 shrink-0"}),a.jsxs("span",{className:"truncate",children:["Previous: ",i.title]})]}):a.jsx("span",{}),a.jsx(K,{to:"/news",className:"bg-[#00b1ef] text-white px-5 py-2 text-sm font-semibold hover:opacity-90 transition-opacity",children:"Back to List"}),s?a.jsxs(K,{to:`/news/${s.slug}`,className:"inline-flex items-center gap-2 text-[#333] hover:text-[#00b1ef] transition-colors max-w-[45%] text-right",children:[a.jsxs("span",{className:"truncate",children:["Next: ",s.title]}),a.jsx(qt,{className:"w-4 h-4 shrink-0"})]}):a.jsx("span",{})]})]})})]})},DW="/assets/spacecom-slide-1-CbkavUuo.jpg",MW="/assets/spacecom-slide-2-D7LmfcVv.jpg",LW="/assets/spacecom-slide-3-Siy_XH5N.jpg",FW="/assets/spacecom-slide-4-D76k1nkU.jpg",WW="/assets/spacecom-slide-5-BTsUAZfh.jpg",$W="/assets/spacecom-slide-6-CUWGYwv3.jpg",zW="/assets/spacecom-slide-7-CB2JiC8s.jpg",Ea=[{src:DW,alt:"Corban Energy Group booth at SpaceCom 2026"},{src:MW,alt:"Commercial Space Week signage at SpaceCom 2026"},{src:LW,alt:"Team discussions at SpaceCom 2026 booth"},{src:FW,alt:"Networking at Corban Energy Group booth"},{src:WW,alt:"Corban Energy Group team selfie at SpaceCom 2026"},{src:$W,alt:"Military visitor at Corban Energy Group booth"},{src:zW,alt:"U.S. Space Force booth at SpaceCom 2026"}],UW=()=>{const[e,t]=m.useState(0),n=m.useRef(null);m.useEffect(()=>{const i=setInterval(()=>{t(o=>(o+1)%Ea.length)},4e3);return()=>clearInterval(i)},[]),m.useEffect(()=>{if(n.current){const i=n.current,o=124,l=i.clientWidth,c=e*o-l/2+o/2;i.scrollTo({left:Math.max(0,c),behavior:"smooth"})}},[e]);const r=()=>t(i=>(i+1)%Ea.length),s=()=>t(i=>(i-1+Ea.length)%Ea.length);return a.jsx("section",{className:"py-16 bg-[#f2f2f2]",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",style:{maxWidth:"1100px"},children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 items-start",children:[a.jsx("div",{className:"lg:col-span-6",children:a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"relative overflow-hidden",style:{width:"540px",height:"490px",maxWidth:"100%"},children:[a.jsx("img",{src:Ea[e].src,alt:Ea[e].alt,className:"w-full h-full object-cover transition-opacity duration-500"}),a.jsx("button",{onClick:s,className:"absolute left-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors",children:a.jsx(en,{className:"w-5 h-5"})}),a.jsx("button",{onClick:r,className:"absolute right-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors",children:a.jsx(qt,{className:"w-5 h-5"})})]}),a.jsxs("div",{className:"relative mt-4 flex items-center",style:{maxWidth:"540px"},children:[a.jsx("button",{onClick:s,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center hover:opacity-70",style:{color:"#999"},children:a.jsx(en,{className:"w-5 h-5",strokeWidth:3})}),a.jsx("div",{ref:n,className:"flex gap-1 overflow-x-auto flex-1",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:Ea.map((i,o)=>a.jsx("button",{onClick:()=>t(o),className:`flex-shrink-0 overflow-hidden transition-all ${e===o?"opacity-100":"opacity-70 hover:opacity-100"}
346`,style:{width:"120px",height:"120px",border:e===o?"4px solid #00afef":"4px solid transparent"},children:a.jsx("img",{src:i.src,alt:i.alt,className:"w-full h-full object-cover"})},o))}),a.jsx("button",{onClick:r,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center hover:opacity-70",style:{color:"#999"},children:a.jsx(qt,{className:"w-5 h-5",strokeWidth:3})})]})]})}),a.jsxs("div",{className:"lg:col-span-6",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#2d3e50] mb-6",children:"Meaningful Industry Engagement"}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed mb-6",children:"Throughout the three-day event, our team had productive conversations with:"}),a.jsx("ul",{className:"space-y-3 mb-8",children:["Aerospace engineers and system integrators","Defense sector representatives","Launch infrastructure planners","Commercial space startup executives","University and research institution leaders"].map(i=>a.jsxs("li",{className:"flex items-start gap-3 text-lg text-[#2d3e50]",children:[a.jsx("span",{className:"mt-1.5 w-2 h-2 rounded-full bg-[#00b1ef] flex-shrink-0"}),i]},i))}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed",children:"These discussions reinforced the growing demand for reliable, high-integrity cryogenic systems and precision-manufactured components in both commercial and defense space programs."})]})]})})})},BW="/assets/spacecom-recap-header-qiVqsrWi.png",GW="/assets/spacecom-cape-canaveral-cvfdZJom.png",HW="/assets/spacecom-booth-actual-Bz0GUn6k.png",qW=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"SpaceCom 2026 Recap - Cryogenic & Aerospace Solutions",description:"Corban Energy Group showcased advanced cryogenic and aerospace infrastructure solutions at SpaceCom 2026, Booth #8484 in Orlando, Florida."}),a.jsx("section",{className:"w-full bg-[#001d2e]",children:a.jsx("div",{className:"mx-auto px-4 lg:px-8",style:{maxWidth:"1330px"},children:a.jsx("div",{className:"w-full overflow-hidden",style:{maxHeight:"320px"},children:a.jsx("img",{src:BW,alt:"SpaceCom 2026 - Commercial Space Week",className:"w-full h-full object-cover object-center",style:{minHeight:"320px"}})})})}),a.jsx("section",{className:"py-16 bg-white",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 max-w-4xl",children:a.jsxs(me,{contentKey:"intro_html",children:[a.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-[#2d3e50] mb-4 leading-tight",children:"Corban Energy Group Showcases Advanced Cryogenic & Aerospace Infrastructure Solutions at SpaceCom 2026"}),a.jsx("p",{className:"text-lg text-[#00b1ef] font-semibold mb-6",children:"January 28–30, 2026 | Orange County Convention Center | Orlando, Florida"}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed mb-4",children:"Corban Energy Group was proud to participate in SpaceCom Expo, one of the premier gatherings of commercial space professionals, aerospace manufacturers, government agencies, and defense leaders from around the world."}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed",children:"Held during Commercial Space Week, SpaceCom provided an ideal platform for Corban Energy Group to highlight our advanced engineering capabilities and strategic manufacturing expertise supporting the future of space exploration."})]})})}),a.jsx("section",{className:"py-16 bg-[#f2f2f2]",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 max-w-4xl",children:a.jsxs(me,{contentKey:"powering_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#2d3e50] mb-6",children:"Powering the Future of Space Exploration"}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed mb-6",children:"At Booth #8484, Corban Energy Group presented our comprehensive capabilities in:"}),a.jsx("ul",{className:"space-y-3 mb-8",children:["Launch & Ground Fuel Systems","Cryogenic & High-Pressure Vessel Systems","Precision Engineering & Fabrication","Aerospace & Defense Manufacturing (ISO 9001 Certified)"].map(e=>a.jsxs("li",{className:"flex items-start gap-3 text-lg text-[#2d3e50]",children:[a.jsx("span",{className:"mt-1.5 w-2 h-2 rounded-full bg-[#00b1ef] flex-shrink-0"}),e]},e))}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed",children:"Our team engaged with aerospace manufacturers, government representatives, defense contractors, and commercial space innovators to discu
346ss how our cryogenic storage, pressure vessel technology, and high-performance fuel system infrastructure can support next-generation launch and spaceport operations."})]})})}),a.jsx("section",{className:"pt-16 pb-4 bg-white",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 max-w-4xl",children:a.jsxs(me,{contentKey:"capability_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#2d3e50] mb-6",children:"Demonstrating Real-World Capability & Ongoing Launch Infrastructure Support"}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed mb-6",children:"Our exhibit showcased:"}),a.jsx("ul",{className:"space-y-3 mb-8",children:["Large-scale cryogenic storage solutions","Custom-engineered heat exchangers","High-pressure vessel systems","Strategic manufacturing partnerships"].map(e=>a.jsxs("li",{className:"flex items-start gap-3 text-lg text-[#2d3e50]",children:[a.jsx("span",{className:"mt-1.5 w-2 h-2 rounded-full bg-[#00b1ef] flex-shrink-0"}),e]},e))}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed mb-4",children:"Visitors expressed strong interest in Corban Energy Group's ability to deliver fully engineered, certified solutions that meet the rigorous standards required in aerospace and defense environments."})]})})}),a.jsx("section",{className:"pt-4 pb-12 bg-white",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",style:{maxWidth:"1100px"},children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-center",children:[a.jsx("div",{children:a.jsxs(me,{contentKey:"cape_html",children:[a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed mb-4",children:"Corban Energy Group has been actively supporting launch infrastructure programs through the supply of cryogenic and ground system equipment at Cape Canaveral and the Stennis Space Center. Building on this ongoing experience, the company continues to expand its involvement in launch pad-related ground systems, with additional equipment deliveries planned throughout 2026."}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed",children:"During SpaceCom 2026, Corban Energy Group engaged in continued discussions with multiple space launch companies and is actively progressing follow-up engagements to support evolving launch infrastructure and ground system requirements."})]})}),a.jsx("div",{className:"flex justify-center",children:a.jsx("img",{src:GW,alt:"Cryogenic equipment delivery to Cape Canaveral via barge",className:"max-w-full rounded-lg shadow-lg"})})]})})}),a.jsx(UW,{}),a.jsx("section",{className:"pt-16 pb-4 bg-white",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 max-w-4xl",children:a.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-12 mb-8",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("img",{src:wC,alt:"TradeWinds Solutions Marketplace - Awardable Vendor",className:"w-48 md:w-56 h-auto"})}),a.jsx("div",{className:"flex-1",children:a.jsxs(me,{contentKey:"partnership_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#2d3e50] mb-4",children:"Strengthening Strategic Partnerships"}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed",children:"SpaceCom 2026 provided valuable opportunities to strengthen existing relationships while establishing new connections within the global space ecosystem. As the commercial space sector continues to expand rapidly, infrastructure reliability and manufacturing precision remain mission-critical — areas where Corban Energy Group brings decades of expertise."})]})})]})})}),a.jsx("section",{className:"py-4 bg-white",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 max-w-4xl flex justify-center",children:a.jsx("img",{src:HW,alt:"Corban Energy Group booth at SpaceCom 2026",className:"max-w-full rounded-lg shadow-lg"})})}),a.jsx("section",{className:"py-16 bg-white",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 max-w-4xl",children:a.jsxs(me,{contentKey:"ahead_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#2d3e50] mb-6",children:"Looking Ahead"}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed mb-4",children:"Corban Energy Group remains committed to advancing the infrastru
346cture that powers launch systems, fuel technologies, and aerospace innovation."}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed mb-4",children:"We thank the SpaceCom organizers and all attendees who visited our booth. We look forward to continuing conversations and supporting the next generation of space exploration initiatives."}),a.jsx("p",{className:"text-lg text-[#2d3e50] leading-relaxed mb-4",children:"For partnership inquiries or follow-up discussions, please contact us at:"}),a.jsxs("p",{className:"text-lg text-[#2d3e50] leading-relaxed",children:["🌐"," ",a.jsx("a",{href:"https://www.corbanenergygroup.com",className:"text-[#00b1ef] hover:underline",children:"www.corbanenergygroup.com"}),a.jsx("br",{}),"Email:"," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-[#00b1ef] hover:underline",children:"[email protected]"})]})]})})})]}),Qb="/assets/tradewinds-award-2025-DMERMpg-.png",VW=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"CEG 2025 U.S. Air Force Recognition | Tradewinds Marketplace",description:"Corban Energy Group is honored to be recognized as a 2025 Awarded Vendor on the U.S. Air Force Tradewinds Solutions Marketplace."}),a.jsx(ut,{backgroundImage:Qb,title:"CEG 2025 U.S. Air Force Recognition (Tradewinds Marketplace)"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"max-w-4xl mx-auto",children:[a.jsx("div",{className:"flex justify-center mb-10",children:a.jsx("img",{src:Qb,alt:"2025 Awarded Vendor U.S. Air Force Tradewinds Solutions Marketplace",className:"max-w-md w-full rounded-lg shadow-lg"})}),a.jsxs("div",{className:"prose prose-lg max-w-none",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#1a3a4a"},children:"Corban Energy Group Awarded 2025 Vendor U.S. Air Force Tradewinds Solutions Marketplace"}),a.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:"Corban Energy Group is honored to be recognized as a 2025 Awarded Vendor on the U.S. Air Force Tradewinds Solutions Marketplace."}),a.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:"This designation reflects our continued commitment to delivering advanced energy infrastructure solutions, including cryogenic systems and mission-critical equipment that support national defense and strategic initiatives."}),a.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"Being selected by the U.S. Air Force underscores CEG's capabilities in:"}),a.jsxs("ul",{className:"list-disc pl-6 mb-6 space-y-2 text-gray-700",children:[a.jsx("li",{children:"High-performance engineering"}),a.jsx("li",{children:"Reliable industrial system delivery"}),a.jsx("li",{children:"Supporting complex government and defense programs"})]}),a.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:"We are proud to contribute to initiatives that drive innovation, strengthen infrastructure, and support the future of energy and defense."}),a.jsx("p",{className:"text-gray-700 leading-relaxed mb-8",children:"Connect with Corban Energy Group to explore partnership opportunities in government and industrial energy projects."}),a.jsx("div",{className:"flex flex-wrap gap-2 mb-8",children:["CorbanEnergyGroup","USAirForce","TradewindsMarketplace","EnergyInfrastructure","CryogenicSystems","DefenseIndustry","IndustrialEngineering","GovernmentContractor"].map(e=>a.jsxs("span",{className:"text-sm px-3 py-1 rounded-full",style:{backgroundColor:"#e0f4fd",color:"#00b1ef"},children:["#",e]},e))}),a.jsx("div",{className:"text-center mt-10",children:a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 text-white font-semibold rounded-lg transition-colors hover:opacity-90",style:{backgroundColor:"#00b1ef"},children:"Contact Us"})})]})]})})})]}),Jb=["/","/about","/lng","/lng/cryogenic-storage","/lng/cryogenic-tank","/lng/bulk-storage","/lng/ethane-ethylene","/products","/products/bulk-storage","/products/iso-tank","/products/marine-cargo","/products/flat-bottom","/products/peak-shaving","/products/lng-cooled","/products/cng","/products/modular-refinery","/products/cryogenic-storage","/products/cng-compressors","/products/refrigerated-warehouses","/products/engineering-services","/cryogenic-storage","/contact","/event/spacecom-2026","/event/spacecom-2026-recap","/event/tradewinds-award-2025","/policies","/policies/accessibility","/policies/anti-bribery","/policies/cookies","/policies/csr","/policies/disclaimer","/policies/environmental","/policies/edi","/policies/privacy"],Zb={"/about-us":"/about","/aboutus":"/about","/about_us":"/about","/company":"/about","/contact-us":"/contact","/contactus":"/contact","/get-a-quote":"/contact","/quote":"/contact","/home":"/","/products-services":"/products","/services":"/products","/lng-products":"/lng","/lng/lng-cooled-data-centers":"/products/lng-cooled","/lng-cooled-data-centers":"/products/lng-cooled","/lng/factory-built-bulk-storage-tank":"/lng/bulk-storage","/factory-built-bulk-storage-tank":"/lng/bulk-storage","/lng/bulk-storage-tank":"/lng/bulk-storage","/bulk-storage-tank":"/lng/bulk-storage","/bulk-storage":"/lng/bulk-storage","/iso-tank":"/products/iso-tank","/marine-cargo":"/products/marine-cargo","/flat-bottom":"/products/flat-bottom","/peak-shaving":"/products/peak-shaving","/cng":"/products/cng","/modular-refinery":"/products/modular-refinery","/l
346ng-cooled":"/products/lng-cooled","/ethane-ethylene":"/lng/ethane-ethylene","/ethane":"/lng/ethane-ethylene","/ethylene":"/lng/ethane-ethylene","/cryogenic-tank":"/lng/cryogenic-tank","/cryogenic-storage-tank":"/lng/cryogenic-storage","/privacy":"/policies/privacy","/privacy-policy":"/policies/privacy","/cookies":"/policies/cookies","/cookie-policy":"/policies/cookies","/disclaimer":"/policies/disclaimer","/accessibility":"/policies/accessibility"},KW=(e,t)=>{const n=e.length,r=t.length;if(!n)return r;if(!r)return n;const s=Array.from({length:n+1},(i,o)=>[o,...Array(r).fill(0)]);for(let i=0;i<=r;i++)s[0][i]=i;for(let i=1;i<=n;i++)for(let o=1;o<=r;o++)s[i][o]=e[i-1]===t[o-1]?s[i-1][o-1]:1+Math.min(s[i-1][o-1],s[i-1][o],s[i][o-1]);return s[n][r]},YW=e=>{let t=e.toLowerCase().split("?")[0].split("#")[0];return t=t.replace(/\/index\.html?$/i,""),t=t.replace(/\.(html?|php|aspx?)$/i,""),t.length>1&&(t=t.replace(/\/+$/g,"")),t.startsWith("/")||(t="/"+t),t||"/"},QW=(e,t)=>{const n=YW(e);if(Jb.includes(n))return n;if(t[n])return t[n];const r="/"+n.split("/").filter(Boolean).pop();if(t[r])return t[r];let s=null;for(const i of Jb){const o=KW(n,i);(!s||o<s.d)&&(s={route:i,d:o})}return s&&s.d<=3?s.route:null},JW=()=>{const e=br(),t=ya(),[n,r]=m.useState(void 0),[s,i]=m.useState(null);m.useEffect(()=>{let l=!0;return ce.from("url_aliases").select("source_path,target_path").eq("enabled",!0).then(({data:c})=>{if(!l)return;const u={...Zb};for(const d of c||[])u[d.source_path.toLowerCase()]=d.target_path;i(u)},()=>l&&i(Zb)),()=>{l=!1}},[]);const o=m.useMemo(()=>s?QW(e.pathname+e.search,s):null,[e.pathname,e.search,s]);return m.useEffect(()=>{if(!s)return;const l=e.pathname+e.search;ce.functions.invoke("log-redirect",{body:{requested_url:l,resolved_url:o,status:o?"redirected":"unresolved",referrer:document.referrer||null}}).then(()=>{},()=>{}),o&&o!==e.pathname?t(o+e.search,{replace:!0}):r(null)},[o,t,e.pathname,e.search,s]),s===null||o&&o!==e.pathname||n===void 0?null:a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Page Not Found - 404 Error",description:"The page you're looking for doesn't exist or has been moved. Return to Corban Energy Group homepage for LNG and cryogenic equipment solutions."}),a.jsx("section",{className:"min-h-[70vh] flex items-center justify-center",children:a.jsxs("div",{className:"container mx-auto px-4 text-center",children:[a.jsx("h1",{className:"text-8xl font-bold text-primary mb-4",children:"404"}),a.jsx("h2",{className:"text-3xl font-bold text-foreground mb-4",children:"Page Not Found"}),a.jsx("p",{className:"text-muted-foreground mb-8 max-w-md mx-auto",children:"The page you're looking for doesn't exist or has been moved."}),a.jsx(ye,{asChild:!0,size:"lg",children:a.jsxs(K,{to:"/",children:[a.jsx(wk,{className:"w-5 h-5 mr-2"})," Back to Home"]})})]})})]})},ZW=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Cryogenic Storage Solutions - Custom Tank Systems",description:"Custom cryogenic storage tanks for liquid gases. Double-wall vacuum-insulated design for aerospace, biomedical, and industrial applications. Get a consultation today."}),a.jsx(ut,{backgroundImage:dr,title:"Cryogenic Storage Tank"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsx("div",{className:"max-w-4xl",children:a.jsxs(me,{contentKey:"body_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Cryogenic Storage Tank"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"If your business operations require you to store large quantities of gas in below-freezing temperatures, then Corban Energy Group has the solution for you."}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Thanks to the use of groundbreaking technology and decades of industry expertise, we are able to produce highly effective cryogenic storage units suitable for a huge range of industries and purposes."}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors mb-12",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Book a consultation now!"}),a.jsx("h3",{className:"text-xl font-bold mb-4 mt-8",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"How Do Cryogenic Tanks Work?"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"A cryogenic tank is specifically designed to keep its contents at a constant temperature of well below freezing. While the cryogenic storage containers from Corban Energy Group are custom-built to your needs, there are some design elements that they all share in common."}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"The contents of the cryogenic tank are stored in a stainless steel vessel that is optimized for freezing temperatures. Around this vessel is a second container, this one made up of carbon steel. Between these two materials is a layer of heavy-duty insulation that ensures the internal temperature remains consistent."}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Additionally, the tank will also be equipped with a system used to regulate internal pressure, ensuring the safety of the contents within."}),a.jsx("h3",{className:"text-xl font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Who Needs to Use Cryogenic Storage?"}),a.jsx("p",{className:"mb-4 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"There are many different industries that can benefit from using cryogenic storage containers:"}),a.jsxs("ul",{className:"space-y-2 mb-6",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:"Manufacturers of rocket engines often use substances like liquid hydrogen as a fuel component, which must be stored at a carefully regulated, extremely low temperature."})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:"Biomedical labs often require precise temperature controls for the storage of chemicals and samples."})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:"Any business that works with liquefied gases for any purpose needs to be equipped with a reliable cryogenic tank to ensure that its inventory is stored safely and securely."})]})]}),a.jsx("h3",{className:"text-xl font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Why is Cryogenic Storage Useful?"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"}
346,children:"Liquid gases have to be kept in strictly controlled environments in order to remain in their ideal form. If the temperature becomes too warm or the pressure becomes too low, they'll start to lose the properties that make them beneficial for the business owners that use them. Using cryogenic tanks helps to protect your investment by keeping vital materials at the optimal temperature."}),a.jsx("p",{className:"mb-8 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Furthermore, these systems make it easier for workers to load and unload materials, and maximize the amount of storage space available. This can greatly improve the efficiency of production for your business."})]})})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-8",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Types of Cryogenic Tanks"}),a.jsx("p",{className:"mb-12 max-w-4xl",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Every industry has its own unique cryogenic storage needs, and our scientists and engineers here at Corban Energy Group are ready to custom-build a tank for your company today. Here are some of our most popular products used for temperature-controlled storage."}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[a.jsxs(K,{to:"/lng/iso-tank",className:"group bg-white shadow-md hover:shadow-xl transition-all overflow-hidden",children:[a.jsx("div",{className:"aspect-[4/3] overflow-hidden",children:a.jsx("img",{src:kN,alt:"ISO Tank Container",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),a.jsxs("div",{className:"p-6",children:[a.jsx("h3",{className:"font-bold mb-2 group-hover:text-[#00afef] transition-colors",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Intermodal ISO Tank-Container"}),a.jsx("p",{style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px"},children:"Perfect for transporting sensitive materials like liquid gases by road. Can be used for up to 90 days with a low boil-off rate."})]})]}),a.jsxs(K,{to:"/lng/bulk-storage",className:"group bg-white shadow-md hover:shadow-xl transition-all overflow-hidden",children:[a.jsx("div",{className:"aspect-[4/3] overflow-hidden",children:a.jsx("img",{src:_N,alt:"Bulk Storage Tank",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),a.jsxs("div",{className:"p-6",children:[a.jsx("h3",{className:"font-bold mb-2 group-hover:text-[#00afef] transition-colors",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Factory-Built Bulk Storage Tank"}),a.jsx("p",{style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px"},children:"Perfect for long-term storage in massive quantities. Can hold up to 1,250 cubic meters of volume, vacuum-insulated."})]})]}),a.jsxs(K,{to:"/lng/flat-bottom",className:"group bg-white shadow-md hover:shadow-xl transition-all overflow-hidden",children:[a.jsx("div",{className:"aspect-[4/3] overflow-hidden",children:a.jsx("img",{src:NN,alt:"Flat Bottom Tank",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),a.jsxs("div",{className:"p-6",children:[a.jsx("h3",{className:"font-bold mb-2 group-hover:text-[#00afef] transition-colors",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Site-Built Flat-Bottom Tank"}),a.jsx("p",{style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px"},children:"Our largest model, ideal for long-term storage of extremely large quantities up to 200,000 cubic meters of volume."})]})]}),a.jsxs(K,{to:"/lng/marine-cargo",className:"group bg-white shadow-md hover:shadow-xl transition-all overflow-hidden",children:[a.jsx("div",{className:"aspect-[4/3] overflow-hidden",children:a.jsx("img",{src:SN,alt:"Marine Cargo Tank",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),a.jsxs("div",{className:"p-6",children:[a.jsx("h3",{className:"font-bold mb-2 group-hover:text-[#00afef] transition-colors",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Marine Cargo & Bunkering Tank"}),a.jsx("p",{style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px"},children:"Perfect for transporting sensitive materials over large bodies of water. Incredibly durable with an average lifespan of over 30 years."})]})]})]})]})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"max-w-4xl",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Why Choose Corban Energy Group?"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Corban Energy Group is an American-owned company with bases in both the United States and South Korea. We have been developing cutting-edge cryogenic storage technologies for over a decade with the aim of serving the needs of industry professionals like you."}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"At Corban Energy Group, we always go the extra mile to ensure that the unique needs of every one of our clients are met. We understand that when working with delicate systems like rocket engines and biomedical facilities, there is absolutely no room for error. That's why our dedicated scientists and engineers are dedicated to providing the highest quality of service to our esteemed patrons."}),a.jsx("p",{className:"mb-8 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Any business that relies on the transport of sensitive temperature-controlled liquid gases like nitrogen, hydrogen, and argon can't be without a reliable cryogenic tank for optimal storage. Corban Energy Group is an industry leader in cryogenic storage solutions worldwide, and the quality of our products never disappoints."}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Contact our team today"})]})})})]}),XW="/assets/hero-cryogenic-tank-CwGkqEFS.jpg",e$="/assets/lng-cryogenic-tank-YOzyRUz_.jpg",t$=[{title:"Characteristics of Cryogenic Tanks",content:"Modern cryogenic tanks vary by application. Factory-built tanks typically use double-wall, vacuum-insulated construction, while larger site-built LNG tanks can be of single, double, or full-containment design (with prestressed-concrete outer tanks for full containment), per API 625 / EN 14620."},{title:"Innovations in Cryogenic Tank Design",content:"Recent advancements have made cryogenic tank systems more efficient and adaptable to growing energy needs. Enhanced Insulation and Safety: Multi-layer insulation minimizes boil-off losses, reducing energy costs and improving safety. Smart monitoring systems allow real-time tracking of temperature, pressure, and liquid levels. Modular Tank Systems and Scalability: Modular LNG tanks provide flexible solutions that can be scaled as demand increases, making them ideal for both small and large-scale peak shaving projects."},{title:"Challenges and Solutions",content:"While cryogenic tanks deliver significant operational benefits, ongoing maintenance is essential. Routine inspections and predictive monitoring help reduce downtime and ensure long-term reliability. Environmental responsibility is another focus area. Though LNG storage may release trace amounts of methane, modern sealing technologies and recovery systems minimize emissions, aligning energy companies with stricter environmental standards."}],n$=()=>{const[e,t]=m.useState([]),n=r=>{t(s=>s.includes(r)?s.filter(i=>i!==r):[...s,r])};return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"LNG Cryogenic Tank Technology - Peak Shaving Guide",description:"Learn how LNG cryogenic tanks enable peak shaving for grid stability. Explore tank design innovations, maintenance challenges, and energy cost optimization."}),a.jsx(ut,{backgroundImage:XW,title:"Exploring LNG and Cryogenic Tank Technology: Peak Shaving and Beyond"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsxs(me,{contentKey:"intro_html",children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-6",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Exploring LNG and Cryogenic Tank Technology: Peak Shaving and Beyond"}),a.jsx("h3",{className:"text-xl font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Introduction"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"As global energy demand continues to fluctuate—especially during periods of peak demand—efficie
346nt energy storage and delivery solutions have become essential for ensuring grid stability and cost control. Liquefied Natural Gas (LNG) and advanced cryogenic tank technology have emerged as vital solutions to these challenges, particularly through a process known as peak shaving."}),a.jsx("p",{className:"mb-8 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"LNG tanks play a vital role in storing liquefied natural gas at ultra-low cryogenic temperatures, allowing energy providers to ensure a reliable gas supply and reduce energy costs. These systems provide the flexibility utilities need to balance supply and demand during high-usage seasons while supporting more sustainable and secure energy operations."}),a.jsx("h3",{className:"text-xl font-bold mb-8",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Current Peak Shaving Practices and Technology Used"})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start mb-12",children:[a.jsx("div",{children:a.jsx("img",{src:e$,alt:"LNG Cryogenic Tank",className:"w-full shadow-lg"})}),a.jsx("div",{children:a.jsxs(me,{contentKey:"peak_shaving_html",children:[a.jsx("h4",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"What Is Peak Shaving?"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Peak shaving refers to supplementing fuel supply during times of high power demand. In the natural gas industry it involves storing LNG when demand is low and convert
346ing it back into gas when consumption peaks. This ensures a continuous fuel supply and prevents energy costs from rising due to purchasing gas at premium prices during peak times."}),a.jsx("h4",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Role of Cryogenic Tanks in Balancing Energy Demand"}),a.jsx("p",{className:"mb-4 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"When gas demand rises (often coinciding with power demand peaks), LNG is regasified and injected into the gas grid, supporting power generation and heating loads without over-reliance on spot purchases."}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"During low-demand periods, LNG tanks safely store liquid natural gas at temperatures below -162°C. This system provides utilities and industrial facilities with a dependable reserve, minimizing the risk of blackouts or interruptions even when pipeline capacity is constrained."}),a.jsx("h4",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Biggest Challenges in Practicing Peak Shaving"}),a.jsx("p",{className:"leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Despite its advantages, peak shaving requires precise operation. Operators must manage boil-off gas, maintain LNG quality, and ensure safe handling under extreme cryogenic temperatures. Infrastructure investment and maintenance also add cost considerations, especially for smaller facilities or those operating under high load conditions."})]})})]})]})}),a.jsx("section",{className:"pb-8",style:{backgroundColor:"#fff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsx("h2",{className:"text-xl font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Cryogenic Tanks: How They Solve Peak Shaving Challenges"})})}),a.jsx("section",{className:"py-8",style:{backgroundColor:"#fff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsx("div",{className:"space-y-3",children:t$.map((r,s)=>a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>n(s),className:"w-full flex items-center gap-3 px-4 py-3 text-left transition-colors",style:{backgroundColor:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:[a.jsx("span",{className:"flex-shrink-0 text-white",children:e.includes(s)?a.jsx(hc,{size:16,strokeWidth:3}):a.jsx(zr,{size:16,strokeWidth:3})}),a.jsx("span",{className:"font-semibold text-white",style:{fontSize:"15px"},children:r.title})]}),e.includes(s)&&a.jsx("div",{className:"px-4 py-4 bg-white",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:a.jsx("p",{children:r.content})})]},s))})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs(me,{contentKey:"conclusion_html",children:[a.jsx("h3",{className:"text-xl font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Conclusion"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Cryogenic tanks and LNG storage systems are transforming how the natural gas industry manages peak demand—providing stability, scalability, and efficiency while controlling energy costs. Their continuous evolution supports better grid stability and a secure energy supply for both utilities and industrial 
346customers. As technology advances, the future of LNG storage looks promising, with smarter systems, reduced environmental impact, and enhanced operational performance."}),a.jsx("p",{className:"mb-8 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Corban Energy Group stands at the forefront of this transformation—delivering high-quality LNG tanks, cryogenic equipment, and turnkey energy solutions for peak shaving and several other cryogenic applications."}),a.jsx("p",{className:"mb-8 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"To discover how Corban Energy Group can support your energy operations, contact us today to learn more about our innovative LNG storage systems and cryogenic equipment."})]})})}),a.jsx("section",{className:"pb-16",style:{backgroundColor:"#fff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 text-center",children:a.jsxs(me,{contentKey:"cta_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Ready to enhance your energy resilience?"}),a.jsxs("p",{className:"text-lg mb-8 max-w-4xl mx-auto",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:["Contact Corban Energy Group at"," ",a.jsx("a",{href:"mailto:[email protected]",className:"underline",style:{color:"#00afef"},children:"[email protected]"})," ","to discuss customized LNG storage and peak shaving solutions that ensure a dependable natural gas supply while optimizing energy costs."]}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors hover:opacity-90",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Contact Us Today"})]})})})]})},r$="/assets/hero-products-dKpRbntA.png",s$="/assets/bulk-storage-1-DqdwRrvH.jpg",a$="/assets/bulk-storage-2-BQ0Myzt6.jpg",i$="/assets/bulk-storage-3-Dp7aAIe-.jpg",o$="/assets/bulk-storage-4-BL9VPkEh.jpg",l$="/assets/bulk-storage-5-4fZpR7cM.jpg",c$="/assets/bulk-storage-6-D9HQp3AK.jpg",u$="/assets/bulk-storage-7-C3dOEP4G.jpg",_C="/assets/bulk-storage-case-study-1-CUcGeohf.jpg",SC="/assets/bulk-storage-case-study-2-BwSeZsV6.jpg",zu=[{src:s$,alt:"1228m3 LNG Tank"},{src:a$,alt:"Bulk Storage Tank Construction"},{src:i$,alt:"Gunsan LNG Facility"},{src:o$,alt:"LNG Storage Tank Transport"},{src:l$,alt:"Factory Built LNG Tanks"},{src:c$,alt:"Gunsan LNG Storage"},{src:u$,alt:"1228m3 Tank Detail"}],d$=["From 100 m³ (26,417 gal.) up to 1,250 m³ (330,215 gal.) gross volume","Double-wall, vacuum insulated","Fast delivery","Highest quality materials / engineering / fabrication","Fully custom designed"],f$=()=>{const[e,t]=m.useState(0);m.useEffect(()=>{const r=setInterval(()=>{t(s=>(s+1)%zu.length)},5e3);return()=>clearInterval(r)},[]);const n=r=>{t(r)};return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"LNG Bulk Storage Tanks - Vacuum-Insulated Up to 1,250m³",description:"Factory-built LNG storage tanks up to 1,250m³ capacity. Double-wall vacuum insulated. Custom designed for your operations. Fast delivery, highest quality."}),a.jsx(ut,{backgroundImage:r$,title:"Factory-Built Bulk Storage Tank"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsxs("div",{children:[a.jsx("div",{className:"relative w-full h-[490px] mb-4 overflow-hidden bg-gray-200",children:a.jsx("img",{src:zu[e].src,alt:zu[e].alt,className:"w-full h-full object-cover transition-opacity duration-500"})}),a.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2",children:zu.map((r,s)=>a.jsx("button",{onClick:()=>n(s),className:`flex-shrink-0 w-20 h-16 overflow-hidden border-2 transition-all ${e===s?"border-[#00afef] opacity-100":"border-transparent opacity-70 hover:opacity-100"}`,children:a.jsx("img",{src:r.src,alt:r.alt,className:"w-full h-full object-cover"})},s))})]}),a.jsx("div",{children:a.jsxs(me,{contentKey:"body_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Factory-Built Bulk Storage Tank"}),a.jsx("h3",{className:"text-lg md:text-xl mb-6 font-normal",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"CEG has designed, built, and delivered the world's largest vacuum-insulated bullet LNG tanks"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"For day to day fueling and refueling operations, our LNG storage tanks are ideal. Perfect for low to medium volume markets, our storage tanks can be customized from the ground up. As shop-fabricated tanks, the tanks have been thoroughly tested under harsh conditions, and constructed to meet international standards. Orientations include both horizontal and vertical positions; your ideal storage tank depends on your business operation. Corban offers factory-built storage tanks in the capacity of up to 1,250 m³."}),a.jsx("ul",{className:"space-y-2 mb-8",children:d$.map(r=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:r})]},r))}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Get A Quote"})]})})]})})}),a.jsx("section",{className:"py-16 bg-white",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Discover How Corban Energy Group Overcame Extreme Challenges to Deliver LNG Storage Solutions in a Developing Area in Equatorial Africa"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Explore an in-depth case study by John A. Schlosberg from Corban Energy Group (CEG) as they tackle a monumental challenge: providing a 14,000 m³ LNG storage solution for a power plant in equatorial Africa. With a tight budget, a demanding schedule, and logistical hurdles, CEG had to innovate every step of the way."}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Read how CEG designed, fabricated, and shipped 12 large, fully compliant Type C Tanks in less than 12 months while adhering to high safety standards and achieving significant cost savings. This summary highlights key solutions in material selection, manufacturing efficiencies, and logistics coordination that made the project a success."}),a.jsx("h3",{className:"text-xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Ready to learn more about CEG's groundbreaking approach and the detailed strategies they employed?"}),a.jsxs("p",{className:"leading-relaxed",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:[a.jsx("a",{href:"https://corbanenergygroup.com/pushing-the-limits-of-storage/index.html",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",style:{color:"#00afef"},children:"Read the full case study"})," ","now to get the complete insights."]})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("img",{src:_C,alt:"LNG Storage Tanks in Africa",className:"w-full shadow-lg"}),a.jsx("img",{src:SC,alt:"Factory-Built Bulk Storage Tank",className:"w-full shadow-lg"})]})]})})})]})},h$="/assets/hero-ethane-ethylene-DJHK54pD.png",m$="/assets/ethane-services-BrCX4q52.png",p$=()=>
346a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Ethane & Ethylene Transport - ISO Tank-Containers",description:"ISO tank-containers for ethane and ethylene transport. 40 and 53-foot sizes for rail, sea, or road. Self-sufficient for remote sites. Fast delivery."}),a.jsx(ut,{backgroundImage:h$,title:"Ethane & Ethylene"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#ececec"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs(me,{contentKey:"body_html",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",style:{fontFamily:"'Titillium Web', Arial, sans-serif",color:"#333333"},children:"Ethane & Ethylene"}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[a.jsx("div",{className:"text-justify",style:{fontFamily:"'Titillium Web', Arial, sans-serif",color:"#333333"},children:a.jsxs("p",{className:"leading-relaxed",children:[a.jsx("strong",{children:"Ethane"})," is a heavy and saturated hydrocarbon chemical compound. Its primary use is as a petrochemical feedstock for the production of ethylene by the process of steam cracking. As a fuel source, it is a very attractive resource due to its abundance and relatively low price. It is also used in the manufacturing of plastics, anti-freeze, and detergents."]})}),a.jsx("div",{className:"text-justify",style:{fontFamily:"'Titillium Web', Arial, sans-serif",color:"#333333"},children:a.jsxs("p",{className:"leading-relaxed",children:[a.jsx("strong",{children:"Ethylene"})," is another hydrocarbon used widely in the chemical industry. Its worldwide production exceeds that of any other organic compound. It can be used as a refrigerant, especially in LNG plants. Ethylene is also an important natural plant hormone and is used in agriculture to force the ripening of fruits."]})})]})]})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#ffffff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-start",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-2xl font-bold mb-6",style:{fontFamily:"'Titillium Web', Arial, sans-serif",color:"#00b1ef"},children:"CEG's Solution for Ethane and Ethylene"}),a.jsx("p",{className:"mb-6 text-justify leading-relaxed",style:{fontFamily:"'Titillium Web', Arial, sans-serif",color:"#333333"},children:"Corban Energy Group has been providing the mobile solutions – 40-foot ISO tank containers – for the transportation of these two hydrocarbons, as well as stationary bulk storage tanks. As a part of our ongoing efforts to provide supply solutions to reach customers everywhere, we now provide 53-foot, self-sufficient ISO tank containers for ethane and ethylene transportation."}),a.jsx("h4",{className:"text-lg font-bold mb-4",style:{fontFamily:"'Titillium Web', Arial, sans-serif",color:"#333333"},children:"CEG's LNG/Ethane/Ethylene ISO Tank Containers"}),a.jsxs("ul",{className:"space-y-2 list-disc list-inside",style:{fontFamily:"'Titillium Web', Arial, sans-serif",color:"#333333"},children:[a.jsx("li",{children:"International standard specialized ISO tank containers in 40′ & 53′ sizes"}),a.jsx("li",{children:"Transportation by rail, sea, or road"}),a.jsx("li",{children:"Low maintenance"}),a.jsx("li",{children:"Self sufficient for underequipped, remote sites"}),a.jsx("li",{children:"Easy to operate"}),a.jsx("li",{children:"Customized design"}),a.jsx("li",{children:"Fast delivery"})]})]}),a.jsx("div",{children:a.jsx("img",{src:m$,alt:"Ethane Services - Industrial facility",className:"w-full h-auto"})})]})})})]}),Zc="/assets/hero-products-dKpRbntA.png",g$=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Cryogenic Storage Tanks & LNG Storage — Cryogenic Tank Manufacturer",description:"Cryogenic storage tanks and LNG storage solutions by a U.S. cryogenic tank manufacturer. Double-wall vacuum-insulated tanks for aerospace, healthcare, food processing, and LNG terminals."}),a.jsx(ut,{backgroundImage:Zc,title:"Cryogenic Storage Tank"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsx("img",{src:dv,alt:"Cryogenic Storage Tank",className:"w-full shadow-lg"})}),a.jsx(me,{children:a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Cryogenic Storage Tank"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"If your business operations require you to store large quantities of gas in below-freezing temperatures, then Corban Energy Group has the solution for you. Thanks to the use of groundbreaking technology and decades of industry expertise, we are able to produce highly effective cryogenic storage units suitable for a huge range of industries and purposes."}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"How Do Cryogenic Tanks Work?"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"A cryogenic tank is specifically designed to keep its contents at a constant temperature of well below freezing. The contents of the cryogenic tank are stored in a stainless steel vessel that is optimized for freezing temperatures. Around this vessel is a second container, this one made up of carbon steel. Between these two materials is a layer of heavy-duty insulation that ensures the internal temperature remains consistent."}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Who Needs to Use Cryogenic Storage?"}),a.jsx("ul",{className:"space-y-2 mb-8",children:["Manufacturers of rocket engines using liquid hydrogen as fuel","Healthcare and medical research facilities","Food processing and preservation industries","Industrial gas suppliers","LNG terminals and distribution centers"].map(e=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:e})]},e))}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors hover:opacity-90",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Get A Quote"})]})})]})})})]}),y$="/assets/cryogenic-tanks-row-Da2TMAyP.png",v$="/assets/cryogenic-useful-C5PZdUyj.png",Xb="/assets/cryogenic-why-bg-1-Crp6r6rP.jpg",x$="/assets/cryogenic-why-bg-2-DlgH_K0A.jpg",b$="/assets/cryogenic-iso-tank-BW7DomI_.png",w$="/assets/cryogenic-bulk-storage-Cd84z5XT.png",j$="/assets/cryogenic-flat-bottom-DqQvbsNB.png",k$=()=>{const[e,t]=m.useState(0),n=[Xb,x$];return m.useEffect(()=>{const r=setInterval(()=>{t(s=>(s+1)%n.length)},5e3);return()=>clearInterval(r)},[]),a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Cryogenic Tank Manufacturer — Cryogenic Storage Tanks for LNG & Industrial Gases",description:"Leading U.S. cryogenic tank manufacturer. Custom cryogenic storage tanks and LNG storage tanks — double-wall vacuum-insulated for aerospace, biomedical, LNG, and industrial gas."}),a.jsx(ut,{backgroundImage:Xb,title:"Cryogenic Storage Tank"}),a.jsx("section",{className:"py-16 relative",style:{background:"linear-gradient(135deg, #3a3a3a 0%, #3a3a3a 40%, #888888 70%, #aaaaaa 100%)"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8 relative z-10",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[a.jsx("div",{children:a.jsxs(me,{contentKey:"intro_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Cryogenic Storage Tank"}),a.jsx("p",{className:"mb-6 leading-relaxed text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"If your business operations require you to store large quantities of gas in below-freezing temperatures, then Corban Energy Group has the solution for you."}),a.jsx("p",{className:"mb-6 leading-relaxed text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Thanks to the use of groundbreaking technology and decades of industry expertise, we are able to produce highly effective cryogenic storage units suitable for a huge range of industries and purposes."}),a.jsx("p",{className:"mb-8 leading-relaxed text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Find out how your company can benefit from a new cryogenic tank from Corban Energy Group –"}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors uppercase",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"book a consultation now!"})]})}),a.jsx("div",{className:"hidden lg:block"})]})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsxs(me,{contentKey:"how_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"How Do Cryogenic Tanks Work?"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7",fontStyle:"italic"},children:"A cryogenic tank is specifically designed to keep its contents at a constant temperature of well below freezing. While the cryogenic storage containers from C
346orban Energy Group are custom-built to your needs, there are some design elements that they all share in common."}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7",fontStyle:"italic"},children:"The contents of the cryogenic tank are stored in a stainless steel vessel that is optimized for freezing temperatures. Around this vessel is a second container, this one made up of carbon steel. Between these two materials is a layer of heavy-duty insulation that ensures the internal temperature remains consistent."}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7",fontStyle:"italic"},children:"Additionally, the tank will also be equipped with a system used to regulate internal pressure, ensuring the safety of the contents within."})]})}),a.jsx("div",{children:a.jsx("img",{src:y$,alt:"Cryogenic Storage Tanks",className:"w-full shadow-lg"})})]})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs(me,{contentKey:"who_html",children:[a.jsxs("div",{className:"text-center max-w-4xl mx-auto",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Who Needs to Use Cryogenic Storage?"}),a.jsx("p",{className:"mb-10",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"There are many different industries that can benefit from using cryogenic storage containers:"})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-10 max-w-5xl mx-auto",children:[a.jsx("div",{className:"p-6",style:{backgroundColor:"#00afef"},children:a.jsx("p",{className:"text-white text-center",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Manufacturers of rocket engines often use substances like liquid hydrogen as a fuel component, which must be stored at a carefully regulated, extremely low temperature."})}),a.jsx("div",{className:"p-6",style:{backgroundColor:"#00afef"},children:a.jsx("p",{className:"text-white text-center",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Biomedical labs often require precise temperature controls for the storage of chemicals and samples."})}),a.jsx("div",{className:"p-6",style:{backgroundColor:"#00afef"},children:a.jsx("p",{className:"text-white text-center",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Any business that works with liquefied gases for any purpose needs to be equipped with a reliable cryogenic tank to ensure that its inventory is stored safely and securely."})})]}),a.jsxs("p",{className:"text-center",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:["Corban Energy Group serves all these businesses and",a.jsx("br",{}),"more with cutting-edge storage solutions. Contact us today to get started on your project."]})]})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[a.jsx("div",{children:a.jsx("img",{src:v$,alt:"Cryogenic Storage Equipment",className:"w-full shadow-lg"})}),a.jsx("div",{children:a.jsxs(me,{contentKey:"useful_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Why is Cryogenic Storage Useful?"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7",fontStyle:"italic"},children:"Liquid gases have to be kept in strictly controlled environments in order to remain in their ideal form. If the temperature becomes too warm or the pressure becomes too low, they'll start to lose the properties that make them beneficial for the business owners that use them. Using cryogenic tanks helps to protect your investment by keeping vital materials at the optimal temperature."}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7",fontStyle:"italic"},children:"Furthermore, these systems make it easier for workers to load and unload materials, and maximize the amount of storage space available. This can greatly improve the efficiency of production for your business."})]})})]})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#00afef"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsxs(me,{contentKey:"types_intro_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-center text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Types of Cryogenic Tanks"}),a.jsx("p",{className:"mb-12 text-center text-white max-w-4xl mx-auto",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Every industry has its own unique cryogenic storage needs, and our scientists and engineers here at Corban Energy Group are ready to custom-build a tank for your company today. That's why we offer a range of different cryogenic tank models to choose from. Here are some of our most popular products used for temperature-controlled storage."})]}),a.jsxs("div",{className:"flex flex-col lg:flex-row gap-6 mb-12 max-w-4xl mx-auto items-center",children:[a.jsx("div",{className:"lg:flex-1",children:a.jsxs(me,{contentKey:"type_iso_html",children:[a.jsx("h3",{className:"text-xl font-bold mb-4 text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Intermodal ISO Tank-Container"}),a.jsx("p",{className:"text-white mb-4",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Our intermodal ISO tank-containers are the perfect solution for transporting sensitive materials like liquid gase
346s by road. They can be used for up to 90 days, giving you plenty of time to get your goods to their destination safely."}),a.jsx("p",{className:"text-white mb-4",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Plus, they have all of the necessary safety features and can be custom-designed to ensure that your specific needs are met."}),a.jsx("p",{className:"text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"With a wide range of sizes available and a low boil-off rate, these containers are your best option when it comes to road transportation."})]})}),a.jsx("div",{className:"lg:flex-shrink-0",children:a.jsx("img",{src:b$,alt:"Intermodal ISO Tank-Container",className:"shadow-lg",style:{width:"450px",height:"auto"}})})]}),a.jsxs("div",{className:"flex flex-col lg:flex-row-reverse gap-6 mb-12 max-w-4xl mx-auto items-center",children:[a.jsx("div",{className:"lg:flex-1",children:a.jsxs(me,{contentKey:"type_bulk_html",children:[a.jsx("h3",{className:"text-xl font-bold mb-4 text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Factory-Built Bulk Storage Tank"}),a.jsx("p",{className:"text-white mb-4",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"These storage tanks are perfect for long-term storage in massive quantities. They can hold up to 1,250 cubic meters of volume at their largest size, so they'll be sure to meet your needs for overall capacity. Plus, they're vacuum-insulated to ensure the contents are kept in pristine condition."}),a.jsx("p",{className:"text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Available in both upright and horizontal orientations, these large tanks will work well for just about any space. As always, we can customize these products to be better optimized for your unique situation."})]})}),a.jsx("div",{className:"lg:flex-shrink-0",children:a.jsx("img",{src:w$,alt:"Factory-Built Bulk Storage Tank",className:"shadow-lg",style:{width:"450px",height:"auto"}})})]}),a.jsxs("div",{className:"flex flex-col lg:flex-row gap-6 mb-12 max-w-4xl mx-auto items-center",children:[a.jsx("div",{className:"lg:flex-1",children:a.jsxs(me,{contentKey:"type_flat_html",children:[a.jsx("h3",{className:"text-xl font-bold mb-4 text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Site-Built Flat-Bottom Tank"}),a.jsx("p",{className:"text-white mb-4",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Our site-built flat-bottom tanks are our largest model offered, ideal for long-term storage of extremely large quantities of materials. Due to their immense size of up to 200,000 cubic meters of volume, these tanks will need to be constructed at their permanent location by our experienced crew."}),a.jsx("p",{className:"text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"They meet all of the required international standards for material storage safety and can offer you immense value."})]})}),a.jsx("div",{className:"lg:flex-shrink-0",children:a.jsx("img",{src:j$,alt:"Site-Built Flat-Bottom Tank",className:"shadow-lg",style:{width:"450px",height:"auto"}})})]}),a.jsx("div",{className:"flex flex-col lg:flex-row-reverse gap-6 max-w-4xl mx-auto items-center",children:a.jsx("div",{className:"lg:flex-1",children:a.jsxs(me,{contentKey:"type_marine_html",children:[a.jsx("h3",{className:"text-xl font-bold mb-4 text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Marine Cargo & Bunkering Tank"}),a.jsx("p",{className:"text-white mb-4",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"If you need to transport sensitive materials over large bodies of water, our marine cargo solutions are perfect for you. They're incredibly durable, with an average lifespan of over 30 years, and they can be customized to work with any marine cargo vessel."}),a.jsx("p",{className:"text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Plus, we offer ongoing support and maintenance so they can always stay in their best shape."})]})})})]})}),a.jsxs("section",{className:"py-20 relative overflow-hidden",style:{minHeight:"500px"},children:[n.map((r,s)=>a.jsx("div",{className:"absolute inset-0 bg-cover bg-center transition-opacity duration-500",style:{backgroundImage:`url(${r})`,opacity:e===s?1:0}}
346,s)),a.jsx("div",{className:"absolute inset-0 bg-black/60"}),a.jsx("div",{className:"container mx-auto px-4 lg:px-8 relative z-10",children:a.jsx("div",{className:"max-w-4xl mx-auto",children:a.jsx("div",{className:"bg-black/40 p-8 lg:p-12",children:a.jsxs(me,{contentKey:"why_choose_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4 text-white text-center",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Why Choose Corban Energy Group?"}),a.jsx("p",{className:"mb-6 text-white text-center",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Corban Energy Group is an American-owned company with bases in both the United States and South Korea. We have been developing cutting-edge cryogenic storage technologies for over a decade with the aim of serving the needs of industry professionals like you."}),a.jsx("p",{className:"mb-6 text-white text-center",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"At Corban Energy Group, we always go the extra mile to ensure that the unique needs of every one of our clients are met."}),a.jsx("p",{className:"text-white text-center",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"We understand that when working with delicate systems like rocket engines and biomedical facilities, there is absolutely no room for error. That's why our dedicated scientists and engineers are dedicated to providing the highest quality of service to our esteemed patrons."})]})})})})]}),a.jsx("section",{className:"py-12",style:{backgroundColor:"#d9d9d9"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-center max-w-5xl mx-auto",children:[a.jsx("div",{className:"lg:border-r-2 lg:border-gray-400 lg:pr-8",children:a.jsxs(me,{contentKey:"cta_left_html",children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Take Advantage of Corban Energy Group's State-of-the-Art Cryogenic Storage Products Today!"}),a.jsx("p",{style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px",lineHeight:"1.7"},children:"Any business that relies on the transport of sensitive temperature-controlled liquid gases like nitrogen, hydrogen, and argon can't be without a reliable cryogenic tank for optimal storage. Corban Energy Group is an industry leader in cryogenic storage solutions worldwide, and the quality of our products never disappoints."})]})}),a.jsx("div",{className:"text-center lg:text-left lg:pl-8",children:a.jsxs(me,{contentKey:"cta_right_html",children:[a.jsx("h3",{className:"text-xl font-bold mb-6",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Ready to get started?"}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors",style:{backgroundColor:"#000",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Contact our team today"})]})})]})})})]})},_$="/assets/cng-station-B5aMGrK_.jpg",S$=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"CNG Compressors & Dispensers - Heavy-Duty Industrial",description:"North American partner of Kwang-Shin Co. Heavy-duty CNG compressors and dispensers. GEO-M, GEO-AII, GEO-BII models. Cost-effective, proven reliability."}),a.jsx(ut,{backgroundImage:Zc,title:"CNG Compressors & Dispensers"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsx("img",{src:_$,alt:"CNG Compressors & Dispensers",className:"w-full shadow-lg"})}),a.jsx(me,{children:a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"CNG Compressors & Dispensers"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Corban Energy Group is the North American partner of Kwang-Shin Co. Ltd., a renowned South Korean compressor manufacturer. Kwang-Shin is one of the world's leaders in heavy duty industrial compressors, and we guarantee the best quality, cost-effective equipment to serve for your needs."}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Our CNG Equipment Line"}),a.jsx("ul",{className:"space-y-2 mb-8",children:["GEO-M Plug and play!","GEO-AII","GEO-BII","GEO-C2 & C4","GEO-D2 & D4","Dispensers"].map(e=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:e})]},e))}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Key Features"}),a.jsx("ul",{className:"space-y-2 mb-8",children:["Heavy-duty industrial grade construction","Cost-effective operation and maintenance","Global technical support network","Proven reliability with thousands of installations worldwide","Customizable configurations for various applications"].map(e=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:e})]},e))}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors hover:opacity-90",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Get A Quote"})]})})]})})})]}),N$=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"LNG-Powered Refrigerated Warehouses - Cold Storage",description:"Sustainable cold storage using LNG cryogenic cooling. For food, pharmaceutical, and agricultural preservation. Significant energy savings and reduced carbon footprint."}),a.jsx(ut,{backgroundImage:Zc,title:"Refrigerated Warehouses"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsx("img",{src:Qd,alt:"Refrigerated Warehouses",className:"w-full shadow-lg"})}),a.jsx(me,{children:a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"LNG-Powered Refrigerated Warehouses"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Corban Energy Group offers innovative refrigerated warehouse solutions powered by LNG cryogenic cooling technology. Our systems leverage the cold energy released during LNG regasification to provide efficient, sustainable cooling for large-scale storage facilities."}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Applications"}),a.jsx("ul",{className:"space-y-2 mb-8",children:["Cold storage facilities for food and beverage","Pharmaceutical storage requiring precise temperature control","Agricultural produce storage and preservation","Frozen food distribution centers","Medical and biological sample storage"].map(e=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:e})]},e))}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Key Benefits"}),a.jsx("ul",{className:"space-y-2 mb-8",children:["Significant energy cost savings compared to conventional systems","Reduced carbon footprint and environmental impact","Reliable and consistent temperature control","Scalable solutions for various facility sizes","Integration with existing LNG infrastructure"].map(e=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:e})]},e))}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors hover:opacity-90",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Get A Quote"})]})})]})})})]}),C$=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Engineering & Project Services - LNG Installation Support",description:"End-to-end LNG engineering and project management. Design, fabrication, installation, and maintenance services. Terminal development and regulatory compliance."}),a.jsx(ut,{backgroundImage:Zc,title:"Engineering & Project Services"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsx("img",{src:fv,alt:"Engineering & Project Services",className:"w-full shadow-lg"})}),a.jsx(me,{children:a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Comprehensive Engineering Solutions"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Corban Energy Group provides end-to-end engineering and project management services for LNG and cryogenic installations. Our experienced team of engineers and project managers deliver comprehensive solutions from initial concept through final commissioning."}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Our Services"}),a.jsx("ul",{className:"space-y-2 mb-8",children:["Design - Custom engineering solutions tailored to your requirements","Fabrication - Quality manufacturing with rigorous quality control","Installation - Professional on-site installation and setup","Maintenance - Ongoing support and maintenance services"].map(e=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:e})]},e))}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Project Capabilities"}),a.jsx("ul",{className:"space-y-2 mb-8",children:["LNG terminal development and construction","Cryogenic storage facility design","Pipeline and distribution system engineering","Regasification system installation","Safety system design and implementation","Regulatory compliance and permitting support"].map(e=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:e})]},e))}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors hover:opacity-90",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Get A Quote"})]})})]})})})]}),T$="/assets/bulk-storage-1-DqdwRrvH.jpg",E$="/assets/bulk-storage-2-BQ0Myzt6.jpg",A$="/assets/bulk-storage-3-Dp7aAIe-.jpg",P$="/assets/bulk-storage-4-BL9VPkEh.jpg",R$="/assets/bulk-storage-5-4fZpR7cM.jpg",O$="/assets/bulk-storage-7-C3dOEP4G.jpg",I$="/assets/bulk-storage-slide-7-BV5siFPc.jpg",D$="/assets/bulk-storage-slide-8-CbmnZgUU.jpg",M$="/assets/bulk-storage-slide-9-B50Zkwyr.jpg",L$="/assets/lng-view-1-C-Pq1TBh.jpg",Aa=[{src:T$,alt:"1228m3 LNG Tank"},{src:E$,alt:"Bulk Storage Tank Construction"},{src:A$,alt:"Gunsan LNG Facility"},{src:P$,alt:"LNG Storage Tank Transport"},{src:R$,alt:"Factory Built LNG Tanks"},{src:O$,alt:"1228m3 Tank Detail"},{src:I$,alt:"Gunsan LNG Storage 1"},{src:D$,alt:"Gunsan LNG Storage 2"},{src:M$,alt:"Tank 8"},{src:L$,alt:"LNG Tank View"}],F$=()=>{const[e,t]=m.useState(0),n=m.useRef(null);m.useEffect(()=>{const i=setInterval(()=>{t(o=>(o+1)%Aa.length)},4e3);return()=>clearInterval(i)},[]),m.useEffect(()=>{if(n.current){const i=n.current,o=124,l=i.clientWidth,c=e*o-l/2+o/2;i.scrollTo({left:Math.max(0,c),behavior:"smooth"})}},[e]);const r=()=>{t(i=>(i+1)%Aa.length)},s=()=>{t(i=>(i-1+Aa.length)%Aa.length)};return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"LNG Storage Tanks — Factory-Built Bulk LNG Storage up to 1,250m³",description:"LNG storage tank manufacturer. Factory-built bulk LNG storage tanks up to 1,250m³, double-wall vacuum-insulated cryogenic tanks. Custom designed, fast delivery."}),a.jsx(ut,{backgroundImage:Zc,title:"Factory-Built Bulk Storage Tank"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 items-start",children:[a.jsx("div",{className:"lg:col-span-6",children:a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"relative overflow-hidden",style:{width:"540px",height:"490px",maxWidth:"100%"},children:[a.jsx("img",{src:Aa[e].src,alt:Aa[e].alt,className:"w-full h-full object-cover transition-opacity duration-500"}),a.jsx("button",{onClick:s,className:"absolute left-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors",children:a.jsx(en,{className:"w-5 h-5"})}),a.jsx("button",{onClick:r,className:"absolute right-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors",children:a.jsx(qt,{className:"w-5 h-5"})})]}),a.jsxs("div",{className:"relative mt-4 flex items-center",style:{maxWidth:"540px"},children:[a.jsx("button",{onClick:s,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center transition-opacity hover:opacity-70",style:{color:"#999"},children:a.jsx(en,{className:"w-5 h-5",strokeWidth:3})}),a.jsx("div",{ref:n,className:"flex gap-1 overflow-x-auto scrollbar-hide flex-1",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:Aa.map((i,o)=>a.jsx("button",{onClick:()=>t(o),className:`flex-shrink-0 overflow-hidden transition-all ${e===o?"opacity-100":"opacity-70 hover:opacity-100"}`,style:{width:"120px",height:"120px",border:e===o?"4px solid #00afef":"4px solid transparent"},children:a.jsx("img",{src:i.src,alt:i.alt,className:"w-full h-full object-cover"})},o))}),a.jsx("button",{onClick:r,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center transition-opacity hover:opacity-70",style:{color:"#999"},children:a.jsx(qt,{className:"w-5 h-5",strokeWidth:3})})]})]})}),a.jsx("div",{className:"lg:col-span-6",children:a.jsxs(me,{contentKey:"body_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Factory-Built Bulk Storage Tank"}),a.jsx("h3",{className:"text-lg md:text-xl mb-6",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"CEG has designed, built, and delivered the world's largest vacuum-insulated bullet LNG tanks"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"For day to day fueling and refueling operations, our LNG storage tanks are ideal. Perfect for low to medium volume markets, our storage tanks can be customized from the ground up. As shop-fabricated tanks, the tanks have been thoroughly tested under harsh conditions, and constructed to meet international standards. Orientations include both horizontal and vertical positions; your ideal storage tank depends on your business operation. Corban offers factory-built storage tanks in the capacity of up to 1,250 m³."}),a.jsx("ul",{className:"space-y-2 mb-8",children:["From 100 m³ (26,417 gal.) up to 1,250 m³ (330,215 gal.) gross volume","Double-wall, vacuum insulated","Fast delivery","Highest quality materials / engineering / fabrication","Fully custom designed"].map(i=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:i})]},i))}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors hover:opacity-90",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Get A Quote"})]})})]})})}),a.jsx("section",{className:"py-16 bg-white",children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-start",children:[a.jsx("div",{children:a.jsxs(me,{contentKey:"case_study_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Discover How Corban Energy Group Overcame Extreme Challenges to Deliver LNG Storage Solutions in a Developing Area in Equatorial Africa"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Explore an in-depth case study by John A. Schlosberg from Corban Energy Group (CEG) as they tackle a monumental challenge: providing a 14,000 m³ LNG storage solution for a power plant in equatorial Africa. With a tight budget, a demanding schedule, and logistical hurdles, CEG had to innovate every step of the way."}),a.jsx("p",{className:"mb-8 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Read how CEG designed, fabricated, and shipped 12 large, fully compliant Type C Tanks in less than 12 months while adhering to high safety standards and achieving significant cost savings. This summary highlights key solutions in material selection, manufacturing efficiencies, and logistics coordination that made the project a success."}),a.jsx("p",{className:"mb-6 font-semibold",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"16px",lineHeight:"1.5"},children:"Ready to learn more about CEG's groundbreaking approach and the detailed strategies they employed?"}),a.jsxs("p",{style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("a",{href:"https://corbanenergygroup.com/pushing-the-limits-of-storage/index.html",target:"_blank",rel:"noopener noreferrer",className:"font-semibold hover:underline",style:{color:"#00afef"},children:"Read the full case study"})," ","now to get the complete insights."]})]})}),a.jsxs("div",{className:"space-y-6",children:[a.jsx("img",{src:_C,alt:"Factory-Built Bulk Storage Tanks",className:"w-full"}),a.jsx("img",{src:SC,alt:"Factory-Built Bulk Storage Tank Case Study",className:"w-full"})]})]})})})]})}
346,W$="/assets/hero-iso-tank-new-DzPF5h0v.png",$$="/assets/iso-tank-slide-6-BF7fJwQJ.jpg",z$="/assets/iso-tank-slide-7-nUYIwOtb.jpg",U$="/assets/iso-tank-slide-8-CtPL9F8P.jpg",B$="/assets/iso-tank-slide-9-0yCWYv_9.jpg",G$="/assets/iso-tank-slide-10-CQqkrTMH.jpg",H$="/assets/iso-tank-slide-11-BNkV4BDN.jpg",q$="/assets/iso-tank-slide-12-17b4Snlx.jpg",V$="/assets/iso-tank-slide-13-DYTxxOqV.jpg",Di=[CN,TN,EN,AN,PN,$$,z$,U$,B$,G$,H$,q$,V$],K$=()=>{const[e,t]=m.useState(0),n=m.useRef(null);m.useEffect(()=>{const i=setInterval(()=>{t(o=>(o+1)%Di.length)},4e3);return()=>clearInterval(i)},[]),m.useEffect(()=>{if(n.current){const i=n.current,o=128,l=i.clientWidth,c=e*o-l/2+o/2;i.scrollTo({left:Math.max(0,c),behavior:"smooth"})}},[e]);const r=()=>{t(i=>(i-1+Di.length)%Di.length)},s=()=>{t(i=>(i+1)%Di.length)};return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Intermodal ISO Tank-Containers - LNG Transport Solutions",description:"Cryogenic ISO tank-containers for LNG, ethane, and ethylene transport. 20, 40, 53 foot sizes. CSC, IMDG, DOT approved. Low boil-off rate, 90+ day holding time."}),a.jsx(ut,{backgroundImage:W$,title:"Intermodal ISO Tank-Container"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"relative overflow-hidden",style:{width:"540px",height:"490px",maxWidth:"100%"},children:[a.jsx("img",{src:Di[e],alt:`ISO Tank Container ${e+1}`,className:"w-full h-full object-cover transition-opacity duration-500"}),a.jsx("button",{onClick:r,className:"absolute left-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors","aria-label":"Previous slide",children:a.jsx(en,{className:"w-5 h-5"})}),a.jsx("button",{onClick:s,className:"absolute right-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors","aria-label":"Next slide",children:a.jsx(qt,{className:"w-5 h-5"})})]}),a.jsxs("div",{className:"relative mt-4 flex items-center",style:{maxWidth:"540px"},children:[a.jsx("button",{onClick:r,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center transition-opacity hover:opacity-70",style:{color:"#999"},"aria-label":"Previous slide",children:a.jsx(en,{className:"w-5 h-5",strokeWidth:3})}),a.jsx("div",{ref:n,className:"flex gap-1 overflow-x-auto scrollbar-hide flex-1",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:Di.map((i,o)=>a.jsx("button",{onClick:()=>t(o),className:`flex-shrink-0 overflow-hidden transition-all ${e===o?"opacity-100":"opacity-70 hover:opacity-100"}`,style:{width:"120px",height:"120px",border:e===o?"4px solid #00afef":"4px solid transparent"},children:a.jsx("img",{src:i,alt:`Thumbnail ${o+1}`,className:"w-full h-full object-cover"})},o))}),a.jsx("button",{onClick:s,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center transition-opacity hover:opacity-70",style:{color:"#999"},"aria-label":"Next slide",children:a.jsx(qt,{className:"w-5 h-5",strokeWidth:3})})]})]})}),a.jsx(me,{children:a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"ISO Tank-Containers"}),a.jsxs("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:["Built to last, our ",a.jsx("strong",{children:"Cryogenic Tank-Containers"})," provide versatile and efficient means of transportation over road. CEG also specializes in manufacturing ",a.jsx("strong",{children:"Tank Trailers"})," for LNG transportation and fueling/refueling. Designed for ease of use and equipped with numerous safety features, our transport vessels are optimized for intermodal transportation of cryogenic/liquefied gases via Road, Rail and Sea."]}),a.jsx("ul",{className:"space-y-2 mb-8",children:["Ideal for short/mid term small storage","Can be fully custom designed","20, 40, and 53 foot sizes","CSC, IMDG, DOT, RID, ADR, TPED, ASME, TC approved","Triple liquid (LNG, Ethane, Ethylene) certified","Low boil-off-rate (BOR), at 0.15 to 0.30% per day","Long holding time (up to 90+ days)","Top quality with extensive manufacturing/servicing experience"].map(i=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:i})]},i))})]})})]})})})]})},Y$="/assets/hero-marine-cargo-new-BWqqmZxc.png",Q$="/assets/lng-bunkering-roYhzsFv.png",J$="/assets/marine-cargo-slide-2b-syEvqOQR.jpg",Z$="/assets/marine-cargo-slide-2c-ClMH6uhC.jpg",X$="/assets/marine-cargo-slide-3b-dtdLTH85.png",ez="/assets/marine-cargo-slide-2-BkhW9GMs.jpg",tz="/assets/marine-cargo-slide-3-CtfOY4HT.jpg",nz="/assets/marine-cargo-slide-5b-BvXmHz83.jpg",rz="/assets/marine-cargo-slide-4-N1smE-c3.png",sz="/assets/marine-cargo-slide-5-pIskqMGX.png",Mi=[Q$,Z$,X$,J$,ez,nz,tz,rz,sz],az=()=>{const[e,t]=m.useState(0),n=m.useRef(null);m.useEffect(()=>{const i=setInterval(()=>{t(o=>(o+1)%Mi.length)},4e3);return()=>clearInterval(i)},[]),m.useEffect(()=>{if(n.current){const o=n.current.offsetWidth,l=e*128-o/2+128/2;n.current.scrollTo({left:Math.max(0,l),behavior:"smooth"})}},[e]);const r=()=>{t(i=>(i-1+Mi.length)%Mi.length)},s=()=>{t(i=>(i+1)%Mi.length)};return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Marine Cargo & LNG Bunkering Tanks - Vacuum Insulated",description:"World's largest double-wall vacuum-insulated LNG cargo tanks. Marine bunkering systems with superior BOR under 0.06% per day. 30+ year lifespan."}),a.jsx(ut,{backgroundImage:Y$,title:"Marine Cargo & Bunkering Tank"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"relative overflow-hidden",style:{width:"540px",height:"490px",maxWidth:"100%"},children:[a.jsx("img",{src:Mi[e],alt:`Marine Cargo slide ${e+1}`,className:"w-full h-full object-cover transition-opacity duration-500"}),a.jsx("button",{onClick:r,className:"absolute left-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors","aria-label":"Previous slide",children:a.jsx(en,{className:"w-5 h-5"})}),a.jsx("button",{onClick:s,className:"absolute right-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors","aria-label":"Next slide",children:a.jsx(qt,{className:"w-5 h-5"})})]}),a.jsxs("div",{className:"relative mt-4 flex items-center",style:{maxWidth:"540px"},children:[a.jsx("button",{onClick:r,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center transition-opacity hover:opacity-70",style:{color:"#999"},"aria-label":"Previous slide",children:a.jsx(en,{className:"w-5 h-5",strokeWidth:3})}),a.jsx("div",{ref:n,className:"flex gap-1 overflow-x-auto scrollbar-hide flex-1",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:Mi.map((i,o)=>a.jsx("button",{onClick:()=>t(o),className:`flex-shrink-0 overflow-hidden transition-all ${e===o?"opacity-100":"opacity-70 hover:opacity-100"}`,style:{width:"120px",height:"120px",border:e===o?"4px solid #00afef":"4px solid transparent"},children:a.jsx("img",{src:i,alt:`Thumbnail ${o+1}`,className:"w-full h-full object-cover"})},o))}),a.jsx("button",{onClick:s,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center transition-opacity hover:opacity-70",style:{color:"#999"},"aria-label":"Next slide",children:a.jsx(qt,{className:"w-5 h-5",strokeWidth:3})})]})]})}),a.jsx(me,{children:a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Marine Cargo & Bunkering Tank"}),a.jsx("h3",{className:"text-lg font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"CEG is currently building the World's Largest double-wall, vacuum insulated LNG cargo tanks for a marine barge conversion project."}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"LNG is becoming the choice for maritime fuel. CEG offers marine cargo tanks and small scale LNG bunkering systems for various applications."}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Services Provided:"}),a.jsx("ul",{className:"space-y-2 mb-6",children:["Cargo tank engineering & manufacturing","Cargo handling system engineering, sourcing, & assembly","Operations & maintenance support"].map(i=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:i})]},i))}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Advantages of Double-wall, Vacuum Insulation over Single-wall, PUF insulation:"}),a.jsx("ul",{className:"space-y-2 mb-8",children:["Superior Performance with Boil-Off-Rate (<0.06% per day)","Longer Lifespan (30+ years vs. 10 years)","Better Durability"].map(i=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:i})]},i))})]})})]})})})]})},iz="/assets/hero-flat-bottom-new-CEliEFXx.png",oz="/assets/flat-bottom-C72te48d.jpg",lz="/assets/flat-bottom-new-2-SQjzya-u.jpg",cz="/assets/flat-bottom-new-3-Bh_B1GRq.jpg",uz="/assets/flat-bottom-new-4-DzguSXjl.jpg",dz="/assets/flat-bottom-new-4b-D8LLBpW3.png",fz="/assets/flat-bottom-new-5-DbgpLF3J.jpg",Li=[oz,lz,cz,dz,uz,fz],hz=()=>{const[e,t]=m.useState(0),n=m.useRef(null);m.useEffect(()=>{const i=setInterval(()=>{t(o=>(o+1)%Li.length)},4e3);return()=>clearInterval(i)},[]),m.useEffect(()=>{if(n.current){const o=n.current.offsetWidth,l=e*128-o/2+128/2;n.current.scrollTo({left:Math.max(0,l),behavior:"smooth"})}},[e]);const r=()=>{t(i=>(i-1+Li.length)%Li.length)},s=()=>{t(i=>(i+1)%Li.length)};return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Site-Built Flat-Bottom LNG Tanks - Up to 200,000m³",description:"Full containment LNG storage tanks up to 200,000m³ capacity. Site-built by KOGAS-Tech expertise. Also available for ethane and ethylene storage."}),a.jsx(ut,{backgroundImage:iz,title:"Site-built Flat-bottom Tank"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"relative overflow-hidden",style:{width:"540px",height:"490px",maxWidth:"100%"},children:[a.jsx("img",{src:Li[e],alt:`Site-built Flat-bottom Tank slide ${e+1}`,className:"w-full h-full object-cover transition-opacity duration-500"}),a.jsx("button",{onClick:r,className:"absolute left-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors","aria-label":"Previous slide",children:a.jsx(en,{className:"w-5 h-5"})}),a.jsx("button",{onClick:s,className:"absolute right-2 top-1/2 -translate-y-1/2 w-8 h-8 bg-black/30 hover:bg-black/50 flex items-center justify-center text-white transition-colors","aria-label":"Next slide",children:a.jsx(qt,{className:"w-5 h-5"})})]}),a.jsxs("div",{className:"relative mt-4 flex items-center",style:{maxWidth:"540px"},children:[a.jsx("button",{onClick:r,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center transition-opacity hover:opacity-70",style:{color:"#999"},"aria-label":"Previous slide",children:a.jsx(en,{className:"w-5 h-5",strokeWidth:3})}),a.jsx("div",{ref:n,className:"flex gap-1 overflow-x-auto scrollbar-hide flex-1",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:Li.map((i,o)=>a.jsx("button",{onClick:()=>t(o),className:`flex-shrink-0 overflow-hidden transition-all ${e===o?"opacity-100":"opacity-70 hover:opacity-100"}
346`,style:{width:"120px",height:"120px",border:e===o?"4px solid #00afef":"4px solid transparent"},children:a.jsx("img",{src:i,alt:`Thumbnail ${o+1}`,className:"w-full h-full object-cover"})},o))}),a.jsx("button",{onClick:s,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center transition-opacity hover:opacity-70",style:{color:"#999"},"aria-label":"Next slide",children:a.jsx(qt,{className:"w-5 h-5",strokeWidth:3})})]})]})}),a.jsx(me,{children:a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Site-built Flat-bottom Tank"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Engineered by our partner KOGAS-Tech, our onsite-fabricated, full containment LNG storage tanks have been operational globally. Available in various sizes, with capacities all the way up to 200,000 m³ (~53,000,000 gallons), these full containment storage tanks have been built to international standards. With years of experience in designing and constructing these tanks, Corban Energy Group has a vast portfolio that substantiates our ability to construct reliable LNG storage tanks. Having the right tank for the proper storage of LNG ensures that your operation runs smoothly. Our LNG storage tanks are manufactured to be highly efficient while safe to operate and easy to maintain. Corban Energy Group offers its high level of expertise and knowledge in the natural gas industry as an LNG equipment manufacturer. After a short survey and diagnostic analysis of your business operation, our team can advise and help identify a suitable and customized solution for your LNG storage tank."}),a.jsx("p",{className:"leading-relaxed text-justify",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Our storage tank solutions also go beyond storing LNG; Corban's engineering team also have experience in building Ethane and Ethylene storage tanks."})]})})]})})}),a.jsx("section",{className:"py-12",style:{backgroundColor:"#00b1ef"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8 text-center",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-4",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Let's Talk"}),a.jsx("p",{className:"text-white mb-6",style:{fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"16px"},children:"We can help you optimize your system with our expertise and know-how."}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 text-white font-semibold transition-colors",style:{backgroundColor:"#0088cc",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:"Get A Quote"})]})})]})},mz="/assets/hero-peak-shaving-B2m3dJQc.png",pz="/assets/iso-tank-slide-9-0yCWYv_9.jpg",gz="/assets/peak-shaving-slide-2-XyyH1cFs.jpg",yz="/assets/iso-tank-slide-10-CQqkrTMH.jpg",vz="/assets/peak-shaving-slide-4-Cw4oFoRE.jpg",xz=[{title:"Scalability and Reliability:",content:"LNG can be delivered via truck or pipeline, allowing for flexible and scalable power solutions, even for data centers off-grid or in areas with limited grid infrastructure."},{title:"Cost-Effectiveness:",content:"LNG generators can be more cost-effective than diesel generators, particularly for large, long-running applications."},{title:"Sustainability:",content:"LNG is a cleaner-burning fuel than diesel, offering a more environmentally friendly backup power option."},{title:"Flexibility:",content:"LNG can be used for both backup power and continuous power generation, providing flexibility for data center operations."},{title:"Reduced Emissions:",content:"LNG reduces emissions compared to diesel, which can contribute to better sustainability goals."}],bz=[{title:"Long-Term Savings:",content:"LNG offers long-term cost savings compared to diesel due to lower fuel costs and maintenance requirements."},{title:"Storage and Transportation:",content:"Liquefaction dramatically reduces the volume of natural gas, making it easier and more efficient to store and transport."}
346,{title:"Versatile Applications:",content:"LNG can be used with various generator types, including medium-speed engines, gas turbines, and aeroderivative turbines."},{title:"Fuel Flexibility:",content:"Some generators, like aeroderivative turbines, can run on multiple fuels, including LNG, diesel, ethanol, and even hydrogen."},{title:"Emerging Solutions:",content:"Companies like Hitachi Energy are developing hydrogen fuel cell solutions for clean backup power, with potential for integration with LNG infrastructure."}],Fi=[pz,gz,yz,vz],wz=()=>{const[e,t]=m.useState(0),n=m.useRef(null),[r,s]=m.useState([]),[i,o]=m.useState([]),l=f=>{s(h=>h.includes(f)?h.filter(p=>p!==f):[...h,f])},c=f=>{o(h=>h.includes(f)?h.filter(p=>p!==f):[...h,f])};m.useEffect(()=>{const f=setInterval(()=>{t(h=>(h+1)%Fi.length)},4e3);return()=>clearInterval(f)},[]),m.useEffect(()=>{if(n.current){const h=n.current.offsetWidth,p=e*128-h/2+128/2;n.current.scrollTo({left:Math.max(0,p),behavior:"smooth"})}},[e]);const u=()=>{t(f=>(f-1+Fi.length)%Fi.length)},d=()=>{t(f=>(f+1)%Fi.length)};return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Peak Shaving Power Systems - LNG Backup & Grid Stability",description:"LNG-powered peak shaving and emergency backup systems for grid stability and data centers. Mobile or stationary storage, vaporizers, and generator sets."}),a.jsx(ut,{backgroundImage:mz,title:"Peak Shaving Power Systems"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsxs("div",{children:[a.jsx("div",{className:"mb-4 overflow-hidden bg-white",style:{width:"485px",maxWidth:"100%",height:"434px"},children:a.jsx("img",{src:Fi[e],alt:`Peak Shaving slide ${e+1}`,className:"w-full h-full object-cover"})}),a.jsxs("div",{className:"flex items-center",children:[a.jsx("button",{onClick:u,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center hover:opacity-70 transition-opacity","aria-label":"Previous slide",children:a.jsx(en,{size:20,color:"#999",strokeWidth:3})}),a.jsx("div",{ref:n,className:"flex gap-2 overflow-x-auto mx-2 scrollbar-hide",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:Fi.map((f,h)=>a.jsx("button",{onClick:()=>t(h),className:"flex-shrink-0 overflow-hidden transition-all",style:{width:"120px",height:"120px",border:e===h?"3px solid #00afef":"3px solid transparent"},children:a.jsx("img",{src:f,alt:`Thumbnail ${h+1}`,className:"w-full h-full object-cover"})},h))}),a.jsx("button",{onClick:d,className:"flex-shrink-0 w-5 h-5 flex items-center justify-center hover:opacity-70 transition-opacity","aria-label":"Next slide",children:a.jsx(qt,{size:20,color:"#999",strokeWidth:3})})]})]}),a.jsx("div",{children:a.jsxs(me,{contentKey:"body_html",children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"LNG-powered Peak Shaving & Backup Systems"}),a.jsxs("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:["Energy consumption peaks are critical to grid stability, and they also affect CAPEX of supply facilities: The grid load and the energy production systems need to be designed to accommodate these peak loads. This is how ",a.jsx("strong",{children:"Peak Shaving"})," systems can benefit both the energy producers/distributors and the power consumers, by cost-efficiently relieving the sporadic peak demands. Peak Shaving plants can also function as emergency power backup system in case of outages."]}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"CEG offers:"}),a.jsx("ul",{className:"space-y-2 mb-8",children:["Mobile or Stationary LNG Storage Vessels","Re-gas Systems (Vaporizers)","State-of-the-art LNG fired Generator sets"].map(f=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:f})]},f))}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Why LNG is a growing choice for data center backup power:"}),a.jsx("ul",{className:"space-y-2 mb-8",children:[{title:"Scalability and Reliability:",text:"LNG c
346an be delivered via truck or pipeline, allowing for flexible and scalable power solutions"},{title:"Cost-Effectiveness:",text:"LNG generators can be more cost-effective than diesel generators, particularly for large, long-running applications"},{title:"Sustainability:",text:"LNG is a cleaner-burning fuel than diesel, offering a more environmentally friendly backup power option"},{title:"Flexibility:",text:"LNG can be used for both backup power and continuous power generation"},{title:"Reduced Emissions:",text:"LNG reduces emissions compared to diesel"},{title:"Long-Term Savings:",text:"LNG offers long-term cost savings compared to diesel due to lower fuel costs and maintenance requirements"}].map(f=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:[a.jsx("span",{style:{color:"#00afef"},children:"●"}),a.jsxs("span",{children:[a.jsx("strong",{children:f.title})," ",f.text]})]},f.title))})]})})]})})}),a.jsx("section",{className:"py-8",style:{backgroundColor:"#f7f7f7"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsx("h2",{className:"text-xl md:text-2xl font-bold",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Why LNG is a growing choice for data center backup power:"})})}),a.jsx("section",{className:"py-8",style:{backgroundColor:"#e8e8e8"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[a.jsx("div",{className:"space-y-3",children:xz.map((f,h)=>a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>l(h),className:"w-full flex items-center gap-3 px-4 py-3 text-left transition-colors",style:{backgroundColor:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:[a.jsx("span",{className:"flex-shrink-0 text-white",children:r.includes(h)?a.jsx(hc,{size:16,strokeWidth:3}):a.jsx(zr,{size:16,strokeWidth:3})}),a.jsx("span",{className:"font-semibold text-white",style:{fontSize:"15px"},children:f.title})]}),r.includes(h)&&a.jsx("div",{className:"px-4 py-4 bg-white",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:a.jsx("p",{children:f.content})})]},h))}),a.jsx("div",{className:"space-y-3",children:bz.map((f,h)=>a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>c(h),className:"w-full flex items-center gap-3 px-4 py-3 text-left transition-colors",style:{backgroundColor:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:[a.jsx("span",{className:"flex-shrink-0 text-white",children:i.includes(h)?a.jsx(hc,{size:16,strokeWidth:3}):a.jsx(zr,{size:16,strokeWidth:3})}),a.jsx("span",{className:"font-semibold text-white",style:{fontSize:"15px"},children:f.title})]}),i.includes(h)&&a.jsx("div",{className:"px-4 py-4 bg-white",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:a.jsx("p",{children:f.content})})]},h))})]})})})]})},jz="/assets/hero-lng-cooled-ffnoWCXG.png",kz="/assets/lng-cooled-diagram-DdMxPatm.png",_z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAA5CAYAAABK8dV5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA4dSURBVHgB7Z1bjNzUGcf/9mS5CKWZPlRU4iGOKkraIrJIDfShYp1C07dcRKu+NGSi0kq0ygVBRSUCO1tAKlIRGyLx0EJ3kjwVIZHlDUobJy+9UIkNBUrKA+alEr2oE0WUy7Lj+m+Pd72z5/NlfOyZjfyTTjbjc3wZ+3znu5zveICampqampqampqampoaXRjQidVuNq6GbZrmlOEZlmd4k56BpuGhGTXxP3f9Otf/b9f/tNDr9c4ufQgHbruLmprLhOKC5QvTxDVmyz/Ubl9QbAyN4cDzTiz2eg7ebruoqVnHDC9YW9vWRMM87GugVlwjaaKzuNSbqQWsZr2SX7BCDTXt/+8IyqcWsJp1SSNP4yu+1N5jXGWe8aXRRjVMNkxjT+NzOy72/nVmATU164RsGqtaLSUxu/jmw/eipmYdkC5YgS9lvOA3ncTocX3TcEdtGtaMO8mCFQYozvj/szA+1MJVM/aYYs14ChUJr8u/PlSP5RcvoejS6q2U86jKu37h8zqCYs+sIxy/lWHf6ZTrs1AucwnnPwN9nBHOYUcNRMEaU6GKCM3TybbuMH8adkr9HowOC+H1PYmwE8+h2ud32C9toc71y47+3zKxU+oq6y9KwZr4ys/4cCxo5IkHduKff/gJPnnjITzz6C40N16FYhiTE4tBQKVKDhesr5IWwpHVQvlwQJkV6lxUJ1RWSpsWKmKNYE18ud2C5ujfQz+6DQf33bosTHft2Yaj/jYNHGn4UwCoBgvpph5HRBvjg4XyhYv3ZE6oY5paFUJF9mdosxsVsVqw6LcYerXA5us2+YI1tWb7IV/Qbtu+GUUxTXOuIpMw630ZpTmowkL2ax/m2BRc1f2vUqh4/iz33YY+PziRVYLl+1V8ABY08sqv7xLrnvVNQg00KzIJ7YztOHKWJegdhJHcwbLFLwcgd+JWCddkQRYq9K+nqkn9Pcj+/SoZ+FYEK4yytaARmoCbr5O/L+tU2mwIjpQcJbSRfcDJOnrqxEUodHsT2rSgDwvJJiaF6jSqI4sZGFGJH7wsWH1tpQ3JBByEwnfT1mtRlAnTKDMrRHpwMznblw01hNSht0EPHDiShIr3pIPqsKC2Jpx+GaQSPzgUrBK01TOPZvcTn31Mg0loGPtL8rUkDeQiDC+r1pHZqDC0O8B5lEuaULVRLbaw/US/qCjdoggEa8LUK8GM+k3lCExsu+HzQdSwIM2Jj7kuTDuS/e70/0oPr4XLD0b/JOd/FEJFJNPOQai9VQNfmX5wQCBYntHQZroEJuA9+UPpoT+2CYUwvTLCqdK9iQRKMr0qC+0OIJl876EY7MAtoe4YRiNUk1ALuoPQoqBQqQIopZuDJs0no9DK39U8dM9UYsDi7Kvq58s5rjzmoxrD1mwOWlA/ABcrGsuBOhpno/o5LXYyycwpGkxIClM7GA2StopbETM599WC2Vhq2NAETUAWiZOnz+ObB07i+Kk/KetpPhY1CRsfa+3MtrB9fuDziZz7DwsHDUtR2OkZfJLy4RZQbuh7DqPxKW1huxP7P7935X6waSz1bGggzQR87x8X8cjT54L/82/30sfKdmkmIYUvKYpoGr7W0oc0qnUGPjs59x8WaqN3FeU1hKaY1FH2olx43qrTy2yogygOVlsQFKp54RgtlIQJw9QShk0zAb//4LwvXOHA0b30Ee5//CVlO8kkDLfvwr7d2/D62++L5zH0TXBL9ruLtaO/gxGGdlOgKeSifI6g2u+
346a5vvG6QhtS/ODGbworA53f+OGRBOQGurcgG9Fs1Dyt6iVdt1+w/Lng9+7FX9/+SCmbrGWtZ6EZxi65mskbXNM2H5W2F71ZHGEizClqA29dBPq5lANSZPwKl/SgWwO2igB0w9cWCgANckvHtgp1ocmoLrPqbbTRLzP12Yv/u5CIGB/ef4HeOKnO4PzsH2k9ZIuCXqwhe1SEKAjbC89tKug45eboT+o4KYc10I10UFpCoQmn9RBqvKDAzag4EM/uO+WRBPwzkO/EeuoxRjIiAIW1GB3P/iib895+O3cXavmwqipqOUyoKMT21CblHxoeUflaHTtoDgcidqxz/RrbEU7C8maZRh4PPpqLsKUJfp1qntNTd9BueanZAbSWpECOJawPWkd2dBsQAHS0pYoNEn+EIlMu/nfXwjaUsgorPH1WjyOpPVKQnpww/pMPF4HxWGgwhnYZiva2f3iQB/01SLf0kVoEqsCFrxHHHx2oBwsyM/AQn4fO3qmDjRiogBJmevxKGASDGTc9/jLQfYF/ShGBeNCdXL+fFBfIUn2+7DYKMccdCB3CN1RukENOAtZK9ko741eNvSj3Q+mYA1lMqRlrlPDUGjSGPSj4lCoAtMwH0VNIMl+L0pZHU0KptgoN0rH+3wgoZ6CXcZ9LCOsr90PpinYzXvQNBOQvlCaP0SBOuofQ8oppPk3nKbyXBRDMgNdZKMJ9f3Usj5GAYMpLtQmEDuhg/JwEAYFVPcsmtvS+S7ISci+b9YB1VJs0+kHB2zwPGPBMPJFBouYgOFE8lRqeH54n8osorEsyKN81tWwfEj/VWy3UYIt34ede7ric0ZQE3M+qCnUzWs8vzQFwsElSXvGaUN9r3T5wQG+KdjLlZzJOaU0E1AVEqeZ98QD38I7Lx0ShYqh9m8ffm6NUG3beq2/z03ZMua9XpFlE7aw3UF2jdWF3JFslMMs5BG77IwInncmoV5nupMtbD+B7DgJx9ZmDppew3SyNg60zY/ltCWVCUiBotnIwASjfRKvX3gf2+/8ZTB/FcHUpXdeOohXn/9hkI3BEDw/J6U09TzPwfBkSerMwnzO4xeFnXtUvhahYDtCnQU9/qUNtRnnIp9GdJD8CgMtmEuNJSdrY5pw0mvLqG3iJmDkh6kifYPQn/qqL1RxTcf9X/EFaVA78nO4XZ1PuHTl0GaHlMJEHOSjA7UGGTZcn4VRai2SpLV4/kkUQ/J9HeRHGii1pTiZWGh3PaSP8mmZ64887QSCQXMt1CyHUgWK/tgdB04qgxRJQiwvMTEcfh8Mh6RNqH1c5ENaB0TKWrY/aq3lJJyfPInh4YDUEuryWhOkI2y3oek+BfNYBoz5pEZZMtePn/pz4EMNZkyoCLXbWVy/86k1OYQRu27fmniMbSpz0POGuckRtrD9NIYjaVl4GWFo0kmoq0JrtVHO3JY0z+RiOI3lomQ/2Aj+nWzzFWKc1Vc+cGaVJ2mr63cex9Qtm4N2aTDD4v6fv5ya88c35qZxxY2PrPrcWOpt+aj+sYSaMSDMvKA5KIz26SbguUBI0pbjMw+QZt93Dj2XJZFWzHyPOH9hTapUpxaqmnFhOaVpQ8+bHawMInqpixfPJmZhRALFlcPnXs0e2ZdWGUv1Df6kak3NmLD8U6mf/tvpmtfan/X9ra9F2x6793bs/PoXxJ233/krND9zJZ5/6rtr6oJM9aMv4tFAo11EXi68+5/g79R2a00dteSAYHU++dt0Ef+qpkYrq7LbP93gtScWjeW8qX0ZTMC4X8WgxKnTC4EflUc7JZ3j5OnXccif/9q08WpcvPSh6tgutdUiRg4dbAerQ94MMTex1lFuYXWgwUL6S2uicwyaBgtYHYEcnDZwoA4otLD29WCTsWOq2NOvcwe2W8h+/Q7kRYfR/eJ+HWS/BqtfnIR9XCR/Lwcal9qszm73fa2e2VtODTl+6o/KnSITMPK/qJ0YMv+iH+XjXx1CtXKubnDMu4/Oq4/tYWZMfCuG6wfnavjAXsDaic2kNV0MS29KOIeFZHjO/VjpbFyfpIrG8RqmFftKETgL4XdJC5unXb9qPms6dlwXoZBJP1THdoP3j+33p1xT0nVL1zU0a9ZjLf21fdq4ceaY4RmHqTHoZ8XfnLS8GLHPHTl9J6143rHFt6Y7GG84CqatT3KxMkKzk1GTSDfVQXqIOb4gsoNwUeKsop2N7LmEdv+6Iq0SH91dZL/+QVr9cnPsmB2Eg4F036x+/SzS4UDBdCDOAdmo6FVtyvVYNAn9XhuoTWoJhrUZUudfBiGiqB7Tl0YmVPwt4remh50XqZLI9xvltUrzZrROsubycVRngIhC24I+qGmYAT9ohlFoKMSqSdEDyKa9CTMJKOicq7VREeqFjr5J2FjyomXYAVlC5BVCv2oH1g95OkIa1AhzsaISimh05mhNE0iKmHLwlDLj40Raiu070Pt2IwvypDLPt0WxnWYiszzSXpNgYWU5CAW11Jd0xhFXENNv6XdeF+NFcF3rbM7KRbaOkAUeZyZWVCOehVCwKDBxs1BFG+mpPIexkq7kYEXQRklkBiZZAjZWMmeiNDMbFZC4NH/8hMtbWIdCFZGlI2SBHcSNFRWRMNHEyqJd0kxCG6FwRS8IJbpMW5poqoCJ1T/vQsK+kSUg5dDtx0oghGUSFf3EUuo7L9iJF998eItneMcwSvxAxTUfeOtVqCKijlAVTv/vnpR2kUmo6nQ2QgHeEit7oa+DzvaPFY/KUcAjEzbJB3Eh/yCD1S9bBopqykI7qYIV8ekbfqDAC0LxLirEM9A1er29DFR03aEz18cFF8kZ4FlgyDv+euk0zcHOmSWzvA31s2WnPzGwzUHY4W0Ux0UoqPxer8VKmgkbMQt1pO+IYntkDrYU7XmPzsRKciZ5CgZyctXWtrXUMNr+ruWrVGqp/3nty0CgarLRxMoE8bomt2BFlCVgoYbyTjR63mydVFuzXhlasCICATNh88frivzOlgfD8fefv+aDXqfWUDXrncKCFadptZuXNsI2lwxf0IJfMWnC8CzDW3EWA43koesZxoLvO73Xa3jOxktwamGquZz4P+ba66Of5rUjAAAAAElFTkSuQmCC",Sz=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"LNG-Cooled Data Centers - Sustainable AI Infrastructure",description:"Cryogenic cooling for AI and quantum computing data centers. Net-zero foundation using LNG cold energy. System design and engineering by Ark AI International."}),a.jsx(ut,{backgroundImage:jz,title:"LNG-Cooled Data Centers"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsx("img",{src:kz,alt:"LNG-Cooled Data Centers Diagram",className:"w-full"})}),a.jsx(me,{children:a.jsxs("div",{children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"LNG-Cooled Data Centers"}),a.jsx("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Envision a future where AI and quantum computing flourish on a sustainable, net-zero foundation. By harnessing the power of cryogenic technology and untapped cooling energy, we're transforming data centers and advancing the next era of intelligent innovation."}),a.jsxs("p",{className:"mb-6 leading-relaxed",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:[a.jsx("a",{href:"https://arkai-intl.com/",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",style:{color:"#00afef"},children:"Ark AI International"}),", a subsidiary of Corban Energy Group, offers:"]}),a.jsxs("ul",{className:"space-y-2 mb-8",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:"Cryo-cooling System Design"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:"Custom Engineering for Data Centers"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:"Performance Monitoring & Technical Support"})]})]}),a.jsx("a",{href:"https://arkai-intl.com/",target:"_blank",rel:"noopener noreferrer",className:"inline-block",children:a.jsx("img",{src:_z,alt:"Ark AI International",className:"h-16"})})]})})]})})})]}),Nz="/assets/hero-cng-gkmx3Nj6.png",Cz="/assets/cng-refuel-wycW4R2c.jpg",Tz="/assets/cng-build-1-DVKicwd3.png",Ez="/assets/cng-freedom-fuel-DLc2nSdS.jpg",Az="/assets/cng-geo-m-full-B81AJKpL.png",Pz="/assets/cng-geo-aii-full-Wmc7y3dC.png",Rz="/assets/cng-geo-bii-full-C3MY0II5.png",Oz="/assets/cng-geo-c-full-C2E9Zypk.png",Iz="/assets/cng-geo-d-full-BiOQ8onG.png",Dz="/assets/cng-dispenser-full-KmcMKSKB.png",Mz=[{name:"GEO-M Plug and play!",image:Az},{name:"GEO-AII",image:Pz},{name:"GEO-BII",image:Rz},{name:"GEO-C2&C4",image:Oz},{name:"GEO-D2&D4",image:Iz},{name:"Dispenser",image:Dz}],Lz=()=>a.jsxs(Pe,{children:[a.jsx(Ee,{title:"CNG Fueling Stations - Design, Construction & Equipment",description:"Complete CNG fueling station solutions with 40+ years of experience. Industrial compressors, dispensers, gas dryers, and storage tanks. 1,400+ stations worldwide."}),a.jsx(ut,{backgroundImage:Nz,title:"CNG"}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsx("img",{src:Cz,alt:"CNG Refueling Station",className:"w-full shadow-lg"})}),a.jsx("div",{children:a.jsxs(me,{contentKey:"body_html",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"CNG"}),a.jsxs("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:[a.jsx("strong",{children:"CNG"}),", as known as ",a.jsx("strong",{children:"Compressed Natural Gas"}),", is made by compressing natural gas (mostly methane) to less than 1% of its volume. When compressed, natural gas can be used in place of gasoline, diesel fuel, and LPG. CNG combustion produces fewer pollutants than other fossil fuels. It also poses less of a threat in the event of spill, as it is non-toxic and lighter than air and disperses quickly. In response to high fuel prices and environmental concerns, conversion from the 'old' fuels to CNG for trucks, buses, and trains is a steadily growing trend in the U.S."]})]})})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start mt-12",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-bold mb-4 text-justify",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif",lineHeight:"1.6"},children:"CEG's CNG engineering team has more than 40 years of experience in designing and constructing complete CNG fueling stations. Our group has manufactured more than 6,000 industrial /CNG compressors, powering some 1,400 CNG filling stations worldwide."}),a.jsxs("p",{className:"leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:["Our services include design, construction, and operations and maintenance support services for ",a.jsx("span",{style:{color:"#00afef"},children:"car and truck fueling stations"}),". We also provide all essential CNG equipment including gas dryers, natural gas compressors, priority panels, storage tanks and dispensers."]})]}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx("img",{src:Tz,alt:"CNG Station Construction",className:"w-full"}),a.jsx("img",{src:Ez,alt:"Freedom Fuel CNG Station",className:"w-full"})]})]})]})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"CNG Compressors & Dispensers"}),a.jsx("p",{className:"mb-6 leading-relaxed max-w-4xl",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Corban Energy Group is the North American partner of Kwang-Shin Co. Ltd., a renowned South Korean compressor manufacturer. Kwang-Shin is one of the world's leaders in heavy duty industrial 
346compressors, and we guarantee the best quality, cost-effective equipment to serve for your needs."}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-x-4 gap-y-2",children:Mz.map((e,t)=>a.jsxs("div",{className:"text-center flex flex-col",children:[a.jsx("div",{className:"bg-white p-2 flex items-end justify-center",style:{minHeight:t<3?"420px":"380px"},children:a.jsx("img",{src:e.image,alt:e.name,className:`w-full h-auto object-contain ${t<3?"max-h-[400px]":"max-h-[360px]"}`})}),a.jsx("h3",{className:"font-bold mt-2",style:{color:"#4a6670",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"22px"},children:e.name})]},e.name))})]})})]}),Fz="/assets/hero-modular-refinery-CqVectIx.jpg",Wz="/assets/modular-refinery-1-DgHqlf1Z.png",$z="/assets/modular-refinery-2-BXxloKpg.jpg",ew=[{title:"Heat Cascade Benefit",items:["System uses heat from tower bottoms and pre-heats incoming crude oil the head exchangers","Reduces crude oil heater size and operating expense","Reduce operating cost"]},{title:"Scalable Capacities",items:["Available in configurations of:","1,200 BPD (50,000 GPD)","2,000 BPD (84,000 GPD)","4,000 BPD (168,000 GPD)","10,000 BPD (420,000 GPD)","Configure to suit mission-critical or regional support needs"]},{title:"No Water Requirement",items:["No steam boiler or water treatment systems","No need for demineralization or de-aeration equipment","Reduces system complexity, power usage, and maintenance"]},{title:"No Pneumatics",items:["No compressors, filters, or air lines required","Lower cost of ownership and simplified operations"]},{title:"Fully Automated PAC-Based Control System",items:["Programmable Automation Controller (PAC)","10-tier security system","Electric actuators (no pneumatics)","Emergency shutdown & remote monitoring capabilities"]},{title:"Rapid Deployment & Mobility",items:["Skid-mounted for easy transport","Rapid setup and commissioning","Relocatable as mission requirements change"]},{title:"Environmental Efficiency",items:["Low emissions, with carbon-capture compatibility","Integrated vapor recovery systems convert waste into usable electricity"]},{title:"On-Site Energy Generation",items:["Produces diesel for internal power generation","Integrated microturbines convert vapor to power, boosting energy independence"]},{title:"Operational Simplicity",items:["Minimal operator training","Easy startup & shutdown","Compact footprint, high fuel output"]},{title:"Cost-Effective & Mission-Ready",items:["Eliminates reliance on long-haul fuel logistics","Reduces operational and labor costs","Supports uninterrupted operations in remote or contested environments","Enables rapid ROI through fuel savings and deployment efficiency"]}],zz=["Military forward operating bases (FOBs)","Emergency & disaster recovery zones","Remote mining or construction sites","Temporary fuel infrastructure in developing regions","Energy independence for off-grid installations"],Uz=()=>{const[e,t]=m.useState([]),[n,r]=m.useState([]),s=c=>{t(u=>u.includes(c)?u.filter(d=>d!==c):[...u,c])},i=c=>{r(u=>u.includes(c)?u.filter(d=>d!==c):[...u,c])},o=ew.slice(0,5),l=ew.slice(5,10);return a.jsxs(Pe,{hideFooterCTA:!0,children:[a.jsx(Ee,{title:"Modular Refinery Systems - 1,200 to 10,000 BPD Capacity",description:"Scalable, mobile modular refineries for military, remote sites, and disaster relief. Skid-mounted, fully automated, no water or pneumatics required."}),a.jsx(ut,{backgroundImage:Fz,title:"Modular Refinery Solutions",subtitle:"Scalable. Deployable. Self-Sustaining."}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsx("div",{children:a.jsx("img",{src:Wz,alt:"Modular Refinery System",className:"w-full"})}),a.jsx("div",{children:a.jsxs(me,{contentKey:"body_html",children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Introducing Corban's Modular Refinery Systems"}),a.jsxs("p",{className:"mb-6 leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:["Corban Energy Group is proud to introduce our ",a.jsx("strong",{children:"Modular Refinery Solutions"}),"— an innovative line of scalable, mobile, and fully automated refineries engineered for efficiency, simplicity, and rapid deployment."]}),a.jsx("h3",{className:"font-bold mb-3",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Scalable from Field to Full Operations"}),a.jsx("p",{className:"mb-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:a.jsx("strong",{children:"1,200 – 10,000 BPD"})}),a.jsxs("div",{className:"flex gap-4 mb-6",children:[a.jsx("span",{className:"px-4 py-2 bg-gray-100 font-semibold",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px"},children:"1,200 BPD"}),a.jsx("span",{className:"px-4 py-2 bg-gray-100 font-semibold",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px"},children:"5,000 BPD"}),a.jsx("span",{className:"px-4 py-2 bg-gray-100 font-semibold",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"14px",border:"2px s
346olid #e53935"},children:"10,000 BPD"})]}),a.jsx("p",{className:"mb-6 text-sm italic",style:{color:"#666",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"* BPD = Barrel Per Day"}),a.jsxs("p",{className:"leading-relaxed text-justify",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:["These systems are ideal for ",a.jsx("strong",{children:"military operations"}),", ",a.jsx("strong",{children:"remote industrial sites"}),", and ",a.jsx("strong",{children:"disaster relief logistics"}),", offering scalable capacities from ",a.jsx("strong",{children:"1,200 to 10,000 barrels per day"})," (50,000 to 420,000 gallons per day). Built on a ",a.jsx("strong",{children:"skid-mounted, self-sustaining platform"}),", Corban's modular refineries are a game-changer in local fuel production."]})]})})]})})}),a.jsx("section",{className:"py-12",style:{backgroundColor:"#fff"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Why Choose Corban Modular Refineries?"}),a.jsx("p",{className:"leading-relaxed",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:"Our proprietary modular refinery design eliminates traditional complexity — no water systems, no pneumatic system, and minimal training required — while maximizing fuel output, mobility, and return on investment."})]})}),a.jsx("section",{className:"py-8",style:{backgroundColor:"#e8e8e8"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-6",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Key Features & Benefits"}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[a.jsx("div",{className:"space-y-3",children:o.map((c,u)=>a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>s(u),className:"w-full flex items-center gap-3 px-4 py-3 text-left transition-colors",style:{backgroundColor:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:[a.jsx("span",{className:"flex-shrink-0 text-white",children:e.includes(u)?a.jsx(hc,{size:16,strokeWidth:3}):a.jsx(zr,{size:16,strokeWidth:3})}),a.jsx("span",{className:"font-semibold text-white",style:{fontSize:"15px"},children:c.title})]}),e.includes(u)&&a.jsx("div",{className:"px-4 py-4 bg-white",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:a.jsx("ul",{className:"space-y-2",children:c.items.map((d,f)=>a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:d})]},f))})})]},u))}),a.jsx("div",{className:"space-y-3",children:l.map((c,u)=>a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>i(u),className:"w-full flex items-center gap-3 px-4 py-3 text-left transition-colors",style:{backgroundColor:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:[a.jsx("span",{className:"flex-shrink-0 text-white",children:n.includes(u)?a.jsx(hc,{size:16,strokeWidth:3}):a.jsx(zr,{size:16,strokeWidth:3})}),a.jsx("span",{className:"font-semibold text-white",style:{fontSize:"15px"},children:c.title})]}),n.includes(u)&&a.jsx("div",{className:"px-4 py-4 bg-white",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:a.jsx("ul",{className:"space-y-2",children:c.items.map((d,f)=>a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:d})]},f))})})]},u))})]})]})}),a.jsx("section",{className:"py-12",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-4",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Designed for Strategic Readiness"}),a.jsxs("p",{className:"leading-relaxed",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px",lineHeight:"1.7"},children:["Built specifically with ",a.jsx("strong",{children:"military applications"})," in mind, Corban Modular Refineries enhance strategic autonomy. Bases can produce their own fuel supply, remain operational during supply chain disruptions, and even ",a.jsx("strong",{children:"support regional fuel hubs"})," for surrounding facilities."]})]})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-xl md:text-2xl font-bold mb-6",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Applications"}),a.jsx("ul",{className:"space-y-3",children:zz.map((c,u)=>a.jsxs("li",{className:"flex items-start gap-2",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif",fontSize:"15px"},children:[a.jsx("span",{style:{color:"#00afef"},children:"•"}),a.jsx("span",{children:c})]},u))})]}),a.jsx("div",{children:a.jsx("img",{src:$z,alt:"Refinery System Application",className:"w-full"})})]})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#fff"},children:a.jsxs("div",{className:"container mx-auto px-4 lg:px-8 text-center",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Need a Custom Configuration? Let's Talk."}),a.jsxs("p",{className:"text-lg mb-8 max-w-3xl mx-auto",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:["Whether you need a small 1,200 BPD refinery for a remote site or a 10,000 BPD system to support military operations, Corban Energy Group can engineer a ",a.jsx("strong",{children:"tailored, scalable solution"})," for your exact requirements."]}),a.jsx(K,{to:"/contact",className:"inline-block px-8 py-3 font-semibold transition-colors hover:opacity-90",style:{backgroundColor:"#00afef",color:"#fff",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"Contact Us Today"})]})})]})},Bz=()=>{const e=va(),t=(e==null?void 0:e.h1_tag)||"Privacy and Other Policies";return a.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:t})},Gz=()=>
346{const e=[{name:"Accessibility Policy",path:"/policies/accessibility"},{name:"Anti-bribery and Corruption Policy",path:"/policies/anti-bribery"},{name:"Cookie Policy",path:"/policies/cookies"},{name:"Corporate Social Responsibility Policy",path:"/policies/csr"},{name:"Disclaimer Page",path:"/policies/disclaimer"},{name:"Environmental Management Policy",path:"/policies/environmental"},{name:"Equality, Diversity, and Inclusion Policy",path:"/policies/edi"},{name:"Privacy Policy",path:"/policies/privacy"}];return a.jsxs(Pe,{children:[a.jsx(Ee,{title:"Privacy and Corporate Policies Overview",description:"Review Corban Energy Group's corporate policies including privacy, accessibility, environmental management, anti-bribery, and equality and diversity policies."}),a.jsx("section",{className:"relative h-24 md:h-32 flex items-center justify-center bg-[#1a3a4a]",children:a.jsx("div",{className:"relative z-10 container mx-auto px-4 lg:px-8 text-center",children:a.jsx(Bz,{})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsx("div",{className:"max-w-3xl mx-auto",children:a.jsxs(me,{contentKey:"body_html",children:[a.jsx("p",{className:"text-lg mb-8",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:"This is an overview of a number of the policies Corban Energy Group has instituted for the well-being of its customers, vendors, and team."}),a.jsx("ul",{className:"space-y-4 mb-8",children:e.map(t=>a.jsx("li",{children:a.jsx(K,{to:t.path,className:"text-lg hover:underline",style:{color:"#00afef",fontFamily:"'Titillium Web', Arial, sans-serif"},children:t.name})},t.path))}),a.jsxs("p",{className:"text-base",style:{color:"#333",fontFamily:"'Titillium Web', Arial, sans-serif"},children:["If you have any questions about any of these policies, please do not hesitate to reach out directly to us through our"," ",a.jsx(K,{to:"/contact",className:"hover:underline",style:{color:"#00afef"},children:"Contact Us"})," ","page."]})]})})})})]})},wa=({title:e,description:t,children:n})=>{const r=va(),s=(r==null?void 0:r.h1_tag)||e;return a.jsxs(Pe,{children:[a.jsx(Ee,{title:e,description:t}),a.jsx("section",{className:"relative h-24 md:h-32 flex items-center justify-center bg-[#1a3a4a]",children:a.jsx("div",{className:"relative z-10 container mx-auto px-4 lg:px-8 text-center",children:a.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-white",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:s})})}),a.jsx("section",{className:"py-16",style:{backgroundColor:"#f2f2f2"}
346,children:a.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:a.jsxs("div",{className:"max-w-4xl mx-auto prose prose-lg",style:{fontFamily:"'Titillium Web', Arial, sans-serif"},children:[a.jsx(me,{children:n}),a.jsx("div",{className:"mt-12 pt-8 border-t border-gray-300",children:a.jsx(K,{to:"/policies",className:"hover:underline",style:{color:"#00afef"},onClick:()=>window.scrollTo(0,0),children:"← Back to All Policies"})})]})})})]})},Hz=()=>a.jsxs(wa,{title:"Web Accessibility Policy - WCAG 2.1 AA Compliance",description:"Corban Energy Group's commitment to digital accessibility. We follow WCAG 2.1 AA standards and ADA best practices to ensure equal access for all users.",children:[a.jsx("p",{className:"text-lg mb-6",style:{color:"#333"},children:"At Corban Energy Group, we're committed to accessibility. It is our policy to ensure that everyone, including persons with disabilities, has full and equal access to our digital offerings."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"1. Website Accessibility Standards"}),a.jsx("p",{style:{color:"#333"},children:"Corban Energy Group strives to conform to the following accessibility standards: Web Content Accessibility Guidelines (WCAG) 2.1 AA."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"2. Website Compatibility"}),a.jsx("p",{style:{color:"#333"},children:"Corban Energy Group is compatible with most major Internet browsers including Chrome, FireFox, and Safari. Internet Explorer and older browser versions may lead to suboptimal performance."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"3. Accessibility Coordinator"}),a.jsx("p",{style:{color:"#333"},children:"A Web Accessibility Coordinator has been secured to help Corban Energy Group meet the objectives of this policy."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"4. Distribution of Accessibility Policy"}),a.jsx("p",{style:{color:"#333"},children:"This Corban Energy Group accessibility policy has been distributed to all personnel who work with web content. This includes the website developers, writers, editors, and designers."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"5. Website Accessibility Consultant"}),a.jsx("p",{style:{color:"#333"},children:"Corban Energy Group has retained an independent website expert consultant to conduct annual reviews of our website."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"6. Website Accessibility Testing"}),a.jsx("p",{style:{color:"#333"},children:"Corban Energy Group engages in regular automated testing and manual audits and user testing to assess and improve accessibility."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"7. Training"}),a.jsx("p",{style:{color:"#333"},children:"Corban Energy Group web content personnel undergo mandatory bi-annual accessibility training."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"8. Compliance"}),a.jsx("p",{style:{color:"#333"},children:"Through genuine effort and commitment including testing, audits, consulting, and remediation, we are working to have Corban Energy Group adhere to best practices for compliance with the Americans with Disabilities Act (ADA)."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"9. Website Accessibility Resources"}),a.jsx("p",{style:{color:"#333"},children:"For more information on web accessibility and legal requirements, here are helpful resources:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-2",style:{color:"#333"},children:[a.jsx("li",{children:a.jsx("a",{href:"https://ada.gov/",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",style:{color:"#00afef"},children:"ADA.gov"})}),a.jsx("li",{children:a.jsx("a",{href:"https://section508.gov/",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",style:{color:"#00afef"},children:"Section508.gov"})}),a.jsx("li",{children:a.jsx("a",{href:"https://accessible.org/",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",style:{color:"#00afef"},children:"Accessible.org"})}),a.jsx("li",{children:a.jsx("a",{href:"https://www.w3.org/WAI/",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",style:{color:"#00afef"},children:"W3.org/WAI"})})]}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"10. We invite your feedback"}),a.jsxs("p",{style:{color:"#333"},children:["We welcome your feedback on your experience with Corban Energy Group. Email us at"," ",a.jsx("a",{href:"mailto:[email protected]",className:"hover:underline",style:{color:"#00afef"},children:"[email protected]"})," ","with any questions or comments you have."]})]}),qz=()=>a.jsxs(wa,{title:"Anti-Bribery and Corruption Policy",description:"Corban Energy Group's anti-bribery policy establishes ethical principles for all business dealings. We prohibit bribery and corruption in all forms.",children:[a.jsx("p",{className:"text-sm italic mb-6",style:{color:"#666"},children:"Last updated: October 24, 2023"}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Purpose, Scope, and Responsibility"}),a.jsx("p",{style:{color:"#333"},children:"This Anti-Bribery and Corruption Policy establishes principles that govern the actions of the Corban Energy Group team. It also explicitly states our intention and corporate obligation to act honestly and ethically in all of our business dealings."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"This policy applies to all Corban Energy Group employees. The CEO of Corban Energy Group is the final authority for this policy. He oversees the assessment of bribery and corruption risks across the entire company, as well as evaluating controls and policy effectiveness regarding any and all anti-bribery and corruption (AB&C) risks."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Policy Statement"}),a.jsx("p",{style:{color:"#333"},children:"Bribery and corruption are explicitly forbidden by our company. They are illegal and can expose both any complicit employee and the entire company to fines and penalties, including imprisonment and reputational damage."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Bribery and corruption are in direct conflict with our company mission and values. They are also incompatible with the implicit and explicit promises we have made to our customers."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Just to be clear, at Corban Energy Group, bribery is absolutely never permitted. We will not seek to directly or indirectly influence others by offering, paying, or receiving bribes or any other means considered unethical, illegal, or harmful to our reputation."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"All employees and representatives of Corban Energy Group are expected to decline any opportunity that would place our ethical principles and/or reputation at risk."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"What is Bribery and Corruption?"}),a.jsx("p",{style:{color:"#333"},children:"Bribery is an attempt to make someone do something for you by giving the person money, presents, or something else that he or she wants."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Items that can be used in bribery transactions include but are not limited to:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-2",style:{color:"#333"},children:[a.jsx("li",{children:"Cash, cash equivalents (including credit or other gift certificates), stock, personal property, and assumption or forgiveness of a debt."}),a.jsx("li",{children:"Gifts, meals, travel, and entertainment."}),a.jsx("li",{children:"Political contributions made at someone's request as an exchange."}),a.jsx("li",{children:"Charitable contributions made at someone's request as an exchange."})]}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Corruption is defined as illegal, bad, or dishonest behavior, especially by people in positions of power."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"With regards to bribery, corruption has occurred even if:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-2",style:{color:"#333"},children:[a.jsx("li",{children:"What was offered as a bribe does not produce the desired outcome."}),a.jsx("li",{children:"A person agrees to or provides direction for a bribe, but no bribe is ultimately paid out or offered."})]}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Third Parties"}),a.jsx("p",{style:{color:"#333"},children:"Using a third party does not reduce the liability a company has with regard to giving or receiving a bribe. Some common third parties involved in such transactions include consultants, agents, advisors, representatives, contractors, and subcontractors."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"For our part, we commit to clarifying with third parties representing Corban Energy Group that we expect them to comply with our Anti-bribery and Corruption Policy. In some jurisdictions, if a business does not prevent bribery committed on its behalf by a third party, even though no one in the firm had actual knowledge of it, it can be convicted of a crime."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Reporting Violations"}),a.jsx("p",{style:{color:"#333"},children:"All Corban Energy Group team members should seek clarification on any questions or concerns regarding any potentially dubious activities or any lack of clarity regarding this policy or its application."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"If you are offered a bribe by someone who is conducting business with or wants to do business with Corban Energy Group, report it right away to our CEO."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"If you are offered something of value and are uncertain whether you're allowed to accept it, consider simply not accepting it. Alternatively, you can ask at one of our team meetings or email our CEO directly."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Violations can be reported anonymously by using the online customer inquiry form (available on the internet). Our whistleblower policy protects those who act in good faith and disclose concerns."})]}),Vz=()=>a.jsxs(wa,{title:"Cookie Policy - How We Use Tracking Technologies",description:"Learn how Corban Energy Group uses cookies, pixels, and local storage. Understand your choices for managing cookies and browser controls.",children:[a.jsx("p",{className:"text-lg mb-6",style:{color:"#333"},children:"At Corban Energy Group, we think it's critical to be clear and upfront about how we gather and utilize data regarding you. This Cookie Policy applies to any Corban Energy Group product or service that links to this policy or incorporates it by reference."}),a.jsx("p",{style:{color:"#333"},children:'To help us improve our Services, we use cookies and similar technologies such as pixels, local storage, and mobile ad IDs (collectively referred to in this policy as "cookies") to collect and utilize data as defined in our Privacy Policy ("Services"). All of these activities, as well as our websites, emails, mobile applications and off-site services (such as advertising), are subject to this policy.'}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"This privacy policy is intended to be as transparent as possible, and it includes comprehensive information about how and when we use these technologies."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"You agree to the use of cookies and similar technologies for the purposes stated in this policy if you continue to access or utilize our Services."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"What Technologies Are Used?"}),a.jsx("div",{className:"overflow-x-auto mt-4",children:a.jsxs("table",{className:"w-full border-collapse border border-gray-300",children:[a.jsx("thead",{children:a.jsxs("tr",{className:"bg-gray-100",children:[a.jsx("th",{className:"border border-gray-300 px-4 py-2 text-left font-bold",style:{color:"#333"},children:"Type of Technology"}),a.jsx("th",{className:"border border-gray-300 px-4 py-2 text-left font-bold",style:{color:"#333"},children:"General Description"})]})}),a.jsxs("tbody",{children:[a.jsxs("tr",{children:[a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Cookie"}),a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Cookies are small files that Corban Energy Group saves on your computer. Cookies from us or third-party sources such as our clients, partners, or service providers might be read by any browser who visits our websites."})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Types of Cookies"}),a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"We utilize two sorts of cookies: persistent cookies and session cookies. A persistent cookie is kept for long after your visit and is used for a variety of purposes, such as identifying you as a returning user. A session cookie lasts only as long as the session during which it was generated."})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Pixels"}),a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"A pixel is a tiny picture that may be included within web pages and emails, necessitating a call to our servers in order for the pixel to display. We collect data using pixels when you interact with email content or internet content."})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Local Storage"}),a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Local storage allows a website or program to save data locally on your device(s). Local storage may be used to provide enhanced experiences such as features, remembering preferences, and speeding up site performance."})]})]})]})}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"What Are These Technologies Used For?"}),a.jsx("div",{className:"overflow-x-auto mt-4",children:a.jsxs("table",{className:"w-full border-collapse border border-gray-300",children:[a.jsx("thead",{children:a.jsxs("tr",{className:"bg-gray-100",children:[a.jsx("th",{className:"border border-gray-300 px-4 py-2 text-left font-bold",style:{color:"#333"},children:"Purpose"}),a.jsx("th",{className:"border border-gray-300 px-4 py-2 text-left font-bold",style:{color:"#333"},children:"General Description"})]})}),a.jsxs("tbody",{children:[a.jsxs("tr",{children:[a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Authentication"}),a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Cookies and other technologies are used to identify you when you use our Services. These technologies assist us in providing you with the best information possible and customizing your experience based on your preferences."})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Security"}),a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Cookies and similar technologies are used on our Services to make your interactions more efficient and safer. We utilize cookies to enable and support our security functions, as well as to help us find malicious activity."})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Preferences"}),a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Cookies and similar technologies are used to 
346provide easier forms filling on our Services, as well as features, insights, and tailored content. These technologies are also employed to remember information about your browser and preferences."})]}),a.jsxs("tr",{children:[a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Analytics"}),a.jsx("td",{className:"border border-gray-300 px-4 py-2",style:{color:"#333"},children:"Cookies and similar technologies help us learn how well our Services and plugins perform in various locations. We use these technologies to understand, improve, and research products, features, and services."})]})]})]})}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Your Choices"}),a.jsx("p",{style:{color:"#333"},children:"You may choose whether Corban Energy Group uses cookies and similar technologies in the same way."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Please keep in mind that if you prevent Corban Energy Group from setting cookies and similar technologies, your overall user experience will be less efficient because it will no longer be personalized to you. It may also prevent you from saving customized preferences like login information saved."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Browser Controls"}),a.jsx("p",{style:{color:"#333"},children:"Cookies may be managed in a variety of ways by most browsers, which may be tailored to reflect your consent to the usage of cookies. Furthermore, most browsers give you the option of reviewing and removing cookies, including those from Corban Energy Group."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"What is Do Not Track (DNT)?"}),a.jsx("p",{style:{color:"#333"},children:'DNT is a concept that regulatory agencies like the FTC have encouraged for Internet businesses to develop and implement a solution for allowing users to control their online activity across websites via browser preferences. At this time, Corban Energy Group does not respond to "do not track" browser instructions.'}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Other Helpful Resources"}),a.jsxs("p",{style:{color:"#333"},children:["To learn more about advertisers' use of cookies, please visit"," ",a.jsx("a",{href:"https://www.iab.com/",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",style:{color:"#00afef"},children:"Internet Advertising Bureau (US)"})]})]}),Kz=()=>a.jsxs(wa,{title:"Corporate Social Responsibility Policy",description:"Learn about Corban Energy Group's CSR commitments: 
346inclusive economic opportunities, human rights, environmental sustainability, and earning client trust.",children:[a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Our Commitments"}),a.jsx("p",{style:{color:"#333"},children:"We believe that companies should operate with a strong focus on both the customers and the staff that cares for them."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Supporting Inclusive Economic Opportunities"}),a.jsx("p",{style:{color:"#333"},children:"We are committed to ensuring that economic opportunities remain inclusive, now and in the future. This is regardless of the country, community, business, and people that we work with as well as the team that we hire to operate our services. We promise and ensure equal opportunity that includes those with disabilities and those from different racial and social backgrounds."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Protecting Core Rights"}),a.jsx("p",{style:{color:"#333"},children:"We give unconditional support to the core and fundamental rights of people. Whether this is the defense of democracy, addressing ableism in society and the workplace, human rights, and the systematic racial injustice and inequity that we so often see in the world."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Building A Sustainable Future"}),a.jsx("p",{style:{color:"#333"},children:"We need to be environmentally conscious so that we can all work towards a future that is more sustainable, and even a company like ours can take steps to implement environmental change and reduce our carbon footprint. We are dedicated to the betterment of the environment while also offering state-of-the-art technology that will better the lives of our customers and partners across the country."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Earning The Trust Of Our Clients"}),a.jsx("p",{style:{color:"#333"},children:"The trust and loyalty of our clients, employees, and the communities that we provide service to are one of the most important aspects of our company. We strive to consistently earn and maintain their trust as well as their loyalty. We represent this trust through a strong commitment to privacy, security, and transparency."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Securing The Future"}),a.jsx("p",{style:{color:"#333"},children:"The future is here, and we want to continue to provide safe, reliable, and efficient services as well as serve our employees, clients, and communities to the best of our ability. We promise to always uphold our company policies and strive for a future that is constantly improving."})]}),Yz=()=>a.jsxs(wa,{title:"Website Disclaimer and Terms of Use",description:"Corban Energy Group's website disclaimer covering liability, security, social media terms of use, and external links. Updated October 2023.",children:[a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Website Disclaimer"}),a.jsx("p",{style:{color:"#333"},children:"Corban Energy Group does not guarantee, and is not liable for, the truthfulness, accuracy, or completeness of any information supplied on our website or linked sites."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Corban Energy Group recommends that customers use their own judgment and care when using this website, and that they carefully examine the truthfulness, currency, completeness, and relevance of the information on this site or any linked site."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Website Security"}),a.jsx("p",{style:{color:"#333"},children:"The website of Corban Energy Group has various security measures in place to prevent unauthorized access."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"However, users should be conscious that the internet is a public network that exposes them to the danger of their transactions being seen, intercepted, or changed by third parties. Any software that the user downloads may include computer viruses, disabling codes, worms, or other malfunctions that could cause serious damage to the user's computer and systems."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Website Liability"}),a.jsx("p",{style:{color:"#333"},children:"Corban Energy Group does not warrant or represent that the material on its website is free from any computer virus or any other defects or errors. Corban Energy Group does not accept responsibility for any computer system, softw
346are, or data interference or damage incurred as a result of the use of this website or its usage."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Users are advised to take all necessary and sufficient precautions to guarantee that whatever is selected from this site is virus-free and free of other contamination that may impact or harm their computer system, software, or data. Corban Energy Group is not liable to users of the material on this website for any loss or damage, however, caused, as a result of their use of the material."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Social Media Terms of Use"}),a.jsx("p",{style:{color:"#333"},children:"Corban Energy Group uses a number of social media services to complement its marketing activities. These include services such as Facebook, LinkedIn, and YouTube."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Corban Energy Group's use of social media platforms will vary considerably over time. The following Terms of Use apply to all social media services used by Corban Energy Group at any given moment, regardless of whether they are mentioned on this page."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"User Content License"}),a.jsx("p",{style:{color:"#333"},children:"All User Content submitted on Corban Energy Group's social media platforms will be treated as non-proprietary and non-confidential. Corban Energy Group does not assert any intellectual property rights to the User Content. Corban Energy Group, however, may publicly display and/or reproduce any user content in any media form or expression without restriction."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Social Media Liability"}),a.jsx("p",{style:{color:"#333"},children:"Users are solely responsible for the content they submit, express, or post on Corban Energy Group's social media pages unless it is material supplied by Corban Energy Group. The content, views, opinions, and/or responses to questions or views uploaded do not necessarily reflect Corban Energy Group's point of view."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Corban Energy Group is not liable for and does not guarantee the truth, accuracy, or quality of User Content submitted or posted on their social media platforms."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Social Media Acceptable Use"}),a.jsx("p",{style:{color:"#333"},children:"Corban Energy Group is opposed to material that is discriminatory, hateful, or threatening, as well as actions that may defame, insult, humiliate, or intimidate others."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Users of Corban Energy Group's social media platforms agree not to:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-2",style:{color:"#333"},children:[a.jsx("li",{children:"abuse, harass or threaten others"}),a.jsx("li",{children:"use hateful, insulting, or provocative language"}),a.jsx("li",{children:"use offensive or obscene language"}),a.jsx("li",{children:"post material that infringes the intellectual property rights of others"}),a.jsx("li",{children:"incite or encourage any conduct that may constitute a criminal or civil offense"}),a.jsx("li",{children:"post comments promoting personal, professional, or commercial interests"}),a.jsx("li",{children:"include links to websites or any email addresses"})]}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Links to External Websites"}),a.jsx("p",{style:{color:"#333"},children:"Corban Energy Group's social media sites may include links to websites not operated by Corban Energy Group."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"External links to other websites and social media profiles not maintained by Corban Energy Group are provided as a service to customers. Corban Energy Group has no control over the content of linked websites, or any changes that may take place thereto."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Providing links to outside websites does not imply an endorsement or a recommendation of any materials on those sites, or of any third-party goods or services offered by, from, or through those sites."}),a.jsx("p",{className:"mt-8 text-sm italic",style:{color:"#666"},children:"Last Updated: October 24, 2023"})]}),Qz=()=>a.jsxs(wa,{title:"Environmental Management Policy - ISO 14001",description:"Corban Energy Group's environmental policy commits to sustainability, pollution prevention, and ISO 14001 standards. Learn our environmental goals.",children:[a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Our Statement"}),a.jsx("p",{style:{color:"#333"},children:"We are committed to ensuring safe and responsible environmental management and application, leading to improved sustainability and the protection of the natural environment within the area of our workplace. We recognize and accept the moral and legal responsibility we have to ensure that our business activities, products, and services are designed in such a way that the environment is protected within the communities we operate in. We also acknowledge and embrace our obligation to ensure that our operations do not place the natural environment or the local community at any potential risk of harm."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Policy Goals"}),a.jsx("p",{style:{color:"#333"},children:"We promise to ensure and uphold environmental improvement values and also strive for the prevention of pollution. In order to achieve this, we will c
346ontinue working with our clients and employees as well as the local community. Some of our objectives to reach this goal will be:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-4",style:{color:"#333"},children:[a.jsx("li",{children:"develop, implement and maintain a management system that addresses the requirements of ISO 14001"}),a.jsx("li",{children:"reduce waste through new work practices and the implementation of recycling"}),a.jsx("li",{children:"minimize environmental impacts by reducing the number of polluting substances produced by our operations, activities, products or services"}),a.jsx("li",{children:"minimize the impact of our operations on the local community"}),a.jsx("li",{children:"increase the use of environmentally acceptable materials, equipment, and technology in place of those which are considered harmful to the environment"}),a.jsx("li",{children:"ensure that our suppliers and employees follow acceptable environmental policies"}),a.jsx("li",{children:"actively promote environmental awareness among workers, clients, customers, and the general public"})]}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Our Responsibilities"}),a.jsx("p",{style:{color:"#333"},children:"We understand and accept that the core responsibility of environmental sustainability lies with management. They will be held accountable for the implementation of our environmental policy. Their responsibilities include (but are not limited to):"}),a.jsxs("ul",{className:"list-disc pl-6 mt-4",style:{color:"#333"},children:[a.jsx("li",{children:"ensuring that all environmental policies and procedures are implemented correctly"}),a.jsx("li",{children:"establishing objectives and targets to ensure continued improvement aimed at the elimination of waste, pollution, and environmental harm – all of which are measurable"}),a.jsx("li",{children:"encouraging consultation and cooperation between management and employees in matters which may affect or impact the environment"}),a.jsx("li",{children:"providing resources to meet these environmental commitments"})]}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Employee Responsibilities"}),a.jsx("p",{style:{color:"#333"},children:"We understand that our employees also hold some responsibility for their environmental impact within the workplace and will also have to follow procedures to ensure that it is kept minimal. This includes, but is not limited to:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-4",style:{color:"#333"},children:[a.jsx("li",{children:"following all environmental policies and procedures"}),a.jsx("li",{children:"recognizing and reporting hazards that could have an impact on the health and well-being of the environment"})]}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"A Promise for the Future"}),a.jsx("p",{style:{color:"#333"},children:"We promise to consistently revise and uphold our policy standards, ensuring that they reflect the current needs of the environment, the local area, and the workplace so that we can continue to ensure that we are making a positive impact."}),a.jsx("p",{className:"mt-8 text-sm italic",style:{color:"#666"},children:"Effective as of October 24, 2023"})]}),Jz=()=>a.jsxs(wa,{title:"Equality, Diversity, and Inclusion Policy",description:"Corban Energy Group's EDI policy ensures a workplace free from discrimination. We uphold the Equality Act 2010 and protect all characteristics.",children:[a.jsx("p",{className:"text-lg mb-6",style:{color:"#333"},children:"At Corban Energy Group, we are dedicated to providing a workplace that harnesses equality, diversity, and inclusion as part of our foundational values. This way, we are able to ensure our success when striving to become a high-performing institution that provides a positive and supportive culture for all of our employees – allowing them to feel both empowered and respected within the workplace."}),a.jsx("p",{style:{color:"#333"},children:"In order to achieve and maintain an environment of equality, diversity, and inclusion, we require a firm commitment to action so that we can continue to build an inclusive environment where equal opportunity is available to everyone. We want it to be an environment where diversity is valued among staff, and where every member can reach their full potential within their career without fear of harassment, prejudice, or discrimination. At Corban Energy Group, we promise to ensure everyone who works here feels welcome, comfortable, and accepted."}),a.jsx("p",{className:"mt-6",style:{color:"#333"},children:"In order to properly embed these qualities in our workplace, we work alongside the Equality Act 2010 to implement the correct procedures. The equality duty covers the nine protected characteristics: age, disability, gender reassignment, pregnancy and maternity, race, religion or belief, sex, and sexual orientation. As a result, we have due regard to:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-4",style:{color:"#333"},children:[a.jsx("li",{children:"Eliminate unlawful discrimination, harassment, victimization, and other conduct prohibited by the Act."}),a.jsx("li",{children:"Ensure equality of opportunity between those who share a protected characteristic and those who do not."}),a.jsx("li",{children:"Promote and nurture good relations between those who share a protected characteristic and those who do not."})]}),a.jsx("p",{className:"mt-6",style:{color:"#333"},children:"We expect all employees and members of management who are working for Corban Energy Group to behave in a manner that is respectful, considerate, and courteous. They must conduct themselves in an acceptable and professional manner at all times, regardless of whether they are interacting with those who have protected characteristics or those who do not."}),a.jsx("p",{className:"mt-6",style:{color:"#333"},children:"We deem unacceptable behavior as bullying, harassment, victimization, and discrimination. This includes, but is not limited to, protected characteristics that are covered by the Equality Act 2010. Unacceptable behavior in any form will not be tolerated, and all allegations will be investigated and taken seriously. They will be dealt with under relevant procedures by senior members."}),a.jsx("p",{className:"mt-6",style:{color:"#333"},children:"We have full accountability for compliance with the Equality Act 2010, and we are able to ensure that we demonstrate this compliance by doing the following:"}),a.jsxs("ul",{className:"list-disc pl-6 mt-4",style:{color:"#333"},children:[a.jsx("li",{children:"Removing disadvantages suffered by people due to their protected characteristics"}),a.jsx("li",{children:"Meeting the needs of people from protected groups where these are different from the needs of other people"}),a.jsx("li",{children:"Encouraging people from protected groups to participate in public life or activities where their participation tends to be low"}),a.jsx("li",{children:"Removing barriers to inclusion to create an inclusive work environment where people feel welcomed, valued, and supported"})]})]}),Zz=()=>a.jsxs(wa,{title:"Privacy Policy - Data Collection & Protection",description:"Corban Energy Group's privacy policy explains how we 
346collect, use, and protect your personal information. Learn about cookies, log data, and security practices.",children:[a.jsxs("p",{className:"text-lg mb-6",style:{color:"#333"},children:["Corban Energy Group operates"," ",a.jsx("a",{href:"https://www.corbanenergygroup.com",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",style:{color:"#00afef"},children:"https://www.corbanenergygroup.com"})]}),a.jsx("p",{style:{color:"#333"},children:"This page informs you of our privacy policies and practices for collecting, using, and sharing users' personal information on the Site. Your Personal Information is used solely to provide and improve the Site."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"This privacy statement explains how and when information is collected from you through the Site. You agree to the gathering and usage of your data in accordance with this policy if you use the Site."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Information Collection And Use"}),a.jsx("p",{style:{color:"#333"},children:'When you visit our Site, we may collect personally identifying information from you that can be used to contact or identify you. Personally identifiable information collected on this site may include, but is not limited to, your name ("Personal Information").'}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Log Data"}),a.jsx("p",{style:{color:"#333"},children:'We collect information about your browser (or other devices) when you visit our website (also known as "Log Data").'}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Our servers automatically collect and store certain data in Log Files. This information may include your computer's Internet Protocol (IP) address, browser type, browser version, the pages of our Site that you view, the time and date of your visit, the time spent on these pages, and other metrics."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"We may also employ third-party services such as Google Analytics, which collect, monitor, and analyze data."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Communications"}),a.jsx("p",{style:{color:"#333"},children:"We may send you emails and other communications with news, marketing or promotional materials, and other information if you give us your Personal Information."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Cookies"}),a.jsx("p",{style:{color:"#333"},children:"Cookies are small files with limited information that may include an anonymous unique identifier. Cookies are transferred to your browser from a website and saved on your computer's hard drive."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Like many other websites, this website also uses cookies to collect information. You may choose to reject all cookies or notify your browser when a cookie is being sent. If you do not want to accept cookies, you will be unable to access certain elements of our Site."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Security"}),a.jsx("p",{style:{color:"#333"},children:"We take the security of your Personal Information seriously, but keep in mind that no method of transmission over the Internet or electronic storage is completely secure."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"Although we make every effort to use industry standard procedures to safeguard your Personal Information, we cannot promise its absolute security."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Changes To This Privacy Policy"}),a.jsx("p",{style:{color:"#333"},children:"This Privacy Policy is effective as of October 24, 2023, and will remain in effect except with respect to any changes in its provisions in the future, which will be in effect immediately once they are posted on this page."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"The Personal Information we collect is subject to the terms of our Privacy Policy, which may be updated or changed at any time without notice. You should review our Privacy Policy on a regular basis since it is your legal agreement with us. We reserve the right to modify or alter our Privacy Policy at any time."}),a.jsx("p",{className:"mt-4",style:{color:"#333"},children:"If we make any material changes to this Privacy Policy, we will notify you via either the email address you have provided or by prominently posting a notice on our website."}),a.jsx("h2",{className:"text-xl font-bold mt-8 mb-4",style:{color:"#00afef"},children:"Contact Us"}),a.jsxs("p",{style:{color:"#333"},children:["If you have any questions about this Privacy Policy, please contact us through our"," ",a.jsx(K,{to:"/contact",className:"hover:underline",style:{color:"#00afef"},children:"Contact Us"})," ","page."]}),a.jsx("p",{className:"mt-8 text-sm italic",style:{color:"#666"},children:"Effective as of October 24, 2023"})]}),Xz=()=>{const[e,t]=m.useState(""),[n,r]=m.useState(""),[s,i]=m.useState(!1),[o,l]=m.useState(!1),[c,u]=m.useState(!1),d=ya(),{toast:f}=On(),h=async w=>{w.preventDefault(),i(!0);try{const{data:y,error:b}=await ce.auth.signInWithPassword({email:e,password:n});if(b)throw b;const{data:x,error:v}=await ce.rpc("is_admin",{_user_id:y.user.id});if(v||!x)throw await ce.auth.signOut(),new Error("You do not have admin access.");f({title:"Login successful",description:"Welcome to the Admin CMS"}),d("/siteadmin/dashboard")}catch(y){f({title:"Login failed",description:y.message,variant:"destructive"})}finally{i(!1)}},p=async()=>
346{if(!e){f({title:"Email required",description:"Please enter your email address above, then click Forgot password.",variant:"destructive"});return}u(!0);try{const{error:w}=await ce.auth.resetPasswordForEmail(e,{redirectTo:`${window.location.origin}/reset-password`});if(w)throw w;f({title:"Reset email sent",description:`If an account exists for ${e}, a password reset link has been sent.`})}catch(w){f({title:"Could not send reset email",description:w.message,variant:"destructive"})}finally{u(!1)}};return a.jsxs(a.Fragment,{children:[a.jsx(Ee,{title:"Admin Login | Corban Energy Group",description:"Admin login for Corban Energy Group content management system.",noIndex:!0}),a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 to-slate-800",children:a.jsxs("div",{className:"w-full max-w-md p-8 space-y-8 bg-white rounded-lg shadow-2xl",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"mx-auto w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mb-4",children:a.jsx(Vl,{className:"w-8 h-8 text-primary"})}),a.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Admin Login"}),a.jsx("p",{className:"mt-2 text-sm text-gray-600",children:"Corban Energy Group CMS"})]}),a.jsxs("form",{onSubmit:h,className:"space-y-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{htmlFor:"email",children:"Email Address"}),a.jsxs("div",{className:"relative",children:[a.jsx(Tf,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),a.jsx(Ve,{id:"email",type:"email",value:e,onChange:w=>t(w.target.value),placeholder:"[email protected]",className:"pl-10",required:!0})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{htmlFor:"password",children:"Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(Vl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),a.jsx(Ve,{id:"password",type:o?"text":"password",value:n,onChange:w=>r(w.target.value),placeholder:"••••••••",className:"pl-10 pr-10",required:!0}),a.jsx("button",{type:"button",onClick:()=>l(w=>!w),"aria-label":o?"Hide password":"Show password",className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 focus:outline-none",children:o?a.jsx(Id,{className:"w-5 h-5"}):a.jsx(Dd,{className:"w-5 h-5"})})]}),a.jsx("div",{className:"flex justify-end",children:a.jsx("button",{type:"button",onClick:p,disabled:c,className:"text-sm text-primary hover:underline disabled:opacity-50",children:c?"Sending...":"Forgot password?"})})]}),a.jsx(ye,{type:"submit",className:"w-full",disabled:s,children:s?"Signing in...":"Sign In"})]}),a.jsx("div",{className:"text-center",children:a.jsx("a",{href:"/",className:"text-sm text-primary hover:underline",children:"← Back to Website"})})]})})]})},eU="/assets/logo-CznbjNFI.png",tU=({activeTab:e,setActiveTab:t})=>{const n=[{id:"pages",label:"Pages",icon:V3},{id:"users",label:"Admin Users",icon:nP},{id:"contacts",label:"Contact Form Submissions",icon:Tf},{id:"redirects",label:"Redirect Logs",icon:tP},{id:"aliases",label:"URL Aliases",icon:K3},{id:"report",label:"Weekly Report",icon:B3},{id:"blocked",label:"Blocked Emails",icon:xk},{id:"backup",label:"Backup",icon:_p},{id:"settings",label:"Settings",icon:eP}];return a.jsxs("aside",{className:"w-64 bg-white border-r border-slate-200 flex flex-col",children:[a.jsxs("div",{className:"p-4 border-b border-slate-200",children:[a.jsx("img",{src:eU,alt:"Corban Energy Group",className:"h-10 w-auto"}),a.jsx("p",{className:"text-xs text-slate-500 mt-2",children:"Content Management System"})]}),a.jsx("nav",{className:"flex-1 p-4",children:a.jsx("ul",{className:"space-y-2",children:n.map(r=>a.jsx("li",{children:a.jsxs("button",{onClick:()=>t(r.id),className:ue("w-full flex items-center gap-3 px-4 py-3 rounded-lg text-left transition-colors",e===r.id?"bg-primary text-white":"text-slate-700 hover:bg-slate-100"),children:[a.jsx(r.icon,{className:"w-5 h-5"}),r.label]})},r.id))})}),a.jsx("div",{className:"p-4 border-t border-slate-200",children:a.jsxs("p",{className:"text-xs text-slate-500",children:["© ",new Date().getFullYear()," Corban Energy Group"]})})]})},nU=()=>{const[e,t]=m.useState([]),[n,r]=m.useState(!0),[s,i]=m.useState(null),[o,l]=m.useState(!1),[c,u]=m.useState(!1),{toast:d}=On(),[f,h]=m.useState({page_slug:"",title:"",h1_tag:"",content:"{}",meta_title:"",meta_description:"",meta_keywords:""});m.useEffect(()=>{p()},[]);const p=async()=>{try{const{data:g,error:j}=await ce.from("page_content").select("*").order("page_slug");if(j)throw j;t(g||[])}catch(g){d({title:"Error fetching pages",description:g.message,variant:"destructive"})}finally{r(!1)}},w=async()=>{try{const{data:{user:g}}=await ce.auth.getUser(),{error:j}=await ce.from("page_content").insert({page_slug:f.page_slug,title:f.title,h1_tag:f.h1_tag||null,content:JSON.parse(f.content||"{}"),meta_title:f.meta_title||null,meta_description:f.meta_description||null,meta_keywords:f.meta_keywords||null,created_by:g==null?void 0:g.id,updated_by:g==null?void 0:g.id});if(j)throw j;d({title:"Page created successfully"}),u(!1),v(),p()}catch(g){d({title:"Error creating page",description:g.message,variant:"destructive"})}},y=async()=>
346{if(s)try{const{data:{user:g}}=await ce.auth.getUser(),{error:j}=await ce.from("page_content").update({page_slug:f.page_slug,title:f.title,h1_tag:f.h1_tag||null,content:JSON.parse(f.content||"{}"),meta_title:f.meta_title||null,meta_description:f.meta_description||null,meta_keywords:f.meta_keywords||null,updated_by:g==null?void 0:g.id}).eq("id",s.id);if(j)throw j;d({title:"Page updated successfully"}),l(!1),i(null),v(),p()}catch(g){d({title:"Error updating page",description:g.message,variant:"destructive"})}},b=async g=>{if(confirm(`Delete "${g.title}"? This cannot be undone.`))try{const{error:j}=await ce.from("page_content").delete().eq("id",g.id);if(j)throw j;d({title:"Page deleted successfully"}),p()}catch(j){d({title:"Error deleting page",description:j.message,variant:"destructive"})}},x=g=>{i(g),h({page_slug:g.page_slug,title:g.title,h1_tag:g.h1_tag||"",content:JSON.stringify(g.content,null,2),meta_title:g.meta_title||"",meta_description:g.meta_description||"",meta_keywords:g.meta_keywords||""}),l(!0)},v=()=>{h({page_slug:"",title:"",h1_tag:"",content:"{}",meta_title:"",meta_description:"",meta_keywords:""})};return n?a.jsx("div",{className:"flex items-center justify-center p-8",children:a.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("h2",{className:"text-lg font-semibold",children:"Manage Pages"}),a.jsxs(_c,{open:c,onOpenChange:u,children:[a.jsx(JS,{asChild:!0,children:a.jsxs(ye,{onClick:()=>{v(),u(!0)},children:[a.jsx(zr,{className:"w-4 h-4 mr-2"}),"Add Page"]})}),a.jsxs(Mo,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[a.jsx(Lo,{children:a.jsx(Fo,{children:"Create New Page"})}),a.jsx(tw,{formData:f,setFormData:h,onSubmit:w,submitLabel:"Create Page"})]})]})]}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm overflow-hidden",children:a.jsxs("table",{className:"w-full",children:[a.jsx("thead",{className:"bg-slate-50 border-b",children:a.jsxs("tr",{children:[a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Page Slug"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Title"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"H1 Tag"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Meta Title"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Updated"}),a.jsx("th",{className:"text-right px-6 py-3 text-sm font-medium text-slate-600",children:"Actions"})]})}),a.jsx("tbody",{className:"divide-y",children:e.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:6,className:"px-6 py-8 text-center text-slate-500",children:'No pages created yet. Click "Add Page" to create your first page.'})}):e.map(g=>a.jsxs("tr",{className:"hover:bg-slate-50",children:[a.jsx("td",{className:"px-6 py-4 text-sm font-mono text-slate-700",children:g.page_slug}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-900",children:g.title}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-600",children:g.h1_tag||"-"}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-600",children:g.meta_title||"-"}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-500",children:new Date(g.updated_at).toLocaleDateString()}),a.jsx("td",{className:"px-6 py-4 text-right",children:a.jsxs("div",{className:"flex items-center justify-end gap-2",children:[a.jsxs(ye,{variant:"outline",size:"sm",onClick:()=>x(g),className:"bg-white text-blue-600 hover:text-blue-700 hover:bg-blue-50 border-blue-200",children:[a.jsx(_y,{className:"w-4 h-4 mr-1"}),"Edit"]}),a.jsx(ye,{variant:"ghost",size:"sm",onClick:()=>b(g),className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:a.jsx(oa,{className:"w-4 h-4"})})]})})]},g.id))})]})}),a.jsx(_c,{open:o,onOpenChange:l,children:a.jsxs(Mo,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[a.jsx(Lo,{children:a.jsxs(Fo,{children:["Edit Page: ",s==null?void 0:s.title]})}),a.jsx(tw,{formData:f,setFormData:h,onSubmit:y,submitLabel:"Save Changes"})]})})]})},tw=({formData:e,setFormData:t,onSubmit:n,submitLabel:r})=>{const[s,i]=m.useState([]);m.useEffect(()=>{try{const d=JSON.parse(e.content||"{}"),f=Object.entries(d).map(([h,p])=>({key:h,value:typeof p=="object"?JSON.stringify(p,null,2):String(p)}));i(f.length>0?f:[])}catch{i([])}},[]);const o=d=>{const f={};d.forEach(({key:h,value:p})=>{if(h.trim())try{f[h]=JSON.parse(p)}catch{f[h]=p}}),t({...e,content:JSON.stringify(f,null,2)})},l=()=>{const d=[...s,{key:"",value:""}];i(d)},c=(d,f,h)=>{const p=[...s];p[d][f]=h,i(p),o(p)},u=d=>{const f=s.filter((h,p)=>p!==d);i(f),o(f)};return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{htmlFor:"page_slug",className:"text-slate-900",children:"Page Slug (URL Path)"}),a.jsx(Ve,{id:"page_slug",value:e.page_slug,onChange:d=>t({...e,page_slug:d.target.value}),placeholder:"e.g., /, /about, /products/bulk-storage",className:"font-mono"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{htmlFor:"title",className:"text-slate-900",children:"Page Title"}),a.jsx(Ve,{id:"title",value:e.title,onChange:d=>t({...e,title:d.target.value}),placeholder:"Page title"})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs(Je,{htmlFor:"h1_tag",className:"text-slate-900 flex items-center gap-1.5",children:[a.jsx("span",{className:"inline-flex items-center justify-center rounded bg-slate-200 px-1.5 py-0.5 text-[10px] font-bold leading-none text-slate-700 font-mono",children:"H1"})," H1 Tag"]}),a.jsx(Ve,{id:"h1_tag",value:e.h1_tag,onChange:d=>t({...e,h1_tag:d.target.value}),placeholder:"Main heading displayed on the page (H1)"}),a.jsx("p",{className:"text-xs text-slate-500",children:"The primary heading shown on the page. Leave blank to use the page title."})]}),a.jsxs("div",{className:"border rounded-lg p-4 bg-slate-50",children:[a.jsx("h3",{className:"text-sm font-semibold mb-3 text-slate-900",children:"SEO Metadata"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{htmlFor:"meta_title",className:"text-slate-900",children:"Meta Title"}),a.jsx(Ve,{id:"meta_title",value:e.meta_title,onChange:d=>t({...e,meta_title:d.target.value}),placeholder:"SEO title (50-60 characters recommended)",maxLength:70}),a.jsxs("p",{className:"text-xs text-slate-500",children:[e.meta_title.length,"/60 characters"]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{htmlFor:"meta_description",className:"text-slate-900",children:"Meta Description"}),a.jsx(yo,{id:"meta_description",value:e.meta_description,onChange:d=>t({...e,meta_description:d.target.value}),placeholder:"SEO description (140-160 characters recommended)",maxLength:200,className:"min-h-[80px]"}),a.jsxs("p",{className:"text-xs text-slate-500",children:[e.meta_description.length,"/160 characters"]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{htmlFor:"meta_keywords",className:"text-slate-900",children:"Meta Keywords"}),a.jsx(Ve,{id:"meta_keywords",value:e.meta_keywords,onChange:d=>t({...e,meta_keywords:d.target.value}),placeholder:"keyword1, keyword2, keyword3"})]})]})]}),a.jsxs("div",{className:"border rounded-lg p-4 bg-blue-50",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"Page Content Sections"}),a.jsxs(ye,{type:"button",variant:"outline",size:"sm",onClick:l,children:[a.jsx(zr,{className:"w-4 h-4 mr-1"}),"Add Section"]})]}),s.length===0?a.jsx("p",{className:"text-sm text-slate-500 text-center py-4",children:'No content sections yet. Click "Add Section" to create editable content blocks.'}):a.jsx("div",{className:"space-y-4",children:s.map((d,f)=>a.jsx("div",{className:"bg-white rounded-lg p-4 border shadow-sm",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsxs("div",{className:"flex-1 space-y-3",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx(Je,{className:"text-xs text-slate-700",children:"Section Name"}),a.jsx(Ve,{value:d.key,onChange:h=>c(f,"key",h.target.value),placeholder:"e.g., heroTitle, introText, features",className:"font-mono text-sm"})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx(Je,{className:"text-xs text-slate-700",children:"Content"}),a.jsx(yo,{value:d.value,onChange:h=>c(f,"value",h.target.value),placeholder:"Enter text content or JSON for complex structures",className:"min-h-[100px] font-mono text-sm"})]})]}),a.jsx(ye,{type:"button",variant:"ghost",size:"sm",onClick:()=>u(f),className:"text-red-500 hover:text-red-700 hover:bg-red-50 mt-6",children:a.jsx(Ef,{className:"w-4 h-4"})})]})},f))})]}),a.jsxs("details",{className:"border rounded-lg p-4 bg-slate-50",children:[a.jsx("summary",{className:"text-sm font-semibold text-slate-900 cursor-pointer",children:"Advanced: Raw JSON Content"}),a.jsxs("div",{className:"mt-3 space-y-2",children:[a.jsx(yo,{id:"content",value:e.content,onChange:d=>t({...e,content:d.target.value}),placeholder:'{"heroTitle": "Welcome", "introText": "..."}',className:"font-mono text-sm min-h-[150px]"}),a.jsx("p",{className:"text-xs text-slate-500",children:"Edit raw JSON directly. Changes here will override the sections above on next load."})]})]}),a.jsx("div",{className:"flex justify-end pt-4 border-t",children:a.jsxs(ye,{onClick:n,className:"bg-blue-600 hover:bg-blue-700",children:[a.jsx(Md,{className:"w-4 h-4 mr-2"}),r]})})]})},rU=()=>{const[e,t]=m.useState([]),[n,r]=m.useState(!0),[s,i]=m.useState(null),[o,l]=m.useState(""),[c,u]=m.useState("all"),{toast:d}=On();m.useEffect(()=>{f()},[]);const f=async()=>{try{const{data:g,error:j}=await ce.from("contact_submissions").select("*").order("created_at",{ascending:!1});if(j)throw j;t(g||[])}catch(g){d({title:"Error",description:g.message,variant:"destructive"})}finally{r(!1)}},h=async()=>
346{if(s)try{const{error:g}=await ce.from("contact_submissions").update({admin_notes:o}).eq("id",s.id);if(g)throw g;d({title:"Notes saved"}),i({...s,admin_notes:o}),f()}catch(g){d({title:"Error",description:g.message,variant:"destructive"})}},p=async g=>{if(confirm("Delete this submission? This cannot be undone."))try{const{error:j}=await ce.from("contact_submissions").delete().eq("id",g);if(j)throw j;d({title:"Submission deleted"}),(s==null?void 0:s.id)===g&&i(null),f()}catch(j){d({title:"Error",description:j.message,variant:"destructive"})}},w=g=>{i(g),l(g.admin_notes||"")},y=async g=>{if(confirm(`Remove this submission and block ${g.email}?`))try{const{data:{user:j}}=await ce.auth.getUser(),{error:_}=await ce.from("blocked_emails").insert({email:g.email.trim().toLowerCase(),blocked_by:(j==null?void 0:j.email)??null});if(_&&!_.message.toLowerCase().includes("duplicate"))throw _;const{error:C}=await ce.from("contact_submissions").delete().eq("id",g.id);if(C)throw C;d({title:"Submission removed",description:`${g.email} has been blocked.`}),i(null),f()}catch(j){d({title:"Error",description:j.message,variant:"destructive"})}},b=Array.from(new Set(e.map(g=>{const j=new Date(g.created_at);return`${j.getFullYear()}-${String(j.getMonth()+1).padStart(2,"0")}`}))).sort((g,j)=>j.localeCompare(g)),x=c==="all"?e:e.filter(g=>{const j=new Date(g.created_at);return`${j.getFullYear()}-${String(j.getMonth()+1).padStart(2,"0")}`===c}),v=g=>{const[j,_]=g.split("-").map(Number);return new Date(j,_-1,1).toLocaleString(void 0,{month:"long",year:"numeric"})};return n?a.jsx("div",{className:"flex items-center justify-center p-8",children:a.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):s?a.jsxs("div",{className:"space-y-6",children:[a.jsxs(ye,{variant:"outline",size:"sm",onClick:()=>i(null),children:[a.jsx(vk,{className:"w-4 h-4 mr-2"}),"Back to List"]}),a.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 space-y-4",children:[a.jsxs("div",{className:"flex items-start justify-between",children:[a.jsx("h2",{className:"text-lg font-semibold text-slate-900",children:s.subject}),a.jsx(ye,{variant:"ghost",size:"sm",onClick:()=>p(s.id),className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:a.jsx(oa,{className:"w-4 h-4"})})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[a.jsxs("div",{children:[a.jsx("span",{className:"font-medium text-slate-600",children:"Name:"}),a.jsxs("span",{className:"ml-2 text-slate-900",children:[s.first_name," ",s.last_name]})]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium text-slate-600",children:"Email:"}),a.jsx("a",{href:`mailto:${s.email}`,className:"ml-2 text-blue-600 hover:underline",children:s.email}),a.jsxs(ye,{variant:"outline",size:"sm",onClick:()=>y(s),className:"ml-3 bg-white text-red-600 border-2 border-red-500 hover:bg-red-50 hover:text-red-700",children:[a.jsx(xk,{className:"w-4 h-4 mr-1"}),"Remove this submission and Block This Email"]})]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium text-slate-600",children:"Category:"}),a.jsx("span",{className:"ml-2 text-slate-900",children:s.category||"-"})]}),a.jsxs("div",{children:[a.jsx("span",{className:"font-medium text-slate-600",children:"Submitted:"}),a.jsx("span",{className:"ml-2 text-slate-900",children:new Date(s.created_at).toLocaleString()})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium text-slate-600 mb-2",children:"Message"}),a.jsx("div",{className:"bg-slate-50 rounded-lg p-4 text-sm text-slate-800 whitespace-pre-wrap",children:s.message})]}),a.jsxs("div",{className:"border-t pt-4",children:[a.jsx("h3",{className:"font-medium text-slate-600 mb-2",children:"Admin Notes"}),a.jsx(yo,{value:o,onChange:g=>l(g.target.value),placeholder:"Add internal notes about this submission...",className:"min-h-[100px]"}),a.jsx("div",{className:"mt-2 flex justify-end",children:a.jsxs(ye,{onClick:h,size:"sm",children:[a.jsx(Md,{className:"w-4 h-4 mr-2"}),"Save Notes"]})})]})]})]}):a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-4",children:[a.jsx("h2",{className:"text-lg font-semibold",children:"Contact Submissions"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("label",{htmlFor:"month-filter",className:"text-sm text-slate-600",children:"Filter by month:"}),a.jsxs("select",{id:"month-filter",value:c,onChange:g=>u(g.target.value),className:"border border-slate-300 rounded-md px-3 py-1.5 text-sm bg-white text-slate-900 focus:outline-none focus:ring-2 focus:ring-primary",children:[a.jsx("option",{value:"all",children:"All months"}),b.map(g=>a.jsx("option",{value:g,children:v(g)},g))]}),c!=="all"&&a.jsxs("span",{className:"text-sm text-slate-500",children:[x.length," result",x.length===1?"":"s"]})]})]}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm overflow-hidden",children:a.jsxs("table",{className:"w-full",children:[a.jsx("thead",{className:"bg-slate-50 border-b",children:a.jsxs("tr",{children:[a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Date Submitted"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Name"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Email"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Category"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Subject"}),a.jsx("th",{className:"text-right px-6 py-3 text-sm font-medium text-slate-600",children:"Actions"})]})}),a.jsx("tbody",{className:"divide-y",children:x.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:6,className:"px-6 py-8 text-center text-slate-500",children:e.length===0?"N
346o contact submissions yet.":"No submissions in the selected month."})}):x.map(g=>a.jsxs("tr",{className:"hover:bg-slate-50 cursor-pointer",onClick:()=>w(g),children:[a.jsx("td",{className:"px-6 py-4 text-sm text-slate-500",children:new Date(g.created_at).toLocaleDateString()}),a.jsxs("td",{className:"px-6 py-4 text-sm text-slate-900",children:[g.first_name," ",g.last_name]}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-600",children:g.email}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-600",children:g.category||"-"}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-900",children:g.subject}),a.jsx("td",{className:"px-6 py-4 text-right",children:a.jsxs("div",{className:"flex items-center justify-end gap-2",children:[a.jsxs(ye,{variant:"outline",size:"sm",onClick:j=>{j.stopPropagation(),w(g)},className:"bg-white text-blue-600 hover:text-blue-700 hover:bg-blue-50 border-blue-200",children:[a.jsx(_y,{className:"w-4 h-4 mr-1"}),"Edit"]}),a.jsx(ye,{variant:"ghost",size:"sm",onClick:j=>{j.stopPropagation(),p(g.id)},className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:a.jsx(oa,{className:"w-4 h-4"})})]})})]},g.id))})]})})]})},sU=()=>{const[e,t]=m.useState([]),[n,r]=m.useState(!0),[s,i]=m.useState(!1),[o,l]=m.useState(null),[c,u]=m.useState(""),[d,f]=m.useState(""),[h,p]=m.useState(""),[w,y]=m.useState("admin"),[b,x]=m.useState("admin"),[v,g]=m.useState(""),[j,_]=m.useState(""),[C,N]=m.useState(""),[A,R]=m.useState(!1),[I,V]=m.useState(!1),{toast:D}=On();m.useEffect(()=>{Q()},[]);const Q=async()=>{try{const{data:S,error:T}=await ce.from("profiles").select("*");if(T)throw T;const{data:M,error:Z}=await ce.from("user_roles").select("*");if(Z)throw Z;const $=(S||[]).map(ie=>{const le=M==null?void 0:M.find(We=>We.user_id===ie.user_id);return{id:ie.id,user_id:ie.user_id,email:ie.email,display_name:ie.display_name,role:(le==null?void 0:le.role)||"admin",created_at:ie.created_at}});t($)}catch(S){D({title:"Error",description:S.message,variant:"destructive"})}finally{r(!1)}},F=async()=>{if(!c||!d){D({title:"Error",description:"Email and password are required.",variant:"destructive"});return}try{const{data:S,error:T}=await ce.functions.invoke("manage-admin-users",{body:{action:"create",email:c,password:d,displayName:h,role:w}});if(T)throw T;if(S!=null&&S.error)throw new Error(S.error);D({title:"Admin user created"}),i(!1),u(""),f(""),p(""),y("admin"),Q()}catch(S){D({title:"Error",description:S.message,variant:"destructive"})}},ae=async()=>{if(o)try{const S={action:"update",userId:o.user_id,role:b,displayName:v};j&&j!==o.email&&(S.email=j),C&&(S.password=C);const{data:T,error:M}=await ce.functions.invoke("manage-admin-users",{body:S});if(M)throw M;if(T!=null&&T.error)throw new Error(T.error);D({title:"User updated"}),l(null),N(""),V(!1),Q()}catch(S){D({title:"Error",description:S.message,variant:"destructive"})}},H=async S=>{if(confirm(`Remove admin access for ${S.email}? This will delete the user account.`))try{const{data:T,error:M}=await ce.functions.invoke("manage-admin-users",{body:{action:"delete",userId:S.user_id}});if(M)throw M;if(T!=null&&T.error)throw new Error(T.error);D({title:"User deleted"}),Q()}catch(T){D({title:"Error",description:T.message,variant:"destructive"})}},O=S=>{l(S),x(S.role),g(S.display_name||""),_(S.email),N(""),V(!1)};return n?a.jsx("div",{className:"flex items-center justify-center p-8",children:a.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("h2",{className:"text-lg font-semibold",children:"Admin Users"}),a.jsxs(ye,{onClick:()=>i(!0),children:[a.jsx(zr,{className:"w-4 h-4 mr-2"}),"Add User"]})]}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm overflow-hidden",children:a.jsxs("table",{className:"w-full",children:[a.jsx("thead",{className:"bg-slate-50 border-b",children:a.jsxs("tr",{children:[a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Email"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Display Name"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Role"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Created"}),a.jsx("th",{className:"text-right px-6 py-3 text-sm font-medium text-slate-600",children:"Actions"})]})}),a.jsx("tbody",{className:"divide-y",children:e.map(S=>a.jsxs("tr",{className:"hover:bg-slate-50",children:[a.jsx("td",{className:"px-6 py-4 text-sm text-slate-900",children:S.email}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-600",children:S.display_name||"-"}),a.jsx("td",{className:"px-6 py-4 text-sm",children:a.jsx("span",{className:"inline-flex px-2 py-1 rounded-full text-xs font-medium bg-blue-100 text-blue-700",children:S.role==="admin"?"Admin":"User"})}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-500",children:new Date(S.created_at).toLocaleDateString()}),a.jsx("td",{className:"px-6 py-4 text-right",children:a.jsxs("div",{className:"flex items-center justify-end gap-2",children:[a.jsxs(ye,{size:"sm",onClick:()=>O(S),className:"bg-[#00b1ef] text-white hover:bg-[#00b1ef]/90",children:[a.jsx(_y,{className:"w-4 h-4"}),"Edit"]}),a.jsx(ye,{variant:"ghost",size:"sm",onClick:()=>H(S),className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:a.jsx(oa,{className:"w-4 h-4"})})]})})]},S.id))})]})}),a.jsx(_c,{open:s,onOpenChange:i,children:a.jsxs(Mo,{children:[a.jsx(Lo,{children:a.jsx(Fo,{children:"Add Admin User"})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{children:"Email"}),a.jsx(Ve,{value:c,onChange:S=>u(S.target.value),placeholder:"[email protected]"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{children:"Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(Ve,{type:A?"text":"password",value:d,onChange:S=>f(S.target.value),placeholder:"••••••••",className:"pr-10"}),a.jsx("button",{type:"button",onClick:()=>R(!A),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",children:A?a.jsx(Id,{className:"w-4 h-4"}):a.jsx(Dd,{className:"w-4 h-4"})})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{children:"Display Name"}),a.jsx(Ve,{value:h,onChange:S=>p(S.target.value),placeholder:"John Doe"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{children:"Role"}),a.jsxs(ag,{value:w,onValueChange:S=>y(S),children:[a.jsx(Zd,{children:a.jsx(ig,{})}),a.jsxs(Xd,{children:[a.jsx(ur,{value:"admin",children:"Admin"}),a.jsx(ur,{value:"super_admin",children:"User"})]})]})]}),a.jsx("div",{className:"flex justify-end",children:a.jsxs(ye,{onClick:F,children:[a.jsx(Md,{className:"w-4 h-4 mr-2"}),"Create User"]})})]})]})}),a.jsx(_c,{open:!!o,onOpenChange:S=>!S&&l(null),children:a.jsxs(Mo,{children:[a.jsx(Lo,{children:a.jsxs(Fo,{children:["Edit User: ",o==null?void 0:o.email]})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{children:"Email"}),a.jsx(Ve,{value:j,onChange:S=>_(S.target.value),placeholder:"[email protected]"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{children:"New Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(Ve,{type:I?"text":"password",value:C,onChange:S=>N(S.target.value),placeholder:"Leave blank to keep current",className:"pr-10"}),a.jsx("button",{type:"button",onClick:()=>V(!I),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",children:I?a.jsx(Id,{className:"w-4 h-4"}):a.jsx(Dd,{className:"w-4 h-4"})})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{children:"Display Name"}
346),a.jsx(Ve,{value:v,onChange:S=>g(S.target.value)})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{children:"Role"}),a.jsxs(ag,{value:b,onValueChange:S=>x(S),children:[a.jsx(Zd,{children:a.jsx(ig,{})}),a.jsxs(Xd,{children:[a.jsx(ur,{value:"admin",children:"Admin"}),a.jsx(ur,{value:"super_admin",children:"User"})]})]})]}),a.jsx("div",{className:"flex justify-end",children:a.jsxs(ye,{onClick:ae,children:[a.jsx(Md,{className:"w-4 h-4 mr-2"}),"Save Changes"]})})]})]})})]})},aU=()=>{const[e,t]=m.useState([]),[n,r]=m.useState(!0),[s,i]=m.useState("all"),{toast:o}=On(),l=async()=>{r(!0);let u=ce.from("redirect_logs").select("*").order("created_at",{ascending:!1}).limit(500);s!=="all"&&(u=u.eq("status",s));const{data:d,error:f}=await u;f?o({title:"Error loading logs",description:f.message,variant:"destructive"}):t(d||[]),r(!1)};m.useEffect(()=>{l()},[s]);const c=async()=>{if(!confirm("Delete all redirect log entries? This cannot be undone."))return;const{error:u}=await ce.from("redirect_logs").delete().not("id","is",null);u?o({title:"Error",description:u.message,variant:"destructive"}):(o({title:"Cleared",description:"All redirect logs deleted."}),l())};return a.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4 flex-wrap gap-2",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg font-semibold",children:"Redirect & 404 Logs"}),a.jsx("p",{className:"text-sm text-slate-500",children:"Tracks legacy / mistyped URLs that hit the catch-all route."})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("select",{value:s,onChange:u=>i(u.target.value),className:"border border-slate-300 rounded px-3 py-1.5 text-sm",children:[a.jsx("option",{value:"all",children:"All"}),a.jsx("option",{value:"redirected",children:"Redirected"}),a.jsx("option",{value:"unresolved",children:"Unresolved (404)"})]}),a.jsxs(ye,{variant:"outline",size:"sm",onClick:l,children:[a.jsx(mc,{className:"w-4 h-4 mr-2"})," Refresh"]}),a.jsxs(ye,{variant:"outline",size:"sm",onClick:c,children:[a.jsx(oa,{className:"w-4 h-4 mr-2"})," Clear"]})]})]}),n?a.jsx("p",{className:"text-slate-500 text-sm",children:"Loading..."}):e.length===0?a.jsx("p",{className:"text-slate-500 text-sm",children:"No log entries."}):a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"bg-slate-50 text-left",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-3 py-2 font-medium",children:"Time"}),a.jsx("th",{className:"px-3 py-2 font-medium",children:"Status"}),a.jsx("th",{className:"px-3 py-2 font-medium",children:"Requested URL"}),a.jsx("th",{className:"px-3 py-2 font-medium",children:"Resolved To"}),a.jsx("th",{className:"px-3 py-2 font-medium",children:"Referrer"})]})}),a.jsx("tbody",{children:e.map(u=>a.jsxs("tr",{className:"border-t border-slate-100 align-top",children:[a.jsx("td",{className:"px-3 py-2 whitespace-nowrap text-slate-600",children:new Date(u.created_at).toLocaleString()}),a.jsx("td",{className:"px-3 py-2",children:a.jsx("span",{className:"inline-block px-2 py-0.5 rounded text-xs font-medium "+(u.status==="redirected"?"bg-emerald-100 text-emerald-800":"bg-red-100 text-red-800"),children:u.status})}),a.jsx("td",{className:"px-3 py-2 break-all max-w-md text-slate-900",children:u.requested_url}),a.jsx("td",{className:"px-3 py-2 break-all max-w-md text-slate-700",children:u.resolved_url||"—"}),a.jsx("td",{className:"px-3 py-2 break-all max-w-xs text-slate-500",children:u.referrer||"—"})]},u.id))})]})})]})};var Zf="Switch",[iU,W7]=Gn(Zf),[oU,lU]=iU(Zf),NC=m.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:s,defaultChecked:i,required:o,disabled:l,value:c="on",onCheckedChange:u,form:d,...f}=e,[h,p]=m.useState(null),w=Ne(t,g=>p(g)),y=m.useRef(!1),b=h?d||!!h.closest("form"):!0,[x,v]=ia({prop:s,defaultProp:i??!1,onChange:u,caller:Zf});return a.jsxs(oU,{scope:n,checked:x,disabled:l,children:[a.jsx(ge.button,{type:"button",role:"switch","aria-checked":x,"aria-required":o,"data-state":AC(x),"data-disabled":l?"":void 0,disabled:l,value:c,...f,ref:w,onClick:q(e.onClick,g=>{v(j=>!j),b&&(y.current=g.isPropagationStopped(),y.current||g.stopPropagation())})}),b&&a.jsx(EC,{control:h,bubbles:!y.current,name:r,value:c,checked:x,required:o,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});NC.displayName=Zf;var CC="SwitchThumb",TC=m.forwardRef((e,t)=>
346{const{__scopeSwitch:n,...r}=e,s=lU(CC,n);return a.jsx(ge.span,{"data-state":AC(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t})});TC.displayName=CC;var cU="SwitchBubbleInput",EC=m.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...s},i)=>{const o=m.useRef(null),l=Ne(o,i),c=IN(n),u=Gk(t);return m.useEffect(()=>{const d=o.current;if(!d)return;const f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==n&&p){const w=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(w)}},[c,n,r]),a.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:l,style:{...s.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});EC.displayName=cU;function AC(e){return e?"checked":"unchecked"}var PC=NC,uU=TC;const RC=m.forwardRef(({className:e,...t},n)=>a.jsx(PC,{className:ue("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:a.jsx(uU,{className:ue("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")})}));RC.displayName=PC.displayName;const Uu=e=>{let t=e.trim().toLowerCase();return t&&(!t.startsWith("/")&&!t.startsWith("http")&&(t="/"+t),t.replace(/\/+$/g,"")||"/")},dU=()=>{const[e,t]=m.useState([]),[n,r]=m.useState(!0),[s,i]=m.useState(""),[o,l]=m.useState(""),[c,u]=m.useState(""),{toast:d}=On(),f=async()=>{r(!0);const{data:y,error:b}=await ce.from("url_aliases").select("*").order("source_path",{ascending:!0});b?d({title:"Error",description:b.message,variant:"destructive"}):t(y||[]),r(!1)};m.useEffect(()=>{f()},[]);const h=async()=>{const y=Uu(s),b=Uu(o);if(!y||!b){d({title:"Missing fields",description:"Source and target paths are required.",variant:"destructive"});return}const{error:x}=await ce.from("url_aliases").insert({source_path:y,target_path:b,notes:c.trim()||null,enabled:!0});x?d({title:"Error",description:x.message,variant:"destructive"}):(d({title:"Alias added",description:`${y} → ${b}`}),i(""),l(""),u(""),f())},p=async(y,b)=>{const{error:x}=await ce.from("url_aliases").update(b).eq("id",y);x?d({title:"Error",description:x.message,variant:"destructive"}):f()},w=async(y,b)=>{if(!confirm(`Delete alias for ${b}?`))return;const{error:x}=await ce.from("url_aliases").delete().eq("id",y);x?d({title:"Error",description:x.message,variant:"destructive"}):(d({title:"Deleted"}),f())};return a.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 space-y-6",children:[a.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg font-semibold",children:"URL Aliases"}),a.jsx("p",{className:"text-sm text-slate-500",children:"Editable legacy → canonical redirects. Changes take effect immediately, no redeploy needed."})]}),a.jsxs(ye,{variant:"outline",size:"sm",onClick:f,children:[a.jsx(mc,{className:"w-4 h-4 mr-2"})," Refresh"]})]}),a.jsxs("div",{className:"border border-slate-200 rounded-lg p-4 bg-slate-50",children:[a.jsx("h3",{className:"text-sm font-semibold mb-3",children:"Add new alias"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[1fr_1fr_1fr_auto] gap-2",children:[a.jsx(Ve,{placeholder:"/old-path",value:s,onChange:y=>i(y.target.value)}),a.jsx(Ve,{placeholder:"/new-path",value:o,onChange:y=>l(y.target.value)}),a.jsx(Ve,{placeholder:"Notes (optional)",value:c,onChange:y=>u(y.target.value)}),a.jsxs(ye,{onClick:h,children:[a.jsx(zr,{className:"w-4 h-4 mr-2"})," Add"]})]})]}),n?a.jsx("p",{className:"text-slate-500 text-sm",children:"Loading..."}):e.length===0?a.jsx("p",{className:"text-slate-500 text-sm",children:"No aliases configured."}):a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"bg-slate-50 text-left",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-3 py-2 font-medium",children:"Source"}),a.jsx("th",{className:"px-3 py-2 font-medium",children:"Target"}),a.jsx("th",{className:"px-3 py-2 font-medium",children:"Notes"}),a.jsx("th",{className:"px-3 py-2 font-medium",children:"Enabled"}),a.jsx("th",{className:"px-3 py-2 font-medium"})]})}),a.jsx("tbody",{children:e.map(y=>a.jsxs("tr",{className:"border-t border-slate-100 align-middle",children:[a.jsx("td",{className:"px-3 py-2",children:a.jsx(Ve,{defaultValue:y.source_path,onBlur:b=>{const x=Uu(b.target.value);x&&x!==y.source_path&&p(y.id,{source_path:x})}})}),a.jsx("td",{className:"px-3 py-2",children:a.jsx(Ve,{defaultValue:y.target_path,onBlur:b=>{const x=Uu(b.target.value);x&&x!==y.target_path&&p(y.id,{target_path:x})}})}),a.jsx("td",{className:"px-3 py-2",children:a.jsx(Ve,{defaultValue:y.notes||"",onBlur:b=>{const x=b.target.value.trim();x!==(y.notes||"")&&p(y.id,{notes:x||null})}})}),a.jsx("td",{className:"px-3 py-2",children:a.jsx(RC,{checked:y.enabled,onCheckedChange:b=>p(y.id,{enabled:b})})}),a.jsx("td",{className:"px-3 py-2 text-right",children:a.jsx(ye,{variant:"ghost",size:"sm",onClick:()=>w(y.id,y.source_path),children:a.jsx(oa,{className:"w-4 h-4"})})})]},y.id))})]})})]})};function Le(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 An(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Jt(e,t){const n=Le(e);return isNaN(t)?An(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function vr(e,t){const n=Le(e);if(isNaN(t))return An(e,NaN);if(!t)return n;const r=n.getDate(),s=An(e,n.getTime());s.setMonth(n.getMonth()+t+1,0);const i=s.getDate();return r>=i?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}const pv=6048e5,fU=864e5;let hU={};function Xc(){return hU}function Br(e,t){var l,c,u,d;const n=Xc(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=Le(e),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function oi(e){return Br(e,{weekStartsOn:1}
346)}function OC(e){const t=Le(e),n=t.getFullYear(),r=An(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=oi(r),i=An(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=oi(i);return t.getTime()>=s.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Bo(e){const t=Le(e);return t.setHours(0,0,0,0),t}function af(e){const t=Le(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 Dr(e,t){const n=Bo(e),r=Bo(t),s=+n-af(n),i=+r-af(r);return Math.round((s-i)/fU)}function mU(e){const t=OC(e),n=An(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),oi(n)}function fg(e,t){const n=t*7;return Jt(e,n)}function pU(e,t){return vr(e,t*12)}function gU(e){let t;return e.forEach(function(n){const r=Le(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function yU(e){let t;return e.forEach(n=>{const r=Le(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function un(e,t){const n=Bo(e),r=Bo(t);return+n==+r}function gv(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function vU(e){if(!gv(e)&&typeof e!="number")return!1;const t=Le(e);return!isNaN(Number(t))}function Ic(e,t){const n=Le(e),r=Le(t),s=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return s*12+i}function xU(e,t,n){const r=Br(e,n),s=Br(t,n),i=+r-af(r),o=+s-af(s);return Math.round((i-o)/pv)}function yv(e){const t=Le(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function mn(e){const t=Le(e);return t.setDate(1),t.setHours(0,0,0,0),t}function IC(e){const t=Le(e),n=An(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function vv(e,t){var l,c,u,d;const n=Xc(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,s=Le(e),i=s.getDay(),o=(i<r?-7:0)+6-(i-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function DC(e){return vv(e,{weekStartsOn:1})}const bU={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"}},wU=(e,t,n)=>{let r;const s=bU[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 gm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const jU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_U={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SU={date:gm({formats:jU,defaultWidth:"full"}),time:gm({formats:kU,defaultWidth:"full"}),dateTime:gm({formats:_U,defaultWidth:"full"})},NU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},CU=(e,t,n,r)=>NU[e];function Sl(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;s=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[l]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const TU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},EU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}
vendor: 11,249 bytes, line 346
346,AU={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"]},PU={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","Friday","Saturday"]},RU={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"}},OU={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"}},IU=(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"},DU={ordinalNumber:IU,era:Sl({values:TU,defaultWidth:"wide"}),quarter:Sl({values:EU,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Sl({values:AU,defaultWidth:"wide"}),day:Sl({values:PU,defaultWidth:"wide"}),dayPeriod:Sl({values:RU,defaultWidth:"wide",formattingValues:OU,defaultFormattingWidth:"wide"})};function Nl(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 o=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?LU(l,f=>f.test(o)):MU(l,f=>f.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function MU(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function LU(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function FU(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 o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(s.length);return{value:o,rest:l}}}const WU=/^(\d+)(th|st|nd|rd)?/i,$U=/\d+/i,zU={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},UU={any:[/^b/i,/^(a|c)/i]},BU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},GU={any:[/1/i,/2/i,/3/i,/4/i]},HU={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},qU={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]},VU={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},KU={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]},YU={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},QU={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}},JU={ordinalNumber:FU({matchPattern:WU,parsePattern:$U,valueCallback:e=>parseInt(e,10)}),era:Nl({matchPatterns:zU,defaultMatchWidth:"wide",parsePatterns:UU,defaultParseWidth:"any"}),quarter:Nl({matchPatterns:BU,defaultMatchWidth:"wide",parsePatterns:GU,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Nl({matchPatterns:HU,defaultMatchWidth:"wide",parsePatterns:qU,defaultParseWidth:"any"}),day:Nl({matchPatterns:VU,defaultMatchWidth:"wide",parsePatterns:KU,defaultParseWidth:"any"}),dayPeriod:Nl({matchPatterns:YU,defaultMatchWidth:"any",parsePatterns:QU,defaultParseWidth:"any"})},MC={code:"en-US",formatDistance:wU,formatLong:SU,formatRelative:CU,localize:DU,match:JU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ZU(e){const t=Le(e);return Dr(t,IC(t))+1}function LC(e){const t=Le(e),n=+oi(t)-+mU(t);return Math.round(n/pv)+1}function FC(e,t){var d,f,h,p;const n=Le(e),r=n.getFullYear(),s=Xc(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??s.firstWeekContainsDate??((p=(h=s.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,o=An(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const l=Br(o,t),c=An(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const u=Br(c,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function XU(e,t){var l,c,u,d;const n=Xc(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,s=FC(e,t),i=An(e,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),Br(i,t)}function WC(e,t){const n=Le(e),r=+Br(n,t)-+XU(n,t);return Math.round(r/pv)+1}function qe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Cs={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return qe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):qe(n+1,2)},d(e,t){return qe(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 qe(e.getHours()%12||12,t.length)},H(e,t){return qe(e.getHours(),t.length)},m(e,t){return qe(e.getMinutes(),t.length)},s(e,t){return qe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return qe(s,t.length)}},Wi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},nw={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 Cs.y(e,t)},Y:function(e,t,n,r){const s=FC(e,r),i=s>0?s:1-s;if(t==="YY"){const o=i%100;return qe(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):qe(i,t.length)},R:function(e,t){const n=OC(e);return qe(n,t.length)},u:function(e,t){const n=e.getFullYear();return qe(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 qe(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 qe(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 Cs.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 qe(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=WC(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):qe(s,t.length)},I:function(e,t,n){const r=LC(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):qe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Cs.d(e,t)},D:function(e,t,n){const r=ZU(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):qe(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 qe(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 qe(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 qe(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=Wi.noon:r===0?s=Wi.midnight:s=r/12>
vendor: 4,693 bytes, line 346
346=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=Wi.evening:r>=12?s=Wi.afternoon:r>=4?s=Wi.morning:s=Wi.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 Cs.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Cs.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):qe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):qe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Cs.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Cs.s(e,t)},S:function(e,t){return Cs.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return sw(r);case"XXXX":case"XX":return Da(r);case"XXXXX":case"XXX":default:return Da(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return sw(r);case"xxxx":case"xx":return Da(r);case"xxxxx":case"xxx":default:return Da(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rw(r,":");case"OOOO":default:return"GMT"+Da(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rw(r,":");case"zzzz":default:return"GMT"+Da(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return qe(r,t.length)},T:function(e,t,n){const r=e.getTime();return qe(r,t.length)}};function rw(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+qe(i,2)}function sw(e,t){return e%60===0?(e>0?"-":"+")+qe(Math.abs(e)/60,2):Da(e,t)}function Da(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=qe(Math.trunc(r/60),2),i=qe(r%60,2);return n+s+t+i}const aw=(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"})}},$C=(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"})}},eB=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return aw(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}}",aw(r,t)).replace("{{time}}",$C(s,t))},tB={p:$C,P:eB},nB=/^D+$/,rB=/^Y+$/,sB=["D","DD","YY","YYYY"];function aB(e){return nB.test(e)}function iB(e){return rB.test(e)}function oB(e,t,n){const r=lB(e,t,n);if(console.warn(r),sB.includes(e))throw new RangeError(r)}function lB(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 cB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,dB=/^'([^]*?)'?$/,fB=/''/g,hB=/[a-zA-Z]/;function hs(e,t,n){var d,f,h,p,w,y,b,x;const r=Xc(),s=(n==null?void 0:n.locale)??r.locale??MC,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(h=r.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((y=(w=n==null?void 0:n.locale)==null?void 0:w.options)==null?void 0:y.weekStartsOn)??r.weekStartsOn??((x=(b=r.locale)==null?void 0:b.options)==null?void 0:x.weekStartsOn)??0,l=Le(e);if(!vU(l))throw new RangeError("Invalid time value");let c=t.match(uB).map(v=>{const g=v[0];if(g==="p"||g==="P"){const j=tB[g];return j(v,s.formatLong)}return v}).join("").match(cB).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const g=v[0];if(g==="'")return{isToken:!1,value:mB(v)};if(nw[g])return{isToken:!0,value:v};
346if(g.match(hB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:v}});s.localize.preprocessor&&(c=s.localize.preprocessor(l,c));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return c.map(v=>{if(!v.isToken)return v.value;const g=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&iB(g)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&aB(g))&&oB(g,t,String(e));const j=nw[g[0]];return j(l,g,s.localize,u)}).join("")}function mB(e){const t=e.match(dB);return t?t[1].replace(fB,"'"):e}function pB(e){const t=Le(e),n=t.getFullYear(),r=t.getMonth(),s=An(e,0);return s.setFullYear(n,r+1,0),s.setHours(0,0,0,0),s.getDate()}function gB(e){return Math.trunc(+Le(e)/1e3)}function yB(e){const t=Le(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function vB(e,t){return xU(yB(e),mn(e),t)+1}function hg(e,t){const n=Le(e),r=Le(t);return n.getTime()>r.getTime()}function zC(e,t){const n=Le(e),r=Le(t);return+n<+r}function xv(e,t){const n=Le(e),r=Le(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function xB(e,t){const n=Le(e),r=Le(t);return n.getFullYear()===r.getFullYear()}function ym(e,t){return Jt(e,-t)}function vm(e,t){const n=Le(e),r=n.getFullYear(),s=n.getDate(),i=An(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const o=pB(i);return n.setMonth(t,Math.min(s,o)),n}function iw(e,t){const n=Le(e);return isNaN(+n)?An(e,NaN):(n.setFullYear(t),n)}var he=function(){return he=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},he.apply(this,arguments)};function bB(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 UC(e,t,n){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))}function eu(e){return e.mode==="multiple"}function tu(e){return e.mode==="range"}function Xf(e){return e.mode==="single"}var wB={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function jB(e,t){return hs(e,"LLLL y",t)}function kB(e,t){return hs(e,"d",t)}function _B(e,t){return hs(e,"LLLL",t)}function SB(e){return"".concat(e)}function NB(e,t){return hs(e,"cccccc",t)}function CB(e,t){return hs(e,"yyyy",t)}var TB=Object.freeze({__proto__:null,formatCaption:jB,formatDay:kB,formatMonthCaption:_B,formatWeekNumber:SB,formatWeekdayName:NB,formatYearCaption:CB}),EB=function(e,t,n){return hs(e,"do MMMM (EEEE)",n)},AB=function(){return"Month: "},PB=function(){return"Go to next month"},RB=function(){return"Go to previous month"},OB=function(e,t){return hs(e,"cccc",t)},IB=function(e){return"Week n. ".concat(e)},DB=function(){return"Year: "},MB=Object.freeze({__proto__:null,labelDay:EB,labelMonthDropdown:AB,labelNext:PB,labelPrevious:RB,labelWeekNumber:IB,labelWeekday:OB,labelYearDropdown:DB});function LB(){var e="buttons",t=wB,n=MC,r={},s={},i=1,o={},l=new Date;return{captionLayout:e,classNames:t,formatters:TB,labels:MB,locale:n,modifiersClassNames:r,modifiers:s,numberOfMonths:i,styles:o,today:l,mode:"default"}}function FB(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,s=e.toMonth,i=e.fromDate,o=e.toDate;return r?i=mn(r):t&&(i=new Date(t,0,1)),s?o=yv(s):n&&(o=new Date(n,11,31)),{fromDate:i?Bo(i):void 0,toDate:o?Bo(o):void 0}}var BC=m.createContext(void 0);function WB(e){var t,n=e.initialProps,r=LB(),s=FB(n),i=s.fromDate,o=s.toDate,l=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;l!=="buttons"&&(!i||!o)&&(l="buttons");var c;(Xf(n)||eu(n)||tu(n))&&(c=n.onSelect);var u=he(he(he({},r),n),{captionLayout:l,classNames:he(he({},r.classNames),n.classNames),components:he({}
346,n.components),formatters:he(he({},r.formatters),n.formatters),fromDate:i,labels:he(he({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:he(he({},r.modifiers),n.modifiers),modifiersClassNames:he(he({},r.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:he(he({},r.styles),n.styles),toDate:o});return a.jsx(BC.Provider,{value:u,children:e.children})}function Xe(){var e=m.useContext(BC);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function GC(e){var t=Xe(),n=t.locale,r=t.classNames,s=t.styles,i=t.formatters.formatCaption;return a.jsx("div",{className:r.caption_label,style:s.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:i(e.displayMonth,{locale:n})})}function $B(e){return a.jsx("svg",he({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:a.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function HC(e){var t,n,r=e.onChange,s=e.value,i=e.children,o=e.caption,l=e.className,c=e.style,u=Xe(),d=(n=(t=u.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:$B;return a.jsxs("div",{className:l,style:c,children:[a.jsx("span",{className:u.classNames.vhidden,children:e["aria-label"]}),a.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:s,onChange:r,children:i}),a.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[o,a.jsx(d,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function zB(e){var t,n=Xe(),r=n.fromDate,s=n.toDate,i=n.styles,o=n.locale,l=n.formatters.formatMonthCaption,c=n.classNames,u=n.components,d=n.labels.labelMonthDropdown;if(!r)return a.jsx(a.Fragment,{});if(!s)return a.jsx(a.Fragment,{});var f=[];if(xB(r,s))for(var h=mn(r),p=r.getMonth();p<=s.getMonth();p++)f.push(vm(h,p));else for(var h=mn(new Date),p=0;p<=11;p++)f.push(vm(h,p));var w=function(b){var x=Number(b.target.value),v=vm(mn(e.displayMonth),x);e.onChange(v)},y=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:HC;return a.jsx(y,{name:"months","aria-label":d(),className:c.dropdown_month,style:i.dropdown_month,onChange:w,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:o}),children:f.map(function(b){return a.jsx("option",{value:b.getMonth(),children:l(b,{locale:o})},b.getMonth())})})}function UB(e){var t,n=e.displayMonth,r=Xe(),s=r.fromDate,i=r.toDate,o=r.locale,l=r.styles,c=r.classNames,u=r.components,d=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,h=[];if(!s)return a.jsx(a.Fragment,{});if(!i)return a.jsx(a.Fragment,{});for(var p=s.getFullYear(),w=i.getFullYear(),y=p;y<=w;y++)h.push(iw(IC(new Date),y));var b=function(v){var g=iw(mn(n),Number(v.target.value));e.onChange(g)},x=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:HC;return a.jsx(x,{name:"years","aria-label":f(),className:c.dropdown_year,style:l.dropdown_year,onChange:b,value:n.getFullYear(),caption:d(n,{locale:o}),children:h.map(function(v){return a.jsx("option",{value:v.getFullYear(),children:d(v,{locale:o})},v.getFullYear())})})}function BB(e,t){var n=m.useState(e),r=n[0],s=n[1],i=t===void 0?r:t;return[i,s]}function GB(e){var t=e.month,n=e.defaultMonth,r=e.today,s=t||n||r||new Date,i=e.toDate,o=e.fromDate,l=e.numberOfMonths,c=l===void 0?1:l;if(i&&Ic(i,s)<0){var u=-1*(c-1);s=vr(i,u)}return o&&Ic(s,o)<0&&(s=o),mn(s)}function HB(){var e=Xe(),t=GB(e),n=BB(t,e.month),r=n[0],s=n[1],i=function(o){var l;if(!e.disableNavigation){var c=mn(o);s(c),(l=e.onMonthChange)===null||l===void 0||l.call(e,c)}};return[r,i]}function qB(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,s=mn(e),i=mn(vr(s,r)),o=Ic(i,s),l=[],c=0;c<o;c++){var u=vr(s,c);l.push(u)}return n&&(l=l.reverse()),l}function VB(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,s=t.numberOfMonths,i=s===void 0?1:s,o=r?i:1,l=mn(e);if(!n)return vr(l,o);var c=Ic(n,e);if(!(c<i))return vr(l,o)}}function KB(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,s=t.numberOfMonths,i=s===void 0?1:s,o=r?i:1,l=mn(e);if(!n)return vr(l,-o);var c=Ic(l,n);if(!(c<=0))return vr(l,-o)}}var qC=m.createContext(void 0);function YB(e){var t=Xe(),n=HB(),r=n[0],s=n[1],i=qB(r,t),o=VB(r,t),l=KB(r,t),c=function(f){return i.some(function(h){return xv(f,h)})},u=function(f,h){c(f)||(h&&zC(f,h)?s(vr(f,1+t.numberOfMonths*-1)):s(f))},d={currentMonth:r,displayMonths:i,goToMonth:s,goToDate:u,previousMonth:l,nextMonth:o,isDateDisplayed:c};return a.jsx(qC.Provider,{value:d,children:e.children})}function nu(){var e=m.useContext(qC);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function ow(e){var t,n=Xe(),r=n.classNames,s=n.styles,i=n.components,o=nu().goToMonth,l=function(d){o(vr(d,e.displayIndex?-e.dis
346playIndex:0))},c=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:GC,u=a.jsx(c,{id:e.id,displayMonth:e.displayMonth});return a.jsxs("div",{className:r.caption_dropdowns,style:s.caption_dropdowns,children:[a.jsx("div",{className:r.vhidden,children:u}),a.jsx(zB,{onChange:l,displayMonth:e.displayMonth}),a.jsx(UB,{onChange:l,displayMonth:e.displayMonth})]})}function QB(e){return a.jsx("svg",he({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:a.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function JB(e){return a.jsx("svg",he({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:a.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var of=m.forwardRef(function(e,t){var n=Xe(),r=n.classNames,s=n.styles,i=[r.button_reset,r.button];e.className&&i.push(e.className);var o=i.join(" "),l=he(he({},s.button_reset),s.button);return e.style&&Object.assign(l,e.style),a.jsx("button",he({},e,{ref:t,type:"button",className:o,style:l}))});function ZB(e){var t,n,r=Xe(),s=r.dir,i=r.locale,o=r.classNames,l=r.styles,c=r.labels,u=c.labelPrevious,d=c.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return a.jsx(a.Fragment,{});var h=u(e.previousMonth,{locale:i}),p=[o.nav_button,o.nav_button_previous].join(" "),w=d(e.nextMonth,{locale:i}),y=[o.nav_button,o.nav_button_next].join(" "),b=(t=f==null?void 0:f.IconRight)!==null&&t!==void 0?t:JB,x=(n=f==null?void 0:f.IconLeft)!==null&&n!==void 0?n:QB;return a.jsxs("div",{className:o.nav,style:l.nav,children:[!e.hidePrevious&&a.jsx(of,{name:"previous-month","aria-label":h,className:p,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:s==="rtl"?a.jsx(b,{className:o.nav_icon,style:l.nav_icon}):a.jsx(x,{className:o.nav_icon,style:l.nav_icon})}),!e.hideNext&&a.jsx(of,{name:"next-month","aria-label":w,className:y,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:s==="rtl"?a.jsx(x,{className:o.nav_icon,style:l.nav_icon}):a.jsx(b,{className:o.nav_icon,style:l.nav_icon})})]})}function lw(e){var t=Xe().numberOfMonths,n=nu(),r=n.previousMonth,s=n.nextMonth,i=n.goToMonth,o=n.displayMonths,l=o.findIndex(function(w){return xv(e.displayMonth,w)}),c=l===0,u=l===o.length-1,d=t>1&&(c||!u),f=t>1&&(u||!c),h=function(){r&&i(r)},p=function(){s&&i(s)};return a.jsx(ZB,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:s,previousMonth:r,onPreviousClick:h,onNextClick:p})}function XB(e){var t,n=Xe(),r=n.classNames,s=n.disableNavigation,i=n.styles,o=n.captionLayout,l=n.components,c=(t=l==null?void 0:l.CaptionLabel)!==null&&t!==void 0?t:GC,u;return s?u=a.jsx(c,{id:e.id,displayMonth:e.displayMonth}):o==="dropdown"?u=a.jsx(ow,{displayMonth:e.displayMonth,id:e.id}):o==="dropdown-buttons"?u=a.jsxs(a.Fragment,{children:[a.jsx(ow,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),a.jsx(lw,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=a.jsxs(a.Fragment,{children:[a.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),a.jsx(lw,{displayMonth:e.displayMonth,id:e.id})]}),a.jsx("div",{className:r.caption,style:i.caption,children:u})}function e9(e){var t=Xe(),n=t.footer,r=t.styles,s=t.classNames.tfoot;return n?a.jsx("tfoot",{className:s,style:r.tfoot,children:a.jsx("tr",{children:a.jsx("td",{colSpan:8,children:n})})}):a.jsx(a.Fragment,{})}function t9(e,t,n){for(var r=n?oi(new Date):Br(new Date,{locale:e,weekStartsOn:t}),s=[],i=0;i<7;i++){var o=Jt(r,i);s.push(o)}return s}function n9(){var e=Xe(),t=e.classNames,n=e.styles,r=e.showWeekNumber,s=e.locale,i=e.weekStartsOn,o=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,u=t9(s,i,o);return a.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&a.jsx("td",{style:n.head_cell,className:t.head_cell}),u.map(function(d,f){return a.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":c(d,{locale:s}),children:l(d,{locale:s})},f)})]})}function r9(){var e,t=Xe(),n=t.classNames,r=t.styles,s=t.components,i=(e=s==null?void 0:s.HeadRow)!==null&&e!==void 0?e:n9;return a.jsx("thead",{style:r.head,className:n.head,children:a.jsx(i,{})})}function s9(e){var t=Xe(),n=t.locale,r=t.formatters.formatDay;return a.jsx(a.Fragment,{children:r(e.date,{locale:n})})}var bv=m.createContext(void 0);function a9(e){if(!eu(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return a.jsx(bv.Provider,{value:t,children:e.children})}return a.jsx(i9,{initialProps:e.initialProps,children:e.children})}function i9(e){var t=e.initialProps,n=e.children,r=t.selected,s=t.min,i=t.max,o=function(u,d,f){var h,p;(h=t.onDayClick)===null||h===void 0||h.call(t,u,d,f);var w=!!(d.selected&&s&&(r==null?void 0:r.length)===s);if(!w){var y=!!(!d.selected&&i&&(r==null?void 0:r.length)===i);if(!y){var b=r?UC([],r):[];if(d.selected){var x=b.findIndex(function(v){return un(u,v)});b.splice(x,1)}else b.push(u);(p=t.onSelect)===null||p===void 0||p.call(t,b,u,d,f)}}},l={disabled:[]};r&&l.disabled.push(function(u){var d=i&&r.length>i-1,f=r.some(function(h){return un(h,u)});return!!(d&&!f)});var c={selected:r,onDayClick:o,modifiers:l};return a.jsx(bv.Provider,{value:c,children:n})}function wv(){var e=m.useContext(bv);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function o9(e,t){var n=t||{},r=n.from,s=n.to;return r&&s?un(s,e)&&un(r,e)?void 0:un(s,e)?{from:s,to:void 0}:un(r,e)?void 0:hg(r,e)?{from:e,to:s}:{from:r,to:e}:s?hg(e,s)?{from:s,to:e}:{from:e,to:s}:r?zC(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var jv=m.createContext(void 0);function l9(e){if(!tu(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return a.jsx(jv.Provider,{value:t,children:e.children})}return a.jsx(c9,{initialProps:e.initialProps,children:e.children})}function c9(e){var t=e.initialProps,n=e.children,r=t.selected,s=r||{},i=s.from,o=s.to,l=t.min,c=t.max,u=function(p,w,y){var b,x;(b=t.onDayClick)===null||b===void 0||b.call(t,p,w,y);var v=o9(p,r);(x=t.onSelect)===null||x===void 0||x.call(t,v,p,w,y)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(d.range_start=[i],o?(d.range_end=[o],un(i,o)||(d.range_middle=[{after:i,before:o}])):d.range_end=[i]):o&&(d.range_start=[o],d.range_end=[o]),l&&(i&&!o&&d.disabled.push({after:ym(i,l-1),before:Jt(i,l-1)}),i&&o&&d.disabled.push({after:i,before:Jt(i,l-1)}),!i&&o&&d.disabled.push({after:ym(o,l-1),before:Jt(o,l-1)})),c){if(i&&!o&&(d.disabled.push({before:Jt(i,-c+1)}),d.disabled.push({after:Jt(i,c-1)})),i&&o){var f=Dr(o,i)+1,h=c-f;d.disabled.push({before:ym(i,h)}),d.disabled.push({after:Jt(o,h)})}!i&&o&&(d.disabled.push({before:Jt(o,-c+1)}),d.disabled.push({after:Jt(o,c-1)}))}return a.jsx(jv.Provider,{value:{selected:r,onDayClick:u,modifiers:d},children:n})}function kv(){var e=m.useContext(jv);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function cd(e){return Array.isArray(e)?UC([],e):e!==void 0?[e]:[]}function u9(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],s=n[1];t[r]=cd(s)}),t}var xr;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(xr||(xr={}));var d9=xr.Selected,Jr=xr.Disabled,f9=xr.Hidden,h9=xr.Today,xm=xr.RangeEnd,bm=xr.RangeMiddle,wm=xr.RangeStart,m9=xr.Outside;function p9(e,t,n){var r,s=(r={},r[d9]=cd(e.selected),r[Jr]=cd(e.disabled),r[f9]=cd(e.hidden),r[h9]=[e.today],r[xm]=[],r[bm]=[],r[wm]=[],r[m9]=[],r);return e.fromDate&&s[Jr].push({before:e.fromDate}),e.toDate&&s[Jr].push({after:e.toDate}),eu(e)?s[Jr]=s[Jr].concat(t.modifiers[Jr]):tu(e)&&(s[Jr]=s[Jr].concat(n.modifiers[Jr]),s[wm]=n.modifiers[wm],s[bm]=n.modifiers[bm],s[xm]=n.modifiers[xm]),s}var VC=m.createContext(void 0);function g9(e){var t=Xe(),n=wv(),r=kv(),s=p9(t,n,r),i=u9(t.modifiers),o=he(he({},s),i);return a.jsx(VC.Provider,{value:o,children:e.children})}function KC(){var e=m.useContext(VC);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function y9(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function v9(e){return!!(e&&typeof e=="object"&&"from"in e)}function x9(e){return!!(e&&typeof e=="object"&&"after"in e)}function b9(e){return!!(e&&typeof e=="object"&&"before"in e)}function w9(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function j9(e,t){var n,r=t.from,s=t.to;if(r&&s){var i=Dr(s,r)<0;i&&(n=[s,r],r=n[0],s=n[1]);var o=Dr(e,r)>=0&&Dr(s,e)>=0;return o}return s?un(s,e):r?un(r,e):!1}function k9(e){return gv(e)}function _9(e){return Array.isArray(e)&&e.every(gv)}function S9(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(k9(n))return un(e,n);if(_9(n))return n.includes(e);if(v9(n))return j9(e,n);if(w9(n))return n.dayOfWeek.includes(e.getDay());if(y9(n)){var r=Dr(n.before,e),s=Dr(n.after,e),i=r>0,o=s<0,l=hg(n.before,n.after);return l?o&&i:i||o}return x9(n)?Dr(e,n.after)>0:b9(n)?Dr(n.before,e)>0:typeof n=="function"?n(e):!1})}function _v(e,t,n){var r=Object.keys(t).reduce(function(i,o){var l=t[o];return S9(e,l)&&i.push(o),i},[]),s={};return r.forEach(function(i){return s[i]=!0}),n&&!xv(e,n)&&(s.outside=!0),s}function N9(e,t){for(var n=mn(e[0]),r=yv(e[e.length-1]),s,i,o=n;o<=r;){var l=_v(o,t),c=!l.disabled&&!l.hidden;if(!c){o=Jt(o,1);continue}if(l.selected)return o;l.today&&!i&&(i=o),s||(s=o),o=Jt(o,1)}return i||s}var C9=365;function YC(e,t){var n=t.moveBy,r=t.direction,s=t.context,i=t.modifiers,o=t.retry,l=o===void 0?{count:0,lastFocused:e}:o,c=s.weekStartsOn,u=s.fromDate,d=s.toDate,f=s.locale,h={day:Jt,week:fg,month:vr,year:pU,startOfWeek:function(b){return s.ISOWeek?oi(b):Br(b,{locale:f,weekStartsOn:c})},endOfWeek:function(b){return s.ISOWeek?DC(b):vv(b,{locale:f,weekStartsOn:c})}},p=h[n](e,r==="after"?1:-1);r==="before"&&u?p=gU([u,p]):r==="after"&&d&&(p=yU([d,p]));var w=!0;if(i){var y=_v(p,i);w=!y.disabled&&!y.hidden}return w?p:l.count>C9?l.lastFocused:YC(p,{moveBy:n,direction:r,context:s,modifiers:i,retry:he(he({},l),{count:l.count+1})})}var QC=m.createContext(void 0);function T9(e){var t=nu(),n=KC(),r=m.useState(),s=r[0],i=r[1],o=m.useState(),l=o[0],c=o[1],u=N9(t.displayMonths,n),d=s??(l&&t.isDateDisplayed(l))?l:u,f=function(){c(s),i(void 0)},h=function(b){i(b)},p=Xe(),w=function(b,x){if(s){var v=YC(s,{moveBy:b,direction:x,context:p,modifiers:n});un(s,v)||(t.goToDate(v,s),h(v))}}
346,y={focusedDay:s,focusTarget:d,blur:f,focus:h,focusDayAfter:function(){return w("day","after")},focusDayBefore:function(){return w("day","before")},focusWeekAfter:function(){return w("week","after")},focusWeekBefore:function(){return w("week","before")},focusMonthBefore:function(){return w("month","before")},focusMonthAfter:function(){return w("month","after")},focusYearBefore:function(){return w("year","before")},focusYearAfter:function(){return w("year","after")},focusStartOfWeek:function(){return w("startOfWeek","before")},focusEndOfWeek:function(){return w("endOfWeek","after")}};return a.jsx(QC.Provider,{value:y,children:e.children})}function Sv(){var e=m.useContext(QC);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function E9(e,t){var n=KC(),r=_v(e,n,t);return r}var Nv=m.createContext(void 0);function A9(e){if(!Xf(e.initialProps)){var t={selected:void 0};return a.jsx(Nv.Provider,{value:t,children:e.children})}return a.jsx(P9,{initialProps:e.initialProps,children:e.children})}function P9(e){var t=e.initialProps,n=e.children,r=function(i,o,l){var c,u,d;if((c=t.onDayClick)===null||c===void 0||c.call(t,i,o,l),o.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,i,o,l);return}(d=t.onSelect)===null||d===void 0||d.call(t,i,i,o,l)},s={selected:t.selected,onDayClick:r};return a.jsx(Nv.Provider,{value:s,children:n})}function JC(){var e=m.useContext(Nv);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function R9(e,t){var n=Xe(),r=JC(),s=wv(),i=kv(),o=Sv(),l=o.focusDayAfter,c=o.focusDayBefore,u=o.focusWeekAfter,d=o.focusWeekBefore,f=o.blur,h=o.focus,p=o.focusMonthBefore,w=o.focusMonthAfter,y=o.focusYearBefore,b=o.focusYearAfter,x=o.focusStartOfWeek,v=o.focusEndOfWeek,g=function(O){var S,T,M,Z;Xf(n)?(S=r.onDayClick)===null||S===void 0||S.call(r,e,t,O):eu(n)?(T=s.onDayClick)===null||T===void 0||T.call(s,e,t,O):tu(n)?(M=i.onDayClick)===null||M===void 0||M.call(i,e,t,O):(Z=n.onDayClick)===null||Z===void 0||Z.call(n,e,t,O)},j=function(O){var S;h(e),(S=n.onDayFocus)===null||S===void 0||S.call(n,e,t,O)},_=function(O){var S;f(),(S=n.onDayBlur)===null||S===void 0||S.call(n,e,t,O)},C=function(O){var S;(S=n.onDayMouseEnter)===null||S===void 0||S.call(n,e,t,O)},N=function(O){var S;(S=n.onDayMouseLeave)===null||S===void 0||S.call(n,e,t,O)},A=function(O){var S;(S=n.onDayPointerEnter)===null||S===void 0||S.call(n,e,t,O)},R=function(O){var S;(S=n.onDayPointerLeave)===null||S===void 0||S.call(n,e,t,O)},I=function(O){var S;(S=n.onDayTouchCancel)===null||S===void 0||S.call(n,e,t,O)},V=function(O){var S;(S=n.onDayTouchEnd)===null||S===void 0||S.call(n,e,t,O)},D=function(O){var S;(S=n.onDayTouchMove)===null||S===void 0||S.call(n,e,t,O)},Q=function(O){var S;(S=n.onDayTouchStart)===null||S===void 0||S.call(n,e,t,O)},F=function(O){var S;(S=n.onDayKeyUp)===null||S===void 0||S.call(n,e,t,O)},ae=function(O){var S;switch(O.key){case"ArrowLeft":O.preventDefault(),O.stopPropagation(),n.dir==="rtl"?l():c();break;case"ArrowRight":O.preventDefault(),O.stopPropagation(),n.dir==="rtl"?c():l();break;case"ArrowDown":O.preventDefault(),O.stopPropagation(),u();break;case"ArrowUp":O.preventDefault(),O.stopPropagation(),d();break;case"PageUp":O.preventDefault(),O.stopPropagation(),O.shiftKey?y():p();break;case"PageDown":O.preventDefault(),O.stopPropagation(),O.shiftKey?b():w();break;case"Home":O.preventDefault(),O.stopPropagation(),x();break;case"End":O.preventDefault(),O.stopPropagation(),v();break}(S=n.onDayKeyDown)===null||S===void 0||S.call(n,e,t,O)},H={onClick:g,onFocus:j,onBlur:_,onKeyDown:ae,onKeyUp:F,onMouseEnter:C,onMouseLeave:N,onPointerEnter:A,onPointerLeave:R,onTouchCancel:I,onTouchEnd:V,onTouchMove:D,onTouchStart:Q};return H}function O9(){var e=Xe(),t=JC(),n=wv(),r=kv(),s=Xf(e)?t.selected:eu(e)?n.selected:tu(e)?r.selected:void 0;return s}function I9(e){return Object.values(xr).includes(e)}function D9(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var s=e.modifiersClassNames[r];if(s)n.push(s);else if(I9(r)){var i=e.classNames["day_".concat(r)];i&&n.push(i)}}),n}function M9(e,t){var n=he({},e.styles.day);return Object.keys(t).forEach(function(r){var s;n=he(he({},n),(s=e.modifiersStyles)===null||s===void 0?void 0:s[r])}),n}function L9(e,t,n){var r,s,i,o=Xe(),l=Sv(),c=E9(e,t),u=R9(e,c),d=O9(),f=!!(o.onDayCl
346ick||o.mode!=="default");m.useEffect(function(){var C;c.outside||l.focusedDay&&f&&un(l.focusedDay,e)&&((C=n.current)===null||C===void 0||C.focus())},[l.focusedDay,e,n,f,c.outside]);var h=D9(o,c).join(" "),p=M9(o,c),w=!!(c.outside&&!o.showOutsideDays||c.hidden),y=(i=(s=o.components)===null||s===void 0?void 0:s.DayContent)!==null&&i!==void 0?i:s9,b=a.jsx(y,{date:e,displayMonth:t,activeModifiers:c}),x={style:p,className:h,children:b,role:"gridcell"},v=l.focusTarget&&un(l.focusTarget,e)&&!c.outside,g=l.focusedDay&&un(l.focusedDay,e),j=he(he(he({},x),(r={disabled:c.disabled,role:"gridcell"},r["aria-selected"]=c.selected,r.tabIndex=g||v?0:-1,r)),u),_={isButton:f,isHidden:w,activeModifiers:c,selectedDays:d,buttonProps:j,divProps:x};return _}function F9(e){var t=m.useRef(null),n=L9(e.date,e.displayMonth,t);return n.isHidden?a.jsx("div",{role:"gridcell"}):n.isButton?a.jsx(of,he({name:"day",ref:t},n.buttonProps)):a.jsx("div",he({},n.divProps))}function W9(e){var t=e.number,n=e.dates,r=Xe(),s=r.onWeekNumberClick,i=r.styles,o=r.classNames,l=r.locale,c=r.labels.labelWeekNumber,u=r.formatters.formatWeekNumber,d=u(Number(t),{locale:l});if(!s)return a.jsx("span",{className:o.weeknumber,style:i.weeknumber,children:d});var f=c(Number(t),{locale:l}),h=function(p){s(t,n,p)};return a.jsx(of,{name:"week-number","aria-label":f,className:o.weeknumber,style:i.weeknumber,onClick:h,children:d})}function $9(e){var t,n,r=Xe(),s=r.styles,i=r.classNames,o=r.showWeekNumber,l=r.components,c=(t=l==null?void 0:l.Day)!==null&&t!==void 0?t:F9,u=(n=l==null?void 0:l.WeekNumber)!==null&&n!==void 0?n:W9,d;return o&&(d=a.jsx("td",{className:i.cell,style:s.cell,children:a.jsx(u,{number:e.weekNumber,dates:e.dates})})),a.jsxs("tr",{className:i.row,style:s.row,children:[d,e.dates.map(function(f){return a.jsx("td",{className:i.cell,style:s.cell,role:"presentation",children:a.jsx(c,{displayMonth:e.displayMonth,date:f})},gB(f))})]})}function cw(e,t,n){for(var r=n!=null&&n.ISOWeek?DC(t):vv(t,n),s=n!=null&&n.ISOWeek?oi(e):Br(e,n),i=Dr(r,s),o=[],l=0;l<=i;l++)o.push(Jt(s,l));var c=o.reduce(function(u,d){var f=n!=null&&n.ISOWeek?LC(d):WC(d,n),h=u.find(function(p){return p.weekNumber===f});return h?(h.dates.push(d),u):(u.push({weekNumber:f,dates:[d]}),u)},[]);return c}function z9(e,t){var n=cw(mn(e),yv(e),t);if(t!=null&&t.useFixedWeeks){var r=vB(e,t);if(r<6){var s=n[n.length-1],i=s.dates[s.dates.length-1],o=fg(i,6-r),l=cw(fg(i,1),o,t);n.push.apply(n,l)}}return n}function U9(e){var t,n,r,s=Xe(),i=s.locale,o=s.classNames,l=s.styles,c=s.hideHead,u=s.fixedWeeks,d=s.components,f=s.weekStartsOn,h=s.firstWeekContainsDate,p=s.ISOWeek,w=z9(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:p,locale:i,weekStartsOn:f,firstWeekContainsDate:h}),y=(t=d==null?void 0:d.Head)!==null&&t!==void 0?t:r9,b=(n=d==null?void 0:d.Row)!==null&&n!==void 0?n:$9,x=(r=d==null?void 0:d.Footer)!==null&&r!==void 0?r:e9;return a.jsxs("table",{id:e.id,className:o.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&a.jsx(y,{}),a.jsx("tbody",{className:o.tbody,style:l.tbody,children:w.map(function(v){return a.jsx(b,{displayMonth:e.displayMonth,dates:v.dates,weekNumber:v.weekNumber},v.weekNumber)})}),a.jsx(x,{displayMonth:e.displayMonth})]})}function B9(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var G9=B9()?m.useLayoutEffect:m.useEffect,jm=!1,H9=0;function uw(){return"react-day-picker-".concat(++H9)}function q9(e){var t,n=e??(jm?uw():null),r=m.useState(n),s=r[0],i=r[1];return G9(function(){s===null&&i(uw())},[]),m.useEffect(function(){jm===!1&&(jm=!0)},[]),(t=e??s)!==null&&t!==void 0?t:void 0}function V9(e){var t,n,r=Xe(),s=r.dir,i=r.classNames,o=r.styles,l=r.components,c=nu().displayMonths,u=q9(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),d=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,f=[i.month],h=o.month,p=e.displayIndex===0,w=e.displayIndex===c.length-1,y=!p&&!w;s==="rtl"&&(t=[p,w],w=t[0],p=t[1]),p&&(f.push(i.caption_start),h=he(he({},h),o.caption_start)),w&&(f.push(i.caption_end),h=he(he({},h),o.caption_end)),y&&(f.push(i.caption_between),h=he(he({},h),o.caption_between));var b=(n=l==null?void 0:l.Caption)!==null&&n!==void 0?n:XB;return a.jsxs("div",{className:f.join(" "),style:h,children:[a.jsx(b,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),a.jsx(U9,{id:d,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function K9(e){var t=Xe(),n=t.classNames,r=t.styles;return a.jsx("div",{className:n.months,style:r.months,children:e.children})}function Y9(e){var t,n,r=e.initialProps,s=Xe(),i=Sv(),o=nu(),l=m.useState(!1),c=l[0],u=l[1];m.useEffect(function(){s.initialFocus&&i.focusTarget&&(c||(i.focus(i.focusTarget),u(!0)))},[s.initialFocus,c,i.focus,i.focusTarget,i]);var d=[s.classNames.root,s.className];s.numberOfMonths>1&&d.push(s.classNames.multiple_months),s.showWeekNumber&&d.push(s.classNames.with_weeknumber);var f=he(he({},s.styles.root),s.style),h=Object.keys(r).filter(function(w){return w.startsWith("data-")}).reduce(function(w,y){var b;return he(he({},w),(b={},b[y]=r[y],b))},{}),p=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:K9;return a.jsx("div",he({className:d.join(" "),style:f,dir:s.dir,id:s.id,nonce:r.nonce,title:r.title,lang:r.lang},h,{children:a.jsx(p,{children:o.displayMonths.map(function(w,y){return a.jsx(V9,{displayIndex:y,displayMonth:w},y)})})}))}function Q9(e){var t=e.children,n=bB(e,["children"]);return a.jsx(WB,{initialProps:n,children:a.jsx(YB,{children:a.jsx(A9,{initialProps:n,children:a.jsx(a9,{initialProps:n,children:a.jsx(l9,{initialProps:n,children:a.jsx(g9,{children:a.jsx(T9,{children:t})})})})})})})}function J9(e){return a.jsx(Q9,he({},e,{children:a.jsx(Y9,{initialProps:e})}))}function mg({className:e,classNames:t,showOutsideDays:n=!0,...r}){return a.jsx(J9,{showOutsideDays:n,className:ue("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:sp
346ace-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:ue(wc({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:ue(wc({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>a.jsx(en,{className:"h-4 w-4"}),IconRight:({...s})=>a.jsx(qt,{className:"h-4 w-4"})},...r})}mg.displayName="Calendar";var eh="Popover",[ZC,$7]=Gn(eh,[pa]),ru=pa(),[Z9,ja]=ZC(eh),XC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,l=ru(t),c=m.useRef(null),[u,d]=m.useState(!1),[f,h]=ia({prop:r,defaultProp:s??!1,onChange:i,caller:eh});return a.jsx(Dy,{...l,children:a.jsx(Z9,{scope:t,contentId:Fr(),triggerRef:c,open:f,onOpenChange:h,onOpenToggle:m.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:u,onCustomAnchorAdd:m.useCallback(()=>d(!0),[]),onCustomAnchorRemove:m.useCallback(()=>d(!1),[]),modal:o,children:n})})};XC.displayName=eh;var eT="PopoverAnchor",X9=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=ja(eT,n),i=ru(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=s;return m.useEffect(()=>(o(),()=>l()),[o,l]),a.jsx(Hc,{...i,...r,ref:t})});X9.displayName=eT;var tT="PopoverTrigger",nT=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=ja(tT,n),i=ru(n),o=Ne(t,s.triggerRef),l=a.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":oT(s.open),...r,ref:o,onClick:q(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:a.jsx(Hc,{asChild:!0,...i,children:l})});nT.displayName=tT;var Cv="PopoverPortal",[e7,t7]=ZC(Cv,{forceMount:void 0}),rT=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=ja(Cv,t);return a.jsx(e7,{scope:t,forceMount:n,children:a.jsx(Hn,{present:n||i.open,children:a.jsx(Ko,{asChild:!0,container:s,children:r})})})};rT.displayName=Cv;var Go="PopoverContent",sT=m.forwardRef((e,t)=>{const n=t7(Go,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=ja(Go,e.__scopePopover);return a.jsx(Hn,{present:r||i.open,children:i.modal?a.jsx(r7,{...s,ref:t}):a.jsx(s7,{...s,ref:t})})});sT.displayName=Go;var n7=aa("PopoverContent.RemoveScroll"),r7=m.forwardRef((e,t)=>{const n=ja(Go,e.__scopePopover),r=m.useRef(null),s=Ne(t,r),i=m.useRef(!1);return m.useEffect(()=>{const o=r.current;if(o)return zf(o)},[]),a.jsx(Kc,{as:n7,allowPinchZoom:!0,children:a.jsx(aT,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),i.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),s7=m.forwardRef((e,t)=>{const n=ja(Go,e.__scopePopover),r=m.useRef(!1),s=m.useRef(!1);return a.jsx(aT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),aT=m.forwardRef((e,t)=>
346{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,h=ja(Go,n),p=ru(n);return $f(),a.jsx(qc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:a.jsx(di,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:a.jsx(Of,{"data-state":oT(h.open),role:"dialog",id:h.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),iT="PopoverClose",a7=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=ja(iT,n);return a.jsx(ge.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>s.onOpenChange(!1))})});a7.displayName=iT;var i7="PopoverArrow",o7=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=ru(n);return a.jsx(If,{...s,...r,ref:t})});o7.displayName=i7;function oT(e){return e?"open":"closed"}var l7=XC,c7=nT,u7=rT,lT=sT;const dw=l7,fw=c7,pg=m.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>a.jsx(u7,{children:a.jsx(lT,{ref:s,align:t,sideOffset:n,className:ue("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...r})}));pg.displayName=lT.displayName;const d7=()=>{const[e,t]=m.useState(null),[n,r]=m.useState(!0),[s,i]=m.useState(!1),[o,l]=m.useState(()=>{const b=new Date;return b.setDate(b.getDate()-7),b}),[c,u]=m.useState(()=>new Date),{toast:d}=On(),f=()=>{const b={};if(o){const x=new Date(o);x.setHours(0,0,0,0),b.since=x.toISOString()}if(c){const x=new Date(c);x.setHours(23,59,59,999),b.until=x.toISOString()}return b},h=async()=>{r(!0);const{data:b,error:x}=await ce.functions.invoke("send-redirect-report",{body:{preview:!0,...f()}});x?d({title:"Error",description:x.message,variant:"destructive"}):t(b),r(!1)};m.useEffect(()=>{h()},[o,c]);const p=async()=>{i(!0);const{error:b}=await ce.functions.invoke("send-redirect-report",{body:f()});i(!1),d(b?{title:"Error",description:b.message,variant:"destructive"}:{title:"Report sent",description:"Emailed to [email protected]"})},w=async(b,x)=>{const{error:v}=await ce.from("url_aliases").insert({source_path:b.toLowerCase(),target_path:x,enabled:!0,notes:"Added from weekly report"});v?d({title:"Error",description:v.message,variant:"destructive"}):(d({title:"Alias added",description:`${b} → ${x}`}),h())},y=({title:b,rows:x,withSuggestion:v})=>a.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 text-slate-900",children:[a.jsx("h3",{className:"text-base font-semibold mb-3 text-slate-900",children:b}),x.length===0?a.jsx("p",{className:"text-sm text-slate-500",children:"No entries this period."}):a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"bg-slate-50 text-left text-slate-700",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-3 py-2 font-medium",children:"URL"}),a.jsx("th",{className:"px-3 py-2 font-medium text-center",children:"Hits"}),a.jsx("th",{className:"px-3 py-2 font-medium",children:"Last seen"}),v&&a.jsx("th",{className:"px-3 py-2 font-medium",children:"Suggested target"}),v&&a.jsx("th",{className:"px-3 py-2"})]})}),a.jsx("tbody",{children:x.slice(0,25).map(g=>a.jsxs("tr",{className:"border-t border-slate-100 text-slate-800",children:[a.jsx("td",{className:"px-3 py-2 font-mono text-xs break-all max-w-md",children:g.url}),a.jsx("td",{className:"px-3 py-2 text-center font-semibold",children:g.count}
346),a.jsx("td",{className:"px-3 py-2 text-xs text-slate-500 whitespace-nowrap",children:new Date(g.last_seen).toLocaleString()}),v&&a.jsx("td",{className:"px-3 py-2 font-mono text-xs text-cyan-600",children:g.suggestion?`→ ${g.suggestion}`:"—"}),v&&a.jsx("td",{className:"px-3 py-2 text-right",children:g.suggestion&&a.jsx(ye,{size:"sm",variant:"outline",onClick:()=>w(g.url,g.suggestion),children:"Add alias"})})]},g.url))})]})})]});return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 flex items-center justify-between flex-wrap gap-3 text-slate-900",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg font-semibold text-slate-900",children:"Weekly Redirect Report"}),a.jsxs("p",{className:"text-sm text-slate-500",children:[e?`${new Date(e.since).toLocaleDateString()} – ${new Date(e.until).toLocaleDateString()} · `:"","Auto-emailed every Monday at 8:00 AM UTC to ",a.jsx("strong",{children:"[email protected]"}),"."]})]}),a.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("label",{className:"text-xs text-slate-600",children:"Start"}),a.jsxs(dw,{children:[a.jsx(fw,{asChild:!0,children:a.jsxs(ye,{variant:"outline",size:"sm",className:ue("w-[150px] justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[a.jsx(o0,{className:"w-4 h-4 mr-2"}),o?hs(o,"MMM d, yyyy"):"Pick date"]})}),a.jsx(pg,{className:"w-auto p-0",align:"start",children:a.jsx(mg,{mode:"single",selected:o,onSelect:l,disabled:b=>(c?b>c:!1)||b>new Date,initialFocus:!0,className:ue("p-3 pointer-events-auto")})})]})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("label",{className:"text-xs text-slate-600",children:"End"}),a.jsxs(dw,{children:[a.jsx(fw,{asChild:!0,children:a.jsxs(ye,{variant:"outline",size:"sm",className:ue("w-[150px] justify-start text-left font-normal",!c&&"text-muted-foreground"),children:[a.jsx(o0,{className:"w-4 h-4 mr-2"}),c?hs(c,"MMM d, yyyy"):"Pick date"]})}),a.jsx(pg,{className:"w-auto p-0",align:"start",children:a.jsx(mg,{mode:"single",selected:c,onSelect:u,disabled:b=>(o?b<o:!1)||b>new Date,initialFocus:!0,className:ue("p-3 pointer-events-auto")})})]})]}),a.jsxs(ye,{variant:"outline",size:"sm",onClick:h,disabled:n,children:[a.jsx(mc,{className:"w-4 h-4 mr-2"})," Refresh"]}),a.jsxs(ye,{size:"sm",onClick:p,disabled:s,children:[a.jsx(Tf,{className:"w-4 h-4 mr-2"})," ",s?"Sending...":"Send report now"]})]})]}),n?a.jsx("p",{className:"text-sm text-slate-500 px-2",children:"Loading report…"}):e?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-4 text-slate-900",children:[a.jsx("div",{className:"text-xs uppercase text-slate-500",children:"Unresolved 404 hits"}),a.jsx("div",{className:"text-2xl font-bold text-red-600",children:e.unresolved.reduce((b,x)=>b+x.count,0)})]}),a.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-4 text-slate-900",children:[a.jsx("div",{className:"text-xs uppercase text-slate-500",children:"Redirected hits"}),a.jsx("div",{className:"text-2xl font-bold text-emerald-600",children:e.redirected.reduce((b,x)=>b+x.count,0)})]})]}),a.jsx(y,{title:"Top unresolved 404s (consider adding aliases)",rows:e.unresolved,withSuggestion:!0}),a.jsx(y,{title:"Top successful redirects",rows:e.redirected,withSuggestion:!1})]}):null]})};var cT="AlertDialog",[f7,z7]=Gn(cT,[RS]),ys=RS(),uT=e=>{const{__scopeAlertDialog:t,...n}=e,r=ys(t);return a.jsx(KS,{...r,...n,modal:!0})};uT.displayName=cT;var h7="AlertDialogTrigger",m7=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=ys(n);return a.jsx(YS,{...s,...r,ref:t})});m7.displayName=h7;var p7="AlertDialogPortal",dT=e=>{const{__scopeAlertDialog:t,...n}=e,r=ys(t);return a.jsx(QS,{...r,...n})};dT.displayName=p7;var g7="AlertDialogOverlay",fT=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=ys(n);return a.jsx(tv,{...s,...r,ref:t})});fT.displayName=g7;var vo="AlertDialogContent",[y7,v7]=f7(vo),x7=Hj("AlertDialogContent"),hT=m.forwardRef((e,t)=>
346{const{__scopeAlertDialog:n,children:r,...s}=e,i=ys(n),o=m.useRef(null),l=Ne(t,o),c=m.useRef(null);return a.jsx(tL,{contentName:vo,titleName:mT,docsSlug:"alert-dialog",children:a.jsx(y7,{scope:n,cancelRef:c,children:a.jsxs(nv,{role:"alertdialog",...i,...s,ref:l,onOpenAutoFocus:q(s.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=c.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[a.jsx(x7,{children:r}),a.jsx(w7,{contentRef:o})]})})})});hT.displayName=vo;var mT="AlertDialogTitle",pT=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=ys(n);return a.jsx(rv,{...s,...r,ref:t})});pT.displayName=mT;var gT="AlertDialogDescription",yT=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=ys(n);return a.jsx(sv,{...s,...r,ref:t})});yT.displayName=gT;var b7="AlertDialogAction",vT=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=ys(n);return a.jsx(av,{...s,...r,ref:t})});vT.displayName=b7;var xT="AlertDialogCancel",bT=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:s}=v7(xT,n),i=ys(n),o=Ne(t,s);return a.jsx(av,{...i,...r,ref:o})});bT.displayName=xT;var w7=({contentRef:e})=>{const t=`\`${vo}\` requires a description for the component to be accessible for screen reader users.
347
348You can add a description to the \`${vo}\` by passing a \`${gT}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
349
350Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${vo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
351
352For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return m.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},j7=uT,k7=dT,wT=fT,jT=hT,kT=vT,_T=bT,ST=pT,NT=yT;const hw=j7,_7=k7,CT=m.forwardRef(({className:e,...t},n)=>a.jsx(wT,{className:ue("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}));CT.displayName=wT.displayName;const gg=m.forwardRef(({className:e,...t},n)=>a.jsxs(_7,{children:[a.jsx(CT,{}),a.jsx(jT,{ref:n,className:ue("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:rounded-lg",e),...t})]}));gg.displayName=jT.displayName;const yg=({className:e,...t})=>a.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",e),...t});yg.displayName="AlertDialogHeader";const vg=({className:e,...t})=>a.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});
352vg.displayName="AlertDialogFooter";const xg=m.forwardRef(({className:e,...t},n)=>a.jsx(ST,{ref:n,className:ue("text-lg font-semibold",e),...t}));xg.displayName=ST.displayName;const bg=m.forwardRef(({className:e,...t},n)=>a.jsx(NT,{ref:n,className:ue("text-sm text-muted-foreground",e),...t}));bg.displayName=NT.displayName;const wg=m.forwardRef(({className:e,...t},n)=>a.jsx(kT,{ref:n,className:ue(wc(),e),...t}));wg.displayName=kT.displayName;const jg=m.forwardRef(({className:e,...t},n)=>a.jsx(_T,{ref:n,className:ue(wc({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));jg.displayName=_T.displayName;const S7=()=>{const{toast:e}=On(),[t,n]=m.useState([]),[r,s]=m.useState(!1),[i,o]=m.useState(null),[l,c]=m.useState(null),[u,d]=m.useState(null),f=async(g,j)=>{const{data:_,error:C}=await ce.functions.invoke("backup-manager",{body:{action:g,filename:j}});if(C)throw new Error(C.message);if(_!=null&&_.error)throw new Error(_.error);return _},h=async()=>{s(!0);try{const g=await f("list");n(g.backups.filter(j=>j.name.endsWith(".json")))}catch(g){e({title:"Failed to load backups",description:g.message,variant:"destructive"})}finally{s(!1)}};m.useEffect(()=>{h()},[]);const p=async()=>{o("create");try{const g=await f("create"),j=Object.values(g.counts).reduce((_,C)=>_+C,0);e({title:"Backup created",description:`${g.filename} · ${j} rows`}),await h()}catch(g){e({title:"Backup failed",description:g.message,variant:"destructive"})}finally{o(null)}},w=async g=>{o(g);try{await f("delete",g),e({title:"Backup deleted"}),await h()}catch(j){e({title:"Delete failed",description:j.message,variant:"destructive"})}finally{o(null),c(null)}},y=async g=>{o(g);try{const j=await f("recover",g),_=Object.entries(j.results).map(([C,N])=>`${C}: ${N.error?`ERR ${N.error}`:`${N.restored}`}`).join(" · ");e({title:"Recover complete",description:_})}catch(j){e({title:"Recover failed",description:j.message,variant:"destructive"})}finally{o(null),d(null)}},b=async g=>{o(g);try{const j=await f("download",g);window.open(j.url,"_blank")}catch(j){e({title:"Download failed",description:j.message,variant:"destructive"})}finally{o(null)}},x=g=>g?g<1024?`${g} B`:g<1024*1024?`${(g/1024).toFixed(1)} KB`:`${(g/1024/1024).toFixed(2)} MB`:"—",v=g=>g?new Date(g).toLocaleString():"—";return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[a.jsx(_p,{className:"w-5 h-5 text-primary"}),"Database Backup"]}),a.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Snapshot all database tables into a stored backup file."})]}),a.jsxs(ye,{onClick:p,disabled:i==="create",size:"lg",children:[i==="create"?a.jsx(Y3,{className:"w-4 h-4 mr-2 animate-spin"}):a.jsx(_p,{className:"w-4 h-4 mr-2"}),"Backup Now"]})]}),a.jsxs("div",{className:"bg-white rounded-lg shadow-sm",children:[a.jsxs("div",{className:"p-4 border-b border-slate-200 flex items-center justify-between",children:[a.jsxs("h3",{className:"font-semibold",children:["Backups (",t.length,")"]}),a.jsxs(ye,{variant:"outline",size:"sm",onClick:h,disabled:r,children:[a.jsx(mc,{className:`w-4 h-4 mr-2 ${r?"animate-spin":""}`}),"Refresh"]})]}),a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{className:"bg-slate-50 text-slate-600",children:a.jsxs("tr",{children:[a.jsx("th",{className:"text-left px-4 py-3",children:"Filename"}),a.jsx("th",{className:"text-left px-4 py-3",children:"Created"}),a.jsx("th",{className:"text-left px-4 py-3",children:"Size"}),a.jsx("th",{className:"text-right px-4 py-3",children:"Actions"})]})}),a.jsxs("tbody",{children:[t.length===0&&!r&&a.jsx("tr",{children:a.jsx("td",{colSpan:4,className:"text-center py-8 text-slate-500",children:'No backups yet. Click "Backup Now" to create one.'})}),t.map(g=>{var j;return a.jsxs("tr",{className:"border-t border-slate-100",children:[a.jsx("td",{className:"px-4 py-3 font-mono text-xs",children:g.name}),a.jsx("td",{className:"px-4 py-3",children:v(g.created_at)}),a.jsx("td",{className:"px-4 py-3",children:x((j=g.metadata)==null?void 0:j.size)}),a.jsxs("td",{className:"px-4 py-3 text-right space-x-2",children:[a.jsxs(ye,{variant:"outline",size:"sm",onClick:()=>b(g.name),disabled:i===g.name,children:[a.jsx(q3,{className:"w-4 h-4 mr-1"}),"Download"]}),a.jsxs(ye,{variant:"outline",size:"sm",onClick:()=>d(g.name),disabled:i===g.name,children:[a.jsx(mc,{className:"w-4 h-4 mr-1"}),"Recover"]}),a.jsxs(ye,{variant:"destructive",size:"sm",onClick:()=>c(g.name),disabled:i===g.name,children:[a.jsx(oa,{className:"w-4 h-4 mr-1"}),"Delete"]})]})]},g.name)}
352)]})]})})]}),a.jsx(hw,{open:!!l,onOpenChange:g=>!g&&c(null),children:a.jsxs(gg,{children:[a.jsxs(yg,{children:[a.jsx(xg,{children:"Delete backup?"}),a.jsxs(bg,{children:["This permanently removes ",a.jsx("span",{className:"font-mono",children:l}),". This cannot be undone."]})]}),a.jsxs(vg,{children:[a.jsx(jg,{children:"Cancel"}),a.jsx(wg,{onClick:()=>l&&w(l),children:"Delete"})]})]})}),a.jsx(hw,{open:!!u,onOpenChange:g=>!g&&d(null),children:a.jsxs(gg,{children:[a.jsxs(yg,{children:[a.jsx(xg,{children:"Recover from backup?"}),a.jsxs(bg,{children:["This will merge rows from ",a.jsx("span",{className:"font-mono",children:u})," into the current database (upsert by id). Existing rows with matching ids will be overwritten. Rows added after the backup will remain."]})]}),a.jsxs(vg,{children:[a.jsx(jg,{children:"Cancel"}),a.jsx(wg,{onClick:()=>u&&y(u),children:"Recover"})]})]})})]})},N7=()=>{const[e,t]=m.useState([]),[n,r]=m.useState(!0),[s,i]=m.useState(!1),[o,l]=m.useState(""),{toast:c}=On();m.useEffect(()=>{u()},[]);const u=async()=>{const{data:h,error:p}=await ce.from("blocked_emails").select("*").order("created_at",{ascending:!1});p?c({title:"Error",description:p.message,variant:"destructive"}):t(h||[]),r(!1)},d=async()=>{const h=o.trim().toLowerCase();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h)){c({title:"Invalid email",description:"Enter a valid email address.",variant:"destructive"});return}const{data:{user:p}}=await ce.auth.getUser(),{error:w}=await ce.from("blocked_emails").insert({email:h,blocked_by:(p==null?void 0:p.email)??null});if(w){c({title:"Error",description:w.message,variant:"destructive"});return}c({title:"Email blocked"}),l(""),i(!1),u()},f=async h=>{if(!confirm("Remove this email from the blocked list?"))return;const{error:p}=await ce.from("blocked_emails").delete().eq("id",h);if(p){c({title:"Error",description:p.message,variant:"destructive"});return}c({title:"Email unblocked"}),u()};return n?a.jsx("div",{className:"flex items-center justify-center p-8",children:a.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("h2",{className:"text-lg font-semibold text-slate-900",children:"Blocked Emails"}),a.jsxs(ye,{size:"sm",onClick:()=>i(h=>!h),children:[a.jsx(zr,{className:"w-4 h-4 mr-1"}),"Add"]})]}),s&&a.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-4 flex items-center gap-3",children:[a.jsx(Ve,{value:o,onChange:h=>l(h.target.value),placeholder:"[email protected]",className:"max-w-sm"}),a.jsx(ye,{size:"sm",onClick:d,children:"Block Email"}),a.jsx(ye,{size:"sm",variant:"outline",onClick:()=>{i(!1),l("")},children:"Cancel"})]}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm overflow-hidden",children:a.jsxs("table",{className:"w-full",children:[a.jsx("thead",{className:"bg-slate-50 border-b",children:a.jsxs("tr",{children:[a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Email"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Block Date & Time"}),a.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-slate-600",children:"Blocked By"}),a.jsx("th",{className:"text-right px-6 py-3 text-sm font-medium text-slate-600",children:"Actions"})]})}),a.jsx("tbody",{className:"divide-y",children:e.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:4,className:"px-6 py-8 text-center text-slate-500",children:"No blocked emails yet."})}):e.map(h=>a.jsxs("tr",{className:"hover:bg-slate-50",children:[a.jsx("td",{className:"px-6 py-4 text-sm text-slate-900",children:h.email}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-600",children:new Date(h.created_at).toLocaleString()}),a.jsx("td",{className:"px-6 py-4 text-sm text-slate-600",children:h.blocked_by||"-"}),a.jsx("td",{className:"px-6 py-4 text-right",children:a.jsxs(ye,{variant:"outline",size:"sm",onClick:()=>f(h.id),className:"bg-white text-red-600 border-red-300 hover:bg-red-50 hover:text-red-700",children:[a.jsx(oa,{className:"w-4 h-4 mr-1"}),"Delete"]})})]}
352,h.id))})]})})]})},C7=()=>{const[e,t]=m.useState(null),[n,r]=m.useState(!0),[s,i]=m.useState("pages"),o=ya(),{toast:l}=On();m.useEffect(()=>{(async()=>{const{data:{session:h}}=await ce.auth.getSession();if(!h){o("/siteadmin/login");return}const{data:p}=await ce.rpc("is_admin",{_user_id:h.user.id});if(!p){await ce.auth.signOut(),o("/siteadmin/login");return}t(h.user),r(!1)})();const{data:{subscription:f}}=ce.auth.onAuthStateChange(h=>{h==="SIGNED_OUT"&&o("/siteadmin/login")});return()=>f.unsubscribe()},[o]);const c=async()=>{await ce.auth.signOut(),l({title:"Logged out",description:"You have been logged out successfully."}),o("/siteadmin/login")};if(n)return a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-slate-100",children:a.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})});const u={pages:"Page Content",users:"Admin Users",contacts:"Contact Submissions",redirects:"Redirect Logs",aliases:"URL Aliases",report:"Weekly Report",blocked:"Blocked Emails",backup:"Backup",settings:"Settings"};return a.jsxs(a.Fragment,{children:[a.jsx(Ee,{title:"Admin Dashboard | Corban Energy Group",description:"Admin dashboard for managing website content.",noIndex:!0}),a.jsxs("div",{className:"min-h-screen bg-slate-100 flex",children:[a.jsx(tU,{activeTab:s,setActiveTab:i}),a.jsxs("div",{className:"flex-1 flex flex-col",children:[a.jsx("header",{className:"bg-white shadow-sm border-b border-slate-200 px-6 py-4",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-xl font-semibold text-slate-900",children:u[s]}),a.jsxs("p",{className:"text-sm text-slate-500",children:["Logged in as ",e==null?void 0:e.email]})]}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx(ye,{variant:"outline",size:"sm",asChild:!0,children:a.jsxs("a",{href:"/",target:"_blank",rel:"noopener noreferrer",children:[a.jsx(wk,{className:"w-4 h-4 mr-2"}),"View Site"]})}),a.jsxs(ye,{variant:"outline",size:"sm",onClick:c,children:[a.jsx(Q3,{className:"w-4 h-4 mr-2"}),"Logout"]})]})]})}),a.jsxs("main",{className:"flex-1 p-6 overflow-auto",children:[s==="pages"&&a.jsx(nU,{}),s==="users"&&a.jsx(sU,{}),s==="contacts"&&a.jsx(rU,{}),s==="redirects"&&a.jsx(aU,{}),s==="aliases"&&a.jsx(dU,{}),s==="report"&&a.jsx(d7,{}),s==="blocked"&&a.jsx(N7,{}),s==="backup"&&a.jsx(S7,{}),s==="settings"&&a.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[a.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Settings"}),a.jsx("p",{className:"text-slate-600",children:"Settings panel coming soon."})]})]})]})]})]})},T7=()=>{const[e,t]=m.useState(""),[n,r]=m.useState(""),[s,i]=m.useState(!1),[o,l]=m.useState(!1),[c,u]=m.useState(!1),d=ya(),{toast:f}=On();m.useEffect(()=>{const{data:{subscription:p}}=ce.auth.onAuthStateChange((w,y)=>{(w==="PASSWORD_RECOVERY"||y)&&u(!0)});return(async()=>{const w=new URL(window.location.href),y=w.searchParams.get("code");if(y){const{error:x}=await ce.auth.exchangeCodeForSession(y);x?f({title:"Reset link invalid or expired",description:"Please request a new password reset email and open the link in the same browser.",variant:"destructive"}):(u(!0),w.searchParams.delete("code"),window.history.replaceState({},"",w.pathname+w.search));return}if(window.location.hash.includes("access_token")){const x=new URLSearchParams(window.location.hash.replace(/^#/,"")),v=x.get("access_token"),g=x.get("refresh_token");if(v&&g){const{error:j}=await ce.auth.setSession({access_token:v,refresh_token:g});if(!j){u(!0),window.history.replaceState({},"",window.location.pathname);return}}}const{data:{session:b}}=await ce.auth.getSession();b&&u(!0)})(),()=>p.unsubscribe()},[]);const h=async p=>{if(p.preventDefault(),e.length<6){f({title:"Password too short",description:"Use at least 6 characters.",variant:"destructive"});return}if(e!==n){f({title:"Passwords do not match",variant:"destructive"});return}l(!0);try{const{error:w}=await ce.auth.updateUser({password:e});if(w)throw w;f({title:"Password updated",description:"You can now sign in with your new password."}),await ce.auth.signOut(),d("/siteadmin/login")}catch(w){f({title:"Could not update password",description:w.message,variant:"destructive"})}finally{l(!1)}};return a.jsxs(a.Fragment,{children:[a.jsx(Ee,{title:"Reset Password | 
352Corban Energy Group",description:"Reset your admin password.",noIndex:!0}),a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 to-slate-800",children:a.jsxs("div",{className:"w-full max-w-md p-8 space-y-8 bg-white rounded-lg shadow-2xl",children:[a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"mx-auto w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mb-4",children:a.jsx(Vl,{className:"w-8 h-8 text-primary"})}),a.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Set a new password"}),a.jsx("p",{className:"mt-2 text-sm text-gray-600",children:c?"Choose a new password for your admin account.":"Validating reset link..."})]}),a.jsxs("form",{onSubmit:h,className:"space-y-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{htmlFor:"password",children:"New Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(Vl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),a.jsx(Ve,{id:"password",type:s?"text":"password",value:e,onChange:p=>t(p.target.value),placeholder:"••••••••",className:"pl-10 pr-10",required:!0,minLength:6}),a.jsx("button",{type:"button",onClick:()=>i(p=>!p),"aria-label":s?"Hide password":"Show password",className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:s?a.jsx(Id,{className:"w-5 h-5"}):a.jsx(Dd,{className:"w-5 h-5"})})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Je,{htmlFor:"confirm",children:"Confirm New Password"}),a.jsxs("div",{className:"relative",children:[a.jsx(Vl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),a.jsx(Ve,{id:"confirm",type:s?"text":"password",value:n,onChange:p=>r(p.target.value),placeholder:"••••••••",className:"pl-10",required:!0,minLength:6})]})]}),a.jsx(ye,{type:"submit",className:"w-full",disabled:o||!c,children:o?"Updating...":"Update Password"})]}),a.jsx("div",{className:"text-center",children:a.jsx("a",{href:"/siteadmin/login",className:"text-sm text-primary hover:underline",children:"← Back to Admin Login"})})]})})]})},E7=new _4,A7=()=>a.jsx(N4,{client:E7,children:a.jsxs(e4,{children:[a.jsx(FP,{}),a.jsx(gR,{}),a.jsxs(kI,{children:[a.jsx(CI,{}),a.jsxs(gI,{children:[a.jsx(Y,{path:"/",element:a.jsx(q6,{})}),a.jsx(Y,{path:"/index.html",element:a.jsx(He,{to:"/"})}),a.jsx(Y,{path:"/about",element:a.jsx(Q6,{})}),a.jsx(Y,{path:"/about-us",element:a.jsx(He,{to:"/about"})}),a.jsx(Y,{path:"/about-us/index.html",element:a.jsx(He,{to:"/about"})}),a.jsx(Y,{path:"/about/index.html",element:a.jsx(He,{to:"/about"})}),a.jsx(Y,{path:"/aboutus",element:a.jsx(He,{to:"/about"})}),a.jsx(Y,{path:"/lng",element:a.jsx(a8,{})}),a.jsx(Y,{path:"/lng/index.html",element:a.jsx(He,{to:"/lng"})}),a.jsx(Y,{path:"/lng/cryogenic-storage",element:a.jsx(ZW,{})}),a.jsx(Y,{path:"/lng/iso-tank",element:a.jsx(He,{to:"/products/iso-tank"})}),a.jsx(Y,{path:"/lng/iso-tank/index.html",element:a.jsx(He,{to:"/products/iso-tank"})}),a.jsx(Y,{path:"/lng/lng-cooled-data-centers",element:a.jsx(He,{to:"/products/lng-cooled"})}),a.jsx(Y,{path:"/lng/lng-cooled-data-centers/index.html",element:a.jsx(He,{to:"/products/lng-cooled"})}),a.jsx(Y,{path:"/lng/bulk-storage",element:a.jsx(f$,{})}),a.jsx(Y,{path:"/lng/factory-built-bulk-storage-tank",element:a.jsx(He,{to:"/lng/bulk-storage"})}),a.jsx(Y,{path:"/lng/factory-built-bulk-storage-tank/index.html",element:a.jsx(He,{to:"/lng/bulk-storage"})}),a.jsx(Y,{path:"/lng/bulk-storage-tank",element:a.jsx(He,{to:"/lng/bulk-storage"})}),a.jsx(Y,{path:"/lng/bulk-storage-tank/index.html",element:a.jsx(He,{to:"/lng/bulk-storage"})}),a.jsx(Y,{path:"/lng/bulk-storage/index.html",element:a.jsx(He,{to:"/lng/bulk-storage"})}),a.jsx(Y,{path:"/products/bulk-storage-tank",element:a.jsx(He,{to:"/lng/bulk-storage"})}),a.jsx(Y,{path:"/products/factory-built-bulk-storage-tank",element:a.jsx(He,{to:"/lng/bulk-storage"})}),a.jsx(Y,{path:"/factory-built-bulk-storage-tank",element:a.jsx(He,{to:"/lng/bulk-storage"})}),a.jsx(Y,{path:"/bulk-storage-tank",element:a.jsx(He,{to:"/lng/bulk-storage"})}
352),a.jsx(Y,{path:"/bulk-storage",element:a.jsx(He,{to:"/lng/bulk-storage"})}),a.jsx(Y,{path:"/lng/cryogenic-tank",element:a.jsx(n$,{})}),a.jsx(Y,{path:"/lng/ethane-ethylene",element:a.jsx(p$,{})}),a.jsx(Y,{path:"/ethane-ethylene",element:a.jsx(He,{to:"/lng/ethane-ethylene"})}),a.jsx(Y,{path:"/ethane-ethylene/index.html",element:a.jsx(He,{to:"/lng/ethane-ethylene"})}),a.jsx(Y,{path:"/lng/ethane-ethylene/index.html",element:a.jsx(He,{to:"/lng/ethane-ethylene"})}),a.jsx(Y,{path:"/lng/:slug",element:a.jsx(d8,{})}),a.jsx(Y,{path:"/products",element:a.jsx(g8,{})}),a.jsx(Y,{path:"/products/index.html",element:a.jsx(He,{to:"/products"})}),a.jsx(Y,{path:"/products/bulk-storage",element:a.jsx(F$,{})}),a.jsx(Y,{path:"/products/iso-tank",element:a.jsx(K$,{})}),a.jsx(Y,{path:"/products/marine-cargo",element:a.jsx(az,{})}),a.jsx(Y,{path:"/products/flat-bottom",element:a.jsx(hz,{})}),a.jsx(Y,{path:"/products/peak-shaving",element:a.jsx(wz,{})}),a.jsx(Y,{path:"/products/lng-cooled",element:a.jsx(Sz,{})}),a.jsx(Y,{path:"/products/cng",element:a.jsx(Lz,{})}),a.jsx(Y,{path:"/products/cng-station",element:a.jsx(He,{to:"/products/cng"})}),a.jsx(Y,{path:"/products/cng-station/index.html",element:a.jsx(He,{to:"/products/cng"})}),a.jsx(Y,{path:"/products/modular-refinery",element:a.jsx(Uz,{})}),a.jsx(Y,{path:"/products/cryogenic-storage",element:a.jsx(g$,{})}),a.jsx(Y,{path:"/products/cng-compressors",element:a.jsx(S$,{})}),a.jsx(Y,{path:"/products/refrigerated-warehouses",element:a.jsx(N$,{})}),a.jsx(Y,{path:"/products/engineering-services",element:a.jsx(C$,{})}),a.jsx(Y,{path:"/cryogenic-storage",element:a.jsx(k$,{})}),a.jsx(Y,{path:"/products/:slug",element:a.jsx(b8,{})}),a.jsx(Y,{path:"/contact",element:a.jsx(EW,{})}),a.jsx(Y,{path:"/contact-us",element:a.jsx(He,{to:"/contact"})}),a.jsx(Y,{path:"/contact-us/index.html",element:a.jsx(He,{to:"/contact"})}),a.jsx(Y,{path:"/contact/index.html",element:a.jsx(He,{to:"/contact"})}),a.jsx(Y,{path:"/event/spacecom-2026",element:a.jsx(RW,{})}),a.jsx(Y,{path:"/event/spacecom-2026-recap",element:a.jsx(qW,{})}),a.jsx(Y,{path:"/event/tradewinds-award-2025",element:a.jsx(VW,{})}),a.jsx(Y,{path:"/news",element:a.jsx(OW,{})}),a.jsx(Y,{path:"/news/:slug",element:a.jsx(IW,{})}),a.jsx(Y,{path:"/policies",element:a.jsx(Gz,{})}),a.jsx(Y,{path:"/policies/accessibility",element:a.jsx(Hz,{})}),a.jsx(Y,{path:"/policies/anti-bribery",element:a.jsx(qz,{})}),a.jsx(Y,{path:"/policies/cookies",element:a.jsx(Vz,{})}),a.jsx(Y,{path:"/policies/csr",element:a.jsx(Kz,{})}),a.jsx(Y,{path:"/policies/disclaimer",element:a.jsx(Yz,{})}),a.jsx(Y,{path:"/policies/environmental",element:a.jsx(Qz,{})}),a.jsx(Y,{path:"/policies/edi",element:a.jsx(Jz,{})}),a.jsx(Y,{path:"/policies/privacy",element:a.jsx(Zz,{})}),a.jsx(Y,{path:"/siteadmin/login",element:a.jsx(Xz,{})}),a.jsx(Y,{path:"/siteadmin/dashboard",element:a.jsx(C7,{})}),a.jsx(Y,{path:"/reset-password",element:a.jsx(T7,{})}),a.jsx(Y,{path:"*",element:a.jsx(JW,{})})]})]})]})});Dj(document.getElementById("root")).render(a.jsx(Uj,{children:a.jsx(A7,{})}));

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.