vendor: 6,857 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LightPillar-DTWXnmt1.js","assets/LightPillar-BtWKhm7K.css"])))=>i.map(i=>d[i]); 2var iI=t=>{throw TypeError(t)};var Z2=(t,e,n)=>e.has(t)||iI("Cannot "+n);var ee=(t,e,n)=>(Z2(t,e,"read from private field"),n?n.call(t):e.get(t)),pt=(t,e,n)=>e.has(t)?iI("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),tt=(t,e,n,r)=>(Z2(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Ut=(t,e,n)=>(Z2(t,e,"access private method"),n);var nx=(t,e,n,r)=>({set _(i){tt(t,e,i,n)},get _(){return ee(t,e,r)}});function Vte(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Wte(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var a$={exports:{}},B_={},l$={exports:{}},Lt={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var x0=Symbol.for("react.element"),Gte=Symbol.for("react.portal"),qte=Symbol.for("react.fragment"),Yte=Symbol.for("react.strict_mode"),Xte=Symbol.for("react.profiler"),Kte=Symbol.for("react.provider"),Qte=Symbol.for("react.context"),Zte=Symbol.for("react.forward_ref"),Jte=Symbol.for("react.suspense"),ene=Symbol.for("react.memo"),tne=Symbol.for("react.lazy"),sI=Symbol.iterator;function nne(t){return t===null||typeof t!="object"?null:(t=sI&&t[sI]||t["@@iterator"],typeof t=="function"?t:null)}var c$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},u$=Object.assign,d$={};function up(t,e,n){this.props=t,this.context=e,this.refs=d$,this.updater=n||c$}up.prototype.isReactComponent={};up.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};up.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function h$(){}h$.prototype=up.prototype;function Tj(t,e,n){this.props=t,this.context=e,this.refs=d$,this.updater=n||c$}var Aj=Tj.prototype=new h$;Aj.constructor=Tj;u$(Aj,up.prototype);Aj.isPureReactComponent=!0;var oI=Array.isArray,f$=Object.prototype.hasOwnProperty,Cj={current:null},m$={key:!0,ref:!0,__self:!0,__source:!0};function p$(t,e,n){var r,i={},s=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)f$.call(e,r)&&!m$.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];i.children=c}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:x0,type:t,key:s,ref:o,props:i,_owner:Cj.current}}function rne(t,e){return{$$typeof:x0,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Mj(t){return typeof t=="object"&&t!==null&&t.$$typeof===x0}function ine(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var aI=/\/+/g;function J2(t,e){return typeof t=="object"&&t!==null&&t.key!=null?ine(""+t.key):e.toString(36)}function Bb(t,e,n,r,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case x0:case Gte:o=!0}}if(o)return o=t,i=i(o),t=r===""?"."+J2(o,0):r,oI(i)?(n="",t!=null&&(n=t.replace(aI,"$&/")+"/"),Bb(i,e,n,"",function(u){return u})):i!=null&&(Mj(i)&&(i=rne(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(aI,"$&/")+"/")+t)),e.push(i)),1;if(o=0,r=r===""?".":r+":",oI(t))for(var a=0;a<t.length;a++){s=t[a];var c=r+J2(s,a);o+=Bb(s,e,n,c,i)}else if(c=nne(t),typeof c=="function")for(t=c.call(t),a=0;!(s=t.next()).done;)s=s.value,c=r+J2(s,a++),o+=Bb(s,e,n,c,i);else if(s==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function rx(t,e,n){if(t==null)return t;var r=[],i=0;return Bb(t,r,"","",function(s){return e.call(n,s,i++)}),r}function sne(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Ni={current:null},zb={transition:null},one={ReactCurrentDispatcher:Ni,ReactCurrentBatchConfig:zb,ReactCurrentOwner:Cj};function g$(){throw Error("act(...) is not supported in production builds of React.")}Lt.Children={map:rx,forEach:function(t,e,n){rx(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return rx(t,function(){e++}),e},toArray:function(t){return rx(t,function(e){return e})||[]},only:function(t){if(!Mj(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Lt.Component=up;Lt.Fragment=qte;Lt.Profiler=Xte;Lt.PureComponent=Tj;Lt.StrictMode=Yte;Lt.Suspense=Jte;
vendor: 4,827 bytes, lines 10-26
10Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=one;Lt.act=g$;Lt.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=u$({},t.props),i=t.key,s=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,o=Cj.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(c in e)f$.call(e,c)&&!m$.hasOwnProperty(c)&&(r[c]=e[c]===void 0&&a!==void 0?a[c]:e[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var u=0;u<c;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:x0,type:t.type,key:i,ref:s,props:r,_owner:o}};Lt.createContext=function(t){return t={$$typeof:Qte,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Kte,_context:t},t.Consumer=t};Lt.createElement=p$;Lt.createFactory=function(t){var e=p$.bind(null,t);return e.type=t,e};Lt.createRef=function(){return{current:null}};Lt.forwardRef=function(t){return{$$typeof:Zte,render:t}};Lt.isValidElement=Mj;Lt.lazy=function(t){return{$$typeof:tne,_payload:{_status:-1,_result:t},_init:sne}};Lt.memo=function(t,e){return{$$typeof:ene,type:t,compare:e===void 0?null:e}};Lt.startTransition=function(t){var e=zb.transition;zb.transition={};try{t()}finally{zb.transition=e}};Lt.unstable_act=g$;Lt.useCallback=function(t,e){return Ni.current.useCallback(t,e)};Lt.useContext=function(t){return Ni.current.useContext(t)};Lt.useDebugValue=function(){};Lt.useDeferredValue=function(t){return Ni.current.useDeferredValue(t)};Lt.useEffect=function(t,e){return Ni.current.useEffect(t,e)};Lt.useId=function(){return Ni.current.useId()};Lt.useImperativeHandle=function(t,e,n){return Ni.current.useImperativeHandle(t,e,n)};Lt.useInsertionEffect=function(t,e){return Ni.current.useInsertionEffect(t,e)};Lt.useLayoutEffect=function(t,e){return Ni.current.useLayoutEffect(t,e)};Lt.useMemo=function(t,e){return Ni.current.useMemo(t,e)};Lt.useReducer=function(t,e,n){return Ni.current.useReducer(t,e,n)};Lt.useRef=function(t){return Ni.current.useRef(t)};Lt.useState=function(t){return Ni.current.useState(t)};Lt.useSyncExternalStore=function(t,e,n){return Ni.current.useSyncExternalStore(t,e,n)};Lt.useTransition=function(){return Ni.current.useTransition()};Lt.version="18.3.1";l$.exports=Lt;var E=l$.exports;const V=tn(E),Rj=Vte({__proto__:null,default:V},[E]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var ane=E,lne=Symbol.for("react.element"),cne=Symbol.for("react.fragment"),une=Object.prototype.hasOwnProperty,dne=ane.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hne={key:!0,ref:!0,__self:!0,__source:!0};function v$(t,e,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)une.call(e,r)&&!hne.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:lne,type:t,key:s,ref:o,props:i,_owner:dne.current}}B_.Fragment=cne;B_.jsx=v$;B_.jsxs=v$;a$.exports=B_;var l=a$.exports,y$={exports:{}},js={},x$={exports:{}},b$={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(t){function e(D,I){var N=D.length;D.push(I);e:for(;0<N;){var G=N-1>>>1,q=D[G];if(0<i(q,I))D[G]=I,D[N]=q,N=G;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var I=D[0],N=D.pop();if(N!==I){D[0]=N;e:for(var G=0,q=D.length,W=q>>>1;G<W;){var Y=2*(G+1)-1,te=D[Y],Q=Y+1,X=D[Q];if(0>i(te,N))Q<q&&0>i(X,te)?(D[G]=X,D[Q]=N,G=Q):(D[G]=te,D[Y]=N,G=Y);else if(Q<q&&0>i(X,N))D[G]=X,D[Q]=N,G=Q;else break e}}return I}function i(D,I){var N=D.sortIndex-I.sortIndex;return N!==0?N:D.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var c=[],u=[],d=1,h=null,f=3,m=!1,v=!1,p=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(D){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=D)r(u),I.sortIndex=I.expirationTime,e(c,I);else break;I=n(u)}}
vendor: 9,402 bytes, lines 26-35
26function w(D){if(p=!1,x(D),!v)if(n(c)!==null)v=!0,L(_);else{var I=n(u);I!==null&&F(w,I.startTime-D)}}function _(D,I){v=!1,p&&(p=!1,y(M),M=-1),m=!0;var N=f;try{for(x(I),h=n(c);h!==null&&(!(h.expirationTime>I)||D&&!R());){var G=h.callback;if(typeof G=="function"){h.callback=null,f=h.priorityLevel;var q=G(h.expirationTime<=I);I=t.unstable_now(),typeof q=="function"?h.callback=q:h===n(c)&&r(c),x(I)}else r(c);h=n(c)}if(h!==null)var W=!0;else{var Y=n(u);Y!==null&&F(w,Y.startTime-I),W=!1}return W}finally{h=null,f=N,m=!1}}var S=!1,T=null,M=-1,A=5,C=-1;function R(){return!(t.unstable_now()-C<A)}function j(){if(T!==null){var D=t.unstable_now();C=D;var I=!0;try{I=T(!0,D)}finally{I?k():(S=!1,T=null)}}else S=!1}var k;if(typeof b=="function")k=function(){b(j)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,O=P.port2;P.port1.onmessage=j,k=function(){O.postMessage(null)}}else k=function(){g(j,0)};function L(D){T=D,S||(S=!0,k())}function F(D,I){M=g(function(){D(t.unstable_now())},I)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(D){D.callback=null},t.unstable_continueExecution=function(){v||m||(v=!0,L(_))},t.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<D?Math.floor(1e3/D):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(D){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var N=f;f=I;try{return D()}finally{f=N}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(D,I){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var N=f;f=D;try{return I()}finally{f=N}},t.unstable_scheduleCallback=function(D,I,N){var G=t.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?G+N:G):N=G,D){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=N+q,D={id:d++,callback:I,priorityLevel:D,startTime:N,expirationTime:q,sortIndex:-1},N>G?(D.sortIndex=N,e(u,D),n(c)===null&&D===n(u)&&(p?(y(M),M=-1):p=!0,F(w,N-G))):(D.sortIndex=q,e(c,D),v||m||(v=!0,L(_))),D},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(D){var I=f;return function(){var N=f;f=I;try{return D.apply(this,arguments)}finally{f=N}}}})(b$);x$.exports=b$;var fne=x$.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var mne=E,Cs=fne;function Me(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var w$=new Set,Bv={};function lh(t,e){gm(t,e),gm(t+"Capture",e)}function gm(t,e){for(Bv[t]=e,t=0;t<e.length;t++)w$.add(e[t])}var xl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),KA=Object.prototype.hasOwnProperty,pne=/^[: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]*$/,lI={},cI={};function gne(t){return KA.call(cI,t)?!0:KA.call(lI,t)?!1:pne.test(t)?cI[t]=!0:(lI[t]=!0,!1)}function vne(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function yne(t,e,n,r){if(e===null||typeof e>"u"||vne(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ki(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Hr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Hr[t]=new ki(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Hr[e]=new ki(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Hr[t]=new ki(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Hr[t]=new ki(t,2,!1,t,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(t){Hr[t]=new ki(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Hr[t]=new ki(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Hr[t]=new ki(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Hr[t]=new ki(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Hr[t]=new ki(t,5,!1,t.toLowerCase(),null,!1,!1)});var Pj=/[\-:]([a-z])/g;function jj(t){return t[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(t){var e=t.replace(Pj,jj);Hr[e]=new ki(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Pj,jj);Hr[e]=new ki(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Pj,jj);Hr[e]=new ki(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Hr[t]=new ki(t,1,!1,t.toLowerCase(),null,!1,!1)});Hr.xlinkHref=new ki("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Hr[t]=new ki(t,1,!1,t.toLowerCase(),null,!0,!0)});function Nj(t,e,n,r){var i=Hr.hasOwnProperty(e)?Hr[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(yne(e,n,i,r)&&(n=null),r||i===null?gne(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var kl=mne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ix=Symbol.for("react.element"),cf=Symbol.for("react.portal"),uf=Symbol.for("react.fragment"),kj=Symbol.for("react.strict_mode"),QA=Symbol.for("react.profiler"),_$=Symbol.for("react.provider"),S$=Symbol.for("react.context"),Oj=Symbol.for("react.forward_ref"),ZA=Symbol.for("react.suspense"),JA=Symbol.for("react.suspense_list"),Ij=Symbol.for("react.memo"),tc=Symbol.for("react.lazy"),E$=Symbol.for("react.offscreen"),uI=Symbol.iterator;function qp(t){return t===null||typeof t!="object"?null:(t=uI&&t[uI]||t["@@iterator"],typeof t=="function"?t:null)}var Bn=Object.assign,eE;function Ng(t){if(eE===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);eE=e&&e[1]||""}return` 35`+eE+t}var tE=!1;function nE(t,e){if(!t||tE)return"";tE=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}
vendor: 5,503 bytes, lines 35-38
35catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` 36`),s=r.stack.split(` 37`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var c=` 38`+i[o].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=o&&0<=a);break}}}finally{tE=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Ng(t):""}function xne(t){switch(t.tag){case 5:return Ng(t.type);case 16:return Ng("Lazy");case 13:return Ng("Suspense");case 19:return Ng("SuspenseList");case 0:case 2:case 15:return t=nE(t.type,!1),t;case 11:return t=nE(t.type.render,!1),t;case 1:return t=nE(t.type,!0),t;default:return""}}function eC(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case uf:return"Fragment";case cf:return"Portal";case QA:return"Profiler";case kj:return"StrictMode";case ZA:return"Suspense";case JA:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case S$:return(t.displayName||"Context")+".Consumer";case _$:return(t._context.displayName||"Context")+".Provider";case Oj:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ij:return e=t.displayName||null,e!==null?e:eC(t.type)||"Memo";case tc:e=t._payload,t=t._init;try{return eC(t(e))}catch{}}return null}function bne(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return eC(e);case 8:return e===kj?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function qc(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function T$(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function wne(t){var e=T$(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function sx(t){t._valueTracker||(t._valueTracker=wne(t))}function A$(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=T$(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Sw(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function tC(t,e){var n=e.checked;return Bn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function dI(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=qc(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function C$(t,e){e=e.checked,e!=null&&Nj(t,"checked",e,!1)}function nC(t,e){C$(t,e);var n=qc(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?rC(t,e.type,n):e.hasOwnProperty("defaultValue")&&rC(t,e.type,qc(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function hI(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function rC(t,e,n){(e!=="number"||Sw(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var kg=Array.isArray;function If(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+qc(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function iC(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(Me(91));return Bn({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function fI(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(Me(92));
vendor: 12,730 bytes, line 38
38if(kg(n)){if(1<n.length)throw Error(Me(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:qc(n)}}function M$(t,e){var n=qc(e.value),r=qc(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function mI(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function R$(t){switch(t){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 sC(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?R$(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var ox,P$=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(ox=ox||document.createElement("div"),ox.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ox.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function zv(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Qg={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},_ne=["Webkit","ms","Moz","O"];Object.keys(Qg).forEach(function(t){_ne.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Qg[e]=Qg[t]})});function j$(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Qg.hasOwnProperty(t)&&Qg[t]?(""+e).trim():e+"px"}function N$(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=j$(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var Sne=Bn({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 oC(t,e){if(e){if(Sne[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Me(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Me(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Me(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Me(62))}}function aC(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 lC=null;function Lj(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var cC=null,Lf=null,Df=null;function pI(t){if(t=_0(t)){if(typeof cC!="function")throw Error(Me(280));var e=t.stateNode;e&&(e=W_(e),cC(t.stateNode,t.type,e))}}function k$(t){Lf?Df?Df.push(t):Df=[t]:Lf=t}function O$(){if(Lf){var t=Lf,e=Df;if(Df=Lf=null,pI(t),e)for(t=0;t<e.length;t++)pI(e[t])}}function I$(t,e){return t(e)}function L$(){}var rE=!1;function D$(t,e,n){if(rE)return t(e,n);rE=!0;try{return I$(t,e,n)}finally{rE=!1,(Lf!==null||Df!==null)&&(L$(),O$())}}function $v(t,e){var n=t.stateNode;if(n===null)return null;var r=W_(n);if(r===null)return null;n=r[e];e:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(Me(231,e,typeof n));return n}var uC=!1;if(xl)try{var Yp={};Object.defineProperty(Yp,"passive",{get:function(){uC=!0}}),window.addEventListener("test",Yp,Yp),window.removeEventListener("test",Yp,Yp)}catch{uC=!1}function Ene(t,e,n,r,i,s,o,a,c){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(d){this.onError(d)}}var Zg=!1,Ew=null,Tw=!1,dC=null,Tne={onError:function(t){Zg=!0,Ew=t}};function Ane(t,e,n,r,i,s,o,a,c){Zg=!1,Ew=null,Ene.apply(Tne,arguments)}function Cne(t,e,n,r,i,s,o,a,c){if(Ane.apply(this,arguments),Zg){if(Zg){var u=Ew;Zg=!1,Ew=null}else throw Error(Me(198));Tw||(Tw=!0,dC=u)}}function ch(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function F$(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function gI(t){if(ch(t)!==t)throw Error(Me(188))}function Mne(t){var e=t.alternate;if(!e){if(e=ch(t),e===null)throw Error(Me(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return gI(i),t;if(s===r)return gI(i),e;s=s.sibling}throw Error(Me(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(Me(189))}}if(n.alternate!==r)throw Error(Me(190))}if(n.tag!==3)throw Error(Me(188));return n.stateNode.current===n?t:e}function U$(t){return t=Mne(t),t!==null?B$(t):null}function B$(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=B$(t);if(e!==null)return e;t=t.sibling}return null}var z$=Cs.unstable_scheduleCallback,vI=Cs.unstable_cancelCallback,Rne=Cs.unstable_shouldYield,Pne=Cs.unstable_requestPaint,Jn=Cs.unstable_now,jne=Cs.unstable_getCurrentPriorityLevel,Dj=Cs.unstable_ImmediatePriority,$$=Cs.unstable_UserBlockingPriority,Aw=Cs.unstable_NormalPriority,Nne=Cs.unstable_LowPriority,H$=Cs.unstable_IdlePriority,z_=null,_a=null;function kne(t){if(_a&&typeof _a.onCommitFiberRoot=="function")try{_a.onCommitFiberRoot(z_,t,void 0,(t.current.flags&128)===128)}catch{}}var Wo=Math.clz32?Math.clz32:Lne,One=Math.log,Ine=Math.LN2;function Lne(t){return t>>>=0,t===0?32:31-(One(t)/Ine|0)|0}var ax=64,lx=4194304;function Og(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Cw(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Og(a):(s&=o,s!==0&&(r=Og(s)))}else o=n&~i,o!==0?r=Og(o):s!==0&&(r=Og(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Wo(e),i=1<<n,r|=t[n],e&=~i;return r}function Dne(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 Fne(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var o=31-Wo(s),a=1<<o,c=i[o];c===-1?(!(a&n)||a&r)&&(i[o]=Dne(a,e)):c<=e&&(t.expiredLanes|=a),s&=~a}}function hC(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function V$(){var t=ax;return ax<<=1,!(ax&4194240)&&(ax=64),t}function iE(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function b0(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Wo(e),t[e]=n}function Une(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-Wo(n),s=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~s}}function Fj(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Wo(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var an=0;function W$(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var G$,Uj,q$,Y$,X$,fC=!1,cx=[],Mc=null,Rc=null,Pc=null,Hv=new Map,Vv=new Map,ic=[],Bne="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 yI(t,e){switch(t){case"focusin":case"focusout":Mc=null;break;case"dragenter":case"dragleave":Rc=null;break;case"mouseover":case"mouseout":Pc=null;break;case"pointerover":case"pointerout":Hv.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vv.delete(e.pointerId)}}function Xp(t,e,n,r,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},e!==null&&(e=_0(e),e!==null&&Uj(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function zne(t,e,n,r,i){switch(e){case"focusin":return Mc=Xp(Mc,t,e,n,r,i),!0;case"dragenter":return Rc=Xp(Rc,t,e,n,r,i),!0;case"mouseover":return Pc=Xp(Pc,t,e,n,r,i),!0;case"pointerover":var s=i.pointerId;return Hv.set(s,Xp(Hv.get(s)||null,t,e,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Vv.set(s,Xp(Vv.get(s)||null,t,e,n,r,i)),!0}return!1}function K$(t){var e=Ju(t.target);if(e!==null){var n=ch(e);if(n!==null){if(e=n.tag,e===13){if(e=F$(n),e!==null){t.blockedOn=e,X$(t.priority,function(){q$(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function $b(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=mC(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);lC=r,n.target.dispatchEvent(r),lC=null}else return e=_0(n),e!==null&&Uj(e),t.blockedOn=n,!1;e.shift()}return!0}function xI(t,e,n){$b(t)&&n.delete(e)}function $ne(){fC=!1,Mc!==null&&$b(Mc)&&(Mc=null),Rc!==null&&$b(Rc)&&(Rc=null),Pc!==null&&$b(Pc)&&(Pc=null),Hv.forEach(xI),Vv.forEach(xI)}function Kp(t,e){t.blockedOn===e&&(t.blockedOn=null,fC||(fC=!0,Cs.unstable_scheduleCallback(Cs.unstable_NormalPriority,$ne)))}function Wv(t){function e(i){return Kp(i,t)}if(0<cx.length){Kp(cx[0],t);for(var n=1;n<cx.length;n++){var r=cx[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Mc!==null&&Kp(Mc,t),Rc!==null&&Kp(Rc,t),Pc!==null&&Kp(Pc,t),Hv.forEach(e),Vv.forEach(e),n=0;n<ic.length;n++)r=ic[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<ic.length&&(n=ic[0],n.blockedOn===null);)K$(n),n.blockedOn===null&&ic.shift()}var Ff=kl.ReactCurrentBatchConfig,Mw=!0;function Hne(t,e,n,r){var i=an,s=Ff.transition;Ff.transition=null;try{an=1,Bj(t,e,n,r)}finally{an=i,Ff.transition=s}}function Vne(t,e,n,r){var i=an,s=Ff.transition;Ff.transition=null;try{an=4,Bj(t,e,n,r)}finally{an=i,Ff.transition=s}}function Bj(t,e,n,r){if(Mw){var i=mC(t,e,n,r);if(i===null)mE(t,e,r,Rw,n),yI(t,r);else if(zne(i,t,e,n,r))r.stopPropagation();else if(yI(t,r),e&4&&-1<Bne.indexOf(t)){for(;i!==null;){var s=_0(i);if(s!==null&&G$(s),s=mC(t,e,n,r),s===null&&mE(t,e,r,Rw,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else mE(t,e,r,null,n)}}var Rw=null;function mC(t,e,n,r){if(Rw=null,t=Lj(r),t=Ju(t),t!==null)if(e=ch(t),e===null)t=null;else if(n=e.tag,n===13){if(t=F$(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Rw=t,null}
vendor: 10,457 bytes, line 38
38function Q$(t){switch(t){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(jne()){case Dj:return 1;case $$:return 4;case Aw:case Nne:return 16;case H$:return 536870912;default:return 16}default:return 16}}var gc=null,zj=null,Hb=null;function Z$(){if(Hb)return Hb;var t,e=zj,n=e.length,r,i="value"in gc?gc.value:gc.textContent,s=i.length;for(t=0;t<n&&e[t]===i[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===i[s-r];r++);return Hb=i.slice(t,1<r?1-r:void 0)}function Vb(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ux(){return!0}function bI(){return!1}function Ns(t){function e(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ux:bI,this.isPropagationStopped=bI,this}return Bn(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ux)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ux)},persist:function(){},isPersistent:ux}),e}var dp={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$j=Ns(dp),w0=Bn({},dp,{view:0,detail:0}),Wne=Ns(w0),sE,oE,Qp,$_=Bn({},w0,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hj,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Qp&&(Qp&&t.type==="mousemove"?(sE=t.screenX-Qp.screenX,oE=t.screenY-Qp.screenY):oE=sE=0,Qp=t),sE)},movementY:function(t){return"movementY"in t?t.movementY:oE}}),wI=Ns($_),Gne=Bn({},$_,{dataTransfer:0}),qne=Ns(Gne),Yne=Bn({},w0,{relatedTarget:0}),aE=Ns(Yne),Xne=Bn({},dp,{animationName:0,elapsedTime:0,pseudoElement:0}),Kne=Ns(Xne),Qne=Bn({},dp,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Zne=Ns(Qne),Jne=Bn({},dp,{data:0}),_I=Ns(Jne),ere={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tre={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"},nre={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rre(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=nre[t])?!!e[t]:!1}function Hj(){return rre}var ire=Bn({},w0,{key:function(t){if(t.key){var e=ere[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Vb(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?tre[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hj,charCode:function(t){return t.type==="keypress"?Vb(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Vb(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),sre=Ns(ire),ore=Bn({},$_,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),SI=Ns(ore),are=Bn({},w0,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hj}),lre=Ns(are),cre=Bn({},dp,{propertyName:0,elapsedTime:0,pseudoElement:0}),ure=Ns(cre),dre=Bn({},$_,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),hre=Ns(dre),fre=[9,13,27,32],Vj=xl&&"CompositionEvent"in window,Jg=null;xl&&"documentMode"in document&&(Jg=document.documentMode);var mre=xl&&"TextEvent"in window&&!Jg,J$=xl&&(!Vj||Jg&&8<Jg&&11>=Jg),EI=" ",TI=!1;function e7(t,e){switch(t){case"keyup":return fre.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t7(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var df=!1;function pre(t,e){switch(t){case"compositionend":return t7(e);case"keypress":return e.which!==32?null:(TI=!0,EI);case"textInput":return t=e.data,t===EI&&TI?null:t;default:return null}}function gre(t,e){if(df)return t==="compositionend"||!Vj&&e7(t,e)?(t=Z$(),Hb=zj=gc=null,df=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return J$&&e.locale!=="ko"?null:e.data;default:return null}}var vre={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 AI(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!vre[t.type]:e==="textarea"}function n7(t,e,n,r){k$(r),e=Pw(e,"onChange"),0<e.length&&(n=new $j("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var ev=null,Gv=null;function yre(t){f7(t,0)}function H_(t){var e=mf(t);if(A$(e))return t}function xre(t,e){if(t==="change")return e}var r7=!1;if(xl){var lE;if(xl){var cE="oninput"in document;if(!cE){var CI=document.createElement("div");CI.setAttribute("oninput","return;"),cE=typeof CI.oninput=="function"}lE=cE}else lE=!1;r7=lE&&(!document.documentMode||9<document.documentMode)}function MI(){ev&&(ev.detachEvent("onpropertychange",i7),Gv=ev=null)}function i7(t){if(t.propertyName==="value"&&H_(Gv)){var e=[];n7(e,Gv,t,Lj(t)),D$(yre,e)}}function bre(t,e,n){t==="focusin"?(MI(),ev=e,Gv=n,ev.attachEvent("onpropertychange",i7)):t==="focusout"&&MI()}function wre(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return H_(Gv)}function _re(t,e){if(t==="click")return H_(e)}function Sre(t,e){if(t==="input"||t==="change")return H_(e)}function Ere(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Xo=typeof Object.is=="function"?Object.is:Ere;function qv(t,e){if(Xo(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!KA.call(e,i)||!Xo(t[i],e[i]))return!1}return!0}function RI(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function PI(t,e){var n=RI(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=RI(n)}}function s7(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?s7(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function o7(){for(var t=window,e=Sw();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Sw(t.document)}return e}function Wj(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Tre(t){var e=o7(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&s7(n.ownerDocument.documentElement,n)){if(r!==null&&Wj(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=PI(n,s);var o=PI(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Are=xl&&"documentMode"in document&&11>=document.documentMode,hf=null,pC=null,tv=null,gC=!1;function jI(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gC||hf==null||hf!==Sw(r)||(r=hf,"selectionStart"in r&&Wj(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,510 bytes, line 38
38sNode:r.focusNode,focusOffset:r.focusOffset}),tv&&qv(tv,r)||(tv=r,r=Pw(pC,"onSelect"),0<r.length&&(e=new $j("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=hf)))}function dx(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ff={animationend:dx("Animation","AnimationEnd"),animationiteration:dx("Animation","AnimationIteration"),animationstart:dx("Animation","AnimationStart"),transitionend:dx("Transition","TransitionEnd")},uE={},a7={};xl&&(a7=document.createElement("div").style,"AnimationEvent"in window||(delete ff.animationend.animation,delete ff.animationiteration.animation,delete ff.animationstart.animation),"TransitionEvent"in window||delete ff.transitionend.transition);function V_(t){if(uE[t])return uE[t];if(!ff[t])return t;var e=ff[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in a7)return uE[t]=e[n];return t}var l7=V_("animationend"),c7=V_("animationiteration"),u7=V_("animationstart"),d7=V_("transitionend"),h7=new Map,NI="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function su(t,e){h7.set(t,e),lh(e,[t])}for(var dE=0;dE<NI.length;dE++){var hE=NI[dE],Cre=hE.toLowerCase(),Mre=hE[0].toUpperCase()+hE.slice(1);su(Cre,"on"+Mre)}su(l7,"onAnimationEnd");su(c7,"onAnimationIteration");su(u7,"onAnimationStart");su("dblclick","onDoubleClick");su("focusin","onFocus");su("focusout","onBlur");su(d7,"onTransitionEnd");gm("onMouseEnter",["mouseout","mouseover"]);gm("onMouseLeave",["mouseout","mouseover"]);gm("onPointerEnter",["pointerout","pointerover"]);gm("onPointerLeave",["pointerout","pointerover"]);lh("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));lh("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));lh("onBeforeInput",["compositionend","keypress","textInput","paste"]);lh("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));lh("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));lh("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ig="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(" "),Rre=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ig));function kI(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,Cne(r,e,void 0,t),t.currentTarget=null}function f7(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var s=void 0;if(e)for(var o=r.length-1;0<=o;o--){var a=r[o],c=a.instance,u=a.currentTarget;if(a=a.listener,c!==s&&i.isPropagationStopped())break e;kI(i,a,u),s=c}else for(o=0;o<r.length;o++){if(a=r[o],c=a.instance,u=a.currentTarget,a=a.listener,c!==s&&i.isPropagationStopped())break e;kI(i,a,u),s=c}}}if(Tw)throw t=dC,Tw=!1,dC=null,t}function _n(t,e){var n=e[wC];n===void 0&&(n=e[wC]=new Set);var r=t+"__bubble";n.has(r)||(m7(e,t,2,!1),n.add(r))}function fE(t,e,n){var r=0;e&&(r|=4),m7(n,t,r,e)}var hx="_reactListening"+Math.random().toString(36).slice(2);function Yv(t){if(!t[hx]){t[hx]=!0,w$.forEach(function(n){n!=="selectionchange"&&(Rre.has(n)||fE(n,!1,t),fE(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[hx]||(e[hx]=!0,fE("selectionchange",!1,e))}}function m7(t,e,n,r){switch(Q$(e)){case 1:var i=Hne;break;case 4:i=Vne;break;default:i=Bj}n=i.bind(null,e,n,t),i=void 0,!uC||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function mE(t,e,n,r,i){var s=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;
vendor: 4,557 bytes, line 38
38if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Ju(a),o===null)return;if(c=o.tag,c===5||c===6){r=s=o;continue e}a=a.parentNode}}r=r.return}D$(function(){var u=s,d=Lj(n),h=[];e:{var f=h7.get(t);if(f!==void 0){var m=$j,v=t;switch(t){case"keypress":if(Vb(n)===0)break e;case"keydown":case"keyup":m=sre;break;case"focusin":v="focus",m=aE;break;case"focusout":v="blur",m=aE;break;case"beforeblur":case"afterblur":m=aE;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":m=wI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=qne;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=lre;break;case l7:case c7:case u7:m=Kne;break;case d7:m=ure;break;case"scroll":m=Wne;break;case"wheel":m=hre;break;case"copy":case"cut":case"paste":m=Zne;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=SI}var p=(e&4)!==0,g=!p&&t==="scroll",y=p?f!==null?f+"Capture":null:f;p=[];for(var b=u,x;b!==null;){x=b;var w=x.stateNode;if(x.tag===5&&w!==null&&(x=w,y!==null&&(w=$v(b,y),w!=null&&p.push(Xv(b,w,x)))),g)break;b=b.return}0<p.length&&(f=new m(f,v,null,n,d),h.push({event:f,listeners:p}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",f&&n!==lC&&(v=n.relatedTarget||n.fromElement)&&(Ju(v)||v[bl]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=u,v=v?Ju(v):null,v!==null&&(g=ch(v),v!==g||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(p=wI,w="onMouseLeave",y="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(p=SI,w="onPointerLeave",y="onPointerEnter",b="pointer"),g=m==null?f:mf(m),x=v==null?f:mf(v),f=new p(w,b+"leave",m,n,d),f.target=g,f.relatedTarget=x,w=null,Ju(d)===u&&(p=new p(y,b+"enter",v,n,d),p.target=x,p.relatedTarget=g,w=p),g=w,m&&v)t:{for(p=m,y=v,b=0,x=p;x;x=_h(x))b++;for(x=0,w=y;w;w=_h(w))x++;for(;0<b-x;)p=_h(p),b--;for(;0<x-b;)y=_h(y),x--;for(;b--;){if(p===y||y!==null&&p===y.alternate)break t;p=_h(p),y=_h(y)}p=null}else p=null;m!==null&&OI(h,f,m,p,!1),v!==null&&g!==null&&OI(h,g,v,p,!0)}}e:{if(f=u?mf(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var _=xre;else if(AI(f))if(r7)_=Sre;else{_=wre;var S=bre}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=_re);if(_&&(_=_(t,u))){n7(h,_,n,d);break e}S&&S(t,f,u),t==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&rC(f,"number",f.value)}switch(S=u?mf(u):window,t){case"focusin":(AI(S)||S.contentEditable==="true")&&(hf=S,pC=u,tv=null);break;case"focusout":tv=pC=hf=null;break;case"mousedown":gC=!0;break;case"contextmenu":case"mouseup":case"dragend":gC=!1,jI(h,n,d);break;case"selectionchange":if(Are)break;case"keydown":case"keyup":jI(h,n,d)}var T;if(Vj)e:{switch(t){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else df?e7(t,n)&&(M="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(J$&&n.locale!=="ko"&&(df||M!=="onCompositionStart"?M==="onCompositionEnd"&&df&&(T=Z$()):(gc=d,zj="value"in gc?gc.value:gc.textContent,df=!0)),S=Pw(u,M),0<S.length&&(M=new _I(M,t,null,n,d),h.push({event:M,listeners:S}),T?M.data=T:(T=t7(n),T!==null&&(M.data=T)))),(T=mre?pre(t,n):gre(t,n))&&(u=Pw(u,"onBeforeInput"),0<u.length&&(d=new _I("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=T))}f7(h,e)})}function Xv(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Pw(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=$v(t,n),s!=null&&r.unshift(Xv(t,s,i)),s=$v(t,e),s!=null&&r.push(Xv(t,s,i))),t=t.return}return r}function _h(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function OI(t,e,n,r,i){for(var s=e._reactName,o=[];n!==null&&n!==r;){var a=n,c=a.alternate,u=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&u!==null&&(a=u,i?(c=$v(n,s),c!=null&&o.unshift(Xv(n,c,a))):i||(c=$v(n,s),c!=null&&o.push(Xv(n,
vendor: 4,761 bytes, lines 38-39
38c,a)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var Pre=/\r\n?/g,jre=/\u0000|\uFFFD/g;function II(t){return(typeof t=="string"?t:""+t).replace(Pre,` 39`).replace(jre,"")}function fx(t,e,n){if(e=II(e),II(t)!==e&&n)throw Error(Me(425))}function jw(){}var vC=null,yC=null;function xC(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var bC=typeof setTimeout=="function"?setTimeout:void 0,Nre=typeof clearTimeout=="function"?clearTimeout:void 0,LI=typeof Promise=="function"?Promise:void 0,kre=typeof queueMicrotask=="function"?queueMicrotask:typeof LI<"u"?function(t){return LI.resolve(null).then(t).catch(Ore)}:bC;function Ore(t){setTimeout(function(){throw t})}function pE(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),Wv(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Wv(e)}function jc(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function DI(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var hp=Math.random().toString(36).slice(2),ha="__reactFiber$"+hp,Kv="__reactProps$"+hp,bl="__reactContainer$"+hp,wC="__reactEvents$"+hp,Ire="__reactListeners$"+hp,Lre="__reactHandles$"+hp;function Ju(t){var e=t[ha];if(e)return e;for(var n=t.parentNode;n;){if(e=n[bl]||n[ha]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=DI(t);t!==null;){if(n=t[ha])return n;t=DI(t)}return e}t=n,n=t.parentNode}return null}function _0(t){return t=t[ha]||t[bl],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function mf(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(Me(33))}function W_(t){return t[Kv]||null}var _C=[],pf=-1;function ou(t){return{current:t}}function An(t){0>pf||(t.current=_C[pf],_C[pf]=null,pf--)}function bn(t,e){pf++,_C[pf]=t.current,t.current=e}var Yc={},ui=ou(Yc),qi=ou(!1),Dd=Yc;function vm(t,e){var n=t.type.contextTypes;if(!n)return Yc;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Yi(t){return t=t.childContextTypes,t!=null}function Nw(){An(qi),An(ui)}function FI(t,e,n){if(ui.current!==Yc)throw Error(Me(168));bn(ui,e),bn(qi,n)}function p7(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(Me(108,bne(t)||"Unknown",i));return Bn({},n,r)}function kw(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Yc,Dd=ui.current,bn(ui,t),bn(qi,qi.current),!0}function UI(t,e,n){var r=t.stateNode;if(!r)throw Error(Me(169));n?(t=p7(t,e,Dd),r.__reactInternalMemoizedMergedChildContext=t,An(qi),An(ui),bn(ui,t)):An(qi),bn(qi,n)}var nl=null,G_=!1,gE=!1;function g7(t){nl===null?nl=[t]:nl.push(t)}function Dre(t){G_=!0,g7(t)}function au(){if(!gE&&nl!==null){gE=!0;var t=0,e=an;try{var n=nl;for(an=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}nl=null,G_=!1}catch(i){throw nl!==null&&(nl=nl.slice(t+1)),z$(Dj,au),i}finally{an=e,gE=!1}}return null}var gf=[],vf=0,Ow=null,Iw=0,Vs=[],Ws=0,Fd=null,al=1,ll="";function Du(t,e){gf[vf++]=Iw,gf[vf++]=Ow,Ow=t,Iw=e}function v7(t,e,n){Vs[Ws++]=al,Vs[Ws++]=ll,Vs[Ws++]=Fd,Fd=t;var r=al;t=ll;var i=32-Wo(r)-1;r&=~(1<<i),n+=1;var s=32-Wo(e)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,al=1<<32-Wo(e)+i|n<<i|r,ll=s+t}else al=1<<s|n<<i|r,ll=t}function Gj(t){t.return!==null&&(Du(t,1),v7(t,1,0))}function qj(t){for(;t===Ow;)Ow=gf[--vf],gf[vf]=null,Iw=gf[--vf],gf[vf]=null;for(;t===Fd;)Fd=Vs[--Ws],Vs[Ws]=null,ll=Vs[--Ws],Vs[Ws]=null,al=Vs[--Ws],Vs[Ws]=null}var _s=null,bs=null,Rn=!1,Io=null;function y7(t,e){var n=Ks(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function BI(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,_s=t,bs=jc(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,_s=t,bs=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Fd!==null?{id:al,overflow:ll}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824}
vendor: 16,170 bytes, line 39
39,n=Ks(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,_s=t,bs=null,!0):!1;default:return!1}}function SC(t){return(t.mode&1)!==0&&(t.flags&128)===0}function EC(t){if(Rn){var e=bs;if(e){var n=e;if(!BI(t,e)){if(SC(t))throw Error(Me(418));e=jc(n.nextSibling);var r=_s;e&&BI(t,e)?y7(r,n):(t.flags=t.flags&-4097|2,Rn=!1,_s=t)}}else{if(SC(t))throw Error(Me(418));t.flags=t.flags&-4097|2,Rn=!1,_s=t}}}function zI(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;_s=t}function mx(t){if(t!==_s)return!1;if(!Rn)return zI(t),Rn=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!xC(t.type,t.memoizedProps)),e&&(e=bs)){if(SC(t))throw x7(),Error(Me(418));for(;e;)y7(t,e),e=jc(e.nextSibling)}if(zI(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Me(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){bs=jc(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}bs=null}}else bs=_s?jc(t.stateNode.nextSibling):null;return!0}function x7(){for(var t=bs;t;)t=jc(t.nextSibling)}function ym(){bs=_s=null,Rn=!1}function Yj(t){Io===null?Io=[t]:Io.push(t)}var Fre=kl.ReactCurrentBatchConfig;function Zp(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Me(309));var r=n.stateNode}if(!r)throw Error(Me(147,t));var i=r,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},e._stringRef=s,e)}if(typeof t!="string")throw Error(Me(284));if(!n._owner)throw Error(Me(290,t))}return t}function px(t,e){throw t=Object.prototype.toString.call(e),Error(Me(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function $I(t){var e=t._init;return e(t._payload)}function b7(t){function e(y,b){if(t){var x=y.deletions;x===null?(y.deletions=[b],y.flags|=16):x.push(b)}}function n(y,b){if(!t)return null;for(;b!==null;)e(y,b),b=b.sibling;return null}function r(y,b){for(y=new Map;b!==null;)b.key!==null?y.set(b.key,b):y.set(b.index,b),b=b.sibling;return y}function i(y,b){return y=Ic(y,b),y.index=0,y.sibling=null,y}function s(y,b,x){return y.index=x,t?(x=y.alternate,x!==null?(x=x.index,x<b?(y.flags|=2,b):x):(y.flags|=2,b)):(y.flags|=1048576,b)}function o(y){return t&&y.alternate===null&&(y.flags|=2),y}function a(y,b,x,w){return b===null||b.tag!==6?(b=SE(x,y.mode,w),b.return=y,b):(b=i(b,x),b.return=y,b)}function c(y,b,x,w){var _=x.type;return _===uf?d(y,b,x.props.children,w,x.key):b!==null&&(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===tc&&$I(_)===b.type)?(w=i(b,x.props),w.ref=Zp(y,b,x),w.return=y,w):(w=Qb(x.type,x.key,x.props,null,y.mode,w),w.ref=Zp(y,b,x),w.return=y,w)}function u(y,b,x,w){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=EE(x,y.mode,w),b.return=y,b):(b=i(b,x.children||[]),b.return=y,b)}function d(y,b,x,w,_){return b===null||b.tag!==7?(b=bd(x,y.mode,w,_),b.return=y,b):(b=i(b,x),b.return=y,b)}function h(y,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=SE(""+b,y.mode,x),b.return=y,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ix:return x=Qb(b.type,b.key,b.props,null,y.mode,x),x.ref=Zp(y,null,b),x.return=y,x;case cf:return b=EE(b,y.mode,x),b.return=y,b;case tc:var w=b._init;return h(y,w(b._payload),x)}if(kg(b)||qp(b))return b=bd(b,y.mode,x,null),b.return=y,b;px(y,b)}return null}function f(y,b,x,w){var _=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:a(y,b,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ix:return x.key===_?c(y,b,x,w):null;case cf:return x.key===_?u(y,b,x,w):null;case tc:return _=x._init,f(y,b,_(x._payload),w)}if(kg(x)||qp(x))return _!==null?null:d(y,b,x,w,null);px(y,x)}return null}function m(y,b,x,w,_){if(typeof w=="string"&&w!==""||typeof w=="number")return y=y.get(x)||null,a(b,y,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ix:return y=y.get(w.key===null?x:w.key)||null,c(b,y,w,_);case cf:return y=y.get(w.key===null?x:w.key)||null,u(b,y,w,_);case tc:var S=w._init;return m(y,b,x,S(w._payload),_)}if(kg(w)||qp(w))return y=y.get(x)||null,d(b,y,w,_,null);px(b,w)}return null}function v(y,b,x,w){for(var _=null,S=null,T=b,M=b=0,A=null;T!==null&&M<x.length;M++){T.index>M?(A=T,T=null):A=T.sibling;var C=f(y,T,x[M],w);if(C===null){T===null&&(T=A);break}t&&T&&C.alternate===null&&e(y,T),b=s(C,b,M),S===null?_=C:S.sibling=C,S=C,T=A}if(M===x.length)return n(y,T),Rn&&Du(y,M),_;if(T===null){for(;M<x.length;M++)T=h(y,x[M],w),T!==null&&(b=s(T,b,M),S===null?_=T:S.sibling=T,S=T);return Rn&&Du(y,M),_}for(T=r(y,T);M<x.length;M++)A=m(T,y,M,x[M],w),A!==null&&(t&&A.alternate!==null&&T.delete(A.key===null?M:A.key),b=s(A,b,M),S===null?_=A:S.sibling=A,S=A);return t&&T.forEach(function(R){return e(y,R)}),Rn&&Du(y,M),_}function p(y,b,x,w){var _=qp(x);if(typeof _!="function")throw Error(Me(150));if(x=_.call(x),x==null)throw Error(Me(151));for(var S=_=null,T=b,M=b=0,A=null,C=x.next();T!==null&&!C.done;M++,C=x.next()){T.index>M?(A=T,T=null):A=T.sibling;var R=f(y,T,C.value,w);if(R===null){T===null&&(T=A);break}t&&T&&R.alternate===null&&e(y,T),b=s(R,b,M),S===null?_=R:S.sibling=R,S=R,T=A}if(C.done)return n(y,T),Rn&&Du(y,M),_;if(T===null){for(;!C.done;M++,C=x.next())C=h(y,C.value,w),C!==null&&(b=s(C,b,M),S===null?_=C:S.sibling=C,S=C);return Rn&&Du(y,M),_}for(T=r(y,T);!C.done;M++,C=x.next())C=m(T,y,M,C.value,w),C!==null&&(t&&C.alternate!==null&&T.delete(C.key===null?M:C.key),b=s(C,b,M),S===null?_=C:S.sibling=C,S=C);return t&&T.forEach(function(j){return e(y,j)}),Rn&&Du(y,M),_}function g(y,b,x,w){if(typeof x=="object"&&x!==null&&x.type===uf&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ix:e:{for(var _=x.key,S=b;S!==null;){if(S.key===_){if(_=x.type,_===uf){if(S.tag===7){n(y,S.sibling),b=i(S,x.props.children),b.return=y,y=b;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===tc&&$I(_)===S.type){n(y,S.sibling),b=i(S,x.props),b.ref=Zp(y,S,x),b.return=y,y=b;break e}n(y,S);break}else e(y,S);S=S.sibling}x.type===uf?(b=bd(x.props.children,y.mode,w,x.key),b.return=y,y=b):(w=Qb(x.type,x.key,x.props,null,y.mode,w),w.ref=Zp(y,b,x),w.return=y,y=w)}return o(y);case cf:e:{for(S=x.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(y,b.sibling),b=i(b,x.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else e(y,b);b=b.sibling}b=EE(x,y.mode,w),b.return=y,y=b}return o(y);case tc:return S=x._init,g(y,b,S(x._payload),w)}if(kg(x))return v(y,b,x,w);if(qp(x))return p(y,b,x,w);px(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(y,b.sibling),b=i(b,x),b.return=y,y=b):(n(y,b),b=SE(x,y.mode,w),b.return=y,y=b),o(y)):n(y,b)}return g}var xm=b7(!0),w7=b7(!1),Lw=ou(null),Dw=null,yf=null,Xj=null;function Kj(){Xj=yf=Dw=null}function Qj(t){var e=Lw.current;An(Lw),t._currentValue=e}function TC(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Uf(t,e){Dw=t,Xj=yf=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Vi=!0),t.firstContext=null)}function lo(t){var e=t._currentValue;if(Xj!==t)if(t={context:t,memoizedValue:e,next:null},yf===null){if(Dw===null)throw Error(Me(308));yf=t,Dw.dependencies={lanes:0,firstContext:t}}else yf=yf.next=t;return e}var ed=null;function Zj(t){ed===null?ed=[t]:ed.push(t)}function _7(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,Zj(e)):(n.next=i.next,i.next=n),e.interleaved=n,wl(t,r)}function wl(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var nc=!1;function Jj(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function S7(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function ml(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Nc(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Wt&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,wl(t,n)}return i=r.interleaved,i===null?(e.next=e,Zj(r)):(e.next=i.next,i.next=e),r.interleaved=e,wl(t,n)}function Wb(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Fj(t,n)}}function HI(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=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};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Fw(t,e,n,r){var i=t.updateQueue;nc=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var c=a,u=c.next;c.next=null,o===null?s=u:o.next=u,o=c;var d=t.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=c))}if(s!==null){var h=i.baseState;o=0,d=u=c=null,a=s;do{var f=a.lane,m=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=t,p=a;switch(f=e,m=n,p.tag){case 1:if(v=p.payload,typeof v=="function"){h=v.call(m,h,f);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,f=typeof v=="function"?v.call(m,h,f):v,f==null)break e;h=Bn({},h,f);break e;case 2:nc=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=m,c=h):d=d.next=m,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(c=h),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Bd|=o,t.lanes=o,t.memoizedState=h}}function VI(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Me(191,i));i.call(r)}}}var S0={},Sa=ou(S0),Qv=ou(S0),Zv=ou(S0);function td(t){if(t===S0)throw Error(Me(174));return t}function eN(t,e){switch(bn(Zv,e),bn(Qv,t),bn(Sa,S0),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:sC(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=sC(e,t)}An(Sa),bn(Sa,e)}function bm(){An(Sa),An(Qv),An(Zv)}function E7(t){td(Zv.current);var e=td(Sa.current),n=sC(e,t.type);e!==n&&(bn(Qv,t),bn(Sa,n))}function tN(t){Qv.current===t&&(An(Sa),An(Qv))}var In=ou(0);function Uw(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var vE=[];function nN(){for(var t=0;t<vE.length;t++)vE[t]._workInProgressVersionPrimary=null;vE.length=0}var Gb=kl.ReactCurrentDispatcher,yE=kl.ReactCurrentBatchConfig,Ud=0,Un=null,mr=null,Mr=null,Bw=!1,nv=!1,Jv=0,Ure=0;function qr(){throw Error(Me(321))}function rN(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Xo(t[n],e[n]))return!1;return!0}function iN(t,e,n,r,i,s){if(Ud=s,Un=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Gb.current=t===null||t.memoizedState===null?Hre:Vre,t=n(r,i),nv){s=0;do{if(nv=!1,Jv=0,25<=s)throw Error(Me(301));s+=1,Mr=mr=null,e.updateQueue=null,Gb.current=Wre,t=n(r,i)}while(nv)}if(Gb.current=zw,e=mr!==null&&mr.next!==null,Ud=0,Mr=mr=Un=null,Bw=!1,e)throw Error(Me(300));return t}function sN(){var t=Jv!==0;return Jv=0,t}function sa(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mr===null?Un.memoizedState=Mr=t:Mr=Mr.next=t,Mr}function co(){if(mr===null){var t=Un.alternate;t=t!==null?t.memoizedState:null}else t=mr.next;var e=Mr===null?Un.memoizedState:Mr.next;if(e!==null)Mr=e,mr=t;else{if(t===null)throw Error(Me(310));mr=t,t={memoizedState:mr.memoizedState,baseState:mr.baseState,baseQueue:mr.baseQueue,queue:mr.queue,next:null},Mr===null?Un.memoizedState=Mr=t:Mr=Mr.next=t}return Mr}function ey(t,e){return typeof e=="function"?e(t):e}function xE(t){var e=co(),n=e.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=t;var r=mr,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,c=null,u=s;do{var d=u.lane;if((Ud&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:t(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(a=c=h,o=r):c=c.next=h,Un.lanes|=d,Bd|=d}u=u.next}while(u!==null&&u!==s);c===null?o=r:c.next=a,Xo(r,e.memoizedState)||(Vi=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=c,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do s=i.lane,Un.lanes|=s,Bd|=s,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function bE(t){var e=co(),n=e.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,s=e.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);Xo(s,e.memoizedState)||(Vi=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,r]}function T7(){}function A7(t,e){var n=Un,r=co(),i=e(),s=!Xo(r.memoizedState,i);if(s&&(r.memoizedState=i,Vi=!0),r=r.queue,oN(R7.bind(null,n,r,t),[t]),r.getSnapshot!==e||s||Mr!==null&&Mr.memoizedState.tag&1){if(n.flags|=2048,ty(9,M7.bind(null,n,r,i,e),void 0,null),jr===null)throw Error(Me(349));Ud&30||C7(n,e,i)}return i}function C7(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Un.updateQueue,e===null?(e={lastEffect:null,stores:null},Un.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function M7(t,e,n,r){e.value=n,e.getSnapshot=r,P7(e)&&j7(t)}function R7(t,e,n){return n(function(){P7(e)&&j7(t)})}function P7(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Xo(t,n)}catch{return!0}}function j7(t){var e=wl(t,1);e!==null&&Go(e,t,1,-1)}function WI(t){var e=sa();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ey,lastRenderedState:t},e.queue=t,t=t.dispatch=$re.bind(null,Un,t),[e.memoizedState,t]}function ty(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Un.updateQueue,e===null?(e={lastEffect:null,stores:null},Un.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function N7(){return co().memoizedState}function qb(t,e,n,r){var i=sa();Un.flags|=t,i.memoizedState=ty(1|e,n,void 0,r===void 0?null:r)}function q_(t,e,n,r){var i=co();r=r===void 0?null:r;var s=void 0;if(mr!==null){var o=mr.memoizedState;if(s=o.destroy,r!==null&&rN(r,o.deps)){i.memoizedState=ty(e,n,s,r);return}}Un.flags|=t,i.memoizedState=ty(1|e,n,s,r)}
vendor: 4,351 bytes, line 39
39function GI(t,e){return qb(8390656,8,t,e)}function oN(t,e){return q_(2048,8,t,e)}function k7(t,e){return q_(4,2,t,e)}function O7(t,e){return q_(4,4,t,e)}function I7(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function L7(t,e,n){return n=n!=null?n.concat([t]):null,q_(4,4,I7.bind(null,e,t),n)}function aN(){}function D7(t,e){var n=co();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&rN(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function F7(t,e){var n=co();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&rN(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function U7(t,e,n){return Ud&21?(Xo(n,e)||(n=V$(),Un.lanes|=n,Bd|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Vi=!0),t.memoizedState=n)}function Bre(t,e){var n=an;an=n!==0&&4>n?n:4,t(!0);var r=yE.transition;yE.transition={};try{t(!1),e()}finally{an=n,yE.transition=r}}function B7(){return co().memoizedState}function zre(t,e,n){var r=Oc(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},z7(t))$7(e,n);else if(n=_7(t,e,n,r),n!==null){var i=Ri();Go(n,t,r,i),H7(n,e,r)}}function $re(t,e,n){var r=Oc(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(z7(t))$7(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Xo(a,o)){var c=e.interleaved;c===null?(i.next=i,Zj(e)):(i.next=c.next,c.next=i),e.interleaved=i;return}}catch{}finally{}n=_7(t,e,i,r),n!==null&&(i=Ri(),Go(n,t,r,i),H7(n,e,r))}}function z7(t){var e=t.alternate;return t===Un||e!==null&&e===Un}function $7(t,e){nv=Bw=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function H7(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Fj(t,n)}}var zw={readContext:lo,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useInsertionEffect:qr,useLayoutEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useMutableSource:qr,useSyncExternalStore:qr,useId:qr,unstable_isNewReconciler:!1},Hre={readContext:lo,useCallback:function(t,e){return sa().memoizedState=[t,e===void 0?null:e],t},useContext:lo,useEffect:GI,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,qb(4194308,4,I7.bind(null,e,t),n)},useLayoutEffect:function(t,e){return qb(4194308,4,t,e)},useInsertionEffect:function(t,e){return qb(4,2,t,e)},useMemo:function(t,e){var n=sa();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=sa();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=zre.bind(null,Un,t),[r.memoizedState,t]},useRef:function(t){var e=sa();return t={current:t},e.memoizedState=t},useState:WI,useDebugValue:aN,useDeferredValue:function(t){return sa().memoizedState=t},useTransition:function(){var t=WI(!1),e=t[0];return t=Bre.bind(null,t[1]),sa().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Un,i=sa();if(Rn){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=e(),jr===null)throw Error(Me(349));Ud&30||C7(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,GI(R7.bind(null,r,s,t),[t]),r.flags|=2048,ty(9,M7.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=sa(),e=jr.identifierPrefix;if(Rn){var n=ll,r=al;n=(r&~(1<<32-Wo(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Jv++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=Ure++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},Vre={readContext:lo,useCallback:D7,useContext:lo,useEffect:oN,useImperativeHandle:L7,useInsertionEffect:k7,useLayoutEffect:O7,useMemo:F7,useReducer:xE,useRef:N7,useState:function(){return xE(ey)},useDebugValue:aN,useDeferredValue:function(t){var e=co();return U7(e,mr.memoizedState,t)},useTransition:function(){var t=xE(ey)[0],e=co().memoizedState;return[t,e]},useMutableSource:T7,useSyncExternalStore:A7,useId:B7,unstable_isNewReconciler:!1},Wre={readContext:lo,useCallback:D7,useContext:lo,useEffect:oN,useImperativeHandle:L7,useInsertionEffect:k7,useLayoutEffect:O7,useMemo:F7,useReducer:bE,useRef
vendor: 5,974 bytes, lines 39-41
39:N7,useState:function(){return bE(ey)},useDebugValue:aN,useDeferredValue:function(t){var e=co();return mr===null?e.memoizedState=t:U7(e,mr.memoizedState,t)},useTransition:function(){var t=bE(ey)[0],e=co().memoizedState;return[t,e]},useMutableSource:T7,useSyncExternalStore:A7,useId:B7,unstable_isNewReconciler:!1};function Ro(t,e){if(t&&t.defaultProps){e=Bn({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function AC(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Bn({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Y_={isMounted:function(t){return(t=t._reactInternals)?ch(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Ri(),i=Oc(t),s=ml(r,i);s.payload=e,n!=null&&(s.callback=n),e=Nc(t,s,i),e!==null&&(Go(e,t,i,r),Wb(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Ri(),i=Oc(t),s=ml(r,i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Nc(t,s,i),e!==null&&(Go(e,t,i,r),Wb(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ri(),r=Oc(t),i=ml(n,r);i.tag=2,e!=null&&(i.callback=e),e=Nc(t,i,r),e!==null&&(Go(e,t,r,n),Wb(e,t,r))}};function qI(t,e,n,r,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,s,o):e.prototype&&e.prototype.isPureReactComponent?!qv(n,r)||!qv(i,s):!0}function V7(t,e,n){var r=!1,i=Yc,s=e.contextType;return typeof s=="object"&&s!==null?s=lo(s):(i=Yi(e)?Dd:ui.current,r=e.contextTypes,s=(r=r!=null)?vm(t,i):Yc),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Y_,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function YI(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Y_.enqueueReplaceState(e,e.state,null)}function CC(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},Jj(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=lo(s):(s=Yi(e)?Dd:ui.current,i.context=vm(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(AC(t,e,s,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Y_.enqueueReplaceState(i,i.state,null),Fw(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function wm(t,e){try{var n="",r=e;do n+=xne(r),r=r.return;while(r);var i=n}catch(s){i=` 40Error generating stack: `+s.message+` 41`+s.stack}return{value:t,source:e,stack:i,digest:null}}function wE(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function MC(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var Gre=typeof WeakMap=="function"?WeakMap:Map;function W7(t,e,n){n=ml(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Hw||(Hw=!0,FC=r),MC(t,e)},n}function G7(t,e,n){n=ml(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){MC(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){MC(t,e),typeof r!="function"&&(kc===null?kc=new Set([this]):kc.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function XI(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new Gre;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=oie.bind(null,t,e,n),e.then(t,t))}function KI(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function QI(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=ml(-1,1),e.tag=2,Nc(n,e,1))),n.lanes|=1),t)}var qre=kl.ReactCurrentOwner,Vi=!1;function xi(t,e,n,r){e.child=t===null?w7(e,null,n,r):xm(e,t.child,n,r)}function ZI(t,e,n,r,i){n=n.render;var s=e.ref;return Uf(e,i),r=iN(t,e,n,r,s,i),n=sN(),t!==null&&!Vi?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,_l(t,e,i)):(Rn&&n&&Gj(e),e.flags|=1,xi(t,e,r,i),e.child)}function JI(t,e,n,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!pN(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,q7(t,e,s,r,i)):(t=Qb(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:qv,n(o,r)&&t.ref===e.ref)return _l(t,e,i)}return e.flags|=1,t=Ic(s,r),t.ref=e.ref,t.return=e,e.child=t}function q7(t,e,n,r,i){if(t!==null){var s=t.memoizedProps;if(qv(s,r)&&t.ref===e.ref)if(Vi=!1,e.pendingProps=r=s,(t.lanes&i)!==0)t.flags&131072&&(Vi=!0);else return e.lanes=t.lanes,_l(t,e,i)}return RC(t,e,n,r,i)}function Y7(t,e,n){var r=e.pendingProps,i=r.children,s=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},bn(bf,us),us|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,bn(bf,us),us|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,bn(bf,us),us|=r}else s!==null?(r=s.baseLanes|n,e.memoizedState=null):r=n,bn(bf,us),us|=r;return xi(t,e,i,n),e.child}function X7(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}
vendor: 8,028 bytes, line 41
41function RC(t,e,n,r,i){var s=Yi(n)?Dd:ui.current;return s=vm(e,s),Uf(e,i),n=iN(t,e,n,r,s,i),r=sN(),t!==null&&!Vi?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,_l(t,e,i)):(Rn&&r&&Gj(e),e.flags|=1,xi(t,e,n,i),e.child)}function e4(t,e,n,r,i){if(Yi(n)){var s=!0;kw(e)}else s=!1;if(Uf(e,i),e.stateNode===null)Yb(t,e),V7(e,n,r),CC(e,n,r,i),r=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=lo(u):(u=Yi(n)?Dd:ui.current,u=vm(e,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||c!==u)&&YI(e,o,r,u),nc=!1;var f=e.memoizedState;o.state=f,Fw(e,r,o,i),c=e.memoizedState,a!==r||f!==c||qi.current||nc?(typeof d=="function"&&(AC(e,n,d,r),c=e.memoizedState),(a=nc||qI(e,n,a,r,f,c,u))?(h||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"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=c),o.props=r,o.state=c,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,S7(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:Ro(e.type,a),o.props=u,h=e.pendingProps,f=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=lo(c):(c=Yi(n)?Dd:ui.current,c=vm(e,c));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||f!==c)&&YI(e,o,r,c),nc=!1,f=e.memoizedState,o.state=f,Fw(e,r,o,i);var v=e.memoizedState;a!==h||f!==v||qi.current||nc?(typeof m=="function"&&(AC(e,n,m,r),v=e.memoizedState),(u=nc||qI(e,n,u,r,f,v,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,c)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=v),o.props=r,o.state=v,o.context=c,r=u):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),r=!1)}return PC(t,e,n,r,s,i)}function PC(t,e,n,r,i,s){X7(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return i&&UI(e,n,!1),_l(t,e,s);r=e.stateNode,qre.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=xm(e,t.child,null,s),e.child=xm(e,null,a,s)):xi(t,e,a,s),e.memoizedState=r.state,i&&UI(e,n,!0),e.child}function K7(t){var e=t.stateNode;e.pendingContext?FI(t,e.pendingContext,e.pendingContext!==e.context):e.context&&FI(t,e.context,!1),eN(t,e.containerInfo)}function t4(t,e,n,r,i){return ym(),Yj(i),e.flags|=256,xi(t,e,n,r),e.child}var jC={dehydrated:null,treeContext:null,retryLane:0};function NC(t){return{baseLanes:t,cachePool:null,transitions:null}}function Q7(t,e,n){var r=e.pendingProps,i=In.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),bn(In,i&1),t===null)return EC(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,s?(r=e.mode,s=e.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Q_(o,r,0,null),t=bd(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=NC(n),e.memoizedState=jC,t):lN(e,o));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Yre(t,e,o,r,a,i,n);if(s){s=r.fallback,o=e.mode,i=t.child,a=i.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=c,e.deletions=null):(r=Ic(i,c),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Ic(a,s):(s=bd(s,o,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,o=t.child.memoizedState,o=o===null?NC(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=jC,r}return s=t.child,t=s.sibling,r=Ic(s,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function lN(t,e){return e=Q_({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function gx(t,e,n,r){return r!==null&&Yj(r),xm(e,t.child,null,n),t=lN(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Yre(t,e,n,r,i,s,o){if(n)return e.flags&256?(e.flags&=-257,r=wE(Error(Me(422))),gx(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=Q_({mode:"visible",children:r.children},i,0,null),s=bd(s,i,o,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&xm(e,t.child,null,o),e.child.memoizedState=NC(o),e.memoizedState=jC,s);if(!(e.mode&1))return gx(t,e,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(Me(419)),r=wE(s,r,void 0),gx(t,e,o,r)}if(a=(o&t.childLanes)!==0,Vi||a){if(r=jr,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,wl(t,i),Go(r,t,i,-1))}return mN(),r=wE(Error(Me(421))),gx(t,e,o,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=aie.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,bs=jc(i.nextSibling),_s=e,Rn=!0,Io=null,t!==null&&(Vs[Ws++]=al,Vs[Ws++]=ll,Vs[Ws++]=Fd,al=t.id,ll=t.overflow,Fd=e),e=lN(e,r.children),e.flags|=4096,e)}function n4(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),TC(t.return,e,n)}function _E(t,e,n,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Z7(t,e,n){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if(xi(t,e,r.children,n),r=In.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&n4(t,n,e);else if(t.tag===19)n4(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(bn(In,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Uw(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),_E(e,!1,i,n,s);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Uw(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}_E(e,!0,n,null,s);break;case"together":_E(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Yb(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}
vendor: 4,907 bytes, line 41
41function _l(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Bd|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Me(153));if(e.child!==null){for(t=e.child,n=Ic(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Ic(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Xre(t,e,n){switch(e.tag){case 3:K7(e),ym();break;case 5:E7(e);break;case 1:Yi(e.type)&&kw(e);break;case 4:eN(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;bn(Lw,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(bn(In,In.current&1),e.flags|=128,null):n&e.child.childLanes?Q7(t,e,n):(bn(In,In.current&1),t=_l(t,e,n),t!==null?t.sibling:null);bn(In,In.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return Z7(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),bn(In,In.current),r)break;return null;case 22:case 23:return e.lanes=0,Y7(t,e,n)}return _l(t,e,n)}var J7,kC,e9,t9;J7=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};kC=function(){};e9=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,td(Sa.current);var s=null;switch(n){case"input":i=tC(t,i),r=tC(t,r),s=[];break;case"select":i=Bn({},i,{value:void 0}),r=Bn({},r,{value:void 0}),s=[];break;case"textarea":i=iC(t,i),r=iC(t,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=jw)}oC(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Bv.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&a[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Bv.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&_n("scroll",t),s||a===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(e.updateQueue=u)&&(e.flags|=4)}};t9=function(t,e,n,r){n!==r&&(e.flags|=4)};function Jp(t,e){if(!Rn)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Yr(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function Kre(t,e,n){var r=e.pendingProps;switch(qj(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yr(e),null;case 1:return Yi(e.type)&&Nw(),Yr(e),null;case 3:return r=e.stateNode,bm(),An(qi),An(ui),nN(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(mx(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Io!==null&&(zC(Io),Io=null))),kC(t,e),Yr(e),null;case 5:tN(e);var i=td(Zv.current);if(n=e.type,t!==null&&e.stateNode!=null)e9(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(Me(166));return Yr(e),null}if(t=td(Sa.current),mx(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[ha]=e,r[Kv]=s,t=(e.mode&1)!==0,n){case"dialog":_n("cancel",r),_n("close",r);break;case"iframe":case"object":case"embed":_n("load",r);break;case"video":case"audio":for(i=0;i<Ig.length;i++)_n(Ig[i],r);break;case"source":_n("error",r);break;case"img":case"image":case"link":_n("error",r),_n("load",r);break;case"details":_n("toggle",r);break;case"input":dI(r,s),_n("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},_n("invalid",r);break;case"textarea":fI(r,s),_n("invalid",r)}oC(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];
vendor: 32,572 bytes, line 41
41o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&fx(r.textContent,a,t),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&fx(r.textContent,a,t),i=["children",""+a]):Bv.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&_n("scroll",r)}switch(n){case"input":sx(r),hI(r,s,!0);break;case"textarea":sx(r),mI(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=jw)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=R$(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[ha]=e,t[Kv]=r,J7(t,e,!1,!1),e.stateNode=t;e:{switch(o=aC(n,r),n){case"dialog":_n("cancel",t),_n("close",t),i=r;break;case"iframe":case"object":case"embed":_n("load",t),i=r;break;case"video":case"audio":for(i=0;i<Ig.length;i++)_n(Ig[i],t);i=r;break;case"source":_n("error",t),i=r;break;case"img":case"image":case"link":_n("error",t),_n("load",t),i=r;break;case"details":_n("toggle",t),i=r;break;case"input":dI(t,r),i=tC(t,r),_n("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=Bn({},r,{value:void 0}),_n("invalid",t);break;case"textarea":fI(t,r),i=iC(t,r),_n("invalid",t);break;default:i=r}oC(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var c=a[s];s==="style"?N$(t,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&P$(t,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&zv(t,c):typeof c=="number"&&zv(t,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Bv.hasOwnProperty(s)?c!=null&&s==="onScroll"&&_n("scroll",t):c!=null&&Nj(t,s,c,o))}switch(n){case"input":sx(t),hI(t,r,!1);break;case"textarea":sx(t),mI(t);break;case"option":r.value!=null&&t.setAttribute("value",""+qc(r.value));break;case"select":t.multiple=!!r.multiple,s=r.value,s!=null?If(t,!!r.multiple,s,!1):r.defaultValue!=null&&If(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=jw)}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&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Yr(e),null;case 6:if(t&&e.stateNode!=null)t9(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(Me(166));if(n=td(Zv.current),td(Sa.current),mx(e)){if(r=e.stateNode,n=e.memoizedProps,r[ha]=e,(s=r.nodeValue!==n)&&(t=_s,t!==null))switch(t.tag){case 3:fx(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&fx(r.nodeValue,n,(t.mode&1)!==0)}s&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ha]=e,e.stateNode=r}return Yr(e),null;case 13:if(An(In),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Rn&&bs!==null&&e.mode&1&&!(e.flags&128))x7(),ym(),e.flags|=98560,s=!1;else if(s=mx(e),r!==null&&r.dehydrated!==null){if(t===null){if(!s)throw Error(Me(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Me(317));s[ha]=e}else ym(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Yr(e),s=!1}else Io!==null&&(zC(Io),Io=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||In.current&1?gr===0&&(gr=3):mN())),e.updateQueue!==null&&(e.flags|=4),Yr(e),null);case 4:return bm(),kC(t,e),t===null&&Yv(e.stateNode.containerInfo),Yr(e),null;case 10:return Qj(e.type._context),Yr(e),null;case 17:return Yi(e.type)&&Nw(),Yr(e),null;case 19:if(An(In),s=e.memoizedState,s===null)return Yr(e),null;if(r=(e.flags&128)!==0,o=s.rendering,o===null)if(r)Jp(s,!1);else{if(gr!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Uw(t),o!==null){for(e.flags|=128,Jp(s,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)s=n,t=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=t,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,t=o.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return bn(In,In.current&1|2),e.child}t=t.sibling}s.tail!==null&&Jn()>_m&&(e.flags|=128,r=!0,Jp(s,!1),e.lanes=4194304)}else{if(!r)if(t=Uw(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Jp(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Rn)return Yr(e),null}else 2*Jn()-s.renderingStartTime>_m&&n!==1073741824&&(e.flags|=128,r=!0,Jp(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Jn(),e.sibling=null,n=In.current,bn(In,r?n&1|2:n&1),e):(Yr(e),null);case 22:case 23:return fN(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?us&1073741824&&(Yr(e),e.subtreeFlags&6&&(e.flags|=8192)):Yr(e),null;case 24:return null;case 25:return null}throw Error(Me(156,e.tag))}function Qre(t,e){switch(qj(e),e.tag){case 1:return Yi(e.type)&&Nw(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return bm(),An(qi),An(ui),nN(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return tN(e),null;case 13:if(An(In),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Me(340));ym()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return An(In),null;case 4:return bm(),null;case 10:return Qj(e.type._context),null;case 22:case 23:return fN(),null;case 24:return null;default:return null}}var vx=!1,ni=!1,Zre=typeof WeakSet=="function"?WeakSet:Set,Je=null;function xf(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Vn(t,e,r)}else n.current=null}function OC(t,e,n){try{n()}catch(r){Vn(t,e,r)}}var r4=!1;function Jre(t,e){if(vC=Mw,t=o7(),Wj(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,c=-1,u=0,d=0,h=t,f=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(a=o+i),h!==s||r!==0&&h.nodeType!==3||(c=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(m=h.firstChild)!==null;)f=h,h=m;for(;;){if(h===t)break t;if(f===n&&++u===i&&(a=o),f===s&&++d===r&&(c=o),(m=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=m}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yC={focusedElem:t,selectionRange:n},Mw=!1,Je=e;Je!==null;)if(e=Je,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Je=t;else for(;Je!==null;){e=Je;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,g=v.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?p:Ro(e.type,p),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=e.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(w){Vn(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,Je=t;break}Je=e.return}return v=r4,r4=!1,v}function rv(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&OC(e,n,s)}i=i.next}while(i!==r)}}function X_(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function IC(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function n9(t){var e=t.alternate;e!==null&&(t.alternate=null,n9(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ha],delete e[Kv],delete e[wC],delete e[Ire],delete e[Lre])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function r9(t){return t.tag===5||t.tag===3||t.tag===4}function i4(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||r9(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function LC(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=jw));else if(r!==4&&(t=t.child,t!==null))for(LC(t,e,n),t=t.sibling;t!==null;)LC(t,e,n),t=t.sibling}function DC(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(DC(t,e,n),t=t.sibling;t!==null;)DC(t,e,n),t=t.sibling}var Lr=null,No=!1;function Fl(t,e,n){for(n=n.child;n!==null;)i9(t,e,n),n=n.sibling}function i9(t,e,n){if(_a&&typeof _a.onCommitFiberUnmount=="function")try{_a.onCommitFiberUnmount(z_,n)}catch{}switch(n.tag){case 5:ni||xf(n,e);case 6:var r=Lr,i=No;Lr=null,Fl(t,e,n),Lr=r,No=i,Lr!==null&&(No?(t=Lr,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Lr.removeChild(n.stateNode));break;case 18:Lr!==null&&(No?(t=Lr,n=n.stateNode,t.nodeType===8?pE(t.parentNode,n):t.nodeType===1&&pE(t,n),Wv(t)):pE(Lr,n.stateNode));break;case 4:r=Lr,i=No,Lr=n.stateNode.containerInfo,No=!0,Fl(t,e,n),Lr=r,No=i;break;case 0:case 11:case 14:case 15:if(!ni&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&OC(n,e,o),i=i.next}while(i!==r)}Fl(t,e,n);break;case 1:if(!ni&&(xf(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Vn(n,e,a)}Fl(t,e,n);break;case 21:Fl(t,e,n);break;case 22:n.mode&1?(ni=(r=ni)||n.memoizedState!==null,Fl(t,e,n),ni=r):Fl(t,e,n);break;default:Fl(t,e,n)}}function s4(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Zre),e.forEach(function(r){var i=lie.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function yo(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:Lr=a.stateNode,No=!1;break e;case 3:Lr=a.stateNode.containerInfo,No=!0;break e;case 4:Lr=a.stateNode.containerInfo,No=!0;break e}a=a.return}if(Lr===null)throw Error(Me(160));i9(s,o,i),Lr=null,No=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){Vn(i,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)s9(e,t),e=e.sibling}function s9(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(yo(e,t),ra(t),r&4){try{rv(3,t,t.return),X_(3,t)}catch(p){Vn(t,t.return,p)}try{rv(5,t,t.return)}catch(p){Vn(t,t.return,p)}}break;case 1:yo(e,t),ra(t),r&512&&n!==null&&xf(n,n.return);break;case 5:if(yo(e,t),ra(t),r&512&&n!==null&&xf(n,n.return),t.flags&32){var i=t.stateNode;try{zv(i,"")}catch(p){Vn(t,t.return,p)}}if(r&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,o=n!==null?n.memoizedProps:s,a=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&C$(i,s),aC(a,o);var u=aC(a,s);for(o=0;o<c.length;o+=2){var d=c[o],h=c[o+1];d==="style"?N$(i,h):d==="dangerouslySetInnerHTML"?P$(i,h):d==="children"?zv(i,h):Nj(i,d,h,u)}switch(a){case"input":nC(i,s);break;case"textarea":M$(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?If(i,!!s.multiple,m,!1):f!==!!s.multiple&&(s.defaultValue!=null?If(i,!!s.multiple,s.defaultValue,!0):If(i,!!s.multiple,s.multiple?[]:"",!1))}i[Kv]=s}catch(p){Vn(t,t.return,p)}}break;case 6:if(yo(e,t),ra(t),r&4){if(t.stateNode===null)throw Error(Me(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(p){Vn(t,t.return,p)}}break;case 3:if(yo(e,t),ra(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wv(e.containerInfo)}catch(p){Vn(t,t.return,p)}break;case 4:yo(e,t),ra(t);break;case 13:yo(e,t),ra(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(dN=Jn())),r&4&&s4(t);break;case 22:if(d=n!==null&&n.memoizedState!==null,t.mode&1?(ni=(u=ni)||d,yo(e,t),ni=u):yo(e,t),ra(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!d&&t.mode&1)for(Je=t,d=t.child;d!==null;){for(h=Je=d;Je!==null;){switch(f=Je,m=f.child,f.tag){case 0:case 11:case 14:case 15:rv(4,f,f.return);break;case 1:xf(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{e=r,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(p){Vn(r,n,p)}}break;case 5:xf(f,f.return);break;case 22:if(f.memoizedState!==null){a4(h);continue}}m!==null?(m.return=f,Je=m):a4(h)}d=d.sibling}e:for(d=null,h=t;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=j$("display",o))}catch(p){Vn(t,t.return,p)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(p){Vn(t,t.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:yo(e,t),ra(t),r&4&&s4(t);break;case 21:break;default:yo(e,t),ra(t)}}function ra(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(r9(n)){var r=n;break e}n=n.return}throw Error(Me(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(zv(i,""),r.flags&=-33);var s=i4(t);DC(t,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=i4(t);LC(t,a,o);break;default:throw Error(Me(161))}}catch(c){Vn(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function eie(t,e,n){Je=t,o9(t)}function o9(t,e,n){for(var r=(t.mode&1)!==0;Je!==null;){var i=Je,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||vx;if(!o){var a=i.alternate,c=a!==null&&a.memoizedState!==null||ni;a=vx;var u=ni;if(vx=o,(ni=c)&&!u)for(Je=i;Je!==null;)o=Je,c=o.child,o.tag===22&&o.memoizedState!==null?l4(i):c!==null?(c.return=o,Je=c):l4(i);for(;s!==null;)Je=s,o9(s),s=s.sibling;Je=i,vx=a,ni=u}o4(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Je=s):o4(t)}}function o4(t){for(;Je!==null;){var e=Je;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ni||X_(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!ni)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:Ro(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&VI(e,s,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}VI(e,o,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var c=e.memoizedProps;switch(e.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(e.memoizedState===null){var u=e.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Wv(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Me(163))}ni||e.flags&512&&IC(e)}catch(f){Vn(e,e.return,f)}}if(e===t){Je=null;break}if(n=e.sibling,n!==null){n.return=e.return,Je=n;break}Je=e.return}}function a4(t){for(;Je!==null;){var e=Je;if(e===t){Je=null;break}var n=e.sibling;if(n!==null){n.return=e.return,Je=n;break}Je=e.return}}function l4(t){for(;Je!==null;){var e=Je;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{X_(4,e)}catch(c){Vn(e,n,c)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(c){Vn(e,i,c)}}var s=e.return;try{IC(e)}catch(c){Vn(e,s,c)}break;case 5:var o=e.return;try{IC(e)}catch(c){Vn(e,o,c)}}}catch(c){Vn(e,e.return,c)}if(e===t){Je=null;break}var a=e.sibling;if(a!==null){a.return=e.return,Je=a;break}Je=e.return}}var tie=Math.ceil,$w=kl.ReactCurrentDispatcher,cN=kl.ReactCurrentOwner,ro=kl.ReactCurrentBatchConfig,Wt=0,jr=null,lr=null,zr=0,us=0,bf=ou(0),gr=0,ny=null,Bd=0,K_=0,uN=0,iv=null,zi=null,dN=0,_m=1/0,Qa=null,Hw=!1,FC=null,kc=null,yx=!1,vc=null,Vw=0,sv=0,UC=null,Xb=-1,Kb=0;function Ri(){return Wt&6?Jn():Xb!==-1?Xb:Xb=Jn()}function Oc(t){return t.mode&1?Wt&2&&zr!==0?zr&-zr:Fre.transition!==null?(Kb===0&&(Kb=V$()),Kb):(t=an,t!==0||(t=window.event,t=t===void 0?16:Q$(t.type)),t):1}function Go(t,e,n,r){if(50<sv)throw sv=0,UC=null,Error(Me(185));b0(t,n,r),(!(Wt&2)||t!==jr)&&(t===jr&&(!(Wt&2)&&(K_|=n),gr===4&&sc(t,zr)),Xi(t,r),n===1&&Wt===0&&!(e.mode&1)&&(_m=Jn()+500,G_&&au()))}function Xi(t,e){var n=t.callbackNode;Fne(t,e);var r=Cw(t,t===jr?zr:0);if(r===0)n!==null&&vI(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&vI(n),e===1)t.tag===0?Dre(c4.bind(null,t)):g7(c4.bind(null,t)),kre(function(){!(Wt&6)&&au()}),n=null;else{switch(W$(r)){case 1:n=Dj;break;case 4:n=$$;break;case 16:n=Aw;break;case 536870912:n=H$;break;default:n=Aw}n=m9(n,a9.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function a9(t,e){if(Xb=-1,Kb=0,Wt&6)throw Error(Me(327));var n=t.callbackNode;if(Bf()&&t.callbackNode!==n)return null;var r=Cw(t,t===jr?zr:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Ww(t,r);else{e=r;var i=Wt;Wt|=2;var s=c9();(jr!==t||zr!==e)&&(Qa=null,_m=Jn()+500,xd(t,e));do try{iie();break}catch(a){l9(t,a)}while(!0);Kj(),$w.current=s,Wt=i,lr!==null?e=0:(jr=null,zr=0,e=gr)}if(e!==0){if(e===2&&(i=hC(t),i!==0&&(r=i,e=BC(t,i))),e===1)throw n=ny,xd(t,0),sc(t,r),Xi(t,Jn()),n;if(e===6)sc(t,r);else{if(i=t.current.alternate,!(r&30)&&!nie(i)&&(e=Ww(t,r),e===2&&(s=hC(t),s!==0&&(r=s,e=BC(t,s))),e===1))throw n=ny,xd(t,0),sc(t,r),Xi(t,Jn()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(Me(345));case 2:Fu(t,zi,Qa);break;case 3:if(sc(t,r),(r&130023424)===r&&(e=dN+500-Jn(),10<e)){if(Cw(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){Ri(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=bC(Fu.bind(null,t,zi,Qa),e);break}Fu(t,zi,Qa);break;case 4:if(sc(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var o=31-Wo(r);s=1<<o,o=e[o],o>i&&(i=o),r&=~s}if(r=i,r=Jn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tie(r/1960))-r,10<r){t.timeoutHandle=bC(Fu.bind(null,t,zi,Qa),r);break}Fu(t,zi,Qa);break;case 5:Fu(t,zi,Qa);break;default:throw Error(Me(329))}}}return Xi(t,Jn()),t.callbackNode===n?a9.bind(null,t):null}function BC(t,e){var n=iv;return t.current.memoizedState.isDehydrated&&(xd(t,e).flags|=256),t=Ww(t,e),t!==2&&(e=zi,zi=n,e!==null&&zC(e)),t}function zC(t){zi===null?zi=t:zi.push.apply(zi,t)}function nie(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Xo(s(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function sc(t,e){for(e&=~uN,e&=~K_,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Wo(e),r=1<<n;t[n]=-1,e&=~r}}function c4(t){if(Wt&6)throw Error(Me(327));Bf();var e=Cw(t,0);if(!(e&1))return Xi(t,Jn()),null;var n=Ww(t,e);if(t.tag!==0&&n===2){var r=hC(t);r!==0&&(e=r,n=BC(t,r))}if(n===1)throw n=ny,xd(t,0),sc(t,e),Xi(t,Jn()),n;if(n===6)throw Error(Me(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Fu(t,zi,Qa),Xi(t,Jn()),null}function hN(t,e){var n=Wt;Wt|=1;try{return t(e)}finally{Wt=n,Wt===0&&(_m=Jn()+500,G_&&au())}}function zd(t){vc!==null&&vc.tag===0&&!(Wt&6)&&Bf();var e=Wt;Wt|=1;var n=ro.transition,r=an;try{if(ro.transition=null,an=1,t)return t()}finally{an=r,ro.transition=n,Wt=e,!(Wt&6)&&au()}}function fN(){us=bf.current,An(bf)}function xd(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,Nre(n)),lr!==null)for(n=lr.return;n!==null;){var r=n;switch(qj(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Nw();break;case 3:bm(),An(qi),An(ui),nN();break;case 5:tN(r);break;case 4:bm();break;case 13:An(In);break;case 19:An(In);break;case 10:Qj(r.type._context);break;case 22:case 23:fN()}n=n.return}if(jr=t,lr=t=Ic(t.current,null),zr=us=e,gr=0,ny=null,uN=K_=Bd=0,zi=iv=null,ed!==null){for(e=0;e<ed.length;e++)if(n=ed[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}ed=null}return t}function l9(t,e){do{var n=lr;try{if(Kj(),Gb.current=zw,Bw){for(var r=Un.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Bw=!1}if(Ud=0,Mr=mr=Un=null,nv=!1,Jv=0,cN.current=null,n===null||n.return===null){gr=1,ny=e,lr=null;break}e:{var s=t,o=n.return,a=n,c=e;if(e=zr,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=KI(o);if(m!==null){m.flags&=-257,QI(m,o,a,s,e),m.mode&1&&XI(s,u,e),e=m,c=u;var v=e.updateQueue;if(v===null){var p=new Set;p.add(c),e.updateQueue=p}else v.add(c);break e}else{if(!(e&1)){XI(s,u,e),mN();break e}c=Error(Me(426))}}else if(Rn&&a.mode&1){var g=KI(o);if(g!==null){!(g.flags&65536)&&(g.flags|=256),QI(g,o,a,s,e),Yj(wm(c,a));break e}}s=c=wm(c,a),gr!==4&&(gr=2),iv===null?iv=[s]:iv.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var y=W7(s,c,e);HI(s,y);break e;case 1:a=c;var b=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(kc===null||!kc.has(x)))){s.flags|=65536,e&=-e,s.lanes|=e;var w=G7(s,a,e);HI(s,w);break e}}s=s.return}while(s!==null)}d9(n)}catch(_){e=_,lr===n&&n!==null&&(lr=n=n.return);continue}break}while(!0)}function c9(){var t=$w.current;return $w.current=zw,t===null?zw:t}function mN(){(gr===0||gr===3||gr===2)&&(gr=4),jr===null||!(Bd&268435455)&&!(K_&268435455)||sc(jr,zr)}function Ww(t,e){var n=Wt;Wt|=2;var r=c9();(jr!==t||zr!==e)&&(Qa=null,xd(t,e));do try{rie();break}catch(i){l9(t,i)}while(!0);if(Kj(),Wt=n,$w.current=r,lr!==null)throw Error(Me(261));return jr=null,zr=0,gr}function rie(){for(;lr!==null;)u9(lr)}function iie(){for(;lr!==null&&!Rne();)u9(lr)}function u9(t){var e=f9(t.alternate,t,us);t.memoizedProps=t.pendingProps,e===null?d9(t):lr=e,cN.current=null}function d9(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=Qre(n,e),n!==null){n.flags&=32767,lr=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{gr=6,lr=null;return}}else if(n=Kre(n,e,us),n!==null){lr=n;return}if(e=e.sibling,e!==null){lr=e;return}lr=e=t}while(e!==null);gr===0&&(gr=5)}function Fu(t,e,n){var r=an,i=ro.transition;try{ro.transition=null,an=1,sie(t,e,n,r)}finally{ro.transition=i,an=r}return null}function sie(t,e,n,r){do Bf();while(vc!==null);if(Wt&6)throw Error(Me(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Me(177));t.callbackNode=null,t.callbackPriority=0;var s=n.lanes|n.childLanes;if(Une(t,s),t===jr&&(lr=jr=null,zr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yx||(yx=!0,m9(Aw,function(){return Bf(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=ro.transition,ro.transition=null;var o=an;an=1;var a=Wt;Wt|=4,cN.current=null,Jre(t,n),s9(n,t),Tre(yC),Mw=!!vC,yC=vC=null,t.current=n,eie(n),Pne(),Wt=a,an=o,ro.transition=s}else t.current=n;if(yx&&(yx=!1,vc=t,Vw=i),s=t.pendingLanes,s===0&&(kc=null),kne(n.stateNode),Xi(t,Jn()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hw)throw Hw=!1,t=FC,FC=null,t;return Vw&1&&t.tag!==0&&Bf(),s=t.pendingLanes,s&1?t===UC?sv++:(sv=0,UC=t):sv=0,au(),null}function Bf(){if(vc!==null){var t=W$(Vw),e=ro.transition,n=an;try{if(ro.transition=null,an=16>t?16:t,vc===null)var r=!1;else{if(t=vc,vc=null,Vw=0,Wt&6)throw Error(Me(331));var i=Wt;for(Wt|=4,Je=t.current;Je!==null;){var s=Je,o=s.child;if(Je.flags&16){var a=s.deletions;if(a!==null){for(var c=0;c<a.length;c++){var u=a[c];for(Je=u;Je!==null;){var d=Je;switch(d.tag){case 0:case 11:case 15:rv(8,d,s)}var h=d.child;if(h!==null)h.return=d,Je=h;else for(;Je!==null;){d=Je;var f=d.sibling,m=d.return;if(n9(d),d===u){Je=null;break}if(f!==null){f.return=m,Je=f;break}Je=m}}}var v=s.alternate;if(v!==null){var p=v.child;if(p!==null){v.child=null;do{var g=p.sibling;p.sibling=null,p=g}while(p!==null)}}Je=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,Je=o;else e:for(;Je!==null;){if(s=Je,s.flags&2048)switch(s.tag){case 0:case 11:case 15:rv(9,s,s.return)}var y=s.sibling;if(y!==null){y.return=s.return,Je=y;break e}Je=s.return}}var b=t.current;for(Je=b;Je!==null;){o=Je;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,Je=x;else e:for(o=b;Je!==null;){if(a=Je,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:X_(9,a)}}catch(_){Vn(a,a.return,_)}if(a===o){Je=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,Je=w;break e}Je=a.return}}if(Wt=i,au(),_a&&typeof _a.onPostCommitFiberRoot=="function")try{_a.onPostCommitFiberRoot(z_,t)}catch{}r=!0}return r}finally{an=n,ro.transition=e}}return!1}function u4(t,e,n){e=wm(n,e),e=W7(t,e,1),t=Nc(t,e,1),e=Ri(),t!==null&&(b0(t,1,e),Xi(t,e))}function Vn(t,e,n){if(t.tag===3)u4(t,t,n);else for(;e!==null;){if(e.tag===3){u4(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(kc===null||!kc.has(r))){t=wm(n,t),t=G7(e,t,1),e=Nc(e,t,1),t=Ri(),e!==null&&(b0(e,1,t),Xi(e,t));break}}e=e.return}}function oie(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Ri(),t.pingedLanes|=t.suspendedLanes&n,jr===t&&(zr&n)===n&&(gr===4||gr===3&&(zr&130023424)===zr&&500>Jn()-dN?xd(t,0):uN|=n),Xi(t,e)}function h9(t,e){e===0&&(t.mode&1?(e=lx,lx<<=1,!(lx&130023424)&&(lx=4194304)):e=1);var n=Ri();t=wl(t,e),t!==null&&(b0(t,e,n),Xi(t,n))}function aie(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),h9(t,n)}function lie(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(Me(314))}r!==null&&r.delete(e),h9(t,n)}var f9;f9=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||qi.current)Vi=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Vi=!1,Xre(t,e,n);Vi=!!(t.flags&131072)}else Vi=!1,Rn&&e.flags&1048576&&v7(e,Iw,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Yb(t,e),t=e.pendingProps;var i=vm(e,ui.current);Uf(e,n),i=iN(null,e,r,t,i,n);var s=sN();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Yi(r)?(s=!0,kw(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Jj(e),i.updater=Y_,e.stateNode=i,i._reactInternals=e,CC(e,r,t,n),e=PC(null,e,r,!0,s,n)):(e.tag=0,Rn&&s&&Gj(e),xi(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Yb(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=uie(r),t=Ro(r,t),i){case 0:e=RC(null,e,r,t,n);break e;case 1:e=e4(null,e,r,t,n);break e;case 11:e=ZI(null,e,r,t,n);break e;case 14:e=JI(null,e,r,Ro(r.type,t),n);break e}throw Error(Me(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ro(r,i),RC(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ro(r,i),e4(t,e,r,i,n);case 3:e:{if(K7(e),t===null)throw Error(Me(387));r=e.pendingProps,s=e.memoizedState,i=s.element,S7(t,e),Fw(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=wm(Error(Me(423)),e),e=t4(t,e,r,n,i);break e}else if(r!==i){i=wm(Error(Me(424)),e),e=t4(t,e,r,n,i);break e}else for(bs=jc(e.stateNode.containerInfo.firstChild),_s=e,Rn=!0,Io=null,n=w7(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ym(),r===i){e=_l(t,e,n);break e}xi(t,e,r,n)}e=e.child}return e;case 5:return E7(e),t===null&&EC(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,xC(r,i)?o=null:s!==null&&xC(r,s)&&(e.flags|=32),X7(t,e),xi(t,e,o,n),e.child;case 6:return t===null&&EC(e),null;case 13:return Q7(t,e,n);case 4:return eN(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=xm(e,null,r,n):xi(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ro(r,i),ZI(t,e,r,i,n);case 7:return xi(t,e,e.pendingProps,n),e.child;case 8:return xi(t,e,e.pendingProps.children,n),e.child;case 12:return xi(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,bn(Lw,r._currentValue),r._currentValue=o,s!==null)if(Xo(s.value,o)){if(s.children===i.children&&!qi.current){e=_l(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=ml(-1,n&-n),c.tag=2;var u=s.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}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),TC(s.return,n,e),a.lanes|=n;break}c=c.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(Me(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),TC(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}xi(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Uf(e,n),i=lo(i),r=r(i),e.flags|=1,xi(t,e,r,n),e.child;case 14:return r=e.type,i=Ro(r,e.pendingProps),i=Ro(r.type,i),JI(t,e,r,i,n);case 15:return q7(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ro(r,i),Yb(t,e),e.tag=1,Yi(r)?(t=!0,kw(e)):t=!1,Uf(e,n),V7(e,r,i),CC(e,r,i,n),PC(null,e,r,!0,t,n);case 19:return Z7(t,e,n);case 22:return Y7(t,e,n)}throw Error(Me(156,e.tag))};function m9(t,e){return z$(t,e)}function cie(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 Ks(t,e,n,r){return new cie(t,e,n,r)}function pN(t){return t=t.prototype,!(!t||!t.isReactComponent)}function uie(t){if(typeof t=="function")return pN(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Oj)return 11;if(t===Ij)return 14}return 2}function Ic(t,e){var n=t.alternate;return n===null?(n=Ks(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 5,109 bytes, line 41
41ons=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Qb(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")pN(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case uf:return bd(n.children,i,s,e);case kj:o=8,i|=8;break;case QA:return t=Ks(12,n,e,i|2),t.elementType=QA,t.lanes=s,t;case ZA:return t=Ks(13,n,e,i),t.elementType=ZA,t.lanes=s,t;case JA:return t=Ks(19,n,e,i),t.elementType=JA,t.lanes=s,t;case E$:return Q_(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _$:o=10;break e;case S$:o=9;break e;case Oj:o=11;break e;case Ij:o=14;break e;case tc:o=16,r=null;break e}throw Error(Me(130,t==null?t:typeof t,""))}return e=Ks(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function bd(t,e,n,r){return t=Ks(7,t,r,e),t.lanes=n,t}function Q_(t,e,n,r){return t=Ks(22,t,r,e),t.elementType=E$,t.lanes=n,t.stateNode={isHidden:!1},t}function SE(t,e,n){return t=Ks(6,t,null,e),t.lanes=n,t}function EE(t,e,n){return e=Ks(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function die(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=iE(0),this.expirationTimes=iE(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iE(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gN(t,e,n,r,i,s,o,a,c){return t=new die(t,e,n,a,c),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Ks(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jj(s),t}function hie(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cf,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function p9(t){if(!t)return Yc;t=t._reactInternals;e:{if(ch(t)!==t||t.tag!==1)throw Error(Me(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Yi(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(Me(171))}if(t.tag===1){var n=t.type;if(Yi(n))return p7(t,n,e)}return e}function g9(t,e,n,r,i,s,o,a,c){return t=gN(n,r,!0,t,i,s,o,a,c),t.context=p9(null),n=t.current,r=Ri(),i=Oc(n),s=ml(r,i),s.callback=e??null,Nc(n,s,i),t.current.lanes=i,b0(t,i,r),Xi(t,r),t}function Z_(t,e,n,r){var i=e.current,s=Ri(),o=Oc(i);return n=p9(n),e.context===null?e.context=n:e.pendingContext=n,e=ml(s,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Nc(i,e,o),t!==null&&(Go(t,i,o,s),Wb(t,i,o)),o}function Gw(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function d4(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function vN(t,e){d4(t,e),(t=t.alternate)&&d4(t,e)}function fie(){return null}var v9=typeof reportError=="function"?reportError:function(t){console.error(t)};function yN(t){this._internalRoot=t}J_.prototype.render=yN.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Me(409));Z_(t,e,null,null)};J_.prototype.unmount=yN.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;zd(function(){Z_(null,t,null,null)}),e[bl]=null}};function J_(t){this._internalRoot=t}J_.prototype.unstable_scheduleHydration=function(t){if(t){var e=Y$();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ic.length&&e!==0&&e<ic[n].priority;n++);ic.splice(n,0,t),n===0&&K$(t)}};function xN(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function eS(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function h4(){}function mie(t,e,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Gw(o);s.call(u)}}var o=g9(e,r,t,0,null,!1,!1,"",h4);return t._reactRootContainer=o,t[bl]=o.current,Yv(t.nodeType===8?t.parentNode:t),zd(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Gw(c);a.call(u)}}var c=gN(t,0,!1,null,null,!1,!1,"",h4);return t._reactRootContainer=c,t[bl]=c.current,Yv(t.nodeType===8?t.parentNode:t),zd(function(){Z_(e,c,n,r)}),c}function tS(t,e,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var c=Gw(o);a.call(c)}}Z_(e,o,t,i)}else o=mie(n,e,t,i,r);return Gw(o)}G$=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Og(e.pendingLanes);
vendor: 4,621 bytes, line 41
41n!==0&&(Fj(e,n|1),Xi(e,Jn()),!(Wt&6)&&(_m=Jn()+500,au()))}break;case 13:zd(function(){var r=wl(t,1);if(r!==null){var i=Ri();Go(r,t,1,i)}}),vN(t,1)}};Uj=function(t){if(t.tag===13){var e=wl(t,134217728);if(e!==null){var n=Ri();Go(e,t,134217728,n)}vN(t,134217728)}};q$=function(t){if(t.tag===13){var e=Oc(t),n=wl(t,e);if(n!==null){var r=Ri();Go(n,t,e,r)}vN(t,e)}};Y$=function(){return an};X$=function(t,e){var n=an;try{return an=t,e()}finally{an=n}};cC=function(t,e,n){switch(e){case"input":if(nC(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=W_(r);if(!i)throw Error(Me(90));A$(r),nC(r,i)}}}break;case"textarea":M$(t,n);break;case"select":e=n.value,e!=null&&If(t,!!n.multiple,e,!1)}};I$=hN;L$=zd;var pie={usingClientEntryPoint:!1,Events:[_0,mf,W_,k$,O$,hN]},eg={findFiberByHostInstance:Ju,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gie={bundleType:eg.bundleType,version:eg.version,rendererPackageName:eg.rendererPackageName,rendererConfig:eg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kl.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=U$(t),t===null?null:t.stateNode},findFiberByHostInstance:eg.findFiberByHostInstance||fie,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xx=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xx.isDisabled&&xx.supportsFiber)try{z_=xx.inject(gie),_a=xx}catch{}}js.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pie;js.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xN(e))throw Error(Me(200));return hie(t,e,null,n)};js.createRoot=function(t,e){if(!xN(t))throw Error(Me(299));var n=!1,r="",i=v9;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=gN(t,1,!1,null,null,n,!1,r,i),t[bl]=e.current,Yv(t.nodeType===8?t.parentNode:t),new yN(e)};js.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Me(188)):(t=Object.keys(t).join(","),Error(Me(268,t)));return t=U$(e),t=t===null?null:t.stateNode,t};js.flushSync=function(t){return zd(t)};js.hydrate=function(t,e,n){if(!eS(e))throw Error(Me(200));return tS(null,t,e,!0,n)};js.hydrateRoot=function(t,e,n){if(!xN(t))throw Error(Me(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=v9;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=g9(e,null,t,1,n??null,i,!1,s,o),t[bl]=e.current,Yv(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new J_(e)};js.render=function(t,e,n){if(!eS(e))throw Error(Me(200));return tS(null,t,e,!1,n)};js.unmountComponentAtNode=function(t){if(!eS(t))throw Error(Me(40));return t._reactRootContainer?(zd(function(){tS(null,null,t,!1,function(){t._reactRootContainer=null,t[bl]=null})}),!0):!1};js.unstable_batchedUpdates=hN;js.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!eS(n))throw Error(Me(200));if(t==null||t._reactInternals===void 0)throw Error(Me(38));return tS(t,e,n,!1,r)};js.version="18.3.1-next-f1338f8080-20240426";function y9(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y9)}catch(t){console.error(t)}}y9(),y$.exports=js;var uh=y$.exports;const x9=tn(uh);var b9,f4=uh;b9=f4.createRoot,f4.hydrateRoot;const vie=1,yie=1e6;let TE=0;function xie(){return TE=(TE+1)%Number.MAX_SAFE_INTEGER,TE.toString()}const AE=new Map,m4=t=>{if(AE.has(t))return;const e=setTimeout(()=>{AE.delete(t),ov({type:"REMOVE_TOAST",toastId:t})},yie);AE.set(t,e)},bie=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,vie)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;
41return n?m4(n):t.toasts.forEach(r=>{m4(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},Zb=[];let Jb={toasts:[]};function ov(t){Jb=bie(Jb,t),Zb.forEach(e=>{e(Jb)})}function wie({...t}){const e=xie(),n=i=>ov({type:"UPDATE_TOAST",toast:{...i,id:e}}),r=()=>ov({type:"DISMISS_TOAST",toastId:e});return ov({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:i=>{i||r()}}}),{id:e,dismiss:r,update:n}}function lu(){const[t,e]=E.useState(Jb);return E.useEffect(()=>(Zb.push(e),()=>{const n=Zb.indexOf(e);n>-1&&Zb.splice(n,1)}),[t]),{...t,toast:wie,dismiss:n=>ov({type:"DISMISS_TOAST",toastId:n})}}function De(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function p4(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function nS(...t){return e=>{let n=!1;const r=t.map(i=>{const s=p4(i,e);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():p4(t[i],null)}}}}function At(...t){return E.useCallback(nS(...t),t)}function _ie(t,e){const n=E.createContext(e),r=s=>{const{children:o,...a}=s,c=E.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:o})};r.displayName=t+"Provider";function i(s){const o=E.useContext(n);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${s}\` must be used within \`${t}\``)}return[r,i]}function ks(t,e=[]){let n=[];function r(s,o){const a=E.createContext(o),c=n.length;n=[...n,o];const u=h=>{var y;const{scope:f,children:m,...v}=h,p=((y=f==null?void 0:f[t])==null?void 0:y[c])||a,g=E.useMemo(()=>v,Object.values(v));return l.jsx(p.Provider,{value:g,children:m})};u.displayName=s+"Provider";function d(h,f){var p;const m=((p=f==null?void 0:f[t])==null?void 0:p[c])||a,v=E.useContext(m);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,d]}const i=()=>{const s=n.map(o=>E.createContext(o));return function(a){const c=(a==null?void 0:a[t])||s;return E.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return i.scopeName=t,[r,Sie(i,...e)]}function Sie(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:c,scopeName:u})=>{const h=c(s)[`__scope${u}`];return{...a,...h}},{});return E.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function $d(t){const e=Tie(t),n=E.forwardRef((r,i)=>{const{children:s,...o}=r,a=E.Children.toArray(s),c=a.find(Cie);if(c){const u=c.props.children,d=a.map(h=>h===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:h);return l.jsx(e,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,d):null})}return l.jsx(e,{...o,ref:i,children:s})});return n.displayName=`${t}.Slot`,n}var Eie=$d("Slot");function Tie(t){const e=E.forwardRef((n,r)=>{const{children:i,...s}=n;if(E.isValidElement(i)){const o=Rie(i),a=Mie(s,i.props);return i.type!==E.Fragment&&(a.ref=r?nS(r,o):o),E.cloneElement(i,a)}return E.Children.count(i)>1?E.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var w9=Symbol("radix.slottable");function Aie(t){const e=({children:n})=>l.jsx(l.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=w9,e}function Cie(t){return E.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===w9}function Mie(t,e){const n={...e};for(const r in e){const i=t[r],s=e[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const c=s(...a);return i(...a),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...t,...n}}function Rie(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.
vendor: 9,622 bytes, line 41
41isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function fp(t){const e=t+"CollectionProvider",[n,r]=ks(e),[i,s]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:g,children:y}=p,b=V.useRef(null),x=V.useRef(new Map).current;return l.jsx(i,{scope:g,itemMap:x,collectionRef:b,children:y})};o.displayName=e;const a=t+"CollectionSlot",c=$d(a),u=V.forwardRef((p,g)=>{const{scope:y,children:b}=p,x=s(a,y),w=At(g,x.collectionRef);return l.jsx(c,{ref:w,children:b})});u.displayName=a;const d=t+"CollectionItemSlot",h="data-radix-collection-item",f=$d(d),m=V.forwardRef((p,g)=>{const{scope:y,children:b,...x}=p,w=V.useRef(null),_=At(g,w),S=s(d,y);return V.useEffect(()=>(S.itemMap.set(w,{ref:w,...x}),()=>void S.itemMap.delete(w))),l.jsx(f,{[h]:"",ref:_,children:b})});m.displayName=d;function v(p){const g=s(t+"CollectionConsumer",p);return V.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${h}]`));return Array.from(g.itemMap.values()).sort((S,T)=>x.indexOf(S.ref.current)-x.indexOf(T.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:u,ItemSlot:m},v,r]}var Pie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=Pie.reduce((t,e)=>{const n=$d(`Primitive.${e}`),r=E.forwardRef((i,s)=>{const{asChild:o,...a}=i,c=o?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function bN(t,e){t&&uh.flushSync(()=>t.dispatchEvent(e))}function ns(t){const e=E.useRef(t);return E.useEffect(()=>{e.current=t}),E.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function jie(t,e=globalThis==null?void 0:globalThis.document){const n=ns(t);E.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var Nie="DismissableLayer",$C="dismissableLayer.update",kie="dismissableLayer.pointerDownOutside",Oie="dismissableLayer.focusOutside",g4,_9=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mp=E.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...c}=t,u=E.useContext(_9),[d,h]=E.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=E.useState({}),v=At(e,T=>h(T)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),b=d?p.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,w=b>=y,_=Lie(T=>{const M=T.target,A=[...u.branches].some(C=>C.contains(M));!w||A||(i==null||i(T),o==null||o(T),T.defaultPrevented||a==null||a())},f),S=Die(T=>{const M=T.target;[...u.branches].some(C=>C.contains(M))||(s==null||s(T),o==null||o(T),T.defaultPrevented||a==null||a())},f);return jie(T=>{b===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},f),E.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(g4=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),v4(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=g4)}},[d,f,n,u]),E.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),v4())},[d,u]),E.useEffect(()=>{const T=()=>m({});return document.addEventListener($C,T),()=>document.removeEventListener($C,T)},[]),l.jsx(ht.div,{...c,ref:v,style:{pointerEvents:x?w?"auto":"none":void 0,...t.style},onFocusCapture:De(t.onFocusCapture,S.onFocusCapture),onBlurCapture:De(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:De(t.onPointerDownCapture,_.onPointerDownCapture)})});mp.displayName=Nie;var Iie="DismissableLayerBranch",S9=E.forwardRef((t,e)=>{const n=E.useContext(_9),r=E.useRef(null),i=At(e,r);return E.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(ht.div,{...t,ref:i})});S9.displayName=Iie;function Lie(t,e=globalThis==null?void 0:globalThis.document){const n=ns(t),r=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){E9(kie,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=c,e.addEventListener("click",i.current,{once:!0})):c()}else e.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function Die(t,e=globalThis==null?void 0:globalThis.document){const n=ns(t),r=E.useRef(!1);return E.useEffect(()=>{const i=s=>{s.target&&!r.current&&E9(Oie,n,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function v4(){const t=new CustomEvent($C);document.dispatchEvent(t)}function E9(t,e,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?bN(i,s):i.dispatchEvent(s)}var Fie=mp,Uie=S9,Nr=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},Bie="Portal",E0=E.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,s]=E.useState(!1);Nr(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?x9.createPortal(l.jsx(ht.div,{...r,ref:e}),o):null});E0.displayName=Bie;function zie(t,e){return E.useReducer((n,r)=>e[n][r]??n,t)}var Jo=t=>{const{present:e,children:n}=t,r=$ie(e),i=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),s=At(r.ref,Hie(i));return typeof n=="function"||r.isPresent?E.cloneElement(i,{ref:s}):null};Jo.displayName="Presence";function $ie(t){const[e,n]=E.useState(),r=E.useRef(null),i=E.useRef(t),s=E.useRef("none"),o=t?"mounted":"unmounted",[a,c]=zie(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=bx(r.current);s.current=a==="mounted"?u:"none"},[a]),Nr(()=>{const u=r.current,d=i.current;if(d!==t){const f=s.current,m=bx(u);t?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,c]),Nr(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,h=m=>{const p=bx(r.current).includes(m.animationName);if(m.target===e&&p&&(c("ANIMATION_END"),!i.current)){const g=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},f=m=>{m.target===e&&(s.current=bx(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:E.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function bx(t){return(t==null?void 0:t.animationName)||"none"}function Hie(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var Vie=Rj[" useInsertionEffect ".trim().toString()]||Nr;function uo({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,s,o]=Wie({defaultProp:e,onChange:n}),a=t!==void 0,c=a?t:i;{const d=E.useRef(t!==void 0);E.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"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=a},[a,r])}const u=E.useCallback(d=>{var h;if(a){const f=Gie(d)?d(t):d;f!==t&&((h=o.current)==null||h.call(o,f))}else s(d)},[a,t,s,o]);return[c,u]}function Wie({defaultProp:t,onChange:e}){const[n,r]=E.useState(t),i=E.useRef(n),s=E.useRef(e);return Vie(()=>{s.current=e},[e]),E.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function Gie(t){return typeof t=="function"}var T9=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"}),qie="VisuallyHidden",rS=E.forwardRef((t,e)=>l.jsx(ht.span,{...t,ref:e,style:{...T9,...t.style}}));rS.displayName=qie;var Yie=rS,wN="ToastProvider",[_N,Xie,Kie]=fp("Toast"),[A9,XZe]=ks("Toast",[Kie]),[Qie,iS]=A9(wN),C9=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=t,[a,c]=E.useState(null),[u,d]=E.useState(0),h=E.useRef(!1),f=E.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${wN}\`. Expected non-empty \`string\`.`),l.jsx(_N.Provider,{scope:e,children:l.jsx(Qie,{scope:e,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:
41a,onViewportChange:c,onToastAdd:E.useCallback(()=>d(m=>m+1),[]),onToastRemove:E.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};C9.displayName=wN;var M9="ToastViewport",Zie=["F8"],HC="toast.viewportPause",VC="toast.viewportResume",R9=E.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=Zie,label:i="Notifications ({hotkey})",...s}=t,o=iS(M9,n),a=Xie(n),c=E.useRef(null),u=E.useRef(null),d=E.useRef(null),h=E.useRef(null),f=At(e,h,o.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=o.toastCount>0;E.useEffect(()=>{const g=y=>{var x;r.length!==0&&r.every(w=>y[w]||y.code===w)&&((x=h.current)==null||x.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r]),E.useEffect(()=>{const g=c.current,y=h.current;if(v&&g&&y){const b=()=>{if(!o.isClosePausedRef.current){const S=new CustomEvent(HC);y.dispatchEvent(S),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const S=new CustomEvent(VC);y.dispatchEvent(S),o.isClosePausedRef.current=!1}},w=S=>{!g.contains(S.relatedTarget)&&x()},_=()=>{g.contains(document.activeElement)||x()};return g.addEventListener("focusin",b),g.addEventListener("focusout",w),g.addEventListener("pointermove",b),g.addEventListener("pointerleave",_),window.addEventListener("blur",b),window.addEventListener("focus",x),()=>{g.removeEventListener("focusin",b),g.removeEventListener("focusout",w),g.removeEventListener("pointermove",b),g.removeEventListener("pointerleave",_),window.removeEventListener("blur",b),window.removeEventListener("focus",x)}}},[v,o.isClosePausedRef]);const p=E.useCallback(({tabbingDirection:g})=>{const b=a().map(x=>{const w=x.ref.current,_=[w,...dse(w)];return g==="forwards"?_:_.reverse()});return(g==="forwards"?b.reverse():b).flat()},[a]);return E.useEffect(()=>{const g=h.current;if(g){const y=b=>{var _,S,T;const x=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!x){const M=document.activeElement,A=b.shiftKey;if(b.target===g&&A){(_=u.current)==null||_.focus();return}const j=p({tabbingDirection:A?"backwards":"forwards"}),k=j.findIndex(P=>P===M);CE(j.slice(k+1))?b.preventDefault():A?(S=u.current)==null||S.focus():(T=d.current)==null||T.focus()}};return g.addEventListener("keydown",y),()=>g.removeEventListener("keydown",y)}},[a,p]),l.jsxs(Uie,{ref:c,role:"region","aria-label":i.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&l.jsx(WC,{ref:u,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"forwards"});CE(g)}}),l.jsx(_N.Slot,{scope:n,children:l.jsx(ht.ol,{tabIndex:-1,...s,ref:f})}),v&&l.jsx(WC,{ref:d,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"backwards"});CE(g)}})]})});R9.displayName=M9;var P9="ToastFocusProxy",WC=E.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=t,s=iS(P9,n);return l.jsx(rS,{"aria-hidden":!0,tabIndex:0,...i,ref:e,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});WC.displayName=P9;var T0="Toast",Jie="toast.swipeStart",ese="toast.swipeMove",tse="toast.swipeCancel",nse="toast.swipeEnd",j9=E.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=t,[a,c]=uo({prop:r,defaultProp:i??!0,onChange:s,caller:T0});return l.jsx(Jo,{present:n||a,children:l.jsx(sse,{open:a,...o,ref:e,onClose:()=>c(!1),onPause:ns(t.onPause),onResume:ns(t.onResume),onSwipeStart:De(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:De(t.onSwipeMove,u=>{const{x:d,y:h}=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",`${h}px`)}),onSwipeCancel:De(t.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:De(t.onSwipeEnd,u=>{const{x:d,y:h}=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",`${h}px`),c(!1)})})})});j9.displayName=T0;var[rse,ise]=A9(T0,{onClose(){}}),sse=E.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:m,...v}=t,p=iS(T0,n),[g,y]=E.useState(null),b=At(e,P=>y(P)),x=E.useRef(null),w=E.useRef(null),_=i||p.duration,S=E.useRef(0),T=E.useRef(_),M=E.useRef(0),{onToastAdd:A,onToastRemove:C}=p,R=ns(()=>{var O;(g==null?void 0:g.contains(document.activeElement))&&((O=p.viewport)==null||O.focus()),o()}),j=E.useCallback(P=>
41{!P||P===1/0||(window.clearTimeout(M.current),S.current=new Date().getTime(),M.current=window.setTimeout(R,P))},[R]);E.useEffect(()=>{const P=p.viewport;if(P){const O=()=>{j(T.current),u==null||u()},L=()=>{const F=new Date().getTime()-S.current;T.current=T.current-F,window.clearTimeout(M.current),c==null||c()};return P.addEventListener(HC,L),P.addEventListener(VC,O),()=>{P.removeEventListener(HC,L),P.removeEventListener(VC,O)}}},[p.viewport,_,c,u,j]),E.useEffect(()=>{s&&!p.isClosePausedRef.current&&j(_)},[s,_,p.isClosePausedRef,j]),E.useEffect(()=>(A(),()=>C()),[A,C]);const k=E.useMemo(()=>g?F9(g):null,[g]);return p.viewport?l.jsxs(l.Fragment,{children:[k&&l.jsx(ose,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:k}),l.jsx(rse,{scope:n,onClose:R,children:uh.createPortal(l.jsx(_N.ItemSlot,{scope:n,children:l.jsx(Fie,{asChild:!0,onEscapeKeyDown:De(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||R(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(ht.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":p.swipeDirection,...v,ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:De(t.onKeyDown,P=>{P.key==="Escape"&&(a==null||a(P.nativeEvent),P.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,R()))}),onPointerDown:De(t.onPointerDown,P=>{P.button===0&&(x.current={x:P.clientX,y:P.clientY})}),onPointerMove:De(t.onPointerMove,P=>{if(!x.current)return;const O=P.clientX-x.current.x,L=P.clientY-x.current.y,F=!!w.current,D=["left","right"].includes(p.swipeDirection),I=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,N=D?I(0,O):0,G=D?0:I(0,L),q=P.pointerType==="touch"?10:2,W={x:N,y:G},Y={originalEvent:P,delta:W};F?(w.current=W,wx(ese,h,Y,{discrete:!1})):y4(W,p.swipeDirection,q)?(w.current=W,wx(Jie,d,Y,{discrete:!1}),P.target.setPointerCapture(P.pointerId)):(Math.abs(O)>q||Math.abs(L)>q)&&(x.current=null)}),onPointerUp:De(t.onPointerUp,P=>{const O=w.current,L=P.target;if(L.hasPointerCapture(P.pointerId)&&L.releasePointerCapture(P.pointerId),w.current=null,x.current=null,O){const F=P.currentTarget,D={originalEvent:P,delta:O};y4(O,p.swipeDirection,p.swipeThreshold)?wx(nse,m,D,{discrete:!0}):wx(tse,f,D,{discrete:!0}),F.addEventListener("click",I=>I.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),ose=t=>{const{__scopeToast:e,children:n,...r}=t,i=iS(T0,e),[s,o]=E.useState(!1),[a,c]=E.useState(!1);return cse(()=>o(!0)),E.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:l.jsx(E0,{asChild:!0,children:l.jsx(rS,{...r,children:s&&l.jsxs(l.Fragment,{children:[i.label," ",n]})})})},ase="ToastTitle",N9=E.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return l.jsx(ht.div,{...r,ref:e})});N9.displayName=ase;var lse="ToastDescription",k9=E.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return l.jsx(ht.div,{...r,ref:e})});k9.displayName=lse;var O9="ToastAction",I9=E.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?l.jsx(D9,{altText:n,asChild:!0,children:l.jsx(SN,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${O9}\`. Expected non-empty \`string\`.`),null)});I9.displayName=O9;var L9="ToastClose",SN=E.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,i=ise(L9,n);return l.jsx(D9,{asChild:!0,children:l.jsx(ht.button,{type:"button",...r,ref:e,onClick:De(t.onClick,i.onClose)})})});SN.displayName=L9;var D9=E.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...i}=t;return l.jsx(ht.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:e})});function F9(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),use(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...F9(r))}}),e}function wx(t,e,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?bN(i,s):i.dispatchEvent(s)}var y4=(t,e,n=0)=>{const r=Math.abs(t.x),i=Math.abs(t.y),s=r>i;return e==="left"||e==="right"?s&&r>n:!s&&i>n};function cse(t=()=>{}){const e=ns(t);Nr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function use(t){return t.nodeType===t.ELEMENT_NODE}function dse(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function CE(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var hse=C9,U9=R9,B9=j9,z9=N9,$9=k9,H9=I9,V9=SN;function W9(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=W9(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Gt(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=W9(t))&&(r&&(r+=" "),r+=e);return r}const x4=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,b4=Gt,A0=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return b4(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=e,o=Object.keys(i).map(u=>{const d=n==null?void 0:n[u],h=s==null?void 0:s[u];if(d===null)return null;
vendor: 7,400 bytes, lines 41-150
41const f=x4(d)||x4(h);return i[u][f]}),a=n&&Object.entries(n).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),c=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:f,...m}=d;return Object.entries(m).every(v=>{let[p,g]=v;return Array.isArray(g)?g.includes({...s,...a}[p]):{...s,...a}[p]===g})?[...u,h,f]:u},[]);return b4(t,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const fse=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),G9=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */var mse={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"};/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const pse=E.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},c)=>E.createElement("svg",{ref:c,...mse,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:G9("lucide",i),...a},[...o.map(([u,d])=>E.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const ot=(t,e)=>{const n=E.forwardRef(({className:r,...i},s)=>E.createElement(pse,{ref:s,iconNode:e,className:G9(`lucide-${fse(t)}`,r),...i}));return n.displayName=`${t}`,n};/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const gse=ot("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 67 * @license lucide-react v0.462.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const GC=ot("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 72 * @license lucide-react v0.462.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const Xc=ot("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 77 * @license lucide-react v0.462.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const vse=ot("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/** 82 * @license lucide-react v0.462.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const yse=ot("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 87 * @license lucide-react v0.462.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const xse=ot("AudioWaveform",[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",key:"57tc96"}]]);/** 92 * @license lucide-react v0.462.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const bse=ot("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"}]]);/** 97 * @license lucide-react v0.462.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const wse=ot("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"}]]);/** 102 * @license lucide-react v0.462.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const Sm=ot("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 107 * @license lucide-react v0.462.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const pp=ot("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 112 * @license lucide-react v0.462.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const _se=ot("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 117 * @license lucide-react v0.462.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const Sse=ot("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 122 * @license lucide-react v0.462.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const Hd=ot("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 127 * @license lucide-react v0.462.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const ry=ot("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 132 * @license lucide-react v0.462.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const EN=ot("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 137 * @license lucide-react v0.462.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const Ese=ot("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 142 * @license lucide-react v0.462.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const w4=ot("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/** 147 * @license lucide-react v0.462.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree.
151 */const q9=ot("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 152 * @license lucide-react v0.462.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const Tse=ot("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 157 * @license lucide-react v0.462.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const Ase=ot("Crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/** 162 * @license lucide-react v0.462.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const Cse=ot("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 167 * @license lucide-react v0.462.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const Mse=ot("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 172 * @license lucide-react v0.462.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const Vr=ot("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"}]]);/** 177 * @license lucide-react v0.462.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const Rse=ot("Drum",[["path",{d:"m2 2 8 8",key:"1v6059"}],["path",{d:"m22 2-8 8",key:"173r8a"}],["ellipse",{cx:"12",cy:"9",rx:"10",ry:"5",key:"liohsx"}],["path",{d:"M7 13.4v7.9",key:"1yi6u9"}],["path",{d:"M12 14v8",key:"1tn2tj"}],["path",{d:"M17 13.4v7.9",key:"eqz2v3"}],["path",{d:"M2 9v8a10 5 0 0 0 20 0V9",key:"1750ul"}]]);/** 182 * @license lucide-react v0.462.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const Em=ot("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"}]]);/** 187 * @license lucide-react v0.462.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const Tm=ot("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"}]]);/** 192 * @license lucide-react v0.462.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const Pse=ot("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"}]]);/** 197 * @license lucide-react v0.462.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree. 201 */const qw=ot("Gem",[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]]);/** 202 * @license lucide-react v0.462.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const jse=ot("Guitar",[["path",{d:"m11.9 12.1 4.514-4.514",key:"109xqo"}],["path",{d:"M20.1 2.3a1 1 0 0 0-1.4 0l-1.114 1.114A2 2 0 0 0 17 4.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 17.828 7h1.344a2 2 0 0 0 1.414-.586L21.7 5.3a1 1 0 0 0 0-1.4z",key:"txyc8t"}],["path",{d:"m6 16 2 2",key:"16qmzd"}],["path",{d:"M8.2 9.9C8.7 8.8 9.8 8 11 8c2.8 0 5 2.2 5 5 0 1.2-.8 2.3-1.9 2.8l-.9.4A2 2 0 0 0 12 18a4 4 0 0 1-4 4c-3.3 0-6-2.7-6-6a4 4 0 0 1 4-4 2 2 0 0 0 1.8-1.2z",key:"1u8q3z"}],["circle",{cx:"11.5",cy:"12.5",r:".5",fill:"currentColor",key:"16onso"}]]);/** 207 * @license lucide-react v0.462.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const Y9=ot("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 212 * @license lucide-react v0.462.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const X9=ot("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 217 * @license lucide-react v0.462.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const Nse=ot("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 222 * @license lucide-react v0.462.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const kse=ot("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** 227 * @license lucide-react v0.462.0 - ISC 228 * 229 * This source code is licensed under the ISC license. 230 * See the LICENSE file in the root directory of this source tree. 231 */const Ose=ot("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 232 * @license lucide-react v0.462.0 - ISC 233 * 234 * This source code is licensed under the ISC license. 235 * See the LICENSE file in the root directory of this source tree. 236 */const Ise=ot("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 237 * @license lucide-react v0.462.0 - ISC 238 * 239 * This source code is licensed under the ISC license. 240 * See the LICENSE file in the root directory of this source tree. 241 */const Bo=ot("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 242 * @license lucide-react v0.462.0 - ISC 243 * 244 * This source code is licensed under the ISC license. 245 * See the LICENSE file in the root directory of this source tree.
246 */const K9=ot("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"}]]);/** 247 * @license lucide-react v0.462.0 - ISC 248 * 249 * This source code is licensed under the ISC license. 250 * See the LICENSE file in the root directory of this source tree. 251 */const Lse=ot("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/** 252 * @license lucide-react v0.462.0 - ISC 253 * 254 * This source code is licensed under the ISC license. 255 * See the LICENSE file in the root directory of this source tree. 256 */const sS=ot("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"}]]);/** 257 * @license lucide-react v0.462.0 - ISC 258 * 259 * This source code is licensed under the ISC license. 260 * See the LICENSE file in the root directory of this source tree. 261 */const Dse=ot("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 262 * @license lucide-react v0.462.0 - ISC 263 * 264 * This source code is licensed under the ISC license. 265 * See the LICENSE file in the root directory of this source tree. 266 */const Fse=ot("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 267 * @license lucide-react v0.462.0 - ISC 268 * 269 * This source code is licensed under the ISC license. 270 * See the LICENSE file in the root directory of this source tree. 271 */const Q9=ot("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** 272 * @license lucide-react v0.462.0 - ISC 273 * 274 * This source code is licensed under the ISC license. 275 * See the LICENSE file in the root directory of this source tree. 276 */const Use=ot("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 277 * @license lucide-react v0.462.0 - ISC 278 * 279 * This source code is licensed under the ISC license. 280 * See the LICENSE file in the root directory of this source tree. 281 */const Bse=ot("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/** 282 * @license lucide-react v0.462.0 - ISC 283 * 284 * This source code is licensed under the ISC license. 285 * See the LICENSE file in the root directory of this source tree. 286 */const zse=ot("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 287 * @license lucide-react v0.462.0 - ISC 288 * 289 * This source code is licensed under the ISC license. 290 * See the LICENSE file in the root directory of this source tree. 291 */const $se=ot("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/** 292 * @license lucide-react v0.462.0 - ISC 293 * 294 * This source code is licensed under the ISC license. 295 * See the LICENSE file in the root directory of this source tree. 296 */const Z9=ot("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 297 * @license lucide-react v0.462.0 - ISC 298 * 299 * This source code is licensed under the ISC license. 300 * See the LICENSE file in the root directory of this source tree. 301 */const J9=ot("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 302 * @license lucide-react v0.462.0 - ISC 303 * 304 * This source code is licensed under the ISC license. 305 * See the LICENSE file in the root directory of this source tree. 306 */const Hse=ot("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 307 * @license lucide-react v0.462.0 - ISC 308 * 309 * This source code is licensed under the ISC license. 310 * See the LICENSE file in the root directory of this source tree. 311 */const Vse=ot("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"}]]);/** 312 * @license lucide-react v0.462.0 - ISC 313 * 314 * This source code is licensed under the ISC license. 315 * See the LICENSE file in the root directory of this source tree. 316 */const Wse=ot("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 317 * @license lucide-react v0.462.0 - ISC 318 * 319 * This source code is licensed under the ISC license. 320 * See the LICENSE file in the root directory of this source tree. 321 */const C0=ot("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
321y:"oel41y"}]]);/** 322 * @license lucide-react v0.462.0 - ISC 323 * 324 * This source code is licensed under the ISC license. 325 * See the LICENSE file in the root directory of this source tree. 326 */const Gse=ot("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/** 327 * @license lucide-react v0.462.0 - ISC 328 * 329 * This source code is licensed under the ISC license. 330 * See the LICENSE file in the root directory of this source tree. 331 */const qse=ot("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/** 332 * @license lucide-react v0.462.0 - ISC 333 * 334 * This source code is licensed under the ISC license. 335 * See the LICENSE file in the root directory of this source tree. 336 */const ho=ot("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 337 * @license lucide-react v0.462.0 - ISC 338 * 339 * This source code is licensed under the ISC license. 340 * See the LICENSE file in the root directory of this source tree. 341 */const TN=ot("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 342 * @license lucide-react v0.462.0 - ISC 343 * 344 * This source code is licensed under the ISC license. 345 * See the LICENSE file in the root directory of this source tree. 346 */const eH=ot("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** 347 * @license lucide-react v0.462.0 - ISC 348 * 349 * This source code is licensed under the ISC license. 350 * See the LICENSE file in the root directory of this source tree. 351 */const _4=ot("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 352 * @license lucide-react v0.462.0 - ISC 353 * 354 * This source code is licensed under the ISC license. 355 * See the LICENSE file in the root directory of this source tree. 356 */const Yse=ot("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"}]]);/** 357 * @license lucide-react v0.462.0 - ISC 358 * 359 * This source code is licensed under the ISC license. 360 * See the LICENSE file in the root directory of this source tree. 361 */const AN=ot("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/** 362 * @license lucide-react v0.462.0 - ISC 363 * 364 * This source code is licensed under the ISC license. 365 * See the LICENSE file in the root directory of this source tree. 366 */const gp=ot("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 13,135 bytes, lines 366-376
366],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 367 * @license lucide-react v0.462.0 - ISC 368 * 369 * This source code is licensed under the ISC license. 370 * See the LICENSE file in the root directory of this source tree. 371 */const tH=ot("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);/** 372 * @license lucide-react v0.462.0 - ISC 373 * 374 * This source code is licensed under the ISC license. 375 * See the LICENSE file in the root directory of this source tree. 376 */const nH=ot("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),CN="-",Xse=t=>{const e=Qse(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const a=o.split(CN);return a[0]===""&&a.length!==1&&a.shift(),rH(a,e)||Kse(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},rH=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),i=r?rH(t.slice(1),r):void 0;if(i)return i;if(e.validators.length===0)return;const s=t.join(CN);return(o=e.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},S4=/^\[(.+)\]$/,Kse=t=>{if(S4.test(t)){const e=S4.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},Qse=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Jse(Object.entries(t.classGroups),n).forEach(([s,o])=>{qC(o,r,s,e)}),r},qC=(t,e,n,r)=>{t.forEach(i=>{if(typeof i=="string"){const s=i===""?e:E4(e,i);s.classGroupId=n;return}if(typeof i=="function"){if(Zse(i)){qC(i(r),e,n,r);return}e.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{qC(o,E4(e,s),n,r)})})},E4=(t,e)=>{let n=t;return e.split(CN).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Zse=t=>t.isThemeGetter,Jse=(t,e)=>e?t.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[n,i]}):t,eoe=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),e++,e>t&&(e=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},iH="!",toe=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,i=e[0],s=e.length,o=a=>{const c=[];let u=0,d=0,h;for(let g=0;g<a.length;g++){let y=a[g];if(u===0){if(y===i&&(r||a.slice(g,g+s)===e)){c.push(a.slice(d,g)),d=g+s;continue}if(y==="/"){h=g;continue}}y==="["?u++:y==="]"&&u--}const f=c.length===0?a:a.substring(d),m=f.startsWith(iH),v=m?f.substring(1):f,p=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},noe=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},roe=t=>({cache:eoe(t.cacheSize),parseClassName:toe(t),...Xse(t)}),ioe=/\s+/,soe=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=e,s=[],o=t.trim().split(ioe);let a="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}=n(u);let v=!!m,p=r(v?f.substring(0,m):f);if(!p){if(!v){a=u+(a.length>0?" "+a:a);continue}if(p=r(f),!p){a=u+(a.length>0?" "+a:a);continue}v=!1}const g=noe(d).join(":"),y=h?g+iH:g,b=y+p;if(s.includes(b))continue;s.push(b);const x=i(p,v);for(let w=0;w<x.length;++w){const _=x[w];s.push(y+_)}a=u+(a.length>0?" "+a:a)}return a};function ooe(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=sH(e))&&(r&&(r+=" "),r+=n);return r}const sH=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=sH(t[r]))&&(n&&(n+=" "),n+=e);return n};function aoe(t,...e){let n,r,i,s=o;function o(c){const u=e.reduce((d,h)=>h(d),t());return n=roe(u),r=n.cache.get,i=n.cache.set,s=a,a(c)}function a(c){const u=r(c);if(u)return u;const d=soe(c,n);return i(c,d),d}return function(){return s(ooe.apply(null,arguments))}}const wn=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},oH=/^\[(?:([a-z-]+):)?(.+)\]$/i,loe=/^\d+\/\d+$/,coe=new Set(["px","full","screen"]),uoe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,doe=/\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$/,hoe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,foe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,moe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fa=t=>zf(t)||coe.has(t)||loe.test(t),Ul=t=>vp(t,"length",_oe),zf=t=>!!t&&!Number.isNaN(Number(t)),ME=t=>vp(t,"number",zf),tg=t=>!!t&&Number.isInteger(Number(t)),poe=t=>t.endsWith("%")&&zf(t.slice(0,-1)),Et=t=>oH.test(t),Bl=t=>uoe.test(t),goe=new Set(["length","size","percentage"]),voe=t=>vp(t,goe,aH),yoe=t=>vp(t,"position",aH),xoe=new Set(["image","url"]),boe=t=>vp(t,xoe,Eoe),woe=t=>vp(t,"",Soe),ng=()=>!0,vp=(t,e,n)=>{const r=oH.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},_oe=t=>doe.test(t)&&!hoe.test(t),aH=()=>!1,Soe=t=>foe.test(t),Eoe=t=>moe.test(t),Toe=()=>{const t=wn("colors"),e=wn("spacing"),n=wn("blur"),r=wn("brightness"),i=wn("borderColor"),s=wn("borderRadius"),o=wn("borderSpacing"),a=wn("borderWidth"),c=wn("contrast"),u=wn("grayscale"),d=wn("hueRotate"),h=wn("invert"),f=wn("gap"),m=wn("gradientColorStops"),v=wn("gradientColorStopPositions"),p=wn("inset"),g=wn("margin"),y=wn("opacity"),b=wn("padding"),x=wn("saturate"),w=wn("scale"),_=wn("sepia"),S=wn("skew"),T=wn("space"),M=wn("translate"),A=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",Et,e],j=()=>[Et,e],k=()=>["",Fa,Ul],P=()=>["auto",zf,Et],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",Et],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[zf,Et];return{cacheSize:500,separator:":",theme:{colors:[ng],spacing:[Fa,Ul],blur:["none","",Bl,Et],brightness:G(),borderColor:[t],borderRadius:["none","","full",Bl,Et],borderSpacing:j(),borderWidth:k(),contrast:G(),grayscale:I(),hueRotate:G(),invert:I(),gap:j(),gradientColorStops:[t],gradientColorStopPositions:[poe,Ul],inset:R(),margin:R(),opacity:G(),padding:j(),saturate:G(),scale:G(),sepia:I(),skew:G(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Et]}],container:["container"],columns:[{columns:[Bl]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:[...O(),Et]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tg,Et]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Et]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",tg,Et]}],"grid-cols":[{"grid-cols":[ng]}],"col-start-end":[{col:["auto",{span:["full",tg,Et]},Et]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[ng]}],"row-start-end":[{row:["auto",{span:[tg,Et]},Et]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Et]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Et]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Et,e]}],"min-w":[{"min-w":[Et,e,"min","max","fit"]}],"max-w":[{"max-w":[Et,e,"none","full","min","max","fit","prose",{screen:[Bl]},Bl]}],h:[{h:[Et,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Et,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Et,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Et,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Bl,Ul]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ME]}],"font-family":[{font:[ng]}],"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",Et]}],"line-clamp":[{"line-clamp":["none",zf,ME]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Fa,Et]}],"list-image":[{"list-image":["none",Et]}],"list-style-type":[{list:["none","disc","decimal",Et]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Fa,Ul]}],"underline-offset":[{"underline-offset":["auto",Fa,Et]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Et]}],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",Et]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),yoe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",voe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},boe]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[v]}
376],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,468 bytes, line 376
376],"divide-style":[{divide:L()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[Fa,Et]}],"outline-w":[{outline:[Fa,Ul]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Fa,Ul]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Bl,woe]}],"shadow-color":[{shadow:[ng]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Bl,Et]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],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":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"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",Et]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",Et]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",Et]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[tg,Et]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Et]}],accent:[{accent:["auto",t]}],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",Et]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],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",Et]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Fa,Ul,ME]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
376none"]}]},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"]}}},Aoe=aoe(Toe);function He(...t){return Aoe(Gt(t))}const Coe=hse,lH=E.forwardRef(({className:t,...e},n)=>l.jsx(U9,{ref:n,className:He("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]",t),...e}));lH.displayName=U9.displayName;const Moe=A0("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"}}),cH=E.forwardRef(({className:t,variant:e,...n},r)=>l.jsx(B9,{ref:r,className:He(Moe({variant:e}),t),...n}));cH.displayName=B9.displayName;const Roe=E.forwardRef(({className:t,...e},n)=>l.jsx(H9,{ref:n,className:He("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));Roe.displayName=H9.displayName;const uH=E.forwardRef(({className:t,...e},n)=>l.jsx(V9,{ref:n,className:He("absolute right-2 top-2 rounded-md p-1 text-foreground
376/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:l.jsx(gp,{className:"h-4 w-4"})}));uH.displayName=V9.displayName;const dH=E.forwardRef(({className:t,...e},n)=>l.jsx(z9,{ref:n,className:He("text-sm font-semibold",t),...e}));dH.displayName=z9.displayName;const hH=E.forwardRef(({className:t,...e},n)=>l.jsx($9,{ref:n,className:He("text-sm opacity-90",t),...e}));hH.displayName=$9.displayName;function fH(){const{toasts:t}=lu();return l.jsxs(Coe,{children:[t.map(function({id:e,title:n,description:r,action:i,...s}){return l.jsxs(cH,{...s,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(dH,{children:n}),r&&l.jsx(hH,{children:r})]}),i,l.jsx(uH,{})]},e)}),l.jsx(lH,{})]})}var T4=["light","dark"],Poe="(prefers-color-scheme: dark)",joe=E.createContext(void 0),Noe={setTheme:t=>{},themes:[]},koe=()=>{var t;return(t=E.useContext(joe))!=null?t:Noe};E.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:c})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;
376${`c.remove(${a.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=i?T4.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(v,p=!1,g=!0)=>{let y=o?o[v]:v,b=p?v+"|| ''":`'${y}'`,x="";return i&&g&&!p&&T4.includes(v)&&(x+=`d.style.colorScheme = '${v}';`),n==="class"?p||y?x+=`c.add(${b})`:x+="null":y&&(x+=`d[s](n,${b})`),x},m=t?`!function(){${d}${f(t)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${u})){var t='${Poe}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${u?"":"else{"+f(s,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(s,!1,!1)};}${h}}catch(t){}}();`;return E.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})});var Ooe=t=>{switch(t){case"success":return Doe;case"info":return Uoe;case"warning":return Foe;case"error":return Boe;default:return null}},Ioe=Array(12).fill(0),Loe=({visible:t,className:e})=>V.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},V.createElement("div",{className:"sonner-spinner"},Ioe.map((n,r)=>V.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Doe=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),Foe=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},V.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"})),Uoe=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),Boe=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),zoe=V.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"},V.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),V.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),$oe=()=>{let[t,e]=V.useState(document.hidden);return V.useEffect(()=>{let n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},YC=1,Hoe=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,i=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:YC++,s=this.toasts.find(a=>a.id===i),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...t,id:i,title:n}),{...a,...t,id:i,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:i}),i},this.dismiss=t=>
376(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=t instanceof Promise?t:t(),i=n!==void 0,s,o=r.then(async c=>{if(s=["resolve",c],V.isValidElement(c))i=!1,this.create({id:n,type:"default",message:c});else if(Woe(c)&&!c.ok){i=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${c.status}`):e.error,d=typeof e.description=="function"?await e.description(`HTTP error! status: ${c.status}`):e.description;this.create({id:n,type:"error",message:u,description:d})}else if(e.success!==void 0){i=!1;let u=typeof e.success=="function"?await e.success(c):e.success,d=typeof e.description=="function"?await e.description(c):e.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(s=["reject",c],e.error!==void 0){i=!1;let u=typeof e.error=="function"?await e.error(c):e.error,d=typeof e.description=="function"?await e.description(c):e.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;i&&(this.dismiss(n),n=void 0),(c=e.finally)==null||c.call(e)}),a=()=>new Promise((c,u)=>o.then(()=>s[0]==="reject"?u(s[1]):c(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||YC++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Fi=new Hoe,Voe=(t,e)=>{let n=(e==null?void 0:e.id)||YC++;return Fi.addToast({title:t,...e,id:n}),n},Woe=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",Goe=Voe,qoe=()=>Fi.toasts,Yoe=()=>Fi.getActiveToasts(),ga=Object.assign(Goe,{success:Fi.success,info:Fi.info,warning:Fi.warning,error:Fi.error,custom:Fi.custom,message:Fi.message,promise:Fi.promise,dismiss:Fi.dismiss,loading:Fi.loading},{getHistory:qoe,getToasts:Yoe});function Xoe(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}Xoe(`: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;
376left: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}
376: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%);
376--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%)} 377`);function _x(t){return t.label!==void 0}var Koe=3,Qoe="32px",Zoe="16px",A4=4e3,Joe=356,eae=14,tae=20,nae=200;function xo(...t){return t.filter(Boolean).join(" ")}function rae(t){let[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}var iae=t=>{var e,n,r,i,s,o,a,c,u,d,h;let{invert:f,toast:m,unstyled:v,interacting:p,setHeights:g,visibleToasts:y,heights:b,index:x,toasts:w,expanded:_,removeToast:S,defaultRichColors:T,closeButton:M,style:A,cancelButtonStyle:C,actionButtonStyle:R,className:j="",descriptionClassName:k="",duration:P,position:O,gap:L,loadingIcon:F,expandByDefault:D,classNames:I,icons:N,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:q}=t,[W,Y]=V.useState(null),[te,Q]=V.useState(null),[X,ae]=V.useState(!1),[J,ue]=V.useState(!1),[de,H]=V.useState(!1),[_e,he]=V.useState(!1),[xe,we]=V.useState(!1),[ne,Pe]=V.useState(0),[$,B]=V.useState(0),re=V.useRef(m.duration||P||A4),pe=V.useRef(null),ge=V.useRef(null),ye=x===0,je=x+1<=y,be=m.type,Ae=m.dismissible!==!1,Qe=m.className||"",at=m.descriptionClassName||"",oe=V.useMemo(()=>b.findIndex(Se=>Se.toastId===m.id)||0,[b,m.id]),rt=V.useMemo(()=>{var Se;return(Se=m.closeButton)!=null?Se:M},[m.closeButton,M]),qe=V.useMemo(()=>m.duration||P||A4,[m.duration,P]),We=V.useRef(0),ke=V.useRef(0),Oe=V.useRef(0),it=V.useRef(null),[vt,Dt]=O.split("-"),Ie=V.useMemo(()=>b.reduce((Se,Ne,st)=>st>=oe?Se:Se+Ne.height,0),[b,oe]),Ce=$oe(),K=m.invert||f,Re=be==="loading";ke.current=V.useMemo(()=>oe*L+Ie,[oe,Ie]),V.useEffect(()=>{re.current=qe},[qe]),V.useEffect(()=>{ae(!0)},[]),V.useEffect(()=>{let Se=ge.current;if(Se){let Ne=Se.getBoundingClientRect().height;return B(Ne),g(st=>[{toastId:m.id,height:Ne,position:m.position},...st]),()=>g(st=>st.filter(Ve=>Ve.toastId!==m.id))}},[g,m.id]),V.useLayoutEffect(()=>{if(!X)return;let Se=ge.current,Ne=Se.style.height;Se.style.height="auto";let st=Se.getBoundingClientRect().height;Se.style.height=Ne,B(st),g(Ve=>Ve.find(Fe=>Fe.toastId===m.id)?Ve.map(Fe=>Fe.toastId===m.id?{...Fe,height:st}:Fe):[{toastId:m.id,height:st,position:m.position},...Ve])},[X,m.title,m.description,g,m.id]);let Ee=V.useCallback(()=>{ue(!0),Pe(ke.current),g(Se=>
377Se.filter(Ne=>Ne.toastId!==m.id)),setTimeout(()=>{S(m)},nae)},[m,S,g,ke]);V.useEffect(()=>{if(m.promise&&be==="loading"||m.duration===1/0||m.type==="loading")return;let Se;return _||p||q&&Ce?(()=>{if(Oe.current<We.current){let Ne=new Date().getTime()-We.current;re.current=re.current-Ne}Oe.current=new Date().getTime()})():re.current!==1/0&&(We.current=new Date().getTime(),Se=setTimeout(()=>{var Ne;(Ne=m.onAutoClose)==null||Ne.call(m,m),Ee()},re.current)),()=>clearTimeout(Se)},[_,p,m,be,q,Ce,Ee]),V.useEffect(()=>{m.delete&&Ee()},[Ee,m.delete]);function lt(){var Se,Ne,st;return N!=null&&N.loading?V.createElement("div",{className:xo(I==null?void 0:I.loader,(Se=m==null?void 0:m.classNames)==null?void 0:Se.loader,"sonner-loader"),"data-visible":be==="loading"},N.loading):F?V.createElement("div",{className:xo(I==null?void 0:I.loader,(Ne=m==null?void 0:m.classNames)==null?void 0:Ne.loader,"sonner-loader"),"data-visible":be==="loading"},F):V.createElement(Loe,{className:xo(I==null?void 0:I.loader,(st=m==null?void 0:m.classNames)==null?void 0:st.loader),visible:be==="loading"})}return V.createElement("li",{tabIndex:0,ref:ge,className:xo(j,Qe,I==null?void 0:I.toast,(e=m==null?void 0:m.classNames)==null?void 0:e.toast,I==null?void 0:I.default,I==null?void 0:I[be],(n=m==null?void 0:m.classNames)==null?void 0:n[be]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:T,"data-styled":!(m.jsx||m.unstyled||v),"data-mounted":X,"data-promise":!!m.promise,"data-swiped":xe,"data-removed":J,"data-visible":je,"data-y-position":vt,"data-x-position":Dt,"data-index":x,"data-front":ye,"data-swiping":de,"data-dismissible":Ae,"data-type":be,"data-invert":K,"data-swipe-out":_e,"data-swipe-direction":te,"data-expanded":!!(_||D&&X),style:{"--index":x,"--toasts-before":x,"--z-index":w.length-x,"--offset":`${J?ne:ke.current}px`,"--initial-height":D?"auto":`${$}px`,...A,...m.style},onDragEnd:()=>{H(!1),Y(null),it.current=null},onPointerDown:Se=>{Re||!Ae||(pe.current=new Date,Pe(ke.current),Se.target.setPointerCapture(Se.pointerId),Se.target.tagName!=="BUTTON"&&(H(!0),it.current={x:Se.clientX,y:Se.clientY}))},onPointerUp:()=>{var Se,Ne,st,Ve;if(_e||!Ae)return;it.current=null;let Fe=Number(((Se=ge.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ye=Number(((Ne=ge.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Te=new Date().getTime()-((st=pe.current)==null?void 0:st.getTime()),Xe=W==="x"?Fe:Ye,Ze=Math.abs(Xe)/Te;if(Math.abs(Xe)>=tae||Ze>.11){Pe(ke.current),(Ve=m.onDismiss)==null||Ve.call(m,m),Q(W==="x"?Fe>0?"right":"left":Ye>0?"down":"up"),Ee(),he(!0),we(!1);return}H(!1),Y(null)},onPointerMove:Se=>{var Ne,st,Ve,Fe;if(!it.current||!Ae||((Ne=window.getSelection())==null?void 0:Ne.toString().length)>0)return;let Ye=Se.clientY-it.current.y,Te=Se.clientX-it.current.x,Xe=(st=t.swipeDirections)!=null?st:rae(O);!W&&(Math.abs(Te)>1||Math.abs(Ye)>1)&&Y(Math.abs(Te)>Math.abs(Ye)?"x":"y");let Ze={x:0,y:0};W==="y"?(Xe.includes("top")||Xe.includes("bottom"))&&(Xe.includes("top")&&Ye<0||Xe.includes("bottom")&&Ye>0)&&(Ze.y=Ye):W==="x"&&(Xe.includes("left")||Xe.includes("right"))&&(Xe.includes("left")&&Te<0||Xe.includes("right")&&Te>0)&&(Ze.x=Te),(Math.abs(Ze.x)>0||Math.abs(Ze.y)>0)&&we(!0),(Ve=ge.current)==null||Ve.style.setProperty("--swipe-amount-x",`${Ze.x}px`),(Fe=ge.current)==null||Fe.style.setProperty("--swipe-amount-y",`${Ze.y}px`)}},rt&&!m.jsx?V.createElement("button",{"aria-label":G,"data-disabled":Re,"data-close-button":!0,onClick:Re||!Ae?()=>{}:()=>{var Se;Ee(),(Se=m.onDismiss)==null||Se.call(m,m)},className:xo(I==null?void 0:I.closeButton,(i=m==null?void 0:m.classNames)==null?void 0:i.closeButton)},(s=N==null?void 0:N.close)!=null?s:zoe):null,m.jsx||E.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:V.createElement(V.Fragment,null,be||m.icon||m.promise?V.createElement("div",{"data-icon":"",className:xo(I==null?void 0:I.icon,(o=m==null?void 0:m.classNames)==null?void 0:o.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||lt():null,m.type!=="loading"?m.
vendor: 3,522 bytes, line 377
377icon||(N==null?void 0:N[be])||Ooe(be):null):null,V.createElement("div",{"data-content":"",className:xo(I==null?void 0:I.content,(a=m==null?void 0:m.classNames)==null?void 0:a.content)},V.createElement("div",{"data-title":"",className:xo(I==null?void 0:I.title,(c=m==null?void 0:m.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?V.createElement("div",{"data-description":"",className:xo(k,at,I==null?void 0:I.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),E.isValidElement(m.cancel)?m.cancel:m.cancel&&_x(m.cancel)?V.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||C,onClick:Se=>{var Ne,st;_x(m.cancel)&&Ae&&((st=(Ne=m.cancel).onClick)==null||st.call(Ne,Se),Ee())},className:xo(I==null?void 0:I.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,E.isValidElement(m.action)?m.action:m.action&&_x(m.action)?V.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||R,onClick:Se=>{var Ne,st;_x(m.action)&&((st=(Ne=m.action).onClick)==null||st.call(Ne,Se),!Se.defaultPrevented&&Ee())},className:xo(I==null?void 0:I.actionButton,(h=m==null?void 0:m.classNames)==null?void 0:h.actionButton)},m.action.label):null))};function C4(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function sae(t,e){let n={};return[t,e].forEach((r,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?Zoe:Qoe;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}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(a)}),n}var oae=E.forwardRef(function(t,e){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:c,mobileOffset:u,theme:d="light",richColors:h,duration:f,style:m,visibleToasts:v=Koe,toastOptions:p,dir:g=C4(),gap:y=eae,loadingIcon:b,icons:x,containerAriaLabel:w="Notifications",pauseWhenPageIsHidden:_}=t,[S,T]=V.useState([]),M=V.useMemo(()=>Array.from(new Set([r].concat(S.filter(q=>q.position).map(q=>q.position)))),[S,r]),[A,C]=V.useState([]),[R,j]=V.useState(!1),[k,P]=V.useState(!1),[O,L]=V.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=V.useRef(null),D=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=V.useRef(null),N=V.useRef(!1),G=V.useCallback(q=>{T(W=>{var Y;return(Y=W.find(te=>te.id===q.id))!=null&&Y.delete||Fi.dismiss(q.id),W.filter(({id:te})=>te!==q.id)})},[]);return V.useEffect(()=>Fi.subscribe(q=>{if(q.dismiss){T(W=>W.map(Y=>Y.id===q.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{x9.flushSync(()=>{T(W=>{let Y=W.findIndex(te=>te.id===q.id);return Y!==-1?[...W.slice(0,Y),{...W[Y],...q},...W.slice(Y+1)]:[q,...W]})})})}),[]),V.useEffect(()=>{if(d!=="system"){L(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;let q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:W})=>{L(W?"dark":"light")})}catch{q.addListener(({matches:Y})=>
377{try{L(Y?"dark":"light")}catch(te){console.error(te)}})}},[d]),V.useEffect(()=>{S.length<=1&&j(!1)},[S]),V.useEffect(()=>{let q=W=>{var Y,te;i.every(Q=>W[Q]||W.code===Q)&&(j(!0),(Y=F.current)==null||Y.focus()),W.code==="Escape"&&(document.activeElement===F.current||(te=F.current)!=null&&te.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[i]),V.useEffect(()=>{if(F.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,N.current=!1)}},[F.current]),V.createElement("section",{ref:e,"aria-label":`${w} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((q,W)=>{var Y;let[te,Q]=q.split("-");return S.length?V.createElement("ol",{key:q,dir:g==="auto"?C4():g,tabIndex:-1,ref:F,className:a,"data-sonner-toaster":!0,"data-theme":O,"data-y-position":te,"data-lifted":R&&S.length>1&&!s,"data-x-position":Q,style:{"--front-toast-height":`${((Y=A[0])==null?void 0:Y.height)||0}px`,"--width":`${Joe}px`,"--gap":`${y}px`,...m,...sae(c,u)},onBlur:X=>{N.current&&!X.currentTarget.contains(X.relatedTarget)&&(N.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||N.current||(N.current=!0,I.current=X.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{k||j(!1)},onDragEnd:()=>j(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||P(!0)},onPointerUp:()=>P(!1)},S.filter(X=>!X.position&&W===0||X.position===q).map((X,ae)=>{var J,ue;return V.createElement(iae,{key:X.id,icons:x,index:ae,toast:X,defaultRichColors:h,duration:(J=p==null?void 0:p.duration)!=null?J:f,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:v,closeButton:(ue=p==null?void 0:p.closeButton)!=null?ue:o,interacting:k,position:q,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:G,toasts:S.filter(de=>de.position==X.position),heights:A.filter(de=>de.position==X.position),setHeights:C,expandByDefault:s,gap:y,loadingIcon:b,expanded:R,pauseWhenPageIsHidden:_,swipeDirections:t.swipeDirections})})):null}))});const aae=({...t})=>{const{theme:e="system"}=koe();return l.jsx(oae,{theme:e,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"}},...t})};var lae=Rj[" useId ".trim().toString()]||(()=>{}),cae=0;function io(t){const[e,n]=E.useState(lae());return Nr(()=>{n(r=>r??String(cae++))},[t]),e?`radix-${e}`:""}const uae=["top","right","bottom","left"],Kc=Math.min,ms=Math.max,Yw=Math.round,Sx=Math.floor,Ea=t=>({x:t,y:t}
vendor: 25,956 bytes, line 377
377),dae={left:"right",right:"left",bottom:"top",top:"bottom"},hae={start:"end",end:"start"};function XC(t,e,n){return ms(t,Kc(e,n))}function Sl(t,e){return typeof t=="function"?t(e):t}function El(t){return t.split("-")[0]}function yp(t){return t.split("-")[1]}function MN(t){return t==="x"?"y":"x"}function RN(t){return t==="y"?"height":"width"}const fae=new Set(["top","bottom"]);function va(t){return fae.has(El(t))?"y":"x"}function PN(t){return MN(va(t))}function mae(t,e,n){n===void 0&&(n=!1);const r=yp(t),i=PN(t),s=RN(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Xw(o)),[o,Xw(o)]}function pae(t){const e=Xw(t);return[KC(t),e,KC(e)]}function KC(t){return t.replace(/start|end/g,e=>hae[e])}const M4=["left","right"],R4=["right","left"],gae=["top","bottom"],vae=["bottom","top"];function yae(t,e,n){switch(t){case"top":case"bottom":return n?e?R4:M4:e?M4:R4;case"left":case"right":return e?gae:vae;default:return[]}}function xae(t,e,n,r){const i=yp(t);let s=yae(El(t),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(KC)))),s}function Xw(t){return t.replace(/left|right|bottom|top/g,e=>dae[e])}function bae(t){return{top:0,right:0,bottom:0,left:0,...t}}function mH(t){return typeof t!="number"?bae(t):{top:t,right:t,bottom:t,left:t}}function Kw(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function P4(t,e,n){let{reference:r,floating:i}=t;const s=va(e),o=PN(e),a=RN(o),c=El(e),u=s==="y",d=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let m;switch(c){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-i.width,y:h};break;default:m={x:r.x,y:r.y}}switch(yp(e)){case"start":m[o]-=f*(n&&u?-1:1);break;case"end":m[o]+=f*(n&&u?-1:1);break}return m}const wae=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:h}=P4(u,r,c),f=r,m={},v=0;for(let p=0;p<a.length;p++){const{name:g,fn:y}=a[p],{x:b,y:x,data:w,reset:_}=await y({x:d,y:h,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:u,platform:o,elements:{reference:t,floating:e}});d=b??d,h=x??h,m={...m,[g]:{...m[g],...w}},_&&v<=50&&(v++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(u=_.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):_.rects),{x:d,y:h}=P4(u,f,c)),p=-1)}return{x:d,y:h,placement:f,strategy:i,middlewareData:m}};async function iy(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:m=0}=Sl(e,t),v=mH(m),g=a[f?h==="floating"?"reference":"floating":h],y=Kw(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),b=h==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},_=Kw(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:c}):b);return{top:(y.top-_.top+v.top)/w.y,bottom:(_.bottom-y.bottom+v.bottom)/w.y,left:(y.left-_.left+v.left)/w.x,right:(_.right-y.right+v.right)/w.x}}const _ae=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:c}=e,{element:u,padding:d=0}=Sl(t,e)||{};if(u==null)return{};const h=mH(d),f={x:n,y:r},m=PN(i),v=RN(m),p=await o.getDimensions(u),g=m==="y",y=g?"top":"left",b=g?"bottom":"right",x=g?"clientHeight":"clientWidth",w=s.reference[v]+s.reference[m]-f[m]-s.floating[v],_=f[m]-s.reference[m],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let T=S?S[x]:0;(!T||!await(o.isElement==null?void 0:o.isElement(S)))&&(T=a.floating[x]||s.floating[v]);const M=w/2-_/2,A=T/2-p[v]/2-1,C=Kc(h[y],A),R=Kc(h[b],A),j=C,k=T-p[v]-R,P=T/2-p[v]/2+M,O=XC(j,P,k),L=!c.arrow&&yp(i)!=null&&P!==O&&s.reference[v]/2-(P<j?C:R)-p[v]/2<0,F=L?P<j?P-j:P-k:0;return{[m]:f[m]+F,data:{[m]:O,centerOffset:P-O-F,...L&&{alignmentOffset:F}},reset:L}}}),Sae=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...g}=Sl(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=El(i),b=va(a),x=El(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(u.floating)),_=f||(x||!p?[Xw(a)]:pae(a)),S=v!=="none";!f&&S&&_.push(...xae(a,p,v,w));const T=[a,..._],M=await iy(e,g),A=[];let C=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&A.push(M[y]),h){const P=mae(i,o,w);A.push(M[P[0]],M[P[1]])}if(C=[...C,{placement:i,overflows:A}],!A.every(P=>P<=0)){var R,j;const P=(((R=s.flip)==null?void 0:R.index)||0)+1,O=T[P];if(O&&(!(h==="alignment"?b!==va(O):!1)||C.every(D=>D.overflows[0]>0&&va(D.placement)===b)))return{data:{index:P,overflows:C},reset:{placement:O}};let L=(j=C.filter(F=>F.overflows[0]<=0).sort((F,D)=>F.overflows[1]-D.overflows[1])[0])==null?void 0:j.placement;if(!L)switch(m){case"bestFit":{var k;const F=(k=C.filter(D=>{if(S){const I=va(D.placement);return I===b||I==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(I=>I>0).reduce((I,N)=>I+N,0)]).sort((D,I)=>D[1]-I[1])[0])==null?void 0:k[0];F&&(L=F);break}case"initialPlacement":L=a;break}if(i!==L)return{reset:{placement:L}}}return{}}}};function j4(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function N4(t){return uae.some(e=>t[e]>=0)}const Eae=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...i}=Sl(t,e);switch(r){case"referenceHidden":{const s=await iy(e,{...i,elementContext:"reference"}),o=j4(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:N4(o)}}}case"escaped":{const s=await iy(e,{...i,altBoundary:!0}),o=j4(s,n.floating);return{data:{escapedOffsets:o,escaped:N4(o)}}}default:return{}}}}},pH=new Set(["left","top"]);async function Tae(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=El(n),a=yp(n),c=va(n)==="y",u=pH.has(o)?-1:1,d=s&&c?-1:1,h=Sl(e,t);let{mainAxis:f,crossAxis:m,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),c?{x:m*d,y:f*u}:{x:f*u,y:m*d}}const Aae=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=e,c=await Tae(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:o}}}}},Cae=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:y,y:b}=g;return{x:y,y:b}}},...c}=Sl(t,e),u={x:n,y:r},d=await iy(e,c),h=va(El(i)),f=MN(h);let m=u[f],v=u[h];if(s){const g=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=m+d[g],x=m-d[y];m=XC(b,m,x)}if(o){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=v+d[g],x=v-d[y];v=XC(b,v,x)}const p=a.fn({...e,[f]:m,[h]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[f]:s,[h]:o}}}}}},Mae=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Sl(t,e),d={x:n,y:r},h=va(i),f=MN(h);let m=d[f],v=d[h];const p=Sl(a,e),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=f==="y"?"height":"width",w=s.reference[f]-s.floating[x]+g.mainAxis,_=s.reference[f]+s.reference[x]-g.mainAxis;m<w?m=w:m>_&&(m=_)}if(u){var y,b;const x=f==="y"?"width":"height",w=pH.has(El(i)),_=s.reference[h]-s.floating[x]+(w&&((y=o.offset)==null?void 0:y[h])||0)+(w?0:g.crossAxis),S=s.reference[h]+s.reference[x]+(w?0:((b=o.offset)==null?void 0:b[h])||0)-(w?g.crossAxis:0);v<_?v=_:v>S&&(v=S)}return{[f]:m,[h]:v}}}},Rae=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:s,platform:o,elements:a}=e,{apply:c=()=>{},...u}=Sl(t,e),d=await iy(e,u),h=El(i),f=yp(i),m=va(i)==="y",{width:v,height:p}=s.floating;let g,y;h==="top"||h==="bottom"?(g=h,y=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,g=f==="end"?"top":"bottom");const b=p-d.top-d.bottom,x=v-d.left-d.right,w=Kc(p-d[g],b),_=Kc(v-d[y],x),S=!e.middlewareData.shift;let T=w,M=_;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=x),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(T=b),S&&!f){const C=ms(d.left,0),R=ms(d.right,0),j=ms(d.top,0),k=ms(d.bottom,0);m?M=v-2*(C!==0||R!==0?C+R:ms(d.left,d.right)):T=p-2*(j!==0||k!==0?j+k:ms(d.top,d.bottom))}await c({...e,availableWidth:M,availableHeight:T});const A=await o.getDimensions(a.floating);return v!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function oS(){return typeof window<"u"}function xp(t){return gH(t)?(t.nodeName||"").toLowerCase():"#document"}function Ss(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function La(t){var e;return(e=(gH(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function gH(t){return oS()?t instanceof Node||t instanceof Ss(t).Node:!1}function Ko(t){return oS()?t instanceof Element||t instanceof Ss(t).Element:!1}function ja(t){return oS()?t instanceof HTMLElement||t instanceof Ss(t).HTMLElement:!1}function k4(t){return!oS()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ss(t).ShadowRoot}const Pae=new Set(["inline","contents"]);function M0(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=Qo(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!Pae.has(i)}const jae=new Set(["table","td","th"]);function Nae(t){return jae.has(xp(t))}const kae=[":popover-open",":modal"];function aS(t){return kae.some(e=>{try{return t.matches(e)}catch{return!1}})}const Oae=["transform","translate","scale","rotate","perspective"],Iae=["transform","translate","scale","rotate","perspective","filter"],Lae=["paint","layout","strict","content"];function jN(t){const e=NN(),n=Ko(t)?Qo(t):t;return Oae.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Iae.some(r=>(n.willChange||"").includes(r))||Lae.some(r=>(n.contain||"").includes(r))}function Dae(t){let e=Qc(t);for(;ja(e)&&!Am(e);){if(jN(e))return e;if(aS(e))return null;e=Qc(e)}return null}function NN(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Fae=new Set(["html","body","#document"]);function Am(t){return Fae.has(xp(t))}function Qo(t){return Ss(t).getComputedStyle(t)}function lS(t){return Ko(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Qc(t){if(xp(t)==="html")return t;const e=t.assignedSlot||t.parentNode||k4(t)&&t.host||La(t);return k4(e)?e.host:e}function vH(t){const e=Qc(t);return Am(e)?t.ownerDocument?t.ownerDocument.body:t.body:ja(e)&&M0(e)?e:vH(e)}function sy(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=vH(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),o=Ss(i);if(s){const a=QC(o);return e.concat(o,o.visualViewport||[],M0(i)?i:[],a&&n?sy(a):[])}return e.concat(i,sy(i,[],n))}function QC(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yH(t){const e=Qo(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=ja(t),s=i?t.offsetWidth:n,o=i?t.offsetHeight:r,a=Yw(n)!==s||Yw(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function kN(t){return Ko(t)?t:t.contextElement}function $f(t){const e=kN(t);if(!ja(e))return Ea(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=yH(e);let o=(s?Yw(n.width):n.width)/r,a=(s?Yw(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Uae=Ea(0);function xH(t){const e=Ss(t);return!NN()||!e.visualViewport?Uae:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Bae(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Ss(t)?!1:e}function Vd(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=kN(t);let o=Ea(1);e&&(r?Ko(r)&&(o=$f(r)):o=$f(t));const a=Bae(s,n,r)?xH(s):Ea(0);let c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,d=i.width/o.x,h=i.height/o.y;if(s){const f=Ss(s),m=r&&Ko(r)?Ss(r):r;let v=f,p=QC(v);for(;p&&r&&m!==v;){const g=$f(p),y=p.getBoundingClientRect(),b=Qo(p),x=y.left+(p.clientLeft+parseFloat(b.paddingLeft))*g.x,w=y.top+(p.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,h*=g.y,c+=x,u+=w,v=Ss(p),p=QC(v)}}return Kw({width:d,height:h,x:c,y:u})}function ON(t,e){const n=lS(t).scrollLeft;return e?e.left+n:Vd(La(t)).left+n}function bH(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:ON(t,r)),s=r.top+e.scrollTop;return{x:i,y:s}}function zae(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",o=La(r),a=e?aS(e.floating):!1;if(r===o||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=Ea(1);const d=Ea(0),h=ja(r);if((h||!h&&!s)&&((xp(r)!=="body"||M0(o))&&(c=lS(r)),ja(r))){const m=Vd(r);u=$f(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const f=o&&!h&&!s?bH(o,c,!0):Ea(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}}function $ae(t){return Array.from(t.getClientRects())}function Hae(t){const e=La(t),n=lS(t),r=t.ownerDocument.body,i=ms(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=ms(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+ON(t);const a=-n.scrollTop;return Qo(r).direction==="rtl"&&(o+=ms(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function Vae(t,e){const n=Ss(t),r=La(t),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,c=0;if(i){s=i.width,o=i.height;const u=NN();(!u||u&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:s,height:o,x:a,y:c}}const Wae=new Set(["absolute","fixed"]);function Gae(t,e){const n=Vd(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=ja(t)?$f(t):Ea(1),o=t.clientWidth*s.x,a=t.clientHeight*s.y,c=i*s.x,u=r*s.y;return{width:o,height:a,x:c,y:u}}function O4(t,e,n){let r;if(e==="viewport")r=Vae(t,n);else if(e==="document")r=Hae(La(t));else if(Ko(e))r=Gae(e,n);else{const i=xH(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Kw(r)}function wH(t,e){const n=Qc(t);return n===e||!Ko(n)||Am(n)?!1:Qo(n).position==="fixed"||wH(n,e)}function qae(t,e){const n=e.get(t);if(n)return n;let r=sy(t,[],!1).filter(a=>Ko(a)&&xp(a)!=="body"),i=null;const s=Qo(t).position==="fixed";let o=s?Qc(t):t;for(;Ko(o)&&!Am(o);){const a=Qo(o),c=jN(o);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&Wae.has(i.position)||M0(o)&&!c&&wH(t,o))?r=r.filter(d=>d!==o):i=a,o=Qc(o)}return e.set(t,r),r}function Yae(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?aS(e)?[]:qae(e,this._c):[].concat(n),r],a=o[0],c=o.reduce((u,d)=>{const h=O4(e,d,i);return u.top=ms(h.top,u.top),u.right=Kc(h.right,u.right),u.bottom=Kc(h.bottom,u.bottom),u.left=ms(h.left,u.left),u},O4(e,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Xae(t){const{width:e,height:n}=yH(t);return{width:e,height:n}}function Kae(t,e,n){const r=ja(e),i=La(e),s=n==="fixed",o=Vd(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const c=Ea(0);function u(){c.x=ON(i)}if(r||!r&&!s)if((xp(e)!=="body"||M0(i))&&(a=lS(e)),r){const m=Vd(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&u();s&&!r&&i&&u();const d=i&&!r&&!s?bH(i,a):Ea(0),h=o.left+a.scrollLeft-c.x-d.x,f=o.top+a.scrollTop-c.y-d.y;return{x:h,y:f,width:o.width,height:o.height}}function RE(t){return Qo(t).position==="static"}function I4(t,e){if(!ja(t)||Qo(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return La(t)===n&&(n=n.ownerDocument.body),n}function _H(t,e){const n=Ss(t);if(aS(t))return n;if(!ja(t)){let i=Qc(t);for(;i&&!Am(i);){if(Ko(i)&&!RE(i))return i;i=Qc(i)}return n}let r=I4(t,e);for(;r&&Nae(r)&&RE(r);)r=I4(r,e);return r&&Am(r)&&RE(r)&&!jN(r)?n:r||Dae(t)||n}const Qae=async function(t){const e=this.getOffsetParent||_H,n=this.getDimensions,r=await n(t.floating);return{reference:Kae(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Zae(t){return Qo(t).direction==="rtl"}const Jae={convertOffsetParentRelativeRectToViewportRelativeRect:zae,getDocumentElement:La,getClippingRect:Yae,getOffsetParent:_H,getElementRects:Qae,getClientRects:$ae,getDimensions:Xae,getScale:$f,isElement:Ko,isRTL:Zae};function SH(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ele(t,e){let n=null,r;const i=La(t);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=t.getBoundingClientRect(),{left:d,top:h,width:f,height:m}=u;if(a||e(),!f||!m)return;const v=Sx(h),p=Sx(i.clientWidth-(d+f)),g=Sx(i.clientHeight-(h+m)),y=Sx(d),x={rootMargin:-v+"px "+-p+"px "+-g+"px "+-y+"px",threshold:ms(0,Kc(1,c))||1};let w=!0;function _(S){const T=S[0].intersectionRatio;if(T!==c){if(!w)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!SH(u,t.getBoundingClientRect())&&o(),w=!1}try{n=new IntersectionObserver(_,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(t)}return o(!0),s}function tle(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=kN(t),d=i||s?[...u?sy(u):[],...sy(e)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const h=u&&a?ele(u,n):null;let f=-1,m=null;o&&(m=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(e)})),n()}),u&&!c&&m.observe(u),m.observe(e));let v,p=c?Vd(t):null;c&&g();function g(){const y=Vd(t);p&&!SH(p,y)&&n(),p=y,v=requestAnimationFrame(g)}return n(),()=>{var y;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),h==null||h(),(y=m)==null||y.disconnect(),m=null,c&&cancelAnimationFrame(v)}}const nle=Aae,rle=Cae,ile=Sae,sle=Rae,ole=Eae,L4=_ae,ale=Mae,lle=(t,e,n)=>{const r=new Map,i={platform:Jae,...n},s={...i.platform,_c:r};return wae(t,e,{...i,platform:s})};var cle=typeof document<"u",ule=function(){},ew=cle?E.useLayoutEffect:ule;function Qw(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Qw(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&t.$$typeof)&&!Qw(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function EH(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function D4(t,e){const n=EH(t);return Math.round(e*n)/n}function PE(t){const e=E.useRef(t);return ew(()=>{e.current=t}),e}function dle(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:c,open:u}=t,[d,h]=E.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,m]=E.useState(r);Qw(f,r)||m(r);const[v,p]=E.useState(null),[g,y]=E.useState(null),b=E.useCallback(D=>{D!==S.current&&(S.current=D,p(D))},[]),x=E.useCallback(D=>{D!==T.current&&(T.current=D,y(D))},[]),w=s||v,_=o||g,S=E.useRef(null),T=E.useRef(null),M=E.useRef(d),A=c!=null,C=PE(c),R=PE(i),j=PE(u),k=E.useCallback(()=>{if(!S.current||!T.current)return;const D={placement:e,strategy:n,middleware:f};R.current&&(D.platform=R.current),lle(S.current,T.current,D).then(I=>{const N={...I,isPositioned:j.current!==!1};P.current&&!Qw(M.current,N)&&(M.current=N,uh.flushSync(()=>{h(N)}))})},[f,e,n,R,j]);ew(()=>{u===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(D=>({...D,isPositioned:!1})))},[u]);const P=E.useRef(!1);ew(()=>(P.current=!0,()=>{P.current=!1}),[]),ew(()=>{if(w&&(S.current=w),_&&(T.current=_),w&&_){if(C.current)return C.current(w,_,k);k()}},[w,_,k,C,A]);const O=E.useMemo(()=>({reference:S,floating:T,setReference:b,setFloating:x}),[b,x]),L=E.useMemo(()=>({reference:w,floating:_}),[w,_]),F=E.useMemo(()=>{const D={position:n,left:0,top:0};if(!L.floating)return D;const I=D4(L.floating,d.x),N=D4(L.floating,d.y);return a?{...D,transform:"translate("+I+"px, "+N+"px)",...EH(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:N}},[n,a,L.floating,d.x,d.y]);return E.useMemo(()=>({...d,update:k,refs:O,elements:L,floatingStyles:F}),[d,k,O,L,F])}const hle=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?L4({element:r.current,padding:i}).fn(n):{}:r?L4({element:r,padding:i}).fn(n):{}}}},fle=(t,e)=>({...nle(t),options:[t,e]}),mle=(t,e)=>({...rle(t),options:[t,e]}),ple=(t,e)=>({...ale(t),options:[t,e]}),gle=(t,e)=>({...ile(t),options:[t,e]}),vle=(t,e)=>({...sle(t),options:[t,e]}),yle=(t,e)=>({...ole(t),options:[t,e]}),xle=(t,e)=>({...hle(t),options:[t,e]});var ble="Arrow",TH=E.forwardRef((t,e)=>{const{children:n,width:r=10,height:i=5,...s}=t;return l.jsx(ht.svg,{...s,ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});TH.displayName=ble;var wle=TH;function IN(t){const[e,n]=E.useState(void 0);return Nr(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,a=u.blockSize}else o=t.offsetWidth,a=t.offsetHeight;n({width:o,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var LN="Popper",[AH,bp]=ks(LN),[_le,CH]=AH(LN),MH=t=>{const{__scopePopper:e,children:n}=t,[r,i]=E.useState(null);return l.jsx(_le,{scope:e,anchor:r,onAnchorChange:i,children:n})};MH.displayName=LN;var RH="PopperAnchor",PH=E.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...i}=t,s=CH(RH,n),o=E.useRef(null),a=At(e,o);return E.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:l.jsx(ht.div,{...i,ref:a})});PH.displayName=RH;var DN="PopperContent",[Sle,Ele]=AH(DN),jH=E.forwardRef((t,e)=>{var X,ae,J,ue,de,H;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:v,...p}=t,g=CH(DN,n),[y,b]=E.useState(null),x=At(e,_e=>b(_e)),[w,_]=E.useState(null),S=IN(w),T=(S==null?void 0:S.width)??0,M=(S==null?void 0:S.height)??0,A=r+(s!=="center"?"-"+s:""),C=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},R=Array.isArray(u)?u:[u],j=R.length>0,k={padding:C,boundary:R.filter(Ale),altBoundary:j},{refs:P,floatingStyles:O,placement:L,isPositioned:F,middlewareData:D}=dle({strategy:"fixed",placement:A,whileElementsMounted:(..._e)=>tle(..._e,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[fle({mainAxis:i+M,alignmentAxis:o}),c&&mle({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?ple():void 0,...k}),c&&gle({...k}),vle({...k,apply:({elements:_e,rects:he,availableWidth:xe,availableHeight:we})=>{const{width:ne,height:Pe}=he.reference,$=_e.floating.style;$.setProperty("--radix-popper-available-width",`${xe}px`),$.setProperty("--radix-popper-available-height",`${we}px`),$.setProperty("--radix-popper-anchor-width",`${ne}px`),$.setProperty("--radix-popper-anchor-height",`${Pe}px`)}}),w&&xle({element:w,padding:a}),Cle({arrowWidth:T,arrowHeight:M}),f&&yle({strategy:"referenceHidden",...k})]}),[I,N]=OH(L),G=ns(v);Nr(()=>{F&&(G==null||G())},[F,G]);const q=(X=D.arrow)==null?void 0:X.x,W=(ae=D.arrow)==null?void 0:ae.y,Y=((J=D.arrow)==null?void 0:J.centerOffset)!==0,[te,Q]=E.useState();return Nr(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]),l.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:F?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(ue=D.transformOrigin)==null?void 0:ue.x,(de=D.transformOrigin)==null?void 0:de.y].join(" "),...((H=D.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:l.jsx(Sle,{scope:n,placedSide:I,onArrowChange:_,arrowX:q,arrowY:W,shouldHideArrow:Y,children:l.jsx(ht.div,{"data-side":I,"data-align":N,...p,ref:x,style:{...p.style,animation:F?void 0:"none"}})})})});jH.displayName=DN;var NH="PopperArrow",Tle={top:"bottom",right:"left",bottom:"top",left:"r
377ight"},kH=E.forwardRef(function(e,n){const{__scopePopper:r,...i}=e,s=Ele(NH,r),o=Tle[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(wle,{...i,ref:n,style:{...i.style,display:"block"}})})});kH.displayName=NH;function Ale(t){return t!==null}var Cle=t=>({name:"transformOrigin",options:t,fn(e){var g,y,b;const{placement:n,rects:r,middlewareData:i}=e,o=((g=i.arrow)==null?void 0:g.centerOffset)!==0,a=o?0:t.arrowWidth,c=o?0:t.arrowHeight,[u,d]=OH(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((y=i.arrow)==null?void 0:y.x)??0)+a/2,m=(((b=i.arrow)==null?void 0:b.y)??0)+c/2;let v="",p="";return u==="bottom"?(v=o?h:`${f}px`,p=`${-c}px`):u==="top"?(v=o?h:`${f}px`,p=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,p=o?h:`${m}px`):u==="left"&&(v=`${r.floating.width+c}px`,p=o?h:`${m}px`),{data:{x:v,y:p}}}});function OH(t){const[e,n="center"]=t.split("-");return[e,n]}var FN=MH,UN=PH,BN=jH,zN=kH,[cS,KZe]=ks("Tooltip",[bp]),uS=bp(),IH="TooltipProvider",Mle=700,ZC="tooltip.open",[Rle,$N]=cS(IH),LH=t=>{const{__scopeTooltip:e,delayDuration:n=Mle,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=t,o=E.useRef(!0),a=E.useRef(!1),c=E.useRef(0);return E.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(Rle,{scope:e,isOpenDelayedRef:o,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:E.useCallback(u=>{a.current=u},[]),disableHoverableContent:i,children:s})};LH.displayName=IH;var oy="Tooltip",[Ple,dS]=cS(oy),DH=t=>{const{__scopeTooltip:e,children:n,open:r,defaultOpen:i,onOpenChange:s,disableHoverableContent:o,delayDuration:a}=t,c=$N(oy,t.__scopeTooltip),u=uS(e),[d,h]=E.useState(null),f=io(),m=E.useRef(0),v=o??c.disableHoverableContent,p=a??c.delayDuration,g=E.useRef(!1),[y,b]=uo({prop:r,defaultProp:i??!1,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(ZC))):c.onClose(),s==null||s(T)},caller:oy}),x=E.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),w=E.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,b(!0)},[b]),_=E.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),S=E.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,b(!0),m.current=0},p)},[p,b]);return E.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),l.jsx(FN,{...u,children:l.jsx(Ple,{scope:e,contentId:f,open:y,stateAttribute:x,trigger:d,onTriggerChange:h,onTriggerEnter:E.useCallback(()=>{c.isOpenDelayedRef.current?S():w()},[c.isOpenDelayedRef,S,w]),onTriggerLeave:E.useCallback(()=>{v?_():(window.clearTimeout(m.current),m.current=0)},[_,v]),onOpen:w,onClose:_,disableHoverableContent:v,children:n})})};DH.displayName=oy;var JC="TooltipTrigger",FH=E.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,i=dS(JC,n),s=$N(JC,n),o=uS(n),a=E.useRef(null),c=At(e,a,i.onTriggerChange),u=E.useRef(!1),d=E.useRef(!1),h=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),l.jsx(UN,{asChild:!0,...o,children:l.jsx(ht.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:De(t.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:De(t.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:De(t.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:De(t.onFocus,()=>{u.current||i.onOpen()}),onBlur:De(t.onBlur,i.onClose),onClick:De(t.onClick,i.onClose)})})});FH.displayName=JC;var jle="TooltipPortal",[QZe,Nle]=cS(jle,{forceMount:void 0}),Cm="TooltipContent",UH=E.forwardRef((t,e)=>{const n=Nle(Cm,t.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=t,o=dS(Cm,t.__scopeTooltip);return l.jsx(Jo,{present:r||o.open,children:o.disableHoverableContent?l.jsx(BH,{side:i,...s,ref:e}):l.jsx(kle,{side:i,...s,ref:e})})}),kle=E.forwardRef((t,e)=>{const n=dS(Cm,t.__scopeTooltip),r=$N(Cm,t.__scopeTooltip),i=E.useRef(null),s=At(e,i
vendor: 4,338 bytes, line 377
377),[o,a]=E.useState(null),{trigger:c,onClose:u}=n,d=i.current,{onPointerInTransitChange:h}=r,f=E.useCallback(()=>{a(null),h(!1)},[h]),m=E.useCallback((v,p)=>{const g=v.currentTarget,y={x:v.clientX,y:v.clientY},b=Fle(y,g.getBoundingClientRect()),x=Ule(y,b),w=Ble(p.getBoundingClientRect()),_=$le([...x,...w]);a(_),h(!0)},[h]);return E.useEffect(()=>()=>f(),[f]),E.useEffect(()=>{if(c&&d){const v=g=>m(g,d),p=g=>m(g,c);return c.addEventListener("pointerleave",v),d.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",v),d.removeEventListener("pointerleave",p)}}},[c,d,m,f]),E.useEffect(()=>{if(o){const v=p=>{const g=p.target,y={x:p.clientX,y:p.clientY},b=(c==null?void 0:c.contains(g))||(d==null?void 0:d.contains(g)),x=!zle(y,o);b?f():x&&(f(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,d,o,u,f]),l.jsx(BH,{...t,ref:s})}),[Ole,Ile]=cS(oy,{isInside:!1}),Lle=Aie("TooltipContent"),BH=E.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=t,c=dS(Cm,n),u=uS(n),{onClose:d}=c;return E.useEffect(()=>(document.addEventListener(ZC,d),()=>document.removeEventListener(ZC,d)),[d]),E.useEffect(()=>{if(c.trigger){const h=f=>{const m=f.target;m!=null&&m.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),l.jsx(mp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:l.jsxs(BN,{"data-state":c.stateAttribute,...u,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(Lle,{children:r}),l.jsx(Ole,{scope:n,isInside:!0,children:l.jsx(Yie,{id:c.contentId,role:"tooltip",children:i||r})})]})})});UH.displayName=Cm;var zH="TooltipArrow",Dle=E.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,i=uS(n);return Ile(zH,n).isInside?null:l.jsx(zN,{...i,...r,ref:e})});Dle.displayName=zH;function Fle(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),s=Math.abs(e.left-t.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ule(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function Ble(t){const{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}function zle(t,e){const{x:n,y:r}=t;let i=!1;for(let s=0,o=e.length-1;s<e.length;o=s++){const a=e[s],c=e[o],u=a.x,d=a.y,h=c.x,f=c.y;d>r!=f>r&&n<(h-u)*(r-d)/(f-d)+u&&(i=!i)}return i}function $le(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Hle(e)}function Hle(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const i=t[r];for(;e.length>=2;){const s=e[e.length-1],o=e[e.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))e.pop();else break}e.push(i)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const i=t[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var Vle=LH,Wle=DH,Gle=FH,$H=UH;const HH=Vle,qle=Wle,Yle=Gle,VH=E.forwardRef(({className:t,sideOffset:e=4,...n},r)=>l.jsx($H,{ref:r,sideOffset:e,className:He("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]:sli
377de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));VH.displayName=$H.displayName;var R0=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Wd=typeof window>"u"||"Deno"in globalThis;function Bi(){}function Xle(t,e){return typeof t=="function"?t(e):t}function eM(t){return typeof t=="number"&&t>=0&&t!==1/0}function WH(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Lc(t,e){return typeof t=="function"?t(e):t}function Hs(t,e){return typeof t=="function"?t(e):t}function F4(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=t;if(o){if(r){if(e.queryHash!==HN(o,e.options))return!1}else if(!ly(e.queryKey,o))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||i&&i!==e.state.fetchStatus||s&&!s(e))}function U4(t,e){const{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(ay(e.options.mutationKey)!==ay(s))return!1}else if(!ly(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function HN(t,e){return((e==null?void 0:e.queryKeyHashFn)||ay)(t)}function ay(t){return JSON.stringify(t,(e,n)=>nM(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ly(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>ly(t[n],e[n])):!1}function GH(t,e){if(t===e)return t;const n=B4(t)&&B4(e);if(n||nM(t)&&nM(e)){const r=n?t:Object.keys(t),i=r.length,s=n?e:Object.keys(e),o=s.length,a=n?[]:{},c=new Set(r);let u=0;for(let d=0;d<o;d++){const h=n?d:s[d];(!n&&c.has(h)||n)&&t[h]===void 0&&e[h]===void 0?(a[h]=void 0,u++):(a[h]=GH(t[h],e[h]),a[h]===t[h]&&t[h]!==void 0&&u++)}return i===o&&u===i?t:a}return e}function tM(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function B4(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function nM(t){if(!z4(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!z4(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function z4(t){return Object.prototype.toString.call(t)==="[object Object]"}function Kle(t){return new Promise(e=>{setTimeout(e,t)})}function rM(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?GH(t,e):e}function Qle(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Zle(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var VN=Symbol();function qH(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===VN?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Jle(t,e){return typeof t=="function"?t(...e):!!t}var ud,lc,im,Z8,ece=(Z8=class extends R0{constructor(){super();pt(this,ud);pt(this,lc);pt(this,im);tt(this,im,e=>{if(!Wd&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ee(this,lc)||this.setEventListener(ee(this,im))}onUnsubscribe(){var e;this.hasListeners()||((e=ee(this,lc))==null||e.call(this),tt(this,lc,void 0))}setEventListener(e){var n;tt(this,im,e),(n=ee(this,lc))==null||n.call(this),tt(this,lc,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){ee(this,ud)!==e&&(tt(this,ud,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof ee(this,ud)=="boolean"?ee(this,ud):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},ud=new WeakMap,lc=new WeakMap,im=new WeakMap,Z8),WN=new ece,sm,cc,om,J8,tce=(J8=class extends R0{constructor(){super();pt(this,sm,!0);pt(this,cc);pt(this,om);tt(this,om,e=>{if(!Wd&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ee(this,cc)||this.setEventListener(ee(this,om))}onUnsubscribe(){var e;this.hasListeners()||((e=ee(this,cc))==null||e.call(this),tt(this,cc,void 0))}setEventListener(e){var n;tt(this,om,e),(n=ee(this,cc))==null||n.call(this),tt(this,cc,e(this.setOnline.bind(this)))}setOnline(e){ee(this,sm)!==e&&(tt(this,sm,e),this.listeners.forEac
vendor: 30,590 bytes, line 377
377h(r=>{r(e)}))}isOnline(){return ee(this,sm)}},sm=new WeakMap,cc=new WeakMap,om=new WeakMap,J8),Zw=new tce;function iM(){let t,e;const n=new Promise((i,s)=>{t=i,e=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}function nce(t){return Math.min(1e3*2**t,3e4)}function YH(t){return(t??"online")==="online"?Zw.isOnline():!0}var XH=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function jE(t){return t instanceof XH}function KH(t){let e=!1,n=0,r=!1,i;const s=iM(),o=p=>{var g;r||(f(new XH(p)),(g=t.abort)==null||g.call(t))},a=()=>{e=!0},c=()=>{e=!1},u=()=>WN.isFocused()&&(t.networkMode==="always"||Zw.isOnline())&&t.canRun(),d=()=>YH(t.networkMode)&&t.canRun(),h=p=>{var g;r||(r=!0,(g=t.onSuccess)==null||g.call(t,p),i==null||i(),s.resolve(p))},f=p=>{var g;r||(r=!0,(g=t.onError)==null||g.call(t,p),i==null||i(),s.reject(p))},m=()=>new Promise(p=>{var g;i=y=>{(r||u())&&p(y)},(g=t.onPause)==null||g.call(t)}).then(()=>{var p;i=void 0,r||(p=t.onContinue)==null||p.call(t)}),v=()=>{if(r)return;let p;const g=n===0?t.initialPromise:void 0;try{p=g??t.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(h).catch(y=>{var S;if(r)return;const b=t.retry??(Wd?0:3),x=t.retryDelay??nce,w=typeof x=="function"?x(n,y):x,_=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,y);if(e||!_){f(y);return}n++,(S=t.onFail)==null||S.call(t,n,y),Kle(w).then(()=>u()?void 0:m()).then(()=>{e?f(y):v()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?v():m().then(v),s)}}var rce=t=>setTimeout(t,0);function ice(){let t=[],e=0,n=a=>{a()},r=a=>{a()},i=rce;const s=a=>{e?t.push(a):i(()=>{n(a)})},o=()=>{const a=t;t=[],a.length&&i(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;e++;try{c=a()}finally{e--,e||o()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Fr=ice(),dd,e$,QH=(e$=class{constructor(){pt(this,dd)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eM(this.gcTime)&&tt(this,dd,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Wd?1/0:5*60*1e3))}clearGcTimeout(){ee(this,dd)&&(clearTimeout(ee(this,dd)),tt(this,dd,void 0))}},dd=new WeakMap,e$),am,hd,$s,fd,Jr,p0,md,Po,qa,t$,sce=(t$=class extends QH{constructor(e){super();pt(this,Po);pt(this,am);pt(this,hd);pt(this,$s);pt(this,fd);pt(this,Jr);pt(this,p0);pt(this,md);tt(this,md,!1),tt(this,p0,e.defaultOptions),this.setOptions(e.options),this.observers=[],tt(this,fd,e.client),tt(this,$s,ee(this,fd).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,tt(this,am,oce(this.options)),this.state=e.state??ee(this,am),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=ee(this,Jr))==null?void 0:e.promise}setOptions(e){this.options={...ee(this,p0),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ee(this,$s).remove(this)}setData(e,n){const r=rM(this.state.data,e,this.options);return Ut(this,Po,qa).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){Ut(this,Po,qa).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=ee(this,Jr))==null?void 0:r.promise;return(i=ee(this,Jr))==null||i.cancel(e),n?n.then(Bi).catch(Bi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ee(this,am))}isActive(){return this.observers.some(e=>Hs(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===VN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Lc(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!WH(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=ee(this,Jr))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=ee(this,Jr))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),ee(this,$s).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(ee(this,Jr)&&(ee(this,md)?ee(this,Jr).cancel({revert:!0}):ee(this,Jr).cancelRetry()),this.scheduleGc()),ee(this,$s).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ut(this,Po,qa).call(this,{type:"invalidate"})}fetch(e,n){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ee(this,Jr))return ee(this,Jr).continueRetry(),ee(this,Jr).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(tt(this,md,!0),r.signal)})},s=()=>{const f=qH(this.options,n),v=(()=>{const p={client:ee(this,fd),queryKey:this.queryKey,meta:this.meta};return i(p),p})();return tt(this,md,!1),this.options.persister?this.options.persister(f,v,this):f(v)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:ee(this,fd),state:this.state,fetchFn:s};return i(f),f})();(u=this.options.behavior)==null||u.onFetch(a,this),tt(this,hd,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Ut(this,Po,qa).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const c=f=>{var m,v,p,g;jE(f)&&f.silent||Ut(this,Po,qa).call(this,{type:"error",error:f}),jE(f)||((v=(m=ee(this,$s).config).onError)==null||v.call(m,f,this),(g=(p=ee(this,$s).config).onSettled)==null||g.call(p,this.state.data,f,this)),this.scheduleGc()};return tt(this,Jr,KH({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var m,v,p,g;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(y){c(y);return}(v=(m=ee(this,$s).config).onSuccess)==null||v.call(m,f,this),(g=(p=ee(this,$s).config).onSettled)==null||g.call(p,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,m)=>{Ut(this,Po,qa).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{Ut(this,Po,qa).call(this,{type:"pause"})},onContinue:()=>{Ut(this,Po,qa).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),ee(this,Jr).start()}},am=new WeakMap,hd=new WeakMap,$s=new WeakMap,fd=new WeakMap,Jr=new WeakMap,p0=new WeakMap,md=new WeakMap,Po=new WeakSet,qa=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ZH(r.data,this.options),fetchMeta:e.meta??null};case"success":return tt(this,hd,void 0),{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return jE(i)&&i.revert&&ee(this,hd)?{...ee(this,hd),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Fr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ee(this,$s).notify({query:this,type:"updated",action:e})})},t$);function ZH(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:YH(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function oce(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 la,n$,ace=(n$=class extends R0{constructor(e={}){super();pt(this,la);this.config=e,tt(this,la,new Map)}build(e,n,r){const i=n.queryKey,s=n.queryHash??HN(i,n);let o=this.get(s);return o||(o=new sce({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){ee(this,la).has(e.queryHash)||(ee(this,la).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=ee(this,la).get(e.queryHash);n&&(e.destroy(),n===e&&ee(this,la).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Fr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return ee(this,la).get(e)}getAll(){return[...ee(this,la).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>F4(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>F4(e,r)):n}notify(e){Fr.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Fr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Fr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},la=new WeakMap,n$),ca,gi,pd,ua,Yl,r$,lce=(r$=class extends QH{constructor(e){super();pt(this,ua);pt(this,ca);pt(this,gi);pt(this,pd);this.mutationId=e.mutationId,tt(this,gi,e.mutationCache),tt(this,ca,[]),this.state=e.state||cce(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){ee(this,ca).includes(e)||(ee(this,ca).push(e),this.clearGcTimeout(),ee(this,gi).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){tt(this,ca,ee(this,ca).filter(n=>n!==e)),this.scheduleGc(),ee(this,gi).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){ee(this,ca).length||(this.state.status==="pending"?this.scheduleGc():ee(this,gi).remove(this))}continue(){var e;return((e=ee(this,pd))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var s,o,a,c,u,d,h,f,m,v,p,g,y,b,x,w,_,S,T,M;const n=()=>{Ut(this,ua,Yl).call(this,{type:"continue"})};tt(this,pd,KH({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(A,C)=>{Ut(this,ua,Yl).call(this,{type:"failed",failureCount:A,error:C})},onPause:()=>{Ut(this,ua,Yl).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ee(this,gi).canRun(this)}));const r=this.state.status==="pending",i=!ee(this,pd).canStart();try{if(r)n();else{Ut(this,ua,Yl).call(this,{type:"pending",variables:e,isPaused:i}),await((o=(s=ee(this,gi).config).onMutate)==null?void 0:o.call(s,e,this));const C=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,e));C!==this.state.context&&Ut(this,ua,Yl).call(this,{type:"pending",context:C,variables:e,isPaused:i})}const A=await ee(this,pd).start();return await((d=(u=ee(this,gi).config).onSuccess)==null?void 0:d.call(u,A,e,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,A,e,this.state.context)),await((v=(m=ee(this,gi).config).onSettled)==null?void 0:v.call(m,A,null,this.state.variables,this.state.context,this)),await((g=(p=this.options).onSettled)==null?void 0:g.call(p,A,null,e,this.state.context)),Ut(this,ua,Yl).call(this,{type:"success",data:A}),A}catch(A){try{throw await((b=(y=ee(this,gi).config).onError)==null?void 0:b.call(y,A,e,this.state.context,this)),await((w=(x=this.options).onError)==null?void 0:w.call(x,A,e,this.state.context)),await((S=(_=ee(this,gi).config).onSettled)==null?void 0:S.call(_,void 0,A,this.state.variables,this.state.context,this)),await((M=(T=this.options).onSettled)==null?void 0:M.call(T,void 0,A,e,this.state.context)),A}finally{Ut(this,ua,Yl).call(this,{type:"error",error:A})}}finally{ee(this,gi).runNext(this)}}},ca=new WeakMap,gi=new WeakMap,pd=new WeakMap,ua=new WeakSet,Yl=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Fr.batch(()=>{ee(this,ca).forEach(r=>{r.onMutationUpdate(e)}),ee(this,gi).notify({mutation:this,type:"updated",action:e})})},r$);function cce(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var il,jo,g0,i$,uce=(i$=class extends R0{constructor(e={}){super();pt(this,il);pt(this,jo);pt(this,g0);this.config=e,tt(this,il,new Set),tt(this,jo,new Map),tt(this,g0,0)}build(e,n,r){const i=new lce({mutationCache:this,mutationId:++nx(this,g0)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){ee(this,il).add(e);const n=Ex(e);if(typeof n=="string"){const r=ee(this,jo).get(n);r?r.push(e):ee(this,jo).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(ee(this,il).delete(e)){const n=Ex(e);if(typeof n=="string"){const r=ee(this,jo).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&ee(this,jo).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Ex(e);if(typeof n=="string"){const r=ee(this,jo).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r;const n=Ex(e);if(typeof n=="string"){const i=(r=ee(this,jo).get(n))==null?void 0:r.find(s=>s!==e&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Fr.batch(()=>{ee(this,il).forEach(e=>{this.notify({type:"removed",mutation:e})}),ee(this,il).clear(),ee(this,jo).clear()})}getAll(){return Array.from(ee(this,il))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>U4(n,r))}findAll(e={}){return this.getAll().filter(n=>U4(e,n))}notify(e){Fr.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Fr.batch(()=>Promise.all(e.map(n=>n.continue().catch(Bi))))}},il=new WeakMap,jo=new WeakMap,g0=new WeakMap,i$);function Ex(t){var e;return(e=t.options.scope)==null?void 0:e.id}function $4(t){return{onFetch:(e,n)=>{var d,h,f,m,v;const r=e.options,i=(f=(h=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,s=((m=e.state.data)==null?void 0:m.pages)||[],o=((v=e.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let p=!1;const g=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(e.signal.aborted?p=!0:e.signal.addEventListener("abort",()=>{p=!0}),e.signal)})},y=qH(e.options,e.fetchOptions),b=async(x,w,_)=>{if(p)return Promise.reject();if(w==null&&x.pages.length)return Promise.resolve(x);const T=(()=>{const R={client:e.client,queryKey:e.queryKey,pageParam:w,direction:_?"backward":"forward",meta:e.options.meta};return g(R),R})(),M=await y(T),{maxPages:A}=e.options,C=_?Zle:Qle;return{pages:C(x.pages,M,A),pageParams:C(x.pageParams,w,A)}};if(i&&s.length){const x=i==="backward",w=x?dce:H4,_={pages:s,pageParams:o},S=w(r,_);a=await b(_,S,x)}else{const x=t??s.length;do{const w=c===0?o[0]??r.initialPageParam:H4(r,a);if(c>0&&w==null)break;a=await b(a,w),c++}while(c<x)}return a};e.options.persister?e.fetchFn=()=>{var p,g;return(g=(p=e.options).persister)==null?void 0:g.call(p,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function H4(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function dce(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var $n,uc,dc,lm,cm,hc,um,dm,s$,JH=(s$=class{constructor(t={}){pt(this,$n);pt(this,uc);pt(this,dc);pt(this,lm);pt(this,cm);pt(this,hc);pt(this,um);pt(this,dm);tt(this,$n,t.queryCache||new ace),tt(this,uc,t.mutationCache||new uce),tt(this,dc,t.defaultOptions||{}),tt(this,lm,new Map),tt(this,cm,new Map),tt(this,hc,0)}mount(){nx(this,hc)._++,ee(this,hc)===1&&(tt(this,um,WN.subscribe(async t=>{t&&(await this.resumePausedMutations(),ee(this,$n).onFocus())})),tt(this,dm,Zw.subscribe(async t=>{t&&(await this.resumePausedMutations(),ee(this,$n).onOnline())})))}unmount(){var t,e;nx(this,hc)._--,ee(this,hc)===0&&((t=ee(this,um))==null||t.call(this),tt(this,um,void 0),(e=ee(this,dm))==null||e.call(this),tt(this,dm,void 0))}isFetching(t){return ee(this,$n).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return ee(this,uc).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=ee(this,$n).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=ee(this,$n).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Lc(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return ee(this,$n).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=ee(this,$n).get(r.queryHash),s=i==null?void 0:i.state.data,o=Xle(e,s);if(o!==void 0)return ee(this,$n).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return Fr.batch(()=>ee(this,$n).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=ee(this,$n).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=ee(this,$n);Fr.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=ee(this,$n);return Fr.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Fr.batch(()=>ee(this,$n).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(Bi).catch(Bi)}invalidateQueries(t,e={}){return Fr.batch(()=>(ee(this,$n).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=Fr.batch(()=>ee(this,$n).findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Bi)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Bi)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=ee(this,$n).build(this,e);return n.isStaleByTime(Lc(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Bi).catch(Bi)}fetchInfiniteQuery(t){return t.behavior=$4(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Bi).catch(Bi)}ensureInfiniteQueryData(t){return t.behavior=$4(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Zw.isOnline()?ee(this,uc).resumePausedMutations():Promise.resolve()}getQueryCache(){return ee(this,$n)}getMutationCache(){return ee(this,uc)}getDefaultOptions(){return ee(this,dc)}setDefaultOptions(t){tt(this,dc,t)}setQueryDefaults(t,e){ee(this,lm).set(ay(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...ee(this,lm).values()],n={};return e.forEach(r=>{ly(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){ee(this,cm).set(ay(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...ee(this,cm).values()],n={};return e.forEach(r=>{ly(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...ee(this,dc).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=HN(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===VN&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...ee(this,dc).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){ee(this,$n).clear(),ee(this,uc).clear()}},$n=new WeakMap,uc=new WeakMap,dc=new WeakMap,lm=new WeakMap,cm=new WeakMap,hc=new WeakMap,um=new WeakMap,dm=new WeakMap,s$),Di,Bt,v0,vi,gd,hm,fc,mc,y0,fm,mm,vd,yd,pc,pm,sn,Lg,sM,oM,aM,lM,cM,uM,dM,eV,o$,hce=(o$=class extends R0{constructor(e,n){super();pt(this,sn);pt(this,Di);pt(this,Bt);pt(this,v0);pt(this,vi);pt(this,gd);pt(this,hm);pt(this,fc);pt(this,mc);pt(this,y0);pt(this,fm);pt(this,mm);pt(this,vd);pt(this,yd);pt(this,pc);pt(this,pm,new Set);this.options=n,tt(this,Di,e),tt(this,mc,null),tt(this,fc,iM()),this.options.experimental_prefetchInRender||ee(this,fc).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ee(this,Bt).addObserver(this),V4(ee(this,Bt),this.options)?Ut(this,sn,Lg).call(this):this.updateResult(),Ut(this,sn,lM).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hM(ee(this,Bt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hM(ee(this,Bt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ut(this,sn,cM).call(this),Ut(this,sn,uM).call(this),ee(this,Bt).removeObserver(this)}setOptions(e){const n=this.options,r=ee(this,Bt);if(this.options=ee(this,Di).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Hs(this.options.enabled,ee(this,Bt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ut(this,sn,dM).call(this),ee(this,Bt).setOptions(this.options),n._defaulted&&!tM(this.options,n)&&ee(this,Di).getQueryCache().notify({type:"observerOptionsUpdated",query:ee(this,Bt),observer:this});const i=this.hasListeners();i&&W4(ee(this,Bt),r,this.options,n)&&Ut(this,sn,Lg).call(this),this.updateResult(),i&&(ee(this,Bt)!==r||Hs(this.options.enabled,ee(this,Bt))!==Hs(n.enabled,ee(this,Bt))||Lc(this.options.staleTime,ee(this,Bt))!==Lc(n.staleTime,ee(this,Bt)))&&Ut(this,sn,sM).call(this);const s=Ut(this,sn,oM).call(this);i&&(ee(this,Bt)!==r||Hs(this.options.enabled,ee(this,Bt))!==Hs(n.enabled,ee(this,Bt))||s!==ee(this,pc))&&Ut(this,sn,aM).call(this,s)}getOptimisticResult(e){const n=ee(this,Di).getQueryCache().build(ee(this,Di),e),r=this.createResult(n,e);return mce(this,r)&&(tt(this,vi,r),tt(this,hm,this.options),tt(this,gd,ee(this,Bt).state)),r}getCurrentResult(){return ee(this,vi)}trackResult(e,n){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),n==null||n(i),Reflect.get(r,i))})}trackProp(e){ee(this,pm).add(e)}getCurrentQuery(){return ee(this,Bt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=ee(this,Di).defaultQueryOptions(e),r=ee(this,Di).getQueryCache().build(ee(this,Di),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return Ut(this,sn,Lg).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),ee(this,vi)))}createResult(e,n){var A;const r=ee(this,Bt),i=this.options,s=ee(this,vi),o=ee(this,gd),a=ee(this,hm),u=e!==r?e.state:ee(this,v0),{state:d}=e;let h={...d},f=!1,m;if(n._optimisticResults){const C=this.hasListeners(),R=!C&&V4(e,n),j=C&&W4(e,r,n,i);(R||j)&&(h={...h,...ZH(d.data,e.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:v,errorUpdatedAt:p,status:g}=h;m=h.data;let y=!1;if(n.placeholderData!==void 0&&m===void 0&&g==="pending"){let C;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(C=s.data,y=!0):C=typeof n.placeholderData=="function"?n.placeholderData((A=ee(this,mm))==null?void 0:A.state.data,ee(this,mm)):n.placeholderData,C!==void 0&&(g="success",m=rM(s==null?void 0:s.data,C,n),f=!0)}if(n.select&&m!==void 0&&!y)if(s&&m===(o==null?void 0:o.data)&&n.select===ee(this,y0))m=ee(this,fm);else try{tt(this,y0,n.select),m=n.select(m),m=rM(s==null?void 0:s.data,m,n),tt(this,fm,m),tt(this,mc,null)}catch(C){tt(this,mc,C)}ee(this,mc)&&(v=ee(this,mc),m=ee(this,fm),p=Date.now(),g="error");const b=h.fetchStatus==="fetching",x=g==="pending",w=g==="error",_=x&&b,S=m!==void 0,M={status:g,fetchStatus:h.fetchStatus,isPending:x,isSuccess:g==="success",isError:w,isInitialLoading:_,isLoading:_,data:m,dataUpdatedAt:h.dataUpdatedAt,error:v,errorUpdatedAt:p,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&!S,isPaused:h.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&S,isStale:GN(e,n),refetch:this.refetch,promise:ee(this,fc),isEnabled:Hs(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const C=k=>{M.status==="error"?k.reject(M.error):M.data!==void 0&&k.resolve(M.data)},R=()=>{const k=tt(this,fc,M.promise=iM());C(k)},j=ee(this,fc);switch(j.status){case"pending":e.queryHash===r.queryHash&&C(j);break;case"fulfilled":(M.status==="error"||M.data!==j.value)&&R();break;case"rejected":(M.status!=="error"||M.error!==j.reason)&&R();break}}return M}updateResult(){const e=ee(this,vi),n=this.createResult(ee(this,Bt),this.options);if(tt(this,gd,ee(this,Bt).state),tt(this,hm,this.options),ee(this,gd).data!==void 0&&tt(this,mm,ee(this,Bt)),tM(n,e))return;tt(this,vi,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!ee(this,pm).size)return!0;const o=new Set(s??ee(this,pm));return this.options.throwOnError&&o.add("error"),Object.keys(ee(this,vi)).some(a=>{const c=a;return ee(this,vi)[c]!==e[c]&&o.has(c)})};Ut(this,sn,eV).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ut(this,sn,lM).call(this)}},Di=new WeakMap,Bt=new WeakMap,v0=new WeakMap,vi=new WeakMap,gd=new WeakMap,hm=new WeakMap,fc=new WeakMap,mc=new WeakMap,y0=new WeakMap,fm=new WeakMap,mm=new WeakMap,vd=new WeakMap,yd=new WeakMap,pc=new WeakMap,pm=new WeakMap,sn=new WeakSet,Lg=function(e){Ut(this,sn,dM).call(this);let n=ee(this,Bt).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Bi)),n},sM=function(){Ut(this,sn,cM).call(this);const e=Lc(this.options.staleTime,ee(this,Bt));if(Wd||ee(this,vi).isStale||!eM(e))return;const r=WH(ee(this,vi).dataUpdatedAt,e)+1;tt(this,vd,setTimeout(()=>{ee(this,vi).isStale||this.updateResult()},r))},oM=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ee(this,Bt)):this.options.refetchInterval)??!1},aM=function(e){Ut(this,sn,uM).call(this),tt(this,pc,e),!(Wd||Hs(this.options.enabled,ee(this,Bt))===!1||!eM(ee(this,pc))||ee(this,pc)===0)&&tt(this,yd,setInterval(()=>{(this.options.refetchIntervalInBackground||WN.isFocused())&&Ut(this,sn,Lg).call(this)},ee(this,pc)))},lM=function(){Ut(this,sn,sM).call(this),Ut(this,sn,aM).call(this,Ut(this,sn,oM).call(this))},cM=function(){ee(this,vd)&&(clearTimeout(ee(this,vd)),tt(this,vd,void 0))},uM=function(){ee(this,yd)&&(clearInterval(ee(this,yd)),tt(this,yd,void 0))},dM=function(){const e=ee(this,Di).getQueryCache().build(ee(this,Di),this.options);if(e===ee(this,Bt))return;const n=ee(this,Bt);tt(this,Bt,e),tt(this,v0,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},eV=function(e){Fr.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(ee(this,vi))}),ee(this,Di).getQueryCache().notify({query:ee(this,Bt),type:"observerResultsUpdated"})})},o$);function fce(t,e){return Hs(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function V4(t,e){return fce(t,e)||t.state.data!==void 0&&hM(t,e,e.refetchOnMount)}function hM(t,e,n){if(Hs(e.enabled,t)!==!1&&Lc(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&GN(t,e)}return!1}function W4(t,e,n,r){return(t!==e||Hs(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&GN(t,n)}function GN(t,e){return Hs(e.enabled,t)!==!1&&t.isStaleByTime(Lc(e.staleTime,t))}function mce(t,e){return!tM(t.getCurrentResult(),e)}var tV=E.createContext(void 0),pce=t=>{const e=E.useContext(tV);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},nV=({client:t,children:e})=>(E.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),l.jsx(tV.Provider,{value:t,children:e})),rV=E.createContext(!1),gce=()=>E.useContext(rV);rV.Provider;function vce(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var yce=E.createContext(vce()),xce=()=>E.useContext(yce),bce=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOn
377Mount=!1))},wce=t=>{E.useEffect(()=>{t.clearReset()},[t])},_ce=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||Jle(n,[t.error,r])),Sce=t=>{if(t.suspense){const e=r=>r==="static"?r:Math.max(r??1e3,1e3),n=t.staleTime;t.staleTime=typeof n=="function"?(...r)=>e(n(...r)):e(n),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Ece=(t,e)=>t.isLoading&&t.isFetching&&!e,Tce=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,G4=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Ace(t,e,n){var h,f,m,v,p;const r=gce(),i=xce(),s=pce(),o=s.defaultQueryOptions(t);(f=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||f.call(h,o),o._optimisticResults=r?"isRestoring":"optimistic",Sce(o),bce(o,i),wce(i);const a=!s.getQueryCache().get(o.queryHash),[c]=E.useState(()=>new e(s,o)),u=c.getOptimisticResult(o),d=!r&&t.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(g=>{const y=d?c.subscribe(Fr.batchCalls(g)):Bi;return c.updateResult(),y},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),E.useEffect(()=>{c.setOptions(o)},[o,c]),Tce(o,u))throw G4(o,c,i);if(_ce({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw u.error;if((v=(m=s.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||v.call(m,o,u),o.experimental_prefetchInRender&&!Wd&&Ece(u,r)){const g=a?G4(o,c,i):(p=s.getQueryCache().get(o.queryHash))==null?void 0:p.promise;g==null||g.catch(Bi).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?u:c.trackResult(u)}function Cce(t,e){return Ace(t,hce)}/** 378 * @remix-run/router v1.23.0 379 * 380 * Copyright (c) Remix Software Inc. 381 * 382 * This source code is licensed under the MIT license found in the 383 * LICENSE.md file in the root directory of this source tree. 384 * 385 * @license MIT 386 */function cy(){return cy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cy.apply(this,arguments)}var yc;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(yc||(yc={}));const q4="popstate";function Mce(t){t===void 0&&(t={});function e(r,i){let{pathname:s,search:o,hash:a}=r.location;return fM("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Jw(i)}return Pce(e,n,null,t)}function tr(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function iV(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Rce(){return Math.random().toString(36).substr(2,8)}function Y4(t,e){return{usr:t.state,key:t.key,idx:e}}function fM(t,e,n,r){return n===void 0&&(n=null),cy({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?wp(e):e,{state:n,key:e&&e.key||r||Rce()})}function Jw(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function wp(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Pce(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=yc.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(cy({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function h(){a=yc.Pop;let g=d(),y=g==null?null:g-u;u=g,c&&c({action:a,location:p.location,delta:y})}function f(g,y){a=yc.Push;let b=fM(p.location,g,y);u=d()+1;let x=Y4(b,u),w=p.createHref(b);try{o.pushState(x,"",w)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(w)}s&&c&&c({action:a,location:p.location,delta:1})}function m(g,y){a=yc.Replace;let b=fM(p.location,g,y);u=d();let x=Y4(b,u),w=p.createHref(b);o.replaceState(x,"",w),s&&c&&c({action:a,location:p.location,delta:0})}function v(g){let y=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof g=="string"?g:Jw(g);return b=b.replace(/ $/,"%20"),tr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let p={get action(){return a},get location(){return t(i,o)},listen(g){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(q4,h),c=g,()=>{i.removeEventListener(q4,h),c=null}},createHref(g){return e(i,g)},createURL:v,encodeLocation(g){let y=v(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:m,go(g){return o.go(g)}};return p}var X4;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(X4||(X4={}));function jce(t,e,n){return n===void 0&&(n="/"),Nce(t,e,n,!1)}function Nce(t,e,n,r){let i=typeof e=="string"?wp(e):e,s=qN(i.pathname||"/",n);if(s==null)return null;let o=sV(t);kce(o);let a=null;for(let c=0;a==null&&c<o.length;++c){let u=Vce(s);a=$ce(o[c],u,r)}return a}function sV(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let c={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};c.relativePath.startsWith("/")&&(tr(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
386id. 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=Dc([r,c.relativePath]),d=n.concat(c);s.children&&s.children.length>0&&(tr(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),sV(s.children,e,d,u)),!(s.path==null&&!s.index)&&e.push({path:u,score:Bce(u,s.index),routesMeta:d})};return t.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let c of oV(s.path))i(s,o,c)}),e}function oV(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=oV(r.join("/")),a=[];return a.push(...o.map(c=>c===""?s:[s,c].join("/"))),i&&a.push(...o),a.map(c=>t.startsWith("/")&&c===""?"/":c)}function kce(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:zce(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Oce=/^:[\w-]+$/,Ice=3,Lce=2,Dce=1,Fce=10,Uce=-2,K4=t=>t==="*";function Bce(t,e){let n=t.split("/"),r=n.length;return n.some(K4)&&(r+=Uce),e&&(r+=Lce),n.filter(i=>!K4(i)).reduce((i,s)=>i+(Oce.test(s)?Ice:s===""?Dce:Fce),r)}function zce(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function $ce(t,e,n){let{routesMeta:r}=t,i={},s="/",o=[];for(let a=0;a<r.length;++a){let c=r[a],u=a===r.length-1,d=s==="/"?e:e.slice(s.length)||"/",h=Q4({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),f=c.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=Q4({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;
vendor: 6,949 bytes, lines 386-395
386Object.assign(i,h.params),o.push({params:i,pathname:Dc([s,h.pathname]),pathnameBase:Yce(Dc([s,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(s=Dc([s,h.pathnameBase]))}return o}function Q4(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Hce(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:f,isOptional:m}=d;if(f==="*"){let p=a[h]||"";o=s.slice(0,s.length-p.length).replace(/(.)\/+$/,"$1")}const v=a[h];return m&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:t}}function Hce(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),iV(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,c)=>(r.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function Vce(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return iV(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function qN(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Wce(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?wp(t):t;return{pathname:n?n.startsWith("/")?n:Gce(n,e):e,search:Xce(r),hash:Kce(i)}}function Gce(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function NE(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 qce(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function YN(t,e){let n=qce(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function XN(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=wp(t):(i=cy({},t),tr(!i.pathname||!i.pathname.includes("?"),NE("?","pathname","search",i)),tr(!i.pathname||!i.pathname.includes("#"),NE("#","pathname","hash",i)),tr(!i.search||!i.search.includes("#"),NE("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let h=e.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;i.pathname=f.join("/")}a=h>=0?e[h]:"/"}let c=Wce(i,a),u=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Dc=t=>t.join("/").replace(/\/\/+/g,"/"),Yce=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Xce=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Kce=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Qce(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const aV=["post","put","patch","delete"];new Set(aV);const Zce=["get",...aV];new Set(Zce);/** 387 * React Router v6.30.1 388 * 389 * Copyright (c) Remix Software Inc. 390 * 391 * This source code is licensed under the MIT license found in the 392 * LICENSE.md file in the root directory of this source tree. 393 * 394 * @license MIT 395 */function uy(){return uy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},uy.apply(this,arguments)}const KN=E.createContext(null),Jce=E.createContext(null),cu=E.createContext(null),hS=E.createContext(null),Ol=E.createContext({outlet:null,matches:[],isDataRoute:!1}),lV=E.createContext(null);function eue(t,e){let{relative:n}=e===void 0?{}:e;_p()||tr(!1);let{basename:r,navigator:i}=E.useContext(cu),{hash:s,pathname:o,search:a}=uV(t,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:Dc([r,o])),i.createHref({pathname:c,search:a,hash:s})}function _p(){return E.useContext(hS)!=null}function uu(){return _p()||tr(!1),E.useContext(hS).location}function cV(t){E.useContext(cu).static||E.useLayoutEffect(t)}function du(){let{isDataRoute:t}=E.useContext(Ol);return t?mue():tue()}function tue(){_p()||tr(!1);let t=E.useContext(KN),{basename:e,future:n,navigator:r}=E.useContext(cu),{matches:i}=E.useContext(Ol),{pathname:s}=uu(),o=JSON.stringify(YN(i,n.v7_relativeSplatPath)),a=E.useRef(!1);return cV(()=>{a.current=!0}),E.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let h=XN(u,JSON.parse(o),s,d.relative==="path");t==null&&e!=="/"&&(h.pathname=h.pathname==="/"?e:Dc([e,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[e,r,o,s,t])}function nue(){let{matches:t}=E.useContext(Ol),e=t[t.length-1];return e?e.params:{}}function uV(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=E.useContext(cu),{matches:i}=E.useContext(Ol),{pathname:s}=uu(),o=JSON.stringify(YN(i,r.v7_relativeSplatPath));return E.useMemo(()=>XN(t,JSON.parse(o),s,n==="path"),[t,o,s,n])}function rue(t,e){return iue(t,e)}function iue(t,e,n,r){_p()||tr(!1);let{navigator:i}=E.useContext(cu),{matches:s}=E.useContext(Ol),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=uu(),d;if(e){var h;let g=typeof e=="string"?wp(e):e;c==="/"||(h=g.pathname)!=null&&h.startsWith(c)||tr(!1),d=g}else d=u;let f=d.pathname||"/",m=f;if(c!=="/"){let g=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let v=jce(t,{pathname:m}),p=cue(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:Dc([c,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?c:Dc([c,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),s,n,r);return e&&p?E.createElement(hS.Provider,{value:{location:uy({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:yc.Pop}},p):p}function sue(){let t=fue(),e=Qce(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application
395Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),n?E.createElement("pre",{style:i},n):null,null)}const oue=E.createElement(sue,null);class aue extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?E.createElement(Ol.Provider,{value:this.props.routeContext},E.createElement(lV.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lue(t){let{routeContext:e,match:n,children:r}=t,i=E.useContext(KN);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Ol.Provider,{value:e},r)}function cue(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var s;if(!n)return null;if(n.errors)t=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||tr(!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 h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:m}=n,v=h.route.loader&&f[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||v){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,h,f)=>{let m,v=!1,p=null,g=null;n&&(m=a&&h.route.id?a[h.route.id]:void 0,p=h.route.errorElement||oue,c&&(u<0&&f===0?(v=!0,g=null):u===f&&(v=!0,g=h.route.hydrateFallbackElement||null)));let y=e.concat(o.slice(0,f+1)),b=()=>{let x;return m?x=p:v?x=g:h.route.Component?x=E.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=d,E.createElement(lue,{match:h,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:x})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?E.createElement(aue,{location:n.location,revalidation:n.revalidation,component:p,error:m,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var dV=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(dV||{}),e1=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(e1||{});function uue(t){let e=E.useContext(KN);return e||tr(!1),e}function due(t){let e=E.useContext(Jce);return e||tr(!1),e}function hue(t){let e=E.useContext(Ol);return e||tr(!1),e}function hV(t){let e=hue(),n=e.matches[e.matches.length-1];return n.route.id||tr(!1),n.route.id}function fue(){var t;let e=E.useContext(lV),n=due(e1.UseRouteError),r=hV(e1.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function mue(){let{router:t}=uue(dV.UseNavigateStable),e=hV(e1.UseNavigateStable),n=E.useRef(!1);return cV(()=>{n.current=!0}),E.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,uy({fromRouteId:e},s)))},[t,e])}function pue(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function gue(t){let{to:e,replace:n,state:r,relative:i}=t;_p()||tr(!1);let{future:s,static:o}=E.useContext(cu),{matches:a}=E.useContext(Ol),{pathname:c}=uu(),u=du(),d=XN(e,YN(a,s.v7_relativeSplatPath),c,i==="path"),h=JSON.stringify(d);return E.useEffect(()=>u(JSON.parse(h),{replace:n,state:r,relative:i}),[u,h,i,n,r]),null}function $t(t){tr(!1)}function vue(t){let{basename:e="/",children:n=null,location:r,navigationType:i=yc.Pop,navigator:s,static:o=!1,future:a}=t;_p()&&tr(!1);let c=e.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:c,navigator:s,static:o,future:uy({v7_relativeSplatPath:!1},a)}),[c,a,s,o]);typeof r=="string"&&(r=wp(r));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=r,p=E.useMemo(()=>{let g=qN(d,c);return g==null?null:{location:{pathname:g,search:h,hash:f,state:m,ke
395y:v},navigationType:i}},[c,d,h,f,m,v,i]);return p==null?null:E.createElement(cu.Provider,{value:u},E.createElement(hS.Provider,{children:n,value:p}))}function yue(t){let{children:e,location:n}=t;return rue(mM(e),n)}new Promise(()=>{});function mM(t,e){e===void 0&&(e=[]);let n=[];return E.Children.forEach(t,(r,i)=>{if(!E.isValidElement(r))return;let s=[...e,i];if(r.type===E.Fragment){n.push.apply(n,mM(r.props.children,s));return}r.type!==$t&&tr(!1),!r.props.index||!r.props.children||tr(!1);let o={id:r.props.id||s.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=mM(r.props.children,s)),n.push(o)}),n}/** 396 * React Router DOM v6.30.1 397 * 398 * Copyright (c) Remix Software Inc. 399 * 400 * This source code is licensed under the MIT license found in the 401 * LICENSE.md file in the root directory of this source tree. 402 * 403 * @license MIT 404 */function pM(){return pM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},pM.apply(this,arguments)}function xue(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function bue(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function wue(t,e){return t.button===0&&(!e||e==="_self")&&!bue(t)}function gM(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function _ue(t,e){let n=gM(t);return e&&e.forEach((r,i)=>{n.has(i)||e.getAll(i).forEach(s=>{n.append(i,s)})}),n}const Sue=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Eue="6";try{window.__reactRouterVersion=Eue}catch{}const Tue="startTransition",Z4=Rj[Tue];function Aue(t){let{basename:e,children:n,future:r,window:i}=t,s=E.useRef();s.current==null&&(s.current=Mce({window:i,v5Compat:!0}));let o=s.current,[a,c]=E.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=E.useCallback(h=>{u&&Z4?Z4(()=>c(h)):c(h)},[c,u]);return E.useLayoutEffect(()=>o.listen(d),[o,d]),E.useEffect(()=>pue(r),[r]),E.createElement(vue,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Cue=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Mue=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mt=E.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:c,to:u,preventScrollReset:d,viewTransition:h}=e,f=xue(e,Sue),{basename:m}=E.useContext(cu),v,p=!1;if(typeof u=="string"&&Mue.test(u)&&(v=u,Cue))try{let x=new URL(window.location.href),w=u.startsWith("//")?new URL(x.protocol+u):new URL(u),_=qN(w.pathname,m);w.origin===x.origin&&_!=null?u=_+w.search+w.hash:p=!0}catch{}let g=eue(u,{relative:i}),y=Rue(u,{replace:o,state:a,target:c,preventScrollReset:d,relative:i,viewTransition:h});function b(x){r&&r(x),x.defaultPrevented||y(x)}return E.createElement("a",pM({},f,{href:v||g,onClick:p||s?r:b,ref:n,target:c}))});var J4;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(J4||(J4={}));var e5;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(e5||(e5={}));function Rue(t,e){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:a}=e===void 0?{}:e,c=du(),u=uu(),d=uV(t,{relative:o});return E.useCallback(h=>{if(wue(h,n)){h.preventDefault();
404let f=r!==void 0?r:Jw(u)===Jw(d);c(t,{replace:f,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[u,c,d,r,i,n,t,s,o,a])}function fV(t){let e=E.useRef(gM(t)),n=E.useRef(!1),r=uu(),i=E.useMemo(()=>_ue(r.search,n.current?null:e.current),[r.search]),s=du(),o=E.useCallback((a,c)=>{const u=gM(typeof a=="function"?a(i):a);n.current=!0,s("?"+u,c)},[s,i]);return[i,o]}const Pue=A0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-medium ring-offset-background transition-all duration-300 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 hover:scale-105 hover:shadow-lg active:scale-95",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg hover:shadow-xl",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-lg hover:shadow-xl",outline:"border border-white/20 bg-white/10 text-white hover:bg-white/20 hover:text-white backdrop-blur-sm shadow-lg hover:shadow-xl",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-lg hover:shadow-xl",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",premium:"bg-gradient-to-r from-[#E2628A] to-[#6200EE] text-white shadow-lg hover:shadow-xl hover:shadow-[#E2628A]/20 transition-all duration-300"},size:{default:"h-10 px-6 py-2",sm:"h-8 px-4 text-xs",lg:"h-12 px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ge=E.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...i},s)=>{const o=r?Eie:"button";return l.jsx(o,{className:He(Pue({variant:e,size:n,className:t})),ref:s,...i})});Ge.displayName="Button";const jue="modulepreload",Nue=function(t){return"/"+t},t5={},dh=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=Nue(c),c in t5)return;t5[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":jue,u||(h.as="script"),h.crossOrigin="",h.href=c,a&&h.setAttribute("nonce",a),document.head.appendChild(h),u)return new Promise((f,m)=>{h.addEventListener("load",f),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})},kue=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>dh(async()=>{const{default:r}=await Promise.resolve().then(()=>Sp);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)};class QN extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}}class Oue extends QN{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class n5 extends QN{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class r5 extends QN{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var vM;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(vM||(vM={}));var Iue=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(a,c)}u((r=r.apply(t,e||[])).next())})};class Lue{constructor(e,{headers:n={},customFetch:r,region:i=vM.Any}={}){this.url=e,this.headers=n,this.region=i,this.fetch=kue(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,n={}){var r;return Iue(this,void 0,void 0,function*(){try{const{headers:i,method:s,body:o}=n;let a={},{region:c}=n;c||(c=this.region);const u=new URL(`${this.url}/${e}`);c&&c!=="any"&&(a["x-region"]=c,u.searchParams.set("forceFunctionRegion",c));let d;o&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",d=o):typeof o=="str
404ing"?(a["Content-Type"]="text/plain",d=o):typeof FormData<"u"&&o instanceof FormData?d=o:(a["Content-Type"]="application/json",d=JSON.stringify(o)));const h=yield this.fetch(u.toString(),{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),i),body:d}).catch(p=>{throw new Oue(p)}),f=h.headers.get("x-relay-error");if(f&&f==="true")throw new n5(h);if(!h.ok)throw new r5(h);let m=((r=h.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),v;return m==="application/json"?v=yield h.json():m==="application/octet-stream"?v=yield h.blob():m==="text/event-stream"?v=h:m==="multipart/form-data"?v=yield h.formData():v=yield h.text(),{data:v,error:null,response:h}}catch(i){return{data:null,error:i,response:i instanceof r5||i instanceof n5?i.context:void 0}}})}}var $i={},ZN={},fS={},P0={},mS={},pS={},Due=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Mm=Due();const Fue=Mm.fetch,mV=Mm.fetch.bind(Mm),pV=Mm.Headers,Uue=Mm.Request,Bue=Mm.Response,Sp=Object.freeze(Object.defineProperty({__proto__:null,Headers:pV,Request:Uue,Response:Bue,default:mV,fetch:Fue},Symbol.toStringTag,{value:"Module"})),zue=Wte(Sp);var gS={};Object.defineProperty(gS,"__esModule",{value:!0});let $ue=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
404de=e.code}};gS.default=$ue;var gV=ai&&ai.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pS,"__esModule",{value:!0});const Hue=gV(zue),Vue=gV(gS);let Wue=class{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=Hue.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,n){return this.headers=Object.assign({},this.headers),this.headers[e]=n,this}then(e,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{var o,a,c;let u=null,d=null,h=null,f=s.status,m=s.statusText;if(s.ok){if(this.method!=="HEAD"){const y=await s.text();y===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?d=y:d=JSON.parse(y))}const p=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),g=(a=s.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");p&&g&&g.length>1&&(h=parseInt(g[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(u={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,h=null,f=406,m="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const p=await s.text();try{u=JSON.parse(p),Array.isArray(u)&&s.status===404&&(d=[],u=null,f=200,m="OK")}catch{s.status===404&&p===""?(f=204,m="No Content"):u={message:p}}if(u&&this.isMaybeSingle&&(!((c=u==null?void 0:u.details)===null||c===void 0)&&c.includes("0 rows"))&&(u=null,f=200,m="OK"),u&&this.shouldThrowOnError)throw new Vue.default(u)}return{error:u,data:d,count:h,status:f,statusText:m}});return this.shouldThrowOnError||(i=i.catch(s=>{var o,a,c;return{error:{message:`${(o=s==null?void 0:s.name)!==null&&o!==void 0?o:"FetchError"}: ${s==null?void 0:s.message}`,details:`${(a=s==null?void 0:s.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(c=s==null?void 0:s.code)!==null&&c!==void 0?c:""}`},data:null,count:null,status:0,statusText:""}})),i.then(e,n)}returns(){return this}overrideTypes(){return this}};pS.default=Wue;var Gue=ai&&ai.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mS,"__esModule",{value:!0});const que=Gue(pS);let Yue=class extends que.default{select(e){let n=!1;const r=(e??"*").split("").map(i=>/\s/.test(i)&&!n?"":(i==='"'&&(n=!n),i)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e,{ascending:n=!0,nullsFirst:r,foreignTable:i,referencedTable:s=i}={}){const o=s?`${s}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${e}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this}range(e,n,{foreignTable:r,referencedTable:i=r}={}){const s=typeof i>"u"?"offset":`${i}.offset`,o=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(o,`${n-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
404explain({analyze:e=!1,verbose:n=!1,settings:r=!1,buffers:i=!1,wal:s=!1,format:o="text"}={}){var a;const c=[e?"analyze":null,n?"verbose":null,r?"settings":null,i?"buffers":null,s?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${u}"; options=${c};`,o==="json"?this:this}rollback(){var e;return((e=this.headers.Prefer)!==null&&e!==void 0?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};mS.default=Yue;var Xue=ai&&ai.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(P0,"__esModule",{value:!0});const Kue=Xue(mS);let Que=class extends Kue.default{eq(e,n){return this.url.searchParams.append(e,`eq.${n}`),this}neq(e,n){return this.url.searchParams.append(e,`neq.${n}`),this}gt(e,n){return this.url.searchParams.append(e,`gt.${n}`),this}gte(e,n){return this.url.searchParams.append(e,`gte.${n}`),this}lt(e,n){return this.url.searchParams.append(e,`lt.${n}`),this}lte(e,n){return this.url.searchParams.append(e,`lte.${n}`),this}like(e,n){return this.url.searchParams.append(e,`like.${n}`),this}likeAllOf(e,n){return this.url.searchParams.append(e,`like(all).{${n.join(",")}}`),this}likeAnyOf(e,n){return this.url.searchParams.append(e,`like(any).{${n.join(",")}}`),this}ilike(e,n){return this.url.searchParams.append(e,`ilike.${n}`),this}ilikeAllOf(e,n){return this.url.searchParams.append(e,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(e,n){return this.url.searchParams.append(e,`ilike(any).{${n.join(",")}}`),this}is(e,n){return this.url.searchParams.append(e,`is.${n}`),this}in(e,n){const r=Array.from(new Set(n)).map(i=>typeof i=="string"&&new RegExp("[,()]").test(i)?`"${i}"`:`${i}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}contains(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cs.{${n.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(n)}`),this}containedBy(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cd.{${n.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(n)}`),this}rangeGt(e,n){return this.url.searchParams.append(e,`sr.${n}`),this}rangeGte(e,n){return this.url.searchParams.append(e,`nxl.${n}`),this}rangeLt(e,n){return this.url.searchParams.append(e,`sl.${n}`),this}rangeLte(e,n){return this.url.searchParams.append(e,`nxr.${n}`),this}rangeAdjacent(e,n){return this.url.searchParams.append(e,`adj.${n}`),this}overlaps(e,n){return typeof n=="string"?this.url.searchParams.append(e,`ov.${n}`):this.url.searchParams.append(e,`ov.{${n.join(",")}}`),this}textSearch(e,n,{config:r,type:i}={}){let s="";i==="plain"?s="pl":i==="phrase"?s="ph":i==="websearch"&&(s="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${s}fts${o}.${n}`),this}match(e){return Object.entries(e).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(e,n,r){return this.url.searchParams.append(e,`not.${n}.${r}`),this}or(e,{foreignTable:n,referencedTable:r=n}={}){const i=r?`${r}.or`:"or";return this.url.searchParams.append(i,`(${e})`),this}filter(e,n,r){return this.url.searchParams.append(e,`${n}.${r}`),this}};P0.default=Que;var Zue=ai&&ai.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fS,"__esModule",{value:!0});const rg=Zue(P0);let Jue=class{constructor(e,{headers:n={},schema:r,fetch:i}){this.url=e,this.headers=n,this.schema=r,this.fetch=i}select(e,{head:n=!1,count:r}={}){const i=n?"HEAD":"GET";let s=!1;const o=(e??"*").split("").map(a=>/\s/.test(a)&&!s?"":(a==='"'&&(s=!s),a)).join("");return this.url.searchParams.set("select",o),r&&(this.headers.Prefer=`count=${r}`),new rg.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e,{count:n,defaultToNull:r=!0}={}){const i="POST",s=[];if(this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),r||s.push("missing=default"),this.headers.Prefer=s.join(","),Array.isArray(e)){const o=e.reduce((a,c)=>a.concat(Object.keys(c)),[]);if(o.length>0){const a=[...new Set(o)].map(c=>`"${c}"`);this.url.searchParams.set("columns",a.join(","))}}return new rg.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e,{onConflict:n,ignoreDuplicates:r=!1,count:i,defaultToNull:s=!0}={}){const o="POST",a=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&a.push(this.headers.Prefer),i&&a.push(`count=${i}`),s||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(e)){const c=e.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);this.url.searchParams.set("columns",u.join(","))}}return new rg.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e,{count:n}={}){const r="PATCH",i=[];return this.headers.Prefer&&i.push(this.headers.Prefer),n&&i.push(`count=${n}`),this.headers.Prefer=i.join(","),new rg.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete({count:e}={}){const n="DELETE",r=[];return e&&r.push(`count=${e}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new rg.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};fS.default=Jue;var vS={},yS={};Object.defineProperty(yS,"__esModule",{value:!0});yS.version=void 0;yS.version="0.0.0-automated";Object.defineProperty(vS,"__esModule",{value:!0});vS.DEFAULT_HEADERS=void 0;const ede=yS;vS.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${ede.version}`};var vV=ai&&ai.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ZN,"__esModule",{value:!0});const tde=vV(fS),nde=vV(P0),rde=vS;let ide=class yV{constructor(e,{headers:n={},schema:r,fetch:i}={}){this.url=e,this.headers=Object.assign(Object.assign({},rde.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=i}from(e){const n=new URL(`${this.url}/${e}`);return new tde.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new yV(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,n={},{head:r=!1,get:i=!1,count:s}={}){let o;const a=new URL(`${this.url}/rpc/${e}`);let c;r||i?(o=r?"HEAD":"GET",Object.entries(n).filter(([d,h])=>h!==void 0).map(([d,h])=>[d,Array.isArray(h)?`{${h.join(",")}}`:`${h}
404`]).forEach(([d,h])=>{a.searchParams.append(d,h)})):(o="POST",c=n);const u=Object.assign({},this.headers);return s&&(u.Prefer=`count=${s}`),new nde.default({method:o,url:a,headers:u,schema:this.schemaName,body:c,fetch:this.fetch,allowEmpty:!1})}};ZN.default=ide;var Ep=ai&&ai.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($i,"__esModule",{value:!0});$i.PostgrestError=$i.PostgrestBuilder=$i.PostgrestTransformBuilder=$i.PostgrestFilterBuilder=$i.PostgrestQueryBuilder=$i.PostgrestClient=void 0;const xV=Ep(ZN);$i.PostgrestClient=xV.default;const bV=Ep(fS);$i.PostgrestQueryBuilder=bV.default;const wV=Ep(P0);$i.PostgrestFilterBuilder=wV.default;const _V=Ep(mS);$i.PostgrestTransformBuilder=_V.default;const SV=Ep(pS);$i.PostgrestBuilder=SV.default;const EV=Ep(gS);$i.PostgrestError=EV.default;var sde=$i.default={PostgrestClient:xV.default,PostgrestQueryBuilder:bV.default,PostgrestFilterBuilder:wV.default,PostgrestTransformBuilder:_V.default,PostgrestBuilder:SV.default,PostgrestError:EV.default};const{PostgrestClient:ode,PostgrestQueryBuilder:rJe,PostgrestFilterBuilder:iJe,PostgrestTransformBuilder:sJe,PostgrestBuilder:oJe,PostgrestError:aJe}=sde;
404function ade(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const lde=ade(),cde="2.11.15",ude=`realtime-js/${cde}`,dde="1.0.0",TV=1e4,hde=1e3;var av;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(av||(av={}));var Qr;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(Qr||(Qr={}));var ko;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(ko||(ko={}));var yM;(function(t){t.websocket="websocket"})(yM||(yM={}));var Ku;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(Ku||(Ku={}));class fde{constructor(){this.HEADER_LENGTH=1}decode(e,n){return e.constructor===ArrayBuffer?n(this._binaryDecode(e)):n(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const n=new DataView(e),r=new TextDecoder;return this._decodeBroadcast(e,n,r)}_decodeBroadcast(e,n,r){const i=n.getUint8(1),s=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(e.slice(o,o+i));o=o+i;const c=r.decode(e.slice(o,o+s));o=o+s;const u=JSON.parse(r.decode(e.slice(o,e.byteLength)));return{ref:null,topic:a,event:c,payload:u}}}class AV{constructor(e,n){this.callback=e,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var vn;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(vn||(vn={}));const i5=(t,e,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(e).reduce((s,o)=>(s[o]=mde(o,t,e,i),s),{})},mde=(t,e,n,r)=>{const i=e.find(a=>a.name===t),s=i==null?void 0:i.type,o=n[t];return s&&!r.includes(s)?CV(s,o):xM(o)},CV=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return yde(e,n)}switch(t){case vn.bool:return pde(e);case vn.float4:case vn.float8:case vn.int2:case vn.int4:case vn.int8:case vn.numeric:case vn.oid:return gde(e);case vn.json:case vn.jsonb:return vde(e);case vn.timestamp:return xde(e);case vn.abstime:case vn.date:case vn.daterange:case vn.int4range:case vn.int8range:case vn.money:case vn.reltime:case vn.text:case vn.time:case vn.timestamptz:case vn.timetz:case vn.tsrange:case vn.tstzrange:return xM(e);default:return xM(e)}},xM=t=>t,pde=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},gde=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},vde=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},yde=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let s;const o=t.slice(1,n);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>CV(e,a))}return t},xde=t=>typeof t=="string"?t.replace(" ","T"):t,MV=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")};class kE{constructor(e,n,r={},i=TV){this.channel=e,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,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,j
vendor: 4,560 bytes, line 404
404oin_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,n){var r;return this._hasReceived(e)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:e,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,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:e,response:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var s5;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(s5||(s5={}));class lv{constructor(e,n){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=lv.syncState(this.state,i,s,o),this.pendingDiffs.forEach(c=>{this.state=lv.syncDiff(this.state,c,s,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=lv.syncDiff(this.state,i,s,o),a())}),this.onJoin((i,s,o)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:o})}),this.onLeave((i,s,o)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,n,r,i){const s=this.cloneDeep(e),o=this.transformState(n),a={},c={};return this.map(s,(u,d)=>{o[u]||(c[u]=d)}),this.map(o,(u,d)=>{const h=s[u];if(h){const f=d.map(g=>g.presence_ref),m=h.map(g=>g.presence_ref),v=d.filter(g=>m.indexOf(g.presence_ref)<0),p=h.filter(g=>f.indexOf(g.presence_ref)<0);v.length>0&&(a[u]=v),p.length>0&&(c[u]=p)}else a[u]=d}),this.syncDiff(s,{joins:a,leaves:c},r,i)}static syncDiff(e,n,r,i){const{joins:s,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(s,(a,c)=>{var u;const d=(u=e[a])!==null&&u!==void 0?u:[];if(e[a]=this.cloneDeep(c),d.length>0){const h=e[a].map(m=>m.presence_ref),f=d.filter(m=>h.indexOf(m.presence_ref)<0);e[a].unshift(...f)}r(a,d,c)}),this.map(o,(a,c)=>{let u=e[a];if(!u)return;const d=c.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),e[a]=u,i(a,u,c),u.length===0&&delete e[a]}),e}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const i=e[r];return"metas"in i?n[r]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=i,n},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var o5;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(o5||(o5={}));var a5;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(a5||(a5={}));var Za;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Za||(Za={}));class JN{constructor(e,n={config:{}},r){this.topic=e,this.params=n,this.socket=r,this.bindings={},this.state=Qr.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new kE(this,ko.join,this.params,this.timeout),this.rejoinTimer=new AV(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Qr.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>
404i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Qr.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Qr.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Qr.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ko.reply,{},(i,s)=>{this._trigger(this._replyEventName(s),i)}),this.presence=new lv(this),this.broadcastEndpointURL=MV(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(e,n=this.timeout){var r,i;if(this.socket.isConnected()||this.socket.connect(),this.state==Qr.closed){const{config:{broadcast:s,presence:o,private:a}}=this.params;this._onError(d=>e==null?void 0:e(Za.CHANNEL_ERROR,d)),this._onClose(()=>e==null?void 0:e(Za.CLOSED));const c={},u={broadcast:s,presence:o,postgres_changes:(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(d=>d.filter))!==null&&i!==void 0?i:[],private:a};this.socket.accessTokenValue&&(c.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:u},c)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:d})=>{var h;if(this.socket.setAuth(),d===void 0){e==null||e(Za.SUBSCRIBED);return}else{const f=this.bindings.postgres_changes,m=(h=f==null?void 0:f.length)!==null&&h!==void 0?h:0,v=[];for(let p=0;p<m;p++){const g=f[p],{filter:{event:y,schema:b,table:x,filter:w}}=g,_=d&&d[p];if(_&&_.event===y&&_.schema===b&&_.table===x&&_.filter===w)v.push(Object.assign(Object.assign({},g),{id:_.id}));else{this.unsubscribe(),this.state=Qr.errored,e==null||e(Za.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,e&&e(Za.SUBSCRIBED);return}}).receive("error",d=>{this.state=Qr.errored,e==null||e(Za.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(d).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(Za.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){return this._on(e,n,r)}async send(e,n={}){var r,i;if(!this._canPush()&&e.type==="broadcast"){const{event:s,payload:o}=e,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,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((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,a,c;const u=this._push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((c=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||c===void 0)&&c.ack)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=Qr.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ko.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(i=>{r=new kE(this,ko.leave,{},e),r.receive("ok",()=>{n(),i("ok")}).receive("timeout",()=>{n(),i("timed out")}).receive("error",()=>{i("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.rejoinTimer&&clearTimeout(this.rejoinTimer.timer),this.joinPush.destroy()}async _fetchWithTimeout(e,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),o}_push(e,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new kE(this,e,n,r);return this._canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}_onMessage(e,n,r){return n}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,n,r){var i,s;const o=e.toLocaleLowerCase(),{close:a,error:c,leave:u,join:d}=ko;if(r&&[a,c,u,d].indexOf(o)>=0&&r!==this._joinRef())return;let f=this._onMessage(o,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(m=>{var v,p,g;return((v=m.filter)===null||v===void 0?void 0:v.event)==="*"||((g=(p=m.filter)===null||p===void 0?void 0:p.event)===null||g===void 0?void 0:g.toLocaleLowerCase())===o}).map(m=>m.callback(f,r)):(s=this.bindings[o])===null||s===void 0||s.filter(m=>{var v,p,g,y,b,x;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in m){const w=m.id,_=(v=m.filter)===null||v===void 0?void 0:v.event;return w&&((p=n.ids)===null||p===void 0?void 0:p.includes(w))&&(_==="*"||(_==null?void 0:_.toLocaleLowerCase())===((g=n.data)===null||g===void 0?void 0:g.type.toLocaleLowerCase()))}else{const w=(b=(y=m==null?void 0:m.filter)===null||y===void 0?void 0:y.event)===null||b===void 0?void 0:b.toLocaleLowerCase();return w==="*"||w===((x=n==null?void 0:n.event)===null||x===void 0?void 0:x.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===o}).map(m=>{if(typeof f=="object"&&"ids"in f){const v=f.data,{schema:p,table:g,commit_timestamp:y,type:b,errors:x}=v;f=Object.assign(Object.assign({},{schema:p,table:g,commit_timestamp:y,eventType:b,new:{},old:{},errors:x}),this._getPayloadRecords(v))}m.callback(f,r)}
404)}_isClosed(){return this.state===Qr.closed}_isJoined(){return this.state===Qr.joined}_isJoining(){return this.state===Qr.joining}_isLeaving(){return this.state===Qr.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,n,r){const i=e.toLocaleLowerCase(),s={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(e,n){const r=e.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&JN.isEqual(i.filter,n))}),this}static isEqual(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(ko.close,{},e)}_onError(e){this._on(ko.error,{},n=>e(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Qr.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=i5(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=i5(e.columns,e.old_record)),n}}const l5=()=>{},bde=` 405 addEventListener("message", (e) => { 406 if (e.data.event === "start") { 407 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 408 } 409 });`;class wde{constructor(e,n){var r;this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=TV,this.heartbeatIntervalMs=25e3,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=l5,this.ref=0,this.logger=l5,this.conn=null,this.sendBuffer=[],this.serializer=new fde,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=s=>{let o;return s?o=s:typeof fetch>"u"?o=(...a)=>dh(async()=>{const{default:c}=await Promise.resolve().then(()=>Sp);return{default:c}},void 0).then(({default:c})=>c(...a)):o=fetch,(...a)=>o(...a)},this.endPoint=`${e}/${yM.websocket}`,this.httpEndpoint=MV(e),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),(n!=null&&n.logLevel||n!=null&&n.log_level)&&(this.logLevel=n.logLevel||n.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const i=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;if(i&&(this.accessTokenValue=i,this.apiKey=i),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:s=>[1e3,2e3,5e3,1e4][s-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(s,o)=>o(JSON.stringify(s)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new AV(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch),n!=null&&n.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(n==null?void 0:n.worker)||!1,this.workerUrl=n==null?void 0:n.workerUrl}this.accessToken=(n==null?void 0:n.accessToken)||null}connect(){if(!this.conn){if(this.transport||(this.transport=lde),!this.transport)throw new Error("No transport provided");this.conn=new this.transport(this.endpointURL()),this.setupConnection()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:dde}))}disconnect(e,n){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset(),this.channels.forEach(r=>r.teardown()))}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,n,r){this.logger(e,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case av.connecting:return Ku.Connecting;case av.open:return Ku.Open;case av.closing:return Ku.Closing;default:return Ku.Closed}}isConnected(){return this.connectionState()===Ku.Open}channel(e,n={config:{}}){const r=`realtime:${e}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new JN(`realtime:${e}`,n,this);return this.channels.push(s),s}}push(e){const{topic:n,event:r,payload:i,ref:s}=e,o=()=>{this.encode(e,a=>{var c;(c=this.conn)===null||c===void 0||c.send(a)})};this.log("push",`${n} ${r} (${s})`,i),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){let n=e||this.accessToken&&await this.accessToken()||this.accessTokenValue;this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEac
409h(r=>{const i={access_token:n,version:ude};n&&r.updateJoinPayload(i),r.joinedOnce&&r._isJoined()&&r._push(ko.access_token,{access_token:n})}))}async sendHeartbeat(){var e;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),(e=this.conn)===null||e===void 0||e.close(hde,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),await this.setAuth()}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let n=this.channels.find(r=>r.topic===e&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${e}"`),n.unsubscribe())}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_onConnMessage(e){this.decode(e.data,n=>{let{topic:r,event:i,payload:s,ref:o}=n;r==="phoenix"&&i==="phx_reply"&&this.heartbeatCallback(n.payload.status=="ok"?"ok":"error"),o&&o===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${s.status||""} ${r} ${i} ${o&&"("+o+")"||""}`,s),Array.from(this.channels).filter(a=>a._isMember(r)).forEach(a=>a._trigger(i,s,o)),this.stateChangeCallbacks.message.forEach(a=>a(n))})}_onConnOpen(){this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this.stateChangeCallbacks.open.forEach(e=>e())}_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 e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){this.log("transport","close",e),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(e))}_onConnError(e){this.log("transport",`${e}`),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(e))}_triggerChanError(){this.channels.forEach(e=>e._trigger(ko.error))}_appendParams(e,n){if(Object.keys(n).length===0)return e;const r=e.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${e}${r}${i}`}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([bde],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}}class ek extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function Er(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class _de extends ek{constructor(e,n,r){super(e),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class bM extends ek{constructor(e,n){super(e),this.name="StorageUnknownError",this.originalError=n}}var Sde=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(a,c)}u((r=r.apply(t,e||[])).next())})};const RV=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>dh(async()=>{const{default:r}=await Promise.resolve().then(()=>Sp);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},Ede=()=>Sde(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield dh(()=>Promise.resolve().then(()=>Sp),void 0)).Response:Response}),wM=t=>{if(Array.isArray(t))return t.map(n=>wM(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));e[i]=wM(r)}),e},Tde=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);
409return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};var hh=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(a,c)}u((r=r.apply(t,e||[])).next())})};const OE=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),Ade=(t,e,n)=>hh(void 0,void 0,void 0,function*(){const r=yield Ede();t instanceof r&&!(n!=null&&n.noResolveJson)?t.json().then(i=>{const s=t.status||500,o=(i==null?void 0:i.statusCode)||s+"";e(new _de(OE(i),s,o))}).catch(i=>{e(new bM(OE(i),i))}):e(new bM(OE(t),t))}),Cde=(t,e,n,r)=>{const i={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!r?i:(Tde(r)?(i.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),i.body=JSON.stringify(r)):i.body=r,Object.assign(Object.assign({},i),n))};function j0(t,e,n,r,i,s){return hh(this,void 0,void 0,function*(){return new Promise((o,a)=>{t(n,Cde(e,r,i,s)).then(c=>{if(!c.ok)throw c;return r!=null&&r.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>Ade(c,a,r))})})}function t1(t,e,n,r){return hh(this,void 0,void 0,function*(){return j0(t,"GET",e,n,r)})}function Ja(t,e,n,r,i){return hh(this,void 0,void 0,function*(){return j0(t,"POST",e,r,i,n)})}function _M(t,e,n,r,i){return hh(this,void 0,void 0,function*(){return j0(t,"PUT",e,r,i,n)})}function Mde(t,e,n,r){return hh(this,void 0,void 0,function*(){return j0(t,"HEAD",e,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function PV(t,e,n,r,i){return hh(this,void 0,void 0,function*(){return j0(t,"DELETE",e,r,i,n)})}var Ii=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(a,c)}u((r=r.apply(t,e||[])).next())})};const Rde={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},c5={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class Pde{constructor(e,n={},r,i){this.url=e,this.headers=n,this.bucketId=r,this.fetch=RV(i)}uploadOrUpdate(e,n,r,i){return Ii(this,void 0,void 0,function*(){try{let s;const o=Object.assign(Object.assign({},c5),i);let a=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&r instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),c&&s.append("metadata",this.encodeMetadata(c)),s.append("",r)):typeof FormData<"u"&&r instanceof FormData?(s=r,s.append("cacheControl",o.cacheControl),c&&s.append("metadata",this.encodeMetadata(c))):(s=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,c&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),i!=null&&i.headers&&(a=Object.assign(Object.assign({},a),i.headers));const u=this._removeEmptyFolders(n),d=this._getFinalPath(u),h=yield(e=="PUT"?_M:Ja)(this.fetch,`${this.url}/object/${d}`,s,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:h.Id,fullPath:h.Key},error:null}}catch(s){if(Er(s))return{data:null,error:s};throw s}})}upload(e,n,r){return Ii(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,n,r)})}uploadToSignedUrl(e,n,r,i){return Ii(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(e),o=this._getFinalPath(s),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",n);try{let c;const u=Object.assign({upsert:c5.upsert},i),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.append("cacheControl",u.cacheControl)):(c=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType);const h=yield _M(this.fetch,a.toString(),c,{headers:d});return{data:{path:s,fullPath:h.Key},error:null}}catch(c){if(Er(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(e,n){return Ii(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e);const i=Object.assign({},this.headers);n!=null&&n.upsert&&(i["x-upsert"]="true");const s=yield Ja(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(this.url+s.url),a=o.searchParams.get("token");if(!a)throw new ek("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(r){if(Er(r))return{data:null,error:r};throw r}})}update(e,n,r){return Ii(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,n,r)})}move(e,n,r){return Ii(this,void 0,void 0,function*(){try{return{data:yield Ja(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(i){if(Er(i))return{data:null,error:i};throw i}})}copy(e,n,r){return Ii(this,void 0,void 0,function*(){try{return{data:{path:(yield Ja(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(i){if(Er(i))return{data:null,error:i};throw i}})}createSignedUrl(e,n,r){return Ii(this,void 0,void 0,function*(){try{let i=this._getFinalPath(e),s=yield Ja(this.fetch,`${this.url}/object/sign/${i}
409`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${o}`)},{data:s,error:null}}catch(i){if(Er(i))return{data:null,error:i};throw i}})}createSignedUrls(e,n,r){return Ii(this,void 0,void 0,function*(){try{const i=yield Ja(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:e},{headers:this.headers}),s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:i.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${s}`):null})),error:null}}catch(i){if(Er(i))return{data:null,error:i};throw i}})}download(e,n){return Ii(this,void 0,void 0,function*(){const i=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=s?`?${s}`:"";try{const a=this._getFinalPath(e);return{data:yield(yield t1(this.fetch,`${this.url}/${i}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(Er(a))return{data:null,error:a};throw a}})}info(e){return Ii(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{const r=yield t1(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:wM(r),error:null}}catch(r){if(Er(r))return{data:null,error:r};throw r}})}exists(e){return Ii(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{return yield Mde(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(Er(r)&&r instanceof bM){const i=r.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:r}}throw r}})}getPublicUrl(e,n){const r=this._getFinalPath(e),i=[],s=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";s!==""&&i.push(s);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});c!==""&&i.push(c);let u=i.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(e){return Ii(this,void 0,void 0,function*(){try{return{data:yield PV(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(n){if(Er(n))return{data:null,error:n};throw n}})}list(e,n,r){return Ii(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},Rde),n),{prefix:e||""});return{data:yield Ja(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},r),error:null}}catch(i){if(Er(i))return{data:null,error:i};throw i}})}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 n=[];return e.width&&n.push(`width=${e.width}`),e.height&&n.push(`height=${e.height}`),e.resize&&n.push(`resize=${e.resize}`),e.format&&n.push(`format=${e.format}`),e.quality&&n.push(`quality=${e.quality}`),n.join("&")}}const jde="2.10.4",Nde={"X-Client-Info":`storage-js/${jde}`};var Sh=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(a,c)}u((r=r.apply(t,e||[])).next())})};class kde{constructor(e,n={},r,i){const s=new URL(e);i!=null&&i.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,this.headers=Object.assign(Object.assign({},Nde),n),this.fetch=RV(r)}listBuckets(){return Sh(this,void 0,void 0,function*(){try{return{data:yield t1(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(Er(e))return{data:null,error:e};throw e}})}getBucket(e){return Sh(this,void 0,void 0,function*(){try{return{data:yield t1(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(n){if(Er(n))return{data:null,error:n};throw n}})}createBucket(e,n={public:!1}){return Sh(this,void 0,void 0,function*(){try{return{data:yield Ja(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Er(r))return{data:null,error:r};throw r}})}updateBucket(e,n){return Sh(this,void 0,void 0,function*(){try{return{data:yield _M(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Er(r))return{data:null,error:r};throw r}})}emptyBucket(e){return Sh(this,void 0,void 0,function*(){try{return{data:yield Ja(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(Er(n))return{data:null,error:n};throw n}})}deleteBucket(e){return Sh(this,void 0,void 0,function*(){try{return{data:yield PV(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(n){if(Er(n))return{data:null,error:n};throw n}})}}class Ode extends kde{constructor(e,n={},r,i){super(e,n,r,i)}from(e){return new Pde(this.url,this.headers,e,this.fetch)}}const Ide="2.53.0";let Dg="";typeof Deno<"u"?Dg="deno":typeof document<"u"?Dg="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Dg="react-native":Dg="node";const Lde={"X-Client-Info":`supabase-js-${Dg}/${Ide}`},Dde={headers:Lde},Fde={schema:"public"},Ude={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Bde={};var zde=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}
409return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(a,c)}u((r=r.apply(t,e||[])).next())})};const $de=t=>{let e;return t?e=t:typeof fetch>"u"?e=mV:e=fetch,(...n)=>e(...n)},Hde=()=>typeof Headers>"u"?pV:Headers,Vde=(t,e,n)=>{const r=$de(n),i=Hde();return(s,o)=>zde(void 0,void 0,void 0,function*(){var a;const c=(a=yield e())!==null&&a!==void 0?a:t;let u=new i(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),r(s,Object.assign(Object.assign({},o),{headers:u}))})};var Wde=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(a,c)}u((r=r.apply(t,e||[])).next())})};function Gde(t){return t.endsWith("/")?t:t+"/"}function qde(t,e){var n,r;const{db:i,auth:s,realtime:o,global:a}=t,{db:c,auth:u,realtime:d,global:h}=e,f={db:Object.assign(Object.assign({},c),i),auth:Object.assign(Object.assign({},u),s),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},h),a),{headers:Object.assign(Object.assign({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>Wde(this,void 0,void 0,function*(){return""})};return t.accessToken?f.accessToken=t.accessToken:delete f.accessToken,f}const jV="2.71.1",rf=30*1e3,SM=3,IE=SM*rf,Yde="http://localhost:9999",Xde="supabase.auth.token",Kde={"X-Client-Info":`gotrue-js/${jV}`},EM="X-Supabase-Api-Version",NV={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Qde=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Zde=10*60*1e3;class tk extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function _t(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class Jde extends tk{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function ehe(t){return _t(t)&&t.name==="AuthApiError"}class kV extends tk{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class hu extends tk{constructor(e,n,r,i){super(e,r,i),this.name=n,this.status=r}}class Xl extends hu{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function the(t){return _t(t)&&t.name==="AuthSessionMissingError"}class Tx extends hu{constructor(){super("Auth session or user missing","AuthInvalidToken
409ResponseError",500,void 0)}}class Ax extends hu{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Cx extends hu{constructor(e,n=null){super(e,"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 nhe(t){return _t(t)&&t.name==="AuthImplicitGrantRedirectError"}class u5 extends hu{constructor(e,n=null){super(e,"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 TM extends hu{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function LE(t){return _t(t)&&t.name==="AuthRetryableFetchError"}class d5 extends hu{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class AM extends hu{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const n1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),h5=` 410\r=`.split(""),rhe=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<h5.length;e+=1)t[h5[e].charCodeAt(0)]=-2;for(let e=0;e<n1.length;e+=1)t[n1[e].charCodeAt(0)]=e;return t})();function f5(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(n1[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(n1[r]),e.queuedBits-=6}}function OV(t,e,n){const r=rhe[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function m5(t){const e=[],n=o=>{e.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{ohe(o,r,n)};for(let o=0;o<t.length;o+=1)OV(t.charCodeAt(o),i,s);return e.join("")}function ihe(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function she(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}ihe(r,e)}}function ohe(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function ahe(t){const e=[],n={queue:0,queuedBits:0},r=i=>{e.push(i)};for(let i=0;i<t.length;i+=1)OV(t.charCodeAt(i),n,r);return new Uint8Array(e)}function lhe(t){const e=[];return she(t,n=>e.push(n)),new Uint8Array(e)}function che(t){const e=[],n={queue:0,queuedBits:0},r=i=>{e.push(i)};return t.forEach(i=>f5(i,n,r)),f5(null,n,r),e.join("")}function uhe(t){return Math.round(Date.now()/1e3)+t}function dhe(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const Eo=()=>typeof window<"u"&&typeof document<"u",Eu={tested:!1,writable:!1},IV=()=>{if(!Eo())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Eu.tested)return Eu.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),Eu.tested=!0,Eu.writable=!0}catch{Eu.tested=!0,Eu.writable=!1}return Eu.writable};function hhe(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{e[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{e[i]=r}),e}const LV=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>dh(async()=>{const{default:r}=await Promise.resolve().then(()=>Sp);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},fhe=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",sf=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},Tu=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},zl=async(t,e)=>{await t.removeItem(e)};class xS{constructor(){this.promise=new xS.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}xS.promiseConstructor=Promise;function DE(t){const e=t.split(".");if(e.length!==3)throw new AM("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!Qde.test(e[r]))throw new AM("JWT not in base64url format");return{header:JSON.parse(m5(e[0])),payload:JSON.parse(m5(e[1])),signature:ahe(e[2]),raw:{header:e[0],payload:e[1]}}}async function mhe(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function phe(t,e){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await t(s);if(!e(s,null,o)){r(o);return}}catch(o){if(!e(s,o)){i(o);return}}})()})}function ghe(t){return("0"+t.toString(16)).substr(-2)}function vhe(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(e),Array.from(e,ghe).join("")}async function yhe(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",
410n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function xhe(t){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."),t;const n=await yhe(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Eh(t,e,n=!1){const r=vhe();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await sf(t,`${e}-code-verifier`,i);const s=await xhe(r);return[s,r===s?"plain":"s256"]}const bhe=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function whe(t){const e=t.headers.get(EM);if(!e||!e.match(bhe))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function _he(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function She(t){switch(t){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 Ehe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Th(t){if(!Ehe.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function FE(){const t={};return new Proxy(t,{get:(e,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:(e,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:(e,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 p5(t){return JSON.parse(JSON.stringify(t))}var The=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Uu=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),Ahe=[502,503,504];async function g5(t){var e;if(!fhe(t))throw new TM(Uu(t),0);if(Ahe.includes(t.status))throw new TM(Uu(t),t.status);let n;try{n=await t.json()}catch(s){throw new kV(Uu(s),s)}let r;const i=whe(t);if(i&&i.getTime()>=NV["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 d5(Uu(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new Xl}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((s,o)=>s&&typeof o=="string",!0))throw new d5(Uu(n),t.status,n.weak_password.reasons);throw new Jde(Uu(n),t.status||500,r)}const Che=(t,e,n,r)=>{const i={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function It(t,e,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[EM]||(s[EM]=NV["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const o=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await Mhe(t,e,n+a,{headers:s,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 Mhe(t,e,n,r,i,s){const o=Che(e,r,i,s);let a;try{a=await t(n,Object.assign({},o))}catch(c){throw console.error(c),new TM(Uu(c),0)}if(a.ok||await g5(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(c){await g5(c)}}function Ya(t){var e;let n=null;Nhe(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=uhe(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function v5(t){const e=Ya(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function oc(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function Rhe(t){return{data:t,error:null}}function Phe(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=t,o=The(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},c=Object.assign({},o);return{data:{properties:a,user:c},error:null}}function jhe(t){return t}function Nhe(t){return t.access_token&&t.refresh_token&&t.expires_in}const UE=["global","local","others"];var khe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};class Ohe{constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=LV(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e,n=UE[0]){if(UE.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${UE.join(", ")}`);try{return await It(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await It(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:oc})}catch(r){if(_t(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=khe(e,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await It(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:Phe,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(_t(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await It(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:oc})}catch(n){if(_t(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,i,s,o,a,c;try{const u={nextPage:null,lastPage:0,total:0},d=await It(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=e==null?void 0:e.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:jhe});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(v=>{const p=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),g=JSON.parse(v.split(";")[1].split("=")[1]);u[`${g}Page`]=p}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(_t(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){Th(e);try{return await It(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:oc})}catch(n){if(_t(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){Th(e);try{return await It(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:oc})}catch(r){if(_t(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){Th(e);
410try{return await It(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:oc})}catch(r){if(_t(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){Th(e.userId);try{const{data:n,error:r}=await It(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(_t(n))return{data:null,error:n};throw n}}async _deleteFactor(e){Th(e.userId),Th(e.id);try{return{data:await It(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}}}function y5(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}function Ihe(){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)}}const Ah={debug:!!(globalThis&&IV()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class DV extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class Lhe extends DV{}async function Dhe(t,e,n){Ah.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;return e>0&&setTimeout(()=>{r.abort(),Ah.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){Ah.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,i.name);try{return await n()}finally{Ah.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,i.name)}}else{if(e===0)throw Ah.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new Lhe(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Ah.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null," "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}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()}}))}Ihe();const Fhe={url:Yde,storageKey:Xde,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Kde,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function x5(t,e,n){return await n()}const Ch={};class dy{constructor(e){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=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,this.instanceID=dy.nextInstanceID,dy.nextInstanceID+=1,this.instanceID>0&&Eo()&&console.warn("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.");const i=Object.assign(Object.assign({},Fhe),e);if(this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new Ohe({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=LV(i.fetch),this.lock=i.lock||x5,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:Eo()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=Dhe:this.lock=x5,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)},this.persistSession?(i.storage?this.storage=i.storage:IV()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=y5(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=y5(this.memoryStorage)),Eo()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}get jwks(){var e,n;return(n=(e=Ch[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){Ch[this.storageKey]=Object.assign(Object.assign({},Ch[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=Ch[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Ch[this.storageKey]=Object.assign(Object.assign({},Ch[this.storageKey]),{cachedAt:e})}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${jV}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const n=hhe(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),Eo()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),nhe(s)){const c=(e=s.details)===null||e===void 0?void 0:e.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{error:s}}const{session:o,redirectType:a}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="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 _t(n)?{error:n}:{error:new kV("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,i;try{const s=await It(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=e==null?void 0:e.options)===null||i===void 0?void 0:i.captchaToken}},xform:Ya}),{data:o,error:a}=s;
410if(a||!o)return{data:{user:null,session:null},error:a};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(s){if(_t(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(e){var n,r,i;try{let s;if("email"in e){const{email:d,password:h,options:f}=e;let m=null,v=null;this.flowType==="pkce"&&([m,v]=await Eh(this.storage,this.storageKey)),s=await It(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:m,code_challenge_method:v},xform:Ya})}else if("phone"in e){const{phone:d,password:h,options:f}=e;s=await It(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Ya})}else throw new Ax("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
410if(a||!o)return{data:{user:null,session:null},error:a};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(s){if(_t(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(e){try{let n;if("email"in e){const{email:s,password:o,options:a}=e;n=await It(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:v5})}else if("phone"in e){const{phone:s,password:o,options:a}=e;n=await It(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:v5})}else throw new Ax("You must provide either an email or phone number and a password");const{data:r,error:i}=n;return i?{data:{user:null,session:null},error:i}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Tx}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(_t(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(e){var n,r,i,s;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=e.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=e.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;if(n==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(e){var n,r,i,s,o,a,c,u,d,h,f,m;let v,p;if("message"in e)v=e.message,p=e.signature;else{const{chain:g,wallet:y,statement:b,options:x}=e;let w;if(Eo())if(typeof y=="object")w=y;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))w=S.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 y!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=y}const _=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in w&&w.signIn){const S=await w.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x==null?void 0:x.signInWithSolana),{version:"1",domain:_.host,uri:_.href}),b?{statement:b}:null));let T;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")T=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)T=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)v=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),p=T.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in w)||typeof w.signMessage!="function"||!("publicKey"in w)||typeof w!="object"||!w.publicKey||!("toBase58"in w.publicKey)||typeof w.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");v=[`${_.host} wants you to sign in with your Solana account:`,w.publicKey.toBase58(),...b?["",b,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(i=(r=x==null?void 0:x.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=x==null?void 0:x.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((o=x==null?void 0:x.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((a=x==null?void 0:x.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((c=x==null?void 0:x.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((u=x==null?void 0:x.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((h=(d=x==null?void 0:x.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...x.signInWithSolana.resources.map(T=>`- ${T}`)]:[]].join(` 411`);const S=await w.signMessage(new TextEncoder().encode(v),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=S}}try{const{data:g,error:y}=await It(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:v,signature:che(p)},!((f=e.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(m=e.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:Ya});if(y)throw y;return!g||!g.session||!g.user?{data:{user:null,session:null},error:new Tx}:(g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),{data:Object.assign({},g),error:y})}catch(g){if(_t(g))return{data:{user:null,session:null},error:g};throw g}}async _exchangeCodeForSession(e){const n=await Tu(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{const{data:s,error:o}=await It(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:Ya});if(await zl(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new Tx}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(_t(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(e){try{const{options:n,provider:r,token:i,access_token:s,nonce:o}=e,a=await It(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Ya}),{data:c,error:u}=a;return u?{data:{user:null,session:null},error:u}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new Tx}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:u})}catch(n){if(_t(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(e){var n,r,i,s,o;try{if("email"in e){const{email:a,options:c}=e;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Eh(this.storage,this.storageKey));const{error:h}=await It(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,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{data:{user:null,session:null},error:h}}if("phone"in e){const{phone:a,options:c}=e,{data:u,error:d}=await It(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=c==null?void 0:c.data)!==null&&i!==void 0?i:{},create_user:(s=c==null?void 0:c.shouldCreateUser)!==null&&s!==void 0?s:!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{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d}}throw new Ax("You must provide either an email or phone number.")}catch(a){if(_t(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(e){var n,r;try{let i,s;"options"in e&&(i=(n=e.options)===null||n===void 0?void 0:n.redirectTo,s=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await It(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:Ya});if(a)throw a;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(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(i){if(_t(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithSSO(e){var n,r,i;try{let s=null,o=null;return this.flowType==="pkce"&&([s,o]=await Eh(this.storage,this.storageKey)),await It(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=e==null?void 0:e.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:o}),headers:this.headers,xform:Rhe})}catch(s){if(_t(s))return{data:null,error:s};throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new Xl;const{error:i}=await It(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:i}})}catch(e){if(_t(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:i,options:s}=e,{error:o}=await It(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in e){const{phone:r,type:i,options:s}=e,{data:o,error:a}=await It(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new Ax("You must provide either an email or phone number and a type")}catch(n){if(_t(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,e,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 i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.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(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(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 e=null;const n=await Tu(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
411id"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<IE:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const o=await Tu(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=FE()}if(this.storage.isServer&&e.user){let o=this.suppressGetSessionWarning;e=new Proxy(e,{get:(c,u,d)=>(!o&&u==="user"&&(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."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,u,d))})}return{data:{session:e},error:null}}const{session:i,error:s}=await this._callRefreshToken(e.refresh_token);return s?{data:{session:null},error:s}:{data:{session:i},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await It(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:oc}):await this._useSession(async n=>{var r,i,s;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Xl}:await It(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:oc})})}catch(n){if(_t(n))return the(n)&&(await this._removeSession(),await zl(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:i,error:s}=r;if(s)throw s;if(!i.session)throw new Xl;const o=i.session;let a=null,c=null;this.flowType==="pkce"&&e.email!=null&&([a,c]=await Eh(this.storage,this.storageKey));const{data:u,error:d}=await It(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:c}),jwt:o.access_token,xform:oc});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(r){if(_t(r))return{data:{user:null},error:r};throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Xl;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:o}=DE(e.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){const{session:a,error:c}=await this._callRefreshToken(e.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:c}=await this._getUser(e.access_token);if(c)throw c;s={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(n){if(_t(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:o,error:a}=n;if(a)throw a;e=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new Xl;const{session:i,error:s}=await this._callRefreshToken(e.refresh_token);return s?{data:{user:null,session:null},error:s}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(_t(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(e,n){try{if(!Eo())throw new Cx("No browser detected.");
411if(e.error||e.error_description||e.error_code)throw new Cx(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new u5("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Cx("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new u5("No code detected.");const{data:b,error:x}=await this._exchangeCodeForSession(e.code);if(x)throw x;const w=new URL(window.location.href);return w.searchParams.delete("code"),window.history.replaceState(window.history.state,"",w.toString()),{data:{session:b.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:a,expires_at:c,token_type:u}=e;if(!s||!a||!o||!u)throw new Cx("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(a);let f=d+h;c&&(f=parseInt(c));const m=f-d;m*1e3<=rf&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${h}s`);const v=f-h;d-v>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",v,f,d):d-v<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",v,f,d);const{data:p,error:g}=await this._getUser(s);if(g)throw g;const y={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:h,expires_at:f,refresh_token:o,token_type:u,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:e.type},error:null}}catch(r){if(_t(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await Tu(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return{error:s};const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,e);if(a&&!(ehe(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return e!=="others"&&(await this._removeSession(),await zl(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const n=dhe(),r={id:n,callback:e,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(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async n=>{var r,i;try{const{data:{session:s},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",e,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(e))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",s),console.error(s)}})}async resetPasswordForEmail(e,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await Eh(this.storage,this.storageKey,!0));try{return await It(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(_t(s))return{data:null,error:s};throw s}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}}async linkIdentity(e){var n;try{const{data:r,error:i}=await this._useSession(async s=>{var o,a,c,u,d;const{data:h,error:f}=s;if(f)throw f;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(c=e.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await It(this.fetch,"GET",m,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(i)throw i;return Eo()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:e.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(_t(r))return{data:{provider:e.provider,url:null},error:r};throw r}}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;
411if(o)throw o;return await It(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(_t(n))return{data:null,error:n};throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await phe(async i=>(i>0&&await mhe(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await It(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Ya})),(i,s)=>{const o=200*Math.pow(2,i);return s&&LE(s)&&Date.now()+o-r<rf})}catch(r){if(this._debug(n,"error",r),_t(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),Eo()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await Tu(this.storage,this.storageKey);if(i&&this.userStorage){let o=await Tu(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await sf(this.userStorage,this.storageKey+"-user",o)),i.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:FE()}else if(i&&!i.user&&!i.user){const o=await Tu(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await zl(this.storage,this.storageKey+"-user"),await sf(this.storage,this.storageKey,i)):i.user=FE()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<IE;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${IE}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),LE(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(i.access_token);!a&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):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",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var n,r;if(!e)throw new Xl;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new xS;const{data:s,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!s.session)throw new Xl;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={session:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),_t(s)){const o={session:null,error:s};return LE(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(e,n,r=!0){const i=`#_notifyAllSubscribers(${e})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,n)}catch(c){s.push(c)}});if(await Promise.all(o),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await sf(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=p5(i);await sf(this.storage,this.storageKey,s)}else{const i=p5(n);await sf(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),await zl(this.storage,this.storageKey),await zl(this.storage,this.storageKey+"-code-verifier"),await zl(this.storage,this.storageKey+"-user"),this.userStorage&&await zl(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Eo()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
411catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),rf);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}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 e=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 i=Math.floor((r.expires_at*1e3-e)/rf);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${rf}ms, refresh threshold is ${SM} ticks`),i<=SM&&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(e){if(e.isAcquireTimeout||e instanceof DV)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Eo()||!(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(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,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(e,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,o]=await Eh(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${i.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?{data:null,error:s}:await It(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(_t(n))return{data:null,error:n};throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:c,error:u}=await It(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(e.factorType==="totp"&&(!((i=c==null?void 0:c.totp)===null||i===void 0)&&i.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),{data:c,error:null})})}catch(n){if(_t(n))return{data:null,error:n};throw n}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return{data:null,error:s};const{data:o,error:a}=await It(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(n){if(_t(n))return{data:null,error:n};throw n}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?{data:null,error:s}:await It(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(_t(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?{data:null,error:r}:await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){const{data:{user:e},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(e==null?void 0:e.factors)||[],i=r.filter(o=>o.factor_type==="totp"&&o.status==="verified"),s=r.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:r,totp:i,phone:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var n,r;const{data:{session:i},error:s}=e;if(s)return{data:null,error:s};if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=DE(i.access_token);let a=null;o.aal&&(a=o.aal);let c=a;((r=(n=i.user.factors)===null||n===void 0?void 0:n.filter(h=>h.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(c="aal2");const d=o.amr||[];return{data:{currentLevel:a,nextLevel:c,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(a=>a.kid===e);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(a=>a.kid===e),r&&this.jwks_cached_at+Zde>i)return r;const{data:s,error:o}=await It(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(a=>a.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:m,error:v}
411=await this.getSession();if(v||!m.session)return{data:null,error:v};r=m.session.access_token}const{header:i,payload:s,signature:o,raw:{header:a,payload:c}}=DE(r);n!=null&&n.allowExpired||_he(s.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:m}=await this.getUser(r);if(m)throw m;return{data:{claims:s,header:i,signature:o},error:null}}const d=She(i.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,lhe(`${a}.${c}`)))throw new AM("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}}}dy.nextInstanceID=0;const Uhe=dy;class Bhe extends Uhe{constructor(e){super(e)}}var zhe=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):i(d.value).then(a,c)}u((r=r.apply(t,e||[])).next())})};class $he{constructor(e,n,r){var i,s,o;if(this.supabaseUrl=e,this.supabaseKey=n,!e)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const a=Gde(e),c=new URL(a);this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const u=`sb-${c.hostname.split(".")[0]}-auth-token`,d={db:Fde,realtime:Bde,auth:Object.assign(Object.assign({},Ude),{storageKey:u}),global:Dde},h=qde(r??{},d);this.storageKey=(i=h.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(s=h.global.headers)!==null&&s!==void 0?s:{},h.accessToken?(this.accessToken=h.accessToken,this.auth=new Proxy({},{get:(f,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=h.auth)!==null&&o!==void 0?o:{},this.headers,h.global.fetch),this.fetch=Vde(n,this._getAccessToken.bind(this),h.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},h.realtime)),this.rest=new ode(new URL("rest/v1",c).href,{headers:this.headers,schema:h.db.schema,fetch:this.fetch}),this.storage=new Ode(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),h.accessToken||this._listenForAuthEvents()}get functions(){return new Lue(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,n={},r={}){return this.rest.rpc(e,n,r)}channel(e,n={config:{}}){return this.realtime.channel(e,n)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,n;return zhe(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(e=r.session)===null||e===void 0?void 0:e.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:i,storageKey:s,flowType:o,lock:a,debug:c},u,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Bhe({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),u),storageKey:s,autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:i,flowType:o,lock:a,debug:c,fetch:d,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(e){return new wde(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(e,n,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:e==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const Hhe=(t,e,n)=>new $he(t,e,n);
411function Vhe(){if(typeof window<"u"||typeof process>"u"||process.version===void 0||process.version===null)return!1;const t=process.version.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}Vhe()&&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 Whe(){var g,y;if(typeof window>"u")return;const t=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(b=>t===b||t.endsWith("."+b)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",i=n?((g=t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:g[1])??((y=t.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:y[1]):void 0,s=window.parent&&window.parent!==window;if(!i||!s)return localStorage;const o=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),a=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&&a.test(c)?[c]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",h=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),m=(b,x,w)=>new Promise(_=>{const S=f();let T=!1,M;const A=j=>{T||(T=!0,clearTimeout(M),window.removeEventListener("message",C),_(j))},C=j=>{if(u.indexOf(j.origin)<0)return;const k=j.data;k&&k.type===d&&k.requestId===S&&A(k)};window.addEventListener("message",C);const R={type:b,requestId:S,projectId:i,key:x};w!==void 0&&(R.value=w);for(const j of u)window.parent.postMessage(R,j);M=setTimeout(()=>A(null),h)});let v=!0;const p=250;return{getItem:async b=>{let x=await m("lovable-preview-auth:get",b);return!x&&v&&(await new Promise(w=>setTimeout(w,p)),x=await m("lovable-preview-auth:get",b)),v=!1,x&&x.ok&&typeof x.value=="string"?x.value===""?(localStorage.removeItem(b),null):x.value:localStorage.getItem(b)},setItem:(b,x)=>(localStorage.setItem(b,x),m("lovable-preview-auth:set",b,x).then(w=>{w&&w.ok&&typeof w.value=="string"&&localStorage.getItem(b)===x&&(w.value===""?localStorage.removeItem(b):localStorage.setItem(b,w.value))})),removeItem:b=>(localStorage.removeItem(b),m("lovable-preview-auth:remove",b).then(()=>{}))}}const Ghe="https://tvhliqinpguaoxmdigpo.supabase.co",qhe="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InR2aGxpcWlucGd1YW94bWRpZ3BvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTQ0MDY3NDAsImV4cCI6MjA2OTk4Mjc0MH0.NOd4hWsv42yIFZoIzLFQkRBj7L0nO8Rv3PLNkMvE_vc",Yt=Hhe(Ghe,qhe,{auth:{storage:Whe(),persistSession:!0,autoRefreshToken:!0}}),Yhe=`0-mail.com 412027168.com 413062e.com 4140815.ru 4150815.su 4160845.ru 4170box.eu 4180cd.cn 4190clickemail.com 4200n0ff.net 4210nelce.com 4220rg.fr 4230v.ro 4240w.ro 4250wnd.net 4260wnd.org 4270x207.info 4281-8.biz 4291-second-mail.site 4301-tm.com 43110-minute-mail.com 4321000rebates.stream 433100likers.com 434105kg.ru 43510dk.email 43610inbox.online 43710mail.com 43810mail.org 43910mail.tk 44010mail.xyz 44110minemail.com 44210minmail.de 44310minut.com.pl 44410minut.xyz 44510minutemail.be 44610minutemail.cf 44710minutemail.co.uk 44810minutemail.co.za 44910minutemail.com 45010minutemail.de 45110minutemail.ga 45210minutemail.gq 45310minutemail.ml 45410minutemail.net 45510minutemail.nl 45610minutemail.pro 45710minutemail.us 45810minutemailbox.com 45910minutemails.in 46010minutenemail.de 46110minutenmail.xyz 46210minutesmail.com 46310minutesmail.fr 46410minutmail.pl 46510x9.com 46611163.com 467123-m.com 468123clone.com 46912hosting.net 47012houremail.com 47112minutemail.com 47212minutemail.net 47312storage.com 4741337.care 475140unichars.com 476147.cl 47714club.org.uk 47814n.co.uk 47915qm.com 480189.email 481191mariobet.com 4821blackmoon.com 4831ce.us 4841chuan.com 4851clck2.com 4861fsdfdsfsdf.tk 4871mail.ml 4881nom.org 4891pad.de 4901s.fr 4911sec.site 4921secmail.com 4931secmail.net 4941secmail.org 4951secmail.space 4961secmail.website 4971st-forms.com 4981sworld.com 4991to1mail.org 5001trick.net 5011usemail.com 5021webmail.info 5031xp.fr 5041zhuan.com 5052012-2016.ru 50620email.eu 50720email.it 50820mail.eu 50920mail.in 51020mail.it 51120minutemail.com 51220minutemail.it 51320minutesmail.com 51420mm.eu 5152120001.net 51621cn.com 5172200freefonts.com 518247web.net 51924hinbox.com 52024hourmail.com 52124hourmail.net 52225u.com 5232anom.com 5242chmail.net 5252ether.net 5262fdgdfgdfgdf.tk 5272odem.com 5282prong.com 5292wc.info 530300book.info 53130mail.ir 53230minutemail.com 53330wave.com 5343202.com 53536ru.com 5363a88.dev 5373d-painting.com 5383fdn.com 5393l6.com 5403littlemiracles.com 5413mail.ga 5423trtretgfrfe.tk 5434-n.us 5444057.com 545418.dk 54642o.org 54742web.io 54848dz.com 54948hr.email 5504gfdsgfdgfd.tk 5514k5.net 5524mail.cf
5534mail.ga 5544nextmail.com 5554nmv.ru 5564pu.com 5574tb.host 5584warding.com 5594warding.net 5604warding.org 56150set.ru 56255hosting.net 5635ghgfhfghfgh.tk 5645gramos.com 5655july.org 5665mail.cf 5675mail.ga 5685minutemail.net 5695oz.ru 5705semail.com 5715tb.in 5725x25.com 5735ymail.com 57460minutemail.com 575672643.net 576675hosting.com 577675hosting.net 578675hosting.org 5796hjgjhgkilkj.tk 5806ip.us 5816mail.cf 5826mail.ga 5836mail.ml 5846n9.net 5856paq.com 5866somok.ru 5876url.com 58875hosting.com 58975hosting.net 59075hosting.org 5917days-printing.com 5927mail.ga 5937mail.ml 5947tags.com 59580665.com 5968127ep.com 5978mail.cf 5988mail.ga 5998mail.ml 60099.com 60199cows.com 60299experts.com 6039mail.cf 6049me.site 6059mot.ru 6069ox.net 6079q.ro 608a-bc.net 609a-germandu.de 610a45.in 611a7996.com 612aa5zy64.com 613aakk.link 614aakkmail.com 615aaqwe.ru 616aaqwe.store 617aard.org.uk 618abacuswe.us 619abakiss.com 620abatido.com 621abcmail.email 622abevw.com 623abilitywe.us 624abouse.space 625abovewe.us 626absolutewe.us 627abundantwe.us 628abusemail.de 629abuser.eu 630abyssmail.com 631ac20mail.in 632academiccommunity.com 633academywe.us 634acceleratewe.us 635accentwe.us 636acceptwe.us 637acclaimwe.us 638accordwe.us 639accreditedwe.us 640acedby.com 641achievementwe.us 642achievewe.us 643acornwe.us 644acrossgracealley.com 645acrylicwe.us 646activatewe.us 647activitywe.us 648acucre.com 649acuitywe.us 650acumenwe.us 651adaptivewe.us 652adaptwe.us 653add3000.pp.ua 654addictingtrailers.com 655addmails.com 656addrin.uk 657adeptwe.us 658adfskj.com 659adios.email 660adiq.eu 661aditus.info 662admiralwe.us 663adn3t.com 664ado888.biz 665adobeccepdm.com 666adoniswe.us 667adpugh.org 668adroh.com 669adsd.org 670adubiz.info 671adult-work.info 672advantagewe.us 673advantimo.com 674adventurewe.us 675adventwe.us 676advisorwe.us 677advitise.com 678advocatewe.us 679adwaterandstir.com 680aegde.com 681aegia.net 682aegiscorp.net 683aegiswe.us 684aelo.es 685aeonpsi.com 686afarek.com 687afeeyah.store 688affecting.org 689affiliate-nebenjob.info 690affiliatedwe.us 691affilikingz.de 692affinitywe.us 693affluentwe.us 694affordablewe.us 695afia.pro 696afrobacon.com 697aftercorporation.com 698afterhourswe.us 699afternea.sbs 700agedmail.com 701agendawe.us 702agger.ro 703agilewe.us 704agiuse.com 705agorawe.us 706agtx.net 707aheadwe.us 708ahem.email 709ahk.jp 710ahmedkhlef.com 711ahvin.com 712ailicke.com 713air2token.com 714airmailbox.website 715aiworldx.com 716aixnv.com 717ajaxapp.net 718akapost.com 719akerd.com 720akgq701.com 721akirapowered.com 722akmail.in 723akugu.com 724al-qaeda.us 725albill.com 726albionwe.us 727alchemywe.us 728aleh.de 729alfaceti.com 730aliaswe.us 731alienware13.com 732aligamel.com 733aligroup.uk 734alilot.com 735alina-schiesser.ch 736alisaol.com 737alisongamel.com 738alisree.com 739alivance.com 740alivewe.us 741all-cats.ru 742allaccesswe.us 743allamericanwe.us 744allaroundwe.us 745alldirectbuy.com 746allegiancewe.us 747allegrowe.us 748allemojikeyboard.com 749allfreemail.net 750allgoodwe.us 751alliancewe.us 752allinonewe.us 753allofthem.net 754alloutwe.us 755allowed.org 756alloywe.us 757allprowe.us 758allreview4u.com 759allseasonswe.us 760allstarwe.us 761allthegoodnamesaretaken.org 762allumhall.co.uk 763allurewe.us 764allwebemails.com 765almatips.com 766almiswelfare.org 767almondwe.us 768alosp.com 769alph.wtf 770alpha-web.net 771alphaomegawe.us 772alpinewe.us 773alreval.com 774altairwe.us 775altitudewe.us 776altmails.com 777altuswe.us 778aluimport.com 779ama-trade.de 780ama-trans.de 781amadeuswe.us 782amail.club 783amail.com 784amail1.com 785amail4.me 786amazingly.online 787amazon-aws.org 788amberwe.us 789ambiancewe.us 790ambitiouswe.us 791amelabs.com 792americanawe.us 793americasbestwe.us 794americaswe.us 795amex409.monster 796amicuswe.us 797amilegit.com 798aminating.com 799amiri.net 800amiriindustries.com 801amplewe.us 802amplifiedwe.us 803amplifywe.us 804ampsylike.com 805analogwe.us 806analysiswe.us 807analyticalwe.us 808analyticswe.us 809analyticwe.us 810anappfor.com 811anappthat.com 812anarac.com 813andreihusanu.ro 814andthen.us 815animesos.com 816aniross.com 817anit.ro 818ano-mail.net 819anon-mail.de 820anonbox.net 821anonmail.top 822anonmails.de 823anonymail.dk 824anonymbox.com 825anonymized.org 826anonymousness.com 827anotherdomaincyka.tk 828anquandx.com 829ansibleemail.com 830anthony-junkmail.com 831antireg.com 832antireg.ru 833antispam.de 834antispam24.de 835antispammail.de 836any.pink 837anyalias.com 838anypng.com 839aoeuhtns.com 840apfelkorps.de 841aphlog.com 842apkmd.com 843apocaw.com 844appc.se 845appinventor.nl 846appixie.com 847appmail.uk 848apps.dj 849appzily.com 850aprte.com 851arcadein.com 852arduino.hk 853arenahiveai.com 854ares.edu.pl 855ariaz.jetzt 856armyspy.com 857aron.us 858arroisijewellery.com 859art-en-ligne.pro 860artman-conception.com 861arur01.tk 862arurgitu.gq 863arvato-community.de 864arxxwalls.com 865asaption.com 866aschenbrandt.net 867asciibinder.net 868asdasd.nl 869asdasd.ru 870ashleyandrew.com 871asimarif.com 872ask-mail.com 873asorent.com 874ass.pp.ua 875asso.st 876assurmail.net 877astonut.tk 878astroempires.info 879asu.mx 880asu.su 881at.hm 882at0mik.org 883atnextmail.com 884attnetwork.com 885aubady.com 886augmentationtechnology.com 887ausgefallen.info 888auth2fa.com 889auti.st 890autorobotica.com 891autosouvenir39.ru 892autotwollow.com 893autowb.com 894averdov.com 895avia-tonic.fr 896avls.pt 897avtolev.com 898awa.pics 899awatum.de 900awdrt.org 901awesome47.com 902awgarstone.com 903awiki.org 904awsoo.com 905axiz.org 906axon7zte.com 907axsup.net 908ayakamail.cf 909azame.pw 910azazazatashkent.tk 911azcomputerworks.com 912azmeil.tk 913azulejoslowcost.es 914azuretechtalk.net 915azzancoffee.com 916b1of96u.com 917b2bx.net 918b2cmail.de 919b7s.ru 920backilnge.com 921bacteroidmail.com 922badgerland.eu 923badoop.com 924badopsec.lol 925badpotato.tk 926balaket.com 927balawo.com 928bangban.uk 929banhang14.com 930banit.club 931banit.me 932bank-opros1.ru 933bareed.ws 934barooko.com 935barryogorman.com 936bartdevos.be 937basscode.org 938bauwerke-online.com 939baybabes.com 940bazaaboom.com 941bbbbyyzz.info 942bbhost.us 943bbitf.com 944bbitj.com 945bbitq.com 946bcaoo.com 947bcast.ws 948bcb.ro 949bccto.me 950bcm.edu.pl 951bcooq.com 952bdgstr.com 953bdm.ovh 954bdmuzic.pw 955bdshar.com 956beaconmessenger.com 957bearsarefuzzy.com 958beastmail.space 959beddly.com 960beefmilk.com 961begemail.com 962belamail.org 963belgianairways.com 964belljonestax.com 965beluckygame.com 966benipaula.org 967benphim.com 968benphim.net 969bepureme.com 970beribase.ru 971beribaza.ru 972berirabotay.ru 973berwie.com 974best-hosting.biz 975best-john-boats.com 976best-temp-mail.com 977best-vpn.xyz 978bestchoiceusedcar.com 979bestlistbase.com 980bestoption25.club 981bestparadize.com
982bestsoundeffects.com 983besttempmail.com 984beta.edu.pl 985betr.co 986bflcafe.com 987bgtmail.com 988bgx.ro 989bheps.com 990bhuxp.org 991bidourlnks.com 992big1.us 993bigprofessor.so 994bigstring.com 995bigwhoop.co.za 996bij.pl 997bin-ich.com 998binafex.com 999binbx.net 1000binech.com 1001binich.com 1002binka.me 1003binkmail.com 1004binnary.com 1005bio-muesli.info 1006bio-muesli.net 1007biojuris.com 1008bione.co 1009bitmens.com 1010bitwhites.top 1011bitymails.us 1012biz.st 1013blackgoldagency.ru 1014blackmarket.to 1015bladesmail.net 1016blenched.com 1017blenro.com 1018blip.ch 1019blip.ovh 1020blnkt.net 1021block521.com 1022blogmyway.org 1023blogos.net 1024blogspam.ro 1025blondemorkin.com 1026blondmail.com 1027bltiwd.com 1028bluedumpling.info 1029bluewerks.com 1030bnote.com 1031boatmail.us 1032bobgf.ru 1033bobgf.store 1034bobmail.info 1035bobmurchison.com 1036boerakemail.com 1037bofthew.com 1038bomnet.net 1039bonobo.email 1040boofx.com 1041bookthemmore.com 1042boostme.es 1043bootssl.com 1044bootybay.de 1045boranora.com 1046bored.lol 1047borged.com 1048borged.net 1049borged.org 1050bot.nu 1051botgetlink.com 1052botgetlink.net 1053boun.cr 1054bouncr.com 1055box-mail.ru 1056box-mail.store 1057boxem.ru 1058boxem.store 1059boxfi.uk 1060boxformail.in 1061boximail.com 1062boxlet.ru 1063boxlet.store 1064boxmach.com 1065boxmail.lol 1066boxomail.live 1067boxtemp.com.br 1068boyaga.com 1069bptfp.net 1070brand-app.biz 1071brandallday.net 1072brashbeat.online 1073brasx.org 1074breakthru.com 1075brefmail.com 1076brennendesreich.de 1077briefalpha.org 1078briggsmarcus.com 1079broadbandninja.com 1080bskyx.fun 1081bsnow.net 1082bspamfree.org 1083bspooky.com 1084bst-72.com 1085btb-notes.com 1086btc.email 1087btcmail.pw 1088btcmod.com 1089btizet.pl 1090btsblock.com 1091buccalmassage.ru 1092budaya-tionghoa.com 1093budayationghoa.com 1094buffemail.com 1095bugfoo.com 1096bugmenever.com 1097bugmenot.com 1098bukhariansiddur.com 1099bulrushpress.com 1100bum.net 1101bumpymail.com 1102bunchofidiots.com 1103bund.us 1104bundes-li.ga 1105bunsenhoneydew.com 1106burangir.com 1107burnthespam.info 1108burstmail.info 1109business-degree.live 1110businessbackend.com 1111businesssuccessislifesuccess.com 1112buspad.org 1113bussitussi.com 1114buy-blog.com 1115buymoreplays.com 1116buyordie.info 1117buyusdomain.com 1118buyusedlibrarybooks.org 1119buzzcluby.com 1120bwmyga.com 1121byagu.com 1122byebyemail.com 1123byespm.com 1124byom.de 1125bytedigi.com 1126c1ph3r.xyz 1127c4.fr 1128c4pro.uk 1129c51vsgq.com 1130caainpt.com 1131cachedot.net 1132cade.org.uk 1133cafesui.com 1134caftee.com 1135californiafitnessdeals.com 1136cam4you.cc 1137camera47.net 1138cameraity.com 1139camping-grill.info 1140cancer-treatment.xyz 1141candassociates.com 1142candymail.de 1143cane.pw 1144canfga.org 1145cantozil.com 1146canvect.com 1147capitalistdilemma.com 1148captus.cyou 1149car101.pro 1150carbtc.net 1151carpin.org 1152cars2.club 1153carsencyclopedia.com 1154cartelera.org 1155caseedu.tk 1156cashflow35.co 1157cashflow35.com 1158casualdx.com 1159catgroup.uk 1160cavi.mx 1161caye.org.uk 1162cazlg.com 1163cbair.com 1164cbes.net 1165cbty.ru 1166cbty.store 1167ccmail.uk 1168ccqu.top 1169cctoolz.com 1170cdfaq.com 1171cdnripple.com 1172cdpa.cc 1173ceed.se 1174cek.pm 1175cellurl.com 1176cengrop.com 1177centermail.com 1178centermail.net 1179certificenter.com 1180certve.com 1181cetpass.com 1182cfo2go.ro 1183cggup.com 1184ch.ma 1185chacuo.net 1186chahcyrans.com 1187chaichuang.com 1188chaineor.com 1189chalupaurybnicku.cz 1190chamconnho.com 1191chammy.info 1192chansd.com 1193chaocosen.com 1194chapsmail.com 1195chasefreedomactivate.com 1196chatgptuk.pp.ua 1197chatich.com 1198chatworkstation.com 1199chaublog.com 1200cheaphub.net 1201cheatmail.de 1202chefalicious.com 1203chenbot.email 1204chessgameland.com 1205chessgamingworld.com 1206chewydonut.com 1207chibakenma.ml 1208chickenkiller.com 1209chielo.com 1210childsavetrust.org 1211chilkat.com 1212chinamkm.com 1213chingchongme.site 1214chithinh.com 1215chitthi.in 1216choco.la 1217chogmail.com 1218choicemail1.com 1219choigi.com 1220chong-mail.com 1221chong-mail.net 1222chong-mail.org 1223chophim.com 1224chosenx.com 1225chumpstakingdumps.com 1226cigar-auctions.com 1227citmo.net 1228civikli.com 1229civx.org 1230ckaazaza.tk 1231cketrust.org 1232ckiso.com 1233ckvn.edu.vn 1234cl-cl.org 1235cl0ne.net 1236claimab.com 1237clandest.in 1238classesmail.com 1239claudd.com 1240clearwatermail.info 1241click-email.com 1242clickdeal.co 1243clipmail.eu 1244clixser.com 1245clockemail.com 1246cloneemail.com 1247clonemailsieure.com 1248clonemoi.tk 1249clonetrust.com 1250cloud-mail.top 1251cloudflare.gay 1252cloudsign.in 1253clout.wiki 1254clowmail.com 1255clrmail.com 1256club106.org.uk 1257cmail.club 1258cmail.com 1259cmail.net 1260cmail.org 1261cmdkl.com 1262cmhvzylmfc.com 1263cnamed.com 1264cndps.com 1265cneemail.com 1266cnew.ir 1267cnieux.com 1268cnmsg.net 1269cnsds.de 1270co.cc 1271coasah.com 1272cobarekyo1.ml 1273cocoro.uk 1274cocovpn.com 1275codeandscotch.com 1276codeguard.net 1277coderdir.com 1278codestar.site 1279codivide.com 1280coffeeazzan.com 1281coffeetimer24.com 1282coieo.com 1283coin-host.net 1284coinlink.club 1285cok.org.uk 1286colabeta.com 1287colaname.com 1288coldemail.info 1289collegewh.edu.pl 1290colorcastmail.com 1291compareshippingrates.org 1292completegolfswing.com 1293comwest.de 1294comyze.org 1295concu.net 1296conf.work 1297confmin.com 1298connho.net 1299consumerriot.com 1300contbay.com 1301cood.food 1302cooh-2.site 1303coolandwacky.us 1304coolimpool.org 1305copyhome.win 1306coreclip.com 1307corhash.net 1308cosmorph.com 1309cosoinan.com 1310cotasen.com 1311cotigz.com 1312courrieltemporaire.com 1313coza.ro 1314cpc.cx 1315crankhole.com 1316crapmail.org 1317crastination.de
1318crazespaces.pw 1319crazymailing.com 1320cream.pink 1321credit-loans.xyz 1322crepeau12.com 1323cringemonster.com 1324cross-law.ga 1325cross-law.gq 1326cross.edu.pl 1327crossmailjet.com 1328crossroadsmail.com 1329crunchcompass.com 1330crusthost.com 1331cryptogmail.com 1332cs.email 1333csh.ro 1334cspaus.com 1335cszbl.com 1336ctmailing.us 1337ctos.ch 1338cu.cc 1339cubene.com 1340cubiclink.com 1341cuendita.com 1342cuirushi.org 1343cuoly.com 1344cupbest.com 1345curlhph.tk 1346currentmail.com 1347curryworld.de 1348cust.in 1349cutefrogs.xyz 1350cutout.club 1351cutradition.com 1352cutsup.com 1353cuvox.de 1354cwetg.co.uk 1355cxwet.com 1356cyber-innovation.club 1357cyber-phone.eu 1358cycinst.com 1359cyclelove.cc 1360cylab.org 1361cypi.fr 1362d1yun.com 1363d3p.dk 1364daabox.com 1365dab.ro 1366dacoolest.com 1367daemsteam.com 1368daibond.info 1369daily-email.com 1370daintly.com 1371dakaka.org 1372damai.webcam 1373dammexe.net 1374damnthespam.com 1375dandikmail.com 1376dann.mywire.org 1377dao.pp.ua 1378daouse.com 1379darkharvestfilms.com 1380daryxfox.net 1381dasdasdascyka.tk 1382dash-pads.com 1383dataarca.com 1384datadudi.com 1385datarca.com 1386datazo.ca 1387datenschutz.ru 1388datum2.com 1389davidkoh.net 1390davidlcreative.com 1391dawin.com 1392daymail.life 1393daymailonline.com 1394dayrep.com 1395dbmail.one 1396dboso.com 1397dbunker.com 1398dcctb.com 1399dcemail.com 1400dcpa.net 1401ddcrew.com 1402de-a.org 1403dea-21olympic.com 1404deadaddress.com 1405deadchildren.org 1406deadfake.cf 1407deadfake.ga 1408deadfake.ml 1409deadfake.tk 1410deadspam.com 1411deagot.com 1412dealja.com 1413deallabs.org 1414dealrek.com 1415decep.com 1416decodewp.com 1417deekayen.us 1418deenur.com 1419deepconverts.com 1420deepmaster.fun 1421defomail.com 1422degradedfun.net 1423deinbox.com 1424delaeb.com 1425delayload.com 1426delayload.net 1427delikkt.de 1428delivrmail.com 1429delorex.com 1430deluxmail.com 1431demen.ml 1432dengekibunko.ga 1433dengekibunko.gq 1434dengekibunko.ml 1435deornaumail.com 1436der-kombi.de 1437derkombi.de 1438derluxuswagen.de 1439desertsundesigns.com 1440desoz.com 1441despam.it 1442despammed.com 1443dev-null.cf 1444dev-null.ga 1445dev-null.gq 1446dev-null.ml 1447devbike.com 1448developermail.com 1449devnullmail.com 1450deyom.com 1451dharmatel.net 1452dhm.ro 1453dhnow.com 1454dhy.cc 1455dialogus.com 1456diapaulpainting.com 1457dicopto.com 1458diemhenvn.com 1459digdig.org 1460digi-value.fr 1461diginey.com 1462digital-message.com 1463digitalesbusiness.info 1464digitalmail.info 1465digitalmariachis.com 1466digitalsanctuary.com 1467dildosfromspace.com 1468dim-coin.com 1469dingbone.com 1470diolang.com 1471directmail24.net 1472dis.hopto.org 1473disaq.com 1474disbox.net 1475disbox.org 1476discard.cf 1477discard.email 1478discard.ga 1479discard.gq 1480discard.ml 1481discard.tk 1482discardmail.com 1483discardmail.de 1484discos4.com 1485dishcatfish.com 1486disign-concept.eu 1487disign-revelation.com 1488dispo.in 1489dispomail.eu 1490disposable-e.ml 1491disposable-email.ml 1492disposable.cf 1493disposable.ga 1494disposable.ml 1495disposable.site 1496disposableaddress.com 1497disposableemailaddresses.com 1498disposableinbox.com 1499disposablemails.com 1500dispose.it 1501disposeamail.com 1502disposely.xyz 1503disposemail.com 1504disposemymail.com 1505disposly.com 1506dispostable.com 1507divad.ga 1508divermail.com 1509divismail.ru 1510diwaq.com 1511dizigg.com 1512dldweb.info 1513dlemail.ru 1514dmarc.ro 1515dmxs8.com 1516dndent.com 1517dnses.ro 1518doanart.com 1519dob.jp 1520dodgeit.com 1521dodgemail.de 1522dodgit.com 1523dodgit.org 1524dodsi.com 1525dogclothing.org 1526doiea.com 1527doj.one 1528dolphinnet.net 1529domforfb1.tk 1530domforfb18.tk 1531domforfb19.tk 1532domforfb2.tk 1533domforfb23.tk 1534domforfb27.tk 1535domforfb29.tk 1536domforfb3.tk 1537domforfb4.tk 1538domforfb5.tk 1539domforfb6.tk 1540domforfb7.tk 1541domforfb8.tk 1542domforfb9.tk 1543domozmail.com 1544don.edu.pl 1545dona.one 1546dona.pw 1547dona.rip 1548donebyngle.com 1549donemail.ru 1550dongqing365.com 1551dontreg.com 1552dontsendmespam.de 1553doobb.com 1554doojazz.com 1555doquier.tk 1556dotapodemail.com 1557dotman.de 1558dotmsg.com 1559dotslashrage.com 1560dotvu.net 1561dotzi.net 1562doublemail.de 1563douchelounge.com 1564doulas.org 1565dozvon-spb.ru 1566dp76.com 1567dpmurt.my 1568dpptd.com 1569dr69.site 1570drdrb.com 1571drdrb.net 1572dreamclarify.org 1573dred.ru 1574drevo.si 1575drewzen.com 1576driftz.net 1577dripzgaming.com 1578drivetagdev.com 1579drivz.net 1580drmail.in 1581droolingfanboy.de 1582dropcake.de 1583dropinboxes.com 1584dropjar.com 1585droplar.com 1586dropmail.me 1587dropsin.net 1588drowblock.com 1589drugsellers.com 1590druzik.pp.ua 1591dsgvo.party 1592dsgvo.ru 1593dshfjdafd.cloud 1594dsiay.com 1595dsitip.com 1596dspwebservices.com 1597duam.net 1598duck2.club 1599dudmail.com 1600dugmail.com 1601duk33.com 1602dukedish.com 1603dumalu.com 1604dump-email.info 1605dumpandjunk.com 1606dumpmail.de 1607dumpyemail.com 1608dunkos.xyz 1609durandinterstellar.com 1610duskmail.com 1611dusrui.com 1612dv2.host 1613dvdpit.com 1614dwse.edu.pl 1615dyceroprojects.com 1616dygovil.com 1617dz17.net 1618e-mail.com 1619e-mail.org 1620e-marketstore.ru 1621e-pool.co.uk 1622e-pool.uk 1623e-record.com 1624e-tomarigi.com 1625e3z.de 1626e4ward.com 1627eanok.com 1628eartin.net 1629ease.es 1630easy-trash-mail.com 1631easyhomefit.com 1632easymailer.live 1633easymails.cc 1634easynetwork.info 1635easytrashmail.com 1636eatmea2z.club 1637eay.jp 1638ebbob.com 1639ebeschlussbuch.de 1640ecallheandi.com 1641ecolo-online.fr 1642ecstor.com 1643edgex.ru 1644edinburgh-airporthotels.com 1645edmondventures.com 1646edny.net 1647edumail.edu.pl 1648edumail.edu.rs 1649edupolska.edu.pl 1650edv.to 1651ee1.pl 1652ee2.pl 1653eeedv.de 1654eelmail.com 1655effobe.com 1656efxs.ca 1657eggur.com 1658egirl.help 1659egvoo.com 1660egzones.com 1661einmalmail.de 1662einrot.com 1663einrot.de 1664eintagsmail.de 1665eiveg.com 1666elearningjournal.org 1667electro.mn 1668elerso.com 1669eligou.store 1670elitevipatlantamodels.com 1671elki-mkzn.ru 1672elobits.com 1673elygifts.com 1674email-68.com 1675email-fake.cf 1676email-fake.com 1677email-fake.ga 1678email-fake.gq 1679email-fake.ml 1680email-fake.tk 1681email-free.online 1682email-jetable.fr 1683email-lab.com 1684email-temp.com 1685email.edu.pl 1686email.net 1687email1.pro 1688email10p.org 1689email60.com 1690email84.com 1691emailabox.pro 1692emailage.cf 1693emailage.ga 1694emailage.gq 1695emailage.ml 1696emailage.tk 1697emailaoa.pro 1698emailate.com 1699emailawb.pro 1700emailbbox.pro 1701emailbin.net 1702emailcbox.pro 1703emailcu.icu 1704emaildbox.pro 1705emaildienst.de 1706emaildrop.io 1707emailfake.com 1708emailfake.ml 1709emailforyou.info 1710emailfoxi.pro 1711emailfreedom.ml 1712emailgen.uk 1713emailgenerator.de 1714emailgo.de 1715emailias.com 1716emailigo.de 1717emailinfive.com
1718emailisvalid.com 1719emaillime.com 1720emailmiser.com 1721emailna.co 1722emailnator.com 1723emailnax.com 1724emailnow.net 1725emailnow.one 1726emailo.pro 1727emailondeck.com 1728emailportal.info 1729emailproxsy.com 1730emailresort.com 1731emailrod.com 1732emails.ga 1733emailsecurer.com 1734emailsensei.com 1735emailsingularity.net 1736emailspam.cf 1737emailspam.ga 1738emailspam.gq 1739emailspam.ml 1740emailspam.tk 1741emailsy.info 1742emailtech.info 1743emailtemporanea.com 1744emailtemporanea.net 1745emailtemporar.ro 1746emailtemporario.com.br 1747emailthe.net 1748emailtmp.com 1749emailto.de 1750emailure.net 1751emailvb.pro 1752emailwarden.com 1753emailwww.pro 1754emailxfer.com 1755emaily.pro 1756emailz.cf 1757emailz.ga 1758emailz.gq 1759emailz.ml 1760embekhoe.com 1761emeil.in 1762emeil.ir 1763emeraldwebmail.com 1764emergencymail.site 1765emergentvillage.org 1766emkei.cf 1767emkei.ga 1768emkei.gq 1769emkei.ml 1770emkei.tk 1771eml.pp.ua 1772emlhot.com 1773emlhub.com 1774emlpro.com 1775emltmp.com 1776emocan.name.tr 1777empireanime.ga 1778emstjzh.com 1779emz.net 1780enayu.com 1781end.tw 1782endob.com 1783enotj.com 1784enterto.com 1785envy17.com 1786eoffice.top 1787eoopy.com 1788eosada.com 1789eoslux.com 1790eoutrbl.com 1791ep77.com 1792epb.ro 1793epbox.ru 1794epbox.store 1795ephemail.net 1796ephemeral.email 1797eposta.buzz 1798eposta.work 1799epostal.ru 1800epostal.store 1801eqiluxspam.ga 1802ereplyzy.com 1803ericjohnson.ml 1804eripo.net 1805ero-tube.org 1806erth.nl 1807esadverse.com 1808esbano-ru.ru 1809esc.la 1810escapehatchapp.com 1811esemay.com 1812esgeneri.com 1813esiix.com 1814esprity.com 1815estate-invest.fr 1816esterace.com 1817etempmail.net 1818etenx.com 1819eth2btc.info 1820ether123.net 1821ethereum1.top 1822ethersports.org 1823ethersportz.info 1824etotvibor.ru 1825etramay.com 1826etranquil.com 1827etranquil.net 1828etranquil.org 1829etubemail.com 1830euaqa.com 1831euleina.com 1832eurokool.com 1833euucn.com 1834evanfox.info 1835eveav.com 1836evilcomputer.com 1837evnft.com 1838evopo.com 1839evusd.com 1840evvgo.com 1841evyush.com 1842ewebrus.com 1843examstudy.xyz 1844exbts.com 1845exclussi.com 1846exdonuts.com 1847exelica.com 1848existiert.net 1849exitbit.com 1850exitstageleft.net 1851exmab.com 1852expiredtoaster.org 1853explodemail.com 1854express.net.ua 1855extracurricularsociety.com 1856extremail.ru 1857exweme.com 1858eyepaste.com 1859eynlong.com 1860ez.lv 1861ezehe.com 1862ezfill.com 1863ezonemail.com 1864ezstest.com 1865ezua.com 1866ezztt.com 1867f4k.es 1868facebook-email.cf 1869facebook-email.ga 1870facebook-email.ml 1871facebookmail.gq 1872facebookmail.ml 1873facemac.website 1874fackme.gq 1875fadingemail.com 1876faecesmail.me 1877fag.wf 1878failbone.com 1879faithkills.com 1880fake-box.com 1881fake-email.pp.ua 1882fake-mail.cf 1883fake-mail.ga 1884fake-mail.ml 1885fakedemail.com 1886fakeinbox.cf 1887fakeinbox.com 1888fakeinbox.ga 1889fakeinbox.info 1890fakeinbox.ml 1891fakeinbox.tk 1892fakeinformation.com 1893fakemail.fr 1894fakemail.io 1895fakemail.net 1896fakemailgenerator.com 1897fakemailz.com 1898fallinhay.com 1899famamail.com 1900fammix.com 1901fanclub.pm 1902fandoe.com 1903fangoh.com 1904fanicle.com 1905fansworldwide.de 1906fantastu.com 1907fantasymail.de 1908farah.rip 1909farrse.co.uk 1910fasssd.ru 1911fasssd.store 1912fast-email.info 1913fast-mail.fr 1914fastacura.com 1915fastchevy.com 1916fastchrysler.com 1917fasternet.biz 1918fastestflex.com 1919fastkawasaki.com 1920fastmail.edu.pl 1921fastmazda.com 1922fastmitsubishi.com 1923fastnissan.com 1924fastsearcher.com 1925fastsubaru.com 1926fastsuzuki.com 1927fasttoyota.com 1928fastyamaha.com 1929fatflap.com 1930faxico.com 1931fbi.one 1932fbma.tk 1933fddns.ml 1934fdfdsfds.com 1935featcore.com 1936femailtor.com 1937fer-gabon.org 1938ferdomnermail.com 1939fermaxxi.ru 1940feroxid.com 1941fettometern.com 1942fexbox.org 1943fexbox.ru 1944fexpost.com 1945fextemp.com 1946fft.edu.do 1947fibmail.com 1948ficken.de 1949fictionsite.com 1950fightallspam.com 1951figjs.com 1952figshot.com 1953figurescoin.com 1954fiifke.de 1955filbert4u.com 1956filberts4u.com 1957file2drive.com 1958filetodrive.com 1959film-blog.biz 1960filmla.org 1961filzmail.com 1962finacenter.com 1963findemail.info 1964findu.pl 1965finews.biz 1966fingso.com 1967fir.hk 1968fira.my 1969firemailbox.club 1970fitnesrezink.ru 1971fivemail.de 1972fivermail.com 1973fixmail.tk 1974fizmail.com 1975fkainc.com 1976flaimenet.ir 1977fleckens.hu 1978flemail.ru 1979flexvio.com 1980fliegender.fish 1981flock84.uk 1982flowu.com 1983flu.cc 1984fluidsoft.us 1985flurred.com 1986fly-ts.de 1987flyinggeek.net 1988flymail.tk 1989flyspam.com 1990flyzy.net 1991fncp.ru 1992fncp.store 1993fog.one 1994foobarbot.net 1995footard.com 1996foreastate.com 1997forecastertests.com 1998foreskin.cf 1999foreskin.ga 2000foreskin.gq 2001foreskin.ml 2002foreskin.tk 2003forexnews.bg 2004forexru.com 2005forexzig.com 2006forgetmail.com 2007formodapk.com 2008fornow.eu 2009forspam.net 2010forward.cat 2011fosil.pro 2012foxja.com 2013foxtrotter.info 2014fr.cr 2015fr.nf 2016fr33mail.info 2017fragolina2.tk 2018frapmail.com 2019frappina.tk 2020frederictonlawyer.com 2021free-email.cf 2022free-email.ga 2023free-temp.net 2024freebabysittercam.com 2025freeblackbootytube.com 2026freecat.net 2027freecustom.email 2028freedom4you.info 2029freedompop.us 2030freedrops.org 2031freefattymovies.com 2032freehotmail.net 2033freeimagehosts.org 2034freeimghost.org 2035freeinbox.email 2036freelance-france.eu 2037freeletter.me 2038freemail.ms 2039freemails.cf 2040freemails.ga 2041freemails.ml 2042freemails.pp.ua 2043freemeil.ga 2044freemeil.gq 2045freemeil.ml 2046freeml.net 2047freeplumpervideos.com 2048freerubli.ru
2049freeschoolgirlvids.com 2050freesistercam.com 2051freesourcecodes.com 2052freeteenbums.com 2053freetimer.online 2054freundin.ru 2055friendlymail.co.uk 2056frm.ovh 2057front14.org 2058frwdmail.com 2059fsitip.com 2060fthcapital.com 2061ftp.sh 2062ftpinc.ca 2063fuckedupload.com 2064fuckingduh.com 2065fuckme69.club 2066fucknloveme.top 2067fuckxxme.top 2068fudgerub.com 2069fudier.com 2070fuirio.com 2071fukaru.com 2072fukurou.ch 2073fullangle.org 2074fulvie.com 2075fumemail.com 2076fun64.com 2077fundapk.com 2078funnycodesnippets.com 2079funnymail.de 2080funteka.com 2081furzauflunge.de 2082futuramind.com 2083fuvk.ru 2084fuvk.store 2085fuwa.be 2086fuwa.li 2087fuwamofu.com 2088fuwari.be 2089fux0ringduh.com 2090fviadropinbox.com 2091fviainboxes.com 2092fviamail.work 2093fxavaj.com 2094fxnxs.com 2095fxtubes.com 2096fxzig.com 2097fyii.de 2098fynix.sbs 2099g14l71lb.com 2100g1xmail.top 2101g2xmail.top 2102g3xmail.top 2103g4hdrop.us 2104gafy.net 2105gage.ga 2106galaxy.tv 2107gally.jp 2108gamail.top 2109gamebcs.com 2110gamegregious.com 2111gamgling.com 2112garasikita.pw 2113garbagecollector.org 2114garbagemail.org 2115gardenscape.ca 2116garizo.com 2117garliclife.com 2118garrymccooey.com 2119gassmail.com 2120gasuda.com 2121gav0.com 2122gawab.com 2123gaxetovemail.com 2124gbcmail.win 2125gbmail.top 2126gcmail.top 2127gddp2018.edu.vn 2128gdmail.top 2129gdqoe.net 2130gedmail.win 2131geekforex.com 2132geew.ru 2133gehensiemirnichtaufdensack.de 2134geldwaschmaschine.de 2135gelitik.in 2136gemapan.com 2137genderfuck.net 2138generator.email 2139genzmaile.com 2140genzotp.com 2141geronra.com 2142geschent.biz 2143get-mail.cf 2144get-mail.ga 2145get-mail.ml 2146get-mail.tk 2147get.pp.ua 2148get1mail.com 2149get2mail.fr 2150getairmail.cf 2151getairmail.com 2152getairmail.ga 2153getairmail.gq 2154getairmail.ml 2155getairmail.tk 2156geteit.com 2157getfun.men 2158getmail1.com 2159getmailfree.cc 2160getmails.eu 2161getmule.com 2162getnada.cc 2163getnada.com 2164getnowtoday.cf 2165getol.pro 2166getonemail.com 2167getonemail.net 2168getover.de 2169getsimpleemail.com 2170gett.icu 2171gexik.com 2172ggmal.ml 2173ggvk.ru 2174ggvk.store 2175gholar.com 2176ghosttexter.de 2177giacmosuaviet.info 2178giaiphapmuasam.com 2179giantmail.de 2180gifto12.com 2181gimbmail.com 2182gimme-cooki.es 2183gimpmail.com 2184ginzi.be 2185ginzi.co.uk 2186ginzi.es 2187ginzi.net 2188ginzy.co.uk 2189ginzy.eu 2190giodaingan.com 2191gioidev.news 2192giratex.com 2193girlfriend.ru 2194girlmail.win 2195girlsindetention.com 2196girlsundertheinfluence.com 2197gishpuppy.com 2198giveh2o.info 2199givememail.club 2200givmail.com 2201gixenmixen.com 2202glitch.sx 2203globalbizflow.com 2204globaltouron.com 2205glubex.com 2206glucosegrin.com 2207gmail2.gq 2208gmailot.com 2209gmal.com 2210gmatch.org 2211gmial.com 2212gmx1mail.top 2213gmxmail.top 2214gmxmail.win 2215gnctr-calgary.com 2216gng.edu.pl 2217gni8.com 2218go2usa.info 2219go2vpn.net 2220goatmail.uk 2221godfare.com 2222goemailgo.com 2223goeschman.com 2224gold.edu.pl 2225goldenmagpies.com 2226golemico.com 2227goleudy.org.uk 2228gomail.in 2229gonida.co.uk 2230gonida.com 2231gonida.uk 2232goomail.club 2233goonby.com 2234goplaygame.ru 2235gorillaswithdirtyarmpits.com 2236goround.info 2237gosarlar.com 2238gosuslugi-spravka.ru 2239gothere.biz 2240gotmail.com 2241gotmail.net 2242gotmail.org 2243gowikibooks.com 2244gowikicampus.com 2245gowikicars.com 2246gowikifilms.com 2247gowikigames.com 2248gowikimusic.com 2249gowikinetwork.com 2250gowikitravel.com 2251gowikitv.com 2252grandmamail.com 2253grandmasmail.com 2254grassdev.com 2255gravityengine.cc 2256great-host.in 2257greencafe24.com 2258greendike.com 2259greenhousemail.com 2260greensloth.com 2261greggamel.com 2262greggamel.net 2263gregorsky.zone 2264gregorygamel.com 2265gregorygamel.net 2266grish.de 2267griuc.schule 2268grn.cc 2269groklan.com 2270groupbuff.com 2271grr.la 2272gruene-no-thanks.xyz 2273grugrug.ru 2274gruz-m.ru 2275gs-arc.org 2276gsredcross.org 2277gsrv.co.uk 2278gsxstring.ga 2279guanshuyun.com 2280gudanglowongan.com 2281guerillamail.biz 2282guerillamail.com 2283guerillamail.de 2284guerillamail.info 2285guerillamail.net 2286guerillamail.org 2287guerillamailblock.com 2288guerrillamail.biz 2289guerrillamail.com 2290guerrillamail.de 2291guerrillamail.info 2292guerrillamail.net 2293guerrillamail.org 2294guerrillamailblock.com 2295gufum.com 2296gukox.org 2297gustr.com 2298guysmail.com 2299gxemail.men 2300gyan-netra.com 2301gyknife.com 2302gynzi.co.uk 2303gynzi.es 2304gzb.ro 2305h0tmaii.com 2306h2beta.com 2307h8s.org 2308ha92.store 2309haben-wir.com 2310habenwir.com 2311habitue.net 2312hacccc.com 2313hackersquad.tk 2314hackthatbit.ch 2315hahawrong.com 2316haibabon.com 2317haida-edu.cn 2318hairs24.ru 2319haltospam.com 2320hamham.uk 2321handrik.com 2322hangxomcuatoilatotoro.ml 2323happiseektest.com 2324happy-new-year.top 2325happy2023year.com 2326happy9toy.com 2327happydomik.ru 2328harakirimail.com 2329haren.uk 2330haribu.com 2331hartbot.de 2332hasanmail.ml 2333hat-geld.de 2334hatespam.org 2335hawrong.com 2336haydoo.com 2337hazelnut4u.com 2338hazelnuts4u.com 2339hazmatshipping.org 2340hccmail.win 2341headstrong.de 2342healthforwomen.info 2343healxo.org 2344heathenhammer.com 2345heathenhero.com 2346hecat.es 2347heheee.com 2348heisei.be 2349hellodream.mobi 2350helloricky.com 2351helpinghandtaxcenter.org 2352helpjobs.ru 2353heros3.com 2354herp.in 2355herpderp.nl 2356hezll.com 2357hh7f.com 2358hhe.org.uk 2359hi2.in 2360hi5.si 2361hiddentragedy.com 2362hidebox.org 2363hidebusiness.xyz 2364hidemail.de 2365hidemail.pro 2366hidemail.us 2367hidesmail.net 2368hidmail.org 2369hidzz.com 2370hiemail.net 2371hieuclone.net 2372highbros.org 2373hihi.lol 2374hikuhu.com 2375hiltonvr.com 2376himail.online 2377hldrive.com 2378hmail.us 2379hmamail.com 2380hmh.ro
2381hoanggiaanh.com 2382hoanglong.tech 2383hochsitze.com 2384hola.org 2385holio.day 2386holl.ga 2387homecut.pro 2388honesthirianinda.net 2389honeys.be 2390honor-8.com 2391hook2ad.com 2392hooooooo.store 2393hopemail.biz 2394horizonspost.com 2395hornyalwary.top 2396host1s.com 2397hostcalls.com 2398hostguru.top 2399hostingmail.me 2400hostlaba.com 2401hot-mail.cf 2402hot-mail.ga 2403hot-mail.gq 2404hot-mail.ml 2405hot-mail.tk 2406hotlinkimg.com 2407hotmai.com 2408hotmailproduct.com 2409hotmial.com 2410hotpop.com 2411hotprice.co 2412hotrokh.com 2413hotsoup.be 2414hottchurch.org.uk 2415housat.com 2416housereformas.es 2417hpari.com 2418hpc.tw 2419hs.vc 2420hsmw.net 2421ht.cx 2422hthlm.com 2423httpsgreenwichmeantime.in 2424huangniu8.com 2425hubglee.com 2426hubhost.store 2427huizk.com 2428hukkmu.tk 2429hulapla.de 2430humaility.com 2431hungpackage.com 2432hunnur.com 2433huongdanfb.com 2434hushmail.cf 2435huskion.net 2436hvastudiesucces.nl 2437hwsye.net 2438hxopi.ru 2439hxopi.store 2440hypenated-domain.com 2441i-dork.com 2442i2pmail.org 2443i6.cloudns.cc 2444iaoss.com 2445ibnuh.bz 2446ibolinva.com 2447ibymail.com 2448icantbelieveineedtoexplainthisshit.com 2449icemail.club 2450ich-essen-fleisch.bio 2451ichigo.me 2452icidroit.info 2453iconmal.com 2454icx.in 2455icx.ro 2456icznn.com 2457ideuse.com 2458idf.ovh 2459idfd.live 2460idont.date 2461idx4.com 2462idxue.com 2463ieatspam.eu 2464ieatspam.info 2465ieh-mail.de 2466iencm.com 2467iffymedia.com 2468ifoxdd.com 2469ige.es 2470igg.biz 2471ignoremail.com 2472ihateyoualot.info 2473ihazspam.ca 2474iheartspam.org 2475ikbenspamvrij.nl 2476ikewe.com 2477ikomail.com 2478ikuromi.com 2479illistnoise.com 2480illubd.com 2481ilovespam.com 2482im5z.com 2483imail.edu.vn 2484imail1.net 2485imails.info 2486imailt.com 2487img-free.com 2488imgof.com 2489imgv.de 2490immo-gerance.info 2491imnart.com 2492imperialcnk.com 2493importemail.com 2494imstations.com 2495imul.info 2496in-ulm.de 2497in2reach.com 2498inactivemachine.com 2499inbax.tk 2500inbound.plus 2501inbox.si 2502inbox2.info 2503inboxalias.com 2504inboxbear.com 2505inboxclean.com 2506inboxclean.org 2507inboxdesign.me 2508inboxed.im 2509inboxed.pw 2510inboxkitten.com 2511inboxnow.ru 2512inboxnow.store 2513inboxorigin.com 2514inboxproxy.com 2515inboxstore.me 2516inclick.net 2517inclusiveprogress.com 2518incognitomail.com 2519incognitomail.net 2520incognitomail.org 2521incq.com 2522ind.st 2523index-mail.com 2524indianahorsecouncil.org 2525indieclad.com 2526indigobook.com 2527indirect.ws 2528indomaed.pw 2529indomina.cf 2530indoserver.stream 2531indosukses.press 2532ineec.net 2533infobuzzsite.com 2534infocom.zp.ua 2535infos.st 2536inggo.org 2537inilogic.com 2538inkiny.com 2539inkomail.com 2540inmynetwork.tk 2541inoutmail.de 2542inoutmail.eu 2543inoutmail.info 2544inoutmail.net 2545inpwa.com 2546insanony.art 2547insanony.one 2548insanony.store 2549insanumingeniumhomebrew.com 2550insgrmail.site 2551inshuan.com 2552insorg-mail.info 2553instaddr.ch 2554instaddr.uk 2555instaddr.win 2556instance-email.com 2557instant-mail.de 2558instantblingmail.info 2559instantemailaddress.com 2560instantletter.net 2561instantmail.fr 2562instmail.uk 2563instrete.com 2564intady.com 2565internet-v-stavropole.ru 2566internetkeno.com 2567internetoftags.com 2568interstats.org 2569intersteller.com 2570intobx.com 2571intopwa.com 2572intopwa.net 2573intopwa.org 2574introex.com 2575investore.co 2576inwagit.com 2577ionq.pl 2578iotf.net 2579iozak.com 2580ip4.pp.ua 2581ip6.li 2582ip6.pp.ua 2583ipoo.org 2584ippandansei.tk 2585ipsur.org 2586ipxwan.com 2587irabops.com 2588iralborz.bid 2589iraniandsa.org 2590irc.so 2591iridales.com 2592irish2me.com 2593irishspringrealty.com 2594iroid.com 2595ironiebehindert.de 2596irssi.tv 2597is.af 2598isdaq.com 2599ishop2k.com 2600ismartsense.online 2601isosq.com 2602ispeedtest.digital 2603ist-hier.com 2604istii.ro 2605isukrainestillacountry.com 2606it7.ovh 2607italy-mail.com 2608itaolo.com 2609itcompu.com 2610itfast.net 2611itsbds.com 2612itsedit.click 2613itsjiff.com 2614itspid.com 2615itunesgiftcodegenerator.com 2616iuanhoi.store 2617iubridge.com 2618iuemail.men 2619iwatermail.com 2620iwi.net 2621ixaks.com 2622ixhale.com 2623ixx.io 2624iysqv.com 2625j-p.us 2626jabmag.com 2627jafps.com 2628jaga.email 2629jagomail.com 2630jailbreakeverything.com 2631jaipas.lu 2632jajxz.com 2633jakemsr.com 2634janproz.com 2635japnc.com 2636jaqis.com 2637jasonbella.online 2638javadmin.com 2639jcnorris.com 2640jdmadventures.com 2641jdz.ro 2642je-recycle.info 2643jellow.ml 2644jellyrolls.com 2645jeoce.com 2646jet-renovation.fr 2647jetable.com 2648jetable.net 2649jetable.org 2650jetable.pp.ua 2651ji5.de 2652ji6.de 2653ji7.de 2654jincer.com 2655jiooq.com 2656jioso.com 2657jjj.ee 2658jjk.app 2659jkotypc.com 2660jmail.ovh 2661jmail.ro 2662jnxjn.com 2663jobbikszimpatizans.hu 2664jobbrett.com 2665jobposts.net 2666jobs-to-be-done.net 2667jobzyy.com 2668joelpet.com 2669joetestalot.com 2670jofuso.com 2671jopho.com 2672joseihorumon.info 2673josse.ltd 2674jourrapide.com 2675jp-ml.com 2676jpco.org 2677jsrsolutions.com 2678jumonji.tk 2679jungkamushukum.com 2680junk.to 2681junk1e.com 2682junkmail.ga 2683junkmail.gq 2684just-email.com 2685justemail.ml 2686juyouxi.com 2687jwork.ru 2688jxpomup.com 2689k4money.com 2690kabamail.com 2691kademen.com 2692kadokawa.cf 2693kadokawa.ga 2694kadokawa.gq 2695kadokawa.ml 2696kadokawa.tk 2697kaengu.ru 2698kagi.be 2699kakadua.net 2700kakslsie.store 2701kalapi.org 2702kamen-market.ru 2703kamete.org 2704kamsg.com 2705kanonmail.com 2706kaovo.com 2707kappala.info 2708kara-turk.net 2709karatraman.ml 2710karenkey.com 2711kariplan.com 2712karta-kykyruza.ru 2713kartvelo.com 2714kasmail.com 2715kaspop.com 2716katztube.com 2717kazelink.ml 2718kbox.li 2719kcoporation.com 2720kcrw.de 2721kd2.org 2722keepmymail.com 2723kein.date 2724keinhirn.de 2725keipino.de 2726kekita.com 2727kelenson.com 2728kellychibale-researchgroup-uct.com 2729kemail.uk 2730kemptvillebaseball.com
2731kenfern.com 2732kenhbanme.com 2733kerotu.com 2734khoke.nl 2735kiani.com 2736kidaroa.com 2737killmail.com 2738killmail.net 2739killyourtime.com 2740kimdyn.com 2741kimsdisk.com 2742kinda.email 2743kindamail.com 2744kingsq.ga 2745kino-100.ru 2746kiois.com 2747kismail.ru 2748kisoq.com 2749kissgy.com 2750kisstwink.com 2751kitnastar.com 2752kjkszpjcompany.com 2753kkmail.be 2754kkoup.com 2755kksm.be 2756klassmaster.com 2757klassmaster.net 2758klick-tipp.us 2759klipschx12.com 2760kloap.com 2761klovenode.com 2762kludgemush.com 2763klzlk.com 2764kmail.li 2765kmail.live 2766kmhow.com 2767knickerbockerban.de 2768knilok.com 2769knmcadibav.com 2770knol-power.nl 2771knowledgemd.com 2772kobrandly.com 2773kodpan.com 2774kokalo.store 2775koletter.com 2776kommunity.biz 2777kon42.com 2778konican.com 2779konultant-jurist.ru 2780kook.ml 2781kopagas.com 2782kopaka.net 2783korona-nedvizhimosti.ru 2784koshu.ru 2785kosmetik-obatkuat.com 2786kostenlosemailadresse.de 2787koszmail.pl 2788kpay.be 2789kpooa.com 2790kpost.be 2791krd.ag 2792krsw.tk 2793kruay.com 2794krypton.tk 2795ksmtrck.tk 2796kuhrap.com 2797kuku.lu 2798kulmeo.com 2799kulturbetrieb.info 2800kumli.racing 2801kurzepost.de 2802kutakbisajauhjauh.gq 2803kvhrr.com 2804kvhrs.com 2805kvhrw.com 2806kwifa.com 2807kwift.net 2808kwilco.net 2809kwtest.io 2810kyal.pl 2811kyois.com 2812kyriog.fr 2813kzccv.com 2814l-c-a.us 2815l33r.eu 2816l6factors.com 2817laafd.com 2818labetteraverouge.at 2819labworld.org 2820lacedmail.com 2821lackmail.net 2822lackmail.ru 2823lacto.info 2824lags.us 2825lain.ch 2826lak.pp.ua 2827lakelivingstonrealestate.com 2828lakqs.com 2829lamasticots.com 2830lambsauce.de 2831landmail.co 2832laoeq.com 2833larisia.com 2834larland.com 2835lashyd.com 2836last-chance.pro 2837laste.ml 2838lastmail.co 2839lastmail.com 2840lawlita.com 2841laxex.ru 2842laxex.store 2843laxiw.org 2844laymro.com 2845lazyinbox.com 2846lazyinbox.us 2847ldaho.biz 2848ldop.com 2849ldtp.com 2850le-tim.ru 2851leadwizzer.com 2852lee.mx 2853leechchannel.com 2854leeching.net 2855leetmail.co 2856legalrc.loan 2857lellno.gq 2858lenovog4.com 2859lerany.com 2860lerbhe.com 2861lerch.ovh 2862lero3.com 2863lesobprovermail.com 2864letterhaven.net 2865letterprotect.net 2866lettersboxmail.com 2867letthemeatspam.com 2868lez.se 2869lgxscreen.com 2870lhsdv.com 2871liamcyrus.com 2872lifebyfood.com 2873lifetimefriends.info 2874lifetotech.com 2875ligsb.com 2876likemovie.net 2877lillemap.net 2878lilo.me 2879lilspam.com 2880lindenbaumjapan.com 2881link2mail.net 2882linkedintuts2016.pw 2883linkmail.info 2884linlshe.com 2885linshiyou.com 2886linshiyouxiang.net 2887linuxmail.so 2888liocbrco.com 2889lista.cc 2890litedrop.com 2891liveradio.tk 2892livinitlarge.net 2893lizery.com 2894lkgn.se 2895llogin.ru 2896loadby.us 2897loan101.pro 2898loaoa.com 2899loapq.com 2900locanto1.club 2901locantofuck.top 2902locantowsite.club 2903locawin.com 2904locomodev.net 2905logicstreak.com 2906login-email.cf 2907login-email.ga 2908login-email.ml 2909login-email.tk 2910logsmarter.net 2911logular.com 2912loh.pp.ua 2913loin.in 2914lolfreak.net 2915lolmail.biz 2916longsbkt.xyz 2917lookugly.com 2918lordsofts.com 2919lortemail.dk 2920losemymail.com 2921love-your.mom 2922lovemeet.faith 2923lovemeleaveme.com 2924lpfmgmtltd.com 2925lr7.us 2926lr78.com 2927lroid.com 2928lru.me 2929ls-server.ru 2930lsaar.com 2931lsereborn.com 2932lsyx24.com 2933luckymail.org 2934lukecarriere.com 2935lukemail.info 2936lukop.dk 2937lumg.uk 2938lunor.cfd 2939lushosa.com 2940lutech.uk 2941luv2.us 2942lydir.com 2943lyfestylecreditsolutions.com 2944lyft.live 2945lynex.sbs 2946lynwise.shop 2947lyricspad.net 2948lzoaq.com 2949m21.cc 2950m4ilweb.info 2951ma1l.duckdns.org 2952maboard.com 2953mabox.eu 2954mac-24.com 2955machen-wir.com 2956macr2.com 2957macromaid.com 2958macromice.info 2959magamail.com 2960magbit.food 2961maggotymeat.ga 2962magicbox.ro 2963magim.be 2964magspam.net 2965maidlow.info 2966mail-card.net 2967mail-easy.fr 2968mail-filter.com 2969mail-help.net 2970mail-hosting.co 2971mail-hub.info 2972mail-now.top 2973mail-owl.com 2974mail-share.com 2975mail-temporaire.com 2976mail-temporaire.fr 2977mail-tester.com 2978mail.by 2979mail.tm 2980mail.wtf 2981mail0.ga 2982mail1.top 2983mail101.xyz 2984mail10m.com 2985mail114.net 2986mail12h.com 2987mail1a.de 2988mail1web.org 2989mail21.cc 2990mail22.club 2991mail2rss.org 2992mail333.com 2993mail4.uk 2994mail4qa.com 2995mail4trash.com 2996mail666.ru 2997mail7.io 2998mail707.com 2999mail72.com 3000mailadresi.tk 3001mailapp.top 3002mailapril.org 3003mailba.uk 3004mailback.com 3005mailbai.com 3006mailbali.com 3007mailbidon.com 3008mailbiscuit.com 3009mailbiz.biz 3010mailblocks.com 3011mailbox.in.ua 3012mailbox.zip 3013mailbox49.com 3014mailbox52.ga 3015mailbox80.biz 3016mailbox82.biz 3017mailbox87.de 3018mailbox92.biz 3019mailboxify.ru 3020mailboxify.store 3021mailboxly.ru 3022mailboxly.store 3023mailboxy.fun 3024mailboxy.ru 3025mailboxy.store 3026mailbucket.org 3027mailcat.biz 3028mailcatch.com 3029mailchop.com 3030mailcker.com 3031maildax.me 3032mailde.de 3033mailde.info 3034maildrop.cc 3035maildrop.cf 3036maildrop.ga 3037maildrop.gq 3038maildrop.ml 3039maildu.de 3040maildx.com 3041maileater.com 3042mailed.in 3043mailed.ro 3044maileimer.de 3045maileme101.com 3046mailers.edu.pl 3047mailexpire.com 3048mailf5.com 3049mailfa.tk 3050mailfall.com 3051mailfast.pro 3052mailfirst.icu 3053mailforspam.com 3054mailfree.ga 3055mailfree.gq 3056mailfree.ml 3057mailfreeonline.com 3058mailfs.com 3059mailguard.me 3060mailgutter.com 3061mailhazard.com 3062mailhazard.us 3063mailhex.com 3064mailhub.pro 3065mailhz.me 3066mailimate.com 3067mailin8r.com 3068mailinatar.com 3069mailinater.com 3070mailinator.co.uk 3071mailinator.com 3072mailinator.gq 3073mailinator.info 3074mailinator.net 3075mailinator.org 3076mailinator.us 3077mailinator0.com 3078mailinator1.com 3079mailinator2.com 3080mailinator2.net 3081mailinator3.com 3082mailinator4.com 3083mailinator5.com 3084mailinator6.com 3085mailinator7.com 3086mailinator8.com 3087mailinator9.com 3088mailincubator.com 3089mailisia.com 3090mailismagic.com 3091mailita.tk 3092mailjunk.cf 3093mailjunk.ga 3094mailjunk.gq 3095mailjunk.ml 3096mailjunk.tk 3097mailmagnet.co 3098mailmate.com 3099mailmaxy.one 3100mailmay.org 3101mailme.gq 3102mailme.ir 3103mailme.lv 3104mailme24.com 3105mailmenot.io 3106mailmetrash.com 3107mailmoat.com 3108mailmoth.com 3109mailms.com 3110mailna.biz 3111mailna.co 3112mailna.in 3113mailna.me 3114mailnada.cc 3115mailnada.com 3116mailnator.com 3117mailnesia.com 3118mailnull.com 3119mailnuo.com 3120mailonaut.com 3121mailorc.com 3122mailorg.org 3123mailosaur.net 3124mailox.fun 3125mailp.org 3126mailpick.biz 3127mailpluss.com 3128mailpooch.com 3129mailpoof.com 3130mailpress.gq 3131mailpro.lat 3132mailpro.live 3133mailproxsy.com 3134mailpull.com 3135mailquack.com 3136mailrock.biz 3137mailsac.com 3138mailscrap.com 3139mailseal.de 3140mailshan.com 3141mailshell.com 3142mailshiv.com 3143mailshou.com 3144mailsiphon.com 3145mailslapping.com 3146mailslite.com 3147mailslurp.com 3148mailsucker.net 3149mailt.net 3150mailt.top 3151mailtechx.com 3152mailtemp.info 3153mailtemple.xyz 3154mailtemporaire.com 3155mailtemporaire.fr 3156mailto.plus 3157mailtome.de 3158mailtothis.com 3159mailtraps.com 3160mailtrash.net 3161mailtrix.net 3162mailtub.com 3163mailtv.net 3164mailtv.tv 3165mailuniverse.co.uk 3166mailw.site 3167mailzi.ru 3168mailzilla.com 3169mailzilla.org 3170mailzy.org 3171mainerfolg.info 3172mainkask.site 3173makemenaughty.club 3174makemetheking.com 3175malahov.de 3176malayalamdtp.com 3177malioter.pro 3178mama3.org 3179mamulenok.ru 3180mandraghen.cf 3181manifestgenerator.com 3182mannawo.com 3183mansiondev.com 3184mark-compressoren.ru 3185marketlink.info 3186markmurfin.com 3187mask03.ru 3188maskmy.id 3189masonline.info 3190maswae.world 3191matamuasu.ga 3192matchpol.net 3193matmayer.com 3194matra.site 3195max-mail.org 3196maxresistance.com 3197maxturns.com 3198mbox.re 3199mbx.cc 3200mc-fly.be 3201mcache.net
3202mciek.com 3203mdhc.tk 3204mdz.email 3205meantinc.com 3206mebelnu.info 3207mechanicalresumes.com 3208mechanicspedia.com 3209medkabinet-uzi.ru 3210meepsheep.eu 3211megasend.org 3212mehr-bitcoin.de 3213meidecn.com 3214meinspamschutz.de 3215meltedbrownies.com 3216meltmail.com 3217meltp.com 3218memeazon.com 3219memsg.site 3220mentonit.net 3221mepost.pw 3222merepost.com 3223merry.pink 3224meruado.uk 3225messagebeamer.de 3226messwiththebestdielikethe.rest 3227metadownload.org 3228metaintern.net 3229metalunits.com 3230mexvat.com 3231mezimages.net 3232mfsa.info 3233mfsa.ru 3234mfunza.com 3235mhzayt.online 3236miaferrari.com 3237miauj.com 3238midcoastcustoms.com 3239midcoastcustoms.net 3240midcoastsolutions.com 3241midcoastsolutions.net 3242midiharmonica.com 3243midlertidig.com 3244midlertidig.net 3245midlertidig.org 3246mierdamail.com 3247migmail.net 3248migmail.pl 3249migumail.com 3250mihep.com 3251miistermail.fr 3252mijnhva.nl 3253mikrotikvietnam.com 3254mikrotikx.com 3255minefieldmail.com 3256minimail.gq 3257ministry-of-silly-walks.de 3258minsmail.com 3259mintemail.com 3260mirai.re 3261misterpinball.de 3262mitico.org 3263miucce.com 3264miwacle.com 3265mixzu.net 3266mji.ro 3267mjj.edu.ge 3268mjukglass.nu 3269mkeya.com 3270mkpfilm.com 3271mkzaso.com 3272ml8.ca 3273mlanm.online 3274mliok.com 3275mm.my 3276mm5.se 3277mnode.me 3278moakt.cc 3279moakt.co 3280moakt.com 3281moakt.ws 3282mobileninja.co.uk 3283mobilevpn.top 3284moburl.com 3285mockmyid.com 3286modirosa.com 3287moeri.org 3288mofu.be 3289mohmal.com 3290mohmal.im 3291mohmal.in 3292mohmal.tech 3293moimoi.re 3294molms.com 3295momentics.ru 3296momoi.uk 3297mona.edu.kg 3298mona.edu.pl 3299mona.edu.rs 3300monachat.tk 3301monadi.ml 3302monchu.fr 3303moneypipe.net 3304mongrec.top 3305monumentmail.com 3306moolee.net 3307moonapps.org 3308moonwake.com 3309moot.es 3310moreawesomethanyou.com 3311moreorcs.com 3312morriesworld.ml 3313morsin.com 3314moruzza.com 3315motique.de 3316mountainregionallibrary.net 3317mowline.com 3318mox.pp.ua 3319moy-elektrik.ru 3320moza.pl 3321mozej.com 3322mp-j.ga 3323mp3oxi.com 3324mpk.ovh 3325mr24.co 3326mriscan.live 3327mrotzis.com 3328mrphoto.org 3329mrvpm.net 3330mrvpt.com 3331msarra.com 3332msgos.com 3333mspeciosa.com 3334msrc.ml 3335msssg.com 3336mswork.ru 3337msxd.com 3338mt2009.com 3339mt2014.com 3340mt2015.com 3341mtmdev.com 3342muadaingan.com 3343muathegame.com 3344muchomail.com 3345mucincanon.com 3346muehlacker.tk 3347muell.icu 3348muell.io 3349muell.monster 3350muell.xyz 3351muellemail.com 3352muellmail.com 3353mugadget.com 3354munik.edu.pl 3355munoubengoshi.gq 3356muonwhila.com 3357musiccode.me 3358mutant.me 3359mvpmedix.com 3360mvrht.com 3361mvrht.net 3362mwarner.org
3363mxclip.com 3364mxfuel.com 3365mxvia.com 3366my-pomsies.ru 3367my-teddyy.ru 3368my10minutemail.com 3369mybitti.de 3370mycleaninbox.net 3371mycorneroftheinter.net 3372mycreativeinbox.com 3373myde.ml 3374mydefipet.live 3375mydemo.equipment 3376myecho.es 3377myemailboxy.com 3378myfxspot.com 3379mygeoweb.info 3380myindohome.services 3381myinfoinc.com 3382myinterserver.ml 3383mykickassideas.com 3384myletters.online 3385mymail-in.net 3386mymail90.com 3387mymailoasis.com 3388mymaily.lol 3389mynes.com 3390mynetstore.de 3391myopang.com 3392mypacks.net 3393mypartyclip.de 3394myphantomemail.com 3395mysamp.de 3396myspaceinc.com 3397myspaceinc.net 3398myspaceinc.org 3399myspacepimpedup.com 3400myspamless.com 3401mystvpn.com 3402mysugartime.ru 3403mytemp.email 3404mytempemail.com 3405mytempmail.com 3406mytrashmail.com 3407mywarnernet.net 3408myweblaw.com 3409mywrld.site 3410mywrld.top 3411myzx.com 3412mzico.com 3413n1nja.org 3414n8.gs 3415na-cat.com 3416naah.ru 3417naah.store 3418nabaxox.edu.pl 3419nabuma.com 3420nada.email 3421nada.ltd 3422nagi.be 3423naka.edu.pl 3424nakedtruth.biz 3425namewok.com 3426nanonym.ch 3427naobk.com 3428naslazhdai.ru 3429nationalgardeningclub.com 3430navalcadets.com 3431naverapp.com 3432naverly.com 3433nawmin.info 3434naymedia.com 3435nbmbb.com 3436nbzmr.com 3437ncien.com 3438necub.com 3439negated.com 3440neghtlefi.com 3441neko2.net 3442nekochan.fr 3443nekosan.uk 3444neomailbox.com 3445neotlozhniy-zaim.ru 3446nepwk.com 3447nervmich.net 3448nervtmich.net 3449nesopf.com 3450nespf.com 3451nespressopixie.com 3452net1mail.com 3453netcom.ws 3454netfxd.com 3455netmails.com 3456netmails.net 3457netn.top 3458netricity.nl 3459netris.net 3460netviewer-france.com 3461netzidiot.de 3462nevermail.de 3463newaddr.com 3464newbpotato.tk 3465newfilm24.ru 3466newideasfornewpeople.info 3467newmail.top 3468next.ovh 3469nextmail.info 3470nextstopvalhalla.com 3471nextsuns.com 3472nezdiro.org 3473nezid.com 3474nezumi.be 3475nezzart.com 3476nfast.net 3477nghienplus.io.vn 3478nguyenusedcars.com 3479nh3.ro 3480nhmi1.com 3481nhoopmail.store 3482nice-4u.com 3483nicemail.cc 3484nick-ao.com 3485nicknassar.com 3486nightorb.com 3487nincsmail.com 3488nincsmail.hu 3489niseko.be 3490niwl.net 3491nm123.com 3492nm7.cc 3493nmail.cf 3494nnh.com 3495nnot.net 3496nnoway.ru 3497no-spam.ws 3498no-trash.ru 3499no-ux.com 3500noblepioneer.com 3501nobugmail.com 3502nobulk.com 3503nobuma.com 3504noclickemail.com 3505nocp.ru 3506nocp.store 3507nodejs.uk 3508nodezine.com 3509nogmailspam.info 3510noicd.com 3511nokdot.com 3512nokiamail.com 3513nolemail.ga 3514nolettersbox.com 3515nomail.cf 3516nomail.ga 3517nomail.pw 3518nomail2me.com 3519nomorespamemails.com 3520nonchalantresmita.biz 3521nongnue.com 3522nonspam.eu 3523nonspammer.de 3524nonze.ro 3525noopmail.com 3526noref.in 3527noreply.fr 3528nori24.tv 3529norseforce.com 3530northsixty.com 3531norwegischlernen.info 3532nospam.today 3533nospam4.us 3534nospamfor.us 3535nospamthanks.info 3536notboxletters.com 3537nothingtoseehere.ca 3538notif.me 3539notipr.com 3540notlettersmail.com 3541notmailinator.com 3542notrnailinator.com 3543notsharingmy.info 3544novaemail.com 3545now.im 3546nowhere.org 3547nowmymail.com 3548nowmymail.net 3549nproxi.com 3550nqmo.com 3551nrehi.com 3552nrlord.com 3553ns01.biz 3554nsvpn.com 3555nthrl.com 3556ntlhelp.net 3557nubescontrol.com 3558nucleant.org 3559nullbox.info 3560nuoifb.com 3561nuox.eu.org 3562nurfuerspam.de 3563nut.cc 3564nutpa.net 3565nuts2trade.com 3566nvhrw.com 3567nwldx.com 3568nwytg.com 3569nwytg.net 3570ny7.me 3571nyasan.com 3572nyfhk.com 3573nypato.com 3574nyrmusic.com 3575o2stk.org 3576o7i.net 3577oakon.com 3578oalsp.com 3579obfusko.com 3580objectmail.com 3581obobbo.com 3582oborudovanieizturcii.ru 3583obxpestcontrol.com 3584octovie.com 3585odaymail.com 3586odeask.com 3587odem.com 3588odnorazovoe.ru 3589oepia.com 3590oerpub.org 3591ofanda.com 3592offshore-proxies.net 3593ofisher.net 3594ogrencikredisi.org 3595ohaaa.de 3596ohi.tw 3597ohm.edu.pl 3598oida.icu 3599oing.cf 3600okclprojects.com 3601okhko.com 3602okiae.com 3603okinawa.li 3604okrent.us 3605oku.ovh 3606oky.ovh 3607okzk.com 3608olimp-case.ru 3609oliviadiffuser.store 3610oloh.ru 3611oloh.store 3612olypmall.ru 3613omail.pro 3614omfg.run 3615omnievents.org 3616omtecha.com 3617one-mail.top 3618one-ml.com 3619one-sec-mail.site 3620one-time.email 3621one2mail.info 3622onekisspresave.com 3623onelettersmail.com 3624onemail.host 3625oneoffemail.com 3626oneoffmail.com 3627onetm-ml.com 3628onetm.jp 3629onewaymail.com 3630onheb.com 3631onionred.com 3632onlatedotcom.info 3633online.ms 3634onlineidea.info 3635onlyapp.net 3636onmailflare.com 3637onqin.com 3638ontasa.com 3639ontyne.biz 3640oohioo.com 3641oolus.com 3642oonies-shoprus.ru 3643oooooooo.store 3644oopi.org 3645oosln.com 3646oovk.ru 3647oovk.store 3648opayq.com 3649opemails.com 3650openavz.com 3651opendns.ro 3652openmail.pro 3653opentrash.com 3654opmmedia.ga 3655oposite.org 3656opp24.com 3657optimaweb.me 3658optivex.cfd 3659opwebw.com 3660oranek.com 3661ordinaryamerican.net 3662ordite.com 3663oreidresume.com 3664orgmbx.cc 3665oroki.de 3666oronny.com 3667orsbap.com 3668ortogenmail.com 3669oshietechan.link 3670ostinmail.com 3671osxofulk.com 3672otherinbox.com 3673otmail.jp 3674ourklips.com 3675ourpreviewdomain.com 3676outlawspam.com 3677outlook.edu.pl 3678outmail.win 3679ovbest.com 3680ovomail.co 3681ovpn.to 3682owleyes.ch 3683owlpic.com 3684ownsyou.de 3685owube.com 3686oxfo.edu.pl 3687oxmail.homes 3688oxopoha.com 3689ozatvn.com 3690ozm.fr 3691ozsaip.com 3692ozyl.de 3693p-banlis.ru 3694p33.org 3695p71ce1m.com 3696pa9e.com 3697pachilly.com 3698packiu.com 3699pagamenti.tk 3700paharpurmim.ga 3701pakadebu.ga 3702paliospiti.com 3703pamaweb.com 3704pancakemail.com 3705papierkorb.me 3706paplease.com 3707para2019.ru 3708parlimentpetitioner.tk 3709pastebitch.com 3710pastryofistanbul.com 3711patity.com 3712patonce.com 3713pavilionx2.com 3714payperex2.com 3715payspun.com 3716pe.hu 3717peakinbox.net 3718pecinan.com 3719pecinan.net 3720pecinan.org 3721penisgoes.in 3722penoto.tk 3723pepbot.com 3724percyfx.com 3725pertera.com 3726peterdethier.com
3727petloca.com 3728petrzilka.net 3729pewpewpewpew.pw 3730pflege-schoene-haut.de 3731pfui.ru 3732phamay.com 3733phanmembanhang24h.com 3734philipdowney.com 3735phimib.com 3736phone-elkey.ru 3737photo-impact.eu 3738photobrex.com 3739photomark.net 3740phyones.com 3741physcroenmail.com 3742physicaladithama.io 3743pi.vu 3744piaa.me 3745picdirect.net 3746pig.pp.ua 3747pigeonprotocol.com 3748pii.at 3749piki.si 3750pimpedupmyspace.com 3751pinehill-seattle.org 3752pingddns.net 3753pingir.com 3754pipemail.space 3755pisls.com 3756pitaniezdorovie.ru 3757pithu.org 3758pitiful.pp.ua 3759pivo-bar.ru 3760pixdd.com 3761pixelgagnant.net 3762pixiil.com 3763pizu.ru 3764pizu.store 3765pizzajunk.com 3766pjjkp.com 3767placebomail10.com 3768pleasenoham.org 3769plexfirm.com 3770plexolan.de 3771plhk.ru 3772ploae.com 3773ploki.fr 3774ploncy.com 3775plw.me 3776pmail.site 3777pngrise.com 3778pochtac.ru 3779poehali-otdihat.ru 3780pofmagic.com 3781pojok.ml 3782pokemail.net 3783pokiemobile.com 3784polarkingxx.ml 3785politikerclub.de 3786polkaroad.net 3787polyfaust.net 3788ponp.be 3789pooae.com 3790poofy.org 3791pookmail.com 3792pooo.ooguy.com 3793poopiebutt.club 3794popcornfarm7.com 3795popcornfly.com 3796popesodomy.com 3797popgx.com 3798poplk.com 3799porjoton.com 3800porsh.net 3801posdz.com 3802posta.store 3803postacin.com 3804postbx.ru 3805postbx.store 3806postonline.me 3807poubelle-du.net 3808poutineyourface.com 3809powered.name 3810powerencry.com 3811powerscrews.com 3812powlearn.com 3813pox2.com 3814pp7rvv.com 3815ppetw.com 3816pptrvv.com 3817pqoia.com 3818pratikmail.com 3819pratikmail.net 3820pratikmail.org 3821prazdnik-37.ru 3822prc.cx 3823predatorrat.cf 3824predatorrat.ga 3825predatorrat.gq 3826predatorrat.ml 3827predatorrat.tk 3828premiapp.com 3829premium-mail.fr 3830pretreer.com 3831pricegh.com 3832pricegh.fun 3833pride-worldwi.de 3834primabananen.net 3835prin.be 3836printz.site 3837privacy-mail.top 3838privacy.net 3839privacyshield.cc 3840privatdemail.net 3841privmail.edu.pl 3842privy-mail.com 3843privy-mail.de 3844privymail.de 3845priyo-mail.com 3846priyo.ovh 3847priyo.site 3848priyoemail.site 3849priyomail.in 3850priyomail.net 3851priyomail.top 3852priyomail.uk 3853priyomail.us 3854priyor.com 3855priyp.com 3856pro-tag.org 3857pro5g.com 3858procrackers.com 3859profast.top 3860prohade.com 3861prohisi.store 3862projectcl.com 3863promailt.com 3864proprietativalcea.ro 3865propscore.com 3866protempmail.com 3867protonza.com 3868prout.be 3869proxy-gateway.net 3870proxymail.eu 3871proxyparking.com 3872prtnx.com 3873prtshr.com 3874prtz.eu 3875psh.me 3876psles.com 3877psnator.com 3878psoxs.com 3879ptct.net 3880ptsculure.com 3881puabook.com 3882puglieisi.com 3883puji.pro 3884punkass.com 3885punkproof.com 3886puppetmail.de 3887purcell.email 3888purelogistics.org 3889pursip.com 3890pusmail.com 3891pussport.com 3892put2.net 3893puttanamaiala.tk 3894putthisinyourspamdatabase.com 3895pwpwa.com 3896pwrby.com 3897pyskillsgame.com 3898qabq.com 3899qacmjeq.com 3900qasti.com 3901qbfree.us 3902qc.to 3903qejjyl.com 3904qibl.at 3905qiott.com 3906qipmail.net 3907qiq.us 3908qisdo.com 3909qisoa.com 3910qmrbe.com 3911qodiq.com 3912qoika.com 3913qopow.com 3914qq.my 3915qsl.ro 3916qtum-ico.com 3917quadrafit.com 3918questtechsystems.com 3919quick-mail.cc 3920quickemail.info 3921quickinbox.com 3922quickmail.nl 3923quicksend.ch 3924quillet.eu 3925quinz.me 3926quipas.com 3927ququb.com 3928qvy.me 3929qwickmail.com 3930qzueos.com 3931r4nd0m.de 3932ra3.us 3933rabin.ca 3934rabiot.reisen 3935rabitex.com 3936racaho.com 3937rackabzar.com 3938rael.us 3939raetp9.com 3940rainbowly.ml 3941raketenmann.de 3942raleigh-construction.com 3943ramcen.com 3944ramenmail.de 3945ramin200.site 3946ramizan.com 3947rancidhome.net 3948randomail.io 3949randomail.net 3950rapt.be 3951raqid.com 3952rax.la 3953raxtest.com 3954razemail.com 3955razuz.com 3956rbb.org 3957rcasd.com 3958rcpt.at 3959rdklcrv.xyz 3960re-gister.com 3961reality-concept.club 3962reallymymail.com 3963realmka.io 3964realquickemail.com 3965realtyalerts.ca 3966rebates.stream 3967receiveee.com 3968recipeforfailure.com 3969recode.me 3970reconmail.com 3971recyclemail.dk 3972redfeathercrow.com 3973reftoken.net 3974regapts.com 3975regbypass.com 3976regspaces.tk 3977reimondo.com 3978rejectmail.com 3979rejo.technology 3980rekaer.com 3981reliable-mail.com 3982remail.cf 3983remail.ga 3984remarkable.rocks 3985remote.li 3986rentaen.com 3987renydox.com 3988replyloop.com 3989reportfresh.com 3990reptilegenetics.com 3991resgedvgfed.tk 3992resmso.com 3993reusable.email 3994revolvingdoorhoax.org 3995rezato.com 3996rf.gd 3997rfc822.org 3998rhyta.com 3999richfinances.pw 4000riddermark.de 4001rifkian.ga 4002rimshacooking.site 4003rinseart.com 4004rippb.com 4005risingsuntouch.com 4006riski.cf 4007risu.be 4008rklips.com 4009rkomo.com 4010rm2rf.com 4011rma.ec 4012rmqkr.net 4013rnailinator.com 4014ro.lt 4015robertspcrepair.com 4016roborena.com 4017robot-mail.com 4018roguemaster.dev 4019rollindo.agency 4020ronete.com 4021ronnierage.net 4022rootfest.net 4023rosebearmylove.ru 4024rotaniliam.com 4025rotomails.co.uk 4026rotomails.com 4027routerboardvietnam.com 4028rover.info 4029rowdydow.com 4030rowe-solutions.com 4031roweryo.com 4032royal.net 4033royaldoodles.org 4034royalmarket.life 4035royandk.com 4036rppkn.com 4037rr.nu 4038rsvhr.com 4039rteet.com 4040rtrtr.com 4041rtskiya.xyz 4042rudymail.ml 4043rumgel.com 4044runi.ca 4045rupayamail.com 4046ruru.be 4047rustydoor.com 4048rustyload.com 4049ruu.kr 4050rvb.ro 4051rwstatus.com 4052ryteto.me 4053ryyr.ru 4054ryyr.store 4055s0ny.net 4056s33db0x.com 4057sabrestlouis.com 4058sackboii.com 4059saeoil.com 4060safaat.cf 4061safermail.info 4062safersignup.de 4063safetymail.info 4064safetypost.de 4065saharanightstempe.com 4066sailmail.io 4067saleis.live 4068salmeow.tk 4069samsclass.info 4070sandcars.net 4071sandelf.de 4072sandwhichvideo.com 4073sanfinder.com 4074sanim.net 4075sanstr.com 4076sast.ro 4077satisfyme.club 4078satukosong.com 4079sausen.com 4080savests.com 4081say0.com 4082saynotospams.com 4083scatmail.com 4084scay.net 4085schachrol.com 4086schafmail.de 4087schmeissweg.tk 4088schrott-email.de 4089scpulse.com 4090scrsot.com 4091sd3.in 4092sdvft.com 4093sdvgeft.com 4094sdvrecft.com 4095search4gpt.com 4096sebbcn.net 4097secmail.pw 4098secretemail.de 4099secure-mail.biz 4100secure-mail.cc 4101secured-link.net 4102securehost.com.es 4103seedspeed.site 4104seekapps.com 4105seekjobs4u.com 4106sehier.fr 4107sejaa.lv 4108selaciptama.com 4109selfdestructingmail.com 4110selfdestructingmail.org 4111send22u.info 4112send4.uk 4113sendapp.uk 4114sendfree.org 4115sendingspecialflyers.com 4116sendnow.win 4117sendspamhere.com 4118senseless-entertainment.com 4119seosnaps.com 4120seqerc.com 4121server.ms 4122servicee.es 4123services391.com 4124servicetr.me 4125setxko.com 4126sexforswingers.com 4127sexical.com 4128sexyalwasmi.top 4129sfolkar.com 4130sgatra.com 4131sgm.ovh 4132shadap.org 4133shalar.net 4134sharedmailbox.org 4135sharkfaces.com 4136sharklasers.com 4137shchiba.uk 4138sheinup.com 4139sheryli.com 4140shhmail.com 4141shhuut.org 4142shieldedmail.com 4143shieldemail.com 4144shiftmail.com 4145shipfromto.com 4146shiphazmat.org 4147shipping-regulations.com 4148shippingterms.org 4149shiptudo.com 4150shitaway.tk 4151shitmail.de 4152shitmail.me 4153shitmail.org 4154shmeriously.com 4155shopxda.com 4156shortmail.net 4157shotmail.ru 4158showslow.de 4159shrib.com 4160shut.name 4161shut.ws 4162siberpay.com 4163sicmg.com 4164sidelka-mytischi.ru 4165sidement.com 4166siftportal.ru 4167sify.com 4168signalxp.com 4169sika3.com 4170sikux.com 4171silenceofthespam.com 4172siliwangi.ga 4173silvercoin.life 4174sim-simka.ru 4175simaenaga.com 4176simpleitsecurity.info 4177simranaitech.space 4178sin.cl 4179sinaite.net 4180sind-hier.com 4181sind-wir.com 4182sindhier.com 4183sindwir.com 4184sinema.ml 4185sinfiltro.cl 4186singlespride.com 4187sinnlos-mail.de 4188sino.tw 4189sinorto.com 4190siteinfox.com 4191siteposter.net 4192six25.biz 4193sizzlemctwizzle.com 4194sjuaq.com 4195skeefmail.com 4196skrak.com 4197skrx.tk 4198sky-inbox.com 4199sky-ts.de 4200skygazerhub.com 4201skyrt.de 4202slapsfromlastnight.com 4203slaskpost.se 4204slave-auctions.net 4205slippery.email 4206slipry.net 4207slopsbox.com 4208slothmail.net 4209slushmail.com 4210sluteen.com 4211sly.io 4212smailpro.com 4213smallker.tk 4214smapfree24.com 4215smapfree24.de 4216smapfree24.eu 4217smapfree24.info 4218smapfree24.org 4219smartemailbox.co 4220smartnator.com 4221smarttalent.pw 4222smarttickethub.com 4223smashmail.de 4224smellfear.com 4225smellrear.com 4226smellypotato.tk 4227smeux.com 4228smncloud.com 4229smtp99.com 4230smwg.info 4231smykwb.com 4232snakebutt.com 4233snakemail.com 4234snapbx.com 4235snapmail.cc 4236snapmail.site 4237snapwet.com 4238sneakmail.de 4239snece.com 4240soc123.net 4241social-mailer.tk 4242socialfurry.org 4243sociallymediocre.com 4244socoori.com 4245sofia.re 4246sofimail.com 4247sofort-mail.de 4248sofortmail.de 4249sofrge.com 4250softkey-office.ru 4251softpls.asia 4252sogetthis.com 4253sohai.ml 4254sohus.cn 4255soioa.com 4256soisz.com 4257solar-impact.pro 4258solarnyx.com 4259solarunited.net 4260solarunited.org 4261solerbe.net 4262solkill.store 4263solvemail.info 4264solventtrap.wiki 4265somelora.com 4266somoj.com 4267songsign.com 4268sonjj.edu.pl 4269sonshi.cf 4270soodmail.com 4271soodomail.com 4272soodonims.com 4273soombo.com 4274soon.it 4275soscandia.org 4276soyboy.observer 4277sozenit.com 4278spacebazzar.ru 4279spacehotline.com 4280spam-be-gone.com 4281spam.care 4282spam.ceo 4283spam.la 4284spam.org.es 4285spam.su 4286spam4.me 4287spamail.de 4288spamarrest.com 4289spamavert.com 4290spambob.com 4291spambob.net 4292spambob.org 4293spambog.com 4294spambog.de 4295spambog.net 4296spambog.ru 4297spambooger.com 4298spambox.info 4299spambox.me 4300spambox.org 4301spambox.us 4302spamcero.com 4303spamcon.org 4304spamcorptastic.com 4305spamcowboy.com 4306spamcowboy.net 4307spamcowboy.org 4308spamday.com 4309spamdecoy.net 4310spamex.com 4311spamfellas.com 4312spamfighter.cf 4313spamfighter.ga 4314spamfighter.gq 4315spamfighter.ml 4316spamfighter.tk 4317spamfree.eu 4318spamfree24.com 4319spamfree24.de 4320spamfree24.eu 4321spamfree24.info 4322spamfree24.net 4323spamfree24.org 4324spamgoes.in 4325spamherelots.com 4326spamhereplease.com 4327spamhole.com 4328spamify.com 4329spaminator.de 4330spamkill.info 4331spaml.com 4332spaml.de 4333spamlot.net 4334spammer.fail 4335spammotel.com 4336spammy.host 4337spamobox.com 4338spamoff.de 4339spamsalad.in 4340spamsandwich.com 4341spamslicer.com 4342spamsphere.com 4343spamspot.com 4344spamstack.net 4345spamthis.co.uk 4346spamthis.network 4347spamthisplease.com 4348spamtrail.com 4349spamtrap.ro 4350spamtroll.net 4351spamwc.cf 4352spamwc.ga 4353spamwc.gq 4354spamwc.ml 4355speedgaus.net 4356sperma.cf 4357spicysoda.com 4358spikio.com 4359spindl-e.com 4360spinly.net 4361splitparents.com 4362spoofmail.de 4363sportrid.com 4364spr.io 4365spritzzone.de 4366spruzme.com 4367spybox.de 4368spymail.com 4369spymail.one 4370squizzy.de 4371squizzy.net 4372sroff.com 4373sry.li 4374ssoia.com 4375sssig.one 4376stacys.mom 4377stanfordujjain.com 4378starlight-breaker.net 4379starmail.net 4380starpower.space 4381startfu.com
4382startkeys.com 4383statdvr.com 4384stathost.net 4385statiix.com 4386stayhome.li 4387steam-area.ru 4388steambot.net 4389stexsy.com 4390stinkefinger.net 4391stop-my-spam.cf 4392stop-my-spam.com 4393stop-my-spam.ga 4394stop-my-spam.ml 4395stop-my-spam.pp.ua 4396stop-my-spam.tk 4397stopspam.app 4398storebanme.com 4399storegmail.net 4400storiqax.top 4401storj99.com 4402storj99.top 4403streetwisemail.com 4404stromox.com 4405stuckmail.com 4406stuffmail.de 4407stufmail.com 4408stumpfwerk.com 4409stylist-volos.ru 4410submic.com 4411suburbanthug.com 4412suckmyd.com 4413sudern.de 4414sueshaw.com 4415suexamplesb.com 4416suftwari.com 4417suioe.com 4418super-auswahl.de 4419super.lgbt 4420superblohey.com 4421supergreatmail.com 4422supermailer.jp 4423superplatyna.com 4424superrito.com 4425supersave.net 4426superstachel.de 4427superyp.com 4428supporttc.com 4429suremail.info 4430sute.jp 4431svetims.com 4432svip520.cn 4433svk.jp 4434svxr.org 4435sweetpotato.ml 4436sweetxxx.de 4437swift-mail.net 4438swift10minutemail.com 4439swsdz.com 4440syinxun.com 4441sylvannet.com 4442symphonyresume.com 4443synarca.com 4444syncax.com 4445syosetu.gq 4446syujob.accountants 4447szerz.com 4448tacomail.de 4449tafmail.com 4450tafoi.gr 4451taglead.com 4452tagmymedia.com 4453tagyourself.com 4454taimb.com 4455talemarketing.com 4456talkinator.com 4457talmetry.com 4458tanlanav.com 4459tanukis.org 4460taobudao.com 4461tapchicuoihoi.com 4462taphear.com 4463tapi.re 4464tartinemoi.com 4465tarzanmail.cf 4466tastmemail.com 4467tastrg.com 4468tatsu.uk 4469taugr.com 4470taukah.com 4471taxibmt.com 4472tb-on-line.net 4473tbgroupconsultants.com 4474tcwlm.com 4475tcwlx.com 4476tdtda.com 4477tech69.com 4478techblast.ch 4479techemail.com 4480techgroup.me 4481technoproxy.ru 4482techusa.org 4483teerest.com 4484teewars.org 4485tefl.ro 4486teihu.com 4487telecomix.pl 4488teleg.eu 4489telegmail.com 4490teleworm.com 4491teleworm.us 4492teligmail.site 4493telimail.online 4494tellos.xyz 4495telvetto.com 4496temailz.com 4497teml.net 4498temp-link.net 4499temp-mail.best 4500temp-mail.cfd 4501temp-mail.com 4502temp-mail.de 4503temp-mail.gg 4504temp-mail.lol 4505temp-mail.now 4506temp-mail.org 4507temp-mail.pp.ua 4508temp-mail.ru 4509temp-mails.com 4510tempail.com 4511tempalias.com 4512tempblockchain.com 4513tempe-mail.com 4514tempemail.biz 4515tempemail.co.za 4516tempemail.com 4517tempemail.net 4518tempemailgen.com 4519tempemaill.com 4520tempemailo.org 4521tempinbox.co.uk 4522tempinbox.com 4523tempmail.best 4524tempmail.cn 4525tempmail.co 4526tempmail.de 4527tempmail.email 4528tempmail.eu 4529tempmail.id.vn 4530tempmail.ing 4531tempmail.io.vn 4532tempmail.it 4533tempmail.ninja 4534tempmail.plus 4535tempmail.pp.ua 4536tempmail.us 4537tempmail.vip 4538tempmail.world 4539tempmail.ws 4540tempmail101.com 4541tempmail2.com 4542tempmaildemo.com 4543tempmailer.com 4544tempmailer.de 4545tempmailer.net 4546tempmailfree.net 4547tempmailo.com 4548tempmails.net 4549tempmailyo.org 4550tempomail.fr 4551tempomail.org 4552tempomailo.site 4553temporalemail.org 4554temporam.com 4555temporam.online 4556temporam.xin 4557temporam.xyz 4558temporarily.de 4559temporarioemail.com.br 4560temporarly.com 4561temporary-mail.net 4562temporaryemail.net 4563temporaryemail.us 4564temporaryforwarding.com 4565temporaryinbox.com 4566temporarymailaddress.com 4567tempp-mails.com 4568temppppo.store 4569tempr.email 4570tempsky.com 4571temptami.com 4572tempthe.net 4573tempymail.com 4574tensi.org 4575tenull.com 4576ternaklele.ga 4577testore.co 4578testudine.com 4579tevstart.com 4580tgduck.com 4581thanksnospam.info 4582thankyou2010.com 4583thatim.info 4584thc.st 4585the23app.com 4586theaviors.com 4587thebearshark.com 4588thecarinformation.com 4589thechildrensfocus.com 4590thecity.biz 4591thecloudindex.com 4592thediamants.org 4593thedirhq.info 4594theeyeoftruth.com 4595thegrampians.net 4596thejoker5.com 4597thelightningmail.net 4598thelimestones.com 4599thembones.com.au 4600themegreview.com 4601themostemail.com 4602thereddoors.online 4603theroyalweb.club 4604thescrappermovie.com 4605thespamfather.com 4606theteastory.info 4607thetechnext.net 4608thex.ro 4609thichanthit.com 4610thietbivanphong.asia 4611thirifara.com 4612thisisnotmyrealemail.com 4613thismail.net 4614thisurl.website 4615thnikka.com 4616thoas.ru 4617thraml.com 4618thrma.com 4619throam.com 4620thrott.com 4621throwam.com 4622throwawayemailaddress.com 4623throwawaymail.com 4624throwawaymail.pp.ua 4625throya.com 4626thrubay.com 4627thshyo.org 4628thunderbolt.science 4629thunkinator.org 4630thxmate.com 4631tianmi.me 4632tiapz.com 4633tic.ec 4634tidissajiiu.com 4635tiffincrane.com 4636tikanony.com 4637tiksofi.uk 4638tiktakgrab.shop 4639tiktakgrabber.com 4640tilien.com 4641timgiarevn.com 4642timkassouf.com 4643tinoza.org 4644tinpho.com 4645tinytimer.org 4646tinyurl24.com 4647tipsb.com 4648tittbit.in 4649tiv.cc 4650tivo.camdvr.org 4651tizi.com 4652tkitc.de 4653tlpn.org 4654tmail.com 4655tmail.edu.rs 4656tmail.gg 4657tmail.io 4658tmail.link 4659tmail.ws 4660tmail1.org 4661tmail2.org 4662tmail3.com 4663tmail3.org 4664tmail4.org 4665tmail5.org 4666tmail6.com 4667tmail9.com 4668tmaile.net 4669tmailinator.com 4670tmailor.com 4671tmails.net 4672tmmbt.net 4673tmpbox.net 4674tmpemails.com 4675tmpeml.com 4676tmpeml.info 4677tmpjr.me 4678tmpmail.net 4679tmpmail.org 4680tmpmailtor.com 4681tmpnator.live 4682tmpx.sa.com 4683tnbeta.com 4684toaik.com 4685toddsbighug.com 4686tofeat.com 4687tohru.org 4688toiea.com 4689tokem.co 4690token.ro 4691tokenmail.de 4692tonaeto.com 4693tonne.to 4694tonymanso.com 4695too.li 4696toolbox.ovh 4697toolnator.plus 4698toomail.biz 4699toon.ml 4700top-shop-tovar.ru 4701top101.de 4702top1mail.ru 4703top1post.ru 4704topdatamaster.com 4705topinrock.cf 4706topmail2.com 4707topmail2.net 4708topofertasdehoy.com 4709topranklist.de 4710toprumours.com 4711topvu.net 4712tormail.org 4713tospage.com 4714toss.pw 4715tosunkaya.com 4716totallynotfake.net 4717totalvista.com 4718totesmail.com 4719totoan.info 4720tourcc.com 4721tozya.com 4722tp-qa-mail.com 4723tppp.one 4724tppp.online 4725tpwlb.com 4726tqoai.com 4727tqosi.com 4728trackden.com 4729tradermail.info
4730tranceversal.com 4731translateid.com 4732trap-mail.de 4733trash-amil.com 4734trash-mail.at 4735trash-mail.cf 4736trash-mail.com 4737trash-mail.de 4738trash-mail.ga 4739trash-mail.gq 4740trash-mail.ml 4741trash-mail.tk 4742trash-me.com 4743trash2009.com 4744trash2010.com 4745trash2011.com 4746trashcanmail.com 4747trashdevil.com 4748trashdevil.de 4749trashemail.de 4750trashemails.de 4751trashinbox.com 4752trashmail.at 4753trashmail.com 4754trashmail.de 4755trashmail.fr 4756trashmail.gq 4757trashmail.io 4758trashmail.me 4759trashmail.net 4760trashmail.org 4761trashmail.se 4762trashmail.ws 4763trashmailer.com 4764trashmailgenerator.de 4765trashmails.com 4766trashymail.com 4767trashymail.net 4768trasz.com 4769trayna.com 4770trbvm.com 4771trbvn.com 4772trbvo.com 4773trend-maker.ru 4774trfu.to 4775trgfu.com 4776trgovinanaveliko.info 4777trialmail.de 4778trickmail.net 4779trillianpro.com 4780triots.com 4781trixtrux1.ru 4782trolebrotmail.com 4783trollproject.com 4784tropicalbass.info 4785tropovenamail.com 4786trungtamtoeic.com 4787truthfinderlogin.com 4788tryalert.com 4789tryninja.io 4790trythe.net 4791tryzoe.com 4792tsderp.com 4793tshirtsavvy.com 4794ttirv.org 4795ttszuo.xyz 4796tualias.com 4797tuamaeaquelaursa.com 4798tumroc.net 4799tuofs.com 4800tupmail.com 4801turoid.com 4802turual.com 4803turuma.com 4804tutuapp.bid 4805tvchd.com 4806tverya.com 4807twinmail.de 4808twkly.ml 4809twocowmail.net 4810twoweirdtricks.com 4811twzhhq.online 4812txcct.com 4813txen.de 4814txtadvertise.com 4815tyhe.ro 4816tyldd.com 4817tympe.net 4818uacro.com 4819uber-mail.com 4820ubinert.com 4821ubismail.net 4822ubm.md 4823ucche.us 4824ucupdong.ml 4825uemail99.com 4826ufacturing.com 4827ufokeuabmail.com 4828ug.wtf 4829uggsrock.com 4830uguuchantele.com 4831uhe2.com 4832uhhu.ru 4833uiemail.com 4834uiu.us 4835ujijima1129.gq 4836uk.to 4837ukm.ovh 4838ultra.fyi 4839ultrada.ru 4840uma3.be 4841umail.net 4842umil.net 4843undeadbank.com 4844underseagolf.com 4845undo.it 4846unicodeworld.com 4847unids.com 4848unimark.org 4849uniromax.com 4850unit7lahaina.com 4851universall.me 4852unmail.ru 4853unratito.com 4854uooos.com 4855uorak.com 4856upliftnow.com 4857uplipht.com 4858uploadnolimit.com 4859upozowac.info 4860upphim.net 4861upsnab.net 4862urfunktion.se 4863urhen.com 4864uroid.com 4865us.af 4866us.to 4867usa.cc 4868usa.edu.pl 4869usako.net 4870usbc.be 4871usdtbeta.com 4872used-product.fr 4873ushijima1129.cf 4874ushijima1129.ga 4875ushijima1129.gq 4876ushijima1129.ml 4877ushijima1129.tk 4878usm.ovh 4879ustorp.com 4880utiket.us 4881uu.gl 4882uu2.ovh 4883uue.edu.pl 4884uuf.me 4885uuii.in 4886uwork4.us 4887uyhip.com 4888uz8.net 4889vaasfc4.tk 4890vaati.org 4891vafyxh.com 4892valanides.com 4893valemail.net 4894valhalladev.com 4895vankin.de 4896vasteron.com 4897vaupk.org 4898vbv.cards 4899vcois.com 4900vctel.com 4901vda.ro 4902vddaz.com 4903vdig.com 4904veanlo.com 4905veb37.com 4906veltexline.com 4907vemomail.win 4908venompen.com 4909veo.kr 4910ver0.cf 4911ver0.ga 4912ver0.gq 4913ver0.ml 4914ver0.tk 4915vercelli.cf 4916vercelli.ga 4917vercelli.gq 4918vercelli.ml 4919verdejo.com 4920vermutlich.net 4921vertexium.net 4922veruvercomail.com 4923veryday.ch 4924veryday.eu 4925veryday.info 4926veryrealemail.com 4927ves.ink 4928vesa.pw 4929vetra.cyou 4930vevs.de 4931vexi.my 4932via.tokyo.jp 4933vibzi.net 4934vickaentb.tk 4935victime.ninja 4936victoriaalison.com 4937victoriantwins.com 4938vidchart.com 4939videotoptop.com 4940viditag.com 4941vidwobox.com 4942viewcastmedia.com 4943viewcastmedia.net 4944viewcastmedia.org 4945vigilantkeep.net 4946vigoneo.com 4947vikingsonly.com 4948vinakoop.com 4949vinakop.com 4950vinernet.com 4951vintomaper.com 4952vipepe.com 4953vipmail.name 4954vipmail.pw 4955vips.pics 4956vipxm.net 4957viralplays.com 4958virtualemail.info 4959visal007.tk 4960visal168.cf 4961visal168.ga 4962visal168.gq 4963visal168.ml 4964visal168.tk 4965visignal.com 4966viv2.com 4967vixletdev.com 4968vixtricks.com 4969vjoid.ru 4970vjoid.store 4971vjuum.com 4972vkbb.ru 4973vkbb.store 4974vkbt.ru 4975vkbt.store 4976vkcbt.ru 4977vkcbt.store 4978vkcode.ru 4979vkfu.ru 4980vkfu.store 4981vkpr.store 4982vkr1.com 4983vkrr.ru 4984vkrr.store 4985vlemi.com 4986vlrregulatory.com 4987vmailing.info 4988vmani.com 4989vmpanda.com 4990vn-one.com 4991vncctv.org 4992vnedu.me 4993vobau.net 4994voidbay.com 4995volaj.com 4996volku.org 4997voltaer.com 4998vomoto.com 4999vorga.org 5000votiputox.org 5001voxelcore.com 5002voxinh.net 5003vpn.st 5004vpnseat.com 5005vps30.com 5006vps911.net 5007vradportal.com 5008vremonte24-store.ru 5009vrmtr.com 5010vsimcard.com 5011vsmailpro.com 5012vssms.com 5013vtxmail.us 5014vubby.com 5015vuiy.pw 5016vuket.org 5017vulca.sbs 5018vusra.com 5019vvatxiy.com 5020vwhins.com 5021vxsolar.com 5022vztc.com 5023w-asertun.ru 5024w3internet.co.uk 5025wacold.com 5026waivey.com 5027wakingupesther.com 5028walala.org 5029walkmail.net 5030walkmail.ru 5031wallm.com 5032wanko.be 5033wanva.shop 5034watch-harry-potter.com 5035watchever.biz 5036watchfull.net 5037watchironman3onlinefreefullmovie.com 5038waterisgone.com 5039watrf.com 5040wazabi.club 5041wbdev.tech 5042wbml.net 5043web-contact.info 5044web-ideal.fr 5045web-inc.net 5046web-mail.pp.ua 5047web2mailco.com 5048webcontact-france.eu 5049webemail.me 5050webhook.site 5051webm4il.info 5052webmail24.top 5053webofip.com 5054webscash.com 5055webtrip.ch 5056webuser.in 5057wecp.ru 5058wecp.store 5059wee.my 5060weekfly.com 5061wef.gr 5062weg-werf-email.de 5063wegwerf-email-addressen.de 5064wegwerf-email-adressen.de 5065wegwerf-email.at 5066wegwerf-email.de 5067wegwerf-email.net 5068wegwerf-emails.de 5069wegwerfadresse.de 5070wegwerfemail.com 5071wegwerfemail.de 5072wegwerfemail.info 5073wegwerfemail.net 5074wegwerfemail.org 5075wegwerfemailadresse.com 5076wegwerfmail.de 5077wegwerfmail.info 5078wegwerfmail.net 5079wegwerfmail.org 5080wegwerpmailadres.nl 5081wegwrfmail.de 5082wegwrfmail.net 5083wegwrfmail.org 5084weizixu.com 5085wekawa.com 5086welikecookies.com 5087wellsfargocomcardholders.com 5088wemel.top 5089wenkuu.com 5090wentcity.com 5091wep.email 5092wetrainbayarea.com 5093wetrainbayarea.org 5094wfgdfhj.tk 5095wg0.com 5096wh4f.org 5097whaaaaaaaaaat.com 5098whatagarbage.com 5099whatiaas.com 5100whatifanalytics.com 5101whatpaas.com 5102whatsaas.com 5103whiffles.org
5104whopy.com 5105whyspam.me 5106wibblesmith.com 5107wickmail.net 5108widaryanto.info 5109widget.gg 5110wiemei.com 5111wierie.tk 5112wifimaple.com 5113wifioak.com 5114wikfee.com 5115wikidocuslava.ru 5116wilemail.com 5117willhackforfood.biz 5118willselfdestruct.com 5119wimsg.com 5120winemaven.info 5121winocs.com 5122wins.com.br 5123wir-sind.com 5124wireconnected.com 5125wishy.fr 5126wivstore.com 5127wlist.ro 5128wlsom.com 5129wmail.cf 5130wmail.club 5131wnbaldwy.com 5132wokcy.com 5133wolfmail.ml 5134wolfsmail.tk 5135wollan.info 5136womp-wo.mp 5137woopros.com 5138workingtall.com 5139worldlylife.store 5140worldspace.link 5141wpdork.com 5142wpg.im 5143wralawfirm.com 5144writeme.us 5145wronghead.com 5146ws.gy 5147wsym.de 5148wsypc.com 5149wudet.men 5150wuespdj.xyz 5151wupics.com 5152wuuvo.com 5153wuzak.com 5154wuzup.net 5155wuzupmail.net 5156wwc8.com 5157wwjmp.com 5158wwvk.ru 5159wwvk.store 5160wwwnew.eu 5161wxnw.net 5162wyoxafp.com 5163wywnxa.com 5164wzofit.com 5165x-lab.net 5166x0q.net 5167x24.com 5168xagloo.co 5169xagloo.com 5170xbaby69.top 5171xcode.ro 5172xcodes.net 5173xcompress.com 5174xcoxc.com 5175xcpy.com 5176xemaps.com 5177xemne.com 5178xenta.cfd 5179xents.com 5180xepa.ru 5181xfavaj.com 5182xidealx.com 5183ximenor.site 5184xjoi.com 5185xkx.me 5186xkxkud.com 5187xl.cx 5188xmailer.be 5189xmailtm.com 5190xmaily.com 5191xn--9kq967o.com 5192xn--d-bga.net 5193xn--yaho-sqa.com 5194xojxe.com 5195xost.us 5196xoxox.cc 5197xperiae5.com 5198xrap.de 5199xstyled.net 5200xvx.us 5201xww.ro 5202xxhamsterxx.ga 5203xxi2.com 5204xxl.st 5205xxlocanto.us 5206xxolocanto.us 5207xxqx3802.com 5208xxvk.ru 5209xxvk.store 5210xxxhi.cc 5211xy9ce.tk 5212xylar.ru 5213xylar.store 5214xyzfree.net 5215xzsok.com 5216yabai-oppai.tk 5217yabes.ovh 5218yahmail.top 5219yahooproduct.net 5220yamail.win 5221yanet.me 5222yannmail.win 5223yapped.net 5224yaqp.com 5225yarnpedia.ga 5226ycare.de 5227ycn.ro 5228ye.vc 5229yecp.ru 5230yecp.store 5231yedi.org 5232yeezus.ru 5233yep.it 5234yermail.net 5235yhg.biz 5236ynmrealty.com 5237yodx.ro 5238yogamaven.com 5239yoggm.com 5240yogirt.com 5241yomail.edu.pl 5242yomail.info 5243yoo.ro 5244yopmail.com 5245yopmail.fr 5246yopmail.gq 5247yopmail.net 5248yopmail.pp.ua 5249yordanmail.cf 5250you-spam.com 5251yougotgoated.com 5252youmail.ga 5253youmailr.com 5254youneedmore.info 5255youpymail.com 5256your5.ru 5257your5.store 5258yourdomain.com 5259youremail.cf
5260yourewronghereswhy.com 5261yourlms.biz 5262yourspamgoesto.space 5263yourtube.ml 5264youxiang.dev 5265yroid.com 5266yspend.com 5267ytnhy.com 5268ytpayy.com 5269yugasandrika.com 5270yui.it 5271yuki.ren 5272yun.pics 5273yuoia.com 5274yuurok.com 5275ywzmb.top 5276yxdad.ru 5277yxdad.store 5278yxzx.net 5279yyolf.net 5280yzm.de 5281z-o-e-v-a.ru 5282z0d.eu 5283z1p.biz 5284z86.ru 5285zain.site 5286zainmax.net 5287zaktouni.fr 5288zarabotokdoma11.ru 5289zarkbin.store 5290zasod.com 5291zaym-zaym.ru 5292zcovz.ru 5293zcovz.store 5294zcrcd.com 5295zdenka.net 5296ze.tc 5297zebins.com 5298zebins.eu 5299zehnminuten.de 5300zehnminutenmail.de 5301zemzar.net 5302zenbyul.com 5303zepp.dk 5304zeronerbacomail.com 5305zetmail.com 5306zfymail.com 5307zhaoqian.ninja 5308zhaoyuanedu.cn 5309zhcne.com 5310zhewei88.com 5311zhorachu.com 5312zik.dj 5313zipcad.com 5314zipcatfish.com 5315zipo1.gq 5316zippymail.info 5317zipsendtest.com 5318zira.my 5319ziragold.com 5320zivox.sbs 5321zizo7.com 5322zmail.cam 5323zoaxe.com 5324zoemail.com 5325zoemail.net 5326zoemail.org 5327zoetropes.org 5328zombie-hive.com 5329zomg.info 5330zsero.com 5331zudpck.com 5332zumpul.com 5333zv68.com 5334zvvzuv.com 5335zx81.ovh 5336zxcv.com 5337zxcvbnm.com 5338zymuying.com 5339zyns.com 5340zzi.us 5341zzrgg.com 5342zzz.com 5343`,nk=new Set(Yhe.split(` 5344`).map(t=>t.trim().toLowerCase()).filter(t=>t.length>0)),Xhe=["badfist.com","temp-mail.org"];Xhe.forEach(t=>{nk.add(t.toLowerCase())});function Khe(t){return nk.has(t.toLowerCase())}function Qhe(t){const e=t.toLowerCase().split("@")[1];return e?Khe(e):!1}function Zhe(t){const e=t.split("@")[0];return/^[a-z]{4,8}\d{3,6}$/i.test(e)}nk.size;function hy(t){return!t||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?{valid:!1,error:"Please enter a valid email address"}:Qhe(t)?{valid:!1,error:"Temporary email addresses are not allowed. Please use a permanent email."}:Zhe(t)?{valid:!1,error:"This email pattern is not allowed. Please use a standard email address."}:{valid:!0}}function N0(t){if(!t||t.length<8)return{valid:!1,error:"Password must be at least 8 characters"};const e=/\d/.test(t),n=/[a-zA-Z]/.test(t);return!e||!n?{valid:!1,error:"Password must contain both letters and numbers"}:{valid:!0}}const FV=E.createContext(void 0);function UV({children:t}){const[e,n]=E.useState(null),[r,i]=E.useState(!0),{toast:s}=lu();E.useEffect(()=>{Yt.auth.getSession().then(({data:{session:m}})=>{n((m==null?void 0:m.user)??null),i(!1)});const{data:{subscription:f}}=Yt.auth.onAuthStateChange(async(m,v)=>{n((v==null?void 0:v.user)??null),i(!1),m==="SIGNED_IN"&&s({title:"Welcome back!",description:"You've successfully signed in."})});return()=>f.unsubscribe()},[s]);const o=async(f,m)=>{const v=hy(f);if(!v.valid)throw s({title:"Invalid email",description:v.error,variant:"destructive"}),new Error(v.error);const p=N0(m);if(!p.valid)throw s({title:"Invalid password",description:p.error,variant:"destructive"}),new Error(p.error);const{error:g}=await Yt.auth.signUp({email:f,password:m,options:{emailRedirectTo:`${window.location.origin}/dashboard`}});if(g)throw s({title:"Sign up failed",description:g.message,variant:"destructive"}),g},a=async(f,m)=>{try{const{data:v,error:p}=await Yt.functions.invoke("secure-signin",{body:{email:f,password:m}});if(v!=null&&v.error){v.error.includes("Account temporarily locked")||v.error.includes("Account locked")||v.error.includes("too many failed login attempts")?s({title:"Account Locked",description:v.error,variant:"destructive",duration:1e4}):s({title:"Sign in failed",description:v.error,variant:"destructive"});return}if(p){s({title:"Connection error",description:"Unable to connect to authentication service. Please try again.",variant:"destructive"});return}v!=null&&v.session&&await Yt.auth.setSession({access_token:v.session.access_token,refresh_token:v.session.refresh_token})}catch(v){console.error("Unexpected sign in error:",v),s({title:"Sign in failed",description:"An unexpected error occurred. Please try again.",variant:"destructive"})}},c=async f=>{const{error:m}=await Yt.auth.signInWithOAuth({provider:f,options:{redirectTo:`${window.location.origin}/dashboard`}});if(m)throw s({title:"OAuth sign in failed",description:m.message,variant:"destructive"}),m},u=async()=>{const{error:f}=await Yt.auth.signOut();if(f)throw s({title:"Sign out failed",description:f.message,variant:"destructive"}),f;s({title:"Signed out",description:"You've been signed out successfully."})},d=async f=>{try{const{data:m,error:v}=await Yt.functions.invoke("reset-password",{body:{email:f.toLowerCase(),redirectTo:`${window.location.origin}/reset-password`}});if((m==null?void 0:m.code)===429){s({title:"Too many attempts",description:m.error||"Please wait before trying again.",variant:"destructive"});return}if(m!=null&&m.error||v){s({title:"Error",description:"Unable to process request. Please try again later.",variant:"destructive"});return}s({title:"Check your email",description:"If an account exists with that email, you will receive a password reset link shortly."})}catch(m){console.error("Reset password error:",m),s({title:"Error",description:"Unable to process request. Please try again later.",variant:"destructive"})}},h=async f=>{const{error:m}=await Yt.auth.updateUser({password:f});if(m)throw s({title:"Password update failed",description:m.message,variant:"destructive"}),m;s({title:"Password updated",description:"Your password has been changed successfully."})};return l.jsx(FV.Provider,{value:{user:e,loading:r,signUp:o,signIn:a,sign
vendor: 28,361 bytes, line 5344
5344InWithOAuth:c,signOut:u,resetPassword:d,updatePassword:h},children:t})}function Tl(){const t=E.useContext(FV);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}const rk=E.createContext({});function Tp(t){const e=E.useRef(null);return e.current===null&&(e.current=t()),e.current}const ik=typeof window<"u",bS=ik?E.useLayoutEffect:E.useEffect,wS=E.createContext(null);function sk(t,e){t.indexOf(e)===-1&&t.push(e)}function ok(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Na=(t,e,n)=>n>e?e:n<t?t:n;let Rm=()=>{};const Al={},BV=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function zV(t){return typeof t=="object"&&t!==null}const $V=t=>/^0[^.\s]+$/u.test(t);function ak(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ki=t=>t,Jhe=(t,e)=>n=>e(t(n)),k0=(...t)=>t.reduce(Jhe),Pm=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class lk{constructor(){this.subscriptions=[]}add(e){return sk(this.subscriptions,e),()=>ok(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ta=t=>t*1e3,Qs=t=>t/1e3;function ck(t,e){return e?t*(1e3/e):0}const HV=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,efe=1e-7,tfe=12;function nfe(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=HV(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>efe&&++a<tfe);return o}function O0(t,e,n,r){if(t===e&&n===r)return Ki;const i=s=>nfe(s,0,1,t,n);return s=>s===0||s===1?s:HV(i(s),e,r)}const VV=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,WV=t=>e=>1-t(1-e),GV=O0(.33,1.53,.69,.99),uk=WV(GV),qV=VV(uk),YV=t=>(t*=2)<1?.5*uk(t):.5*(2-Math.pow(2,-10*(t-1))),dk=t=>1-Math.sin(Math.acos(t)),XV=WV(dk),KV=VV(dk),rfe=O0(.42,0,1,1),ife=O0(0,0,.58,1),QV=O0(.42,0,.58,1),sfe=t=>Array.isArray(t)&&typeof t[0]!="number",ZV=t=>Array.isArray(t)&&typeof t[0]=="number",b5={linear:Ki,easeIn:rfe,easeInOut:QV,easeOut:ife,circIn:dk,circInOut:KV,circOut:XV,backIn:uk,backInOut:qV,backOut:GV,anticipate:YV},ofe=t=>typeof t=="string",w5=t=>{if(ZV(t)){Rm(t.length===4);const[e,n,r,i]=t;return O0(e,n,r,i)}else if(ofe(t))return Rm(b5[t]!==void 0),b5[t];return t},Mx=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],_5={value:null,addProjectionMetrics:null};function afe(t,e){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},c=0;function u(h){o.has(h)&&(d.schedule(h),t()),c++,h(a)}const d={schedule:(h,f=!1,m=!1)=>{const p=m&&i?n:r;return f&&o.add(h),p.has(h)||p.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(a=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),e&&_5.value&&_5.value.frameloop[e].push(c),c=0,n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const lfe=40;function JV(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Mx.reduce((x,w)=>(x[w]=afe(s,e?w:void 0),x),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:d,update:h,preRender:f,render:m,postRender:v}=o,p=()=>{const x=Al.useManualTiming?i.timestamp:performance.now();n=!1,Al.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,lfe),1)),i.timestamp=x,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),d.process(i),h.process(i),f.process(i),m.process(i),v.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(p))},g=()=>{n=!0,r=!0,i.isProcessing||t(p)};return{schedule:Mx.reduce((x,w)=>{const _=o[w];return x[w]=(S,T=!1,M=!1)=>(n||g(),_.schedule(S,T,M)),x},{}),cancel:x=>{for(let w=0;w<Mx.length;w++)o[Mx[w]].cancel(x)},state:i,steps:o}}const{schedule:rn,cancel:Zo,state:Ar,steps:BE}=JV(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ki,!0);let tw;function cfe(){tw=void 0}const Wi={now:()=>(tw===void 0&&Wi.set(Ar.isProcessing||Al.useManualTiming?Ar.timestamp:performance.now()),tw),set:t=>{tw=t,queueMicrotask(cfe)}},eW=t=>e=>typeof e=="string"&&e.startsWith(t),hk=eW("--"),ufe=eW("var(--"),fk=t=>ufe(t)?dfe.test(t.split("/*")[0].trim()):!1,dfe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ap={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},fy={...Ap,transform:t=>Na(0,1,t)},Rx={...Ap,default:1},cv=t=>Math.round(t*1e5)/1e5,mk=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hfe(t){return t==null}const ffe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pk=(t,e)=>n=>!!(typeof n=="string"&&ffe.test(n)&&n.startsWith(t)||e&&!hfe(n)&&Object.prototype.hasOwnProperty.call(n,e)),tW=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(mk);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},mfe=t=>Na(0,255,t),zE={...Ap,transform:t=>Math.round(mfe(t))},nd={test:pk("rgb","red"),parse:tW("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+zE.transform(t)+", "+zE.transform(e)+", "+zE.transform(n)+", "+cv(fy.transform(r))+")"};function pfe(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const CM={test:pk("#"),parse:pfe,transform:nd.transform},I0=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Kl=I0("deg"),Aa=I0("%"),gt=I0("px"),gfe=I0("vh"),vfe=I0("vw"),S5={...Aa,parse:t=>Aa.parse(t)/100,transform:t=>Aa.transform(t*100)},wf={test:pk("hsl","hue"),parse:tW("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Aa.transform(cv(e))+", "+Aa.transform(cv(n))+", "+cv(fy.transform(r))+")"},sr={test:t=>nd.test(t)||CM.test(t)||wf.test(t),parse:t=>nd.test(t)?nd.parse(t):wf.test(t)?wf.parse(t):CM.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?nd.transform(t):wf.transform(t),getAnimatableNone:t=>{const e=sr.parse(t);return e.alpha=0,sr.transform(e)}},yfe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xfe(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(mk))==null?void 0:e.length)||0)+(((n=t.match(yfe))==null?void 0:n.length)||0)>0}const nW="number",rW="color",bfe="var",wfe="var(",E5="${}",_fe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function my(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=e.replace(_fe,c=>(sr.test(c)?(r.color.push(s),i.push(rW),n.push(sr.parse(c))):c.startsWith(wfe)?(r.var.push(s),i.push(bfe),n.push(c)):(r.number.push(s),i.push(nW),n.push(parseFloat(c))),++s,E5)).split(E5);return{values:n,split:a,indexes:r,types:i}}function iW(t){return my(t).values}function sW(t){const{split:e,types:n}=my(t),r=e.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=e[o],i[o]!==void 0){const a=n[o];a===nW?s+=cv(i[o]):a===rW?s+=sr.transform(i[o]):s+=i[o]}return s}}const Sfe=t=>typeof t=="number"?0:sr.test(t)?sr.getAnimatableNone(t):t;function Efe(t){const e=iW(t);return sW(t)(e.map(Sfe))}const Zc={test:xfe,parse:iW,createTransformer:sW,getAnimatableNone:Efe};function $E(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Tfe({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=$E(c,a,t+1/3),s=$E(c,a,t),o=$E(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function r1(t,e){return n=>n>0?e:t}const Dn=(t,e,n)=>t+(e-t)*n,HE=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Afe=[CM,nd,wf],Cfe=t=>Afe.find(e=>e.test(t));function T5(t){const e=Cfe(t);if(!e)return!1;let n=e.parse(t);return e===wf&&(n=Tfe(n)),n}const A5=(t,e)=>{const n=T5(t),r=T5(e);if(!n||!r)return r1(t,e);const i={...n};return s=>(i.red=HE(n.red,r.red,s),i.green=HE(n.green,r.green,s),i.blue=HE(n.blue,r.blue,s),i.alpha=Dn(n.alpha,r.alpha,s),nd.transform(i))},MM=new Set(["none","hidden"]);function Mfe(t,e){return MM.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Rfe(t,e){return n=>Dn(t,e,n)}function gk(t){return typeof t=="number"?Rfe:typeof t=="string"?fk(t)?r1:sr.test(t)?A5:Nfe:Array.isArray(t)?oW:typeof t=="object"?sr.test(t)?A5:Pfe:r1}function oW(t,e){const n=[...t],r=n.length,i=t.map((s,o)=>gk(s)(s,e[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Pfe(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=gk(t[i])(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function jfe(t,e){const n=[],r={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const s=e.types[i],o=t.indexes[s][r[s]],a=t.values[o]??0;n[i]=a,r[s]++}return n}const Nfe=(t,e)=>{const n=Zc.createTransformer(e),r=my(t),i=my(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?MM.has(t)&&!i.values.length||MM.has(e)&&!r.values.length?Mfe(t,e):k0(oW(jfe(r,i),i.values),n):r1(t,e)};function aW(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Dn(t,e,n):gk(t)(t,e)}const kfe=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>rn.update(e,n),stop:()=>Zo(e),now:()=>Ar.isProcessing?Ar.timestamp:Wi.now()}},lW=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let s=0;s<i;s++)r+=Math.round(t(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},i1=2e4;function vk(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<i1;)e+=n,r=t.next(e);return e>=i1?1/0:e}function Ofe(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(vk(r),i1);return{type:"keyframes",ease:s=>r.next(i*s).value/e,duration:Qs(i)}}const Ife=5;function cW(t,e,n){const r=Math.max(e-Ife,0);return ck(n-t(r),e-r)}const Hn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},VE=.001;function Lfe({duration:t=Hn.duration,bounce:e=Hn.bounce,velocity:n=Hn.velocity,mass:r=Hn.mass}){let i,s,o=1-e;o=Na(Hn.minDamping,Hn.maxDamping,o),t=Na(Hn.minDuration,Hn.maxDuration,Qs(t)),o<1?(i=u=>{const d=u*o,h=d*t,f=d-n,m=RM(u,o),v=Math.exp(-h);return VE-f/m*v},s=u=>{const h=u*o*t,f=h*n+n,m=Math.pow(o,2)*Math.pow(u,2)*t,v=Math.exp(-h),p=RM(Math.pow(u,2),o);return(-i(u)+VE>0?-1:1)*((f-m)*v)/p}):(i=u=>{const d=Math.exp(-u*t),h=(u-n)*t+1;return-VE+d*h},s=u=>{const d=Math.exp(-u*t),h=(n-u)*(t*t);return d*h});const a=5/t,c=Ffe(i,s,a);if(t=Ta(t),isNaN(c))return{stiffness:Hn.stiffness,damping:Hn.damping,duration:t};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:t}}}const Dfe=12;function Ffe(t,e,n){let r=n;for(let i=1;i<Dfe;i++)r=r-t(r)/e(r);return r}function RM(t,e){return t*Math.sqrt(1-e*e)}const Ufe=["duration","bounce"],Bfe=["stiffness","damping","mass"];function C5(t,e){return e.some(n=>t[n]!==void 0)}function zfe(t){let e={velocity:Hn.velocity,stiffness:Hn.stiffness,damping:Hn.damping,mass:Hn.mass,isResolvedFromDuration:!1,...t};if(!C5(t,Bfe)&&C5(t,Ufe))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Na(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Hn.mass,stiffness:i,damping:s}}else{const n=Lfe(t);e={...e,...n,mass:Hn.mass},e.isResolvedFromDuration=!0}return e}function s1(t=Hn.visualDuration,e=Hn.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:c,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:m}=zfe({...n,velocity:-Qs(n.velocity||0)}),v=f||0,p=u/(2*Math.sqrt(c*d)),g=o-s,y=Qs(Math.sqrt(c/d)),b=Math.abs(g)<5;r||(r=b?Hn.restSpeed.granular:Hn.restSpeed.default),i||(i=b?Hn.restDelta.granular:Hn.restDelta.default);let x;if(p<1){const _=RM(y,p);x=S=>{const T=Math.exp(-p*y*S);return o-T*((v+p*y*g)/_*Math.sin(_*S)+g*Math.cos(_*S))}}else if(p===1)x=_=>o-Math.exp(-y*_)*(g+(v+y*g)*_);else{const _=y*Math.sqrt(p*p-1);x=S=>{const T=Math.exp(-p*y*S),M=Math.min(_*S,300);return o-T*((v+p*y*g)*Math.sinh(M)+_*g*Math.cosh(M))/_}}const w={calculatedDuration:m&&h||null,next:_=>{const S=x(_);if(m)a.done=_>=h;else{let T=_===0?v:0;p<1&&(T=_===0?Ta(v):cW(x,_,S));const M=Math.abs(T)<=r,A=Math.abs(o-S)<=i;a.done=M&&A}return a.value=a.done?o:S,a},toString:()=>{const _=Math.min(vk(w),i1),S=lW(T=>w.next(_*T).value,_,30);return _+"ms "+S},toTransition:()=>{}};return w}s1.applyToOptions=t=>{const e=Ofe(t,100,s1);return t.ease=e.ease,t.duration=Ta(e.duration),t.type="keyframes",t};function PM({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:c,restDelta:u=.5,restSpeed:d}){const h=t[0],f={done:!1,value:h},m=M=>a!==void 0&&M<a||c!==void 0&&M>c,v=M=>a===void 0?c:c===void 0||Math.abs(a-M)<Math.abs(c-M)?a:c;let p=n*e;const g=h+p,y=o===void 0?g:o(g);y!==g&&(p=y-h);const b=M=>-p*Math.exp(-M/r),x=M=>y+b(M),w=M=>{const A=b(M),C=x(M);f.done=Math.abs(A)<=u,f.value=f.done?y:C};let _,S;const T=M=>{m(f.value)&&(_=M,S=s1({keyframes:[f.value,v(f.value)],velocity:cW(x,M,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return T(0),{calculatedDuration:null,next:M=>{let A=!1;return!S&&_===void 0&&(A=!0,w(M),T(M)),_!==void 0&&M>=_?S.next(M-_):(!A&&w(M),f)}}}function $fe(t,e,n){const r=[],i=n||Al.mix||aW,s=t.length-1;for(let o=0;o<s;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||Ki:e;a=k0(c,a)}r.push(a)}return r}function yk(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(Rm(s===e.length),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=$fe(e,r,i),c=a.length,u=d=>{if(o&&d<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(d<t[h+1]);h++);const f=Pm(t[h],t[h+1],d);return a[h](f)};return n?d=>u(Na(t[0],t[s-1],d)):u}function Hfe(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Pm(0,e,r);t.push(Dn(n,1,i))}}function uW(t){const e=[0];return Hfe(e,t.length-1),e}function Vfe(t,e){return t.map(n=>n*e)}function Wfe(t,e){return t.map(()=>e||QV).splice(0,t.length-1)}function uv({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=sfe(r)?r.map(w5):w5(r),s={done:!1,value:e[0]},o=Vfe(n&&n.length===e.length?n:uW(e),t),a=yk(o,e,{ease:Array.isArray(i)?i:Wfe(e,i)});return{calculatedDuration:t,next:c=>(s.value=a(c),s.done=c>=t,s)}}const Gfe=t=>t!==null;function xk(t,{repeat:e,repeatType:n="loop"},r,i=1){const s=t.filter(Gfe),a=i<0||e&&n!=="loop"&&e%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const qfe={decay:PM,inertia:PM,tween:uv,keyframes:uv,spring:s1};function dW(t){typeof t.type=="string"&&(t.type=qfe[t.type])}class bk{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Yfe=t=>t/100;class _S extends bk{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Wi.now()&&this.tick(Wi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;dW(e);const{type:n=uv,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=e;let{keyframes:a}=e;const c=n||uv;c!==uv&&typeof a[0]!="number"&&(this.mixKeyframes=k0(Yfe,aW(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});s==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=vk(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:m,type:v,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,w=r;if(h){const M=Math.min(this.currentTime,i)/a;let A=Math.floor(M),C=M%1;!C&&M>=1&&(C=1),C===1&&A--,A=Math.min(A,h+1),!!(A%2)&&(f==="reverse"?(C=1-C,m&&(C-=m/a)):f==="mirror"&&(w=o)),x=Na(0,1,C)*a}const _=b?{done:!1,value:d[0]}:w.next(x);s&&(_.value=s(_.value));let{done:S}=_;!b&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return T&&v!==PM&&(_.value=xk(d,this.options,g,this.speed)),p&&p(_.value),T&&this.finish(),_}then(e,n){return this.finished.then(e,n)}get duration(){return Qs(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Qs(e)}get time(){return Qs(this.currentTime)}set time(e){var n;e=Ta(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Wi.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Qs(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:e=kfe,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Wi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Xfe(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const rd=t=>t*180/Math.PI,jM=t=>{const e=rd(Math.atan2(t[1],t[0]));return NM(e)},Kfe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:jM,rotateZ:jM,skewX:t=>rd(Math.atan(t[1])),skewY:t=>rd(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},NM=t=>(t=t%360,t<0&&(t+=360),t),M5=jM,R5=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),P5=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Qfe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:R5,scaleY:P5,scale:t=>(R5(t)+P5(t))/2,rotateX:t=>NM(rd(Math.atan2(t[6],t[5]))),rotateY:t=>NM(rd(Math.atan2(-t[2],t[0]))),rotateZ:M5,rotate:M5,skewX:t=>rd(Math.atan(t[4])),skewY:t=>rd(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function kM(t){return t.includes("scale")?1:0}function OM(t,e){if(!t||t==="none")return kM(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Qfe,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Kfe,i=a}if(!i)return kM(e);const s=r[e],o=i[1].split(",").map(Jfe);return typeof s=="function"?s(o):o[s]}const Zfe=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return OM(n,e)};function Jfe(t){return parseFloat(t.trim())}const Cp=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mp=new Set(Cp),j5=t=>t===Ap||t===gt,eme=new Set(["x","y","z"]),tme=Cp.filter(t=>!eme.has(t));function nme(t){const e=[];return tme.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const wd={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>OM(e,"x"),y:(t,{transform:e})=>OM(e,"y")};wd.translateX=wd.x;wd.translateY=wd.y;const _d=new Set;let IM=!1,LM=!1,DM=!1;function hW(){if(LM){const t=Array.from(_d).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=nme(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}LM=!1,IM=!1,_d.forEach(t=>t.complete(DM)),_d.clear()}function fW(){_d.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(LM=!0)})}function rme(){DM=!0,fW(),hW(),DM=!1}class wk{constructor(e,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(_d.add(this),IM||(IM=!0,rn.read(fW),rn.resolveKeyframes(hW))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const s=i==null?void 0:i.get(),o=e[e.length-1];if(s!==void 0)e[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&s===void 0&&i.set(e[0])}Xfe(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),_d.delete(this)}cancel(){this.state==="scheduled"&&(_d.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ime=t=>t.startsWith("--");function sme(t,e,n){ime(e)?t.style.setProperty(e,n):t.style[e]=n}const mW=ak(()=>window.ScrollTimeline!==void 0),ome={};function ame(t,e){const n=ak(t);return()=>ome[e]??n()}const pW=ame(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Fg=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,N5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fg([0,.65,.55,1]),circOut:Fg([.55,0,1,.45]),backIn:Fg([.31,.01,.66,-.59]),backOut:Fg([.33,1.53,.69,.99])};function gW(t,e){if(t)return typeof t=="function"?pW()?lW(t,e):"ease-out":ZV(t)?Fg(t):Array.isArray(t)?t.map(n=>gW(n,e)||N5.easeOut):N5[t]}function lme(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:c}={},u=void 0){const d={[e]:n};c&&(d.offset=c);const h=gW(a,i);Array.isArray(h)&&(d.easing=h);const f={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(d,f)}function vW(t){return typeof t=="function"&&"applyToOptions"in t}function cme({type:t,...e}){return vW(t)&&pW()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ume extends bk{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=e,Rm(typeof e.type!="string");const u=cme(e);this.animation=lme(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=xk(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):sme(n,r,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Qs(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Qs(e)}get time(){return Qs(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Ta(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&mW()?(this.animation.timeline=e,Ki):n(this)}}const yW={anticipate:YV,backInOut:qV,circInOut:KV};function dme(t){return t in yW}function hme(t){typeof t.ease=="string"&&dme(t.ease)&&(t.ease=yW[t.ease])}const k5=10;class fme extends ume{constructor(e){hme(e),dW(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new _S({...o,autoplay:!1}),c=Ta(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-k5).value,a.sample(c).value,k5),a.stop()}}const O5=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Zc.test(t)||t==="0")&&!t.startsWith("url("));function mme(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function pme(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const s=t[t.length-1],o=O5(i,e),a=O5(s,e);return!o||!a?!1:mme(t)||(n==="spring"||vW(n))&&r}function FM(t){t.duration=0,t.type="keyframes"}const gme=new Set(["opacity","clipPath","filter","transform"]),vme=ak(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function yme(t){var d;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=t;if(!(((d=e==null?void 0:e.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return vme()&&n&&gme.has(n)&&(n!=="transform"||!u)&&!c&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const xme=40;class bme extends bk{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:
5344o="loop",keyframes:a,name:c,motionValue:u,element:d,...h}){var v;super(),this.stop=()=>{var p,g;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=Wi.now();const f={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:c,motionValue:u,element:d,...h},m=(d==null?void 0:d.KeyframeResolver)||wk;this.keyframeResolver=new m(a,(p,g,y)=>this.onKeyframesResolved(p,g,f,!y),c,u,d),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=Wi.now(),pme(e,s,o,a)||((Al.instantAnimations||!c)&&(d==null||d(xk(e,r,n))),e[0]=e[e.length-1],FM(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>xme?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},m=!u&&yme(f)?new fme({...f,element:f.motionValue.owner.current}):new _S(f);m.finished.then(()=>this.notifyFinished()).catch(Ki),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),rme()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const wme=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _me(t){const e=wme.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function xW(t,e,n=1){const[r,i]=_me(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return BV(o)?parseFloat(o):o}return fk(i)?xW(i,e,n+1):i}function _k(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const bW=new Set(["width","height","top","left","right","bottom",...Cp]),Sme={test:t=>t==="auto",parse:t=>t},wW=t=>e=>e.test(t),_W=[Ap,gt,Aa,Kl,vfe,gfe,Sme],I5=t=>_W.find(wW(t));function Eme(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||$V(t):!0}const Tme=new Set(["brightness","contrast","saturate","opacity"]);function Ame(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(mk)||[];if(!r)return t;const i=n.replace(r,"");let s=Tme.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const Cme=/\b([a-z-]*)\(.*?\)/gu,UM={...Zc,getAnimatableNone:t=>{const e=t.match(Cme);return e?e.map(Ame).join(" "):t}},L5={...Ap,transform:Math.round},Mme={rotate:Kl,rotateX:Kl,rotateY:Kl,rotateZ:Kl,scale:Rx,scaleX:Rx,scaleY:Rx,scaleZ:Rx,skew:Kl,skewX:Kl,skewY:Kl,distance:gt,translateX:gt,translateY:gt,translateZ:gt,x:gt,y:gt,z:gt,perspective:gt,transformPerspective:gt,opacity:fy,originX:S5,originY:S5,originZ:gt},Sk={borderWidth:gt,borderTopWidth:gt,borderRightWidth:gt,borderBottomWidth:gt,borderLeftWidth:gt,borderRadius:gt,radius:gt,borderTopLeftRadius:gt,borderTopRightRadius:gt,borderBottomRightRadius:gt,borderBottomLeftRadius:gt,width:gt,maxWidth:gt,height:gt,maxHeight:gt,top:gt,right:gt,bottom:gt,left:gt,padding:gt,paddingTop:gt,paddingRight:gt,paddingBottom:gt,paddingLeft:gt,margin:gt,marginTop:gt,marginRight:gt,marginBottom:gt,marginLeft:gt,backgroundPositionX:gt,backgroundPositionY:gt,...Mme,zIndex:L5,fillOpacity:fy,strokeOpacity:fy,numOctaves:L5},Rme={...Sk,color:sr,backgroundColor:sr,outlineColor:sr,fill:sr,stroke:sr,borderColor:sr,borderTopColor:sr,borderRightColor:sr,borderBottomColor:sr,borderLeftColor:sr,filter:UM,WebkitFilter:UM},SW=t=>Rme[t];function EW(t,e){let n=SW(t);return n!==UM&&(n=Zc),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,658 bytes, line 5344
5344const Pme=new Set(["auto","none","0"]);function jme(t,e,n){let r=0,i;for(;r<t.length&&!i;){const s=t[r];typeof s=="string"&&!Pme.has(s)&&my(s).values.length&&(i=t[r]),r++}if(i&&n)for(const s of e)t[s]=EW(n,i)}class Nme extends wk{constructor(e,n,r,i,s){super(e,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let u=e[c];if(typeof u=="string"&&(u=u.trim(),fk(u))){const d=xW(u,n.current);d!==void 0&&(e[c]=d),c===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!bW.has(r)||e.length!==2)return;const[i,s]=e,o=I5(i),a=I5(s);if(o!==a)if(j5(o)&&j5(a))for(let c=0;c<e.length;c++){const u=e[c];typeof u=="string"&&(e[c]=parseFloat(u))}else wd[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||Eme(e[i]))&&r.push(i);r.length&&jme(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wd[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=wd[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
vendor: 3,481 bytes, line 5344
5344h(([c,u])=>{e.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function Ek(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const TW=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Tk(t){return zV(t)&&"offsetHeight"in t}const D5=30,kme=t=>!isNaN(parseFloat(t)),dv={current:void 0};class Ome{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=Wi.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Wi.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=kme(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new lk);const r=this.events[e].add(n);return e==="change"?()=>{r(),rn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return dv.current&&dv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Wi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>D5)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,D5);return ck(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zo(t,e){return new Ome(t,e)}const{schedule:Ak,cancel:lJe}=JV(queueMicrotask,!1),Ao={x:!1,y:!1};function AW(){return Ao.x||Ao.y}function Ime(t){return t==="x"||t==="y"?Ao[t]?null:(Ao[t]=!0,()=>{Ao[t]=!1}):Ao.x||Ao.y?null:(Ao.x=Ao.y=!0,()=>{Ao.x=Ao.y=!1})}function CW(t,e){const n=Ek(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function F5(t){return!(t.pointerType==="touch"||AW())}function Lme(t,e,n={}){const[r,i,s]=CW(t,n),o=a=>{if(!F5(a))return;const{target:c}=a,u=e(c,a);if(typeof u!="function"||!c)return;const d=h=>
5344{F5(h)&&(u(h),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const MW=(t,e)=>e?t===e?!0:MW(t,e.parentElement):!1,Ck=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Dme=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fme(t){return Dme.has(t.tagName)||t.tabIndex!==-1}const nw=new WeakSet;function U5(t){return e=>{e.key==="Enter"&&t(e)}}function WE(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ume=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=U5(()=>{if(nw.has(n))return;WE(n,"down");const i=U5(()=>{WE(n,"up")}),s=()=>WE(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function B5(t){return Ck(t)&&!AW()}function Bme(t,e,n={}){const[r,i,s]=CW(t,n),o=a=>{const c=a.currentTarget;if(!B5(a))return;nw.add(c);const u=e(c,a),d=(m,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),nw.has(c)&&nw.delete(c),B5(m)&&typeof u=="function"&&u(m,{success:v})},h=m=>{d(m,c===window||c===document||n.useGlobalTarget||MW(c,m.target))},f=m=>{d(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Tk(a)&&(a.addEventListener("focus",u=>Ume(u,i)),!Fme(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Mk(t){return zV(t)&&"ownerSVGElement"in t}const rw=new WeakMap;let Ql;const RW=(t,e,n)=>(r,i)=>i&&i[0]?i[0][t+"Size"]:Mk(r)&&"getBBox"in r?r.getBBox()[e]:r[n],zme=RW("inline","width","offsetWidth"),$me=RW("block","height","offsetHeight");function Hme({target:t,borderBoxSize:e}){var n;(n=rw.get(t))==null||n.forEach(r=>{r(t,{get width(){return zme(t,e)},get height(){return $me(t,e)}})})}function Vme(t){t.forEach(Hme)}function Wme(){typeof ResizeObserver>"u"||(Ql=new ResizeObserver(Vme))}function Gme(t,e){Ql||Wme();const n=Ek(t);return n.forEach(r=>{let i=rw.get(r);i||(i=new Set,rw.set(r,i)),i.add(e),Ql==null||Ql.observe(r)}),()=>{n.forEach(r=>{const i=rw.get(r);i==null||i.delete(e),i!=null&&i.size||Ql==null||Ql.unobserve(r)})}}const iw=new Set;let _f;function qme(){_f=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};iw.forEach(e=>e(t))},window.addEventListener("resize",_f)}function Yme(t){return iw.add(t),_f||qme(),()=>{iw.delete(t),!iw.size&&typeof _f=="function"&&(window.removeEventListener("resize",_f),_f=void 0)}}function Xme(t,e){return typeof t=="function"?Yme(t):Gme(t,e)}function PW(t,e){let n;const r=()=>{const{currentTime:i}=e,o=(i===null?0:i.value)/100;n!==o&&t(o),n=o};return rn.preUpdate(r,!0),()=>Zo(r)}function Kme(t){return Mk(t)&&t.tagName==="svg"}function Qme(...t){const e=!Array.isArray(t[0]),n=e?0:-1,r=t[0+n],i=t[1+n],s=t[2+n],o=t[3+n],a=yk(i,s,o);return e?a(r):a}const cr=t=>!!(t&&t.getVelocity);function Zme(t,e,n){const r=t.get();let i=null,s=r,o;const a=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,c=()=>{i&&(i.stop(),i=null)},u=()=>{c(),i=new _S({keyframes:[$5(t.get()),$5(s)],velocity:t.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})};if(t.attach((d,h)=>{s=d,o=f=>h(z5(f,a)),rn.postRender(u)},c),cr(e)){const d=e.on("change",f=>t.set(z5(f,a))),h=t.on("destroy",d);return()=>{d(),h()}}return c}function z5(t,e){return e?t+e:t}function $5(t){return typeof t=="number"?t:parseFloat(t)}const Jme=[..._W,sr,Zc],epe=t=>Jme.find(wW(t)),L0=E.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function H5(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function tpe(...t){return e=>{let n=!1;const r=t.map(i=>{const s=H5(i,e);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():H5(t[i],null)}}}}function npe(...t){return E.useCallback(tpe(...t),t)}class rpe extends E.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,
vendor: 4,656 bytes, lines 5344-5352
5344i=Tk(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ipe({children:t,isPresent:e,anchorX:n,root:r}){const i=E.useId(),s=E.useRef(null),o=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=E.useContext(L0),c=npe(s,t==null?void 0:t.ref);return E.useInsertionEffect(()=>{const{width:u,height:d,top:h,left:f,right:m}=o.current;if(e||!s.current||!u||!d)return;const v=n==="left"?`left: ${f}`:`right: ${m}`;s.current.dataset.motionPopId=i;const p=document.createElement("style");a&&(p.nonce=a);const g=r??document.head;return g.appendChild(p),p.sheet&&p.sheet.insertRule(` 5345 [data-motion-pop-id="${i}"] { 5346 position: absolute !important; 5347 width: ${u}px !important; 5348 height: ${d}px !important; 5349 ${v}px !important; 5350 top: ${h}px !important; 5351 } 5352 `),()=>{g.contains(p)&&g.removeChild(p)}},[e]),l.jsx(rpe,{isPresent:e,childRef:s,sizeRef:o,children:E.cloneElement(t,{ref:c})})}const spe=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:c})=>{const u=Tp(ope),d=E.useId();let h=!0,f=E.useMemo(()=>(h=!1,{id:d,initial:e,isPresent:n,custom:i,onExitComplete:m=>{u.set(m,!0);for(const v of u.values())if(!v)return;r&&r()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[n,u,r]);return s&&h&&(f={...f}),E.useMemo(()=>{u.forEach((m,v)=>u.set(v,!1))},[n]),E.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(t=l.jsx(ipe,{isPresent:n,anchorX:a,root:c,children:t})),l.jsx(wS.Provider,{value:f,children:t})};function ope(){return new Map}function jW(t=!0){const e=E.useContext(wS);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=E.useId();E.useEffect(()=>{if(t)return i(s)},[t]);const o=E.useCallback(()=>t&&r&&r(s),[s,r,t]);return!n&&r?[!1,o]:[!0]}const Px=t=>t.key||"";function V5(t){const e=[];return E.Children.forEach(t,n=>{E.isValidElement(n)&&e.push(n)}),e}const Ca=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:c})=>{const[u,d]=jW(o),h=E.useMemo(()=>V5(t),[t]),f=o&&!u?[]:h.map(Px),m=E.useRef(!0),v=E.useRef(h),p=Tp(()=>new Map),[g,y]=E.useState(h),[b,x]=E.useState(h);bS(()=>{m.current=!1,v.current=h;for(let S=0;S<b.length;S++){const T=Px(b[S]);f.includes(T)?p.delete(T):p.get(T)!==!0&&p.set(T,!1)}},[b,f.length,f.join("-")]);const w=[];if(h!==g){let S=[...h];for(let T=0;T<b.length;T++){const M=b[T],A=Px(M);f.includes(A)||(S.splice(T,0,M),w.push(M))}return s==="wait"&&w.length&&(S=w),x(V5(S)),y(h),null}const{forceRender:_}=E.useContext(rk);return l.jsx(l.Fragment,{children:b.map(S=>{const T=Px(S),M=o&&!u?!1:h===b||f.includes(T),A=()=>{if(p.has(T))p.set(T,!0);else return;let C=!0;p.forEach(R=>{R||(C=!1)}),C&&(_==null||_(),x(v.current),o&&(d==null||d()),r&&r())};return l.jsx(spe,{isPresent:M,initial:!m.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:s,root:c,onExitComplete:M?void 0:A,anchorX:a,children:S},T)})})},NW=E.createContext({strict:!1}),W5={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},jm={};for(const t in W5)jm[t]={isEnabled:e=>W5[t].some(n=>!!e[n])};function ape(t){for(const e in t)jm[e]={...jm[e],...t[e]}}const lpe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function o1(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||lpe.has(t)}let kW=t=>!o1(t);function cpe(t){typeof t=="function"&&(kW=e=>e.startsWith("on")?!o1(e):t(e))}try{cpe(require("@emotion/is-prop-valid").default)}catch{}function upe(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(kW(i)||n===!0&&o1(i)||
vendor: 8,771 bytes, line 5352
5352!e&&!o1(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const SS=E.createContext({});function ES(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function py(t){return typeof t=="string"||Array.isArray(t)}const Rk=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pk=["initial",...Rk];function TS(t){return ES(t.animate)||Pk.some(e=>py(t[e]))}function OW(t){return!!(TS(t)||t.variants)}function dpe(t,e){if(TS(t)){const{initial:n,animate:r}=t;return{initial:n===!1||py(n)?n:void 0,animate:py(r)?r:void 0}}return t.inherit!==!1?e:{}}function hpe(t){const{initial:e,animate:n}=dpe(t,E.useContext(SS));return E.useMemo(()=>({initial:e,animate:n}),[G5(e),G5(n)])}function G5(t){return Array.isArray(t)?t.join(" "):t}const gy={};function fpe(t){for(const e in t)gy[e]=t[e],hk(e)&&(gy[e].isCSSVariable=!0)}function IW(t,{layout:e,layoutId:n}){return Mp.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!gy[t]||t==="opacity")}const mpe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ppe=Cp.length;function gpe(t,e,n){let r="",i=!0;for(let s=0;s<ppe;s++){const o=Cp[s],a=t[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const u=TW(a,Sk[o]);if(!c){i=!1;const d=mpe[o]||o;r+=`${d}(${u}) `}n&&(e[o]=u)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function jk(t,e,n){const{style:r,vars:i,transformOrigin:s}=t;let o=!1,a=!1;for(const c in e){const u=e[c];if(Mp.has(c)){o=!0;continue}else if(hk(c)){i[c]=u;continue}else{const d=TW(u,Sk[c]);c.startsWith("origin")?(a=!0,s[c]=d):r[c]=d}}if(e.transform||(o||n?r.transform=gpe(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${c} ${u} ${d}`}}const Nk=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function LW(t,e,n){for(const r in e)!cr(e[r])&&!IW(r,n)&&(t[r]=e[r])}function vpe({transformTemplate:t},e){return E.useMemo(()=>{const n=Nk();return jk(n,e,t),Object.assign({},n.vars,n.style)},[e])}function ype(t,e){const n=t.style||{},r={};return LW(r,n,t),Object.assign(r,vpe(t,e)),r}function xpe(t,e){const n={},r=ype(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const bpe={offset:"stroke-dashoffset",array:"stroke-dasharray"},wpe={offset:"strokeDashoffset",array:"strokeDasharray"};function _pe(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?bpe:wpe;t[s.offset]=gt.transform(-r);const o=gt.transform(e),a=gt.transform(n);t[s.array]=`${o} ${a}`}function DW(t,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},c,u,d){if(jk(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&_pe(h,i,s,o,!1)}const FW=()=>({...Nk(),attrs:{}}),UW=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Spe(t,e,n,r){const i=E.useMemo(()=>{const s=FW();return DW(s,e,UW(r),t.transformTemplate,t.style),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};LW(s,t.style,t),i.style={...s,...i.style}}return i}const Epe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function kk(t){return typeof t!="string"||t.includes("-")?!1:!!(Epe.indexOf(t)>-1||/[A-Z]/u.test(t))}function Tpe(t,e,n,{latestValues:r},i,s=!1){const a=(kk(t)?Spe:xpe)(e,r,i,t),c=upe(e,typeof t=="string",s),u=t!==E.Fragment?{...c,...a,ref:n}:{},{children:d}=e,h=E.useMemo(()=>cr(d)?d.get():d,[d]);return E.createElement(t,{...u,children:h})}function q5(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Ok(t,e,n,r){if(typeof e=="function"){const[i,s]=q5(r);e=e(n!==void 0?n:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=q5(r);e=e(n!==void 0?n:t.custom,i,s)}return e}function sw(t){return cr(t)?t.get():t}function Ape({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:Cpe(n,r,i,t),renderState:e()}}function Cpe(t,e,n,r){const i={},s=r(t,{});for(const f in s)i[f]=sw(s[f]);let{initial:o,animate:a}=t;const c=TS(t),u=OW(t);e&&u&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?a:o;if(h&&typeof h!="boolean"&&!ES(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const v=Ok(t,f[m]);if(v){const{transitionEnd:p,transition:g,...y}=v;for(const b in y){let x=y[b];if(Array.isArray(x)){const w=d?x.length-1:0;x=x[w]}x!==null&&(i[b]=x)}for(const b in p)i[b]=p[b]}}}return i}const BW=t=>(e,n)=>{const r=E.useContext(SS),i=E.useContext(wS),s=()=>Ape(t,e,r,i);return n?s():Tp(s)};function Ik(t,e,n){var s;const{style:r}=t,i={};for(const o in r)(cr(r[o])||e.style&&cr(e.style[o])||IW(o,t)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Mpe=BW({scrapeMotionValuesFromProps:Ik,createRenderState:Nk});function zW(t,e,n){const r=Ik(t,e,n);for(const i in t)if(cr(t[i])||cr(e[i])){const s=Cp.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=t[i]}return r}const Rpe=BW({scrapeMotionValuesFromProps:zW,createRenderState:FW}),Ppe=Symbol.for("motionComponentSymbol");function Sf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function jpe(t,e,n){return E.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Sf(n)&&(n.current=r))},[e])}const Lk=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Npe="framerAppearId",$W="data-"+Lk(Npe),HW=E.createContext({});function kpe(t,e,n,r,i){var p,g;const{visualElement:s}=E.useContext(SS),o=E.useContext(NW),a=E.useContext(wS),c=E.useContext(L0).reducedMotion,u=E.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(t,{visualState:e,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,h=E.useContext(HW);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&Ope(u.current,n,i,h);const f=E.useRef(!1);E.useInsertionEffect(()=>{d&&f.current&&d.update(n,a)});const m=n[$W],v=E.useRef(!!m&&!((p=window.MotionHandoffIsComplete)!=null&&p.call(window,m))&&((g=window.MotionHasOptimisedAnimation)==null?void 0:g.call(window,m)));return bS(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),v.current&&d.animationState&&d.animationState.animateChanges())}),E.useEffect(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)==null||y.call(window,m)}),v.current=!1),d.enteringChildren=void 0)}),d}function Ope(t,e,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:VW(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Sf(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:u})}function VW(t){if(t)return t.options.allowProjection!==!1?t.projection:VW(t.parent)}function GE(t,{forwardMotionProps:e=!1}={},n,r){n&&ape(n);const i=kk(t)?Rpe:Mpe;function s(a,c){let u;const d={...E.useContext(L0),...a,layoutId:Ipe(a)},{isStatic:h}=d,f=hpe(a),m=i(a,h);if(!h&&ik){Lpe();const v=Dpe(d);u=v.MeasureLayout,f.visualElement=kpe(t,m,d,r,v.ProjectionNode)}return l.jsxs(SS.Provider,{value:f,children:[u&&f.visualElement?l.jsx(u,{visualElement:f.visualElement,...d}):null,Tpe(t,a,jpe(m,f.visualElement,c),m,h,e)]})}s.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const o=E.forwardRef(s);return o[Ppe]=t,o}function Ipe({layoutId:t}){const e=E.useContext(rk).id;return e&&t!==void 0?e+"-"+t:t}function Lpe(t,e){E.useContext(NW).strict}function Dpe(t){const{drag:e,layout:n}=jm;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
vendor: 16,167 bytes, line 5352
5352function Fpe(t,e){if(typeof Proxy>"u")return GE;const n=new Map,r=(s,o)=>GE(s,o,t,e),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,GE(o,void 0,t,e)),n.get(o))})}function WW({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Upe({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Bpe(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function qE(t){return t===void 0||t===1}function BM({scale:t,scaleX:e,scaleY:n}){return!qE(t)||!qE(e)||!qE(n)}function Bu(t){return BM(t)||GW(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function GW(t){return Y5(t.x)||Y5(t.y)}function Y5(t){return t&&t!=="0%"}function a1(t,e,n){const r=t-n,i=e*r;return n+i}function X5(t,e,n,r,i){return i!==void 0&&(t=a1(t,i,r)),a1(t,n,r)+e}function zM(t,e=0,n=1,r,i){t.min=X5(t.min,e,n,r,i),t.max=X5(t.max,e,n,r,i)}function qW(t,{x:e,y:n}){zM(t.x,e.translate,e.scale,e.originPoint),zM(t.y,n.translate,n.scale,n.originPoint)}const K5=.999999999999,Q5=1.0000000000001;function zpe(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Tf(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,qW(t,o)),r&&Bu(s.latestValues)&&Tf(t,s.latestValues))}e.x<Q5&&e.x>K5&&(e.x=1),e.y<Q5&&e.y>K5&&(e.y=1)}function Ef(t,e){t.min=t.min+e,t.max=t.max+e}function Z5(t,e,n,r,i=.5){const s=Dn(t.min,t.max,i);zM(t,e,n,s,r)}function Tf(t,e){Z5(t.x,e.x,e.scaleX,e.scale,e.originX),Z5(t.y,e.y,e.scaleY,e.scale,e.originY)}function YW(t,e){return WW(Bpe(t.getBoundingClientRect(),e))}function $pe(t,e,n){const r=YW(t,n),{scroll:i}=e;return i&&(Ef(r.x,i.offset.x),Ef(r.y,i.offset.y)),r}const J5=()=>({translate:0,scale:1,origin:0,originPoint:0}),Af=()=>({x:J5(),y:J5()}),eL=()=>({min:0,max:0}),Qn=()=>({x:eL(),y:eL()}),l1={current:null},Dk={current:!1};function XW(){if(Dk.current=!0,!!ik)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>l1.current=t.matches;t.addEventListener("change",e),e()}else l1.current=!1}const Hpe=new WeakMap;function Vpe(t,e,n){for(const r in e){const i=e[r],s=n[r];if(cr(i))t.addValue(r,i);else if(cr(s))t.addValue(r,zo(i,{owner:t}));else if(s!==i)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(r);t.addValue(r,zo(o!==void 0?o:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const tL=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Wpe{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wk,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Wi.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,rn.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=TS(n),this.isVariantNode=OW(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const m=h[f];c[f]!==void 0&&cr(m)&&m.set(c[f])}}mount(e){var n;this.current=e,Hpe.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),Dk.current||XW(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:l1.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),Zo(this.notifyUpdate),Zo(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Mp.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&rn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in jm){const n=jm[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Qn()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<tL.length;r++){const i=tL[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=e[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Vpe(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=zo(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(BV(r)||$V(r))?r=parseFloat(r):!epe(r)&&Zc.test(n)&&(r=EW(e,n)),this.setBaseTarget(e,cr(r)?r.get():r)),cr(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ok(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!cr(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new lk),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Ak.render(this.render)}}class KW extends Wpe{constructor(){super(...arguments),this.KeyframeResolver=Nme}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;cr(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function QW(t,{style:e,vars:n},r,i){const s=t.style;let o;for(o in e)s[o]=e[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function Gpe(t){return window.getComputedStyle(t)}class qpe extends KW{constructor(){super(...arguments),this.type="html",this.renderInstance=QW}readValueFromInstance(e,n){var r;if(Mp.has(n))return(r=this.projection)!=null&&r.isProjecting?kM(n):Zfe(e,n);{const i=Gpe(e),s=(hk(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return YW(e,n)}build(e,n,r){jk(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return Ik(e,n,r)}}const ZW=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ype(t,e,n,r){QW(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(ZW.has(i)?i:Lk(i),e.attrs[i])}class Xpe extends KW{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Qn}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Mp.has(n)){const r=SW(n);return r&&r.default||0}return n=ZW.has(n)?n:Lk(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return zW(e,n,r)}build(e,n,r){DW(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){Ype(e,n,r,i)}mount(e){this.isSVGTag=UW(e.tagName),super.mount(e)}}const Kpe=(t,e)=>kk(t)?new Xpe(e):new qpe(e,{allowProjection:t!==E.Fragment});function Hf(t,e,n){const r=t.getProps();return Ok(r,e,n!==void 0?n:r.custom,t)}const $M=t=>Array.isArray(t);function Qpe(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,zo(n))}function Zpe(t){return $M(t)?t[t.length-1]||0:t}function Jpe(t,e){const n=Hf(t,e);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=Zpe(s[o]);Qpe(t,o,a)}}function ege(t){return!!(cr(t)&&t.add)}function HM(t,e){const n=t.getValue("willChange");if(ege(n))return n.add(e);if(!n&&Al.WillChange){const r=new Al.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function JW(t){return t.props[$W]}const tge=t=>t!==null;function nge(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(tge),s=e&&n!=="loop"&&e%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const rge={type:"spring",stiffness:500,damping:25,restSpeed:10},ige=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),sge={type:"keyframes",duration:.8},oge={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},age=(t,{keyframes:e})=>e.length>2?sge:Mp.has(t)?t.startsWith("scale")?ige(e[1]):rge:oge;function lge({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Fk=(t,e,n,r={},i,s)=>o=>{const a=_k(r,t)||{},c=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ta(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:i};lge(a)||Object.assign(d,age(t,d)),d.duration&&(d.duration=Ta(d.duration)),d.repeatDelay&&(d.repeatDelay=Ta(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(FM(d),d.delay===0&&(h=!0)),(Al.instantAnimations||Al.skipAnimations)&&(h=!0,FM(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,h&&!s&&e.get()!==void 0){const f=nge(d.keyframes,a);if(f!==void 0){rn.update(()=>{d.onUpdate(f),d.onComplete()});return}}return a.isSync?new _S(d):new bme(d)};function cge({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function eG(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=e;r&&(s=r);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const d in a){const h=t.getValue(d,t.latestValues[d]??null),f=a[d];if(f===void 0||u&&cge(u,d))continue;const m={delay:n,..._k(s||{},d)},v=h.get();if(v!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===v&&!m.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const y=JW(t);if(y){const b=window.MotionHandoffAnimation(y,d,rn);b!==null&&(m.startTime=b,p=!0)}}HM(t,d),h.start(Fk(d,h,f,t.shouldReduceMotion&&bW.has(d)?{type:!1}:m,t,p));const g=h.animation;g&&c.push(g)}return o&&Promise.all(c).then(()=>{rn.update(()=>{o&&Jpe(t,o)})}),c}function tG(t,e,n,r=0,i=1){const s=Array.from(t).sort((u,d)=>u.sortNodePosition(d)).indexOf(e),o=t.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function VM(t,e,n={}){var c;const r=Hf(t,e,n.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(eG(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=i;return uge(t,e,u,d,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,d]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>d())}else return Promise.all([s(),o(n.delay)])}function uge(t,e,n=0,r=0,i=0,s=1,o){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(VM(c,e,{...o,delay:n+(typeof r=="function"?0:r)+tG(t.variantChildren,c,r,i,s)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function dge(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>VM(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=VM(t,e,n);else{const i=typeof e=="function"?Hf(t,e,n.custom):e;r=Promise.all(eG(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function nG(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const hge=Pk.length;function rG(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?rG(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<hge;n++){const r=Pk[n],i=t.props[r];(py(i)||i===!1)&&(e[r]=i)}return e}const fge=[...Rk].reverse(),mge=Rk.length;function pge(t){return e=>Promise.all(e.map(({animation:n,options:r})=>dge(t,n,r)))}function gge(t){let e=pge(t),n=nL(),r=!0;const i=c=>(u,d)=>{var f;
vendor: 21,545 bytes, line 5352
5352const h=Hf(t,d,c==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:m,transitionEnd:v,...p}=h;u={...u,...p,...v}}return u};function s(c){e=c(t)}function o(c){const{props:u}=t,d=rG(t.parent)||{},h=[],f=new Set;let m={},v=1/0;for(let g=0;g<mge;g++){const y=fge[g],b=n[y],x=u[y]!==void 0?u[y]:d[y],w=py(x),_=y===c?b.isActive:null;_===!1&&(v=g);let S=x===d[y]&&x!==u[y]&&w;if(S&&r&&t.manuallyAnimateOnMount&&(S=!1),b.protectedKeys={...m},!b.isActive&&_===null||!x&&!b.prevProp||ES(x)||typeof x=="boolean")continue;const T=vge(b.prevProp,x);let M=T||y===c&&b.isActive&&!S&&w||g>v&&w,A=!1;const C=Array.isArray(x)?x:[x];let R=C.reduce(i(y),{});_===!1&&(R={});const{prevResolvedValues:j={}}=b,k={...j,...R},P=F=>{M=!0,f.has(F)&&(A=!0,f.delete(F)),b.needsAnimating[F]=!0;const D=t.getValue(F);D&&(D.liveStyle=!1)};for(const F in k){const D=R[F],I=j[F];if(m.hasOwnProperty(F))continue;let N=!1;$M(D)&&$M(I)?N=!nG(D,I):N=D!==I,N?D!=null?P(F):f.add(F):D!==void 0&&f.has(F)?P(F):b.protectedKeys[F]=!0}b.prevProp=x,b.prevResolvedValues=R,b.isActive&&(m={...m,...R}),r&&t.blockInitialAnimation&&(M=!1);const O=S&&T;M&&(!O||A)&&h.push(...C.map(F=>{const D={type:y};if(typeof F=="string"&&r&&!O&&t.manuallyAnimateOnMount&&t.parent){const{parent:I}=t,N=Hf(I,F);if(I.enteringChildren&&N){const{delayChildren:G}=N.transition||{};D.delay=tG(I.enteringChildren,t,G)}}return{animation:F,options:D}}))}if(f.size){const g={};if(typeof u.initial!="boolean"){const y=Hf(t,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(g.transition=y.transition)}f.forEach(y=>{const b=t.getBaseTarget(y),x=t.getValue(y);x&&(x.liveStyle=!0),g[y]=b??null}),h.push({animation:g})}let p=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(h):Promise.resolve()}function a(c,u){var h;if(n[c].isActive===u)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(f=>{var m;return(m=f.animationState)==null?void 0:m.setActive(c,u)}),n[c].isActive=u;const d=o(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=nL()}}}function vge(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!nG(e,t):!1}function Au(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nL(){return{animate:Au(!0),whileInView:Au(),whileHover:Au(),whileTap:Au(),whileDrag:Au(),whileFocus:Au(),exit:Au()}}class fu{constructor(e){this.isMounted=!1,this.node=e}update(){}}class yge extends fu{constructor(e){super(e),e.animationState||(e.animationState=gge(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ES(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let xge=0;class bge extends fu{constructor(){super(...arguments),this.id=xge++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const wge={animation:{Feature:yge},exit:{Feature:bge}};function vy(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function D0(t){return{point:{x:t.pageX,y:t.pageY}}}const _ge=t=>e=>Ck(e)&&t(e,D0(e));function hv(t,e,n,r){return vy(t,e,_ge(n),r)}const iG=1e-4,Sge=1-iG,Ege=1+iG,sG=.01,Tge=0-sG,Age=0+sG;function Ci(t){return t.max-t.min}function Cge(t,e,n){return Math.abs(t-e)<=n}function rL(t,e,n,r=.5){t.origin=r,t.originPoint=Dn(e.min,e.max,t.origin),t.scale=Ci(n)/Ci(e),t.translate=Dn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Sge&&t.scale<=Ege||isNaN(t.scale))&&(t.scale=1),(t.translate>=Tge&&t.translate<=Age||isNaN(t.translate))&&(t.translate=0)}function fv(t,e,n,r){rL(t.x,e.x,n.x,r?r.originX:void 0),rL(t.y,e.y,n.y,r?r.originY:void 0)}function iL(t,e,n){t.min=n.min+e.min,t.max=t.min+Ci(e)}function Mge(t,e,n){iL(t.x,e.x,n.x),iL(t.y,e.y,n.y)}function sL(t,e,n){t.min=e.min-n.min,t.max=t.min+Ci(e)}function mv(t,e,n){sL(t.x,e.x,n.x),sL(t.y,e.y,n.y)}function Bs(t){return[t("x"),t("y")]}const oG=({current:t})=>t?t.ownerDocument.defaultView:null,oL=(t,e)=>Math.abs(t-e);function Rge(t,e){const n=oL(t.x,e.x),r=oL(t.y,e.y);return Math.sqrt(n**2+r**2)}class aG{constructor(e,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=XE(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=Rge(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!v)return;const{point:p}=f,{timestamp:g}=Ar;this.history.push({...p,timestamp:g});const{onStart:y,onMove:b}=this.handlers;m||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=YE(m,this.transformPagePoint),rn.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:v,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=XE(f.type==="pointercancel"?this.lastMoveEventInfo:YE(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,y),p&&p(f,y)},!Ck(e))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=D0(e),c=YE(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=Ar;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(e,XE(c,this.history)),this.removeListeners=k0(hv(this.contextWindow,"pointermove",this.handlePointerMove),hv(this.contextWindow,"pointerup",this.handlePointerUp),hv(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Zo(this.updatePoint)}}function YE(t,e){return e?{point:e(t.point)}:t}function aL(t,e){return{x:t.x-e.x,y:t.y-e.y}}function XE({point:t},e){return{point:t,delta:aL(t,lG(e)),offset:aL(t,Pge(e)),velocity:jge(e,.1)}}function Pge(t){return t[0]}function lG(t){return t[t.length-1]}function jge(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=lG(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Ta(e)));)n--;if(!r)return{x:0,y:0};const s=Qs(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Nge(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Dn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Dn(n,t,r.max):Math.min(t,n)),t}function lL(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function kge(t,{top:e,left:n,bottom:r,right:i}){return{x:lL(t.x,n,i),y:lL(t.y,e,r)}}function cL(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Oge(t,e){return{x:cL(t.x,e.x),y:cL(t.y,e.y)}}function Ige(t,e){let n=.5;const r=Ci(t),i=Ci(e);return i>r?n=Pm(e.min,e.max-r,t.min):r>i&&(n=Pm(t.min,t.max-i,e.min)),Na(0,1,n)}function Lge(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const WM=.35;function Dge(t=WM){return t===!1?t=0:t===!0&&(t=WM),{x:uL(t,"left","right"),y:uL(t,"top","bottom")}}function uL(t,e,n){return{min:dL(t,e),max:dL(t,n)}}function dL(t,e){return typeof t=="number"?t:t[e]||0}const Fge=new WeakMap;class Uge{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Qn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(D0(h).point)},o=(h,f)=>{const{drag:m,dragPropagation:v,onDragStart:p}=this.getProps();if(m&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ime(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bs(y=>{let b=this.getAxisMotionValue(y).get()||0;if(Aa.test(b)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[y];w&&(b=Ci(w)*(parseFloat(b)/100))}}this.originPoint[y]=b}),p&&rn.postRender(()=>p(h,f)),HM(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:v,onDirectionLock:p,onDrag:g}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=f;if(v&&this.currentDirection===null){this.currentDirection=Bge(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&g(h,f)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Bs(h=>{var f;return this.getAnimationState(h)==="paused"&&((f=this.getAxisMotionValue(h).animation)==null?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new aG(e,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:oG(this.visualElement)})}stop(e,n){const r=e||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&rn.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!jx(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=Nge(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;e&&Sf(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=kge(r.layoutBox,e):this.constraints=!1,this.elastic=Dge(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Bs(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Lge(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Sf(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=$pe(r,i.root,this.visualElement.getTransformPagePoint());let o=Oge(i.layout.layoutBox,s);if(n){const a=n(Upe(o));this.hasMutatedConstraints=!!a,a&&(o=WW(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=Bs(d=>{if(!jx(d,n,this.currentDirection))return;let h=c&&c[d]||{};o&&(h={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,v={type:"inertia",velocity:r?e[d]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(d,v)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return HM(this.visualElement,e),r.start(Fk(e,r,0,n,this.visualElement,!1))}stopAnimation(){Bs(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Bs(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Bs(n=>{const{drag:r}=this.getProps();if(!jx(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-Dn(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Sf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Bs(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();i[o]=Ige({min:c,max:c},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Bs(o=>{if(!jx(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];a.set(Dn(c,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Fge.set(this.visualElement,this);const e=this.visualElement.current,n=hv(e,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Sf(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rn.read(r);const o=vy(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Bs(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=WM,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function jx(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Bge(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class zge extends fu{constructor(e){super(e),this.removeGroupControls=Ki,this.removeListeners=Ki,this.controls=new Uge(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ki}unmount(){this.removeGroupControls(),this.removeListeners()}}const hL=t=>(e,n)=>{t&&rn.postRender(()=>t(e,n))};class $ge extends fu{constructor(){super(...arguments),this.removePointerDownListener=Ki}onPointerDown(e){this.session=new aG(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:oG(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:hL(e),onStart:hL(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&rn.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=hv(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ow={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fL(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ig={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(gt.test(t))t=parseFloat(t);else return t;const n=fL(t,e.target.x),r=fL(t,e.target.y);return`${n}% ${r}%`}},Hge={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Zc.parse(t);if(i.length>5)return r;const s=Zc.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const u=Dn(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};let KE=!1;class Vge extends E.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;fpe(Wge),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),KE&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ow.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,KE=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==s?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||rn.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ak.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;KE=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function cG(t){const[e,n]=jW(),r=E.useContext(rk);return l.jsx(Vge,{...t,layoutGroup:r,switchLayoutGroup:E.useContext(HW),isPresent:e,safeToRemove:n})}const Wge={borderRadius:{...ig,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ig,borderTopRightRadius:ig,borderBottomLeftRadius:ig,borderBottomRightRadius:ig,boxShadow:Hge};function Gge(t,e,n){const r=cr(t)?t:zo(t);return r.start(Fk("",r,e,n)),r.animation}const qge=(t,e)=>t.depth-e.depth;class Yge{constructor(){this.children=[],this.isDirty=!1}add(e){sk(this.children,e),this.isDirty=!0}remove(e){ok(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qge),this.isDirty=!1,this.children.forEach(e)}}function Xge(t,e){const n=Wi.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(Zo(r),t(s-e))};return rn.setup(r,!0),()=>Zo(r)}const uG=["TopLeft","TopRight","BottomLeft","BottomRight"],Kge=uG.length,mL=t=>typeof t=="string"?parseFloat(t):t,pL=t=>typeof t=="number"||gt.test(t);function Qge(t,e,n,r,i,s){i?(t.opacity=Dn(0,n.opacity??1,Zge(r)),t.opacityExit=Dn(e.opacity??1,0,Jge(r))):s&&(t.opacity=Dn(e.opacity??1,n.opacity??1,r));for(let o=0;o<Kge;o++){const a=`border${uG[o]}Radius`;let c=gL(e,a),u=gL(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||pL(c)===pL(u)?(t[a]=Math.max(Dn(mL(c),mL(u),r),0),(Aa.test(u)||Aa.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=Dn(e.rotate||0,n.rotate||0,r))}function gL(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Zge=dG(0,.5,XV),Jge=dG(.5,.95,Ki);function dG(t,e,n){return r=>r<t?0:r>e?1:n(Pm(t,e,r))}function vL(t,e){t.min=e.min,t.max=e.max}function Is(t,e){vL(t.x,e.x),vL(t.y,e.y)}function yL(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function xL(t,e,n,r,i){return t-=e,t=a1(t,1/n,r),i!==void 0&&(t=a1(t,1/i,r)),t}function eve(t,e=0,n=1,r=.5,i,s=t,o=t){if(Aa.test(e)&&(e=parseFloat(e),e=Dn(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Dn(s.min,s.max,r);t===s&&(a-=e),t.min=xL(t.min,e,n,a,i),t.max=xL(t.max,e,n,a,i)}function bL(t,e,[n,r,i],s,o){eve(t,e[n],e[r],e[i],e.scale,s,o)}const tve=["x","scaleX","originX"],nve=["y","scaleY","originY"];function wL(t,e,n,r){bL(t.x,e,tve,n?n.x:void 0,r?r.x:void 0),bL(t.y,e,nve,n?n.y:void 0,r?r.y:void 0)}function _L(t){return t.translate===0&&t.scale===1}function hG(t){return _L(t.x)&&_L(t.y)}function SL(t,e){return t.min===e.min&&t.max===e.max}function rve(t,e){return SL(t.x,e.x)&&SL(t.y,e.y)}function EL(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function fG(t,e){return EL(t.x,e.x)&&EL(t.y,e.y)}function TL(t){return Ci(t.x)/Ci(t.y)}function AL(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ive{constructor(){this.members=[]}add(e){sk(this.members,e),e.scheduleRender()}remove(e){if(ok(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,
vendor: 8,052 bytes, line 5352
5352n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sve(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:m,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const QE=["","X","Y","Z"],ove=1e3;let ave=0;function ZE(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function mG(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=JW(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",rn,!(i||s))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&mG(r)}function pG({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=ave++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(uve),this.nodes.forEach(mve),this.nodes.forEach(pve),this.nodes.forEach(dve)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yge)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new lk),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Mk(o)&&!Kme(o),this.instance=o;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let d,h=0;const f=()=>this.root.updateBlockedByResize=!1;rn.read(()=>{h=window.innerWidth}),t(o,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,d&&d(),d=Xge(f,250),ow.hasAnimatedSinceResize&&(ow.hasAnimatedSinceResize=!1,this.nodes.forEach(RL)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||bve,{onLayoutAnimationStart:p,onLayoutAnimationComplete:g}=u.getProps(),y=!this.targetLayout||!fG(this.targetLayout,m),b=!h&&f;if(this.options.layoutRoot||this.resumeFrom||b||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={..._k(v,"layout"),onPlay:p,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(d,b)}else h||RL(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gve),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&mG(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(CL);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ML);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fve),this.nodes.forEach(lve),this.nodes.forEach(cve)):this.nodes.forEach(ML),this.clearAllSnapshots();const a=Wi.now();Ar.delta=Na(0,1e3/60,a-Ar.timestamp),Ar.timestamp=a,Ar.isProcessing=!0,BE.update.process(Ar),BE.preRender.process(Ar),BE.render.process(Ar),Ar.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ak.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hve),this.sharedNodes.forEach(vve)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ci(this.snapshot.measuredBox.x)&&!Ci(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Qn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const c=r(this.instance);
vendor: 4,948 bytes, line 5352
5352this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!hG(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||Bu(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),wve(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return Qn();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(_ve))){const{scroll:d}=this.root;d&&(Ef(a.x,d.offset.x),Ef(a.y,d.offset.y))}return a}removeElementScroll(o){var c;const a=Qn();if(Is(a,o),(c=this.scroll)!=null&&c.wasRoot)return a;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&Is(a,o),Ef(a.x,h.offset.x),Ef(a.y,h.offset.y))}return a}applyTransform(o,a=!1){const c=Qn();Is(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Tf(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Bu(d.latestValues)&&Tf(c,d.latestValues)}return Bu(this.latestValues)&&Tf(c,this.latestValues),c}removeTransform(o){const a=Qn();Is(a,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Bu(u.latestValues))continue;BM(u.latestValues)&&u.updateSnapshot();const d=Qn(),h=u.measurePageBox();Is(d,h),wL(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Bu(this.latestValues)&&wL(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ar.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=Ar.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qn(),this.relativeTargetOrigin=Qn(),mv(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Is(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Qn(),this.targetWithTransforms=Qn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Mge(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Is(this.target,this.layout.layoutBox),qW(this.target,this.targetDelta)):Is(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qn(),this.relativeTargetOrigin=Qn(),mv(this.relativeTargetOrigin,this.target,m.target),Is(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||BM(this.parent.latestValues)||GW(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var v;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty)&&
vendor: 4,165 bytes, line 5352
5352(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Ar.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Is(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;zpe(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Qn());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(yL(this.prevProjectionDelta.x,this.projectionDelta.x),yL(this.prevProjectionDelta.y,this.projectionDelta.y)),fv(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!AL(this.projectionDelta.x,this.prevProjectionDelta.x)||!AL(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Af(),this.projectionDelta=Af(),this.projectionDeltaWithTransform=Af()}setAnimationOrigin(o,a=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=Af();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Qn(),m=c?c.source:void 0,v=this.layout?this.layout.source:void 0,p=m!==v,g=this.getStack(),y=!g||g.members.length<=1,b=!!(p&&!y&&this.options.crossfade===!0&&!this.path.some(xve));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const _=w/1e3;PL(h.x,o.x,_),PL(h.y,o.y,_),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mv(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yve(this.relativeTarget,this.relativeTargetOrigin,f,_),x&&rve(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Qn()),Is(x,this.relativeTarget)),p&&(this.animationValues=d,Qge(d,u,this.latestValues,_,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,c,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Zo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rn.update(()=>{ow.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zo(0)),this.currentAnimation=Gge(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ove),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:d}=o;if(!(!a||!c||!u)){if(this!==o&&this.layout&&u&&gG(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Qn();const h=Ci(this.layout.layoutBox.x);
vendor: 4,677 bytes, line 5352
5352c.x.min=o.target.x.min,c.x.max=c.x.min+h;const f=Ci(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}Is(a,c),Tf(a,d),fv(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ive),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&ZE("z",o,u,this.animationValues);for(let d=0;d<QE.length;d++)ZE(`rotate${QE[d]}`,o,u,this.animationValues),ZE(`skew${QE[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=sw(a==null?void 0:a.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=sw(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Bu(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=sve(this.projectionDeltaWithTransform,this.treeScale,d);c&&(h=c(d,h)),o.transform=h;const{x:f,y:m}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?o.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in gy){if(d[v]===void 0)continue;const{correct:p,applyTo:g,isCSSVariable:y}=gy[v],b=h==="none"?d[v]:p(d[v],u);if(g){const x=g.length;for(let w=0;w<x;w++)o[g[w]]=b}else y?this.options.visualElement.renderState.vars[v]=b:o[v]=b}this.options.layoutId&&(o.pointerEvents=u===this?sw(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(CL),this.root.sharedNodes.clear()}}}function lve(t){t.updateLayout()}function cve(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;s==="size"?Bs(h=>{const f=o?e.measuredBox[h]:e.layoutBox[h],m=Ci(f);f.min=r[h].min,f.max=f.min+m}):gG(s,e.layoutBox,r)&&Bs(h=>{const f=o?e.measuredBox[h]:e.layoutBox[h],m=Ci(r[h]);f.max=f.min+m,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+m)});const a=Af();fv(a,r,e.layoutBox);const c=Af();o?fv(c,t.applyTransform(i,!0),e.measuredBox):fv(c,r,e.layoutBox);const u=!hG(a);let d=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:m}=h;if(f&&m){const v=Qn();mv(v,e.layoutBox,f.layoutBox);const p=Qn();mv(p,r,m.layoutBox),fG(v,p)||(d=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=v,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:c,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function uve(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
5352isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function dve(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function hve(t){t.clearSnapshot()}function CL(t){t.clearMeasurements()}function ML(t){t.isLayoutDirty=!1}function fve(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function RL(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function mve(t){t.resolveTargetDelta()}function pve(t){t.calcProjection()}function gve(t){t.resetSkewAndRotation()}function vve(t){t.removeLeadSnapshot()}function PL(t,e,n){t.translate=Dn(e.translate,0,n),t.scale=Dn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function jL(t,e,n,r){t.min=Dn(e.min,n.min,r),t.max=Dn(e.max,n.max,r)}function yve(t,e,n,r){jL(t.x,e.x,n.x,r),jL(t.y,e.y,n.y,r)}function xve(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const bve={duration:.45,ease:[.4,0,.1,1]},NL=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),kL=NL("applewebkit/")&&!NL("chrome/")?Math.round:Ki;function OL(t){t.min=kL(t.min),t.max=kL(t.max)}function wve(t){OL(t.x),OL(t.y)}function gG(t,e,n){return t==="position"||t==="preserve-aspect"&&!Cge(TL(e),TL(n),.2)}function _ve(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Sve=pG({attachResizeListener:(t,e)=>vy(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),JE={current:void 0},vG=pG({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!JE.current){const t=new Sve({});t.mount(window),t.setOptions({layoutScroll:!0}),JE.current=t}return JE.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Eve={pan:{Feature:$ge},drag:{Feature:zge,ProjectionNode:vG,MeasureLayout:cG}};function IL(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&rn.postRender(()=>s(e,D0(e)))}class Tve extends fu{mount(){const{current:e}=this.node;e&&(this.unmount=Lme(e,(n,r)=>(IL(this.node,r,"Start"),i=>IL(this.node,i,"End"))))}unmount(){}}class Ave extends fu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=k0(vy(this.node.current,"focus",()=>this.onFocus()),vy(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function LL(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&rn.postRender(()=>s(e,D0(e)))}class Cve extends fu{mount(){const{current:e}=this.node;e&&(this.unmount=Bme(e,(n,r)=>(LL(this.node,r,"Start"),(i,{success:s})=>LL(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const GM=new WeakMap,eT=new WeakMap,Mve=t=>{const e=GM.get(t.target);e&&e(t)},Rve=t=>{t.forEach(Mve)};function Pve({root:t,...e}){const n=t||document;eT.has(n)||eT.set(n,{});const r=eT.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Rve,{root:t,...e})),r[i]}function jve(t,e,n){const r=Pve(e);return GM.set(t,n),r.observe(t),()=>{GM.delete(t),r.unobserve(t)}}const Nve={some:0,all:1};class kve extends fu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Nve[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(c)};return jve(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ove(e,n))&&this.startObserver()}unmount(){}}function Ove({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Ive={inView:{Feature:kve},tap:{Feature:Cve},focus:{Feature:Ave},hover:{Feature:Tve}},Lve={layout:{ProjectionNode:vG,MeasureLayout:cG}},Dve={...wge,...Ive,...Eve,...Lve},ve=Fpe(Dve,Kpe),Fve=50,DL=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Uve=()=>({time:0,x:DL(),y:DL()}),Bve={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function FL(t,e,n,r){const i=n[e],{length:s,position:o}=Bve[e],a=i.current,c=n.time;i.current=t[`scroll${o}`],i.scrollLength=t[`scroll${s}`]-t[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Pm(0,i.scrollLength,i.current);const u=r-c;i.velocity=u>Fve?0:ck(i.current-a,u)}function zve(t,e,n){FL(t,"x",e,n),FL(t,"y",e,n),e.time=n}function $ve(t,e){const n={x:0,y:0};let r=t;for(;r&&r!==e;)if(Tk(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=i.left-s.left,n.y+=i.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:s}=r.getBBox();n.x+=i,n.y+=s;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const qM={start:0,center:.5,end:1};function UL(t,e,n=0){let r=0;if(t in qM&&(t=qM[t]),typeof t=="string"){const i=parseFloat(t);t.endsWith("px")?r=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?r=i/100*document.documentElement.clientWidth:t.endsWith("vh")?r=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(r=e*t),n+r}const Hve=[0,0];function Vve(t,e,n,r){let i=Array.isArray(t)?t:Hve,s=0,o=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,qM[t]?t:"0"]),s=UL(i[0],n,r),o=UL(i[1],e),s-o}const Wve={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Gve={x:0,y:0};function qve(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function Yve(t,e,n){const{offset:r=Wve.All}=n,{target:i=t,axis:s="y"}=n,o=s==="y"?"height":"width",a=i!==t?$ve(i,t):Gve,c=i===t?{width:t.scrollWidth,height:t.scrollHeight}:qve(i),u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let d=!e[s].interpolate;const h=r.length;for(let f=0;f<h;f++){const m=Vve(r[f],u[o],c[o],a[s]);
5352!d&&m!==e[s].interpolatorOffsets[f]&&(d=!0),e[s].offset[f]=m}d&&(e[s].interpolate=yk(e[s].offset,uW(r),{clamp:!1}),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=Na(0,1,e[s].interpolate(e[s].current))}function Xve(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let r=e;for(;r&&r!==t;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}function Kve(t,e,n,r={}){return{measure:i=>{Xve(t,r.target,n),zve(t,n,i),(r.offset||r.target)&&Yve(t,n,r)},notify:()=>e(n)}}const sg=new WeakMap,BL=new WeakMap,tT=new WeakMap,zL=t=>t===document.scrollingElement?window:t;function yG(t,{container:e=document.scrollingElement,...n}={}){if(!e)return Ki;let r=tT.get(e);r||(r=new Set,tT.set(e,r));const i=Uve(),s=Kve(e,t,i,n);if(r.add(s),!sg.has(e)){const a=()=>{for(const h of r)h.measure(Ar.timestamp);rn.preUpdate(c)},c=()=>{for(const h of r)h.notify()},u=()=>rn.read(a);sg.set(e,u);const d=zL(e);window.addEventListener("resize",u,{passive:!0}),e!==document.documentElement&&BL.set(e,Xme(e,u)),d.addEventListener("scroll",u,{passive:!0}),u()}const o=sg.get(e);return rn.read(o,!1,!0),()=>{var u;Zo(o);const a=tT.get(e);if(!a||(a.delete(s),a.size))return;const c=sg.get(e);sg.delete(e),c&&(zL(e).removeEventListener("scroll",c),(u=BL.get(e))==null||u(),window.removeEventListener("resize",c))}}const $L=new Map;function Qve(t){const e={value:0},n=yG(r=>{e.value=r[t.axis].progress*100},t);return{currentTime:e,cancel:n}}function xG({source:t,container:e,...n}){const{axis:r}=n;t&&(e=t);const i=$L.get(e)??new Map;$L.set(e,i);const s=n.target??"self",o=i.get(s)??{},a=r+(n.offset??[]).join(",");return o[a]||(o[a]=!n.target&&mW()?new ScrollTimeline({source:e,axis:r}):Qve({container:e,...n})),o[a]}function Zve(t,e){const n=xG(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:r=>(r.pause(),PW(i=>{r.time=r.iterationDuration*i},n))})}function Jve(t){return t.length===2}function eye(t,e){return Jve(t)?yG(n=>{t(n[e.axis].progress,n)},e):PW(t,xG(e))}function tye(t,{axis:e="y",container:n=document.scrollingElement,...r}={}){if(!n)return Ki;const i={axis:e,container:n,...r};return typeof t=="function"?eye(t,i):Zve(t,i)}const nye=()=>({scrollX:zo(0),scrollY:zo(0),scrollXProgress:zo(0),scrollYProgress:zo(0)}),Nx=t=>t?!t.current:!1;function Uk({container:t,target:e,...n}={}){const r=Tp(nye),i=E.useRef(null),s=E.useRef(!1),o=E.useCallback(()=>(i.current=tye((a,{x:c,y:u})=>{r.scrollX.set(c.current),r.scrollXProgress.set(c.progress),r.scrollY.set(u.current),r.scrollYProgress.set(u.progress)},{...n,container:(t==null?void 0:t.current)||void 0,target:(e==null?void 0:e.current)||void 0}),()=>{var a;(a=i.current)==null||a.call(i)}),[t,e,JSON.stringify(n.offset)]);return bS(()=>{if(s.current=!1,Nx(t)||Nx(e)){s.current=!0;return}else return o()},[o]),E.useEffect(()=>{if(s.current)return Rm(!Nx(t)),Rm(!Nx(e)),o()},[o]),r}function c1(t){const e=Tp(()=>zo(t)),{isStatic:n}=E.useContext(L0);if(n){const[,r]=E.useState(t);E.useEffect(()=>e.on("change",r),[])}return e}function Bk(t,e){const n=c1(e()),r=()=>n.set(e());return r(),bS(()=>{const i=()=>rn.preRender(r,!1,!0),s=t.map(o=>o.on("change",i));return()=>{s.forEach(o=>o()),Zo(r)}}),n}function YM(t,...e){const n=t.length;function r(){let i="";for(let s=0;s<n;s++){i+=t[s];const o=e[s];o&&(i+=cr(o)?o.get():o)}return i}return Bk(e.filter(cr),r)}function rye(t){dv.current=[],t();const e=Bk(dv.current,t);return dv.current=void 0,e}function fn(t,e,n,r){if(typeof t=="function")return rye(t);const i=typeof e=="function"?e:Qme(e,n,r);return Array.isArray(t)?HL(t,i):HL([t],([s])=>i(s))}function HL(t,e){const n=Tp(()=>[]);return Bk(t,()=>{n.length=0;const r=t.length;for(let i=0;i<r;i++)n[i]=t[i].get();return e(n)})}function iye(t,e={}){const{isStatic:n}=E.useContext(L0),r=()=>cr(t)?t.get():t;if(n)return fn(r);const i=c1(r());return E.useInsertionEffect(()=>Zme(i,t,e),[i,JSON.stringify(e)]),i}function zk(){!Dk.current&&XW();const[t]=E.useState(l1.current);return t}const sye={some:0,all:1};function oye(t,e,{root:n,margin:r,amount:i="some"}={}){const s=Ek(t),o=new WeakMap,a=u=>{u.forEach(d=>{const h=o.get(d.target);if(d.isIntersecting!==!!h)if(d.isIntersecting){const f=e(d.target,d);typeof f=="function"?o.set(d.target,f):c.unobserve(d.target)}
vendor: 5,813 bytes, line 5352
5352else typeof h=="function"&&(h(d),o.delete(d.target))})},c=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof i=="number"?i:sye[i]});return s.forEach(u=>c.observe(u)),()=>c.disconnect()}function bG(t,{root:e,margin:n,amount:r,once:i=!1,initial:s=!1}={}){const[o,a]=E.useState(s);return E.useEffect(()=>{if(!t.current||i&&o)return;const c=()=>(a(!0),i?void 0:()=>a(!1)),u={root:e&&e.current||void 0,margin:n,amount:r};return oye(t.current,c,u)},[e,t,n,i,r]),o}var aye=E.createContext(void 0);function F0(t){const e=E.useContext(aye);return t||e||"ltr"}var nT=0;function $k(){E.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??VL()),document.body.insertAdjacentElement("beforeend",t[1]??VL()),nT++,()=>{nT===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),nT--}},[])}function VL(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var rT="focusScope.autoFocusOnMount",iT="focusScope.autoFocusOnUnmount",WL={bubbles:!1,cancelable:!0},lye="FocusScope",AS=E.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,c]=E.useState(null),u=ns(i),d=ns(s),h=E.useRef(null),f=At(e,p=>c(p)),m=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let p=function(x){if(m.paused||!a)return;const w=x.target;a.contains(w)?h.current=w:Zl(h.current,{select:!0})},g=function(x){if(m.paused||!a)return;const w=x.relatedTarget;w!==null&&(a.contains(w)||Zl(h.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&Zl(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const b=new MutationObserver(y);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),b.disconnect()}}},[r,a,m.paused]),E.useEffect(()=>{if(a){qL.add(m);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(rT,WL);a.addEventListener(rT,u),a.dispatchEvent(y),y.defaultPrevented||(cye(mye(wG(a)),{select:!0}),document.activeElement===p&&Zl(a))}return()=>{a.removeEventListener(rT,u),setTimeout(()=>{const y=new CustomEvent(iT,WL);a.addEventListener(iT,d),a.dispatchEvent(y),y.defaultPrevented||Zl(p??document.body,{select:!0}),a.removeEventListener(iT,d),qL.remove(m)},0)}}},[a,u,d,m]);const v=E.useCallback(p=>{if(!n&&!r||m.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(g&&y){const b=p.currentTarget,[x,w]=uye(b);x&&w?!p.shiftKey&&y===w?(p.preventDefault(),n&&Zl(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),n&&Zl(w,{select:!0})):y===b&&p.preventDefault()}},[n,r,m.paused]);return l.jsx(ht.div,{tabIndex:-1,...o,ref:f,onKeyDown:v})});AS.displayName=lye;function cye(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Zl(r,{select:e}),document.activeElement!==n)return}function uye(t){const e=wG(t),n=GL(e,t),r=GL(e.reverse(),t);return[n,r]}function wG(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function GL(t,e){for(const n of t)if(!dye(n,{upTo:e}))return n}function dye(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function hye(t){return t instanceof HTMLInputElement&&"select"in t}function Zl(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&hye(t)&&e&&t.select()}}var qL=fye();function fye(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=YL(t,e),t.unshift(e)},remove(e){var n;t=YL(t,e),(n=t[0])==null||n.resume()}}}function YL(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function mye(t){return t.filter(e=>e.tagName!=="A")}var sT="rovingFocusGroup.onEntryFocus",pye={bubbles:!1,cancelable:!0},U0="RovingFocusGroup",[XM,_G,gye]=fp(U0),[vye,SG]=ks(U0,[gye]),[yye,xye]=vye(U0),EG=E.forwardRef((t,e)=>l.jsx(XM.Provider,{scope:t.__scopeRovingFocusGroup,children:l.jsx(XM.Slot,{scope:t.__scopeRovingFocusGroup,children:l.jsx(bye,{...t,ref:e})})}));EG.displayName=U0;var bye=E.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=t,f=E.useRef(null),m=At(e,f),v=F0(s),[p,g]=uo({prop:o,defaultProp:a??null,onChange:c,caller:U0}),[y,b]=E.useState(!1),x=ns(u),w=_G(n),_=E.useRef(!1),[S,T]=E.useState(0);return E.useEffect(()=>{const M=f.current;if(M)return M.addEventListener(sT,x),()=>M.removeEventListener(sT,x)},[x]),l.jsx(yye,{scope:n,orientation:r,dir:v,loop:i,currentTabStopId:p,onItemFocus:E.useCallback(M=>g(M),[g]),onItemShiftTab:E.useCallback(()=>b(!0),[]),onFocusableItemAdd:E.useCallback(()=>T(M=>M+1),[]),onFocusableItemRemove:E.useCallback(()=>T(M=>M-1),[]),children:l.jsx(ht.div,{tabIndex:y||S===0?-1:0,"data-orientation":r,...h,ref:m,style:{outline:"none",...t.style},onMouseDown:De(t.onMouseDown,()=>{_.current=!0}),onFocus:De(t.onFocus,M=>{const A=!_.current;if(M.target===M.currentTarget&&A&&!y){const C=new CustomEvent(sT,pye);if(M.currentTarget.dispatchEvent(C),!C.defaultPrevented){const R=w().filter(L=>L.focusable),j=R.find(L=>L.active),k=R.find(L=>
vendor: 9,001 bytes, lines 5352-5367
5352L.id===p),O=[j,k,...R].filter(Boolean).map(L=>L.ref.current);CG(O,d)}}_.current=!1}),onBlur:De(t.onBlur,()=>b(!1))})})}),TG="RovingFocusGroupItem",AG=E.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,children:o,...a}=t,c=io(),u=s||c,d=xye(TG,n),h=d.currentTabStopId===u,f=_G(n),{onFocusableItemAdd:m,onFocusableItemRemove:v,currentTabStopId:p}=d;return E.useEffect(()=>{if(r)return m(),()=>v()},[r,m,v]),l.jsx(XM.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:l.jsx(ht.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...a,ref:e,onMouseDown:De(t.onMouseDown,g=>{r?d.onItemFocus(u):g.preventDefault()}),onFocus:De(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:De(t.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Sye(g,d.orientation,d.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let x=f().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const w=x.indexOf(g.currentTarget);x=d.loop?Eye(x,w+1):x.slice(w+1)}setTimeout(()=>CG(x))}}),children:typeof o=="function"?o({isCurrentTabStop:h,hasTabStop:p!=null}):o})})});AG.displayName=TG;var wye={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _ye(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Sye(t,e,n){const r=_ye(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return wye[r]}function CG(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function Eye(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var Tye=EG,Aye=AG,Cye=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Mh=new WeakMap,kx=new WeakMap,Ox={},oT=0,MG=function(t){return t&&(t.host||MG(t.parentNode))},Mye=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=MG(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},Rye=function(t,e,n,r){var i=Mye(e,Array.isArray(t)?t:[t]);Ox[n]||(Ox[n]=new WeakMap);var s=Ox[n],o=[],a=new Set,c=new Set(i),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};i.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(a.has(f))d(f);else try{var m=f.getAttribute(r),v=m!==null&&m!=="false",p=(Mh.get(f)||0)+1,g=(s.get(f)||0)+1;Mh.set(f,p),s.set(f,g),o.push(f),p===1&&v&&kx.set(f,!0),g===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return d(e),a.clear(),oT++,function(){o.forEach(function(h){var f=Mh.get(h)-1,m=s.get(h)-1;Mh.set(h,f),s.set(h,m),f||(kx.has(h)||h.removeAttribute(r),kx.delete(h)),m||h.removeAttribute(n)}),oT--,oT||(Mh=new WeakMap,Mh=new WeakMap,kx=new WeakMap,Ox={})}},Hk=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=Cye(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Rye(r,i,n,"aria-hidden")):function(){return null}},fa=function(){return fa=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},fa.apply(this,arguments)};function RG(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Pye(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var aw="right-scroll-bar-position",lw="width-before-scroll-bar",jye="with-scroll-bars-hidden",Nye="--removed-body-scroll-bar-size";function aT(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function kye(t,e){var n=E.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var Oye=typeof window<"u"?E.useLayoutEffect:E.useEffect,XL=new WeakMap;function Iye(t,e){var n=kye(null,function(r){return t.forEach(function(i){return aT(i,r)})});return Oye(function(){var r=XL.get(n);if(r){var i=new Set(r),s=new Set(t),o=n.current;i.forEach(function(a){s.has(a)||aT(a,null)}),s.forEach(function(a){i.has(a)||aT(a,o)})}XL.set(n,t)},[t]),n}function Lye(t){return t}function Dye(t,e){e===void 0&&(e=Lye);var n=[],r=!1,i={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]:t},useMedium:function(s){var o=e(s,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(s),o=n}var c=function(){var d=o;o=[],d.forEach(s)},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 i}function Fye(t){t===void 0&&(t={});var e=Dye(null);return e.options=fa({async:!0,ssr:!1},t),e}var PG=function(t){var e=t.sideCar,n=RG(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return E.createElement(r,fa({},n))};PG.isSideCarExport=!0;function Uye(t,e){return t.useMedium(e),PG}var jG=Fye(),lT=function(){},CS=E.forwardRef(function(t,e){var n=E.useRef(null),r=E.useState({onScrollCapture:lT,onWheelCapture:lT,onTouchMoveCapture:lT}),i=r[0],s=r[1],o=t.forwardProps,a=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,h=t.shards,f=t.sideCar,m=t.noRelative,v=t.noIsolation,p=t.inert,g=t.allowPinchZoom,y=t.as,b=y===void 0?"div":y,x=t.gapMode,w=RG(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,S=Iye([n,e]),T=fa(fa({},w),i);return E.createElement(E.Fragment,null,d&&E.createElement(_,{sideCar:jG,removeScrollBar:u,shards:h,noRelative:m,noIsolation:v,inert:p,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:x}),o?E.cloneElement(E.Children.only(a),fa(fa({},T),{ref:S})):E.createElement(b,fa({},T,{className:c,ref:S}),a))});CS.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};CS.classNames={fullWidth:lw,zeroRight:aw};var Bye=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zye(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Bye();return e&&t.setAttribute("nonce",e),t}function $ye(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Hye(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Vye=function(){var t=0,e=null;return{add:function(n){t==0&&(e=zye())&&($ye(e,n),Hye(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Wye=function(){var t=Vye();return function(e,n){E.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},NG=function(){var t=Wye(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},Gye={left:0,top:0,right:0,gap:0},cT=function(t){return parseInt(t||"",10)||0},qye=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[cT(n),cT(r),cT(i)]},Yye=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Gye;var e=qye(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},Xye=NG(),Vf="data-scroll-locked",Kye=function(t,e,n,r){var i=t.left,s=t.top,o=t.right,a=t.gap;return n===void 0&&(n="margin"),` 5353 .`.concat(jye,` { 5354 overflow: hidden `).concat(r,`; 5355 padding-right: `).concat(a,"px ").concat(r,`; 5356 } 5357 body[`).concat(Vf,`] { 5358 overflow: hidden `).concat(r,`; 5359 overscroll-behavior: contain; 5360 `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&` 5361 padding-left: `.concat(i,`px; 5362 padding-top: `).concat(s,`px; 5363 padding-right: `).concat(o,`px; 5364 margin-left:0; 5365 margin-top:0; 5366 margin-right: `).concat(a,"px ").concat(r,`; 5367 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
5367")].filter(Boolean).join(""),` 5368 } 5369 5370 .`).concat(aw,` { 5371 right: `).concat(a,"px ").concat(r,`; 5372 } 5373 5374 .`).concat(lw,` { 5375 margin-right: `).concat(a,"px ").concat(r,`; 5376 } 5377 5378 .`).concat(aw," .").concat(aw,` { 5379 right: 0 `).concat(r,`; 5380 } 5381 5382 .`).concat(lw," .").concat(lw,` { 5383 margin-right: 0 `).concat(r,`; 5384 } 5385 5386 body[`).concat(Vf,`] { 5387 `).concat(Nye,": ").concat(a,`px; 5388 } 5389`)},KL=function(){var t=parseInt(document.body.getAttribute(Vf)||"0",10);return isFinite(t)?t:0},Qye=function(){E.useEffect(function(){return document.body.setAttribute(Vf,(KL()+1).toString()),function(){var t=KL()-1;t<=0?document.body.removeAttribute(Vf):document.body.setAttribute(Vf,t.toString())}},[])},Zye=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;Qye();var s=E.useMemo(function(){return Yye(i)},[i]);return E.createElement(Xye,{styles:Kye(s,!e,i,n?"":"!important")})},KM=!1;if(typeof window<"u")try{var Ix=Object.defineProperty({},"passive",{get:function(){return KM=!0,!0}});window.addEventListener("test",Ix,Ix),window.removeEventListener("test",Ix,Ix)}catch{KM=!1}var Rh=KM?{passive:!1}:!1,Jye=function(t){return t.tagName==="TEXTAREA"},kG=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!Jye(t)&&n[e]==="visible")},e0e=function(t){return kG(t,"overflowY")},t0e=function(t){return kG(t,"overflowX")},QL=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=OG(t,r);if(i){var s=IG(t,r),o=s[1],a=s[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},n0e=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},r0e=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},OG=function(t,e){return t==="v"?e0e(e):t0e(e)},IG=function(t,e){return t==="v"?n0e(e):r0e(e)},i0e=function(t,e){return t==="h"&&e==="rtl"?-1:1},s0e=function(t,e,n,r,i){var s=i0e(t,window.getComputedStyle(e).direction),o=s*r,a=n.target,c=e.contains(a),u=!1,d=o>0,h=0,f=0;do{if(!a)break;var m=IG(t,a),v=m[0],p=m[1],g=m[2],y=p-g-s*v;(v||y)&&OG(t,a)&&(h+=y,f+=v);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(d&&(Math.abs(h)<1||!i)||!d&&(Math.abs(f)<1||!i))&&(u=!0),u},Lx=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},ZL=function(t){return[t.deltaX,t.deltaY]},JL=function(t){return t&&"current"in t?t.current:t},o0e=function(t,e){return t[0]===e[0]&&t[1]===e[1]},a0e=function(t){return` 5390 .block-interactivity-`.concat(t,` {pointer-events: none;} 5391 .allow-interactivity-`).concat(t,` {pointer-events: all;} 5392`)},l0e=0,Ph=[];function c0e(t){var e=E.useRef([]),n=E.useRef([0,0]),r=E.useRef(),i=E.useState(l0e++)[0],s=E.useState(NG)[0],o=E.useRef(t);E.useEffect(function(){o.current=t},[t]),E.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var p=Pye([t.lockRef.current],(t.shards||[]).map(JL),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=E.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=Lx(p),b=n.current,x="deltaX"in p?p.deltaX:b[0]-y[0],w="deltaY"in p?p.deltaY:b[1]-y[1],_,S=p.target,T=Math.abs(x)>Math.abs(w)?"h":"v";if("touches"in p&&T==="h"&&S.type==="range")return!1;var M=QL(T,S);if(!M)return!0;if(M?_=T:(_=T==="v"?"h":"v",M=QL(T,S)),!M)return!1;if(!r.current&&"changedTouches"in p&&(x||w)&&(r.current=_),!_)return!0;var A=r.current||_;return s0e(A,g,p,A==="h"?x:w,!0)},[]),c=E.useCallback(function(p){var g=p;if(!(!Ph.length||Ph[Ph.length-1]!==s)){var y="deltaY"in g?ZL(g):Lx(g),b=e.current.filter(function(_){return _.name===g.type&&(_.target===g.target||g.target===_.shadowParent)&&o0e(_.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}
vendor: 28,394 bytes, lines 5392-5396
5392if(!b){var x=(o.current.shards||[]).map(JL).filter(Boolean).filter(function(_){return _.contains(g.target)}),w=x.length>0?a(g,x[0]):!o.current.noIsolation;w&&g.cancelable&&g.preventDefault()}}},[]),u=E.useCallback(function(p,g,y,b){var x={name:p,delta:g,target:y,should:b,shadowParent:u0e(y)};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(w){return w!==x})},1)},[]),d=E.useCallback(function(p){n.current=Lx(p),r.current=void 0},[]),h=E.useCallback(function(p){u(p.type,ZL(p),p.target,a(p,t.lockRef.current))},[]),f=E.useCallback(function(p){u(p.type,Lx(p),p.target,a(p,t.lockRef.current))},[]);E.useEffect(function(){return Ph.push(s),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Rh),document.addEventListener("touchmove",c,Rh),document.addEventListener("touchstart",d,Rh),function(){Ph=Ph.filter(function(p){return p!==s}),document.removeEventListener("wheel",c,Rh),document.removeEventListener("touchmove",c,Rh),document.removeEventListener("touchstart",d,Rh)}},[]);var m=t.removeScrollBar,v=t.inert;return E.createElement(E.Fragment,null,v?E.createElement(s,{styles:a0e(i)}):null,m?E.createElement(Zye,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function u0e(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const d0e=Uye(jG,c0e);var MS=E.forwardRef(function(t,e){return E.createElement(CS,fa({},t,{ref:e,sideCar:d0e}))});MS.classNames=CS.classNames;var QM=["Enter"," "],h0e=["ArrowDown","PageUp","Home"],LG=["ArrowUp","PageDown","End"],f0e=[...h0e,...LG],m0e={ltr:[...QM,"ArrowRight"],rtl:[...QM,"ArrowLeft"]},p0e={ltr:["ArrowLeft"],rtl:["ArrowRight"]},B0="Menu",[yy,g0e,v0e]=fp(B0),[fh,DG]=ks(B0,[v0e,bp,SG]),RS=bp(),FG=SG(),[y0e,mh]=fh(B0),[x0e,z0]=fh(B0),UG=t=>{const{__scopeMenu:e,open:n=!1,children:r,dir:i,onOpenChange:s,modal:o=!0}=t,a=RS(e),[c,u]=E.useState(null),d=E.useRef(!1),h=ns(s),f=F0(i);return E.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),l.jsx(FN,{...a,children:l.jsx(y0e,{scope:e,open:n,onOpenChange:h,content:c,onContentChange:u,children:l.jsx(x0e,{scope:e,onClose:E.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:f,modal:o,children:r})})})};UG.displayName=B0;var b0e="MenuAnchor",Vk=E.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,i=RS(n);return l.jsx(UN,{...i,...r,ref:e})});Vk.displayName=b0e;var Wk="MenuPortal",[w0e,BG]=fh(Wk,{forceMount:void 0}),zG=t=>{const{__scopeMenu:e,forceMount:n,children:r,container:i}=t,s=mh(Wk,e);return l.jsx(w0e,{scope:e,forceMount:n,children:l.jsx(Jo,{present:n||s.open,children:l.jsx(E0,{asChild:!0,container:i,children:r})})})};zG.displayName=Wk;var so="MenuContent",[_0e,Gk]=fh(so),$G=E.forwardRef((t,e)=>{const n=BG(so,t.__scopeMenu),{forceMount:r=n.forceMount,...i}=t,s=mh(so,t.__scopeMenu),o=z0(so,t.__scopeMenu);return l.jsx(yy.Provider,{scope:t.__scopeMenu,children:l.jsx(Jo,{present:r||s.open,children:l.jsx(yy.Slot,{scope:t.__scopeMenu,children:o.modal?l.jsx(S0e,{...i,ref:e}):l.jsx(E0e,{...i,ref:e})})})})}),S0e=E.forwardRef((t,e)=>{const n=mh(so,t.__scopeMenu),r=E.useRef(null),i=At(e,r);return E.useEffect(()=>{const s=r.current;if(s)return Hk(s)},[]),l.jsx(qk,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:De(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),E0e=E.forwardRef((t,e)=>{const n=mh(so,t.__scopeMenu);return l.jsx(qk,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),T0e=$d("MenuContent.ScrollLock"),qk=E.forwardRef((t,e)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,onDismiss:m,disableOutsideScroll:v,...p}=t,g=mh(so,n),y=z0(so,n),b=RS(n),x=FG(n),w=g0e(n),[_,S]=E.useState(null),T=E.useRef(null),M=At(e,T,g.onContentChange),A=E.useRef(0),C=E.useRef(""),R=E.useRef(0),j=E.useRef(null),k=E.useRef("right"),P=E.useRef(0),O=v?MS:E.Fragment,L=v?{as:T0e,allowPinchZoom:!0}:void 0,F=I=>{var X,ae;const N=C.current+I,G=w().filter(J=>!J.disabled),q=document.activeElement,W=(X=G.find(J=>J.ref.current===q))==null?void 0:X.textValue,Y=G.map(J=>J.textValue),te=D0e(Y,N,W),Q=(ae=G.find(J=>J.textValue===te))==null?void 0:ae.ref.current;(function J(ue){C.current=ue,window.clearTimeout(A.current),ue!==""&&(A.current=window.setTimeout(()=>J(""),1e3))})(N),Q&&setTimeout(()=>Q.focus())};E.useEffect(()=>()=>window.clearTimeout(A.current),[]),$k();const D=E.useCallback(I=>{var G,q;return k.current===((G=j.current)==null?void 0:G.side)&&U0e(I,(q=j.current)==null?void 0:q.area)},[]);return l.jsx(_0e,{scope:n,searchRef:C,onItemEnter:E.useCallback(I=>{D(I)&&I.preventDefault()},[D]),onItemLeave:E.useCallback(I=>{var N;D(I)||((N=T.current)==null||N.focus(),S(null))},[D]),onTriggerLeave:E.useCallback(I=>{D(I)&&I.preventDefault()},[D]),pointerGraceTimerRef:R,onPointerGraceIntentChange:E.useCallback(I=>{j.current=I},[]),children:l.jsx(O,{...L,children:l.jsx(AS,{asChild:!0,trapped:i,onMountAutoFocus:De(s,I=>{var N;I.preventDefault(),(N=T.current)==null||N.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:l.jsx(mp,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,onDismiss:m,children:l.jsx(Tye,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:S,onEntryFocus:De(c,I=>{y.isUsingKeyboardRef.current||I.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(BN,{role:"menu","aria-orientation":"vertical","data-state":iq(g.open),"data-radix-menu-content":"",dir:y.dir,...b,...p,ref:M,style:{outline:"none",...p.style},onKeyDown:De(p.onKeyDown,I=>{const G=I.target.closest("[data-radix-menu-content]")===I.currentTarget,q=I.ctrlKey||I.altKey||I.metaKey,W=I.key.length===1;G&&(I.key==="Tab"&&I.preventDefault(),!q&&W&&F(I.key));const Y=T.current;if(I.target!==Y||!f0e.includes(I.key))return;I.preventDefault();const Q=w().filter(X=>!X.disabled).map(X=>X.ref.current);LG.includes(I.key)&&Q.reverse(),I0e(Q)}),onBlur:De(t.onBlur,I=>{I.currentTarget.contains(I.target)||(window.clearTimeout(A.current),C.current="")}),onPointerMove:De(t.onPointerMove,xy(I=>{const N=I.target,G=P.current!==I.clientX;if(I.currentTarget.contains(N)&&G){const q=I.clientX>P.current?"right":"left";k.current=q,P.current=I.clientX}}))})})})})})})});$G.displayName=so;var A0e="MenuGroup",Yk=E.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return l.jsx(ht.div,{role:"group",...r,ref:e})});Yk.displayName=A0e;var C0e="MenuLabel",HG=E.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return l.jsx(ht.div,{...r,ref:e})});HG.displayName=C0e;var u1="MenuItem",eD="menu.itemSelect",PS=E.forwardRef((t,e)=>{const{disabled:n=!1,onSelect:r,...i}=t,s=E.useRef(null),o=z0(u1,t.__scopeMenu),a=Gk(u1,t.__scopeMenu),c=At(e,s),u=E.useRef(!1),d=()=>{const h=s.current;if(!n&&h){const f=new CustomEvent(eD,{bubbles:!0,cancelable:!0});h.addEventListener(eD,m=>r==null?void 0:r(m),{once:!0}),bN(h,f),f.defaultPrevented?u.current=!1:o.onClose()}};return l.jsx(VG,{...i,ref:c,disabled:n,onClick:De(t.onClick,d),onPointerDown:h=>{var f;(f=t.onPointerDown)==null||f.call(t,h),u.current=!0},onPointerUp:De(t.onPointerUp,h=>{var f;u.current||(f=h.currentTarget)==null||f.click()}),onKeyDown:De(t.onKeyDown,h=>{const f=a.searchRef.current!=="";n||f&&h.key===" "||QM.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});PS.displayName=u1;var VG=E.forwardRef((t,e)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=t,o=Gk(u1,n),a=FG(n),c=E.useRef(null),u=At(e,c),[d,h]=E.useState(!1),[f,m]=E.useState("");return E.useEffect(()=>{const v=c.current;v&&m((v.textContent??"").trim())},[s.children]),l.jsx(yy.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:l.jsx(Aye,{asChild:!0,...a,focusable:!r,children:l.jsx(ht.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:De(t.onPointerMove,xy(v=>{r?o.onItemLeave(v):(o.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:De(t.onPointerLeave,xy(v=>o.onItemLeave(v))),onFocus:De(t.onFocus,()=>h(!0)),onBlur:De(t.onBlur,()=>h(!1))})})})}),M0e="MenuCheckboxItem",WG=E.forwardRef((t,e)=>{const{checked:n=!1,onCheckedChange:r,...i}=t;return l.jsx(KG,{scope:t.__scopeMenu,checked:n,children:l.jsx(PS,{role:"menuitemcheckbox","aria-checked":d1(n)?"mixed":n,...i,ref:e,"data-state":Kk(n),onSelect:De(i.onSelect,()=>r==null?void 0:r(d1(n)?!0:!n),{checkForDefaultPrevented:!1})})})});WG.displayName=M0e;var GG="MenuRadioGroup",[R0e,P0e]=fh(GG,{value:void 0,onValueChange:()=>{}}),qG=E.forwardRef((t,e)=>{const{value:n,onValueChange:r,...i}=t,s=ns(r);return l.jsx(R0e,{scope:t.__scopeMenu,value:n,onValueChange:s,children:l.jsx(Yk,{...i,ref:e})})});qG.displayName=GG;var YG="MenuRadioItem",XG=E.forwardRef((t,e)=>{const{value:n,...r}=t,i=P0e(YG,t.__scopeMenu),s=n===i.value;return l.jsx(KG,{scope:t.__scopeMenu,checked:s,children:l.jsx(PS,{role:"menuitemradio","aria-checked":s,...r,ref:e,"data-state":Kk(s),onSelect:De(r.onSelect,()=>{var o;return(o=i.onValueChange)==null?void 0:o.call(i,n)},{checkForDefaultPrevented:!1})})})});XG.displayName=YG;var Xk="MenuItemIndicator",[KG,j0e]=fh(Xk,{checked:!1}),QG=E.forwardRef((t,e)=>{const{__scopeMenu:n,forceMount:r,...i}=t,s=j0e(Xk,n);return l.jsx(Jo,{present:r||d1(s.checked)||s.checked===!0,children:l.jsx(ht.span,{...i,ref:e,"data-state":Kk(s.checked)})})});QG.displayName=Xk;var N0e="MenuSeparator",ZG=E.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return l.jsx(ht.div,{role:"separator","aria-orientation":"horizontal",...r,ref:e})});ZG.displayName=N0e;var k0e="MenuArrow",JG=E.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,i=RS(n);return l.jsx(zN,{...i,...r,ref:e})});JG.displayName=k0e;var O0e="MenuSub",[uJe,eq]=fh(O0e),Ug="MenuSubTrigger",tq=E.forwardRef((t,e)=>{const n=mh(Ug,t.__scopeMenu),r=z0(Ug,t.__scopeMenu),i=eq(Ug,t.__scopeMenu),s=Gk(Ug,t.__scopeMenu),o=E.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=s,u={__scopeMenu:t.__scopeMenu},d=E.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return E.useEffect(()=>d,[d]),E.useEffect(()=>{const h=a.current;return()=>{window.clearTimeout(h),c(null)}},[a,c]),l.jsx(Vk,{asChild:!0,...u,children:l.jsx(VG,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":iq(n.open),...t,ref:nS(e,i.onTriggerChange),onClick:h=>{var f;(f=t.onClick)==null||f.call(t,h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:De(t.onPointerMove,xy(h=>{s.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!n.open&&!o.current&&(s.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:De(t.onPointerLeave,xy(h=>{var m,v;d();const f=(m=n.content)==null?void 0:m.getBoundingClientRect();if(f){const p=(v=n.content)==null?void 0:v.dataset.side,g=p==="right",y=g?-5:5,b=f[g?"left":"right"],x=f[g?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+y,y:h.clientY},{x:b,y:f.top},{x,y:f.top},{x,y:f.bottom},{x:b,y:f.bottom}],side:p}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:De(t.onKeyDown,h=>{var m;const f=s.searchRef.current!=="";t.disabled||f&&h.key===" "||m0e[r.dir].includes(h.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),h.preventDefault())})})})});tq.displayName=Ug;var nq="MenuSubContent",rq=E.forwardRef((t,e)=>{const n=BG(so,t.__scopeMenu),{forceMount:r=n.forceMount,...i}=t,s=mh(so,t.__scopeMenu),o=z0(so,t.__scopeMenu),a=eq(nq,t.__scopeMenu),c=E.useRef(null),u=At(e,c);return l.jsx(yy.Provider,{scope:t.__scopeMenu,children:l.jsx(Jo,{present:r||s.open,children:l.jsx(yy.Slot,{scope:t.__scopeMenu,children:l.jsx(qk,{id:a.contentId,"aria-labelledby":a.triggerId,...i,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var h;o.isUsingKeyboardRef.current&&((h=c.current)==null||h.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:De(t.onFocusOutside,d=>{d.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:De(t.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:De(t.onKeyDown,d=>{var m;const h=d.currentTarget.contains(d.target),f=p0e[o.dir].includes(d.key);h&&f&&(s.onOpenChange(!1),(m=a.trigger)==null||m.focus(),d.preventDefault())})})})})})});rq.displayName=nq;function iq(t){return t?"open":"closed"}function d1(t){return t==="indeterminate"}function Kk(t){return d1(t)?"indeterminate":t?"checked":"unchecked"}function I0e(t){const e=document.activeElement;for(const n of t)if(n===e||(n.focus(),document.activeElement!==e))return}function L0e(t,e){return t.map((n,r)=>t[(e+r)%t.length])}function D0e(t,e,n){const i=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,s=n?t.indexOf(n):-1;let o=L0e(t,Math.max(s,0));i.length===1&&(o=o.filter(u=>u!==n));const c=o.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function F0e(t,e){const{x:n,y:r}=t;let i=!1;for(let s=0,o=e.length-1;s<e.length;o=s++){const a=e[s],c=e[o],u=a.x,d=a.y,h=c.x,f=c.y;d>r!=f>r&&n<(h-u)*(r-d)/(f-d)+u&&(i=!i)}return i}function U0e(t,e){if(!e)return!1;const n={x:t.clientX,y:t.clientY};return F0e(n,e)}function xy(t){return e=>e.pointerType==="mouse"?t(e):void 0}var B0e=UG,z0e=Vk,$0e=zG,H0e=$G,V0e=Yk,W0e=HG,G0e=PS,q0e=WG,Y0e=qG,X0e=XG,K0e=QG,Q0e=ZG,Z0e=JG,J0e=tq,exe=rq,jS="DropdownMenu",[txe,dJe]=ks(jS,[DG]),Oi=DG(),[nxe,sq]=txe(jS),oq=t=>{const{__scopeDropdownMenu:e,children:n,dir:r,open:i,defaultOpen:s,onOpenChange:o,modal:a=!0}=t,c=Oi(e),u=E.useRef(null),[d,h]=uo({prop:i,defaultProp:s??!1,onChange:o,caller:jS});return l.jsx(nxe,{scope:e,triggerId:io(),triggerRef:u,contentId:io(),open:d,onOpenChange:h,onOpenToggle:E.useCallback(()=>h(f=>!f),[h]),modal:a,children:l.jsx(B0e,{...c,open:d,onOpenChange:h,dir:r,modal:a,children:n})})};oq.displayName=jS;var aq="DropdownMenuTrigger",lq=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=t,s=sq(aq,n),o=Oi(n);return l.jsx(z0e,{asChild:!0,...o,children:l.jsx(ht.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:nS(e,s.triggerRef),onPointerDown:De(t.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:De(t.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});lq.displayName=aq;var rxe="DropdownMenuPortal",cq=t=>{const{__scopeDropdownMenu:e,...n}=t,r=Oi(e);return l.jsx($0e,{...r,...n})};cq.displayName=rxe;var uq="DropdownMenuContent",dq=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=sq(uq,n),s=Oi(n),o=E.useRef(!1);return l.jsx(H0e,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...r,ref:e,onCloseAutoFocus:De(t.onCloseAutoFocus,a=>{var c;o.current||(c=i.triggerRef.current)==null||c.focus(),o.current=!1,a.preventDefault()}),onInteractOutside:De(t.onInteractOutside,a=>{const c=a.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!i.modal||d)&&(o.current=!0)}),style:{...t.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)"}})});dq.displayName=uq;var ixe="DropdownMenuGroup",sxe=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(V0e,{...i,...r,ref:e})});sxe.displayName=ixe;var oxe="DropdownMenuLabel",hq=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(W0e,{...i,...r,ref:e})});hq.displayName=oxe;var axe="DropdownMenuItem",fq=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(G0e,{...i,...r,ref:e})});fq.displayName=axe;var lxe="DropdownMenuCheckboxItem",mq=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(q0e,{...i,...r,ref:e})});mq.displayName=lxe;var cxe="DropdownMenuRadioGroup",uxe=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(Y0e,{...i,...r,ref:e})});uxe.displayName=cxe;var dxe="DropdownMenuRadioItem",pq=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(X0e,{...i,...r,ref:e})});pq.displayName=dxe;var hxe="DropdownMenuItemIndicator",gq=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(K0e,{...i,...r,ref:e})});gq.displayName=hxe;var fxe="DropdownMenuSeparator",vq=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(Q0e,{...i,...r,ref:e})});vq.displayName=fxe;var mxe="DropdownMenuArrow",pxe=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(Z0e,{...i,...r,ref:e})});pxe.displayName=mxe;var gxe="DropdownMenuSubTrigger",yq=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(J0e,{...i,...r,ref:e})});yq.displayName=gxe;var vxe="DropdownMenuSubContent",xq=E.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Oi(n);return l.jsx(exe,{...i,...r,ref:e,style:{...t.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)"}})});xq.displayName=vxe;var yxe=oq,xxe=lq,bxe=cq,bq=dq,wq=hq,_q=fq,Sq=mq,Eq=pq,Tq=gq,Aq=vq,Cq=yq,Mq=xq;const NS=yxe,kS=xxe,wxe=E.forwardRef(({className:t,inset:e,children:n,...r},i)=>l.jsxs(Cq,{ref:i,className:He("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t),...r,children:[n,l.jsx(_se,{className:"ml-auto h-4 w-4"})]}));wxe.displayName=Cq.displayName;const _xe=E.forwardRef(({className:t,...e},n)=>l.jsx(Mq,{ref:n,className:He("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",t),...e}));_xe.displayName=Mq.displayName;const $0=E.forwardRef(({className:t,sideOffset:e=4,...n},r)=>l.jsx(bxe,{children:l.jsx(bq,{ref:r,sideOffset:e,className:He("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})}));$0.displayName=bq.displayName;const ZM=E.forwardRef(({className:t,inset:e,...n},r)=>l.jsx(_q,{ref:r,className:He("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...n}));ZM.displayName=_q.displayName;const Sxe=E.forwardRef(({className:t,children:e,checked:n,...r},i)=>l.jsxs(Sq,{ref:i,className:He("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:n,...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Tq,{children:l.jsx(Sm,{className:"h-4 w-4"})})}),e]}));Sxe.displayName=Sq.displayName;const Exe=E.forwardRef(({className:t,children:e,...n},r)=>l.jsxs(Eq,{ref:r,className:He("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Tq,{children:l.jsx(EN,{className:"h-2 w-2 fill-current"})})}),e]}));Exe.displayName=Eq.displayName;const Txe=E.forwardRef(({className:t,inset:e,...n},r)=>l.jsx(wq,{ref:r,className:He("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...n}));Txe.displayName=wq.displayName;const Axe=E.forwardRef(({className:t,...e},n)=>l.jsx(Aq,{ref:n,className:He("-mx-1 my-1 h-px bg-muted",t),...e}));Axe.displayName=Aq.displayName;var OS="Dialog",[Rq,hJe]=ks(OS),[Cxe,ea]=Rq(OS),Pq=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=E.useRef(null),c=E.useRef(null),[u,d]=uo({prop:r,defaultProp:i??!1,onChange:s,caller:OS});return l.jsx(Cxe,{scope:e,triggerRef:a,contentRef:c,contentId:io(),titleId:io(),descriptionId:io(),open:u,onOpenChange:d,onOpenToggle:E.useCallback(()=>d(h=>!h),[d]),modal:o,children:n})};Pq.displayName=OS;var jq="DialogTrigger",Nq=E.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ea(jq,n),s=At(e,i.triggerRef);return l.jsx(ht.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Jk(i.open),...r,ref:s,onClick:De(t.onClick,i.onOpenToggle)})});Nq.displayName=jq;var Qk="DialogPortal",[Mxe,kq]=Rq(Qk,{forceMount:void 0}),Oq=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,s=ea(Qk,e);return l.jsx(Mxe,{scope:e,forceMount:n,children:E.Children.map(r,o=>l.jsx(Jo,{present:n||s.open,children:l.jsx(E0,{asChild:!0,container:i,children:o})}))})};Oq.displayName=Qk;var h1="DialogOverlay",Iq=E.forwardRef((t,e)=>{const n=kq(h1,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,s=ea(h1,t.__scopeDialog);return s.modal?l.jsx(Jo,{present:r||s.open,children:l.jsx(Pxe,{...i,ref:e})}):null});Iq.displayName=h1;var Rxe=$d("DialogOverlay.RemoveScroll"),Pxe=E.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ea(h1,n);return l.jsx(MS,{as:Rxe,allowPinchZoom:!0,shards:[i.contentRef],children:l.jsx(ht.div,{"data-state":Jk(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),Gd="DialogContent",Lq=E.forwardRef((t,e)=>{const n=kq(Gd,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,s=ea(Gd,t.__scopeDialog);return l.jsx(Jo,{present:r||s.open,children:s.modal?l.jsx(jxe,{...i,ref:e}):l.jsx(Nxe,{...i,ref:e})})});Lq.displayName=Gd;var jxe=E.forwardRef((t,e)=>{const n=ea(Gd,t.__scopeDialog),r=E.useRef(null),i=At(e,n.contentRef,r);return E.useEffect(()=>{const s=r.current;if(s)return Hk(s)},[]),l.jsx(Dq,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:De(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:De(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:De(t.onFocusOutside,s=>s.preventDefault())})}),Nxe=E.forwardRef((t,e)=>{const n=ea(Gd,t.__scopeDialog),r=E.useRef(!1),i=E.useRef(!1);return l.jsx(Dq,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,a;(o=t.onCloseAutoFocus)==null||o.call(t,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var c,u;(c=t.onInteractOutside)==null||c.call(t,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),Dq=E.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=ea(Gd,n),c=E.useRef(null),u=At(e,c);return $k(),l.jsxs(l.Fragment,{children:[l.jsx(AS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:l.jsx(mp,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Jk(a.open),...o,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(kxe,{titleId:a.titleId}),l.jsx(Ixe,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Zk="DialogTitle",Fq=E.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ea(Zk,n);return l.jsx(ht.h2,{id:i.titleId,...r,ref:e})});Fq.displayName=Zk;var Uq="DialogDescription",Bq=E.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ea(Uq,n);return l.jsx(ht.p,{id:i.descriptionId,...r,ref:e})});Bq.displayName=Uq;var zq="DialogClose",$q=E.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=ea(zq,n);return l.jsx(ht.button,{type:"button",...r,ref:e,onClick:De(t.onClick,()=>i.onOpenChange(!1))})});$q.displayName=zq;function Jk(t){return t?"open":"closed"}var Hq="DialogTitleWarning",[fJe,Vq]=_ie(Hq,{contentName:Gd,titleName:Zk,docsSlug:"dialog"}),kxe=({titleId:t})=>{const e=Vq(Hq),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. 5393 5394If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. 5395 5396For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return E.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},Oxe="DialogDescriptionWarning",Ixe=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vq(Oxe).contentName}}.`;return E.useEffect(()=>{var s;const i=(s=t.current)==null?void 0:s.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},Wq=Pq,Lxe=Nq,Gq=Oq,IS=Iq,LS=Lq,DS=Fq,FS=Bq,qq=$q;const Dxe=Wq,Fxe=Lxe,Uxe=Gq,Yq=E.forwardRef(({className:t,...e},n)=>l.jsx(IS,{className:He("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",t),...e,ref:n}));Yq.displayName=IS.displayName;const Bxe=A0("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Xq=E.forwardRef(({side:t="right",className:e,children:n,...r},i)=>l.jsxs(Uxe,{children:[l.jsx(Yq,{}),l.jsxs(LS,{ref:i,className:He(Bxe({side:t}),e),...r,children:[n,l.jsxs(qq,{className:"absolute right-4 top-4 roun
5396ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[l.jsx(gp,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Xq.displayName=LS.displayName;const zxe=E.forwardRef(({className:t,...e},n)=>l.jsx(DS,{ref:n,className:He("text-lg font-semibold text-foreground",t),...e}));zxe.displayName=DS.displayName;const $xe=E.forwardRef(({className:t,...e},n)=>l.jsx(FS,{ref:n,className:He("text-sm text-muted-foreground",t),...e}));$xe.displayName=FS.displayName;function pv(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function JM(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Hxe(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function tD(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function nD(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function Vxe(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function Wxe(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function uT(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function Gxe(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function qxe(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function rD(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function Yxe(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function Xxe(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function eR(t,e){let n=e[0],r=e[1],i=e[2],s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s)),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t}function Kq(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function iD(t,e,n){let r=e[0],i=e[1],s=e[2],o=n[0],a=n[1],c=n[2];return t[0]=i*c-s*a,t[1]=s*o-r*c,t[2]=r*a-i*o,t}function Kxe(t,e,n,r){let i=e[0],s=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=s+r*(n[1]-s),t[2]=o+r*(n[2]-o),t}function Qxe(t,e,n,r,i){const s=Math.exp(-r*i);let o=e[0],a=e[1],c=e[2];return t[0]=n[0]+(o-n[0])*s,t[1]=n[1]+(a-n[1])*s,t[2]=n[2]+(c-n[2])*s,t}function Zxe(t,e,n){let r=e[0],i=e[1],s=e[2],o=n[3]*r+n[7]*i+n[11]*s+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*s+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*s+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*s+n[14])/o,t}function Jxe(t,e,n){let r=e[0],i=e[1],s=e[2],o=n[3]*r+n[7]*i+n[11]*s+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*s)/o,t[1]=(n[1]*r+n[5]*i+n[9]*s)/o,t[2]=(n[2]*r+n[6]*i+n[10]*s)/o,t}function ebe(t,e,n){let r=e[0],i=e[1],s=e[2];return t[0]=r*n[0]+i*n[3]+s*n[6],t[1]=r*n[1]+i*n[4]+s*n[7],t[2]=r*n[2]+i*n[5]+s*n[8],t}function tbe(t,e,n){let r=e[0],i=e[1],s=e[2],o=n[0],a=n[1],c=n[2],u=n[3],d=a*s-c*i,h=c*r-o*s,f=o*i-a*r,m=a*f-c*h,v=c*d-o*f,p=o*h-a*d,g=u*2;return d*=g,h*=g,f*=g,m*=2,v*=2,p*=2,t[0]=r+d+m,t[1]=i+h+v,t[2]=s+f+p,t}const nbe=function(){const t=[0,0,0],e=[0,0,0];return function(n,r){JM(t,n),JM(e,r),eR(t,t),eR(e,e);let i=Kq(t,e);return i>1?0:i<-1?Math.PI:Math.acos(i)}}();function rbe(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}class Zs extends Array{constructor(e=0,n=e,r=e){return super(e,n,r),this}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(e){this[0]=e}set y(e){this[1]=e}set z(e){this[2]=e}set(e,n=e,r=e){return e.length?this.copy(e):(Hxe(this,e,n,r),this)}copy(e){return JM(this,e),this}add(e,n){return n?tD(this,e,n):tD(this,this,e),this}sub(e,n){return n?nD(this,e,n):nD(this,this,e),this}multiply(e){return e.length?Vxe(this,this,e):uT(this,this,e),this}divide(e){return e.length?Wxe(this,this,e):uT(this,this,1/e),this}inverse(e=this){return Xxe(this,e),this}len(){return pv(this)}distance(e){return e?Gxe(this,e):pv(this)}squaredLen(){return rD(this)}squaredDistance(e){return e?qxe(this,e):rD(this)}negate(e=this){return Yxe(this,e),this}cross(e,n){return n?iD(this,e,n):iD(this,this,e),this}scale(e){return uT(this,this,e),this}normalize(){return eR(this,this),this}dot(e){return Kq(this,e)}equals(e){return rbe(this,e)}applyMatrix3(e){return ebe(this,this,e),this}applyMatrix4(e){return Zxe(this,this,e),this}scaleRotateMatrix4(e){return Jxe(this,this,e),this}applyQuaternion(e){return tbe(this,this,e),this}angle(e){return nbe(this,e)}lerp(e,n){return Kxe(this,this,e,n),this}smoothLerp(e,n,r){return Qxe(this,this,e,n,r),this}clone(){return new Zs(this[0],this[1],this[2])}fromArray(e,n=0){return this[0]=e[n],this[1]=e[n+1],this[2]=e[n+2],this}toArray(e=[],n=0){return e[n]=this[0],e[n+1]=this[1],e[n+2]=this[2],e}transformDirection(e){const n=this[0],r=this[1],i=this[2];return this[0]=e[0]*n+e[4]*r+e[8]*i,this[1]=e[1]*n+e[5]*r+e[9]*i,this[2]=e[2]*n+e[6]*r+e[10]*i,this.normalize()}}const sD=new Zs;let ibe=1,sbe=1,oD=!1;class obe{constructor(e,n={}){e.canvas||console.error("gl not passed as first argument to Geometry"),this.gl=e,this.attributes=n,this.id=ibe++,this.VAOs={},this.drawRange={start:0,count:0},this.instancedCount=0,this.gl.renderer.bindVertexArray(null),this.gl.renderer.currentGeometry=null,this.glState=this.gl.renderer.state;for(let r in n)this.addAttribute(r,n[r])}
5396addAttribute(e,n){if(this.attributes[e]=n,n.id=sbe++,n.size=n.size||1,n.type=n.type||(n.data.constructor===Float32Array?this.gl.FLOAT:n.data.constructor===Uint16Array?this.gl.UNSIGNED_SHORT:this.gl.UNSIGNED_INT),n.target=e==="index"?this.gl.ELEMENT_ARRAY_BUFFER:this.gl.ARRAY_BUFFER,n.normalized=n.normalized||!1,n.stride=n.stride||0,n.offset=n.offset||0,n.count=n.count||(n.stride?n.data.byteLength/n.stride:n.data.length/n.size),n.divisor=n.instanced||0,n.needsUpdate=!1,n.usage=n.usage||this.gl.STATIC_DRAW,n.buffer||this.updateAttribute(n),n.divisor){if(this.isInstanced=!0,this.instancedCount&&this.instancedCount!==n.count*n.divisor)return console.warn("geometry has multiple instanced buffers of different length"),this.instancedCount=Math.min(this.instancedCount,n.count*n.divisor);this.instancedCount=n.count*n.divisor}else e==="index"?this.drawRange.count=n.count:this.attributes.index||(this.drawRange.count=Math.max(this.drawRange.count,n.count))}updateAttribute(e){const n=!e.buffer;n&&(e.buffer=this.gl.createBuffer()),this.glState.boundBuffer!==e.buffer&&(this.gl.bindBuffer(e.target,e.buffer),this.glState.boundBuffer=e.buffer),n?this.gl.bufferData(e.target,e.data,e.usage):this.gl.bufferSubData(e.target,0,e.data),e.needsUpdate=!1}setIndex(e){this.addAttribute("index",e)}setDrawRange(e,n){this.drawRange.start=e,this.drawRange.count=n}setInstancedCount(e){this.instancedCount=e}createVAO(e){this.VAOs[e.attributeOrder]=this.gl.renderer.createVertexArray(),this.gl.renderer.bindVertexArray(this.VAOs[e.attributeOrder]),this.bindAttributes(e)}bindAttributes(e){e.attributeLocations.forEach((n,{name:r,type:i})=>{if(!this.attributes[r]){console.warn(`active attribute ${r} not being supplied`);return}const s=this.attributes[r];this.gl.bindBuffer(s.target,s.buffer),this.glState.boundBuffer=s.buffer;let o=1;i===35674&&(o=2),i===35675&&(o=3),i===35676&&(o=4);const a=s.size/o,c=o===1?0:o*o*4,u=o===1?0:o*4;for(let d=0;d<o;d++)this.gl.vertexAttribPointer(n+d,a,s.type,s.normalized,s.stride+c,s.offset+d*u),this.gl.enableVertexAttribArray(n+d),this.gl.renderer.vertexAttribDivisor(n+d,s.divisor)}),this.attributes.index&&this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.attributes.index.buffer)}draw({program:e,mode:n=this.gl.TRIANGLES}){var i;this.gl.renderer.currentGeometry!==`${this.id}_${e.attributeOrder}`&&(this.VAOs[e.attributeOrder]||this.createVAO(e),this.gl.renderer.bindVertexArray(this.VAOs[e.attributeOrder]),this.gl.renderer.currentGeometry=`${this.id}_${e.attributeOrder}`),e.attributeLocations.forEach((s,{name:o})=>{const a=this.attributes[o];a.needsUpdate&&this.updateAttribute(a)});let r=2;((i=this.attributes.index)==null?void 0:i.type)===this.gl.UNSIGNED_INT&&(r=4),this.isInstanced?this.attributes.index?this.gl.renderer.drawElementsInstanced(n,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*r,this.instancedCount):this.gl.renderer.drawArraysInstanced(n,this.drawRange.start,this.drawRange.count,this.instancedCount):this.attributes.index?this.gl.drawElements(n,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*r):this.gl.drawArrays(n,this.drawRange.start,this.drawRange.count)}getPosition(){const e=this.attributes.position;if(e.data)return e;if(!oD)return console.warn("No position buffer data found to compute bounds"),oD=!0}computeBoundingBox(e){e||(e=this.getPosition());const n=e.data,r=e.size;this.bounds||(this.bounds={min:new Zs,max:new Zs,center:new Zs,scale:new Zs,radius:1/0});const i=this.bounds.min,s=this.bounds.max,o=this.bounds.center,a=this.bounds.scale;i.set(1/0),s.set(-1/0);for(let c=0,u=n.length;c<u;c+=r){const d=n[c],h=n[c+1],f=n[c+2];i.x=Math.min(d,i.x),i.y=Math.min(h,i.y),i.z=Math.min(f,i.z),s.x=Math.max(d,s.x),s.y=Math.max(h,s.y),s.z=Math.max(f,s.z)}a.sub(s,i),o.add(i,s).divide(2)}computeBoundingSphere(e){e||(e=this.getPosition());const n=e.data,r=e.size;this.bounds||this.computeBoundingBox(e);let i=0;for(let s=0,o=n.length;s<o;s+=r)sD.fromArray(n,s),i=Math.max(i,this.bounds.center.squaredDistance(sD));this.bounds.radius=Math.sqrt(i)}remove(){for(let e in this.VAOs)this.gl.renderer.deleteVertexArray(this.VAOs[e]),delete this.VAOs[e];for(let e in this.attributes)this.gl.deleteBuffer(this.attributes[e].buffer),delete this.attributes[e]}}let abe=1;const aD={};class f1{constructor(e,{vertex:n,fragment:r,uniforms:i={},transparent:s=!1,cullFace:o=e.BACK,frontFace:a=e.CCW,depthTest:c=!0,depthWrite:u=!0,depthFunc:d=e.LEQUAL}={}){e.canvas||console.error("gl not passed as first argument to Program"),this.gl=e,this.uniforms=i,this.id=abe++,n||console.warn("vertex shader not supplied"),r||console.warn("fragment shader not supplied"),this.transparent=s,this.cullFace=o,this.frontFace=a,this.depthTest=c,this.depthWrite=u,this.depthFunc=d,this.blendFunc={},this.blendEquation={},this.stencilFunc={},this.stencilOp={},this.transparent&&!this.blendFunc.src&&(this.gl.renderer.premultipliedAlpha?this.setBlendFunc(this.gl.ONE,this.gl.ONE_MINUS_SRC_ALPHA):this.setBlendFunc(this.gl.SRC_ALPHA,this.gl.ONE_MINUS_SRC_ALPHA)),this.vertexShader=e.createShader(e.VERTEX_SHADER),this.fragmentShader=e.createShader(e.FRAGMENT_SHADER),this.program=e.createProgram(),e.attachShader(this.program,this.vertexShader),e.attachShader(this.program,this.fragmentShader),this.setShaders({vertex:n,fragment:r})}setShaders({vertex:e,fragment:n}){if(e&&(this.gl.shaderSource(this.vertexShader,e),this.gl.compileShader(this.vertexShader),this.gl.getShaderInfoLog(this.vertexShader)!==""&&console.warn(`${this.gl.getShaderInfoLog(this.vertexShader)} 5397Vertex Shader 5398${lD(e)}`)),n&&(this.gl.shaderSource(this.fragmentShader,n),this.gl.compileShader(this.fragmentShader),this.gl.getShaderInfoLog(this.fragmentShader)!==""&&console.warn(`${this.gl.getShaderInfoLog(this.fragmentShader)} 5399Fragment Shader 5400${lD(n)}`)),this.gl.linkProgram(this.program),!this.gl.getProgramParameter(this.program,this.gl.LINK_STATUS))return console.warn(this.gl.getProgramInfoLog(this.program));this.uniformLocations=new Map;let r=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_UNIFORMS);for(let o=0;o<r;o++){let a=this.gl.getActiveUniform(this.program,o);this.uniformLocations.set(a,this.gl.getUniformLocation(this.program,a.name));const c=a.name.match(/(\w+)/g);a.uniformName=c[0],a.nameComponents=c.slice(1)}this.attributeLocations=new Map;const i=[],s=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES);for(let o=0;o<s;o++){const a=this.gl.getActiveAttrib(this.program,o),c=this.gl.getAttribLocation(this.program,a.name);c!==-1&&(i[c]=a.name,this.attributeLocations.set(a,c))}this.attributeOrder=i.join("")}setBlendFunc(e,n,r,i){this.blendFunc.src=e,this.blendFunc.dst=n,this.blendFunc.srcAlpha=r,this.blendFunc.dstAlpha=i,e&&(this.transparent=!0)}setBlendEquation(e,n){this.blendEquation.modeRGB=e,this.blendEquation.modeAlpha=n}setStencilFunc(e,n,r){this.stencilRef=n,this.stencilFunc.func=e,this.stencilFunc.ref=n,this.stencilFunc.mask=r}setStencilOp(e,n,r){this.stencilOp.stencilFail=e,this.stencilOp.depthFail=n,this.stencilOp.depthPass=r}applyState(){this.depthTest?this.gl.renderer.enable(this.gl.DEPTH_TEST):this.gl.renderer.disable(this.gl.DEPTH_TEST),this.cullFace?this.gl.renderer.enable(this.gl.CULL_FACE):this.gl.renderer.disable(this.gl.CULL_FACE),this.blendFunc.src?this.gl.renderer.enable(this.gl.BLEND):this.gl.renderer.disable(this.gl.BLEND),this.cullFace&&this.gl.renderer.setCullFace(this.cullFace),this.gl.renderer.setFrontFace(this.frontFace),this.gl.renderer.setDepthMask(this.depthWrite),this.gl.renderer.setDepthFunc(this.depthFunc),this.blendFunc.src&&this.gl.renderer.setBlendFunc(this.blendFunc.src,this.blendFunc.dst,this.blendFunc.srcAlpha,this.blendFunc.dstAlpha),this.gl.renderer.setBlendEquation(this.blendEquation.modeRGB,this.blendEquation.modeAlpha),this.stencilFunc.func||this.stencilOp.stencilFail?this.gl.renderer.enable(this.gl.STENCIL_TEST):this.gl.renderer.disable(this.gl.STENCIL_TEST),this.gl.renderer.setStencilFunc(this.stencilFunc.func,this.stencilFunc.ref,this.stencilFunc.mask),this.gl.renderer.setStencilOp(this.stencilOp.stencilFail,this.stencilOp.depthFail,this.stencilOp.depthPass)}use({flipFaces:e=!1}={}){let n=-1;this.gl.renderer.state.currentProgram===this.id||(this.gl.useProgram(this.program),this.gl.renderer.state.currentProgram=this.id
5400),this.uniformLocations.forEach((i,s)=>{let o=this.uniforms[s.uniformName];for(const a of s.nameComponents){if(!o)break;if(a in o)o=o[a];else{if(Array.isArray(o.value))break;o=void 0;break}}if(!o)return cD(`Active uniform ${s.name} has not been supplied`);if(o&&o.value===void 0)return cD(`${s.name} uniform is missing a value parameter`);if(o.value.texture)return n=n+1,o.value.update(n),dT(this.gl,s.type,i,n);if(o.value.length&&o.value[0].texture){const a=[];return o.value.forEach(c=>{n=n+1,c.update(n),a.push(n)}),dT(this.gl,s.type,i,a)}dT(this.gl,s.type,i,o.value)}),this.applyState(),e&&this.gl.renderer.setFrontFace(this.frontFace===this.gl.CCW?this.gl.CW:this.gl.CCW)}remove(){this.gl.deleteProgram(this.program)}}function dT(t,e,n,r){r=r.length?lbe(r):r;const i=t.renderer.state.uniformLocations.get(n);if(r.length)if(i===void 0||i.length!==r.length)t.renderer.state.uniformLocations.set(n,r.slice(0));else{if(cbe(i,r))return;i.set?i.set(r):ube(i,r),t.renderer.state.uniformLocations.set(n,i)}else{if(i===r)return;t.renderer.state.uniformLocations.set(n,r)}switch(e){case 5126:return r.length?t.uniform1fv(n,r):t.uniform1f(n,r);case 35664:return t.uniform2fv(n,r);case 35665:return t.uniform3fv(n,r);case 35666:return t.uniform4fv(n,r);case 35670:case 5124:case 35678:case 36306:case 35680:case 36289:return r.length?t.uniform1iv(n,r):t.uniform1i(n,r);case 35671:case 35667:return t.uniform2iv(n,r);case 35672:case 35668:return t.uniform3iv(n,r);case 35673:case 35669:return t.uniform4iv(n,r);case 35674:return t.uniformMatrix2fv(n,!1,r);case 35675:return t.uniformMatrix3fv(n,!1,r);case 35676:return t.uniformMatrix4fv(n,!1,r)}}function lD(t){let e=t.split(` 5401`);for(let n=0;n<e.length;n++)e[n]=n+1+": "+e[n];return e.join(` 5402`)}function lbe(t){const e=t.length,n=t[0].length;if(n===void 0)return t;const r=e*n;let i=aD[r];i||(aD[r]=i=new Float32Array(r));for(let s=0;s<e;s++)i.set(t[s],s*n);return i}function cbe(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function ube(t,e){for(let n=0,r=t.length;n<r;n++)t[n]=e[n]}let hT=0;function cD(t){hT>100||(console.warn(t),hT++,hT>100&&console.warn("More than 100 program warnings - stopping logs."))}const fT=new Zs;let dbe=1;class eO{constructor({canvas:e=document.createElement("canvas"),width:n=300,height:r=150,dpr:i=1,alpha:s=!1,depth:o=!0,stencil:a=!1,antialias:c=!1,premultipliedAlpha:u=!1,preserveDrawingBuffer:d=!1,powerPreference:h="default",autoClear:f=!0,webgl:m=2}={}){const v={alpha:s,depth:o,stencil:a,antialias:c,premultipliedAlpha:u,preserveDrawingBuffer:d,powerPreference:h};this.dpr=i,this.alpha=s,this.color=!0,this.depth=o,this.stencil=a,this.premultipliedAlpha=u,this.autoClear=f,this.id=dbe++,m===2&&(this.gl=e.getContext("webgl2",v)),this.isWebgl2=!!this.gl,this.gl||(this.gl=e.getContext("webgl",v)),this.gl||console.error("unable to create webgl context"),this.gl.renderer=this,this.setSize(n,r),this.state={},this.state.blendFunc={src:this.gl.ONE,dst:this.gl.ZERO},this.state.blendEquation={modeRGB:this.gl.FUNC_ADD},this.state.cullFace=!1,this.state.frontFace=this.gl.CCW,this.state.depthMask=!0,this.state.depthFunc=this.gl.LEQUAL,this.state.premultiplyAlpha=!1,this.state.flipY=!1,this.state.unpackAlignment=4,this.state.framebuffer=null,this.state.viewport={x:0,y:0,width:null,height:null},this.state.textureUnits=[],this.state.activeTextureUnit=0,this.state.boundBuffer=null,this.state.uniformLocations=new Map,this.state.currentProgram=null,this.extensions={},this.isWebgl2?(this.getExtension("EXT_color_buffer_float"),this.getExtension("OES_texture_float_linear")):(this.getExtension("OES_texture_float"),this.getExtension("OES_texture_float_linear"),this.getExtension("OES_texture_half_float"),this.getExtension("OES_texture_half_float_linear"),this.getExtension("OES_element_index_uint"),this.getExtension("OES_standard_derivatives"),this.getExtension("EXT_sRGB"),this.getExtension("WEBGL_depth_texture"),this.getExtension("WEBGL_draw_buffers")),this.getExtension("WEBGL_compressed_texture_astc"),this.getExtension("EXT_texture_compression_bptc"),this.getExtension("WEBGL_compressed_texture_s3tc"),this.getExtension("WEBGL_compressed_texture_etc1"),this.getExtension("WEBGL_compressed_texture_pvrtc"),this.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),this.vertexAttribDivisor=this.getExtension("ANGLE_instanced_arrays","vertexAttribDivisor","vertexAttribDivisorANGLE"),this.drawArraysInstanced=this.getExtension("ANGLE_instanced_arrays","drawArraysInstanced","drawArraysInstancedANGLE"),this.drawElementsInstanced=this.getExtension("ANGLE_instanced_arrays","drawElementsInstanced","drawElementsInstancedANGLE"),this.createVertexArray=this.getExtension("OES_vertex_array_object","createVertexArray","createVertexArrayOES"),this.bindVertexArray=this.getExtension("OES_vertex_array_object","bindVertexArray","bindVertexArrayOES"),this.deleteVertexArray=this.getExtension("OES_vertex_array_object","deleteVertexArray","deleteVertexArrayOES"),this.drawBuffers=this.getExtension("WEBGL_draw_buffers","drawBuffers","drawBuffersWEBGL"),this.parameters={},this.parameters.maxTextureUnits=this.gl.getParameter(this.gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS),this.parameters.maxAnisotropy=this.getExtension("EXT_texture_filter_anisotropic")?this.gl.getParameter(this.getExtension("EXT_texture_filter_anisotropic").MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}setSize(e,n){this.width=e,this.height=n,this.gl.canvas.width=e*this.dpr,this.gl.canvas.height=n*this.dpr,this.gl.canvas.style&&Object.assign(this.gl.canvas.style,{width:e+"px",height:n+"px"})}
5402setViewport(e,n,r=0,i=0){this.state.viewport.width===e&&this.state.viewport.height===n||(this.state.viewport.width=e,this.state.viewport.height=n,this.state.viewport.x=r,this.state.viewport.y=i,this.gl.viewport(r,i,e,n))}setScissor(e,n,r=0,i=0){this.gl.scissor(r,i,e,n)}enable(e){this.state[e]!==!0&&(this.gl.enable(e),this.state[e]=!0)}disable(e){this.state[e]!==!1&&(this.gl.disable(e),this.state[e]=!1)}setBlendFunc(e,n,r,i){this.state.blendFunc.src===e&&this.state.blendFunc.dst===n&&this.state.blendFunc.srcAlpha===r&&this.state.blendFunc.dstAlpha===i||(this.state.blendFunc.src=e,this.state.blendFunc.dst=n,this.state.blendFunc.srcAlpha=r,this.state.blendFunc.dstAlpha=i,r!==void 0?this.gl.blendFuncSeparate(e,n,r,i):this.gl.blendFunc(e,n))}setBlendEquation(e,n){e=e||this.gl.FUNC_ADD,!(this.state.blendEquation.modeRGB===e&&this.state.blendEquation.modeAlpha===n)&&(this.state.blendEquation.modeRGB=e,this.state.blendEquation.modeAlpha=n,n!==void 0?this.gl.blendEquationSeparate(e,n):this.gl.blendEquation(e))}setCullFace(e){this.state.cullFace!==e&&(this.state.cullFace=e,this.gl.cullFace(e))}setFrontFace(e){this.state.frontFace!==e&&(this.state.frontFace=e,this.gl.frontFace(e))}setDepthMask(e){this.state.depthMask!==e&&(this.state.depthMask=e,this.gl.depthMask(e))}setDepthFunc(e){this.state.depthFunc!==e&&(this.state.depthFunc=e,this.gl.depthFunc(e))}setStencilMask(e){this.state.stencilMask!==e&&(this.state.stencilMask=e,this.gl.stencilMask(e))}setStencilFunc(e,n,r){this.state.stencilFunc===e&&this.state.stencilRef===n&&this.state.stencilFuncMask===r||(this.state.stencilFunc=e||this.gl.ALWAYS,this.state.stencilRef=n||0,this.state.stencilFuncMask=r||0,this.gl.stencilFunc(e||this.gl.ALWAYS,n||0,r||0))}setStencilOp(e,n,r){this.state.stencilFail===e&&this.state.stencilDepthFail===n&&this.state.stencilDepthPass===r||(this.state.stencilFail=e,this.state.stencilDepthFail=n,this.state.stencilDepthPass=r,this.gl.stencilOp(e,n,r))}activeTexture(e){this.state.activeTextureUnit!==e&&(this.state.activeTextureUnit=e,this.gl.activeTexture(this.gl.TEXTURE0+e))}bindFramebuffer({target:e=this.gl.FRAMEBUFFER,buffer:n=null}={}){this.state.framebuffer!==n&&(this.state.framebuffer=n,this.gl.bindFramebuffer(e,n))}getExtension(e,n,r){return n&&this.gl[n]?this.gl[n].bind(this.gl):(this.extensions[e]||(this.extensions[e]=this.gl.getExtension(e)),n?this.extensions[e]?this.extensions[e][r].bind(this.extensions[e]):null:this.extensions[e])}sortOpaque(e,n){return e.renderOrder!==n.renderOrder?e.renderOrder-n.renderOrder:e.program.id!==n.program.id?e.program.id-n.program.id:e.zDepth!==n.zDepth?e.zDepth-n.zDepth:n.id-e.id}
5402sortTransparent(e,n){return e.renderOrder!==n.renderOrder?e.renderOrder-n.renderOrder:e.zDepth!==n.zDepth?n.zDepth-e.zDepth:n.id-e.id}sortUI(e,n){return e.renderOrder!==n.renderOrder?e.renderOrder-n.renderOrder:e.program.id!==n.program.id?e.program.id-n.program.id:n.id-e.id}getRenderList({scene:e,camera:n,frustumCull:r,sort:i}){let s=[];if(n&&r&&n.updateFrustum(),e.traverse(o=>{if(!o.visible)return!0;o.draw&&(r&&o.frustumCulled&&n&&!n.frustumIntersectsMesh(o)||s.push(o))}),i){const o=[],a=[],c=[];s.forEach(u=>{u.program.transparent?u.program.depthTest?a.push(u):c.push(u):o.push(u),u.zDepth=0,!(u.renderOrder!==0||!u.program.depthTest||!n)&&(u.worldMatrix.getTranslation(fT),fT.applyMatrix4(n.projectionViewMatrix),u.zDepth=fT.z)}),o.sort(this.sortOpaque),a.sort(this.sortTransparent),c.sort(this.sortUI),s=o.concat(a,c)}return s}render({scene:e,camera:n,target:r=null,update:i=!0,sort:s=!0,frustumCull:o=!0,clear:a}){r===null?(this.bindFramebuffer(),this.setViewport(this.width*this.dpr,this.height*this.dpr)):(this.bindFramebuffer(r),this.setViewport(r.width,r.height)),(a||this.autoClear&&a!==!1)&&(this.depth&&(!r||r.depth)&&(this.enable(this.gl.DEPTH_TEST),this.setDepthMask(!0)),(this.stencil||!r||r.stencil)&&(this.enable(this.gl.STENCIL_TEST),this.setStencilMask(255)),this.gl.clear((this.color?this.gl.COLOR_BUFFER_BIT:0)|(this.depth?this.gl.DEPTH_BUFFER_BIT:0)|(this.stencil?this.gl.STENCIL_BUFFER_BIT:0))),i&&e.updateMatrixWorld(),n&&n.updateMatrixWorld(),this.getRenderList({scene:e,camera:n,frustumCull:o,sort:s}).forEach(u=>{u.draw({camera:n})})}}function hbe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function fbe(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function mbe(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=n*n+r*r+i*i+s*s;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=s*o,t}function pbe(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function gbe(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function vbe(t,e,n){n=n*.5;let r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function uD(t,e,n){let r=e[0],i=e[1],s=e[2],o=e[3],a=n[0],c=n[1],u=n[2],d=n[3];return t[0]=r*d+o*a+i*u-s*c,t[1]=i*d+o*c+s*a-r*u,t[2]=s*d+o*u+r*c-i*a,t[3]=o*d-r*a-i*c-s*u,t}function ybe(t,e,n){n*=.5;let r=e[0],i=e[1],s=e[2],o=e[3],a=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*a,t[1]=i*c+s*a,t[2]=s*c-i*a,t[3]=o*c-r*a,t}function xbe(t,e,n){n*=.5;let r=e[0],i=e[1],s=e[2],o=e[3],a=Math.sin(n),c=Math.cos(n);return t[0]=r*c-s*a,t[1]=i*c+o*a,t[2]=s*c+r*a,t[3]=o*c-i*a,t}function bbe(t,e,n){n*=.5;let r=e[0],i=e[1],s=e[2],o=e[3],a=Math.sin(n),c=Math.cos(n);return t[0]=r*c+i*a,t[1]=i*c-r*a,t[2]=s*c+o*a,t[3]=o*c-s*a,t}function wbe(t,e,n,r){let i=e[0],s=e[1],o=e[2],a=e[3],c=n[0],u=n[1],d=n[2],h=n[3],f,m,v,p,g;return m=i*c+s*u+o*d+a*h,m<0&&(m=-m,c=-c,u=-u,d=-d,h=-h),1-m>1e-6?(f=Math.acos(m),v=Math.sin(f),p=Math.sin((1-r)*f)/v,g=Math.sin(r*f)/v):(p=1-r,g=r),t[0]=p*i+g*c,t[1]=p*s+g*u,t[2]=p*o+g*d,t[3]=p*a+g*h,t}function _be(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=n*n+r*r+i*i+s*s,a=o?1/o:0;return t[0]=-n*a,t[1]=-r*a,t[2]=-i*a,t[3]=s*a,t}function Sbe(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function Ebe(t,e){let n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);let s=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[s*3+s]-e[o*3+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[s*3+o]-e[o*3+s])*r,t[s]=(e[s*3+i]+e[i*3+s])*r,t[o]=(e[o*3+i]+e[i*3+o])*r}return t}function Tbe(t,e,n="YXZ"){let r=Math.sin(e[0]*.5),i=Math.cos(e[0]*.5),s=Math.sin(e[1]*.5),o=Math.cos(e[1]*.5),a=Math.sin(e[2]*.5),c=Math.cos(e[2]*.5);return n==="XYZ"?(t[0]=r*o*c+i*s*a,t[1]=i*s*c-r*o*a,t[2]=i*o*a+r*s*c,t[3]=i*o*c-r*s*a):n==="YXZ"?(t[0]=r*o*c+i*s*a,t[1]=i*s*c-r*o*a,t[2]=i*o*a-r*s*c,t[3]=i*o*c+r*s*a):n==="ZXY"?(t[0]=r*o*c-i*s*a,t[1]=i*s*c+r*o*a,t[2]=i*o*a+r*s*c,t[3]=i*o*c-r*s*a):n==="ZYX"?(t[0]=r*o*c-i*s*a,t[1]=i*s*c+r*o*a,t[2]=i*o*a-r*s*c,t[3]=i*o*c+r*s*a):n==="YZX"?(t[0]=r*o*c+i*s*a,t[1]=i*s*c+r*o*a,t[2]=i*o*a-r*s*c,t[3]=i*o*c-r*s*a):n==="XZY"&&(t[0]=r*o*c-i*s*a,t[1]=i*s*c-r*o*a,t[2]=i*o*a+r*s*c,t[3]=i*o*c+r*s*a),t}const Abe=hbe,Cbe=fbe,Mbe=pbe,Rbe=mbe;class Pbe extends Array{constructor(e=0,n=0,r=0,i=1){super(e,n,r,i),this.onChange=()=>{},this._target=this;const s=["0","1","2","3"];return new Proxy(this,{set(o,a){const c=Reflect.set(...arguments);return c&&s.includes(a)&&o.onChange(),c}})}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}get w(){return this[3]}set x(e){this._target[0]=e,this.onChange()}set y(e){this._target[1]=e,this.onChange()}set z(e){this._target[2]=e,this.onChange()}set w(e){this._target[3]=e,this.onChange()}identity(){return gbe(this._target),this.onChange(),this}set(e,n,r,i){return e.length?this.copy(e):(Cbe(this._target,e,n,r,i),this.onChange(),this)}rotateX(e){return ybe(this._target,this._target,e),this.onChange(),this}rotateY(e){return xbe(this._target,this._target,e),this.onChange(),this}rotateZ(e){return bbe(this._target,this._target,e),this.onChange(),this}inverse(e=this._target){return _be(this._target,e),this.onChange(),this}conjugate(e=this._target){return Sbe(this._target,e),this.onChange(),this}copy(e){return Abe(this._target,e),this.onChange(),this}normalize(e=this._target){return Rbe(this._target,e),this.onChange(),this}multiply(e,n){return n?uD(this._target,e,n):uD(this._target,this._target,e),this.onChange(),this}dot(e){return Mbe(this._target,e)}fromMatrix3(e){return Ebe(this._target,e),this.onChange(),this}fromEuler(e,n){return Tbe(this._target,e,e.order),n||this.onChange(),this}fromAxisAngle(e,n){return vbe(this._target,e,n),this.onChange(),this}slerp(e,n){return wbe(this._target,this._target,e,n),this.onChange(),this}fromArray(e,n=0){return this._target[0]=e[n],this._target[1]=e[n+1],this._target[2]=e[n+2],this._target[3]=e[n+3],this.onChange(),this}toArray(e=[],n=0){return e[n]=this[0],e[n+1]=this[1],e[n+2]=this[2],e[n+3]=this[3],e}}const jbe=1e-6;function Nbe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function kbe(t,e,n,r,i,s,o,a,c,u,d,h,f,m,v,p,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=c,t[8]=u,t[9]=d,t[10]=h,t[11]=f,t[12]=m,t[13]=v,t[14]=
5402p,t[15]=g,t}function Obe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Ibe(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],c=e[6],u=e[7],d=e[8],h=e[9],f=e[10],m=e[11],v=e[12],p=e[13],g=e[14],y=e[15],b=n*a-r*o,x=n*c-i*o,w=n*u-s*o,_=r*c-i*a,S=r*u-s*a,T=i*u-s*c,M=d*p-h*v,A=d*g-f*v,C=d*y-m*v,R=h*g-f*p,j=h*y-m*p,k=f*y-m*g,P=b*k-x*j+w*R+_*C-S*A+T*M;return P?(P=1/P,t[0]=(a*k-c*j+u*R)*P,t[1]=(i*j-r*k-s*R)*P,t[2]=(p*T-g*S+y*_)*P,t[3]=(f*S-h*T-m*_)*P,t[4]=(c*C-o*k-u*A)*P,t[5]=(n*k-i*C+s*A)*P,t[6]=(g*w-v*T-y*x)*P,t[7]=(d*T-f*w+m*x)*P,t[8]=(o*j-a*C+u*M)*P,t[9]=(r*C-n*j-s*M)*P,t[10]=(v*S-p*w+y*b)*P,t[11]=(h*w-d*S-m*b)*P,t[12]=(a*A-o*R-c*M)*P,t[13]=(n*R-r*A+i*M)*P,t[14]=(p*x-v*_-g*b)*P,t[15]=(d*_-h*x+f*b)*P,t):null}function Qq(t){let e=t[0],n=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],c=t[7],u=t[8],d=t[9],h=t[10],f=t[11],m=t[12],v=t[13],p=t[14],g=t[15],y=e*o-n*s,b=e*a-r*s,x=e*c-i*s,w=n*a-r*o,_=n*c-i*o,S=r*c-i*a,T=u*v-d*m,M=u*p-h*m,A=u*g-f*m,C=d*p-h*v,R=d*g-f*v,j=h*g-f*p;return y*j-b*R+x*C+w*A-_*M+S*T}function dD(t,e,n){let r=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],d=e[7],h=e[8],f=e[9],m=e[10],v=e[11],p=e[12],g=e[13],y=e[14],b=e[15],x=n[0],w=n[1],_=n[2],S=n[3];return t[0]=x*r+w*a+_*h+S*p,t[1]=x*i+w*c+_*f+S*g,t[2]=x*s+w*u+_*m+S*y,t[3]=x*o+w*d+_*v+S*b,x=n[4],w=n[5],_=n[6],S=n[7],t[4]=x*r+w*a+_*h+S*p,t[5]=x*i+w*c+_*f+S*g,t[6]=x*s+w*u+_*m+S*y,t[7]=x*o+w*d+_*v+S*b,x=n[8],w=n[9],_=n[10],S=n[11],t[8]=x*r+w*a+_*h+S*p,t[9]=x*i+w*c+_*f+S*g,t[10]=x*s+w*u+_*m+S*y,t[11]=x*o+w*d+_*v+S*b,x=n[12],w=n[13],_=n[14],S=n[15],t[12]=x*r+w*a+_*h+S*p,t[13]=x*i+w*c+_*f+S*g,t[14]=x*s+w*u+_*m+S*y,t[15]=x*o+w*d+_*v+S*b,t}function Lbe(t,e,n){let r=n[0],i=n[1],s=n[2],o,a,c,u,d,h,f,m,v,p,g,y;return e===t?(t[12]=e[0]*r+e[4]*i+e[8]*s+e[12],t[13]=e[1]*r+e[5]*i+e[9]*s+e[13],t[14]=e[2]*r+e[6]*i+e[10]*s+e[14],t[15]=e[3]*r+e[7]*i+e[11]*s+e[15]):(o=e[0],a=e[1],c=e[2],u=e[3],d=e[4],h=e[5],f=e[6],m=e[7],v=e[8],p=e[9],g=e[10],y=e[11],t[0]=o,t[1]=a,t[2]=c,t[3]=u,t[4]=d,t[5]=h,t[6]=f,t[7]=m,t[8]=v,t[9]=p,t[10]=g,t[11]=y,t[12]=o*r+d*i+v*s+e[12],t[13]=a*r+h*i+p*s+e[13],t[14]=c*r+f*i+g*s+e[14],t[15]=u*r+m*i+y*s+e[15]),t}function Dbe(t,e,n){let r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Fbe(t,e,n,r){let i=r[0],s=r[1],o=r[2],a=Math.hypot(i,s,o),c,u,d,h,f,m,v,p,g,y,b,x,w,_,S,T,M,A,C,R,j,k,P,O;return Math.abs(a)<jbe?null:(a=1/a,i*=a,s*=a,o*=a,c=Math.sin(n),u=Math.cos(n),d=1-u,h=e[0],f=e[1],m=e[2],v=e[3],p=e[4],g=e[5],y=e[6],b=e[7],x=e[8],w=e[9],_=e[10],S=e[11],T=i*i*d+u,M=s*i*d+o*c,A=o*i*d-s*c,C=i*s*d-o*c,R=s*s*d+u,j=o*s*d+i*c,k=i*o*d+s*c,P=s*o*d-i*c,O=o*o*d+u,t[0]=h*T+p*M+x*A,t[1]=f*T+g*M+w*A,t[2]=m*T+y*M+_*A,t[3]=v*T+b*M+S*A,t[4]=h*C+p*R+x*j,t[5]=f*C+g*R+w*j,t[6]=m*C+y*R+_*j,t[7]=v*C+b*R+S*j,t[8]=h*k+p*P+x*O,t[9]=f*k+g*P+w*O,t[10]=m*k+y*P+_*O,t[11]=v*k+b*P+S*O,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function Ube(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function Zq(t,e){let n=e[0],r=e[1],i=e[2],s=e[4],o=e[5],a=e[6],c=e[8],u=e[9],d=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(s,o,a),t[2]=Math.hypot(c,u,d),t}function Bbe(t){let e=t[0],n=t[1],r=t[2],i=t[4],s=t[5],o=t[6],a=t[8],c=t[9],u=t[10];const d=e*e+n*n+r*r,h=i*i+s*s+o*o,f=a*a+c*c+u*u;return Math.sqrt(Math.max(d,h,f))}const Jq=function(){const t=[1,1,1];return function(e,n){let r=t;Zq(r,n);let i=1/r[0],s=1/r[1],o=1/r[2],a=n[0]*i,c=n[1]*s,u=n[2]*o,d=n[4]*i,h=n[5]*s,f=n[6]*o,m=n[8]*i,v=n[9]*s,p=n[10]*o,g=a+h+p,y=0;return g>0?(y=Math.sqrt(g+1)*2,e[3]=.25*y,e[0]=(f-v)/y,e[1]=(m-u)/y,e[2]=(c-d)/y):a>h&&a>p?(y=Math.sqrt(1+a-h-p)*2,e[3]=(f-v)/y,e[0]=.25*y,e[1]=(c+d)/y,e[2]=(m+u)/y):h>p?(y=Math.sqrt(1+h-a-p)*2,e[3]=(m-u)/y,e[0]=(c+d)/y,e[1]=.25*y,e[2]=(f+v)/y):(y=Math.sqrt(1+p-a-h)*2,e[3]=(c-d)/y,e[0]=(m+u)/y,e[1]=(f+v)/y,e[2]=.25*y),e}}();function zbe(t,e,n,r){let i=pv([t[0],t[1],t[2]]);const s=pv([t[4],t[5],t[6]]),o=pv([t[8],t[9],t[10]]);Qq(t)<0&&(i=-i),n[0]=t[12],n[1]=t[13],n[2]=t[14];const c=t.slice(),u=1/i,d=1/s,h=1/o;
5402c[0]*=u,c[1]*=u,c[2]*=u,c[4]*=d,c[5]*=d,c[6]*=d,c[8]*=h,c[9]*=h,c[10]*=h,Jq(e,c),r[0]=i,r[1]=s,r[2]=o}function $be(t,e,n,r){const i=t,s=e[0],o=e[1],a=e[2],c=e[3],u=s+s,d=o+o,h=a+a,f=s*u,m=s*d,v=s*h,p=o*d,g=o*h,y=a*h,b=c*u,x=c*d,w=c*h,_=r[0],S=r[1],T=r[2];return i[0]=(1-(p+y))*_,i[1]=(m+w)*_,i[2]=(v-x)*_,i[3]=0,i[4]=(m-w)*S,i[5]=(1-(f+y))*S,i[6]=(g+b)*S,i[7]=0,i[8]=(v+x)*T,i[9]=(g-b)*T,i[10]=(1-(f+p))*T,i[11]=0,i[12]=n[0],i[13]=n[1],i[14]=n[2],i[15]=1,i}function Hbe(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=n+n,a=r+r,c=i+i,u=n*o,d=r*o,h=r*a,f=i*o,m=i*a,v=i*c,p=s*o,g=s*a,y=s*c;return t[0]=1-h-v,t[1]=d+y,t[2]=f-g,t[3]=0,t[4]=d-y,t[5]=1-u-v,t[6]=m+p,t[7]=0,t[8]=f+g,t[9]=m-p,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Vbe(t,e,n,r,i){let s=1/Math.tan(e/2),o=1/(r-i);return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+r)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*r*o,t[15]=0,t}function Wbe(t,e,n,r,i,s,o){let a=1/(e-n),c=1/(r-i),u=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*c,t[14]=(o+s)*u,t[15]=1,t}function Gbe(t,e,n,r){let i=e[0],s=e[1],o=e[2],a=r[0],c=r[1],u=r[2],d=i-n[0],h=s-n[1],f=o-n[2],m=d*d+h*h+f*f;m===0?f=1:(m=1/Math.sqrt(m),d*=m,h*=m,f*=m);let v=c*f-u*h,p=u*d-a*f,g=a*h-c*d;return m=v*v+p*p+g*g,m===0&&(u?a+=1e-6:c?u+=1e-6:c+=1e-6,v=c*f-u*h,p=u*d-a*f,g=a*h-c*d,m=v*v+p*p+g*g),m=1/Math.sqrt(m),v*=m,p*=m,g*=m,t[0]=v,t[1]=p,t[2]=g,t[3]=0,t[4]=h*g-f*p,t[5]=f*v-d*g,t[6]=d*p-h*v,t[7]=0,t[8]=d,t[9]=h,t[10]=f,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t}function hD(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function fD(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function qbe(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}class m1 extends Array{constructor(e=1,n=0,r=0,i=0,s=0,o=1,a=0,c=0,u=0,d=0,h=1,f=0,m=0,v=0,p=0,g=1){return super(e,n,r,i,s,o,a,c,u,d,h,f,m,v,p,g),this}get x(){return this[12]}get y(){return this[13]}get z(){return this[14]}get w(){return this[15]}set x(e){this[12]=e}set y(e){this[13]=e}set z(e){this[14]=e}set w(e){this[15]=e}set(e,n,r,i,s,o,a,c,u,d,h,f,m,v,p,g){return e.length?this.copy(e):(kbe(this,e,n,r,i,s,o,a,c,u,d,h,f,m,v,p,g),this)}translate(e,n=this){return Lbe(this,n,e),this}rotate(e,n,r=this){return Fbe(this,r,e,n),this}scale(e,n=this){return Dbe(this,n,typeof e=="number"?[e,e,e]:e),this}add(e,n){return n?hD(this,e,n):hD(this,this,e),this}sub(e,n){return n?fD(this,e,n):fD(this,this,e),this}multiply(e,n){return e.length?n?dD(this,e,n):dD(this,this,e):qbe(this,this,e),this}identity(){return Obe(this),this}copy(e){return Nbe(this,e),this}fromPerspective({fov:e,aspect:n,near:r,far:i}={}){return Vbe(this,e,n,r,i),this}fromOrthogonal({left:e,right:n,bottom:r,top:i,near:s,far:o}){return Wbe(this,e,n,r,i,s,o),this}fromQuaternion(e){return Hbe(this,e),this}setPosition(e){return this.x=e[0],this.y=e[1],this.z=e[2],this}inverse(e=this){return Ibe(this,e),this}compose(e,n,r){return $be(this,e,n,r),this}decompose(e,n,r){return zbe(this,e,n,r),this}getRotation(e){return Jq(e,this),this}getTranslation(e){return Ube(e,this),this}getScaling(e){return Zq(e,this),this}getMaxScaleOnAxis(){return Bbe(this)}lookAt(e,n,r){return Gbe(this,e,n,r),this}determinant(){return Qq(this)}fromArray(e,n=0){return this[0]=e[n],this[1]=e[n+1],this[2]=e[n+2],this[3]=e[n+3],this[4]=e[n+4],this[5]=e[n+5],this[6]=e[n+6],this[7]=e[n+7],this[8]=e[n+8],this[9]=e[n+9],this[10]=e[n+10],this[11]=e[n+11],this[12]=e[n+12],this[13]=e[n+13],this[14]=e[n+14],this[15]=e[n+15],this}toArray(e=[],n=0){return e[n]=this[0],e[n+1]=this[1],e[n+2]=this[2],e[n+3]=this[3],e[n+4]=this[4],e[n+5]=this[5],e[n+6]=this[6],e[n+7]=this[7],e[n+8]=this[8],e[n+9]=this[9],e[n+10]=this[10],e[n+11]=this[11],e[n+12]=this[12],e[n+13]=this[13],e[n+14]=this[14],e[n+15]=this[15],e}}function Ybe(t,e,n="YXZ"){return n==="XYZ"?(t[1]=Math.asin(Math.min(Math.max(e[8],-1),1)),Math.abs(e[8])<.99999?(t[0]=Math.atan2(-e[9],e[10]),t[2]=Math.atan2(-e[4],e[0])):(t[0]=Math.atan2(e[6],e[5]),t[2]=0)):n==="YXZ"?(t[0]=Math.asin(-Math.min(Math.max(e[9],-1),1)),Math.abs(e[9])<.99999?(t[1]=Math.atan2(e[8],e[10]),t[2]=Math.atan2(e[1],e[5])):(t[1]=Math.atan2(-e[2],e[0]),t[2]=0)):n==="ZXY"?(t[0]=Math.asin(Math.min(Math.max(e[6],-1),1)),Math.abs(e[6])<.99999?(t[1]=Math.atan2(-e[2],e[10]),t[2]=Math.atan2(-e[4],e[5])):(t[1]=0,t[2]=Math.atan2(e[1],e[0]))):n==="ZYX"?(t[1]=Math.asin(-Math.min(Math.max(e[2],-1),1)),Math.abs(e[2])<.99999?(t[0]=Math.atan2(e[6],e[10]),t[2]=Math.atan2(e[1],e[0])):(t[0]=0,t[2]=Math.atan2(-e[4],e[5]))):n==="YZX"?(t[2]=Math.asin(Math.min(Math.max(e[1],-1),1)),Math.abs(e[1])<.99999?(t[0]=Math.atan2(-e[9],e[5]),t[1]=Math.atan2(-e[2],e[0])):(t[0]=0,t[1]=Math.atan2(e[8],e[10]))):n==="XZY"&&(t[2]=Math.asin(-Math.min(Math.max(e[4],-1),1)),Math.abs(e[4])<.99999?(t[0]=Math.atan2(e[6],e[5]),t[1]=Math.atan2(e[8],e[0])):(t[0]=Math.atan2(-e[9],e[10]),t[1]=0)),t}const mD=new m1;let Xbe=class extends Array{constructor(e=0,n=e,r=e,i="YXZ"){super(e,n,r),this.order=i,this.onChange=()=>{},this._target=this;const s=["0","1","2"];return new Proxy(this,{set(o,a){const c=Reflect.set(...arguments);return c&&s.includes(a)&&o.onChange(),c}})}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(e){this._target[0]=e,this.onChange()}set y(e){this._target[1]=e,this.onChange()}set z(e){this._target[2]=e,this.onChange()}set(e,n=e,r=e){return e.length?this.copy(e):(this._target[0]=e,this._target[1]=n,this._target[2]=r,this.onChange(),this)}copy(e){return this._target[0]=e[0],this._target[1]=e[1],this._target[2]=e[2],this.onChange(),this}reorder(e){return this._target.order=e,this.onChange(),this}fromRotationMatrix(e,n=this.order){return Ybe(this._target,e,n),this.onChange(),this}fromQuaternion(e,n=this.order,r){return mD.fromQuaternion(e),this._target.fromRotationMatrix(mD,n),r||this.onChange(),this}fromArray(e,n=0){return this._target[0]=e[n],this._target[1]=e[n+1],this._target[2]=e[n+2],this}toArray(e=[],n=0){return e[n]=this[0],e[n+1]=this[1],e[n+2]=this[2],e}};
5402class Kbe{constructor(){this.parent=null,this.children=[],this.visible=!0,this.matrix=new m1,this.worldMatrix=new m1,this.matrixAutoUpdate=!0,this.worldMatrixNeedsUpdate=!1,this.position=new Zs,this.quaternion=new Pbe,this.scale=new Zs(1),this.rotation=new Xbe,this.up=new Zs(0,1,0),this.rotation._target.onChange=()=>this.quaternion.fromEuler(this.rotation,!0),this.quaternion._target.onChange=()=>this.rotation.fromQuaternion(this.quaternion,void 0,!0)}setParent(e,n=!0){this.parent&&e!==this.parent&&this.parent.removeChild(this,!1),this.parent=e,n&&e&&e.addChild(this,!1)}addChild(e,n=!0){~this.children.indexOf(e)||this.children.push(e),n&&e.setParent(this,!1)}removeChild(e,n=!0){~this.children.indexOf(e)&&this.children.splice(this.children.indexOf(e),1),n&&e.setParent(null,!1)}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.worldMatrixNeedsUpdate||e)&&(this.parent===null?this.worldMatrix.copy(this.matrix):this.worldMatrix.multiply(this.parent.worldMatrix,this.matrix),this.worldMatrixNeedsUpdate=!1,e=!0);for(let n=0,r=this.children.length;n<r;n++)this.children[n].updateMatrixWorld(e)}updateMatrix(){this.matrix.compose(this.quaternion,this.position,this.scale),this.worldMatrixNeedsUpdate=!0}traverse(e){if(!e(this))for(let n=0,r=this.children.length;n<r;n++)this.children[n].traverse(e)}decompose(){this.matrix.decompose(this.quaternion._target,this.position,this.scale),this.rotation.fromQuaternion(this.quaternion)}lookAt(e,n=!1){n?this.matrix.lookAt(this.position,e,this.up):this.matrix.lookAt(e,this.position,this.up),this.matrix.getRotation(this.quaternion._target),this.rotation.fromQuaternion(this.quaternion)}}function Qbe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function Zbe(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=n+n,a=r+r,c=i+i,u=n*o,d=r*o,h=r*a,f=i*o,m=i*a,v=i*c,p=s*o,g=s*a,y=s*c;return t[0]=1-h-v,t[3]=d-y,t[6]=f+g,t[1]=d+y,t[4]=1-u-v,t[7]=m-p,t[2]=f-g,t[5]=m+p,t[8]=1-u-h,t}function Jbe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function ewe(t,e,n,r,i,s,o,a,c,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=c,t[8]=u,t}function twe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function nwe(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],c=e[6],u=e[7],d=e[8],h=d*o-a*u,f=-d*s+a*c,m=u*s-o*c,v=n*h+r*f+i*m;return v?(v=1/v,t[0]=h*v,t[1]=(-d*r+i*u)*v,t[2]=(a*r-i*o)*v,t[3]=f*v,t[4]=(d*n-i*c)*v,t[5]=(-a*n+i*s)*v,t[6]=m*v,t[7]=(-u*n+r*c)*v,t[8]=(o*n-r*s)*v,t):null}function pD(t,e,n){let r=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],d=e[7],h=e[8],f=n[0],m=n[1],v=n[2],p=n[3],g=n[4],y=n[5],b=n[6],x=n[7],w=n[8];return t[0]=f*r+m*o+v*u,t[1]=f*i+m*a+v*d,t[2]=f*s+m*c+v*h,t[3]=p*r+g*o+y*u,t[4]=p*i+g*a+y*d,t[5]=p*s+g*c+y*h,t[6]=b*r+x*o+w*u,t[7]=b*i+x*a+w*d,t[8]=b*s+x*c+w*h,t}function rwe(t,e,n){let r=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],d=e[7],h=e[8],f=n[0],m=n[1];return t[0]=r,t[1]=i,t[2]=s,t[3]=o,t[4]=a,t[5]=c,t[6]=f*r+m*o+u,t[7]=f*i+m*a+d,t[8]=f*s+m*c+h,t}function iwe(t,e,n){let r=e[0],i=e[1],s=e[2],o=e[3],a=e[4],c=e[5],u=e[6],d=e[7],h=e[8],f=Math.sin(n),m=Math.cos(n);return t[0]=m*r+f*o,t[1]=m*i+f*a,t[2]=m*s+f*c,t[3]=m*o-f*r,t[4]=m*a-f*i,t[5]=m*c-f*s,t[6]=u,t[7]=d,t[8]=h,t}function swe(t,e,n){let r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function owe(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],c=e[6],u=e[7],d=e[8],h=e[9],f=e[10],m=e[11],v=e[12],p=e[13],g=e[14],y=e[15],b=n*a-r*o,x=n*c-i*o,w=n*u-s*o,_=r*c-i*a,S=r*u-s*a,T=i*u-s*c,M=d*p-h*v,A=d*g-f*v,C=d*y-m*v,R=h*g-f*p,j=h*y-m*p,k=f*y-m*g,P=b*k-x*j+w*R+_*C-S*A+T*M;return P?(P=1/P,t[0]=(a*k-c*j+u*R)*P,t[1]=(c*C-o*k-u*A)*P,t[2]=(o*j-a*C+u*M)*P,t[3]=(i*j-r*k-s*R)*P,t[4]=(n*k-i*C+s*A)*P,t[5]=(r*C-n*j-s*M)*P,t[6]=(p*T-g*S+y*_)*P,t[7]=(g*w-v*T-y*x)*P,t[8]=(v*S-p*w+y*b)*P,t):null}class awe extends Array{constructor(e=1,n=0,r=0,i=0,s=1,o=0,a=0,c=0,u=1){return super(e,n,r,i,s,o,a,c,u),this}set(e,n,r,i,s,o,a,c,u){return e.length?this.copy(e):(ewe(this,e,n,r,i,s,o,a,c,u),this)}translate(e,n=this){return rwe(this,n,e),this}rotate(e,n=this){return iwe(this,n,e),this}scale(e,n=this){return swe(this,n,e),this}multiply(e,n){return n?pD(this,e,n):pD(this,this,e),this}identity(){return twe(this),this}copy(e){return Jbe(this,e),this}fromMatrix4(e){return Qbe(this,e),this}fromQuaternion(e){return Zbe(this,e),this}fromBasis(e,n,r){return this.set(e[0],e[1],e[2],n[0],n[1],n[2],r[0],r[1],r[2]),this}inverse(e=this){return nwe(this,e),this}getNormalMatrix(e){return owe(this,e),this}}let lwe=0,p1=class extends Kbe{constructor(e,{geometry:n,program:r,mode:i=e.TRIANGLES,frustumCulled:s=!0,renderOrder:o=0}={}){super(),e.canvas||console.error("gl not passed as first argument to Mesh"),this.gl=e,this.id=lwe++,this.geometry=n,this.program=r,this.mode=i,this.frustumCulled=s,this.renderOrder=o,this.modelViewMatrix=new m1,this.normalMatrix=new awe,this.beforeRenderCallbacks=[],this.afterRenderCallbacks=[]}onBeforeRender(e){return this.beforeRenderCallbacks.push(e),this}onAfterRender(e){return this.afterRenderCallbacks.push(e),this}draw({camera:e}={}){e&&(this.program.uniforms.modelMatrix||Object.assign(this.program.uniforms,{modelMatrix:{value:null},viewMatrix:{value:null},modelViewMatrix:{value:null},normalMatrix:{value:null},projectionMatrix:{value:null},cameraPosition:{value:null}}),this.program.uniforms.projectionMatrix.value=e.projectionMatrix,this.program.uniforms.cameraPosition.value=e.worldPosition,this.program.uniforms.viewMatrix.value=e.viewMatrix,this.modelViewMatrix.multiply(e.viewMatrix,this.worldMatrix),this.normalMatrix.getNormalMatrix(this.modelViewMatrix),this.program.uniforms.modelMatrix.value=this.worldMatrix,this.program.uniforms.modelViewMatrix.value=this.modelViewMatrix,this.program.uniforms.normalMatrix.value=this.normalMatrix),this.beforeRenderCallbacks.forEach(r=>r&&r({mesh:this,camera:e}));let n=this.program.cullFace&&this.worldMatrix.determinant()<0;this.program.use({flipFaces:n}),this.geometry.draw({mode:this.mode,program:this.program}),this.afterRenderCallbacks.forEach(r=>r&&r({mesh:this,camera:e}))}};const gD=new Uint8Array(4);function vD(t){return(t&t-1)===0}let cwe=1,yD=class{constructor(e,{image:n,target:r=e.TEXTURE_2D,type:i=e.UNSIGNED_BYTE,format:s=e.RGBA,internalFormat:o=s,wrapS:a=e.CLAMP_TO_EDGE,wrapT:c=e.CLAMP_TO_EDGE,wrapR:u=e.CLAMP_TO_EDGE,generateMipmaps:d=r===(e.TEXTURE_2D||e.TEXTURE_CUBE_MAP),minFilter:h=d?e.NEAREST_MIPMAP_LINEAR:e.LINEAR,magFilter:f=e.LINEAR,premultiplyAlpha:m=!1,unpackAlignment:v=4,flipY:p=r==(e.TEXTURE_2D||e.TEXTURE_3D),anisotropy:g=0,level:y=0,width:b,height:x=b,length:w=1}={}){this.gl=e,this.id=cwe++,this.image=n,this.target=r,this.type=i,this.format=s,this.internalFormat=o,this.minFilter=h,this.magFilter=f,this.wrapS=a,this.wrapT=c,this.wrapR=u,this.generateMipmaps=d,this.premultiplyAlpha=m,this.unpackAlignment=v,this.flipY=p,this.anisotropy=Math.min(g,this.gl.renderer.parameters.maxAnisotropy),this.level=y,this.width=b,this.height=x,this.length=w,this.texture=this.gl.createTexture(),this.store={image:null},this.glState=this.gl.renderer.state,this.state={},this.state.minFilter=this.gl.NEAREST_MIPMAP_LINEAR,this.state.magFilter=this.gl.LINEAR,this.state.wrapS=this.gl.REPEAT,this.state.wrapT=this.gl.REPEAT,this.state.anisotropy=0}bind(){this.glState.textureUnits[this.glState.activeTextureUnit]!==this.id&&(this.gl.bindTexture(this.target,this.texture),this.glState.textureUnits[this.glState.activeTextureUnit]=this.id)}update(e=0){const n=!(this.image===this.store.image&&!this.needsUpdate);if((n||this.glState.textureUnits[e]!==this.id)&&(this.gl.renderer.activeTexture(e),this.bind()),!!n){if(this.needsUpdate=!1,this.flipY!==this.glState.flipY&&(this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,this.flipY),this.glState.flipY=this.flipY),this.premultiplyAlpha!==this.glState.premultiplyAlpha&&(this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),this.glState.premultiplyAlpha=this.premultiplyAlpha),this.unpackAlignment!==this.glState.unpackAlignment&&(this.gl.pixelStorei(this.gl.UNPACK_ALIGNMENT,this.unpackAlignment),this.glState.unpackAlignment=this.unpackAlignment),this.minFilter!==this.state.minFilter&&(this.gl.texParameteri(this.target,this.gl.TEXTURE_MIN_FILTER,this.minFilter),this.state.minFilter=this.minFilter),this.magFilter!==this.state.magFilter&&(this.gl.texParameteri(this.target,this.gl.TEXTURE_MAG_FILTER,this.magFilter),this.state.magFilter=this.magFilter),this.wrapS!==this.state.wrapS&&(this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_S,this.wrapS),this.state.wrapS=this.wrapS),this.wrapT!==this.state.wrapT&&(this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_T,this.wrapT),this.state.wrapT=this.wrapT),this.wrapR!==this.state.wrapR&&(this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_R,this.wrapR),this.state.wrapR=this.wrapR),this.anisotropy&&this.anisotropy!==this.state.anisotropy&&(this.gl.texParameterf(this.target,this.gl.renderer.getExtension("EXT_texture_filter_anisotropic").TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropy),this.state.anisotropy=this.anisotropy),this.image){if(this.image.width&&(this.width=this.image.width,this.height=this.image.height),this.target===this.gl.TEXTURE_CUBE_MAP)for(let r=0;r<6;r++)this.gl.texImage2D(this.gl.TEXTURE_CUBE_MAP_POSITIVE_X+r,this.level,this.internalFormat,this.format,this.type,this.image[r]);else if(ArrayBuffer.isView(this.image))this.target===this.gl.TEXTURE_2D?this.gl.texImage2D(this.target,this.level,this.internalFormat,this.width,this.height,0,this.format,this.type,this.image):(this.target===this.gl.TEXTURE_2D_ARRAY||this.target===this.gl.TEXTURE_3D)&&this.gl.texImage3D(this.target,this.level,this.internalFormat,this.width,this.height,this.length,0,this.format,this.type,this.image);else if(this.image.isCompressedTexture)for(let r=0;r<this.image.length;r++)this.gl.compressedTexImage2D(this.target,r,this.internalFormat,this.image[r].width,this.image[r].height,0,this.image[r].data);else this.target===this.gl.TEXTURE_2D?this.gl.texImage2D(this.target,this.level,this.internalFormat,this.format,this.type,this.image):this.gl.texImage3D(this.target,this.level,this.internalFormat,this.width,this.height,this.length,0,this.format,this.type,this.image);this.generateMipmaps&&(!this.gl.renderer.isWebgl2&&(!vD(this.image.width)||!vD(this.image.height))?(this.generateMipmaps=!1,this.wrapS=this.wrapT=this.gl.CLAMP_TO_EDGE,this.minFilter=this.gl.LINEAR):this.gl.generateMipmap(this.target)),this.onUpdate&&this.onUpdate()}else if(this.target===this.gl.TEXTURE_CUBE_MAP)for(let r=0;r<6;r++)this.gl.texImage2D(this.gl.TEXTURE_CUBE_MAP_POSITIVE_X+r,0,this.gl.RGBA,1,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,gD);else this.width?this.target===this.gl.TEXTURE_2D?this.gl.texImage2D(this.target,this.level,this.internalFormat,this.width,this.height,0,this.format,this.type,null):this.gl.texImage3D(this.target,this.level,this.internalFormat,this.width,this.height,this.length,0,this.format,this.type,null):this.gl.texImage2D(this.target,0,this.gl.RGBA,1,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,gD);this.store.image=this.image}}},uwe=class{constructor(e,{width:n=e.canvas.width,height:r=e.canvas.height,target:i=e.FRAMEBUFFER,color:s=1,depth:o=!0,stencil:a=!1,depthTexture:c=!1,wrapS:u=e.CLAMP_TO_EDGE,wrapT:d=e.CLAMP_TO_EDGE,wrapR:h=e.CLAMP_TO_EDGE,minFilter:f=e.LINEAR,magFilter:m=f,type:v=e.UNSIGNED_BYTE,format:p=e.RGBA,internalFormat:g=p,unpackAlignment:y,premultiplyAlpha:b}={}){this.gl=e,this.width=n,this.height=r,this.depth=o,this.stencil=a,this.buffer=this.gl.createFramebuffer(),this.target=i,this.gl.renderer.bindFramebuffer(this),this.textures=[];const x=[];for(let w=0;w<s;w++)this.textures.push(new yD(e,{width:n,height:r,wrapS:u,wrapT:d,wrapR:h,minFilter:f,magFilter:m,type:v,format:p,internalFormat:g,unpackAlignment:y,premultiplyAlpha:b,flipY:!1,generateMipmaps:!1})),this.textures[w].update(),this.gl.framebufferTexture2D(this.target,this.gl.COLOR_ATTACHMENT0+w,this.gl.TEXTURE_2D,this.textures[w].texture,0),x.push(this.gl.COLOR_ATTACHMENT0+w);x.length>1&&this.gl.renderer.drawBuffers(x),this.texture=this.textures[0],c&&(this.gl.renderer.isWebgl2||this.gl.renderer.getExtension("WEBGL_depth_texture"))?(this.depthTexture=new yD(e,{width:n,height:r,minFilter:this.gl.NEAREST,magFilter:this.gl.NEAREST,format:this.stencil?this.gl.DEPTH_STENCIL:this.gl.DEPTH_COMPONENT,internalFormat:e.renderer.isWebgl2?this.stencil?this.gl.DEPTH24_STENCIL8:this.gl.DEPTH_COMPONENT16:this.gl.DEPTH_COMPONENT,type:this.stencil?this.gl.UNSIGNED_INT_24_8:this.gl.UNSIGNED_INT}
5402),this.depthTexture.update(),this.gl.framebufferTexture2D(this.target,this.stencil?this.gl.DEPTH_STENCIL_ATTACHMENT:this.gl.DEPTH_ATTACHMENT,this.gl.TEXTURE_2D,this.depthTexture.texture,0)):(o&&!a&&(this.depthBuffer=this.gl.createRenderbuffer(),this.gl.bindRenderbuffer(this.gl.RENDERBUFFER,this.depthBuffer),this.gl.renderbufferStorage(this.gl.RENDERBUFFER,this.gl.DEPTH_COMPONENT16,n,r),this.gl.framebufferRenderbuffer(this.target,this.gl.DEPTH_ATTACHMENT,this.gl.RENDERBUFFER,this.depthBuffer)),a&&!o&&(this.stencilBuffer=this.gl.createRenderbuffer(),this.gl.bindRenderbuffer(this.gl.RENDERBUFFER,this.stencilBuffer),this.gl.renderbufferStorage(this.gl.RENDERBUFFER,this.gl.STENCIL_INDEX8,n,r),this.gl.framebufferRenderbuffer(this.target,this.gl.STENCIL_ATTACHMENT,this.gl.RENDERBUFFER,this.stencilBuffer)),o&&a&&(this.depthStencilBuffer=this.gl.createRenderbuffer(),this.gl.bindRenderbuffer(this.gl.RENDERBUFFER,this.depthStencilBuffer),this.gl.renderbufferStorage(this.gl.RENDERBUFFER,this.gl.DEPTH_STENCIL,n,r),this.gl.framebufferRenderbuffer(this.target,this.gl.DEPTH_STENCIL_ATTACHMENT,this.gl.RENDERBUFFER,this.depthStencilBuffer))),this.gl.renderer.bindFramebuffer({target:this.target})}setSize(e,n){if(!(this.width===e&&this.height===n)){this.width=e,this.height=n,this.gl.renderer.bindFramebuffer(this);for(let r=0;r<this.textures.length;r++)this.textures[r].width=e,this.textures[r].height=n,this.textures[r].needsUpdate=!0,this.textures[r].update(),this.gl.framebufferTexture2D(this.target,this.gl.COLOR_ATTACHMENT0+r,this.gl.TEXTURE_2D,this.textures[r].texture,0);this.depthTexture?(this.depthTexture.width=e,this.depthTexture.height=n,this.depthTexture.needsUpdate=!0,this.depthTexture.update(),this.gl.framebufferTexture2D(this.target,this.gl.DEPTH_ATTACHMENT,this.gl.TEXTURE_2D,this.depthTexture.texture,0)):(this.depthBuffer&&(this.gl.bindRenderbuffer(this.gl.RENDERBUFFER,this.depthBuffer),this.gl.renderbufferStorage(this.gl.RENDERBUFFER,this.gl.DEPTH_COMPONENT16,e,n)),this.stencilBuffer&&(this.gl.bindRenderbuffer(this.gl.RENDERBUFFER,this.stencilBuffer),this.gl.renderbufferStorage(this.gl.RENDERBUFFER,this.gl.STENCIL_INDEX8,e,n)),this.depthStencilBuffer&&(this.gl.bindRenderbuffer(this.gl.RENDERBUFFER,this.depthStencilBuffer),this.gl.renderbufferStorage(this.gl.RENDERBUFFER,this.gl.DEPTH_STENCIL,e,n))),this.gl.renderer.bindFramebuffer({target:this.target})}}};const xD={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#00ff00",blue:"#0000ff",fuchsia:"#ff00ff",cyan:"#00ffff",yellow:"#ffff00",orange:"#ff8000"};function bD(t){t.length===4&&(t=t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e||console.warn(`Unable to convert hex string ${t} to rgb values`),[parseInt(e[1],16)/255,parseInt(e[2],16)/255,parseInt(e[3],16)/255]}function dwe(t){return t=parseInt(t),[(t>>16&255)/255,(t>>8&255)/255,(t&255)/255]}function wD(t){return t===void 0?[0,0,0]:arguments.length===3?arguments:isNaN(t)?t[0]==="#"?bD(t):xD[t.toLowerCase()]?bD(xD[t.toLowerCase()]):(console.warn("Color format not recognised"),[0,0,0]):dwe(t)}let tR=class extends Array{constructor(e){return Array.isArray(e)?super(...e):super(...wD(...arguments))}get r(){return this[0]}get g(){return this[1]}get b(){return this[2]}set r(e){this[0]=e}set g(e){this[1]=e}set b(e){this[2]=e}set(e){return Array.isArray(e)?this.copy(e):this.copy(wD(...arguments))}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this}},tO=class extends obe{constructor(e,{attributes:n={}}={}){Object.assign(n,{position:{size:2,data:new Float32Array([-1,-1,3,-1,-1,3])},uv:{size:2,data:new Float32Array([0,0,2,0,0,2])}}),super(e,n)}};const hwe=`#version 300 es 5403in vec2 position; 5404void main() { 5405 gl_Position = vec4(position, 0.0, 1.0); 5406} 5407`,fwe=`#version 300 es 5408precision highp float; 5409 5410uniform float uTime; 5411uniform float uAmplitude; 5412uniform vec3 uColorStops[3]; 5413uniform vec2 uResolution; 5414uniform float uBlend; 5415 5416out vec4 fragColor; 5417 5418vec3 permute(vec3 x) { 5419 return mod(((x * 34.0) + 1.0) * x, 289.0); 5420} 5421 5422float snoise(vec2 v){ 5423 const vec4 C = vec4( 5424 0.211324865405187, 0.366025403784439, 5425 -0.577350269189626, 0.024390243902439 5426 );
5427 vec2 i = floor(v + dot(v, C.yy)); 5428 vec2 x0 = v - i + dot(i, C.xx); 5429 vec2 i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0); 5430 vec4 x12 = x0.xyxy + C.xxzz; 5431 x12.xy -= i1; 5432 i = mod(i, 289.0); 5433 5434 vec3 p = permute( 5435 permute(i.y + vec3(0.0, i1.y, 1.0)) 5436 + i.x + vec3(0.0, i1.x, 1.0) 5437 ); 5438 5439 vec3 m = max( 5440 0.5 - vec3( 5441 dot(x0, x0), 5442 dot(x12.xy, x12.xy), 5443 dot(x12.zw, x12.zw) 5444 ), 5445 0.0 5446 ); 5447 m = m * m; 5448 m = m * m; 5449 5450 vec3 x = 2.0 * fract(p * C.www) - 1.0; 5451 vec3 h = abs(x) - 0.5; 5452 vec3 ox = floor(x + 0.5); 5453 vec3 a0 = x - ox; 5454 m *= 1.79284291400159 - 0.85373472095314 * (a0*a0 + h*h); 5455 5456 vec3 g; 5457 g.x = a0.x * x0.x + h.x * x0.y; 5458 g.yz = a0.yz * x12.xz + h.yz * x12.yw; 5459 return 130.0 * dot(m, g); 5460} 5461 5462struct ColorStop { 5463 vec3 color; 5464 float position; 5465}; 5466 5467#define COLOR_RAMP(colors, factor, finalColor) { int index = 0; for (int i = 0; i < 2; i++) { ColorStop currentColor = colors[i]; bool isInBetween = currentColor.position <= factor; index = int(mix(float(index), float(i), float(isInBetween))); } ColorStop currentColor = colors[index]; ColorStop nextColor = colors[index + 1]; float range = nextColor.position - currentColor.position; float lerpFactor = (factor - currentColor.position) / range; finalColor = mix(currentColor.color, nextColor.color, lerpFactor); } 5468 5469void main() { 5470 vec2 uv = gl_FragCoord.xy / uResolution; 5471 5472 ColorStop colors[3]; 5473 colors[0] = ColorStop(uColorStops[0], 0.0); 5474 colors[1] = ColorStop(uColorStops[1], 0.5); 5475 colors[2] = ColorStop(uColorStops[2], 1.0); 5476 5477 vec3 rampColor; 5478 COLOR_RAMP(colors, uv.x, rampColor); 5479 5480 float height = snoise(vec2(uv.x * 2.0 + uTime * 0.1, uTime * 0.25)) * 0.5 * uAmplitude; 5481 height = exp(height); 5482 height = (uv.y * 2.0 - height + 0.2); 5483 float intensity = 0.6 * height; 5484 5485 float midPoint = 0.20; 5486 float auroraAlpha = smoothstep(midPoint - uBlend * 0.5, midPoint + uBlend * 0.5, intensity); 5487 5488 vec3 auroraColor = intensity * rampColor; 5489 5490 fragColor = vec4(auroraColor * auroraAlpha, auroraAlpha); 5491} 5492`;function mwe(t){const{colorStops:e=["#5227FF","#7cff67","#5227FF"],amplitude:n=1,blend:r=.5}=t,i=E.useRef(t);i.current=t;const s=E.useRef(null);return E.useEffect(()=>{const o=s.current;if(!o)return;const a=new eO({alpha:!0,premultipliedAlpha:!0,antialias:!0}),c=a.gl;c.clearColor(0,0,0,0),c.enable(c.BLEND),c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA),c.canvas.style.backgroundColor="transparent";let u;function d(){if(!o)return;const g=o.offsetWidth,y=o.offsetHeight;a.setSize(g,y),u&&(u.uniforms.uResolution.value=[g,y])}window.addEventListener("resize",d);const h=new tO(c);h.attributes.uv&&delete h.attributes.uv;const f=e.map(g=>{const y=new tR(g);return[y.r,y.g,y.b]});u=new f1(c,{vertex:hwe,fragment:fwe,uniforms:{uTime:{value:0},uAmplitude:{value:n},uColorStops:{value:f},uResolution:{value:[o.offsetWidth,o.offsetHeight]},uBlend:{value:r}}});const m=new p1(c,{geometry:h,program:u});o.appendChild(c.canvas);let v=0;const p=g=>{v=requestAnimationFrame(p);const{time:y=g*.01,speed:b=1}=i.current;u.uniforms.uTime.value=y*b*.1,u.uniforms.uAmplitude.value=i.current.amplitude??1,u.uniforms.uBlend.value=i.current.blend??r;const x=i.current.colorStops??e;u.uniforms.uColorStops.value=x.map(w=>{const _=new tR(w);return[_.r,_.g,_.b]}),a.render({scene:m})};return v=requestAnimationFrame(p),d(),()=>{var g;cancelAnimationFrame(v),window.removeEventListener("resize",d),o&&c.canvas.parentNode===o&&o.removeChild(c.canvas),(g=c.getExtension("WEBGL_lose_context"))==null||g.loseContext()}},[n]),l.jsx("div",{ref:s,className:"aurora-container"})}const cw=Wq,pwe=Gq,eY=E.forwardRef(({className:t,...e},n)=>l.jsx(IS,{ref:n,className:He("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",t),...e}));eY.displayName=IS.displayName;const gv=E.forwardRef(({className:t,children:e,...n},r)=>l.jsxs(pwe,{children:[l.jsx(eY,{}),l.jsxs(LS,{ref:r,className:He("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
5492nded-lg",t),...n,children:[e,l.jsxs(qq,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[l.jsx(gp,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));gv.displayName=LS.displayName;const vv=({className:t,...e})=>l.jsx("div",{className:He("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});vv.displayName="DialogHeader";const yv=E.forwardRef(({className:t,...e},n)=>l.jsx(DS,{ref:n,className:He("text-lg font-semibold leading-none tracking-tight",t),...e}));yv.displayName=DS.displayName;const xv=E.forwardRef(({className:t,...e},n)=>l.jsx(FS,{ref:n,className:He("text-sm text-muted-foreground",t),...e}));xv.displayName=FS.displayName;const Ms=E.forwardRef(({className:t,type:e,...n},r)=>l.jsx("input",{type:e,className:He("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",t),ref:r,...n}));Ms.displayName="Input";var gwe="Label",tY=E.forwardRef((t,e)=>l.jsx(ht.label,{...t,ref:e,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=t.onMouseDown)==null||i.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));tY.displayName=gwe;var nY=tY;const vwe=A0("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Pr=E.forwardRef(({className:t,...e},n)=>l.jsx(nY,{ref:n,className:He(vwe(),t),...e}));
5492Pr.displayName=nY.displayName;const H0=({open:t,onOpenChange:e})=>{const[n,r]=E.useState(""),[i,s]=E.useState(!1),o=async a=>{a.preventDefault();const c=hy(n);if(!c.valid){ga.error(c.error);return}s(!0);try{const{error:u}=await Yt.functions.invoke("send-contact-email",{body:{name:"Waitlist Signup",email:n,subject:"Waitlist Registration",message:"User requested to join the RORA waitlist"}});if(u){console.error("Error joining waitlist:",u),ga.error("Failed to join waitlist. Please try again or email us at [email protected]");return}ga.success("You're on the list! We'll notify you when RORA launches."),r(""),e(!1)}catch(u){console.error("Error joining waitlist:",u),ga.error("Failed to join waitlist. Please try again or email us at [email protected]")}finally{s(!1)}};return l.jsx(cw,{open:t,onOpenChange:e,children:l.jsxs(gv,{className:"sm:max-w-[500px] border border-white/20 shadow-2xl bg-gradient-to-br from-white/10 to-white/5 backdrop-blur-[32px] saturate-[1.8] rounded-2xl",children:[l.jsxs(vv,{children:[l.jsx("div",{className:"flex justify-center mb-4",children:l.jsx("img",{src:"/images/rora-logo-full.png",alt:"RORA",className:"h-[58px] w-auto"})}),l.jsxs(yv,{className:"text-2xl font-bold text-center",children:["Get Early Access to ",l.jsx("span",{className:"ai-text-gulax",children:"AI"})," Discovery"]}),l.jsx(xv,{className:"space-y-2 pt-2 text-center",children:l.jsx("p",{className:"text-base",children:"Join the waitlist to be notified when it launches."})})]}),l.jsxs("form",{onSubmit:o,className:"space-y-4 pt-2",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Pr,{htmlFor:"email",children:"Email Address"}),l.jsx(Ms,{id:"email",type:"email",placeholder:"[email protected]",value:n,onChange:a=>r(a.target.value),required:!0,disabled:i,className:"h-12 text-base rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)]"})]}),l.jsx("div",{className:"space-y-3",children:l.jsx("button",{type:"submit",className:"ai-discovery-btn visible w-full",disabled:i,children:i?"Joining...":"Join Waitlist"})})]})]})})},xc={code:"SUMMERVIBES",discountPct:30,endDate:new Date("2026-06-30T23:59:59+02:00")},nR=t=>String(t).padStart(2,"0");function _D(t){const e=Math.max(0,t.getTime()-Date.now()),n=Math.floor(e/1e3);return{days:Math.floor(n/86400),hours:Math.floor(n%86400/3600),minutes:Math.floor(n%3600/60),seconds:n%60,total:e}}function rY(t){const[e,n]=E.useState(()=>_D(t));return E.useEffect(()=>{const r=()=>n(_D(t));r();const i=setInterval(r,1e3);return()=>clearInterval(i)},[t]),e}const ywe=({target:t})=>{const e=rY(t);return e.total<=0?null:l.jsxs("span",{className:"tabular-nums font-semibold text-white/90",children:[e.days,"d ",nR(e.hours),"h ",nR(e.minutes),"m"]})},xwe=({target:t,className:e=""})=>{const n=rY(t),[r,i]=E.useState(!1);if(n.total<=0)return null;const s=[{value:n.days,label:"Days"},{value:n.hours,label:"Hours"},{value:n.minutes,label:"Mins"},{value:n.seconds,label:"Secs"}],o=async()=>{try{await navigator.clipboard.writeText(xc.code),i(!0),setTimeout(()=>i(!1),1800)}catch{}};return l.jsxs(ve.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.22,1,.36,1]},className:`relative overflow-hidden rounded-2xl border border-white/10 bg-white/[0.03] backdrop-blur-md p-4 sm:p-5 ${e}`,children:[l.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute -top-10 left-1/2 -translate-x-1/2 h-28 w-3/4 rounded-full blur-2xl",style:{background:"radial-gradient(ellipse, rgba(255,180,84,0.18), rgba(226,98,138,0.12) 45%, transparent 72%)"}}),l.jsxs("div",{className:"relative flex items-center justify-center gap-2 mb-3.5",children:[l.jsx(eH,{className:"w-4 h-4 text-[#FFB454]","aria-hidden":"true"}),l.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-white/70",children:"Summer Sale ends in"})]}),l.jsx("div",{className:"relative flex items-start justify-center gap-2.5 sm:gap-3",children:s.map(a=>l.jsx(E.Fragment,{children:l.jsxs("div",{className:"flex flex-col items-center",children:[l.jsx("div",{className:"flex min-w-[3rem] sm:min-w-[3.5rem] items-center justify-center rounded-xl border border-white/10 bg-gradient-to-b from-white/[0.1] to-white/[0.02] px-2 py-2 sm:py-2.5",children:l.jsx("span",{className:"block text-2xl sm:text-3xl font-extrabold tabular-nums bg-gradient-to-br from-[#E2628A] to-[#6200EE] bg-clip-text text-transparent",children:nR(a.value)})}),l.jsx("span",{className:"mt-1.5 text-[10px] uppercase tracking-[0.15em] text-muted-foreground",children:a.label})]})},a.label))}),l.jsxs("div",{className:"relative mt-4 flex flex-wrap items-center justify-center gap-x-1.5 gap-y-1 text-sm text-muted-foreground",children:[l.jsx("span",{children:"Use code"}),l.jsxs("button",{type:"button",onClick:o,className:"group inline-flex items-center gap-1.5 rounded-full border border-white/15 bg-white/[0.06] px-2.5 py-0.5 font-mono text-xs font-semibold tracking-wider hover:bg-white/[0.1] transition-colors","aria-label":`Copy promo code ${xc.code}`,children:[l.jsx("span",{className:"bg-gradient-to-r from-[#ff4d9b] via-[#9945ff] to-[#3adec2] bg-clip-text text-transparent",children:xc.code}),r?l.jsx(Sm,{className:"w-3.5 h-3.5 text-[#3adec2]","aria-hidden":"true"}):l.jsx(q9,{className:"w-3.5 h-3.5 text-white/50 group-hover:text-white/80","aria-hidden":"true"})]}),l.jsxs("span",{children:["for ",xc.discountPct,"% off"]})]})]})},SD="rora-summervibes-banner-dismissed",bwe=({onVisibilityChange:t})=>{const[e,n]=E.useState(!1);E.useEffect(()=>{const s=!localStorage.getItem(SD);n(s),t==null||t(s)},[t]);const r=i=>{i.preventDefault(),i.stopPropagation(),n(!1),t==null||t(!1),localStorage.setItem(SD,"true")};return e?l.jsxs("div",{className:"ai-discovery-banner",role:"region","aria-label":"Summer sale promotion",children:[l.jsxs(mt,{to:"/pricing",className:"ai-discovery-banner-content",children:[l.jsx(eH,{className:"ai-discovery-banner-icon","aria-hidden":"true",style:{color:"#FFB454",filter:"drop-shadow(0 0 6px rgba(255, 180, 84, 0.5))"}}),l.jsxs("span",{className:"sm:hidden",children:[l.jsx("span",{className:"font-semibold",children:"Summer Sale 30% OFF"})," ·"," ",l.jsx("span",{className:"ai-discovery-banner-code",children:xc.code})]}),l.jsxs("span",{className:"hidden sm:inline",children:[l.jsxs("span",{className:"hidden md:inline",children:[l.jsx("span",{className:"font-semibold",children:"Version 2 Major Update"}),l.jsx("span",{className:"mx-2 text-white/30",children:"·"})]}),l.jsx("span",{className:"font-semibold",children:"Summer Sale"}),l.jsx("span",{className:"mx-1.5 text-white/40",children:"â"}),l.jsx("span",{className:"font-semibold",children:"30% OFF"})," with code"," ",l.jsx("span",{className:"ai-discovery-banner-code",children:xc.code}),l.jsxs("span",{className:"hidden lg:inline",children:[l.jsx("span",{className:"mx-2 text-white/30",children:"·"}),"Ends in ",l.jsx(ywe,{target:xc.endDate})]})]})]}),l.jsx("button",{className:"ai-discovery-banner-close",onClick:r,"aria-label":"Dismiss banner",type:"button",children:l.jsx(gp,{className:"w-3.5 h-3.5"})})]}):null},wwe=36;function _we({children:t}){var p;const{user:e,signOut:n}=Tl(),r=uu(),[i,s]=E.useState(!1),[o,a]=E.useState(!1),[c,u]=E.useState(!1),d=c?wwe:0;E.useEffect(()=>{window.scrollTo(0,0)},[r.pathname]),E.useEffect(()=>{const g=()=>{a(window.scrollY>50)};return window.addEventListener("scroll",g),()=>window.removeEventListener("scroll",g)},[]);const f=[{name:"Home",href:"/"},{name:"Features",href:"/features"},{name:"Guide",href:"/guide"},{name:"Download",href:"/pricing"},{name:"About",href:"/about"},{name:"Support",href:"/support"},{name:"News",href:"/news"},{name:"Dashboard",href:"/dashboard",authRequired:!0}].filter(g=>!g.authRequired||e),m=()=>{const[g,y]=E.useState(!1);return l.jsxs(Dxe,{open:g,onOpenChange:y,children:[l.jsx(Fxe,{asChild:!0,children:l.jsx(Ge,{variant:"ghost",size:"icon","aria-label":"Open navigation menu",className:"md:hidden hover:bg-white/10 relative group",children:l.jsxs("div",{className:"relative w-5 h-5 flex flex-col justify-center items-center",children:[l.jsx(ve.span,{animate:g?{rotate:45,y:0}:{rotate:0,y:-6},transition:{duration:.3,ease:"easeInOut"},className:"absolute w-5 h-0.5 bg-current origin-center"}),l.jsx(ve.span,{animate:g?{opacity:0}
5492:{opacity:1},transition:{duration:.2},className:"absolute w-5 h-0.5 bg-current"}),l.jsx(ve.span,{animate:g?{rotate:-45,y:0}:{rotate:0,y:6},transition:{duration:.3,ease:"easeInOut"},className:"absolute w-5 h-0.5 bg-current origin-center"})]})})}),l.jsx(Xq,{side:"right",className:"bg-black/20 backdrop-blur-2xl border-white/10",children:l.jsxs("div",{className:"flex flex-col space-y-2 mt-8",children:[f.map(b=>{const x=r.pathname===b.href||b.href==="/features"&&r.pathname.startsWith("/features/");return l.jsxs(mt,{to:b.href,onClick:()=>y(!1),className:"relative rounded-full px-4 py-3 text-base font-medium transition focus-visible:outline-2",children:[x&&l.jsx(ve.span,{layoutId:"mobile-bubble",className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30",style:{borderRadius:9999},transition:{type:"spring",bounce:.2,duration:.6}}),l.jsx("span",{className:`relative z-20 ${x?"text-foreground":"text-muted-foreground"}`,children:b.name})]},b.name)}),l.jsx("div",{className:"pt-6 mt-4 border-t border-border/50",children:e?l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{className:"rounded-full bg-white/10 backdrop-blur-sm border border-white/20 px-4 py-3 flex items-center",children:[l.jsx(_4,{className:"mr-2 h-4 w-4"}),l.jsx("span",{className:"text-sm truncate",children:e.email})]}),l.jsx(Ge,{variant:"ghost",onClick:()=>{n(),y(!1)},className:"w-full justify-start rounded-full hover:bg-white/10",children:"Sign Out"})]}):l.jsxs("div",{className:"space-y-2",children:[l.jsx(Ge,{asChild:!0,variant:"ghost",className:"w-full rounded-full hover:bg-white/10",onClick:()=>y(!1),children:l.jsx(mt,{to:"/auth",children:"Sign In"})}),l.jsx(Ge,{asChild:!0,className:"w-full rounded-full bg-gradient-to-r from-[#ff4d9b] to-[#9945ff] hover:opacity-90 transition-opacity text-white border-0",onClick:()=>y(!1),children:l.jsx("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",children:"Get It Now"})})]})})]})})]})},v=r.pathname!=="/"&&r.pathname!=="/features"&&r.pathname!=="/pricing"&&r.pathname!=="/about"&&r.pathname!=="/support"&&r.pathname!=="/auth"&&r.pathname!=="/dashboard"&&r.pathname!=="/legal"&&r.pathname!=="/reset-password"&&r.pathname!=="/aura"&&r.pathname!=="/press"&&r.pathname!=="/community"&&r.pathname!=="/guide"&&r.pathname!=="/news"&&r.pathname!=="/goodbye"&&!r.pathname.startsWith("/features/")&&!r.pathname.startsWith("/news/");return l.jsxs("div",{className:"min-h-screen relative",children:[!v&&l.jsx("div",{className:"absolute top-0 left-0 right-0 h-screen w-full pointer-events-none -z-10 overflow-hidden",children:l.jsx(mwe,{colorStops:["#ff4d9b","#9945ff","#3adec2"],blend:.3,amplitude:.8,speed:.8})}),l.jsx(bwe,{onVisibilityChange:u}),l.jsx("header",{className:`fixed left-0 right-0 z-50 transition-all duration-300 ${o?"bg-white/10 backdrop-blur-xl border-b border-white/20 shadow-lg shadow-black/5 h-14 md:h-16":"bg-transparent h-16 md:h-18"}`,style:{top:d},children:l.jsxs("div",{className:"container mx-auto px-4 h-full flex items-center justify-between",children:[l.jsx(mt,{to:"/",className:"flex items-center space-x-2",children:l.jsx("img",{src:"/lovable-uploads/9fecd808-10d6-4fa5-847b-b7736d90756c.png",alt:"RORA Audio Processing Logo",className:"w-8 h-8 rounded-lg"})}),l.jsx("nav",{className:"hidden md:flex items-center space-x-1 absolute left-1/2 -translate-x-1/2",children:f.map(g=>{const y=r.pathname===g.href||g.href==="/features"&&r.pathname.startsWith("/features/");return l.jsxs(mt,{to:g.href,className:`${y?"":"hover:text-muted-foreground/60"} relative rounded-full px-3 py-1.5 text-sm font-medium transition focus-visible:outline-2`,style:{WebkitTapHighlightColor:"transparent"},children:[y&&l.jsx(ve.span,{layoutId:"bubble",className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30",style:{borderRadius:9999},transition:{type:"spring",bounce:.2,duration:.6}}),l.jsx("span",{className:"relative z-20",children:g.name})]},g.name)})}),l.jsxs("div",{className:"hidden md:flex items-center space-x-1 relative z-10",children:[l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"relative rounded-full px-3 py-1.5 text-sm font-medium transition focus-visible:outline-2 group",children:[l.jsx(ve.span,{className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30 opacity-0 group-hover:opacity-100",style:{borderRadius:9999},transition:{duration:.2}}),l.jsxs("span",{className:"relative z-20 flex items-center",children:[l.jsx(Vr,{className:"mr-2 h-4 w-4"}),"Get It Now"]})]}),e?l.jsxs(NS,{modal:!1,children:[l.jsx(kS,{asChild:!0,children:l.jsxs(Ge,{variant:"outline",size:"sm",className:"rounded-full bg-white/5 backdrop-blur-sm border-white/10 hover:bg-white/10",children:[l.jsx(_4,{className:"mr-2 h-4 w-4 text-white"}),(p=e.email)==null?void 0:p.split("@")[0]]})}),l.jsxs($0,{align:"end",className:"bg-white/10 backdrop-blur-xl border-white/20 rounded-3xl shadow-2xl shadow-black/20 p-2",sideOffset:8,children:[l.jsx(ZM,{asChild:!0,className:"rounded-full hover:bg-white/20 focu
5492s:bg-white/20 hover:border-white/30 transition-all cursor-pointer px-4 py-2 text-foreground/70 hover:text-white border border-transparent",children:l.jsx(mt,{to:"/dashboard",children:"Dashboard"})}),l.jsx(ZM,{onClick:n,className:"rounded-full hover:bg-white/20 focus:bg-white/20 hover:border-white/30 transition-all cursor-pointer px-4 py-2 text-foreground/70 hover:text-white border border-transparent",children:"Sign Out"})]})]}):l.jsx(l.Fragment,{children:l.jsxs(mt,{to:"/auth",className:"relative rounded-full px-3 py-1.5 text-sm font-medium transition focus-visible:outline-2",style:{WebkitTapHighlightColor:"transparent"},children:[r.pathname==="/auth"&&l.jsx(ve.span,{layoutId:"bubble",className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30",style:{borderRadius:9999},transition:{type:"spring",bounce:.2,duration:.6}}),l.jsxs("span",{className:"relative z-20 flex items-center",children:[l.jsx(Lse,{className:"mr-2 h-4 w-4"}),"Sign In"]})]})})]}),l.jsx(m,{})]})}),l.jsx("main",{className:"relative z-10 transition-all duration-300",style:{paddingTop:64+d},children:t}),l.jsx("footer",{className:"border-t border-border mt-20 relative z-10",children:l.jsxs("div",{className:"container mx-auto px-4 py-12",children:[l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[l.jsxs("div",{className:"space-y-4",children:[l.jsx("div",{className:"flex items-center space-x-2",children:l.jsx("img",{src:"/lovable-uploads/2147a429-c4b7-42fa-b2b5-c6818492a65b.png",alt:"RORA Audio Processing Logo",className:"h-6"})}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Let Every Song Be Yours"}),l.jsx("div",{className:"pt-2",children:l.jsx("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"inline-block hover:opacity-80 transition-opacity",children:l.jsx("img",{src:"/images/chrome-web-store-badge.png",alt:"Available in the Chrome Web Store",className:"h-14 w-auto"})})})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold mb-4",children:"Product"}),l.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[l.jsx("li",{children:l.jsx(mt,{to:"/features",className:"hover:text-foreground transition-colors",children:"Features"})}),l.jsx("li",{children:l.jsx(mt,{to:"/pricing",className:"hover:text-foreground transition-colors",children:"Plans"})})]})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold mb-4",children:"Support"}),l.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[l.jsx("li",{children:l.jsx(mt,{to:"/support",className:"hover:text-foreground transition-colors",children:"Contact"})}),l.jsx("li",{children:l.jsx(mt,{to:"/legal#privacy",className:"hover:text-foreground transition-colors",children:"Privacy"})}),l.jsx("li",{children:l.jsx(mt,{to:"/legal#terms",className:"hover:text-foreground transition-colors",children:"Terms"})}),l.jsx("li",{children:l.jsx("button",{onClick:()=>{localStorage.removeItem("rora-cookie-consent"),window.location.reload()},className:"hover:text-foreground transition-colors",children:"Cookie Settings"})})]})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold mb-4",children:"Company"}),l.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[l.jsx("li",{children:l.jsx(mt,{to:"/about",className:"hover:text-foreground transition-colors",children:"About"})}),l.jsx("li",{children:l.jsx(mt,{to:"/press",className:"hover:text-foreground transition-colors",children:"Press"})}),l.jsx("li",{children:l.jsx(mt,{to:"/community",className:"hover:text-foreground transition-colors",children:"Community"})})]})]})]}),l.jsxs("div",{className:"border-t border-border mt-8 pt-8 text-center text-sm text-muted-foreground space-y-4",children:[l.jsxs("div",{className:"flex justify-center space-x-6",children:[l.jsxs("a",{href:"https://x.com/RORAAudio",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors glass p-2 rounded-full",children:[l.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"
5492currentColor",children:l.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),l.jsx("span",{className:"sr-only",children:"X"})]}),l.jsxs("a",{href:"https://www.linkedin.com/company/rora-audio/",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors glass p-2 rounded-full",children:[l.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),l.jsx("span",{className:"sr-only",children:"LinkedIn"})]}),l.jsxs("a",{href:"https://youtube.com/@getRORA",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors glass p-2 rounded-full",children:[l.jsx(tH,{className:"w-5 h-5"}),l.jsx("span",{className:"sr-only",children:"YouTube"})]})]}),l.jsx("div",{children:"Built in Scandinavia under the Northern Lights"}),l.jsx("div",{children:"© 2026 RORA Audio. All rights reserved."}),l.jsxs("div",{className:"space-y-2 pt-4 border-t border-white/5 max-w-3xl mx-auto",children:[l.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Google, Google Chrome, and the Google logo are trademarks of Google LLC. RORA is not affiliated with, endorsed by, or sponsored by Google LLC."}),l.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Apple and the Apple logo are trademarks of Apple Inc., registered in the U.S. and other countries. RORA is not affiliated with, endorsed by, or sponsored by Apple Inc."}),l.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Spotify and the Spotify logo are registered trademarks of Spotify AB. RORA is not affiliated with, endorsed by, or sponsored by Spotify AB."}),l.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Demo audio tracks are provided by Epidemic Sound AB and are used under license."}),l.jsx("p",{className:"text-xs text-muted-foreground/60",children:"All other trademarks are the property of their respective owners."})]})]})]})}),l.jsx(H0,{open:i,onOpenChange:s})]})}const iY="rora-cookie-consent";function sY(){return typeof window>"u"?null:localStorage.getItem(iY)}function mT(t){localStorage.setItem(iY,t)}function pT(){typeof window>"u"||!window.gtag||window.gtag("consent","update",{analytics_storage:"granted"})}function Swe(){const[t,e]=E.useState(!1),[n,r]=E.useState(!1);E.useEffect(()=>{const a=sY();if(a===null){mT("accepted"),pT();return}a==="accepted"&&pT()},[]);const i=()=>{mT("accepted"),pT(),e(!1)},s=()=>{mT("declined"),e(!1)},o=()=>{r(!0)};return n?l.jsx(ve.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"fixed bottom-4 left-4 z-50 p-3 rounded-full bg-white/10 backdrop-blur-xl border border-white/20 hover:bg-white/20 transition-colors",onClick:()=>r(!1),"aria-label":"Cookie settings",children:l.jsx(w4,{className:"w-5 h-5 text-white/70"})}):l.jsx(Ca,{children:t&&l.jsx(ve.div,{initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100},transition:{type:"spring",damping:25,stiffness:300},className:"fixed bottom-4 left-4 right-4 md:left-auto md:right-4 md:max-w-md z-50",children:l.jsxs("div",{className:"relative p-5 rounded-2xl bg-neutral-900/95 backdrop-blur-xl border border-white/10 shadow-2xl",children:[l.jsx("button",{onClick:o,className:"absolute top-3 right-3 p-1 rounded-full hover:bg-white/10 transition-colors","aria-label":"Minimize",children:l.jsx(gp,{className:"w-4 h-4 text-white/50"})}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"p-2 rounded-xl bg-gradient-to-br from-[#E2628A]/20 to-[#6200EE]/20 shrink-0",children:l.jsx(w4,{className:"w-6 h-6 text-[#E2628A]"})}),l.jsxs("div",{className:"flex-1 pr-4",children:[l.jsx("h3",{className:"text-sm font-semibold text-white mb-1",children:"We use cookies"}),l.jsxs("p",{className:"text-xs text-neutral-400 leading-relaxed mb-4",children:["We use analytics cookies to understand how you use our site and improve your experience."," ",l.jsx(mt,{to:"/legal#privacy",className:"text-[#E2628A] hover:underline",children:"Learn more"})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(Ge,{onClick:i,size:"sm",className:"flex-1 rounded-full bg-gradient-to-r from-[#E2628A] to-[#6200EE] hover:opacity-90 text-white border-0 text-xs h-8",children:"Accept"}),l.jsx(Ge,{onClick:s,variant:"ghost",size:"sm",className:"flex-1 rounded-full text-neutral-400 hover:text-white hover:bg-white/10 text-xs h-8",children:"Decline"})]})]})]})]})})})}var oY={exports:{}},Ewe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Twe=Ewe,Awe=Twe;function aY(){}function lY(){}lY.resetWarningCache=aY;var Cwe=function(){function t(r,i,s,o,a,c){if(c!==Awe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:lY,resetWarningCache:aY};return n.PropTypes=n,n};oY.exports=Cwe();var Mwe=oY.exports;const dt=tn(Mwe);function Rwe(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var cY=E,Pwe=Rwe(cY);function ED(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jwe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Nwe=!!(typeof window<"u"&&window.document&&window.document.createElement);function kwe(t,e,n){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");
5492if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(i){return i.displayName||i.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var o=[],a;function c(){a=t(o.map(function(d){return d.props})),u.canUseDOM?e(a):n&&(a=n(a))}var u=function(d){jwe(h,d);function h(){return d.apply(this,arguments)||this}h.peek=function(){return a},h.rewind=function(){if(h.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var v=a;return a=void 0,o=[],v};var f=h.prototype;return f.UNSAFE_componentWillMount=function(){o.push(this),c()},f.componentDidUpdate=function(){c()},f.componentWillUnmount=function(){var v=o.indexOf(this);o.splice(v,1),c()},f.render=function(){return Pwe.createElement(s,this.props)},h}(cY.PureComponent);return ED(u,"displayName","SideEffect("+r(s)+")"),ED(u,"canUseDOM",Nwe),u}}var Owe=kwe;const Iwe=tn(Owe);var Lwe=typeof Element<"u",Dwe=typeof Map=="function",Fwe=typeof Set=="function",Uwe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function uw(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!uw(t[r],e[r]))return!1;return!0}var s;if(Dwe&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(s=t.entries();!(r=s.next()).done;)if(!e.has(r.value[0]))return!1;for(s=t.entries();!(r=s.next()).done;)if(!uw(r.value[1],e.get(r.value[0])))return!1;return!0}if(Fwe&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(s=t.entries();!(r=s.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(Uwe&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(Lwe&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&t.$$typeof)&&!uw(t[i[r]],e[i[r]]))return!1;return!0}return t!==t&&e!==e}var Bwe=function(e,n){try{return uw(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const zwe=tn(Bwe);/* 5493object-assign 5494(c) Sindre Sorhus 5495@license MIT
5496*/var TD=Object.getOwnPropertySymbols,$we=Object.prototype.hasOwnProperty,Hwe=Object.prototype.propertyIsEnumerable;function Vwe(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Wwe(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(s){return e[s]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Gwe=Wwe()?Object.assign:function(t,e){for(var n,r=Vwe(t),i,s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var o in n)$we.call(n,o)&&(r[o]=n[o]);if(TD){i=TD(n);for(var a=0;a<i.length;a++)Hwe.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r};const qwe=tn(Gwe);var Sd={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},bt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(bt).map(function(t){return bt[t]});var Mn={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},g1={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},by={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},Ywe=Object.keys(g1).reduce(function(t,e){return t[g1[e]]=e,t},{}),Xwe=[bt.NOSCRIPT,bt.SCRIPT,bt.STYLE],$o="data-react-helmet",Kwe=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},Qwe=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Zwe=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Li=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jwe=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},AD=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},e1e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},rR=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},t1e=function(e){var n=Wf(e,bt.TITLE),r=Wf(e,by.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var i=Wf(e,by.DEFAULT_TITLE);return n||i||void 0},n1e=function(e){return Wf(e,by.ON_CHANGE_CLIENT_STATE)||function(){}},gT=function(e,n){return n.filter(function(r){return typeof r[e]<"u"}).map(function(r){return r[e]}).reduce(function(r,i){return Li({},r,i)},{})},r1e=function(e,n){return n.filter(function(r){return typeof r[bt.BASE]<"u"}).map(function(r){return r[bt.BASE]}).reverse().reduce(function(r,i){if(!r.length)for(var s=Object.keys(i),o=0;o<s.length;o++){var a=s[o],c=a.toLowerCase();if(e.indexOf(c)!==-1&&i[c])return r.concat(i)}return r},[])},og=function(e,n,r){var i={};return r.filter(function(s){return Array.isArray(s[e])?!0:(typeof s[e]<"u"&&a1e("Helmet: "+e+' should be of type "Array". Instead found type "'+Kwe(s[e])+'"'),!1)}).map(function(s){return s[e]}).reverse().reduce(function(s,o){var a={};o.filter(function(f){for(var m=void 0,v=Object.keys(f),p=0;p<v.length;p++){var g=v[p],y=g.toLowerCase();n.indexOf(y)!==-1&&!(m===Mn.REL&&f[m].toLowerCase()==="canonical")&&!(y===Mn.REL&&f[y].toLowerCase()==="stylesheet")&&(m=y),n.indexOf(g)!==-1&&(g===Mn.INNER_HTML||g===Mn.CSS_TEXT||g===Mn.ITEM_PROP)&&(m=g)}if(!m||!f[m])return!1;var b=f[m].toLowerCase();return i[m]||(i[m]={}),a[m]||(a[m]={}),i[m][b]?!1:(a[m][b]=!0,!0)}
5496).reverse().forEach(function(f){return s.push(f)});for(var c=Object.keys(a),u=0;u<c.length;u++){var d=c[u],h=qwe({},i[d],a[d]);i[d]=h}return s},[]).reverse()},Wf=function(e,n){for(var r=e.length-1;r>=0;r--){var i=e[r];if(i.hasOwnProperty(n))return i[n]}return null},i1e=function(e){return{baseTag:r1e([Mn.HREF,Mn.TARGET],e),bodyAttributes:gT(Sd.BODY,e),defer:Wf(e,by.DEFER),encode:Wf(e,by.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:gT(Sd.HTML,e),linkTags:og(bt.LINK,[Mn.REL,Mn.HREF],e),metaTags:og(bt.META,[Mn.NAME,Mn.CHARSET,Mn.HTTPEQUIV,Mn.PROPERTY,Mn.ITEM_PROP],e),noscriptTags:og(bt.NOSCRIPT,[Mn.INNER_HTML],e),onChangeClientState:n1e(e),scriptTags:og(bt.SCRIPT,[Mn.SRC,Mn.INNER_HTML],e),styleTags:og(bt.STYLE,[Mn.CSS_TEXT],e),title:t1e(e),titleAttributes:gT(Sd.TITLE,e)}},iR=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout(function(){iR(e)},0)}}(),CD=function(e){return clearTimeout(e)},s1e=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||iR:global.requestAnimationFrame||iR,o1e=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||CD:global.cancelAnimationFrame||CD,a1e=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},ag=null,l1e=function(e){ag&&o1e(ag),e.defer?ag=s1e(function(){MD(e,function(){ag=null})}):(MD(e),ag=null)},MD=function(e,n){var r=e.baseTag,i=e.bodyAttributes,s=e.htmlAttributes,o=e.linkTags,a=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,d=e.scriptTags,h=e.styleTags,f=e.title,m=e.titleAttributes;sR(bt.BODY,i),sR(bt.HTML,s),c1e(f,m);var v={baseTag:jh(bt.BASE,r),linkTags:jh(bt.LINK,o),metaTags:jh(bt.META,a),noscriptTags:jh(bt.NOSCRIPT,c),scriptTags:jh(bt.SCRIPT,d),styleTags:jh(bt.STYLE,h)},p={},g={};Object.keys(v).forEach(function(y){var b=v[y],x=b.newTags,w=b.oldTags;x.length&&(p[y]=x),w.length&&(g[y]=v[y].oldTags)}),n&&n(),u(e,p,g)},uY=function(e){return Array.isArray(e)?e.join(""):e},c1e=function(e,n){typeof e<"u"&&document.title!==e&&(document.title=uY(e)),sR(bt.TITLE,n)},sR=function(e,n){var r=document.getElementsByTagName(e)[0];if(r){for(var i=r.getAttribute($o),s=i?i.split(","):[],o=[].concat(s),a=Object.keys(n),c=0;c<a.length;c++){var u=a[c],d=n[u]||"";r.getAttribute(u)!==d&&r.setAttribute(u,d),s.indexOf(u)===-1&&s.push(u);var h=o.indexOf(u);h!==-1&&o.splice(h,1)}for(var f=o.length-1;f>=0;f--)r.removeAttribute(o[f]);s.length===o.length?r.removeAttribute($o):r.getAttribute($o)!==a.join(",")&&r.setAttribute($o,a.join(","))}},jh=function(e,n){var r=document.head||document.querySelector(bt.HEAD),i=r.querySelectorAll(e+"["+$o+"]"),s=Array.prototype.slice.call(i),o=[],a=void 0;return n&&n.length&&n.forEach(function(c){var u=document.createElement(e);for(var d in c)if(c.hasOwnProperty(d))if(d===Mn.INNER_HTML)u.innerHTML=c.innerHTML;else if(d===Mn.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=c.cssText:u.appendChild(document.createTextNode(c.cssText));else{var h=typeof c[d]>"u"?"":c[d];u.setAttribute(d,h)}u.setAttribute($o,"true"),s.some(function(f,m){return a=m,u.isEqualNode(f)})?s.splice(a,1):o.push(u)}),s.forEach(function(c){return c.parentNode.removeChild(c)}),o.forEach(function(c){return r.appendChild(c)}),{oldTags:s,newTags:o}},dY=function(e){return Object.keys(e).reduce(function(n,r){var i=typeof e[r]<"u"?r+'="'+e[r]+'"':""+r;return n?n+" "+i:i},"")},u1e=function(e,n,r,i){var s=dY(r),o=uY(n);return s?"<"+e+" "+$o+'="true" '+s+">"+rR(o,i)+"</"+e+">":"<"+e+" "+$o+'="true">'+rR(o,i)+"</"+e+">"},d1e=function(e,n,r){return n.reduce(function(i,s){var o=Object.keys(s).filter(function(u){return!(u===Mn.INNER_HTML||u===Mn.CSS_TEXT)}).reduce(function(u,d){var h=typeof s[d]>"u"?d:d+'="'+rR(s[d],r)+'"';return u?u+" "+h:h},""),a=s.innerHTML||s.cssText||"",c=Xwe.indexOf(e)===-1;return i+"<"+e+" "+$o+'="true" '+o+(c?"/>":">"+a+"</"+e+">")},"")},hY=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(r,i){return r[g1[i]||i]=e[i],r},n)},h1e=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(r,i){return r[Ywe[i]||i]=e[i],r},n)},f1e=function(e,n,r){var i,s=(i={key:n},i[$o]=!0,i),o=hY(r,s);return[V.createElement(bt.TITLE,o,n)]},m1e=function(e,n){return n.map(function(r,i){var s,o=(s={key:i},s[$o]=!0,s);return Object.keys(r).forEach(function(a){var c=g1[a]||a;if(c===Mn.INNER_HTML||c===Mn.CSS_TEXT){var u=r.innerHTML||r.cssText;o.dangerouslySetInnerHTML={__html:u}}else o[c]=r[a]}),V.createElement(e,o)})}
5496,Ua=function(e,n,r){switch(e){case bt.TITLE:return{toComponent:function(){return f1e(e,n.title,n.titleAttributes)},toString:function(){return u1e(e,n.title,n.titleAttributes,r)}};case Sd.BODY:case Sd.HTML:return{toComponent:function(){return hY(n)},toString:function(){return dY(n)}};default:return{toComponent:function(){return m1e(e,n)},toString:function(){return d1e(e,n,r)}}}},fY=function(e){var n=e.baseTag,r=e.bodyAttributes,i=e.encode,s=e.htmlAttributes,o=e.linkTags,a=e.metaTags,c=e.noscriptTags,u=e.scriptTags,d=e.styleTags,h=e.title,f=h===void 0?"":h,m=e.titleAttributes;return{base:Ua(bt.BASE,n,i),bodyAttributes:Ua(Sd.BODY,r,i),htmlAttributes:Ua(Sd.HTML,s,i),link:Ua(bt.LINK,o,i),meta:Ua(bt.META,a,i),noscript:Ua(bt.NOSCRIPT,c,i),script:Ua(bt.SCRIPT,u,i),style:Ua(bt.STYLE,d,i),title:Ua(bt.TITLE,{title:f,titleAttributes:m},i)}},p1e=function(e){var n,r;return r=n=function(i){Jwe(s,i);function s(){return Qwe(this,s),e1e(this,i.apply(this,arguments))}return s.prototype.shouldComponentUpdate=function(a){return!zwe(this.props,a)},s.prototype.mapNestedChildrenToProps=function(a,c){if(!c)return null;switch(a.type){case bt.SCRIPT:case bt.NOSCRIPT:return{innerHTML:c};case bt.STYLE:return{cssText:c}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},s.prototype.flattenArrayTypeChildren=function(a){var c,u=a.child,d=a.arrayTypeChildren,h=a.newChildProps,f=a.nestedChildren;return Li({},d,(c={},c[u.type]=[].concat(d[u.type]||[],[Li({},h,this.mapNestedChildrenToProps(u,f))]),c))},s.prototype.mapObjectTypeChildren=function(a){var c,u,d=a.child,h=a.newProps,f=a.newChildProps,m=a.nestedChildren;switch(d.type){case bt.TITLE:return Li({},h,(c={},c[d.type]=m,c.titleAttributes=Li({},f),c));case bt.BODY:return Li({},h,{bodyAttributes:Li({},f)});case bt.HTML:return Li({},h,{htmlAttributes:Li({},f)})}return Li({},h,(u={},u[d.type]=Li({},f),u))},s.prototype.mapArrayTypeChildrenToProps=function(a,c){var u=Li({},c);return Object.keys(a).forEach(function(d){var h;u=Li({},u,(h={},h[d]=a[d],h))}),u}
5496,s.prototype.warnOnInvalidChildren=function(a,c){return!0},s.prototype.mapChildrenToProps=function(a,c){var u=this,d={};return V.Children.forEach(a,function(h){if(!(!h||!h.props)){var f=h.props,m=f.children,v=AD(f,["children"]),p=h1e(v);switch(u.warnOnInvalidChildren(h,m),h.type){case bt.LINK:case bt.META:case bt.NOSCRIPT:case bt.SCRIPT:case bt.STYLE:d=u.flattenArrayTypeChildren({child:h,arrayTypeChildren:d,newChildProps:p,nestedChildren:m});break;default:c=u.mapObjectTypeChildren({child:h,newProps:c,newChildProps:p,nestedChildren:m});break}}}),c=this.mapArrayTypeChildrenToProps(d,c),c},s.prototype.render=function(){var a=this.props,c=a.children,u=AD(a,["children"]),d=Li({},u);return c&&(d=this.mapChildrenToProps(c,d)),V.createElement(e,d)},Zwe(s,null,[{key:"canUseDOM",set:function(a){e.canUseDOM=a}}]),s}(V.Component),n.propTypes={base:dt.object,bodyAttributes:dt.object,children:dt.oneOfType([dt.arrayOf(dt.node),dt.node]),defaultTitle:dt.string,defer:dt.bool,encodeSpecialCharacters:dt.bool,htmlAttributes:dt.object,link:dt.arrayOf(dt.object),meta:dt.arrayOf(dt.object),noscript:dt.arrayOf(dt.object),onChangeClientState:dt.func,script:dt.arrayOf(dt.object),style:dt.arrayOf(dt.object),title:dt.string,titleAttributes:dt.object,titleTemplate:dt.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=e.peek,n.rewind=function(){var i=e.rewind();return i||(i=fY({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},r},g1e=function(){return null},v1e=Iwe(i1e,l1e,fY)(g1e),Vt=p1e(v1e);Vt.renderStatic=Vt.rewind;const Nh=[{artistName:"Maybe",songName:"Keep Me Honest",albumArtUrl:"/images/album-art/maybe_icon.jpg",spotifyUrl:"#",originalAudioUrl:"/audio/maybe_keep_me_honest_original.mp3",roraAudioUrl:"/audio/maybe_keep_me_honest_rora.mp3"},{artistName:"Mindme",songName:"Sleepwalking",albumArtUrl:"/images/album-art/mindme_icon.jpg",spotifyUrl:"#",originalAudioUrl:"/audio/mindme_sleepwalking_original.mp3",roraAudioUrl:"/audio/mindme_sleepwalking_rora.mp3"},{artistName:"Hallman, Gamma Skies",songName:"Supernovas",albumArtUrl:"/images/album-art/hallman_icon.jpg",spotifyUrl:"#",originalAudioUrl:"/audio/hallman_gamma_skies_supernovas_original.mp3",roraAudioUrl:"/audio/hallman_gamma_skies_supernovas_rora.mp3"},{artistName:"Franz Gordon",songName:"Smell of Morning Coffee",albumArtUrl:"/images/album-art/franz_gordon_icon.jpg",spotifyUrl:"#",originalAudioUrl:"/audio/franz_gordon_smell_of_morning_coffee_original.mp3",roraAudioUrl:"/audio/franz_gordon_smell_of_morning_coffee_rora.mp3"},{artistName:"Nightcap",songName:"Queueing Love Songs",albumArtUrl:"/images/album-art/nightcap_icon.jpg",spotifyUrl:"#",originalAudioUrl:"/audio/nightcap_queueing_love_songs_original.mp3",roraAudioUrl:"/audio/nightcap_queueing_love_songs_rora.mp3"}];function mY(){const[t,e]=E.useState(null),[n,r]=E.useState(Nh.map(()=>!1)),[i,s]=E.useState(Nh.map(()=>0)),[o,a]=E.useState(Nh.map(()=>0)),c=E.useRef([]);E.useEffect(()=>{c.current=Nh.map(()=>({original:null,rora:null}))},[]);const u=v=>{if(!v||isNaN(v))return"0:00";const p=Math.floor(v/60),g=Math.floor(v%60);return`${p}:${g.toString().padStart(2,"0")}`},d=(v,p)=>{a(g=>{const y=[...g];return y[v]=p,y})};E.useEffect(()=>{const v=setInterval(()=>{if(t!==null){const p=c.current[t],g=n[t]?p==null?void 0:p.rora:p==null?void 0:p.original;g&&g.duration&&s(y=>{const b=[...y];return b[t]=g.currentTime/g.duration*100,b})}},100);return()=>clearInterval(v)},[t,n]);const h=async v=>{var y,b;const p=c.current[v];if(!(p!=null&&p.original)||!(p!=null&&p.rora))return;const g=[...n];if(g[v]=!g[v],r(g),t===v){const x=g[v]?p.original.currentTime:p.rora.currentTime;p.original.currentTime=x,p.rora.currentTime=x,g[v]?(p.original.pause(),p.rora.play()):(p.rora.pause(),p.original.play())}else if(g[v]){if(t!==null){const x=c.current[t];(y=x==null?void 0:x.original)==null||y.pause(),(b=x==null?void 0:x.rora)==null||b.pause(),x!=null&&x.original&&(x.original.currentTime=0),x!=null&&x.rora&&(x.rora.currentTime=0),s(w=>{const _=[...w];return _[t]=0,_})}try{await p.rora.play(),e(v)}catch(x){console.error("Error playing track:",x)}}},f=async v=>{var g,y;if(t!==null&&t!==v){const b=c.current[t];(g=b==null?void 0:b.original)==null||g.pause(),(y=b==null?void 0:b.rora)==null||y.pause(),b!=null&&b.original&&(b.original.currentTime=0),b!=null&&b.rora&&(b.rora.currentTime=0),s(x=>{const w=[...x];return w[t]=0,w})}const p=c.current[v];if(!(!(p!=null&&p.original)||!(p!=null&&p.rora)))if(t===v)p.original.pause(),p.rora.pause(),p.original.currentTime=0,p.rora.currentTime=0,s(b=>{const x=[...b];return x[v]=0,x}),e(null);else try{await(n[v]?p.rora:p.original).play(),e(v)}catch(b){console.error("Error playing track:",b)}},m=v=>{t===v&&(e(null),s(p=>{const g=[...p];return g[v]=0,g}))};return l.jsx("div",{className:"w-full max-w-2xl mx-auto",children:l.jsxs("div",{className:"audio-playlist-card",children:[l.jsxs("div",{className:"audio-playlist-header",children:[l.jsx("div",{className:"flex items-center gap-3",children:l.jsx("span",{className:"text-sm text-neutral-400 font-medium",children:"Demo Tracks"})}),l.jsx("img",{src:"/images/rora-logo-full.png",alt:"RORA",className:"h-5 opacity-90"})]}),l.jsx("div",{className:"audio-playlist-tracks",children:Nh.map((v,p)=>l.jsxs("div",{children:[l.jsxs("div",{className:`audio-playlist-row ${t===p?"active":""} ${n[p]?"rora-active":""}`,children:[l.jsx("audio",{ref:g=>{c.current[p]||(c.current[p]={original:null,rora:null}),c.current[p].original=g}
5496,src:v.originalAudioUrl,preload:"auto",playsInline:!0,onEnded:()=>m(p),onLoadedMetadata:g=>d(p,g.currentTarget.duration)}),l.jsx("audio",{ref:g=>{c.current[p]||(c.current[p]={original:null,rora:null}),c.current[p].rora=g},src:v.roraAudioUrl,preload:"auto",playsInline:!0,onEnded:()=>m(p)}),l.jsx("div",{className:"audio-play-section",onClick:()=>f(p),children:t===p?l.jsxs("div",{className:"audio-bars",children:[l.jsx("div",{className:"audio-bar"}),l.jsx("div",{className:"audio-bar"}),l.jsx("div",{className:"audio-bar"}),l.jsx("div",{className:"audio-bar"})]}):l.jsx("div",{className:"audio-play-icon"})}),l.jsx("div",{className:"audio-playlist-cover",style:{backgroundImage:`url(${v.albumArtUrl})`}}),l.jsxs("div",{className:"audio-playlist-song",children:[l.jsx("p",{className:"audio-playlist-name",children:v.songName}),l.jsx("p",{className:"audio-playlist-artist",children:v.artistName})]}),l.jsxs("div",{className:"audio-timeline-container flex-shrink-0 hidden md:flex flex-col mr-4",children:[l.jsx("div",{className:"audio-timeline",style:{width:"237px"},children:l.jsx("div",{className:"audio-timeline-progress",style:{width:`${i[p]}%`}})}),l.jsx("span",{className:"audio-duration text-[10px] text-neutral-500 mt-1 text-right",children:u(o[p])})]}),l.jsx("div",{className:"audio-row-toggle flex-shrink-0",onClick:g=>{g.stopPropagation(),h(p)},children:l.jsxs("div",{className:"rora-toggle-container",children:[l.jsx("input",{type:"checkbox",className:"rora-toggle-input",checked:n[p],onChange:()=>h(p),onClick:g=>g.stopPropagation()}),l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292 142",className:"rora-toggle",children:[l.jsxs("defs",{children:[l.jsxs("linearGradient",{id:"rora-billing-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[l.jsx("stop",{offset:"0%",style:{stopColor:"#E2628A"}}),l.jsx("stop",{offset:"100%",style:{stopColor:"#6200EE"}})]}),l.jsxs("filter",{id:`goo-effect-playlist-${p}`,children:[l.jsx("feGaussianBlur",{stdDeviation:"10",result:"blur",in:"SourceGraphic"}),l.jsx("feColorMatrix",{result:"goo",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7",mode:"matrix",in:"blur"})]})]}),l.jsx("path",{d:"M71 142C31.7878 142 0 110.212 0 71C0 31.7878 31.7878 0 71 0C110.212 0 119 30 146 30C173 30 182 0 221 0C260 0 292 31.7878 292 71C292 110.212 260.212 142 221 142C181.788 142 173 112 146 112C119 112 110.212 142 71 142Z",className:"rora-toggle-background"}),l.jsx("rect",{rx:"6",height:"64",width:"12",y:"39",x:"64",className:"rora-toggle-icon on"}),l.jsx("path",{d:"M221 91C232.046 91 241 82.0457 241 71C241 59.9543 232.046 51 221 51C209.954 51 201 59.9543 201 71C201 82.0457 209.954 91 221 91ZM221 103C238.673 103 253 88.6731 253 71C253 53.3269 238.673 39 221 39C203.327 39 189 53.3269 189 71C189 88.6731 203.327 103 221 103Z",fillRule:"evenodd",className:"rora-toggle-icon off"}),l.jsxs("g",{filter:`url(#goo-effect-playlist-${p})`,children:[l.jsx("rect",{fill:"#fff",rx:"29",height:"58",width:"116",y:"42",x:"13",className:"rora-toggle-circle-center"}),l.jsx("rect",{fill:"#fff",rx:"58",height:"114",width:"114",y:"14",x:"14",className:"rora-toggle-circle left"}),l.jsx("rect",{fill:"#fff",rx:"58",height:"114",width:"114",y:"14",x:"164",className:"rora-toggle-circle right"})]})]})]})})]}),p<Nh.length-1&&l.jsx("div",{className:"audio-separator"})]},p))})]})})}function Ed({className:t,reverse:e,pauseOnHover:n=!1,pauseOnParentHover:r=!1,children:i,vertical:s=!1,repeat:o=4,...a}){return l.jsx("div",{...a,className:He("group flex overflow-x-hidden overflow-y-visible py-6 px-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",{"flex-row":!s,"flex-col":s},t),children:Array(o).fill(0).map((c,u)=>l.jsx("div",{className:He("flex shrink-0 justify-around [gap:var(--gap)]",{"animate-marquee flex-row":!s,"animate-marquee-vertical flex-col":s,"group-hover:[animation-play-state:paused]":n,"group-hover/marquee:[animation-play-state:paused]":r,"[animation-direction:reverse]":e}),style:{willChange:"transform",backfaceVisibility:"hidden"},children:i},u))})}const v1=({words:t=["Smooth.","Echoed.","Slowed.","Reverbed.","Spatial.","Quiet.","Loud.","Energized.","Yours."],className:e=""})=>l.jsxs("div",{className:`let-it-be-loader ${e}`,children:[l.jsx("span",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold",children:"Let Every Song Be"}),l.jsxs("div",{className:"let-it-be-words",children:[t.map((n,r)=>l.jsx("span",{className:"let-it-be-word text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold",children:n},r)),l.jsx("span",{className:"let-it-be-word text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold",children:t[0]})]})]}),pY=({className:t})=>{const[e,n]=E.useState(!1),[r,i]=E.useState(!1),[s,o]=E.useState(!1),a=E.useRef(null);E.useEffect(()=>{const u=new IntersectionObserver(d=>{d.forEach(h=>{h.isIntersecting&&!r&&setTimeout(()=>{n(!0),i(!0)},300)})},{threshold:.5});return a.current&&u.observe(a.current),()=>u.disconnect()},[r]);const c=()=>{s||(o(!0),setTimeout(()=>{n(!e),o(!1)},1e3))};return l.jsx("section",{ref:a,className:`py-20 sm:py-28 px-6 bg-neutral-900/30 ${t||""}`,children:l.jsxs("div",{className:"max-w-4xl mx-auto flex flex-col items-center space-y-8 sm:space-y-12",children:[l.jsxs("h2",{className:"text-5xl sm:text-6xl md:text-7xl lg:text-8xl font-bold leading-tight text-left",children:[l.jsx("span",{className:"bg-gradient-to-r from-[#E2628A] to-[#6200EE] bg-clip-text text-transparent",children:"Flip"}),l.jsx("br",{}),l.jsx("span",{className:"bg-gradient-to-r from-[#E2628A] to-[#6200EE] bg-clip-text text-transparent",children:"that"})]}),l.jsxs("div",{className:"flex items-center justify-center scale-[2.5] sm:scale-[3.125]",children:[l.jsxs("div",{className:`rora-toggle-container cursor-pointer transition-opacity ${s?"opacity-60":"opacity-100"}
5496`,onClick:c,style:{pointerEvents:s?"none":"auto"},children:[l.jsx("input",{type:"checkbox",id:"flip-that-toggle",checked:e,onChange:c,className:"rora-toggle-input mx-[10px] cursor-pointer",disabled:s}),l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292 142",className:"rora-toggle mx-[10px]",children:[l.jsx("defs",{children:l.jsxs("linearGradient",{id:"rora-flip-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[l.jsx("stop",{offset:"0%",style:{stopColor:"#E2628A"}}),l.jsx("stop",{offset:"100%",style:{stopColor:"#6200EE"}})]})}),l.jsx("path",{d:"M71 142C31.7878 142 0 110.212 0 71C0 31.7878 31.7878 0 71 0C110.212 0 119 30 146 30C173 30 182 0 221 0C260 0 292 31.7878 292 71C292 110.212 260.212 142 221 142C181.788 142 173 112 146 112C119 112 110.212 142 71 142Z",className:"rora-toggle-background",style:{fill:e?"url(#rora-flip-gradient)":"rgba(255, 255, 255, 0.2)",transition:"fill 0.65s cubic-bezier(0.4, 0, 0.2, 1)"}}),l.jsx("rect",{rx:"6",height:"64",width:"12",y:"39",x:"64",className:"rora-toggle-icon on",style:{fill:e?"#fff":"rgba(255, 255, 255, 0.2)",transition:"fill 0.65s ease"}}),l.jsx("path",{d:"M221 91C232.046 91 241 82.0457 241 71C241 59.9543 232.046 51 221 51C209.954 51 201 59.9543 201 71C201 82.0457 209.954 91 221 91ZM221 103C238.673 103 253 88.6731 253 71C253 53.3269 238.673 39 221 39C203.327 39 189 53.3269 189 71C189 88.6731 203.327 103 221 103Z",fillRule:"evenodd",className:"rora-toggle-icon off",style:{fill:e?"#E2628A":"rgba(255, 255, 255, 0.1)",transition:"fill 0.65s ease"}}),l.jsxs("g",{filter:"url('#goo-effect-flip')",children:[l.jsx("rect",{fill:"#fff",rx:"29",height:"58",width:"116",y:"42",x:"13",className:"rora-toggle-circle-center",style:{transform:e?"translateX(150px)":"translateX(0)",transformOrigin:"center",transition:"transform 0.975s cubic-bezier(0.4, 0, 0.2, 1)"}}),l.jsx("rect",{fill:"#fff",rx:"58",height:"114",width:"114",y:"14",x:"14",className:"rora-toggle-circle left",style:{transform:e?"scale(0)":"scale(1)",transformOrigin:"center",transition:"transform 0.73s cubic-bezier(0.4, 0, 0.2, 1)"}}),l.jsx("rect",{fill:"#fff",rx:"58",height:"114",width:"114",y:"14",x:"164",className:"rora-toggle-circle right",style:{transform:e?"scale(1)":"scale(0)",transformOrigin:"center",transition:"transform 0.73s cubic-bezier(0.4, 0, 0.2, 1)"}})]}),l.jsxs("filter",{id:"goo-effect-flip",children:[l.jsx("feGaussianBlur",{stdDeviation:"10",result:"blur",in:"SourceGraphic"}),l.jsx("feColorMatrix",{result:"goo",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7",mode:"matrix",in:"blur"})]})]})]}),l.jsx("span",{className:"text-4xl sm:text-5xl font-bold ml-2 my-0 text-[#6d08e4] mx-[9px] md:text-4xl",children:"."})]})]})})},ma=({children:t,animation:e="fade",duration:n=800,delay:r=0,threshold:i=.15,className:s="",distance:o=50})=>{const[a,c]=E.useState(!1),u=E.useRef(null);E.useEffect(()=>{if(!u.current)return;const h=new IntersectionObserver(([f])=>{f.isIntersecting&&(setTimeout(()=>{c(!0)},r),h.unobserve(u.current))},{threshold:i});return h.observe(u.current),()=>h.disconnect()},[i,r]);const d=()=>{const h={transition:`all ${n}ms cubic-bezier(0.4, 0, 0.2, 1)`};if(a)return{...h,opacity:1,transform:"translate(0, 0) scale(1)",filter:"blur(0px)"};switch(e){case"fade":return{...h,opacity:0};case"slide-up":return{...h,opacity:0,transform:`translateY(${o}px)`};case"slide-down":return{...h,opacity:0,transform:`translateY(-${o}px)`};case"slide-left":return{...h,opacity:0,transform:`translateX(${o}px)`};case"slide-right":return{...h,opacity:0,transform:`translateX(-${o}px)`};case"scale":return{...h,opacity:0,transform:"scale(0.9)"};case"fade-blur":return{...h,opacity:0,filter:"blur(10px)"};default:return{...h,opacity:0}}};return l.jsx("div",{ref:u,className:s,style:d(),children:t})};function el(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gY(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*! 5497 * GSAP 3.13.0 5498 * https://gsap.com 5499 * 5500 * @license Copyright 2008-2025, GreenSock. All rights reserved. 5501 * Subject to the terms at https://gsap.com/standard-license 5502 * @author: Jack Doyle, [email protected] 5503*/var Es={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Nm={duration:.5,overwrite:!1,delay:0},nO,$r,Pn,Js=1e8,pn=1/Js,oR=Math.PI*2,y1e=oR/4,x1e=0,vY=Math.sqrt,b1e=Math.cos,w1e=Math.sin,kr=function(e){return typeof e=="string"},Gn=function(e){return typeof e=="function"},Cl=function(e){return typeof e=="number"},rO=function(e){return typeof e>"u"},ka=function(e){return typeof e=="object"},Qi=function(e){return e!==!1},iO=function(){return typeof window<"u"},Dx=function(e){return Gn(e)||kr(e)},yY=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},li=Array.isArray,aR=/(?:-?\.?\d|\.)+/gi,xY=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Cf=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,vT=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,bY=/[+-]=-?[.\d]+/,wY=/[^,'"\[\]\s]+/gi,_1e=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ln,oa,lR,sO,Rs={},y1={},_Y,SY=function(e){return(y1=km(e,Rs))&&rs},oO=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},wy=function(e,n){return!n&&console.warn(e)},EY=function(e,n){return e&&(Rs[e]=n)&&y1&&(y1[e]=n)||Rs},_y=function(){return 0},S1e={suppressEvents:!0,isStart:!0,kill:!1},dw={suppressEvents:!0,kill:!1},E1e={suppressEvents:!0},aO={}
vendor: 4,558 bytes, line 5503
5503,Fc=[],cR={},TY,fs={},yT={},RD=30,hw=[],lO="",cO=function(e){var n=e[0],r,i;if(ka(n)||Gn(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=hw.length;i--&&!hw[i].targetTest(n););r=hw[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new XY(e[i],r)))||e.splice(i,1);return e},Td=function(e){return e._gsap||cO(eo(e))[0]._gsap},AY=function(e,n,r){return(r=e[n])&&Gn(r)?e[n]():rO(r)&&e.getAttribute&&e.getAttribute(n)||r},Zi=function(e,n){return(e=e.split(",")).forEach(n)||e},Zn=function(e){return Math.round(e*1e5)/1e5||0},ar=function(e){return Math.round(e*1e7)/1e7||0},Gf=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},T1e=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++i<r;);return i<r},x1=function(){var e=Fc.length,n=Fc.slice(0),r,i;for(cR={},Fc.length=0,r=0;r<e;r++)i=n[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},uO=function(e){return!!(e._initted||e._startAt||e.add)},CY=function(e,n,r,i){Fc.length&&!$r&&x1(),e.render(n,r,!!($r&&n<0&&uO(e))),Fc.length&&!$r&&x1()},MY=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(wY).length<2?n:kr(e)?e.trim():e},RY=function(e){return e},Ps=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},A1e=function(e){return function(n,r){for(var i in r)i in n||i==="duration"&&e||i==="ease"||(n[i]=r[i])}},km=function(e,n){for(var r in n)e[r]=n[r];return e},PD=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=ka(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},b1=function(e,n){var r={},i;for(i in e)i in n||(r[i]=e[i]);return r},bv=function(e){var n=e.parent||Ln,r=e.keyframes?A1e(li(e.keyframes)):Ps;if(Qi(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},C1e=function(e,n){for(var r=e.length,i=r===n.length;i&&r--&&e[r]===n[r];);return r<0},PY=function(e,n,r,i,s){var o=e[i],a;if(s)for(a=n[s];o&&o[s]>a;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=o,n.parent=n._dp=e,n},US=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=n._prev,o=n._next;s?s._next=o:e[r]===n&&(e[r]=o),o?o._prev=s:e[i]===n&&(e[i]=s),n._next=n._prev=n.parent=null},Jc=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ad=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},M1e=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},uR=function(e,n,r,i){return e._startAt&&($r?e._startAt.revert(dw):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},R1e=function t(e){return!e||e._ts&&t(e.parent)},jD=function(e){return e._repeat?Om(e._tTime,e=e.duration()+e._rDelay)*e:0},Om=function(e,n){var r=Math.floor(e=ar(e/n));return e&&r===e?r-1:r},w1=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},BS=function(e){return e._end=ar(e._start+(e._tDur/Math.abs(e._ts||e._rts||pn)||0))},zS=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=ar(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),BS(e),r._dirty||Ad(r,e)),e},jY=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=w1(e.rawTime(),n),(!n._dur||V0(0,n.totalDuration(),r)-n._tTime>pn)&&n.render(r,!0)),Ad(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-pn}},pa=function(e,n,r,i){return n.parent&&Jc(n),n._start=ar((Cl(r)?r:r||e!==Ln?zs(e,r,n):e._time)+n._delay),n._end=ar(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),PY(e,n,"_first","_last",e._sort?"_start":0),dR(n)||(e._recent=n),i||jY(e,n),e._ts<0&&zS(e,e._tTime),e},NY=function(e,n){return(Rs.ScrollTrigger||oO("scrollTrigger",n))&&Rs.ScrollTrigger.create(n,e)},kY=function(e,n,r,i,s){if(hO(e,n,s),!e._initted)return 1;if(!r&&e._pt&&!$r&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&TY!==vs.frame)return Fc.push(e),e._lazy=[s,i],1},P1e=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},dR=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},j1e=function(e,n,r,i){var s=e.ratio,o=n<0||!n&&(!e._start&&P1e(e)&&!(!e._initted&&dR(e))||(e._ts<0||e._dp._ts<0)&&!dR(e))?0:1,a=e._rDelay,c=0,u,d,h;if(a&&e._repeat&&(c=V0(0,e._tDur,n),d=Om(c,a),e._yoyo&&d&1&&(o=1-o),d!==Om(e._tTime,a)&&(s=1-o,e.vars.repeatRefresh&&e._initted&&e.invali
vendor: 9,474 bytes, line 5503
5503date())),o!==s||$r||i||e._zTime===pn||!n&&e._zTime){if(!e._initted&&kY(e,n,i,r,c))return;for(h=e._zTime,e._zTime=n||(r?pn:0),r||(r=n&&!h),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=c,u=e._pt;u;)u.r(o,u.d),u=u._next;n<0&&uR(e,n,r,!0),e._onUpdate&&!r&&ws(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&ws(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===o&&(o&&Jc(e,1),!r&&!$r&&(ws(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},N1e=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<n)return i;i=i._prev}},Im=function(e,n,r,i){var s=e._repeat,o=ar(n)||0,a=e._tTime/e._tDur;return a&&!i&&(e._time*=o/e._dur),e._dur=o,e._tDur=s?s<0?1e10:ar(o*(s+1)+e._rDelay*s):o,a>0&&!i&&zS(e,e._tTime=e._tDur*a),e.parent&&BS(e),r||Ad(e.parent,e),e},ND=function(e){return e instanceof Ei?Ad(e):Im(e,e._dur)},k1e={_start:0,endTime:_y,totalDuration:_y},zs=function t(e,n,r){var i=e.labels,s=e._recent||k1e,o=e.duration()>=Js?s.endTime(!1):e._dur,a,c,u;return kr(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),u=n.substr(-1)==="%",a=n.indexOf("="),c==="<"||c===">"?(a>=0&&(n=n.replace(/=/,"")),(c==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(a<0?s:r).totalDuration()/100:1)):a<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(a-1)+n.substr(a+1)),u&&r&&(c=c/100*(li(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+c:o+c)):n==null?o:+n},wv=function(e,n,r){var i=Cl(n[1]),s=(i?2:1)+(e<2?0:1),o=n[s],a,c;if(i&&(o.duration=n[1]),o.parent=r,e){for(a=o,c=r;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=Qi(c.vars.inherit)&&c.parent;o.immediateRender=Qi(a.immediateRender),e<2?o.runBackwards=1:o.startAt=n[s-1]}return new or(n[0],o,n[s+1])},mu=function(e,n){return e||e===0?n(e):n},V0=function(e,n,r){return r<e?e:r>n?n:r},si=function(e,n){return!kr(e)||!(n=_1e.exec(e))?"":n[1]},O1e=function(e,n,r){return mu(r,function(i){return V0(e,n,i)})},hR=[].slice,OY=function(e,n){return e&&ka(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&ka(e[0]))&&!e.nodeType&&e!==oa},I1e=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var s;return kr(i)&&!n||OY(i,1)?(s=r).push.apply(s,eo(i)):r.push(i)})||r},eo=function(e,n,r){return Pn&&!n&&Pn.selector?Pn.selector(e):kr(e)&&!r&&(lR||!Lm())?hR.call((n||sO).querySelectorAll(e),0):li(e)?I1e(e,r):OY(e)?hR.call(e,0):e?[e]:[]},fR=function(e){return e=eo(e)[0]||wy("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return eo(n,r.querySelectorAll?r:r===e?wy("Invalid scope")||sO.createElement("div"):e)}},IY=function(e){return e.sort(function(){return .5-Math.random()})},LY=function(e){if(Gn(e))return e;var n=ka(e)?e:{each:e},r=Cd(n.ease),i=n.from||0,s=parseFloat(n.base)||0,o={},a=i>0&&i<1,c=isNaN(i)||a,u=n.axis,d=i,h=i;return kr(i)?d=h={center:.5,edges:.5,end:1}[i]||0:!a&&c&&(d=i[0],h=i[1]),function(f,m,v){var p=(v||n).length,g=o[p],y,b,x,w,_,S,T,M,A;if(!g){if(A=n.grid==="auto"?0:(n.grid||[1,Js])[1],!A){for(T=-Js;T<(T=v[A++].getBoundingClientRect().left)&&A<p;);A<p&&A--}for(g=o[p]=[],y=c?Math.min(A,p)*d-.5:i%A,b=A===Js?0:c?p*h/A-.5:i/A|0,T=0,M=Js,S=0;S<p;S++)x=S%A-y,w=b-(S/A|0),g[S]=_=u?Math.abs(u==="y"?w:x):vY(x*x+w*w),_>T&&(T=_),_<M&&(M=_);i==="random"&&IY(g),g.max=T-M,g.min=M,g.v=p=(parseFloat(n.amount)||parseFloat(n.each)*(A>p?p-1:u?u==="y"?p/A:A:Math.max(A,p/A))||0)*(i==="edges"?-1:1),g.b=p<0?s-p:s,g.u=si(n.amount||n.each)||0,r=r&&p<0?GY(r):r}return p=(g[f]-g.min)/g.max||0,ar(g.b+(r?r(p):p)*g.v)+g.u}},mR=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=ar(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(Cl(r)?0:si(r))}},DY=function(e,n){var r=li(e),i,s;return!r&&ka(e)&&(i=r=e.radius||Js,e.values?(e=eo(e.values),(s=!Cl(e[0]))&&(i*=i)):e=mR(e.increment)),mu(n,r?Gn(e)?function(o){return s=e(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),c=parseFloat(s?o.y:0),u=Js,d=0,h=e.length,f,m;h--;)s?(f=e[h].x-a,m=e[h].y-c,f=f*f+m*m):f=Math.abs(e[h]-a),f<u&&(u=f,d=h);return d=!i||u<=i?e[d]:o,s||d===o||Cl(o)?d:d+si(o)}:mR(e))},FY=function(e,n,r,i){return mu(li(e)?!n:r===!0?!!(r=0):!i,function(){return li(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*i)/i})},L1e=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduce(function(s,o){return o(s)},i)}},D1e=function(e,n){return function(r){return e(parseFloat(r))+(n||si(r))}},F1e=function(e,n,r){return BY(e,n,0,1,r)},UY=function(e,n,r){return mu(r,function(i){return e[~~n(i)]})},U1e=function t(e,n,r){var i=n-e;return li(e)?UY(e,t(0,e.length),n):mu(r,function(s){return(i+(s-e)%i)%i+e})},B1e=function t(e,n,r){var i=n-e,s=i*2;return li(e)?UY(e,t(0,e.length-1),n):mu(r,function(o){return o=(s+(o-e)%s)%s||0,e+(o>i?s-o:o)})},Sy=function(e){for(var n=0,r="",i,s,o,a;~(i=e.indexOf("random(",n));)o=e.indexOf(")",i),a=e.charAt(i+7)==="[",s=e.substr(i+7,o-i-7).match(a?wY:aR),r+=e.substr(n,i-n)+FY(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),n=o+1;return r+e.substr(n,e.length-n)},BY=function(e,n,r,i,s){var o=n-e,a=i-r;return mu(s,function(c){return r+((c-e)/o*a||0)})},z1e=function t(e,n,r,i){var s=isNaN(e+n)?0:function(m){return(1-m)*e+m*n};if(!s){var o=kr(e),a={},c,u,d,h,f;if(r===!0&&(i=1)&&(r=null),o)e={p:e},n={p:n};else if(li(e)&&!li(n)){for(d=[],h=e.length,f=h-2,u=1;u<h;u++)d.push(t(e[u-1],e[u]));h--,s=function(v){v*=h;var p=Math.min(f,~~v);return d[p](v-p)},r=n}else i||(e=km(li(e)?[]:{},e));if(!d){for(c in n)dO.call(a,e,c,"get",n[c]);s=function(v){return pO(v,a)||(o?e.p:e)}}}return mu(r,s)},kD=function(e,n,r){var i=e.labels,s=Js,o,a,c;for(o in i)a=i[o]-n,a<0==!!r&&a&&s>(a=Math.abs(a))&&(c=o,s=a);return c},ws=function(e,n,r){var i=e.vars,s=i[n],o=Pn,a=e._ctx,c,u,d;if(s)return c=i[n+"Params"],u=i.callbackScope||e,r&&Fc.length&&x1(),a&&(Pn=a),d=c?s.apply(u,c):s.call(u),Pn=o,d},Bg=function(e){return Jc(e),e.scrollTrigger&&e.scrollTrigger.kill(!!$r),e.progress()<1&&ws(e,"onInterrupt"),e},Mf,zY=[],$Y=function(e){if(e)if(e=!e.name&&e.default||e,iO()||e.headless){var n=e.name,r=Gn(e),i=n&&!r&&e.init?function(){this._props=[]}:e,s={init:_y,render:pO,add:dO,kill:r_e,modifier:n_e,rawVars:0},o={targetTest:0,get:0,getSetter:mO,aliases:{},register:0};if(Lm(),e!==i){if(fs[n])return;Ps(i,Ps(b1(e,s),o)),km(i.prototype,km(s,b1(e,o))),fs[i.prop=n]=i,e.targetTest&&(hw.push(i),aO[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}EY(n,i),e.register&&e.register(rs,i,Ji)}else zY.push(e)},hn=255,zg={aqua:[0,hn,hn],lime:[0,hn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,hn],navy:[0,0,128],white:[hn,hn,hn],olive:[128,128,0],yellow:[hn,hn,0],orange:[hn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[hn,0,0],pink:[hn,192,203],cyan:[0,hn,hn],transparent:[hn,hn,hn,0]},xT=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*hn+.5|0},HY=function(e,n,r){var i=e?Cl(e)?[e>>16,e>>8&hn,e&hn]:0:zg.black,s,o,a,c,u,d,h,f,m,v;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),zg[e])i=zg[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+s+s+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&hn,i&hn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&hn,e&hn]}else if(e.substr(0,3)==="hsl"){if(i=v=e.match(aR),!n)c=+i[0]%360/360,u=+i[1]/100,d=+i[2]/100,o=d<=.5?d*(u+1):d+u-d*u,s=d*2-o,i.length>3&&(i[3]*=1),i[0]=xT(c+1/3,s,o),i[1]=xT(c,s,o),i[2]=xT(c-1/3,s,o);else if(~e.indexOf("="))return i=e.match(xY),r&&i.length<4&&(i[3]=1),i}else i=e.match(aR)||zg.transparent;i=i.map(Number)}return n&&!v&&(s=i[0]/hn,o=i[1]/hn,a=i[2]/hn,h=Math.max(s,o,a),f=Math.min(s,o,a),d=(h+f)/2,h===f?c=u=0:(m=h-f,u=d>.5?m/(2-h-f):m/(h+f),c=h===s?(o-a)/m+(o<a?6:0):h===o?(a-s)/m+2:(s-o)/m+4,c*=60),i[0]=~~(c+.5),i[1]=~~(u*100+.5),i[2]=~~(d*100+.5)),r&&i.length<4&&(i[3]=1),i},VY=function(e){var n=[],r=[],i=-1;return e.split(Uc).forEach(function(s){var o=s.match(Cf)||[];n.push.apply(n,o),r.push(i+=o.length+1)}),n.c=r,n},OD=function(e,n,r){var i="",s=(e+i).match(Uc),o=n?"hsla(":"rgba(",a=0,c,u,d,h;if(!s)return e;if(s=s.map(function(f){return(f=HY(f,n,1))&&o+(n?f[0]+","+f[1]+"%,"+f[2]+"%,"+f[3]:f.join(","))+")"}),r&&(d=VY(e),c=r.c,c.join(i)!==d.c.join(i)))for(u=e.replace(Uc,"1").split(Cf),h=u.length-1;a<h;a++)i+=u[a]+(~c.indexOf(a)?s.shift()||o+"0,0,0,0)":(d.length?d:s.length?s:r).shift());if(!u)for(u=e.split(Uc),h=u.length-1;a<h;a++)i+=u[a]+s[a];return i+u[h]},Uc=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in zg)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),$1e=/hsl[a]?\(/,WY=function(e){var n=e.join(" "),r;if(Uc.lastIndex=0,Uc.test(n))return r=$1e.test(n),e[1]=OD(e[1],r),e[0]=OD(e[0],r,VY(e[1])),!0},Ey,vs=function(){var t=Date.now,e=500,n=33,r=t(),i=r,s=1e3/240,o=s,a=[],c,u,d,h,f,m,v=function p(g){var y=t()-i,b=g===!0,x,w,_,S;if((y>e||y<0)&&(r+=y-n),i+=y,_=i-r,x=_-o,(x>0||b)&&(S=++h.frame,f=_-h.time*1e3,h.time=_=_/1e3,o+=x+(x>=s?4:s-x),w=1),b||(c=u(p)),w)for(m=0;m<a.length;m++)a[m](_,f,S,g)};return h={time:0,frame:0,tick:function(){v(!0)},deltaRatio:function(g){return f/(1e3/(g||60))},wake:function(){_Y&&(!lR&&iO()&&(oa=lR=window,sO=oa.document||{}
vendor: 7,264 bytes, line 5503
5503,Rs.gsap=rs,(oa.gsapVersions||(oa.gsapVersions=[])).push(rs.version),SY(y1||oa.GreenSockGlobals||!oa.gsap&&oa||{}),zY.forEach($Y)),d=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&h.sleep(),u=d||function(g){return setTimeout(g,o-h.time*1e3+1|0)},Ey=1,v(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(c),Ey=0,u=_y},lagSmoothing:function(g,y){e=g||1/0,n=Math.min(y||33,e)},fps:function(g){s=1e3/(g||240),o=h.time*1e3+s},add:function(g,y,b){var x=y?function(w,_,S,T){g(w,_,S,T),h.remove(x)}:g;return h.remove(g),a[b?"unshift":"push"](x),Lm(),x},remove:function(g,y){~(y=a.indexOf(g))&&a.splice(y,1)&&m>=y&&m--},_listeners:a},h}(),Lm=function(){return!Ey&&vs.wake()},zt={},H1e=/^[\d.\-M][\d.\-,\s]/,V1e=/["']/g,W1e=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],s=1,o=r.length,a,c,u;s<o;s++)c=r[s],a=s!==o-1?c.lastIndexOf(","):c.length,u=c.substr(0,a),n[i]=isNaN(u)?u.replace(V1e,"").trim():+u,i=c.substr(a+1).trim();return n},G1e=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n);return e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)},q1e=function(e){var n=(e+"").split("("),r=zt[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[W1e(n[1])]:G1e(e).split(",").map(MY)):zt._CE&&H1e.test(e)?zt._CE("",e):r},GY=function(e){return function(n){return 1-e(1-n)}},qY=function t(e,n){for(var r=e._first,i;r;)r instanceof Ei?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},Cd=function(e,n){return e&&(Gn(e)?e:zt[e]||q1e(e))||n},ph=function(e,n,r,i){r===void 0&&(r=function(c){return 1-n(1-c)}),i===void 0&&(i=function(c){return c<.5?n(c*2)/2:1-n((1-c)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:i},o;return Zi(e,function(a){zt[a]=Rs[a]=s,zt[o=a.toLowerCase()]=r;for(var c in s)zt[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=zt[a+"."+c]=s[c]}),s},YY=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},bT=function t(e,n,r){var i=n>=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),o=s/oR*(Math.asin(1/i)||0),a=function(d){return d===1?1:i*Math.pow(2,-10*d)*w1e((d-o)*s)+1},c=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:YY(a);return s=oR/s,c.config=function(u,d){return t(e,u,d)},c},wT=function t(e,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},i=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:YY(r);return i.config=function(s){return t(e,s)},i};Zi("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;ph(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});zt.Linear.easeNone=zt.none=zt.Linear.easeIn;ph("Elastic",bT("in"),bT("out"),bT());(function(t,e){var n=1/e,r=2*n,i=2.5*n,s=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a<i?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};ph("Bounce",function(o){return 1-s(1-o)},s)})(7.5625,2.75);ph("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)});ph("Circ",function(t){return-(vY(1-t*t)-1)});ph("Sine",function(t){return t===1?1:-b1e(t*y1e)+1});ph("Back",wT("in"),wT("out"),wT());zt.SteppedEase=zt.steps=Rs.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,i=e+(n?0:1),s=n?1:0,o=1-pn;return function(a){return((i*V0(0,o,a)|0)+s)*r}}};Nm.ease=zt["quad.out"];Zi("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return lO+=t+","+t+"Params,"});var XY=function(e,n){this.id=x1e++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:AY,this.set=n?n.getSetter:mO},Ty=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Im(this,+n.duration,1,1),this.data=n.data,Pn&&(this._ctx=Pn,Pn.data.push(this)),Ey||vs.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Im(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Lm(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(zS(this,r),!s._dp||s.parent||jY(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&pa(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===pn||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),CY(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+jD(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+jD(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?Om(this._tTime,s)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-pn?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?w1(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-pn?0:this._rts,this.totalTime(V0(-Math.abs(this._delay),this.totalDuration(),s),i!==!1),BS(this),M1e(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Lm(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==pn&&(this._tTime-=pn)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&pa(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(Qi(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?w1(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=E1e);var i=$r;return $r=r,uO(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),$r=i,this},e.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;
vendor: 10,795 bytes, line 5503
5503)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,ND(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,ND(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(zs(this,r),Qi(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,Qi(i)),this._dur||(this._zTime=-pn),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-pn:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-pn,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=i&&s<this.endTime(!0)-pn)},e.eventCallback=function(r,i,s){var o=this.vars;return arguments.length>1?(i?(o[r]=i,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete o[r],this):o[r]},e.then=function(r){var i=this;return new Promise(function(s){var o=Gn(r)?r:RY,a=function(){var u=i.then;i.then=null,Gn(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=u),s(o),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){Bg(this)},t}();Ps(Ty.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-pn,_prom:0,_ps:!1,_rts:1});var Ei=function(t){gY(e,t);function e(r,i){var s;return r===void 0&&(r={}),s=t.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=Qi(r.sortChildren),Ln&&pa(r.parent||Ln,el(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&NY(el(s),r.scrollTrigger),s}var n=e.prototype;return n.to=function(i,s,o){return wv(0,arguments,this),this},n.from=function(i,s,o){return wv(1,arguments,this),this},n.fromTo=function(i,s,o,a){return wv(2,arguments,this),this},n.set=function(i,s,o){return s.duration=0,s.parent=this,bv(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new or(i,s,zs(this,o),1),this},n.call=function(i,s,o){return pa(this,or.delayedCall(0,i,s),o)},n.staggerTo=function(i,s,o,a,c,u,d){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=u,o.onCompleteParams=d,o.parent=this,new or(i,o,zs(this,c)),this},n.staggerFrom=function(i,s,o,a,c,u,d){return o.runBackwards=1,bv(o).immediateRender=Qi(o.immediateRender),this.staggerTo(i,s,o,a,c,u,d)},n.staggerFromTo=function(i,s,o,a,c,u,d,h){return a.startAt=o,bv(a).immediateRender=Qi(a.immediateRender),this.staggerTo(i,s,a,c,u,d,h)},n.render=function(i,s,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,u=this._dur,d=i<=0?0:ar(i),h=this._zTime<0!=i<0&&(this._initted||!u),f,m,v,p,g,y,b,x,w,_,S,T;if(this!==Ln&&d>c&&i>=0&&(d=c),d!==this._tTime||o||h){if(a!==this._time&&u&&(d+=this._time-a,i+=this._time-a),f=d,w=this._start,x=this._ts,y=!x,h&&(u||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(S=this._yoyo,g=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(g*100+i,s,o);if(f=ar(d%g),d===c?(p=this._repeat,f=u):(_=ar(d/g),p=~~_,p&&p===_&&(f=u,p--),f>u&&(f=u)),_=Om(this._tTime,g),!a&&this._tTime&&_!==p&&this._tTime-_*g-this._dur<=0&&(_=p),S&&p&1&&(f=u-f,T=1),p!==_&&!this._lock){var M=S&&_&1,A=M===(S&&p&1);if(p<_&&(M=!M),a=M?0:d%u?u:d,this._lock=1,this.render(a||(T?0:ar(p*g)),s,!u)._lock=0,this._tTime=d,!s&&this.parent&&ws(this,"onRepeat"),this.vars.repeatRefresh&&!T&&(this.invalidate()._lock=1),a&&a!==this._time||y!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,c=this._tDur,A&&(this._lock=2,a=M?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!T&&this.invalidate()),this._lock=0,!this._ts&&!y)return this;qY(this,T)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(b=N1e(this,ar(a),ar(f)),b&&(d-=f-(f=b._start))),this._tTime=d,this._time=f,this._act=!x,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&d&&!s&&!_&&(ws(this,"onStart"),this._tTime!==d))return this;if(f>=a&&i>=0)for(m=this._first;m;){if(v=m._next,(m._act||f>=m._start)&&m._ts&&b!==m){if(m.parent!==this)return this.render(i,s,o);if(m.render(m._ts>0?(f-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(f-m._start)*m._ts,s,o),f!==this._time||!this._ts&&!y){b=0,v&&(d+=this._zTime=-pn);break}}m=v}else{m=this._last;for(var C=i<0?i:f;m;){if(v=m._prev,(m._act||C<=m._end)&&m._ts&&b!==m){if(m.parent!==this)return this.render(i,s,o);if(m.render(m._ts>0?(C-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(C-m._start)*m._ts,s,o||$r&&uO(m)),f!==this._time||!this._ts&&!y){b=0,v&&(d+=this._zTime=C?-pn:pn);break}}m=v}}if(b&&!s&&(this.pause(),b.render(f>=a?0:-pn)._zTime=f>=a?1:-1,this._ts))return this._start=w,BS(this),this.render(i,s,o);this._onUpdate&&!s&&ws(this,"onUpdate",!0),(d===c&&this._tTime>=this.totalDuration()||!d&&a)&&(w===this._start||Math.abs(x)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(d===c&&this._ts>0||!d&&this._ts<0)&&Jc(this,1),!s&&!(i<0&&!a)&&(d||a||!c)&&(ws(this,d===c&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(d<c&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(i,s){var o=this;if(Cl(s)||(s=zs(this,s,i)),!(i instanceof Ty)){if(li(i))return i.forEach(function(a){return o.add(a,s)}),this;if(kr(i))return this.addLabel(i,s);if(Gn(i))i=or.delayedCall(0,i);else return this}return this!==i?pa(this,i,s):this},n.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-Js);for(var c=[],u=this._first;u;)u._start>=a&&(u instanceof or?s&&c.push(u):(o&&c.push(u),i&&c.push.apply(c,u.getChildren(!0,s,o)))),u=u._next;return c},n.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},n.remove=function(i){return kr(i)?this.removeLabel(i):Gn(i)?this.killTweensOf(i):(i.parent===this&&US(this,i),i===this._recent&&(this._recent=this._last),Ad(this))},n.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ar(vs.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},n.addLabel=function(i,s){return this.labels[i]=zs(this,s),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,s,o){var a=or.delayedCall(0,s||_y,o);return a.data="isPause",this._hasPause=1,pa(this,a,zs(this,i))},n.removePause=function(i){var s=this._first;for(i=zs(this,i);s;)s._start===i&&s.data==="isPause"&&Jc(s),s=s._next},n.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),c=a.length;c--;)bc!==a[c]&&a[c].kill(i,s);return this},n.getTweensOf=function(i,s){for(var o=[],a=eo(i),c=this._first,u=Cl(s),d;c;)c instanceof or?T1e(c._targets,a)&&(u?(!bc||c._initted&&c._ts)&&c.globalTime(0)<=s&&c.globalTime(c.totalDuration())>s:!s||c.isActive())&&o.push(c):(d=c.getTweensOf(a,s)).length&&o.push.apply(o,d),c=c._next;return o},n.tweenTo=function(i,s){s=s||{};var o=this,a=zs(o,i),c=s,u=c.startAt,d=c.onStart,h=c.onStartParams,f=c.immediateRender,m,v=or.to(o,Ps({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale())||pn,onStart:function(){if(o.pause(),!m){var g=s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale());v._dur!==g&&Im(v,g,0,1).render(v._time,!0,!0),m=1}d&&d.apply(v,h||[])}},s));return f?v.render(0):v},n.tweenFromTo=function(i,s,o){return this.tweenTo(s,Ps({startAt:{time:zs(this,i)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),kD(this,zs(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),kD(this,zs(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+pn)},n.shiftChildren=function(i,s,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,u;a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(u in c)c[u]>=o&&(c[u]+=i);return Ad(this)},n.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return t.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Ad(this)},n.totalDuration=function(i){var s=0,o=this,a=o._last,c=Js,u,d,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(h=o.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),d=a._start,d>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,pa(o,a,d-a._delay,1)._lock=0):c=d,d<0&&a._ts&&(s-=d,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=d/o._ts,o._time-=d,o._tTime-=d),o.shiftChildren(-d,!1,-1/0),c=0),a._end>s&&a._ts&&(s=a._end),a=u;Im(o,o===Ln&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(Ln._ts&&(CY(Ln,w1(i,Ln)),TY=vs.frame),vs.frame>=RD){RD+=Es.autoSleep||120;var s=Ln._first;if((!s||!s._ts)&&Es.autoSleep&&vs._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||vs.sleep()}}},e}(Ty);Ps(Ei.prototype,{_lock:0,_hasPause:0,_forcing:0});var Y1e=function(e,n,r,i,s,o,a){var c=new Ji(this._pt,e,n,0,1,tX,null,s),u=0,d=0,h,f,m,v,p,g,y,b;for(c.b=r,c.e=i,r+="",i+="",(y=~i.indexOf("random("))&&(i=Sy(i)),o&&(b=[r,i],o(b,e,n),r=b[0],i=b[1]),f=r.match(vT)||[];h=vT.exec(i);)v=h[0],p=i.substring(u,h.index),m?m=(m+1)%5:p.substr(-5)==="rgba("&&(m=1),v!==f[d++]&&(g=parseFloat(f[d-1])||0,c._pt={_next:c._pt,p:p||d===1?p:",",s:g,c:v.charAt(1)==="="?Gf(g,v)-g:parseFloat(v)-g,m:m&&m<4?Math.round:0},u=vT.lastIndex);return c.c=u<i.length?i.substring(u,i.length):"",c.fp=a,(bY.test(i)||y)&&(c.e=0),this._pt=c,c},dO=function(e,n,r,i,s,o,a,c,u,d){Gn(i)&&(i=i(s||0,e,o));var h=e[n],f=r!=="get"?r:Gn(h)?u?e[n.indexOf("set")||!Gn(e["get"+n.substr(3)])?n:"get"+n.substr(3)](u):e[n]():h,m=Gn(h)?u?J1e:JY:fO,v;if(kr(i)&&(~i.indexOf("random(")&&(i=Sy(i)),i.charAt(1)==="="&&(v=Gf(f,i)+(si(f)||0),(v||v===0)&&(i=v))),!d||f!==i||pR)return!isNaN(f*i)&&i!==""?(v=new Ji(this._pt,e,n,+f||0,i-(f||0),typeof h=="boolean"?t_e:eX,0,m),u&&(v.fp=u),a&&v.modifier(a,this,e),this._pt=v):(!h&&!(n in e)&&oO(n,i),Y1e.call(this,e,n,f,i,m,c||Es.stringFilter,u))}
vendor: 3,101 bytes, line 5503
5503,X1e=function(e,n,r,i,s){if(Gn(e)&&(e=_v(e,s,n,r,i)),!ka(e)||e.style&&e.nodeType||li(e)||yY(e))return kr(e)?_v(e,s,n,r,i):e;var o={},a;for(a in e)o[a]=_v(e[a],s,n,r,i);return o},KY=function(e,n,r,i,s,o){var a,c,u,d;if(fs[e]&&(a=new fs[e]).init(s,a.rawVars?n[e]:X1e(n[e],i,s,o,r),r,i,o)!==!1&&(r._pt=c=new Ji(r._pt,s,e,0,1,a.render,a,0,a.priority),r!==Mf))for(u=r._ptLookup[r._targets.indexOf(s)],d=a._props.length;d--;)u[a._props[d]]=c;return a},bc,pR,hO=function t(e,n,r){var i=e.vars,s=i.ease,o=i.startAt,a=i.immediateRender,c=i.lazy,u=i.onUpdate,d=i.runBackwards,h=i.yoyoEase,f=i.keyframes,m=i.autoRevert,v=e._dur,p=e._startAt,g=e._targets,y=e.parent,b=y&&y.data==="nested"?y.vars.targets:g,x=e._overwrite==="auto"&&!nO,w=e.timeline,_,S,T,M,A,C,R,j,k,P,O,L,F;if(w&&(!f||!s)&&(s="none"),e._ease=Cd(s,Nm.ease),e._yEase=h?GY(Cd(h===!0?s:h,Nm.ease)):0,h&&e._yoyo&&!e._repeat&&(h=e._yEase,e._yEase=e._ease,e._ease=h),e._from=!w&&!!i.runBackwards,!w||f&&!i.stagger){if(j=g[0]?Td(g[0]).harness:0,L=j&&i[j.prop],_=b1(i,aO),p&&(p._zTime<0&&p.progress(1),n<0&&d&&a&&!m?p.render(-1,!0):p.revert(d&&v?dw:S1e),p._lazy=0),o){if(Jc(e._startAt=or.set(g,Ps({data:"isStart",overwrite:!1,parent:y,immediateRender:!0,lazy:!p&&Qi(c),startAt:null,delay:0,onUpdate:u&&function(){return ws(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,n<0&&($r||!a&&!m)&&e._startAt.revert(dw),a&&v&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(d&&v&&!p){if(n&&(a=!1),T=Ps({overwrite:!1,data:"isFromStart",lazy:a&&!p&&Qi(c),immediateRender:a,stagger:0,parent:y},_),L&&(T[j.prop]=L),Jc(e._startAt=or.set(g,T)),e._startAt._dp=0,e._startAt._sat=e,n<0&&($r?e._startAt.revert(dw):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,pn,pn);else if(!n)return}for(e._pt=e._ptCache=0,c=v&&Qi(c)||c&&!v,S=0;S<g.length;S++){if(A=g[S],R=A._gsap||cO(g)[S]._gsap,e._ptLookup[S]=P={},cR[R.id]&&Fc.length&&x1(),O=b===g?S:b.indexOf(A),j&&(k=new j).init(A,L||_,e,O,b)!==!1&&(e._pt=M=new Ji(e._pt,A,k.name,0,1,k.render,k,0,k.priority),k._props.forEach(function(D){P[D]=M}),k.priority&&(C=1)),!j||L)for(T in _)fs[T]&&(k=KY(T,_,e,O,A,b))?k.priority&&(C=1):P[T]=M=dO.call(e,A,T,"get",_[T],O,b,0,i.stringFilter);e._op&&e._op[S]&&e.kill(A,e._op[S]),x&&e._pt&&(bc=e,Ln.killTweensOf(A,P,e.globalTime(n)),F=!e.parent,bc=0),e._pt&&c&&(cR[R.id]=1)}C&&nX(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!F,f&&n<=0&&w.render(Js,!0,!0)},K1e=function(e,n,r,i,s,o,a,c){var u=(e._pt&&e._ptCache||(e._ptCache={}))[n],d,h,f,m;if(!u)for(u=e._ptCache[n]=[],f=e._ptLookup,m=e._targets.length;m--;){if(d=f[m][n],d&&d.d&&d.d._pt)for(d=d.d._pt;d&&d.p!==n&&d.fp!==n;)d=d._next;if(!d)return pR=1,e.vars[n]="+=0",hO(e,a),pR=0,c?wy(n+" not eligible for reset"):1;u.push(d)}for(m=u.length;m--;)h=u[m],d=h._pt||h,d.s=(i||i===0)&&!s?i:d.s+(i||0)+o*d.c,d.c=r-d.s,h.e&&(h.e=Zn(r)+si(h.e)),h.b&&(h.b=d.s+si(h.b))},Q1e=function(e,n){var r=e[0]?Td(e[0]).harness:0,i=r&&r.aliases,s,o,a,c;if(!i)return n;s=km({},n);for(o in i)if(o in s)for(c=i[o].split(","),a=c.length;a--;)s[c[a]]=s[o];return s},Z1e=function(e,n,r,i){var s=n.ease||i||"power1.inOut",o,a;
vendor: 4,252 bytes, line 5503
5503if(li(n))a=r[e]||(r[e]=[]),n.forEach(function(c,u){return a.push({t:u/(n.length-1)*100,v:c,e:s})});else for(o in n)a=r[o]||(r[o]=[]),o==="ease"||a.push({t:parseFloat(e),v:n[o],e:s})},_v=function(e,n,r,i,s){return Gn(e)?e.call(n,r,i,s):kr(e)&&~e.indexOf("random(")?Sy(e):e},QY=lO+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ZY={};Zi(QY+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return ZY[t]=1});var or=function(t){gY(e,t);function e(r,i,s,o){var a;typeof i=="number"&&(s.duration=i,i=s,s=null),a=t.call(this,o?i:bv(i))||this;var c=a.vars,u=c.duration,d=c.delay,h=c.immediateRender,f=c.stagger,m=c.overwrite,v=c.keyframes,p=c.defaults,g=c.scrollTrigger,y=c.yoyoEase,b=i.parent||Ln,x=(li(r)||yY(r)?Cl(r[0]):"length"in i)?[r]:eo(r),w,_,S,T,M,A,C,R;if(a._targets=x.length?cO(x):wy("GSAP target "+r+" not found. https://gsap.com",!Es.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=m,v||f||Dx(u)||Dx(d)){if(i=a.vars,w=a.timeline=new Ei({data:"nested",defaults:p||{},targets:b&&b.data==="nested"?b.vars.targets:x}),w.kill(),w.parent=w._dp=el(a),w._start=0,f||Dx(u)||Dx(d)){if(T=x.length,C=f&&LY(f),ka(f))for(M in f)~QY.indexOf(M)&&(R||(R={}),R[M]=f[M]);for(_=0;_<T;_++)S=b1(i,ZY),S.stagger=0,y&&(S.yoyoEase=y),R&&km(S,R),A=x[_],S.duration=+_v(u,el(a),_,A,x),S.delay=(+_v(d,el(a),_,A,x)||0)-a._delay,!f&&T===1&&S.delay&&(a._delay=d=S.delay,a._start+=d,S.delay=0),w.to(A,S,C?C(_,A,x):0),w._ease=zt.none;w.duration()?u=d=0:a.timeline=0}else if(v){bv(Ps(w.vars.defaults,{ease:"none"})),w._ease=Cd(v.ease||i.ease||"none");var j=0,k,P,O;if(li(v))v.forEach(function(L){return w.to(x,L,">")}),w.duration();else{S={};for(M in v)M==="ease"||M==="easeEach"||Z1e(M,v[M],S,v.easeEach);for(M in S)for(k=S[M].sort(function(L,F){return L.t-F.t}),j=0,_=0;_<k.length;_++)P=k[_],O={ease:P.e,duration:(P.t-(_?k[_-1].t:0))/100*u},O[M]=P.v,w.to(x,O,j),j+=O.duration;w.duration()<u&&w.to({},{duration:u-w.duration()})}}u||a.duration(u=w.duration())}else a.timeline=0;return m===!0&&!nO&&(bc=el(a),Ln.killTweensOf(x),bc=0),pa(b,el(a),s),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(h||!u&&!v&&a._start===ar(b._time)&&Qi(h)&&R1e(el(a))&&b.data!=="nested")&&(a._tTime=-pn,a.render(Math.max(0,-d)||0)),g&&NY(el(a),g),a}var n=e.prototype;return n.render=function(i,s,o){var a=this._time,c=this._tDur,u=this._dur,d=i<0,h=i>c-pn&&!d?c:i<pn?0:i,f,m,v,p,g,y,b,x,w;if(!u)j1e(this,i,s,o);else if(h!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==d||this._lazy){if(f=h,x=this.timeline,this._repeat){if(p=u+this._rDelay,this._repeat<-1&&d)return this.totalTime(p*100+i,s,o);if(f=ar(h%p),h===c?(v=this._repeat,f=u):(g=ar(h/p),v=~~g,v&&v===g?(f=u,v--):f>u&&(f=u)),y=this._yoyo&&v&1,y&&(w=this._yEase,f=u-f),g=Om(this._tTime,p),f===a&&!o&&this._initted&&v===g)return this._tTime=h,this;v!==g&&(x&&this._yEase&&qY(x,y),this.vars.repeatRefresh&&!y&&!this._lock&&f!==p&&this._initted&&(this._lock=o=1,this.render(ar(p*v),!0).invalidate()._lock=0))}if(!this._initted){if(kY(this,d?i:f,o,s,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&v!==g))return this;if(u!==this._dur)return this.render(i,s,o)}if(this._tTime=h,this._time=f,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(w||this._ease)(f/u),this._from&&(this.ratio=b=1-b),!a&&h&&!s&&!g&&(ws(this,"onStart"),this._tTime!==h))return this;for(m=this._pt;m;)m.r(b,m.d),m=m._next;x&&x.render(i<0?i:x._dur*x._ease(f/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(d&&uR(this,i,s,o),ws(this,"onUpdate")),this._repeat&&v!==g&&this.vars.onRepeat&&!s&&this.parent&&ws(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(d&&!this._onUpdate&&uR(this,i,!0,!0),(i||!u)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Jc(this,1),!s&&!(d&&!a)&&(h||a||y)&&(ws(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h<c&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),t.prototype.invalidate.call(this,i)},n.resetTo=function(i,s,o,a,c){Ey||vs.wake(),this._ts||this.play();
vendor: 6,285 bytes, line 5503
5503var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),d;return this._initted||hO(this,u),d=this._ease(u/this._dur),K1e(this,i,s,o,a,d,u,c)?this.resetTo(i,s,o,a,1):(zS(this,0),this.parent||PY(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Bg(this):this.scrollTrigger&&this.scrollTrigger.kill(!!$r),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,bc&&bc.vars.overwrite!==!0)._first||Bg(this),this.parent&&o!==this.timeline.totalDuration()&&Im(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=i?eo(i):a,u=this._ptLookup,d=this._pt,h,f,m,v,p,g,y;if((!s||s==="all")&&C1e(a,c))return s==="all"&&(this._pt=0),Bg(this);for(h=this._op=this._op||[],s!=="all"&&(kr(s)&&(p={},Zi(s,function(b){return p[b]=1}),s=p),s=Q1e(a,s)),y=a.length;y--;)if(~c.indexOf(a[y])){f=u[y],s==="all"?(h[y]=s,v=f,m={}):(m=h[y]=h[y]||{},v=s);for(p in v)g=f&&f[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&US(this,g,"_pt"),delete f[p]),m!=="all"&&(m[p]=1)}return this._initted&&!this._pt&&d&&Bg(this),this},e.to=function(i,s){return new e(i,s,arguments[2])},e.from=function(i,s){return wv(1,arguments)},e.delayedCall=function(i,s,o,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(i,s,o){return wv(2,arguments)},e.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(i,s)},e.killTweensOf=function(i,s,o){return Ln.killTweensOf(i,s,o)},e}(Ty);Ps(or.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Zi("staggerTo,staggerFrom,staggerFromTo",function(t){or[t]=function(){var e=new Ei,n=hR.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var fO=function(e,n,r){return e[n]=r},JY=function(e,n,r){return e[n](r)},J1e=function(e,n,r,i){return e[n](i.fp,r)},e_e=function(e,n,r){return e.setAttribute(n,r)},mO=function(e,n){return Gn(e[n])?JY:rO(e[n])&&e.setAttribute?e_e:fO},eX=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},t_e=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},tX=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},pO=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},n_e=function(e,n,r,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(e,n,r),s=o},r_e=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?US(this,n,"_pt"):n.dep||(r=1),n=i;return!r},i_e=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},nX=function(e){for(var n=e._pt,r,i,s,o;n;){for(r=n._next,i=s;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:o)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:o=n,n=r}e._pt=s},Ji=function(){function t(n,r,i,s,o,a,c,u,d){this.t=r,this.s=s,this.c=o,this.p=i,this.r=a||eX,this.d=c||this,this.set=u||fO,this.pr=d||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=i_e,this.m=r,this.mt=s,this.tween=i},t}();Zi(lO+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return aO[t]=1});Rs.TweenMax=Rs.TweenLite=or;Rs.TimelineLite=Rs.TimelineMax=Ei;Ln=new Ei({sortChildren:!1,defaults:Nm,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Es.stringFilter=WY;var Md=[],fw={},s_e=[],ID=0,o_e=0,_T=function(e){return(fw[e]||s_e).map(function(n){return n()})},gR=function(){var e=Date.now(),n=[];e-ID>2&&(_T("matchMediaInit"),Md.forEach(function(r){var i=r.queries,s=r.conditions,o,a,c,u;for(a in i)o=oa.matchMedia(i[a]).matches,o&&(c=1),o!==s[a]&&(s[a]=o,u=1);u&&(r.revert(),c&&n.push(r))}),_T("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),ID=e,_T("matchMedia"))},rX=function(){function t(n,r){this.selector=r&&fR(r),this.data=[],this._r=[],this.isReverted=!1,this.id=o_e++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,s){Gn(r)&&(s=i,i=r,r=Gn);var o=this,a=function(){var u=Pn,d=o.selector,h;return u&&u!==o&&u.data.push(o),s&&(o.selector=fR(s)),Pn=o,h=i.apply(o,arguments),Gn(h)&&o._r.push(h),Pn=u,o.selector=d,o.isReverted=!1,h};return o.last=a,r===Gn?a(o,function(c){return o.add(null,c)}):r?o[r]=a:a},e.ignore=function(r){var i=Pn;Pn=null,r(this),Pn=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof or&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var s=this;if(r?function(){for(var a=s.getTweens(),c=s.data.length,u;c--;)u=s.data[c],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(d){return a.splice(a.indexOf(d),1)}));for(a.map(function(d){return{g:d._dur||d._delay||d._sat&&!d._sat.vars.immediateRender?d.globalTime(0):-1/0,t:d}}).sort(function(d,h){return h.g-d.g||-1/0}).forEach(function(d){return d.t.revert(r)}),c=s.data.length;c--;)u=s.data[c],u instanceof Ei?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof or)&&u.revert&&u.revert(r);s._r.forEach(function(d){return d(r,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var o=Md.length;o--;)Md[o].id===this.id&&Md.splice(o,1)},e.revert=function(r){this.kill(r||{})},t}(),a_e=function(){function t(n){this.contexts=[],this.scope=n,Pn&&Pn.data.push(this)}var e=t.prototype;return e.add=function(r,i,s){ka(r)||(r={matches:r});var o=new rX(0,s||this.scope),a=o.conditions={},c,u,d;Pn&&!o.selector&&(o.selector=Pn.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=r;for(u in r)u==="all"?d=1:(c=oa.matchMedia(r[u]),c&&(Md.indexOf(o)<0&&Md.push(o),(a[u]=c.matches)&&(d=1),c.addListener?c.addListener(gR):c.addEventListener("change",gR)));return d&&i(o,function(h){return o.add(null,h)}),this},e.revert=function(r){this.kill(r||{})}
vendor: 6,834 bytes, lines 5503-5510
5503,e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t}(),_1={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(i){return $Y(i)})},timeline:function(e){return new Ei(e)},getTweensOf:function(e,n){return Ln.getTweensOf(e,n)},getProperty:function(e,n,r,i){kr(e)&&(e=eo(e)[0]);var s=Td(e||{}).get,o=r?RY:MY;return r==="native"&&(r=""),e&&(n?o((fs[n]&&fs[n].get||s)(e,n,r,i)):function(a,c,u){return o((fs[a]&&fs[a].get||s)(e,a,c,u))})},quickSetter:function(e,n,r){if(e=eo(e),e.length>1){var i=e.map(function(d){return rs.quickSetter(d,n,r)}),s=i.length;return function(d){for(var h=s;h--;)i[h](d)}}e=e[0]||{};var o=fs[n],a=Td(e),c=a.harness&&(a.harness.aliases||{})[n]||n,u=o?function(d){var h=new o;Mf._pt=0,h.init(e,r?d+r:d,Mf,0,[e]),h.render(1,h),Mf._pt&&pO(1,Mf)}:a.set(e,c);return o?u:function(d){return u(e,c,r?d+r:d,a,1)}},quickTo:function(e,n,r){var i,s=rs.to(e,Ps((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),o=function(c,u,d){return s.resetTo(n,c,u,d)};return o.tween=s,o},isTweening:function(e){return Ln.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Cd(e.ease,Nm.ease)),PD(Nm,e||{})},config:function(e){return PD(Es,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,s=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!fs[a]&&!Rs[a]&&wy(n+" effect requires "+a+" plugin.")}),yT[n]=function(a,c,u){return r(eo(a),Ps(c||{},s),u)},o&&(Ei.prototype[n]=function(a,c,u){return this.add(yT[n](a,ka(c)?c:(u=c)&&{},this),u)})},registerEase:function(e,n){zt[e]=Cd(n)},parseEase:function(e,n){return arguments.length?Cd(e,n):zt},getById:function(e){return Ln.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new Ei(e),i,s;for(r.smoothChildTiming=Qi(e.smoothChildTiming),Ln.remove(r),r._dp=0,r._time=r._tTime=Ln._time,i=Ln._first;i;)s=i._next,(n||!(!i._dur&&i instanceof or&&i.vars.onComplete===i._targets[0]))&&pa(r,i,i._start-i._delay),i=s;return pa(Ln,r,0),r},context:function(e,n){return e?new rX(e,n):Pn},matchMedia:function(e){return new a_e(e)},matchMediaRefresh:function(){return Md.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||gR()},addEventListener:function(e,n){var r=fw[e]||(fw[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=fw[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:U1e,wrapYoyo:B1e,distribute:LY,random:FY,snap:DY,normalize:F1e,getUnit:si,clamp:O1e,splitColor:HY,toArray:eo,selector:fR,mapRange:BY,pipe:L1e,unitize:D1e,interpolate:z1e,shuffle:IY},install:SY,effects:yT,ticker:vs,updateRoot:Ei.updateRoot,plugins:fs,globalTimeline:Ln,core:{PropTween:Ji,globals:EY,Tween:or,Timeline:Ei,Animation:Ty,getCache:Td,_removeLinkedListItem:US,reverting:function(){return $r},context:function(e){return e&&Pn&&(Pn.data.push(e),e._ctx=Pn),Pn},suppressOverwrites:function(e){return nO=e}}};Zi("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return _1[t]=or[t]});vs.add(Ei.updateRoot);Mf=_1.to({},{duration:0});var l_e=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},c_e=function(e,n){var r=e._targets,i,s,o;for(i in n)for(s=r.length;s--;)o=e._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=l_e(o,i)),o&&o.modifier&&o.modifier(n[i],e,r[s],i))},ST=function(e,n){return{name:e,headless:1,rawVars:1,init:function(i,s,o){o._onInit=function(a){var c,u;if(kr(s)&&(c={},Zi(s,function(d){return c[d]=1}),s=c),n){c={};for(u in s)c[u]=n(s[u]);s=c}c_e(a,s)}}}},rs=_1.registerPlugin({name:"attr",init:function(e,n,r,i,s){var o,a,c;this.tween=r;for(o in n)c=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(c||0)+"",n[o],i,s,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(e,n){for(var r=n._pt;r;)$r?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},ST("roundProps",mR),ST("modifiers"),ST("snap",DY))||_1;or.version=Ei.version=rs.version="3.13.0";_Y=1;iO()&&Lm();zt.Power0;zt.Power1;zt.Power2;zt.Power3;zt.Power4;zt.Linear;zt.Quad;zt.Cubic;zt.Quart;zt.Quint;zt.Strong;zt.Elastic;zt.Back;zt.SteppedEase;zt.Bounce;zt.Sine;zt.Expo;zt.Circ;/*! 5504 * CSSPlugin 3.13.0 5505 * https://gsap.com 5506 * 5507 * Copyright 2008-2025, GreenSock. All rights reserved. 5508 * Subject to the terms at https://gsap.com/standard-license 5509 * @author: Jack Doyle, [email protected] 5510*/var LD,wc,qf,gO,id,DD,vO,u_e=function(){return typeof window<"u"},Ml={},zu=180/Math.PI,Yf=Math.PI/180,kh=Math.atan2,FD=1e8,yO=/([A-Z])/g,d_e=/(left|right|width|margin|padding|x)/i,h_e=/[\s,\(]\S/,ya={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},vR=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},f_e=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},m_e=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},p_e=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},iX=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},sX=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},g_e=function(e,n,r){return e.style[n]=r},v_e=function(e,n,r){return e.style.setProperty(n,r)},y_e=function(e,n,r){return e._gsap[n]=r},x_e=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},b_e=function(e,n,r,i,s){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(s,o)},w_e=function(e,n,r,i,s){var o=e._gsap;o[n]=r,o.renderTransform(s,o)},Fn="transform",es=Fn+"Origin",__e=function t(e,n){var r=this,i=this.target,s=i.style,o=i._gsap;if(e in Ml&&s){if(this.tfm=this.tfm||{},e!=="transform")e=ya[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=rl(i,a)}):this.tfm[e]=o.x?o[e]:rl(i,e),e===es&&(this.tfm.zOrigin=o.zOrigin);else return ya.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(Fn)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(es,n,"")),e=Fn}(s||n)&&this.props.push(e,n,s[e])},oX=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},S_e=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,s,o;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?n[e[s]](e[s+2]):n[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(yO,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=vO(),(!s||!s.isStart)&&!r[Fn]&&(oX(r),i.zOrigin&&r[es]&&(r[es]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},aX=function(e,n){var r={target:e,props:[],revert:S_e,save:__e};return e._gsap||rs.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.s
vendor: 2,089 bytes, line 5510
5510ave(i)}),r},lX,yR=function(e,n){var r=wc.createElementNS?wc.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):wc.createElement(e);return r&&r.style?r:wc.createElement(e)},to=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(yO,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Dm(n)||n,1)||""},UD="O,Moz,ms,Ms,Webkit".split(","),Dm=function(e,n,r){var i=n||id,s=i.style,o=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(UD[o]+e in s););return o<0?null:(o===3?"ms":o>=0?UD[o]:"")+e},xR=function(){u_e()&&window.document&&(LD=window,wc=LD.document,qf=wc.documentElement,id=yR("div")||{style:{}},yR("div"),Fn=Dm(Fn),es=Fn+"Origin",id.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",lX=!!Dm("perspective"),vO=rs.core.reverting,gO=1)},BD=function(e){var n=e.ownerSVGElement,r=yR("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),s;i.style.display="block",r.appendChild(i),qf.appendChild(r);try{s=i.getBBox()}catch{}return r.removeChild(i),qf.removeChild(r),s},zD=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},cX=function(e){var n,r;try{n=e.getBBox()}catch{n=BD(e),r=1}return n&&(n.width||n.height)||r||(n=BD(e)),n&&!n.width&&!n.x&&!n.y?{x:+zD(e,["x","cx","x1"])||0,y:+zD(e,["y","cy","y1"])||0,width:0,height:0}:n},uX=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&cX(e))},qd=function(e,n){if(n){var r=e.style,i;n in Ml&&n!==es&&(n=Fn),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(yO,"-$1").toLowerCase())):r.removeAttribute(n)}},_c=function(e,n,r,i,s,o){var a=new Ji(e._pt,n,r,0,1,o?sX:iX);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},$D={deg:1,rad:1,turn:1},E_e={grid:1,flex:1},eu=function t(e,n,r,i){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",a=id.style,c=d_e.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),h=100,f=i==="px",m=i==="
5510%",v,p,g,y;if(i===o||!s||$D[i]||$D[o])return s;if(o!=="px"&&!f&&(s=t(e,n,r,"px")),y=e.getCTM&&uX(e),(m||o==="%")&&(Ml[n]||~n.indexOf("adius")))return v=y?e.getBBox()[c?"width":"height"]:e[d],Zn(m?s/v*h:s/100*v);if(a[c?"width":"height"]=h+(f?o:i),p=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,y&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===wc||!p.appendChild)&&(p=wc.body),g=p._gsap,g&&m&&g.width&&c&&g.time===vs.time&&!g.uncache)return Zn(s/g.width*h);if(m&&(n==="height"||n==="width")){var b=e.style[n];e.style[n]=h+i,v=e[d],b?e.style[n]=b:qd(e,n)}else(m||o==="%")&&!E_e[to(p,"display")]&&(a.position=to(e,"position")),p===e&&(a.position="static"),p.appendChild(id),v=id[d],p.removeChild(id),a.position="absolute";return c&&m&&(g=Td(p),g.time=vs.time,g.width=p[d]),Zn(f?v*s/h:v&&s?h/v*s:0)},rl=function(e,n,r,i){var s;return gO||xR(),n in ya&&n!=="transform"&&(n=ya[n],~n.indexOf(",")&&(n=n.split(",")[0])),Ml[n]&&n!=="transform"?(s=Cy(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:E1(to(e,es))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=S1[n]&&S1[n](e,n,r)||to(e,n)||AY(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?eu(e,n,s,r)+r:s},T_e=function(e,n,r,i){if(!r||r==="none"){var s=Dm(n,e,1),o=s&&to(e,s,1);o&&o!==r?(n=s,r=o):n==="borderColor"&&(r=to(e,"borderTopColor"))}var a=new Ji(this._pt,e.style,n,0,1,tX),c=0,u=0,d,h,f,m,v,p,g,y,b,x,w,_;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=to(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(p=e.style[n],e.style[n]=i,i=to(e,n)||i,p?e.style[n]=p:qd(e,n)),d=[r,i],WY(d),r=d[0],i=d[1],f=r.match(Cf)||[],_=i.match(Cf)||[],_.length){for(;h=Cf.exec(i);)g=h[0],b=i.substring(c,h.index),v?v=(v+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(v=1),g!==(p=f[u++]||"")&&(m=parseFloat(p)||0,w=p.substr((m+"").length),g.charAt(1)==="="&&(g=Gf(m,g)+w),y=parseFloat(g),x=g.substr((y+"").length),c=Cf.lastIndex-x.length,x||(x=x||Es.units[n]||w,c===i.length&&(i+=x,a.e+=x)),w!==x&&(m=eu(e,n,p,x)||0),a._pt={_next:a._pt,p:b||u===1?b:",",s:m,c:y-m,m:v&&v<4||n==="zIndex"?Math.round:0});a.c=c<i.length?i.substring(c,i.length):""}else a.r=n==="display"&&i==="none"?sX:iX;return bY.test(i)&&(a.e=0),this._pt=a,a},HD={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},A_e=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=HD[r]||r,n[1]=HD[i]||i,n.join(" ")},C_e=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,s=n.u,o=r._gsap,a,c,u;if(s==="all"||s===!0)i.cssText="",c=1;else for(s=s.split(","),u=s.length;--u>-1;)a=s[u],Ml[a]&&(c=1,a=a==="transformOrigin"?es:Fn),qd(r,a);c&&(qd(r,Fn),o&&(o.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Cy(r,1),o.uncache=1,oX(i)))}},S1={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var o=e._pt=new Ji(e._pt,n,r,0,0,C_e);return o.u=i,o.pr=-10,o.tween=s,e._props.push(r),1}}},Ay=[1,0,0,1,0,0],dX={},hX=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},VD=function(e){var n=to(e,Fn);return hX(n)?Ay:n.substr(7).match(xY).map(Zn)},xO=function(e,n){var r=e._gsap||Td(e),i=e.style,s=VD(e),o,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,s=[c.a,c.b,c.c,c.d,c.e,c.f],s.join(",")==="1,0,0,1,0,0"?Ay:s):(s===Ay&&!e.offsetParent&&e!==qf&&!r.svg&&(c=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,qf.appendChild(e)),s=VD(e),c?i.display=c:qd(e,"display"),u&&(a?o.insertBefore(e,a):o?o.appendChild(e):qf.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},bR=function(e,n,r,i,s,o){var a=e._gsap,c=s||xO(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,h=a.xOffset||0,f=a.yOffset||0,m=c[0],v=c[1],p=c[2],g=c[3],y=c[4],b=c[5],x=n.split(" "),w=parseFloat(x[0])||0,_=parseFloat(x[1])||0,S,T,M,A;r?c!==Ay&&(T=m*g-v*p)&&(M=w*(g/T)+_*(-p/T)+(p*b-g*y)/T,A=w*(-v/T)+_*(m/T)-(m*b-v*y)/T,w=M,_=A):(S=cX(e),w=S.x+(~x[0].indexOf("%")?w/100*S.width:w),_=S.y+(~(x[1]||x[0]).indexOf("%")?_/100*S.height:_)),i||i!==!1&&a.smooth?(y=w-u,b=_-d,a.xOffset=h+(y*m+b*p)-y,a.yOffset=f+(y*v+b*g)-b):a.xOffset=a.yOffset=0,a.xOrigin=w,a.yOrigin=_,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[es]="0px 0px",o&&(_c(o,a,"xOrigin",u,w),_c(o,a,"yOrigin",d,_),_c(o,a,"xOffset",h,a.xOffset),_c(o,a,"yOffset",f,a.yOffset)),e.setAttribute("data-svg-origin",w+" "+_)},Cy=function(e,n){var r=e._gsap||new XY(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,s=r.scaleX<0,o="px",a="deg",c=getComputedStyle(e),u=to(e,es)||"0",d,h,f,m,v,p,g,y,b,x,w,_,S,T,M,A,C,R,j,k,P,O,L,F,D,I,N,G,q,W,Y,te;return d=h=f=p=g=y=b=x=w=0,m=v=1,r.svg=!!(e.getCTM&&uX(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[Fn]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Fn]!=="none"?c[Fn]:"")),i.scale=i.rotate=i.translate="none"),T=xO(e,r.svg),r.svg&&(r.uncache?(D=e.getBBox(),u=r.xOrigin-D.x+"px "+(r.yOrigin-D.y)+"px",F=""):F=!n&&e.getAttribute("data-svg-origin"),bR(e,F||u,!!F||r.originIsAbsolute,r.smooth!==!1,T)),_=r.xOrigin||0,S=r.yOrigin||0,T!==Ay&&(R=T[0],j=T[1],k=T[2],P=T[3],d=O=T[4],h=L=T[5],T.length===6?(m=Math.sqrt(R*R+j*j),v=Math.sqrt(P*P+k*k),p=R||j?kh(j,R)*zu:0,b=k||P?kh(k,P)*zu+p:0,b&&(v*=Math.abs(Math.cos(b*Yf))),r.svg&&(d-=_-(_*R+S*k),h-=S-(_*j+S*P))):(te=T[6],W=T[7],N=T[8],G=T[9],q=T[10],Y=T[11],d=T[12],h=T[13],f=T[14],M=kh(te,q),g=M*zu,M&&(A=Math.cos(-M),C=Math.sin(-M),F=O*A+N*C,D=L*A+G*C,I=te*A+q*C,N=O*-C+N*A,G=L*-C+G*A,q=te*-C+q*A,Y=W*-C+Y*A,O=F,L=D,te=I),M=kh(-k,q),y=M*zu,M&&(A=Math.cos(-M),C=Math.sin(-M),F=R*A-N*C,D=j*A-G*C,I=k*A-q*C,Y=P*C+Y*A,R=F,j=D,k=I),M=kh(j,R),p=M*zu,M&&(A=Math.cos(M),C=Math.sin(M),F=R*A+j*C,D=O*A+L*C,j=j*A-R*C,L=L*A-O*C,R=F,O=D),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,y=180-y),m=Zn(Math.sqrt(R*R+j*j+k*k)),v=Zn(Math.sqrt(L*L+te*te)),M=kh(O,L),b=Math.abs(M)>2e-4?M*zu:0,w=Y?1/(Y<0?-Y:Y):0),r.svg&&(F=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!hX(to(e,Fn)),F&&e.setAttribute("transform",F))),Math.abs(b)>90&&Math.abs(b)<270&&(s?(m*=-1,b+=p<=0?180:-180,p+=p<=0?180:-180):(v*=-1,b+=b<=0?180:-180)),n=n||r.uncache,r.x=d-((r.xPercent=d&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.
vendor: 1,874 bytes, line 5510
5510y=h-((r.yPercent=h&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=f+o,r.scaleX=Zn(m),r.scaleY=Zn(v),r.rotation=Zn(p)+a,r.rotationX=Zn(g)+a,r.rotationY=Zn(y)+a,r.skewX=b+a,r.skewY=x+a,r.transformPerspective=w+o,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[es]=E1(u)),r.xOffset=r.yOffset=0,r.force3D=Es.force3D,r.renderTransform=r.svg?R_e:lX?fX:M_e,r.uncache=0,r},E1=function(e){return(e=e.split(" "))[0]+" "+e[1]},ET=function(e,n,r){var i=si(n);return Zn(parseFloat(n)+parseFloat(eu(e,"x",r+"px",i)))+i},M_e=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,fX(e,n)},Cu="0deg",lg="0px",Mu=") ",fX=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,c=r.z,u=r.rotation,d=r.rotationY,h=r.rotationX,f=r.skewX,m=r.skewY,v=r.scaleX,p=r.scaleY,g=r.transformPerspective,y=r.force3D,b=r.target,x=r.zOrigin,w="",_=y==="auto"&&e&&e!==1||y===!0;if(x&&(h!==Cu||d!==Cu)){var S=parseFloat(d)*Yf,T=Math.sin(S),M=Math.cos(S),A;S=parseFloat(h)*Yf,A=Math.cos(S),o=ET(b,o,T*A*-x),a=ET(b,a,-Math.sin(S)*-x),c=ET(b,c,M*A*-x+x)}g!==lg&&(w+="perspective("+g+Mu),(i||s)&&(w+="translate("+i+"%, "+s+"%) "),(_||o!==lg||a!==lg||c!==lg)&&(w+=c!==lg||_?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Mu),u!==Cu&&(w+="rotate("+u+Mu),d!==Cu&&(w+="rotateY("+d+Mu),h!==Cu&&(w+="rotateX("+h+Mu),(f!==Cu||m!==Cu)&&(w+="skew("+f+", "+m+Mu),(v!==1||p!==1)&&(w+="scale("+v+", "+p+Mu),b.style[Fn]=w||"translate(0, 0)"},R_e=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,c=r.rotation,u=r.skewX,d=r.skewY,h=r.scaleX,f=r.scaleY,m=r.target,v=r.xOrigin,p=r.yOrigin,g=r.xOffset,y=r.yOffset,b=r.forceCSS,x=parseFloat(o),w=parseFloat(a),_,S,T,M,A;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=Yf,u*=Yf,_=Math.cos(c)*h,S=Math.sin(c)*h,T=
vendor: 21,209 bytes, lines 5510-5524
5510Math.sin(c-u)*-f,M=Math.cos(c-u)*f,u&&(d*=Yf,A=Math.tan(u-d),A=Math.sqrt(1+A*A),T*=A,M*=A,d&&(A=Math.tan(d),A=Math.sqrt(1+A*A),_*=A,S*=A)),_=Zn(_),S=Zn(S),T=Zn(T),M=Zn(M)):(_=h,M=f,S=T=0),(x&&!~(o+"").indexOf("px")||w&&!~(a+"").indexOf("px"))&&(x=eu(m,"x",o,"px"),w=eu(m,"y",a,"px")),(v||p||g||y)&&(x=Zn(x+v-(v*_+p*T)+g),w=Zn(w+p-(v*S+p*M)+y)),(i||s)&&(A=m.getBBox(),x=Zn(x+i/100*A.width),w=Zn(w+s/100*A.height)),A="matrix("+_+","+S+","+T+","+M+","+x+","+w+")",m.setAttribute("transform",A),b&&(m.style[Fn]=A)},P_e=function(e,n,r,i,s){var o=360,a=kr(s),c=parseFloat(s)*(a&&~s.indexOf("rad")?zu:1),u=c-i,d=i+u+"deg",h,f;return a&&(h=s.split("_")[1],h==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),h==="cw"&&u<0?u=(u+o*FD)%o-~~(u/o)*o:h==="ccw"&&u>0&&(u=(u-o*FD)%o-~~(u/o)*o)),e._pt=f=new Ji(e._pt,n,r,i,u,f_e),f.e=d,f.u="deg",e._props.push(r),f},WD=function(e,n){for(var r in n)e[r]=n[r];return e},j_e=function(e,n,r){var i=WD({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,c,u,d,h,f,m,v;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),o[Fn]=n,a=Cy(r,1),qd(r,Fn),r.setAttribute("transform",u)):(u=getComputedStyle(r)[Fn],o[Fn]=n,a=Cy(r,1),o[Fn]=u);for(c in Ml)u=i[c],d=a[c],u!==d&&s.indexOf(c)<0&&(m=si(u),v=si(d),h=m!==v?eu(r,c,u,v):parseFloat(u),f=parseFloat(d),e._pt=new Ji(e._pt,a,c,h,f-h,vR),e._pt.u=v||0,e._props.push(c));WD(a,i)};Zi("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",s="Left",o=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(a){return e<2?t+a:"border"+a+t});S1[e>1?"border"+t:t]=function(a,c,u,d,h){var f,m;if(arguments.length<4)return f=o.map(function(v){return rl(a,v,u)}),m=f.join(" "),m.split(f[0]).length===5?f[0]:m;f=(d+"").split(" "),m={},o.forEach(function(v,p){return m[v]=f[p]=f[p]||f[(p-1)/2|0]}),a.init(c,m,h)}});var mX={name:"css",register:xR,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,s){var o=this._props,a=e.style,c=r.vars.startAt,u,d,h,f,m,v,p,g,y,b,x,w,_,S,T,M;gO||xR(),this.styles=this.styles||aX(e),M=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(d=n[p],!(fs[p]&&KY(p,n,r,i,e,s)))){if(m=typeof d,v=S1[p],m==="function"&&(d=d.call(r,i,e,s),m=typeof d),m==="string"&&~d.indexOf("random(")&&(d=Sy(d)),v)v(this,e,p,d,r)&&(T=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),d+="",Uc.lastIndex=0,Uc.test(u)||(g=si(u),y=si(d)),y?g!==y&&(u=eu(e,p,u,y)+y):g&&(d+=g),this.add(a,"setProperty",u,d,i,s,0,0,p),o.push(p),M.push(p,0,a[p]);else if(m!=="undefined"){if(c&&p in c?(u=typeof c[p]=="function"?c[p].call(r,i,e,s):c[p],kr(u)&&~u.indexOf("random(")&&(u=Sy(u)),si(u+"")||u==="auto"||(u+=Es.units[p]||si(rl(e,p))||""),(u+"").charAt(1)==="="&&(u=rl(e,p))):u=rl(e,p),f=parseFloat(u),b=m==="string"&&d.charAt(1)==="="&&d.substr(0,2),b&&(d=d.substr(2)),h=parseFloat(d),p in ya&&(p==="autoAlpha"&&(f===1&&rl(e,"visibility")==="hidden"&&h&&(f=0),M.push("visibility",0,a.visibility),_c(this,a,"visibility",f?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=ya[p],~p.indexOf(",")&&(p=p.split(",")[0]))),x=p in Ml,x){if(this.styles.save(p),m==="string"&&d.substring(0,6)==="var(--"&&(d=to(e,d.substring(4,d.indexOf(")"))),h=parseFloat(d)),w||(_=e._gsap,_.renderTransform&&!n.parseTransform||Cy(e,n.parseTransform),S=n.smoothOrigin!==!1&&_.smooth,w=this._pt=new Ji(this._pt,a,Fn,0,1,_.renderTransform,_,0,-1),w.dep=1),p==="scale")this._pt=new Ji(this._pt,_,"scaleY",_.scaleY,(b?Gf(_.scaleY,b+h):h)-_.scaleY||0,vR),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){M.push(es,0,a[es]),d=A_e(d),_.svg?bR(e,d,0,S,0,this):(y=parseFloat(d.split(" ")[2])||0,y!==_.zOrigin&&_c(this,_,"zOrigin",_.zOrigin,y),_c(this,a,p,E1(u),E1(d)));continue}else if(p==="svgOrigin"){bR(e,d,1,S,0,this);continue}else if(p in dX){P_e(this,_,p,f,b?Gf(f,b+d):d);continue}else if(p==="smoothOrigin"){_c(this,_,"smooth",_.smooth,d);continue}else if(p==="force3D"){_[p]=d;continue}else if(p==="transform"){j_e(this,d,e);continue}}else p in a||(p=Dm(p)||p);if(x||(h||h===0)&&(f||f===0)&&!h_e.test(d)&&p in a)g=(u+"").substr((f+"").length),h||(h=0),y=si(d)||(p in Es.units?Es.units[p]:g),g!==y&&(f=eu(e,p,u,y)),this._pt=new Ji(this._pt,x?_:a,p,f,(b?Gf(f,b+h):h)-f,!x&&(y==="px"||p==="zIndex")&&n.autoRound!==!1?p_e:vR),this._pt.u=y||0,g!==y&&y!=="%"&&(this._pt.b=u,this._pt.r=m_e);else if(p in a)T_e.call(this,e,p,u,b?b+d:d);else if(p in e)this.add(e,p,u||e[p],b?b+d:d,i,s);else if(p!=="parseTransform"){oO(p,d);continue}x||(p in a?M.push(p,0,a[p]):typeof e[p]=="function"?M.push(p,2,e[p]()):M.push(p,1,u||e[p])),o.push(p)}}T&&nX(this)},render:function(e,n){if(n.tween._time||!vO())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:rl,aliases:ya,getSetter:function(e,n,r){var i=ya[n];return i&&i.indexOf(",")<0&&(n=i),n in Ml&&n!==es&&(e._gsap.x||rl(e,"x"))?r&&DD===r?n==="scale"?x_e:y_e:(DD=r||{})&&(n==="scale"?b_e:w_e):e.style&&!rO(e.style[n])?g_e:~n.indexOf("-")?v_e:mO(e,n)},core:{_removeProperty:qd,_getMatrix:xO}};rs.utils.checkPrefix=Dm;rs.core.getStyleSaver=aX;(function(t,e,n,r){var i=Zi(t+","+e+","+n,function(s){Ml[s]=1});Zi(e,function(s){Es.units[s]="deg",dX[s]=1}),ya[i[13]]=t+","+e,Zi(r,function(s){var o=s.split(":");ya[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Zi("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Es.units[t]="px"});rs.registerPlugin(mX);var mn=rs.registerPlugin(mX)||rs;mn.core.Tween;function N_e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k_e(t,e,n){return e&&N_e(t.prototype,e),t}/*! 5511 * Observer 3.13.0 5512 * https://gsap.com 5513 * 5514 * @license Copyright 2008-2025, GreenSock. All rights reserved. 5515 * Subject to the terms at https://gsap.com/standard-license 5516 * @author: Jack Doyle, [email protected] 5517*/var Ur,mw,ys,Sc,Ec,Xf,pX,$u,Sv,gX,cl,To,vX,yX=function(){return Ur||typeof window<"u"&&(Ur=window.gsap)&&Ur.registerPlugin&&Ur},xX=1,Rf=[],jt=[],Ma=[],Ev=Date.now,wR=function(e,n){return n},O_e=function(){var e=Sv.core,n=e.bridge||{},r=e._scrollers,i=e._proxies;r.push.apply(r,jt),i.push.apply(i,Ma),jt=r,Ma=i,wR=function(o,a){return n[o](a)}},Bc=function(e,n){return~Ma.indexOf(e)&&Ma[Ma.indexOf(e)+1][n]},Tv=function(e){return!!~gX.indexOf(e)},fi=function(e,n,r,i,s){return e.addEventListener(n,r,{passive:i!==!1,capture:!!s})},di=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},Fx="scrollLeft",Ux="scrollTop",_R=function(){return cl&&cl.isPressed||jt.cache++},T1=function(e,n){var r=function i(s){if(s||s===0){xX&&(ys.history.scrollRestoration="manual");var o=cl&&cl.isPressed;s=i.v=Math.round(s)||(cl&&cl.iOS?1:0),e(s),i.cacheID=jt.cache,o&&wR("ss",s)}else(n||jt.cache!==i.cacheID||wR("ref"))&&(i.cacheID=jt.cache,i.v=e());return i.v+i.offset};return r.offset=0,e&&r},Ti={s:Fx,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:T1(function(t){return arguments.length?ys.scrollTo(t,pr.sc()):ys.pageXOffset||Sc[Fx]||Ec[Fx]||Xf[Fx]||0})},pr={s:Ux,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ti,sc:T1(function(t){return arguments.length?ys.scrollTo(Ti.sc(),t):ys.pageYOffset||Sc[Ux]||Ec[Ux]||Xf[Ux]||0})},Ui=function(e,n){return(n&&n._ctx&&n._ctx.selector||Ur.utils.toArray)(e)[0]||(typeof e=="string"&&Ur.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},I_e=function(e,n){for(var r=n.length;r--;)if(n[r]===e||n[r].contains(e))return!0;return!1},tu=function(e,n){var r=n.s,i=n.sc;Tv(e)&&(e=Sc.scrollingElement||Ec);var s=jt.indexOf(e),o=i===pr.sc?1:2;!~s&&(s=jt.push(e)-1),jt[s+o]||fi(e,"scroll",_R);var a=jt[s+o],c=a||(jt[s+o]=T1(Bc(e,r),!0)||(Tv(e)?i:T1(function(u){return arguments.length?e[r]=u:e[r]})));return c.target=e,a||(c.smooth=Ur.getProperty(e,"scrollBehavior")==="smooth"),c},SR=function(e,n,r){var i=e,s=e,o=Ev(),a=o,c=n||50,u=Math.max(500,c*3),d=function(v,p){var g=Ev();p||g-o>c?(s=i,i=v,a=o,o=g):r?i+=v:i=s+(v-s)/(g-a)*(o-a)},h=function(){s=i=r?0:i,a=o=0},f=function(v){var p=a,g=s,y=Ev();return(v||v===0)&&v!==i&&d(v),o===a||y-a>u?0:(i+(r?g:-g))/((r?y:o)-p)*1e3};return{update:d,reset:h,getVelocity:f}},cg=function(e,n){return n&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},GD=function(e){var n=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(n)>=Math.abs(r)?n:r},bX=function(){Sv=Ur.core.globals().ScrollTrigger,Sv&&Sv.core&&O_e()},wX=function(e){return Ur=e||yX(),!mw&&Ur&&typeof document<"u"&&document.body&&(ys=window,Sc=document,Ec=Sc.documentElement,Xf=Sc.body,gX=[ys,Sc,Ec,Xf],Ur.utils.clamp,vX=Ur.core.context||function(){},$u="onpointerenter"in Xf?"pointer":"mouse",pX=er.isTouch=ys.matchMedia&&ys.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ys||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,To=er.eventTypes=("ontouchstart"in Ec?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ec?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return xX=0},500),bX(),mw=1),mw};Ti.op=pr;jt.cache=0;var er=function(){function t(n){this.init(n)}var e=t.prototype;return e.init=function(r){mw||wX(Ur)||console.warn("Please gsap.registerPlugin(Observer)"),Sv||bX();var i=r.tolerance,s=r.dragMinimum,o=r.type,a=r.target,c=r.lineHeight,u=r.debounce,d=r.preventDefault,h=r.onStop,f=r.onStopDelay,m=r.ignore,v=r.wheelSpeed,p=r.event,g=r.onDragStart,y=r.onDragEnd,b=r.onDrag,x=r.onPress,w=r.onRelease,_=r.onRight,S=r.onLeft,T=r.onUp,M=r.onDown,A=r.onChangeX,C=r.onChangeY,R=r.onChange,j=r.onToggleX,k=r.onToggleY,P=r.onHover,O=r.onHoverEnd,L=r.onMove,F=r.ignoreCheck,D=r.isNormalizer,I=r.onGestureStart,N=r.onGestureEnd,G=r.onWheel,q=r.onEnable,W=r.onDisable,Y=r.onClick,te=r.scrollSpeed,Q=r.capture,X=r.allowClicks,ae=r.lockAxis,J=r.onLockAxis;this.target=a=Ui(a)||Ec,this.vars=r,m&&(m=Ur.utils.toArray(m)),i=i||1e-9,s=s||0,v=v||1,te=te||1,o=o||"wheel,touch,pointer",u=u!==!1,c||(c=parseFloat(ys.getComputedStyle(Xf).lineHeight)||22);var ue,de,H,_e,he,xe,we,ne=this,Pe=0,$=0,B=r.passive||!d&&r.passive!==!1,re=tu(a,Ti),pe=tu(a,pr),ge=re(),ye=pe(),je=~o.indexOf("touch")&&!~o.indexOf("pointer")&&To[0]==="pointerdown",be=Tv(a),Ae=a.ownerDocument||Sc,Qe=[0,0,0],at=[0,0,0],oe=0,rt=function(){return oe=Ev()},qe=function(Fe,Ye){return(ne.event=Fe)&&m&&I_e(Fe.target,m)||Ye&&je&&Fe.pointerType!=="touch"||F&&F(Fe,Ye)},We=function(){ne._vx.reset(),ne._vy.reset(),de.pause(),h&&h(ne)},ke=function(){var Fe=ne.deltaX=GD(Qe),Ye=ne.deltaY=GD(at),Te=Math.abs(Fe)>=i,Xe=Math.abs(Ye)>=i;R&&(Te||Xe)&&R(ne,Fe,Ye,Qe,at),Te&&(_&&ne.deltaX>0&&_(ne),S&&ne.deltaX<0&&S(ne),A&&A(ne),j&&ne.deltaX<0!=Pe<0&&j(ne),Pe=ne.deltaX,Qe[0]=Qe[1]=Qe[2]=0),Xe&&(M&&ne.deltaY>0&&M(ne),T&&ne.deltaY<0&&T(ne),C&&C(ne),k&&ne.deltaY<0!=$<0&&k(ne),$=ne.deltaY,at[0]=at[1]=at[2]=0),(_e||H)&&(L&&L(ne),H&&(g&&H===1&&g(ne),b&&b(ne),H=0),_e=!1),xe&&!(xe=!1)&&J&&J(ne),he&&(G(ne),he=!1),ue=0},Oe=function(Fe,Ye,Te){Qe[Te]+=Fe,at[Te]+=Ye,ne._vx.update(Fe),ne._vy.update(Ye),u?ue||(ue=requestAnimationFrame(ke)):ke()},it=function(Fe,Ye){ae&&!we&&(ne.axis=we=Math.abs(Fe)>Math.abs(Ye)?"x":"y",xe=!0),we!=="y"&&(Qe[2]+=Fe,ne._vx.update(Fe,!0)),we!=="x"&&(at[2]+=Ye,ne._vy.update(Ye,!0)),u?ue||(ue=requestAnimationFrame(ke)):ke()},vt=function(Fe){if(!qe(Fe,1)){Fe=cg(Fe,d);var Ye=Fe.clientX,Te=Fe.clientY,Xe=Ye-ne.x,Ze=Te-ne.y,ct=ne.isDragging;ne.x=Ye,ne.y=Te,(ct||(Xe||Ze)&&(Math.abs(ne.startX-Ye)>=s||Math.abs(ne.startY-Te)>=s))&&(H=ct?2:1,ct||(ne.isDragging=!0),it(Xe,Ze))}},Dt=ne.onPress=function(Ve){qe(Ve,1)||Ve&&Ve.button||(ne.axis=we=null,de.pause(),ne.isPressed=!0,Ve=cg(Ve),Pe=$=0,ne.startX=ne.x=Ve.clientX,ne.startY=ne.y=Ve.clientY,ne._vx.reset(),ne._vy.reset(),fi(D?a:Ae,To[1],vt,B,!0),ne.deltaX=ne.deltaY=0,x&&x(ne))},Ie=ne.onRelease=function(Ve){if(!qe(Ve,1)){di(D?a:Ae,To[1],vt,!0);var Fe=!isNaN(ne.y-ne.startY),Ye=ne.isDragging,Te=Ye&&(Math.abs(ne.x-ne.startX)>3||Math.abs(ne.y-ne.startY)>3),Xe=cg(Ve);!Te&&Fe&&(ne._vx.reset(),ne._vy.reset(),d&&X&&Ur.delayedCall(.08,function(){if(Ev()-oe>300&&!Ve.defaultPrevented){if(Ve.target.click)Ve.target.click();else if(Ae.createEvent){var Ze=Ae.createEvent("MouseEvents");Ze.initMouseEvent("click",!0,!0,ys,1,Xe.screenX,Xe.screenY,Xe.clientX,Xe.clientY,!1,!1,!1,!1,0,null),Ve.target.dispatchEvent(Ze)}}})),ne.isDragging=ne.isGesturing=ne.isPressed=!1,h&&Ye&&!D&&de.restart(!0),H&&ke(),y&&Ye&&y(ne),w&&w(ne,Te)}},Ce=function(Fe){return Fe.touches&&Fe.touches.length>1&&(ne.isGesturing=!0)&&I(Fe,ne.isDragging)},K=function(){return(ne.isGesturing=!1)||N(ne)},Re=function(Fe){if(!qe(Fe)){var Ye=re(),Te=pe();Oe((Ye-ge)*te,(Te-ye)*te,1),ge=Ye,ye=Te,h&&de.restart(!0)}},Ee=function(Fe){if(!qe(Fe)){Fe=cg(Fe,d),G&&(he=!0);var Ye=(Fe.deltaMode===1?c:Fe.deltaMode===2?ys.innerHeight:1)*v;Oe(Fe.deltaX*Ye,Fe.deltaY*Ye,0),h&&!D&&de.restart(!0)}},lt=function(Fe){if(!qe(Fe)){var Ye=Fe.clientX,Te=Fe.clientY,Xe=Ye-ne.x,Ze=Te-ne.y;ne.x=Ye,ne.y=Te,_e=!0,h&&de.restart(!0),(Xe||Ze)&&it(Xe,Ze)}},Se=function(Fe){ne.event=Fe,P(ne)},Ne=function(Fe){ne.event=Fe,O(ne)},st=function(Fe){return qe(Fe)||cg(Fe,d)&&Y(ne)};de=ne._dc=Ur.delayedCall(f||.25,We).pause(),ne.deltaX=ne.deltaY=0,ne._vx=SR(0,50,!0),ne._vy=SR(0,50,!0),ne.scrollX=re,ne.scrollY=pe,ne.isDragging=ne.isGesturing=ne.isPressed=!1,vX(this),ne.enable=function(Ve){return ne.isEnabled||(fi(be?Ae:a,"scroll",_R),o.indexOf("scroll")>=0&&fi(be?Ae:a,"scroll",Re,B,Q),o.indexOf("wheel")>=0&&fi(a,"wheel",Ee,B,Q),(o.indexOf("touch")>=0&&pX||o.indexOf("pointer")>=0)&&(fi(a,To[0],Dt,B,Q),fi(Ae,To[2],Ie),fi(Ae,To[3],Ie),X&&fi(a,"click",rt,!0,!0),Y&&fi(a,"click",st),I&&fi(Ae,"gesturestart",Ce),N&&fi(Ae,"gestureend",K),P&&fi(a,$u+"enter",Se),O&&fi(a,$u+"leave",Ne),L&&fi(a,$u+"move",lt)),ne.isEnabled=!0,ne.isDragging=ne.isGesturing=ne.isPressed=_e=H=!1,ne._vx.reset(),ne._vy.reset(),ge=re(),ye=pe(),Ve&&Ve.type&&Dt(Ve),q&&q(ne)),ne},ne.disable=function(){ne.isEnabled&&(Rf.filter(function(Ve){return Ve!==ne&&Tv(Ve.target)}).length||di(be?Ae:a,"scroll",_R),ne.isPressed&&(ne._vx.reset(),ne._vy.reset(),di(D?a:Ae,To[1],vt,!0)),di(be?Ae:a,"scroll",Re,Q),di(a,"wheel",Ee,Q),di(a,To[0],Dt,Q),di(Ae,To[2],Ie),di(Ae,To[3],Ie),di(a,"click",rt,!0),di(a,"click",st),di(Ae,"gesturestart",Ce),di(Ae,"gestureend",K),di(a,$u+"enter",Se),di(a,$u+"leave",Ne),di(a,$u+"move",lt),ne.isEnabled=ne.isPressed=ne.isDragging=!1,W&&W(ne))},ne.kill=ne.revert=function(){ne.disable();var Ve=Rf.indexOf(ne);Ve>=0&&Rf.splice(Ve,1),cl===ne&&(cl=0)},Rf.push(ne),D&&Tv(a)&&(cl=ne),ne.enable(p)},k_e(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();er.version="3.13.0";er.create=function(t){return new er(t)};er.register=wX;er.getAll=function(){return Rf.slice()};er.getById=function(t){return Rf.filter(function(e){return e.vars.id===t})[0]};yX()&&Ur.registerPlugin(er);/*! 5518 * ScrollTrigger 3.13.0 5519 * https://gsap.com 5520 * 5521 * @license Copyright 2008-2025, GreenSock. All rights reserved. 5522 * Subject to the terms at https://gsap.com/standard-license 5523 * @author: Jack Doyle, [email protected] 5524*/var nt,of,Rt,yn,ps,nn,bO,A1,My,Av,$g,Bx,Zr,$S,ER,bi,qD,YD,af,_X,TT,SX,yi,TR,EX,TX,Jl,AR,wO,Kf,_O,C1,CR,AT,zx=1,ti=Date.now,CT=ti(),oo=0,Hg=0,XD=function(e,n,r){var i=ds(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return r["_"+n+"Clamp"]=i,i?e.substr(6,e.length-7):e},KD=function(e,n){return n&&(!ds(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},L_e=function t(){return Hg&&requestAnimationFrame(t)},QD=function(){return $S=1},ZD=function(){return $S=0},aa=function(e){return e},Vg=function(e){return Math.round(e*1e5)/1e5||0},AX=function(){return typeof window<"u"},CX=function(){return nt||AX()&&(nt=window.gsap)&&nt.registerPlugin&&nt},Yd=function(e){return!!~bO.indexOf(e)},MX=function(e){return(e==="Height"?_O:Rt["inner"+e])||ps["client"+e]||nn["client"+e]},RX=function(e){return Bc(e,"getBoundingClientRect")||(Yd(e)?function(){return xw.width=Rt.innerWidth,xw.height=_O,xw}:function(){return sl(e)})},D_e=function(e,n,r){var i=r.d,s=r.d2,o=r.a;return(o=Bc(e,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(n?MX(s):e["client"+s])||0}},F_e=function(e,n){return!n||~Ma.indexOf(e)?RX(e):function(){return xw}},xa=function(e,n){var r=n.s,i=n.d2,s=n.d,o=n.a;return Math.max(0,(r="scroll"+i)&&(o=Bc(e,r))?o()-RX(e)()[s]:Yd(e)?(ps[r]||nn[r])-MX(i):e[r]-e["offset"+i])},$x=function(e,n){for(var r=0;r<af.length;r+=3)(!n||~n.indexOf(af[r+1]))&&e(af[r],af[r+1],af[r+2])},ds=function(e){return typeof e=="string"},oi=function(e){return typeof e=="function"},Wg=function(e){return typeof e=="number"},Hu=function(e){return typeof e=="object"},ug=function(e,n,r){return e&&e.progress(n?0:1)&&r&&e.pause()},MT=function(e,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return n(e)}):n(e);r&&r.totalTime&&(e.callbackAnimation=r)}},Oh=Math.abs,PX="left",jX="top",SO="right",EO="bottom",Rd="width",Pd="height",Cv="Right",Mv="Left",Rv="Top",Pv="Bottom",ir="padding",Gs="margin",Fm="Width",TO="Height",fr="px",qs=function(e){return Rt.getComputedStyle(e)},U_e=function(e){var n=qs(e).position;e.style.position=n==="absolute"||n==="fixed"?n:"relative"},JD=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},sl=function(e,n){var r=n&&qs(e)[ER]!=="matrix(1, 0, 0, 1, 0, 0)"&&nt.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return r&&r.progress(0).kill(),i},M1=function(e,n){var r=n.d2;return e["offset"+r]||e["client"+r]||0},NX=function(e){var n=[],r=e.labels,i=e.duration(),s;for(s in r)n.push(r[s]/i);return n},B_e=function(e){return function(n){return nt.utils.snap(NX(e),n)}},AO=function(e){var n=nt.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(i,s){return i-s});return r?function(i,s,o){o===void 0&&(o=.001);var a;if(!s)return n(i);if(s>0){for(i-=o,a=0;a<r.length;a++)if(r[a]>=i)return r[a];return r[a-1]}else for(a=r.length,i+=o;a--;)if(r[a]<=i)return r[a];return r[0]}:function(i,s,o){o===void 0&&(o=.001);var a=n(i);return!s||Math.abs(a-i)<o||a-i<0==s<0?a:n(s<0?i-e:i+e)}},z_e=function(e){return function(n,r){return AO(NX(e))(n,r.direction)}},Hx=function(e,n,r,i){return r.split(",").forEach(function(s){return e(n,s,i)})},Tr=function(e,n,r,i,s){return e.addEventListener(n,r,{passive:!i,capture:!!s})},Sr=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},Vx=function(e,n,r){r=r&&r.wheelHandler,r&&(e(n,"wheel",r),e(n,"touchmove",r))},eF={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Wx={toggleActions:"play",anticipatePin:0},R1={top:0,left:0,center:.5,bottom:1,right:1},pw=function(e,n){if(ds(e)){var r=e.indexOf("="),i=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=n/100),e=e.substr(0,r-1)),e=i+(e in R1?R1[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0)}return e},Gx=function(e,n,r,i,s,o,a,c){var u=s.startColor,d=s.endColor,h=s.fontSize,f=s.indent,m=s.fontWeight,v=yn.createElement("div"),p=Yd(r)||Bc(r,"pinType")==="fixed",g=e.indexOf("scroller")!==-1,y=p?nn:r,b=e.indexOf("start")!==-1,x=b?u:d,w="border-color:"+x+";font-size:"+h+";color:"+x+";font-weight:"+m+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return w+="position:"+((g||c)&&p?"fixed;":"absolute;"),(g||c||!p)&&(w+=(i===pr?SO:EO)+":"+(o+parseFloat(f))+"px;"),a&&(w+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),v._isStart=b,v.setAttribute("class","gsap-marker-"+e+(n?" marker-"+n:"")),v.style.cssText=w,v.innerText=n||n===0?e+"-"+n:e,y.children[0]?y.insertBefore(v,y.children[0]):y.appendChild(v),v._offset=v["offset"+i.op.d2],gw(v,0,i,b),v},gw=function(e,n,r,i){var s={display:"block"},o=r[i?"os2":"p2"],a=r[i?"p2":"os2"];e._isFlipped=i,s[r.a+"Percent"]=i?-100:0,s[r.a]=i?"1px":0,s["border"+o+Fm]=1,s["border"+a+Fm]=0,s[r.p]=n+"px",nt.set(e,s)},Mt=[],MR={},Ry,tF=function(){return ti()-oo>34&&(Ry||(Ry=requestAnimationFrame(pl)))},Ih=function(){(!yi||!yi.isPressed||yi.startX>nn.clientWidth)&&(jt.cache++,yi?Ry||(Ry=requestAnimationFrame(pl)):pl(),oo||Kd("scrollStart"),oo=ti())},RT=function(){TX=Rt.innerWidth,EX=Rt.innerHeight},Gg=function(e){jt.cache++,(e===!0||!Zr&&!SX&&!yn.fullscreenElement&&!yn.webkitFullscreenElement&&(!TR||TX!==Rt.innerWidth||Math.abs(Rt.innerHeight-EX)>Rt.innerHeight*.25))&&A1.restart(!0)},Xd={},$_e=[],kX=function t(){return Sr(wt,"scrollEnd",t)||sd(!0)},Kd=function(e){return Xd[e]&&Xd[e].map(function(n){return n()})||$_e},cs=[],OX=function(e){for(var n=0;n<cs.length;n+=5)(!e||cs[n+4]&&cs[n+4].query===e)&&(cs[n].style.cssText=cs[n+1],cs[n].getBBox&&cs[n].setAttribute("transform",cs[n+2]||""),cs[n+3].uncache=1)},CO=function(e,n){var r;for(bi=0;bi<Mt.length;bi++)r=Mt[bi],r&&(!n||r._ctx===n)&&(e?r.kill(1):r.revert(!0,!0));C1=!0,n&&OX(n),n||Kd("revert")}
vendor: 4,590 bytes, line 5524
5524,IX=function(e,n){jt.cache++,(n||!wi)&&jt.forEach(function(r){return oi(r)&&r.cacheID++&&(r.rec=0)}),ds(e)&&(Rt.history.scrollRestoration=wO=e)},wi,jd=0,nF,H_e=function(){if(nF!==jd){var e=nF=jd;requestAnimationFrame(function(){return e===jd&&sd(!0)})}},LX=function(){nn.appendChild(Kf),_O=!yi&&Kf.offsetHeight||Rt.innerHeight,nn.removeChild(Kf)},rF=function(e){return My(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=e?"none":"block"})},sd=function(e,n){if(ps=yn.documentElement,nn=yn.body,bO=[Rt,yn,ps,nn],oo&&!e&&!C1){Tr(wt,"scrollEnd",kX);return}LX(),wi=wt.isRefreshing=!0,jt.forEach(function(i){return oi(i)&&++i.cacheID&&(i.rec=i())});var r=Kd("refreshInit");_X&&wt.sort(),n||CO(),jt.forEach(function(i){oi(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),Mt.slice(0).forEach(function(i){return i.refresh()}),C1=!1,Mt.forEach(function(i){if(i._subPinOffset&&i.pin){var s=i.vars.horizontal?"offsetWidth":"offsetHeight",o=i.pin[s];i.revert(!0,1),i.adjustPinSpacing(i.pin[s]-o),i.refresh()}}),CR=1,rF(!0),Mt.forEach(function(i){var s=xa(i.scroller,i._dir),o=i.vars.end==="max"||i._endClamp&&i.end>s,a=i._startClamp&&i.start>=s;(o||a)&&i.setPositions(a?s-1:i.start,o?Math.max(a?s:i.start+1,s):i.end,!0)}),rF(!1),CR=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),jt.forEach(function(i){oi(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),IX(wO,1),A1.pause(),jd++,wi=2,pl(2),Mt.forEach(function(i){return oi(i.vars.onRefresh)&&i.vars.onRefresh(i)}),wi=wt.isRefreshing=!1,Kd("refresh")},RR=0,vw=1,jv,pl=function(e){if(e===2||!wi&&!C1){wt.isUpdating=!0,jv&&jv.update(0);var n=Mt.length,r=ti(),i=r-CT>=50,s=n&&Mt[0].scroll();if(vw=RR>s?-1:1,wi||(RR=s),i&&(oo&&!$S&&r-oo>200&&(oo=0,Kd("scrollEnd")),$g=CT,CT=r),vw<0){for(bi=n;bi-- >0;)Mt[bi]&&Mt[bi].update(0,i);vw=1}else for(bi=0;bi<n;bi++)Mt[bi]&&Mt[bi].update(0,i);wt.isUpdating=!1}Ry=0},PR=[PX,jX,EO,SO,Gs+Pv,Gs+Cv,Gs+Rv,Gs+Mv,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],yw=PR.concat([Rd,Pd,"boxSizing","max"+Fm,"max"+TO,"position",Gs,ir,ir+Rv,ir+Cv,ir+Pv,ir+Mv]),V_e=function(e,n,r){Qf(r);var i=e._gsap;if(i.spacerIsNative)Qf(i.spacerState);else if(e._gsap.swappedIn){var s=n.parentNode;s&&(s.insertBefore(e,n),s.removeChild(n))}e._gsap.swappedIn=!1},PT=function(e,n,r,i){if(!e._gsap.swappedIn){for(var s=PR.length,o=n.style,a=e.style,c;s--;)c=PR[s],o[c]=r[c];o.position=r.position==="absolute"?"absolute":"relative",r.display==="inline"&&(o.display="inline-block"),a[EO]=a[SO]="auto",o.flexBasis=r.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[Rd]=M1(e,Ti)+fr,o[Pd]=M1(e,pr)+fr,o[ir]=a[Gs]=a[jX]=a[PX]="0",Qf(i),a[Rd]=a["max"+Fm]=r[Rd],a[Pd]=a["max"+TO]=r[Pd],a[ir]=r[ir],e.parentNode!==n&&(e.parentNode.insertBefore(n,e),n.appendChild(e)),e._gsap.swappedIn=!0}},W_e=/([A-Z])/g,Qf=function(e){if(e){var n=e.t.style,r=e.length,i=0,s,o;for((e.t._gsap||nt.core.getCache(e.t)).uncache=1;i<r;i+=2)o=e[i+1],s=e[i],o?n[s]=o:n[s]&&n.removeProperty(s.replace(W_e,"-$1").toLowerCase())}},qx=function(e){for(var n=yw.length,r=e.style,i=[],s=0;s<n;s++)i.push(yw[s],r[yw[s]]);return i.t=e,i},G_e=function(e,n,r){for(var i=[],s=e.length,o=r?8:0,a;o<s;o+=2)a=e[o],i.push(a,a in n?n[a]:e[o+1]);return i.t=e.t,i},xw={left:0,top:0},iF=function(e,n,r,i,s,o,a,c,u,d,h,f,m,v){oi(e)&&(e=e(c)),ds(e)&&e.substr(0,3)==="max"&&(e=f+(e.charAt(4)==="="?pw("0"+e.substr(3),r):0));var p=m?m.time():0,g,y,b;if(m&&m.seek(0),isNaN(e)||(e=+e),Wg(e))m&&(e=nt.utils.mapRange(m.scrollTrigger.start,m.scrollTrigger.end,0,f,e)),a&&gw(a,r,i,!0);else{oi(n)&&(n=n(c));var x=(e||"0").split(" "),w,_,S,T;b=Ui(n,c)||nn,w=sl(b)||{},(!w||!w.left&&!w.top)&&qs(b).display==="none"&&(T=b.style.display,b.style.display="block",w=sl(b),T?b.style.display=T:b.style.removeProperty("display")),_=pw(x[0],w[i.d]),S=pw(x[1]||"0",r),e=w[i.p]-u[i.p]-d+_+s-S,a&&gw(a,S,i,r-S<20||a._isStart&&S>20),r-=r-S}if(v&&(c[v]=e||-.001,e<0&&(e=0)),o){var M=e+r,A=o._isStart;g="scroll"+i.d2,gw(o,M,i,A&&M>20||!A&&(h?Math.max(nn[g],ps[g]):o.parentNode[g])<=M+1),h&&(u=sl(a),h&&(o.style[i.op.p]=u[i.op.p]-i.op.m-o._offset+fr))}return m&&b&&(g=sl(b),m.seek(f),y=sl(b),m._caScrollDist=g[i.p]-y[i.p],e=e/m._caScrollDist*f),m&&m.seek(p),m?e:Math.round(e)},q_e=/(webkit|moz|length|cssText|inset)/i,sF=function(e,n,r,i){if(e.parentNode!==n){var s=e.style,o,a;if(n===nn){e._stOrig=s.cssText,a=qs(e);
vendor: 8,799 bytes, line 5524
5524for(o in a)!+o&&!q_e.test(o)&&a[o]&&typeof s[o]=="string"&&o!=="0"&&(s[o]=a[o]);s.top=r,s.left=i}else s.cssText=e._stOrig;nt.core.getCache(e).uncache=1,n.appendChild(e)}},DX=function(e,n,r){var i=n,s=i;return function(o){var a=Math.round(e());return a!==i&&a!==s&&Math.abs(a-i)>3&&Math.abs(a-s)>3&&(o=a,r&&r()),s=i,i=Math.round(o),i}},Yx=function(e,n,r){var i={};i[n.p]="+="+r,nt.set(e,i)},oF=function(e,n){var r=tu(e,n),i="_scroll"+n.p2,s=function o(a,c,u,d,h){var f=o.tween,m=c.onComplete,v={};u=u||r();var p=DX(r,u,function(){f.kill(),o.tween=0});return h=d&&h||0,d=d||a-u,f&&f.kill(),c[i]=a,c.inherit=!1,c.modifiers=v,v[i]=function(){return p(u+d*f.ratio+h*f.ratio*f.ratio)},c.onUpdate=function(){jt.cache++,o.tween&&pl()},c.onComplete=function(){o.tween=0,m&&m.call(f)},f=o.tween=nt.to(e,c),f};return e[i]=r,r.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},Tr(e,"wheel",r.wheelHandler),wt.isTouch&&Tr(e,"touchmove",r.wheelHandler),s},wt=function(){function t(n,r){of||t.register(nt)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),AR(this),this.init(n,r)}var e=t.prototype;return e.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Hg){this.update=this.refresh=this.kill=aa;return}r=JD(ds(r)||Wg(r)||r.nodeType?{trigger:r}:r,Wx);var s=r,o=s.onUpdate,a=s.toggleClass,c=s.id,u=s.onToggle,d=s.onRefresh,h=s.scrub,f=s.trigger,m=s.pin,v=s.pinSpacing,p=s.invalidateOnRefresh,g=s.anticipatePin,y=s.onScrubComplete,b=s.onSnapComplete,x=s.once,w=s.snap,_=s.pinReparent,S=s.pinSpacer,T=s.containerAnimation,M=s.fastScrollEnd,A=s.preventOverlaps,C=r.horizontal||r.containerAnimation&&r.horizontal!==!1?Ti:pr,R=!h&&h!==0,j=Ui(r.scroller||Rt),k=nt.core.getCache(j),P=Yd(j),O=("pinType"in r?r.pinType:Bc(j,"pinType")||P&&"fixed")==="fixed",L=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],F=R&&r.toggleActions.split(" "),D="markers"in r?r.markers:Wx.markers,I=P?0:parseFloat(qs(j)["border"+C.p2+Fm])||0,N=this,G=r.onRefreshInit&&function(){return r.onRefreshInit(N)},q=D_e(j,P,C),W=F_e(j,P),Y=0,te=0,Q=0,X=tu(j,C),ae,J,ue,de,H,_e,he,xe,we,ne,Pe,$,B,re,pe,ge,ye,je,be,Ae,Qe,at,oe,rt,qe,We,ke,Oe,it,vt,Dt,Ie,Ce,K,Re,Ee,lt,Se,Ne;if(N._startClamp=N._endClamp=!1,N._dir=C,g*=45,N.scroller=j,N.scroll=T?T.time.bind(T):X,de=X(),N.vars=r,i=i||r.animation,"refreshPriority"in r&&(_X=1,r.refreshPriority===-9999&&(jv=N)),k.tweenScroll=k.tweenScroll||{top:oF(j,pr),left:oF(j,Ti)},N.tweenTo=ae=k.tweenScroll[C.p],N.scrubDuration=function(Te){Ce=Wg(Te)&&Te,Ce?Ie?Ie.duration(Te):Ie=nt.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Ce,paused:!0,onComplete:function(){return y&&y(N)}}):(Ie&&Ie.progress(1).kill(),Ie=0)},i&&(i.vars.lazy=!1,i._initted&&!N.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),N.animation=i.pause(),i.scrollTrigger=N,N.scrubDuration(h),vt=0,c||(c=i.vars.id)),w&&((!Hu(w)||w.push)&&(w={snapTo:w}),"scrollBehavior"in nn.style&&nt.set(P?[nn,ps]:j,{scrollBehavior:"auto"}),jt.forEach(function(Te){return oi(Te)&&Te.target===(P?yn.scrollingElement||ps:j)&&(Te.smooth=!1)}),ue=oi(w.snapTo)?w.snapTo:w.snapTo==="labels"?B_e(i):w.snapTo==="labelsDirectional"?z_e(i):w.directional!==!1?function(Te,Xe){return AO(w.snapTo)(Te,ti()-te<500?0:Xe.direction)}:nt.utils.snap(w.snapTo),K=w.duration||{min:.1,max:2},K=Hu(K)?Av(K.min,K.max):Av(K,K),Re=nt.delayedCall(w.delay||Ce/2||.1,function(){var Te=X(),Xe=ti()-te<500,Ze=ae.tween;if((Xe||Math.abs(N.getVelocity())<10)&&!Ze&&!$S&&Y!==Te){var ct=(Te-_e)/re,Kt=i&&!R?i.totalProgress():ct,St=Xe?0:(Kt-Dt)/(ti()-$g)*1e3||0,on=nt.utils.clamp(-ct,1-ct,Oh(St/2)*St/.185),kn=ct+(w.inertia===!1?0:on),cn,Ft,qt=w,Wr=qt.onStart,z=qt.onInterrupt,ie=qt.onComplete;if(cn=ue(kn,N),Wg(cn)||(cn=kn),Ft=Math.max(0,Math.round(_e+cn*re)),Te<=he&&Te>=_e&&Ft!==Te){if(Ze&&!Ze._initted&&Ze.data<=Oh(Ft-Te))return;w.inertia===!1&&(on=cn-ct),ae(Ft,{duration:K(Oh(Math.max(Oh(kn-Kt),Oh(cn-Kt))*.185/St/.05||0)),ease:w.ease||"power3",data:Oh(Ft-Te),onInterrupt:function(){return Re.restart(!0)&&z&&z(N)},onComplete:function(){N.update(),Y=X(),i&&!R&&(Ie?Ie.resetTo("totalProgress",cn,i._tTime/i._tDur):i.progress(cn)),vt=Dt=i&&!R?i.totalProgress():N.progress,b&&b(N),ie&&ie(N)}},Te,on*re,Ft-Te-on*re),Wr&&Wr(N,ae.tween)}}else N.isActive&&Y!==Te&&Re.restart(!0)}).pause()),c&&(MR[c]=N),f=N.trigger=Ui(f||m!==!0&&m),Ne=f&&f._gsap&&f._gsap.stRevert,Ne&&(Ne=Ne(N)),m=m===!0?f:Ui(m),ds(a)&&(a={targets:f,className:a}),m&&(v===!1||v===Gs||(v=!v&&m.parentNode&&m.parentNode.style&&qs(m.parentNode).display==="flex"?!1:ir),N.pin=m,J=nt.core.getCache(m),J.spacer?pe=J.pinState:(S&&(S=Ui(S),S&&!S.nodeType&&(S=S.current||S.nativeElement),J.spacerIsNative=!!S,S&&(J.spacerState=qx(S))),J.spacer=je=S||yn.createElement("div"),je.classList.add("pin-spacer"),c&&je.classList.add("pin-spacer-"+c),J.pinState=pe=qx(m)),r.force3D!==!1&&nt.set(m,{force3D:!0}),N.spacer=je=J.spacer,it=qs(m),rt=it[v+C.os2],Ae=nt.getProperty(m),Qe=nt.quickSetter(m,C.a,fr),PT(m,je,it),ye=qx(m)),D){$=Hu(D)?JD(D,eF):eF,ne=Gx("scroller-start",c,j,C,$,0),Pe=Gx("scroller-end",c,j,C,$,0,ne),be=ne["offset"+C.op.d2];var st=Ui(Bc(j,"content")||j);xe=this.markerStart=Gx("start",c,st,C,$,be,0,T),we=this.markerEnd=Gx("end",c,st,C,$,be,0,T),T&&(Se=nt.quickSetter([xe,we],C.a,fr)),!O&&!(Ma.length&&Bc(j,"fixedMarkers")===!0)&&(U_e(P?nn:j),nt.set([ne,Pe],{force3D:!0}),We=nt.quickSetter(ne,C.a,fr),Oe=nt.quickSetter(Pe,C.a,fr))}if(T){var Ve=T.vars.onUpdate,Fe=T.vars.onUpdateParams;T.eventCallback("onUpdate",function(){N.update(0,0,1),Ve&&Ve.apply(T,Fe||[])})}if(N.previous=function(){return Mt[Mt.indexOf(N)-1]},N.next=function(){return Mt[Mt.indexOf(N)+1]},N.revert=function(Te,Xe){if(!Xe)return N.kill(!0);var Ze=Te!==!1||!N.enabled,ct=Zr;Ze!==N.isReverted&&(Ze&&(Ee=Math.max(X(),N.scroll.rec||0),Q=N.progress,lt=i&&i.progress()),xe&&[xe,we,ne,Pe].forEach(function(Kt){return Kt.style.display=Ze?"none":"block"}),Ze&&(Zr=N,N.update(Ze)),m&&(!_||!N.isActive)&&(Ze?V_e(m,je,pe):PT(m,je,qs(m),qe)),Ze||N.update(Ze),Zr=ct,N.isReverted=Ze)},N.refresh=function(Te,Xe,Ze,ct){if(!((Zr||!N.enabled)&&!Xe)){if(m&&Te&&oo){Tr(t,"scrollEnd",kX);return}!wi&&G&&G(N),Zr=N,ae.tween&&!Ze&&(ae.tween.kill(),ae.tween=0),Ie&&Ie.pause(),p&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren&&i.getChildren(!0,!0,!1).forEach(function(xt){return xt.vars.immediateRender&&xt.render(0,!0,!0)})),N.isReverted||N.revert(!0,!0),N._subPinOffset=!1;var Kt=q(),St=W(),on=T?T.duration():xa(j,C),kn=re<=.01||!re,cn=0,Ft=ct||0,qt=Hu(Ze)?Ze.end:r.end,Wr=r.endTrigger||f,z=Hu(Ze)?Ze.start:r.start||(r.start===0||!f?0:m?"0 0":"0 100%"),ie=N.pinnedContainer=r.pinnedContainer&&Ui(r.pinnedContainer,N),ce=f&&Math.max(0,Mt.indexOf(N))||0,Z=ce,U,se,fe,$e,Be,Ue,Ke,ut,Qt,On,yt,wr,Zt;for(D&&Hu(Ze)&&(wr=nt.getProperty(ne,C.p),Zt=nt.getProperty(Pe,C.p));Z-- >0;)Ue=Mt[Z],Ue.end||Ue.refresh(0,1)||(Zr=N),Ke=Ue.pin,Ke&&(Ke===f||Ke===m||Ke===ie)&&!Ue.isReverted&&(On||(On=[]),On.unshift(Ue),Ue.revert(!0,!0)),Ue!==Mt[Z]&&(ce--,Z--);for(oi(z)&&(z=z(N)),z=XD(z,"start",N),_e=iF(z,f,Kt,C,X(),xe,ne,N,St,I,O,on,T,N._startClamp&&"_startClamp")||(m?-.001:0),oi(qt)&&(qt=qt(N)),ds(qt)&&!qt.indexOf("+=")&&(~qt.indexOf(" ")?qt=(ds(z)?z.split(" ")[0]:"")+qt:(cn=pw(qt.substr(2),Kt),qt=ds(z)?z:(T?nt.utils.mapRange(0,T.duration(),T.scrollTrigger.start,T.scrollTrigger.end,_e):_e)+cn,Wr=f)),qt=XD(qt,"end",N),he=Math.max(_e,iF(qt||(Wr?"100% 0":on),Wr,Kt,C,X()+cn,we,Pe,N,St,I,O,on,T,N._endClamp&&"_endClamp"))||-.001,cn=0,Z=ce;Z--;)Ue=Mt[Z],Ke=Ue.pin,Ke&&Ue.start-Ue._pinPush<=_e&&!T&&Ue.end>0&&(U=Ue.end-(N._startClamp?Math.max(0,Ue.start):Ue.start),(Ke===f&&Ue.start-Ue._pinPush<_e||Ke===ie)&&isNaN(z)&&(cn+=U*(1-Ue.progress)),Ke===m&&(Ft+=U));if(_e+=cn,he+=cn,N._startClamp&&(N._startClamp+=cn),N._endClamp&&!wi&&(N._endClamp=he||-.001,he=Math.min(he,xa(j,C))),re=he-_e||(_e-=.01)&&.001,kn&&(Q=nt.utils.clamp(0,1,nt.utils.normalize(_e,he,Ee))),N._pinPush=Ft,xe&&cn&&(U={},U[C.a]="+="+cn,ie&&(U[C.p]="-="+X()),nt.set([xe,we],U)),m&&!(CR&&N.end>=xa(j,C)))U=qs(m),$e=C===pr,fe=X(),at=parseFloat(Ae(C.a))+Ft,!on&&he>1&&(yt=(P?yn.scrollingElement||ps:j).style,yt={style:yt,value:yt["overflow"+C.a.toUpperCase()]},P&&qs(nn)["overflow"+C.a.toUpperCase()]!=="scroll"&&(yt.style["overflow"+C.a.toUpperCase()]="scroll")),PT(m,je,U),ye=qx(m),se=sl(m,!0),ut=O&&tu(j,$e?Ti:pr)(),v?(qe=[v+C.os2,re+Ft+fr],qe.t=je,Z=v===ir?M1(m,C)+re+Ft:0,Z&&(qe.push(C.d,Z+fr),je.style.flexBasis!=="auto"&&(je.style.flexBasis=Z+fr)),Qf(qe),ie&&Mt.forEach(function(xt){xt.pin===ie&&xt.vars.pinSpacing!==!1&&(xt._subPinOffset=!0)}),O&&X(Ee)):(Z=M1(m,C),Z&&je.style.flexBasis!=="auto"&&(je.style.flexBasis=Z+fr)),O&&(Be={top:se.top+($e?fe-_e:ut)+fr,left:se.left+($e?ut:fe-_e)+fr,boxSizing:"border-box",position:"fixed"},Be[Rd]=Be["max"+Fm]=Math.ceil(se.width)+fr,Be[Pd]=Be["max"+TO]=Math.ceil(se.he
vendor: 4,263 bytes, line 5524
5524ight)+fr,Be[Gs]=Be[Gs+Rv]=Be[Gs+Cv]=Be[Gs+Pv]=Be[Gs+Mv]="0",Be[ir]=U[ir],Be[ir+Rv]=U[ir+Rv],Be[ir+Cv]=U[ir+Cv],Be[ir+Pv]=U[ir+Pv],Be[ir+Mv]=U[ir+Mv],ge=G_e(pe,Be,_),wi&&X(0)),i?(Qt=i._initted,TT(1),i.render(i.duration(),!0,!0),oe=Ae(C.a)-at+re+Ft,ke=Math.abs(re-oe)>1,O&&ke&&ge.splice(ge.length-2,2),i.render(0,!0,!0),Qt||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),TT(0)):oe=re,yt&&(yt.value?yt.style["overflow"+C.a.toUpperCase()]=yt.value:yt.style.removeProperty("overflow-"+C.a));else if(f&&X()&&!T)for(se=f.parentNode;se&&se!==nn;)se._pinOffset&&(_e-=se._pinOffset,he-=se._pinOffset),se=se.parentNode;On&&On.forEach(function(xt){return xt.revert(!1,!0)}),N.start=_e,N.end=he,de=H=wi?Ee:X(),!T&&!wi&&(de<Ee&&X(Ee),N.scroll.rec=0),N.revert(!1,!0),te=ti(),Re&&(Y=-1,Re.restart(!0)),Zr=0,i&&R&&(i._initted||lt)&&i.progress()!==lt&&i.progress(lt||0,!0).render(i.time(),!0,!0),(kn||Q!==N.progress||T||p||i&&!i._initted)&&(i&&!R&&(i._initted||Q||i.vars.immediateRender!==!1)&&i.totalProgress(T&&_e<-.001&&!Q?nt.utils.normalize(_e,he,0):Q,!0),N.progress=kn||(de-_e)/re===Q?0:Q),m&&v&&(je._pinOffset=Math.round(N.progress*oe)),Ie&&Ie.invalidate(),isNaN(wr)||(wr-=nt.getProperty(ne,C.p),Zt-=nt.getProperty(Pe,C.p),Yx(ne,C,wr),Yx(xe,C,wr-(ct||0)),Yx(Pe,C,Zt),Yx(we,C,Zt-(ct||0))),kn&&!wi&&N.update(),d&&!wi&&!B&&(B=!0,d(N),B=!1)}},N.getVelocity=function(){return(X()-H)/(ti()-$g)*1e3||0},N.endAnimation=function(){ug(N.callbackAnimation),i&&(Ie?Ie.progress(1):i.paused()?R||ug(i,N.direction<0,1):ug(i,i.reversed()))},N.labelToScroll=function(Te){return i&&i.labels&&(_e||N.refresh()||_e)+i.labels[Te]/i.duration()*re||0},N.getTrailing=function(Te){var Xe=Mt.indexOf(N),Ze=N.direction>0?Mt.slice(0,Xe).reverse():Mt.slice(Xe+1);return(ds(Te)?Ze.filter(function(ct){return ct.vars.preventOverlaps===Te}):Ze).filter(function(ct){return N.direction>0?ct.end<=_e:ct.start>=he})},N.update=function(Te,Xe,Ze){if(!(T&&!Ze&&!Te)){var ct=wi===!0?Ee:N.scroll(),Kt=Te?0:(ct-_e)/re,St=Kt<0?0:Kt>1?1:Kt||0,on=N.progress,kn,cn,Ft,qt,Wr,z,ie,ce;if(Xe&&(H=de,de=T?X():ct,w&&(Dt=vt,vt=i&&!R?i.totalProgress():St)),g&&m&&!Zr&&!zx&&oo&&(!St&&_e<ct+(ct-H)/(ti()-$g)*g?St=1e-4:St===1&&he>ct+(ct-H)/(ti()-$g)*g&&(St=.9999)),St!==on&&N.enabled){if(kn=N.isActive=!!St&&St<1,cn=!!on&&on<1,z=kn!==cn,Wr=z||!!St!=!!on,N.direction=St>on?1:-1,N.progress=St,Wr&&!Zr&&(Ft=St&&!on?0:St===1?1:on===1?2:3,R&&(qt=!z&&F[Ft+1]!=="none"&&F[Ft+1]||F[Ft],ce=i&&(qt==="complete"||qt==="reset"||qt in i))),A&&(z||ce)&&(ce||h||!i)&&(oi(A)?A(N):N.getTrailing(A).forEach(function(fe){return fe.endAnimation()})),R||(Ie&&!Zr&&!zx?(Ie._dp._time-Ie._start!==Ie._time&&Ie.render(Ie._dp._time-Ie._start),Ie.resetTo?Ie.resetTo("totalProgress",St,i._tTime/i._tDur):(Ie.vars.totalProgress=St,Ie.invalidate().restart())):i&&i.totalProgress(St,!!(Zr&&(te||Te)))),m){if(Te&&v&&(je.style[v+C.os2]=rt),!O)Qe(Vg(at+oe*St));else if(Wr){if(ie=!Te&&St>on&&he+1>ct&&ct+1>=xa(j,C),_)if(!Te&&(kn||ie)){var Z=sl(m,!0),U=ct-_e;sF(m,nn,Z.top+(C===pr?U:0)+fr,Z.left+(C===pr?0:U)+fr)}else sF(m,je);Qf(kn||ie?ge:ye),ke&&St<1&&kn||Qe(at+(St===1&&!ie?oe:0))}}w&&!ae.tween&&!Zr&&!zx&&Re.restart(!0),a&&(z||x&&St&&(St<1||!AT))&&My(a.targets).forEach(function(fe){return fe.classList[kn||x?"add":"remove"](a.className)}),o&&!R&&!Te&&o(N),Wr&&!Zr?(R&&(ce&&(qt==="complete"?i.pause().totalProgress(1):qt==="reset"?i.restart(!0).pause():qt==="restart"?i.restart(!0):i[qt]()),o&&o(N)),(z||!AT)&&(u&&z&&MT(N,u),L[Ft]&&MT(N,L[Ft]),x&&(St===1?N.kill(!1,1):L[Ft]=0),z||(Ft=St===1?1:3,L[Ft]&&MT(N,L[Ft]))),M&&!kn&&Math.abs(N.getVelocity())>(Wg(M)?M:2500)&&(ug(N.callbackAnimation),Ie?Ie.progress(1):ug(i,qt==="reverse"?1:!St,1))):R&&o&&!Zr&&o(N)}if(Oe){var se=T?ct/T.duration()*(T._caScrollDist||0):ct;We(se+(ne._isFlipped?1:0)),Oe(se)}Se&&Se(-ct/T.duration()*(T._caScrollDist||0))}},N.enable=function(Te,Xe){N.enabled||(N.enabled=!0,Tr(j,"resize",Gg),P||Tr(j,"scroll",Ih),G&&Tr(t,"refreshInit",G),Te!==!1&&(N.progress=Q=0,de=H=Y=X()),Xe!==!1&&N.refresh())},N.getTween=function(Te){return Te&&ae?ae.tween:Ie},N.setPositions=function(Te,Xe,Ze,ct){if(T){var Kt=T.scrollTrigger,St=T.duration(),on=Kt.end-Kt.start;Te=Kt.start+on*Te/St,Xe=Kt.start+on*Xe/St}N.refresh(!1,!1,{start:KD(Te,Ze&&!!N._startClamp),end:KD(Xe,Ze&&!!N._endClamp)},ct),N.update()}
vendor: 4,416 bytes, line 5524
5524,N.adjustPinSpacing=function(Te){if(qe&&Te){var Xe=qe.indexOf(C.d)+1;qe[Xe]=parseFloat(qe[Xe])+Te+fr,qe[1]=parseFloat(qe[1])+Te+fr,Qf(qe)}},N.disable=function(Te,Xe){if(N.enabled&&(Te!==!1&&N.revert(!0,!0),N.enabled=N.isActive=!1,Xe||Ie&&Ie.pause(),Ee=0,J&&(J.uncache=1),G&&Sr(t,"refreshInit",G),Re&&(Re.pause(),ae.tween&&ae.tween.kill()&&(ae.tween=0)),!P)){for(var Ze=Mt.length;Ze--;)if(Mt[Ze].scroller===j&&Mt[Ze]!==N)return;Sr(j,"resize",Gg),P||Sr(j,"scroll",Ih)}},N.kill=function(Te,Xe){N.disable(Te,Xe),Ie&&!Xe&&Ie.kill(),c&&delete MR[c];var Ze=Mt.indexOf(N);Ze>=0&&Mt.splice(Ze,1),Ze===bi&&vw>0&&bi--,Ze=0,Mt.forEach(function(ct){return ct.scroller===N.scroller&&(Ze=1)}),Ze||wi||(N.scroll.rec=0),i&&(i.scrollTrigger=null,Te&&i.revert({kill:!1}),Xe||i.kill()),xe&&[xe,we,ne,Pe].forEach(function(ct){return ct.parentNode&&ct.parentNode.removeChild(ct)}),jv===N&&(jv=0),m&&(J&&(J.uncache=1),Ze=0,Mt.forEach(function(ct){return ct.pin===m&&Ze++}),Ze||(J.spacer=0)),r.onKill&&r.onKill(N)},Mt.push(N),N.enable(!1,!1),Ne&&Ne(N),i&&i.add&&!re){var Ye=N.update;N.update=function(){N.update=Ye,jt.cache++,_e||he||N.refresh()},nt.delayedCall(.01,N.update),re=.01,_e=he=0}else N.refresh();m&&H_e()},t.register=function(r){return of||(nt=r||CX(),AX()&&window.document&&t.enable(),of=Hg),of},t.defaults=function(r){if(r)for(var i in r)Wx[i]=r[i];return Wx},t.disable=function(r,i){Hg=0,Mt.forEach(function(o){return o[i?"kill":"disable"](r)}),Sr(Rt,"wheel",Ih),Sr(yn,"scroll",Ih),clearInterval(Bx),Sr(yn,"touchcancel",aa),Sr(nn,"touchstart",aa),Hx(Sr,yn,"pointerdown,touchstart,mousedown",QD),Hx(Sr,yn,"pointerup,touchend,mouseup",ZD),A1.kill(),$x(Sr);for(var s=0;s<jt.length;s+=3)Vx(Sr,jt[s],jt[s+1]),Vx(Sr,jt[s],jt[s+2])},t.enable=function(){if(Rt=window,yn=document,ps=yn.documentElement,nn=yn.body,nt&&(My=nt.utils.toArray,Av=nt.utils.clamp,AR=nt.core.context||aa,TT=nt.core.suppressOverwrites||aa,wO=Rt.history.scrollRestoration||"auto",RR=Rt.pageYOffset||0,nt.core.globals("ScrollTrigger",t),nn)){Hg=1,Kf=document.createElement("div"),Kf.style.height="100vh",Kf.style.position="absolute",LX(),L_e(),er.register(nt),t.isTouch=er.isTouch,Jl=er.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),TR=er.isTouch===1,Tr(Rt,"wheel",Ih),bO=[Rt,yn,ps,nn],nt.matchMedia?(t.matchMedia=function(u){var d=nt.matchMedia(),h;for(h in u)d.add(h,u[h]);return d},nt.addEventListener("matchMediaInit",function(){return CO()}),nt.addEventListener("matchMediaRevert",function(){return OX()}),nt.addEventListener("matchMedia",function(){sd(0,1),Kd("matchMedia")}),nt.matchMedia().add("(orientation: portrait)",function(){return RT(),RT})):console.warn("Requires GSAP 3.11.0 or later"),RT(),Tr(yn,"scroll",Ih);var r=nn.hasAttribute("style"),i=nn.style,s=i.borderTopStyle,o=nt.core.Animation.prototype,a,c;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",a=sl(nn),pr.m=Math.round(a.top+pr.sc())||0,Ti.m=Math.round(a.left+Ti.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),r||(nn.setAttribute("style",""),nn.removeAttribute("style")),Bx=setInterval(tF,250),nt.delayedCall(.5,function(){return zx=0}),Tr(yn,"touchcancel",aa),Tr(nn,"touchstart",aa),Hx(Tr,yn,"pointerdown,touchstart,mousedown",QD),Hx(Tr,yn,"pointerup,touchend,mouseup",ZD),ER=nt.utils.checkPrefix("transform"),yw.push(ER),of=ti(),A1=nt.delayedCall(.2,sd).pause(),af=[yn,"visibilitychange",function(){var u=Rt.innerWidth,d=Rt.innerHeight;yn.hidden?(qD=u,YD=d):(qD!==u||YD!==d)&&Gg()},yn,"DOMContentLoaded",sd,Rt,"load",sd,Rt,"resize",Gg],$x(Tr),Mt.forEach(function(u){return u.enable(0,1)}),c=0;c<jt.length;c+=3)Vx(Sr,jt[c],jt[c+1]),Vx(Sr,jt[c],jt[c+2])}},t.config=function(r){"limitCallbacks"in r&&(AT=!!r.limitCallbacks);var i=r.syncInterval;i&&clearInterval(Bx)||(Bx=i)&&setInterval(tF,i),"ignoreMobileResize"in r&&(TR=t.isTouch===1&&r.ignoreMobileResize),"autoRefreshEvents"in r&&($x(Sr)||$x(Tr,r.autoRefreshEvents||"none"),SX=(r.autoRefreshEvents+"").indexOf("resize")===-1)},t.scrollerProxy=function(r,i){var s=Ui(r),o=jt.indexOf(s),a=Yd(s);~o&&jt.splice(o,a?6:2),i&&(a?Ma.unshift(Rt,i,nn,i,ps,i):Ma.unshift(s,i))},t.clearMatchMedia=function(r){Mt.forEach(function(i){return i._ctx&&i._ctx.query===r&&i._ctx.kill(!0,!0)})},t.isInViewport=function(r,i,s){var o=(ds(r)?Ui(r):r).getBoundingClientRect(),a=o[s?Rd:Pd]*i||0;return s?o.right-a>0&&o.left+a<Rt.innerWidth:o.bottom-a>
vendor: 4,226 bytes, line 5524
55240&&o.top+a<Rt.innerHeight},t.positionInViewport=function(r,i,s){ds(r)&&(r=Ui(r));var o=r.getBoundingClientRect(),a=o[s?Rd:Pd],c=i==null?a/2:i in R1?R1[i]*a:~i.indexOf("%")?parseFloat(i)*a/100:parseFloat(i)||0;return s?(o.left+c)/Rt.innerWidth:(o.top+c)/Rt.innerHeight},t.killAll=function(r){if(Mt.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),r!==!0){var i=Xd.killAll||[];Xd={},i.forEach(function(s){return s()})}},t}();wt.version="3.13.0";wt.saveStyles=function(t){return t?My(t).forEach(function(e){if(e&&e.style){var n=cs.indexOf(e);n>=0&&cs.splice(n,5),cs.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),nt.core.getCache(e),AR())}}):cs};wt.revert=function(t,e){return CO(!t,e)};wt.create=function(t,e){return new wt(t,e)};wt.refresh=function(t){return t?Gg(!0):(of||wt.register())&&sd(!0)};wt.update=function(t){return++jt.cache&&pl(t===!0?2:0)};wt.clearScrollMemory=IX;wt.maxScroll=function(t,e){return xa(t,e?Ti:pr)};wt.getScrollFunc=function(t,e){return tu(Ui(t),e?Ti:pr)};wt.getById=function(t){return MR[t]};wt.getAll=function(){return Mt.filter(function(t){return t.vars.id!=="ScrollSmoother"})};wt.isScrolling=function(){return!!oo};wt.snapDirectional=AO;wt.addEventListener=function(t,e){var n=Xd[t]||(Xd[t]=[]);~n.indexOf(e)||n.push(e)};wt.removeEventListener=function(t,e){var n=Xd[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)};wt.batch=function(t,e){var n=[],r={},i=e.interval||.016,s=e.batchMax||1e9,o=function(u,d){var h=[],f=[],m=nt.delayedCall(i,function(){d(h,f),h=[],f=[]}).pause();return function(v){h.length||m.restart(!0),h.push(v.trigger),f.push(v),s<=h.length&&m.progress(1)}},a;for(a in e)r[a]=a.substr(0,2)==="on"&&oi(e[a])&&a!=="onRefreshInit"?o(a,e[a]):e[a];return oi(s)&&(s=s(),Tr(wt,"refresh",function(){return s=e.batchMax()})),My(t).forEach(function(c){var u={};for(a in r)u[a]=r[a];u.trigger=c,n.push(wt.create(u))}),n};var aF=function(e,n,r,i){return n>i?e(i):n<0&&e(0),r>i?(i-n)/(r-n):r<0?n/(n-r):1},jT=function t(e,n){n===!0?e.style.removeProperty("touch-action"):e.style.touchAction=n===!0?"auto":n?"pan-"+n+(er.isTouch?" pinch-zoom":""):"none",e===ps&&t(nn,n)},Xx={auto:1,scroll:1},Y_e=function(e){var n=e.event,r=e.target,i=e.axis,s=(n.changedTouches?n.changedTouches[0]:n).target,o=s._gsap||nt.core.getCache(s),a=ti(),c;if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==nn&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(Xx[(c=qs(s)).overflowY]||Xx[c.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==r&&!Yd(s)&&(Xx[(c=qs(s)).overflowY]||Xx[c.overflowX]),o._isScrollT=a}(o._isScroll||i==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},FX=function(e,n,r,i){return er.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:i=i&&Y_e,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&Tr(yn,er.eventTypes[0],cF,!1,!0)},onDisable:function(){return Sr(yn,er.eventTypes[0],cF,!0)}})},X_e=/(input|label|select|textarea)/i,lF,cF=function(e){var n=X_e.test(e.target.tagName);(n||lF)&&(e._gsapAllow=!0,lF=n)},K_e=function(e){Hu(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n=e,r=n.normalizeScrollX,i=n.momentum,s=n.allowNestedScroll,o=n.onRelease,a,c,u=Ui(e.target)||ps,d=nt.core.globals().ScrollSmoother,h=d&&d.get(),f=Jl&&(e.content&&Ui(e.content)||h&&e.content!==!1&&!h.smooth()&&h.content()),m=tu(u,pr),v=tu(u,Ti),p=1,g=(er.isTouch&&Rt.visualViewport?Rt.visualViewport.scale*Rt.visualViewport.width:Rt.outerWidth)/Rt.innerWidth,y=0,b=oi(i)?function(){return i(a)}:function(){return i||2.8},x,w,_=FX(u,e.type,!0,s),S=function(){return w=!1},T=aa,M=aa,A=function(){c=xa(u,pr),M=Av(Jl?1:0,c),r&&(T=Av(0,xa(u,Ti))),x=jd},C=function(){f._gsap.y=Vg(parseFloat(f._gsap.y)+m.offset)+"px",f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(f._gsap.y)+", 0, 1)",m.offset=m.cacheID=0},R=function(){if(w){requestAnimationFrame(S);var D=Vg(a.deltaY/2),I=M(m.v-D);if(f&&I!==m.v+m.offset){m.offset=I-m.v;var N=Vg((parseFloat(f&&f._gsap.y)||0)-m.offset);f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+N+", 0, 1)",f._gsap.y=N+"px",m.cacheID=jt.cache,pl()}return!0}m.offset&&C(),w=!0}
5524,j,k,P,O,L=function(){A(),j.isActive()&&j.vars.scrollY>c&&(m()>c?j.progress(1)&&m(c):j.resetTo("scrollY",c))};return f&&nt.set(f,{y:"+=0"}),e.ignoreCheck=function(F){return Jl&&F.type==="touchmove"&&R()||p>1.05&&F.type!=="touchstart"||a.isGesturing||F.touches&&F.touches.length>1},e.onPress=function(){w=!1;var F=p;p=Vg((Rt.visualViewport&&Rt.visualViewport.scale||1)/g),j.pause(),F!==p&&jT(u,p>1.01?!0:r?!1:"x"),k=v(),P=m(),A(),x=jd},e.onRelease=e.onGestureStart=function(F,D){if(m.offset&&C(),!D)O.restart(!0);else{jt.cache++;var I=b(),N,G;r&&(N=v(),G=N+I*.05*-F.velocityX/.227,I*=aF(v,N,G,xa(u,Ti)),j.vars.scrollX=T(G)),N=m(),G=N+I*.05*-F.velocityY/.227,I*=aF(m,N,G,xa(u,pr)),j.vars.scrollY=M(G),j.invalidate().duration(I).play(.01),(Jl&&j.vars.scrollY>=c||N>=c-1)&&nt.to({},{onUpdate:L,duration:I})}o&&o(F)},e.onWheel=function(){j._ts&&j.pause(),ti()-y>1e3&&(x=0,y=ti())},e.onChange=function(F,D,I,N,G){if(jd!==x&&A(),D&&r&&v(T(N[2]===D?k+(F.startX-F.x):v()+D-N[1])),I){m.offset&&C();var q=G[2]===I,W=q?P+F.startY-F.y:m()+I-G[1],Y=M(W);q&&W!==Y&&(P+=Y-W),m(Y)}(I||D)&&pl()},e.onEnable=function(){jT(u,r?!1:"x"),wt.addEventListener("refresh",L),Tr(Rt,"resize",L),m.smooth&&(m.target.style.scrollBehavior="auto",m.smooth=v.smooth=!1),_.enable()},e.onDisable=function(){jT(u,!0),Sr(Rt,"resize",L),wt.removeEventListener("refresh",L),_.kill()},e.lockAxis=e.lockAxis!==!1,a=new er(e),a.iOS=Jl,Jl&&!m()&&m(1),Jl&&nt.ticker.add(aa),O=a._dc,j=nt.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:DX(m,m(),function(){return j.pause()})},onUpdate:pl,onComplete:O.vars.onComplete}),a};wt.sort=function(t){if(oi(t))return Mt.sort(t);var e=Rt.pageYOffset||0;return wt.getAll().forEach(function(n){return n._sortY=n.trigger?e+n.trigger.getBoundingClientRect().top:n.start+Rt.innerHeight}),Mt.sort(t||function(n,r){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})};wt.observe=function(t){return new er(t)};wt.normalizeScroll=function(t){if(typeof t>"u")return yi;if(t===!0&&yi)return yi.enable();if(t===!1){yi&&yi.kill(),yi=t;return}var e=t instanceof er?t:K_e(t);return yi&&yi.target===e.target&&yi.kill(),Yd(e.target)&&(yi=e),e};wt.core={_getVelocityProp:SR,_inputObserver:FX,_scrollers:jt,_proxies:Ma,bridge:{ss:function(){oo||Kd("scrollStart"),oo=ti()},ref:function(){return Zr}}};CX()&&nt.registerPlugin(wt);mn.registerPlugin(wt);const Hi=({children:t,scrollContainerRef:e,containerClassName:n="",textClassName:r="",animationDuration:i=.8,ease:s="power2.out",scrollStart:o="top 85%",scrollEnd:a="bottom 15%",stagger:c=.05})=>{const u=E.useRef(null),d=E.useMemo(()=>{const f=(typeof t=="string"?t:"").split(" ");let m=0;return f.map((v,p)=>l.jsxs("span",{className:"word",children:[v.split("").map(g=>l.jsx("span",{className:"char",children:g},m++)),p<f.length-1&&l.jsx("span",{className:"char",children:"Â "},m++)]},`word-${p}`))},[t]);return E.useEffect(()=>{const h=u.current;if(!h)return;const f=h.querySelectorAll(".char");if(f.length===0)return;mn.set(f,{opacity:0,y:60,rotationX:-90,transformOrigin:"50% 50%"});const m=mn.timeline({scrollTrigger:{trigger:h,start:o,end:a,toggleActions:"play none none reverse",once:!1,onEnter:()=>console.log("ScrollFloat triggered:",t)}});return m.to(f,{duration:i,opacity:1,y:0,rotationX:0,ease:s,stagger:{amount:c*f.length,from:"start"}}),()=>{wt.getAll().forEach(v=>{v.trigger===h&&v.kill()}),m.kill()}},[t,e,i,s,o,a,c]),l.jsx("div",{ref:u,className:`scroll-float ${n}`,children:l.jsx("span",{className:`scroll-float-text ${r}`,children:d})})},UX=()=>{const t=E.useRef(null),{scrollYProgress:e}=Uk({target:t,offset:["start end","center center"]}),n=fn(e,[0,.6],["-50%","0%"]),r=fn(e,[0,.4],[0,1]),i=fn(e,[.1,.95],["80%","0%"]),s=fn(e,[.1,.6],[0,1]),o=fn(e,[.15,.8],["-60%","0%"]),a=fn(e,[.12,.65],[0,1]);return l.jsxs("section",{className:"py-12 md:py-20 relative",children:[l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center mb-6 md:mb-8 relative z-20",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",
5524scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-3xl sm:text-4xl md:text-5xl font-bold text-foreground mb-4",children:"One Beautiful Look. One Million Possibilities."}),l.jsx("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Intuitive switches and a responsive UI deliver a seamless experience every time. Craft your perfect sound with effortless control."})]}),l.jsxs("div",{className:"relative overflow-hidden",children:[l.jsx("div",{className:"absolute top-0 left-0 right-0 h-24 md:h-32 pointer-events-none z-10",style:{background:"linear-gradient(to bottom, hsl(var(--background)) 0%, transparent 100%)"}}),l.jsxs("div",{ref:t,className:"max-w-6xl mx-auto px-4 flex justify-center items-end gap-0 h-[400px] sm:h-[550px] md:h-[700px] lg:h-[850px]",children:[l.jsx(ve.div,{className:"relative flex-shrink-0 overflow-hidden",style:{width:"34%",y:n,opacity:r},children:l.jsx("img",{src:"/images/left.png",alt:"RORA interface preview",className:"w-full h-auto object-contain"})}),l.jsx(ve.div,{className:"relative flex-shrink-0 overflow-hidden",style:{width:"33%",y:i,opacity:s},children:l.jsx("img",{src:"/images/middle.png",alt:"RORA equalizer interface",className:"w-full h-auto object-contain"})}),l.jsx(ve.div,{className:"relative flex-shrink-0 overflow-hidden",style:{width:"33%",y:o,opacity:a},children:l.jsx("img",{src:"/images/right.png",alt:"RORA spatial audio interface",className:"w-full h-auto object-contain"})})]})]})]})},BX=()=>{const t=E.useRef(null),{scrollYProgress:e}=Uk({target:t,offset:["start end","center center"]}),n=fn(e,[0,.7],["-60%","0%"]),r=fn(e,[0,.5],[0,1]),i=fn(e,[.1,.8],["60%","0%"]),s=fn(e,[.1,.6],[0,1]);return l.jsxs("section",{className:"py-12 md:py-20 overflow-hidden",children:[l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center mb-8 md:mb-12 py-[30px]",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-3xl sm:text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Find the Perfect Tune. And Pass It On."}),l.jsx("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Share your custom presets with friends in one tap. Send your perfect sound settings and let others experience music the way you do."})]}),l.jsxs("div",{ref:t,className:"max-w-6xl mx-auto px-4 flex justify-center items-center gap-4 sm:gap-8 md:gap-12 pt-0 pl-0 pr-0",children:[l.jsx(ve.div,{className:"relative flex-shrink-0",style:{width:"45%",x:n,opacity:r},children:l.jsx("img",{src:"/images/send.png",alt:"Send audio preset",className:"w-full h-auto object-contain"})}),l.jsx(ve.div,{className:"relative flex-shrink-0",style:{width:"45%",x:i,opacity:s},children:l.jsx("img",{src:"/images/receive.png",alt:"Receive audio preset",className:"w-full h-auto object-contain"})})]})]})},uF="rgba(255, 255, 255, 0.92)";function Q_e(){return l.jsx("div",{className:"mb-3 flex items-center gap-0.5","aria-label":"5 out of 5 stars",children:Array.from({length:5}).map((t,e)=>l.jsx(TN,{className:"h-3.5 w-3.5",style:{color:uF,fill:uF},"aria-hidden":"true"},e))})}function Kx({t}){return l.jsx("div",{className:"mb-3 rounded-2xl bg-white/[0.04] p-1.5 shadow-sm backdrop-blur-md",children:l.jsxs("div",{className:"rounded-[12px] border border-white/[0.08] bg-white/[0.03] p-5",children:[l.jsx(Q_e,{}),l.jsxs("p",{className:"mb-4 whitespace-pre-line text-sm leading-relaxed text-zinc-300",children:["â",t.quote,"â"]}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:`flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg bg-gradient-to-br ${t.bg} text-sm font-semibold text-white shadow-inner`,"aria-hidden":"true",children:t.initials}),l.jsxs("div",{className:"min-w-0",children:[l.jsx("div",{className:"truncate text-sm font-semibold text-white/95",children:t.name}),l.jsx("div",{className:"truncate text-xs text-zinc-500",children:t.meta})]})]})]})})}function zX(){const t=[{quote:"Rora is a true game changer for me. I can experience every song exactly how I want, directly in my browser, with zero effort. On top of that, the UI is incredibly beautiful and immersiveâI've never seen anything quite like it. You can really tell how much love went into this product.",name:"K.L.",meta:"Dec 17, 2025",initials:"K",bg:"from-[#ff4d9b] to-[#9945ff]"},{quote:"Best Audio Equalizer I have ever used. Audio is super customizable.",name:"M.",meta:"Mar 22, 2026",initials:"M",bg:"from-[#9945ff] to-[#3adec2]"},{quote:"Very complete â more control and precision than the rest.",name:"D.",meta:"Jan 26, 2026 · translated from Spanish",initials:"D",bg:"from-[#3adec2] to-[#ff4d9b]"},{quote:"Solid stuff, no lie.",name:"F.S.",meta:"Apr 20, 2026 · translated from Malay",initials:"F",bg:"from-[#9945ff] to-[#E2628A]"},{quote:"Great",name:"E.P.F.",meta:"Apr 15, 2026",initials:"E",bg:"from-[#3adec2] to-[#9945ff]"},{quote:"ð¥",name:"K.",meta:"Mar 11, 2026",initials:"K",bg:"from-[#ff4d9b] to-[#3adec2]"}],e=[[t[0],t[3]],[t[1],t[4]],[t[2],t[5]]],n=E.useRef(null),r=E.useRef(null),i=E.useRef(null),s=E.useRef(null);return E.useEffect(()=>
5524{const o=n.current,a=r.current,c=i.current,u=s.current;let d=0,h=0,f=0,m=0,v=0;const p=()=>{if(u){m+=.4;const g=u.scrollHeight/2;m>=g&&(m=0),u.style.transform=`translateY(-${m}px)`}if(o){d+=.4;const g=o.scrollHeight/2;d>=g&&(d=0),o.style.transform=`translateY(-${d}px)`}if(a){h+=.5;const g=a.scrollHeight/2;h>=g&&(h=0),a.style.transform=`translateY(-${h}px)`}if(c){f+=.35;const g=c.scrollHeight/2;f>=g&&(f=0),c.style.transform=`translateY(-${f}px)`}v=requestAnimationFrame(p)};return v=requestAnimationFrame(p),()=>cancelAnimationFrame(v)},[]),l.jsx("section",{className:"relative w-full overflow-hidden py-16 sm:py-20",children:l.jsxs("div",{className:"mx-auto max-w-[1300px] px-4 sm:px-6 lg:px-8",children:[l.jsxs("div",{className:"mb-10 flex flex-col items-start justify-between gap-5 sm:flex-row sm:items-end lg:mb-14",children:[l.jsxs(ve.h2,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.45},className:"text-3xl font-semibold leading-tight tracking-tight text-white sm:text-4xl lg:text-5xl",children:["Loved by listeners ",l.jsx("br",{className:"hidden sm:block"})," around the world"]}),l.jsxs(ve.a,{initial:{opacity:0}
5524,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.4,delay:.1},href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-2 whitespace-nowrap rounded-full border border-white/15 bg-white/[0.06] px-5 py-2.5 text-sm font-medium text-white/90 backdrop-blur-md transition-colors hover:bg-white/[0.12] hover:text-white",children:["Read all reviews",l.jsx(Xc,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]}),l.jsx("div",{className:"relative sm:hidden",children:l.jsxs("div",{className:"relative h-[480px] overflow-hidden",children:[l.jsx("div",{ref:s,className:"will-change-transform",children:[...t,...t].map((o,a)=>l.jsx(Kx,{t:o},`mobile-${a}`))}),l.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-background via-background/80 to-transparent"}),l.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-24 bg-gradient-to-t from-background via-background/80 to-transparent"})]})}),l.jsxs("div",{className:"relative hidden gap-4 sm:grid sm:grid-cols-2 lg:grid-cols-3",children:[l.jsxs("div",{className:"relative h-[520px] overflow-hidden",children:[l.jsx("div",{ref:n,className:"will-change-transform",children:[...e[0],...e[0]].map((o,a)=>l.jsx(Kx,{t:o},`c1-${a}`))}),l.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-background to-transparent"}),l.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-24 bg-gradient-to-t from-background to-transparent"})]}),l.jsxs("div",{className:"relative h-[520px] overflow-hidden",children:[l.jsx("div",{ref:r,className:"will-change-transform",children:[...e[1],...e[1],...e[1]].map((o,a)=>l.jsx(Kx,{t:o},`c2-${a}`))}),l.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-background to-transparent"}),l.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-24 bg-gradient-to-t from-background to-transparent"})]}),l.jsxs("div",{className:"relative hidden h-[520px] overflow-hidden lg:block",children:[l.jsx("div",{ref:i,className:"will-change-transform",children:[...e[2],...e[2],...e[2]].map((o,a)=>l.jsx(Kx,{t:o},`c3-${a}`))}),l.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-background to-transparent"}),l.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-24 bg-gradient-to-t from-background to-transparent"})]})]})]})})}const Z_e=new Set(["AT","BE","CY","EE","FI","FR","DE","GR","IE","IT","LV","LT","LU","MT","NL","PT","SK","SI","ES","HR"]);function dF(){if(typeof navigator>"u")return"USD";try{const t=navigator.language||"en-US",e=new Intl.Locale(t).maximize().region;return e==="CH"?"CHF":e==="GB"?"GBP":e&&Z_e.has(e)?"EUR":"USD"}catch{return"USD"}}const hF="rora-fx-cache-v1",J_e=24*60*60*1e3,Qx={CHF:1,USD:1.13,EUR:1.05,GBP:.9};async function eSe(){try{const t=localStorage.getItem(hF);if(t){const e=JSON.parse(t);if(Date.now()-e.fetchedAt<J_e)return e.rates}}catch{}try{const t=await fetch("https://api.frankfurter.app/latest?from=CHF&to=USD,EUR,GBP",{cache:"force-cache"});if(!t.ok)throw new Error(`fx fetch ${t.status}`);const e=await t.json(),n={CHF:1,USD:e.rates.USD??Qx.USD,EUR:e.rates.EUR??Qx.EUR,GBP:e.rates.GBP??Qx.GBP};try{localStorage.setItem(hF,JSON.stringify({rates:n,fetchedAt:Date.now()}))}catch{}return n}catch{return Qx}}function tSe(t){return t<5?Math.round(t*2)/2:t<50?Math.round(t):Math.round(t/5)*5}function nSe(t,e){try{const n=typeof navigator<"u"?navigator.language:"en-US";return new Intl.NumberFormat(n,{style:"currency",currency:e,maximumFractionDigits:t%1===0?0:2,minimumFractionDigits:0}).format(t)}catch{return`${t} ${e}`}}function rSe(t){const e=typeof window>"u"?"USD":dF(),[n,r]=E.useState(e),[i,s]=E.useState(t),[o,a]=E.useState(e!=="CHF");return E.useEffect(()=>{let c=!1;const u=dF();if(r(u),u==="CHF"){s(t),a(!1);return}return a(!0),eSe().then(d=>{if(c)return;const h=d[u]??1;s(tSe(t*h)),a(!1)}),()=>{c=!0}},[t]),{currency:n,amount:i,display:nSe(i,n),loading:o}}const iSe="https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",sSe=10,$X=727,oSe=649,aSe=650,fF=aSe/$X*100,$l=.5,lSe=()=>{const t=E.useRef(null),e=zk(),{scrollYProgress:n}=Uk({target:t,offset:["start start","end end"]}),r=iye(n,{stiffness:140,damping:32,mass:.35}),i=fn(r,[0,.08],[0,1]),s=fn(r,[0,.08],[30,0]),o=fn(r,[.04,$l],["-125%","0%"]),a=fn(r,[.04,$l],["125%","0%"]),c=fn(r,[.04,$l],["-8%","0%"]),u=fn(r,[.04,$l],["-8%","0%"]),d=fn(r,[.04,$l],[-10,0]),h=fn(r,[.04,$l],[10,0]),f=fn(r,[.04,.2],[0,1]),m=fn(r,[.32,$l,.62],[0,1,.6]),v=fn(m,[0,1],[0,60]),p=fn(m,[0,1],[0,100]),g=YM`drop-shadow(0 0 ${v}px rgba(226, 98, 138, 0.55)) drop-shadow(0 0 ${p}
5524px rgba(98, 0, 238, 0.45))`,y=fn(r,[$l,.56,.64],[1,1.05,1]),b=fn(r,[.55,.74],[0,1]),x=fn(r,[.55,.74],[30,0]),w=fn(r,[.55,.74],[8,0]),_=YM`blur(${w}px)`,S=rSe(sSe),T=!!e,M=l.jsxs("div",{className:"relative z-10 mt-5 sm:mt-6 flex flex-col items-center text-center",children:[l.jsxs("p",{className:"text-base sm:text-lg md:text-xl text-white mb-3 sm:mb-4 max-w-md px-4",children:[l.jsx("span",{className:"font-semibold",children:"RORA is free"})," to use, with many incredible features."]}),l.jsxs("a",{href:iSe,target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center gap-2 px-7 py-3 text-base sm:text-lg font-semibold text-white rounded-full",children:[l.jsx(Vr,{className:"w-4 h-4 sm:w-5 sm:h-5"}),"Get RORA Free for Chrome"]}),l.jsxs("div",{className:"my-4 sm:my-5 flex items-center gap-3 w-full max-w-xs",children:[l.jsx("div",{className:"flex-1 h-px bg-white/10"}),l.jsx("span",{className:"text-[10px] font-medium uppercase tracking-[0.2em] text-white/40",children:"Or own it forever"}),l.jsx("div",{className:"flex-1 h-px bg-white/10"})]}),l.jsxs("div",{className:"inline-flex items-center gap-2 mb-3 px-3 py-1 rounded-full bg-white/[0.06] border border-white/[0.12] backdrop-blur-md",children:[l.jsx(X9,{className:"w-3.5 h-3.5",style:{color:"#E2628A",fill:"#E2628A"},"aria-hidden":"true"}),l.jsx("span",{className:"text-xs font-medium uppercase tracking-wider text-white/80",children:"Lifetime, no subscription"})]}),l.jsxs("p",{className:"text-sm sm:text-base text-white/85 mb-4 max-w-md px-4",children:["Own additional extended features for a lifetime for just"," ",l.jsx("span",{className:`font-semibold bg-gradient-to-r from-[#E2628A] to-[#6200EE] bg-clip-text text-transparent transition-opacity duration-300 ${S.loading?"opacity-60":"opacity-100"}`,children:S.display}),"."]}),l.jsxs(mt,{to:"/pricing",className:"inline-flex items-center justify-center gap-2 px-5 py-2 text-sm sm:text-base font-medium text-white/85 rounded-full bg-white/[0.05] border border-white/[0.12] hover:bg-white/[0.1] hover:text-white transition-colors",children:["See All Plans",l.jsx(Xc,{className:"w-4 h-4"})]})]}),A=l.jsxs(ve.div,{className:"relative z-0 w-[190px] sm:w-[240px] md:w-[280px] lg:w-[320px]",style:{aspectRatio:`${$X} / ${oSe}`,scale:T?1:y,filter:T?void 0:g,willChange:"transform, filter"},children:[l.jsx(ve.img,{src:"/images/r-heart-left.png",alt:"","aria-hidden":"true",draggable:!1,className:"absolute top-0 left-0 h-full select-none pointer-events-none",style:{width:`${fF}%`,x:T?0:o,y:T?0:c,rotate:T?0:d,opacity:T?1:f,willChange:"transform, opacity"}}),l.jsx(ve.img,{src:"/images/r-heart-right.png",alt:"","aria-hidden":"true",draggable:!1,className:"absolute top-0 right-0 h-full select-none pointer-events-none",style:{width:`${fF}%`,x:T?0:a,y:T?0:u,rotate:T?0:h,opacity:T?1:f,willChange:"transform, opacity"}}),l.jsx("span",{className:"sr-only",children:"Two RORA R logos forming a heart"})]});return T?l.jsx("section",{className:"relative w-full py-12 sm:py-16 md:py-20 overflow-hidden","aria-label":"A Lifetime Of Sound. RORA is free; an optional lifetime upgrade is available.",children:l.jsxs("div",{className:"relative flex flex-col items-center justify-center px-4 max-w-5xl mx-auto",children:[l.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10",children:l.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 h-[60vh] w-[60vh] rounded-full bg-[radial-gradient(circle,rgba(226,98,138,0.18),rgba(98,0,238,0.12)_40%,transparent_70%)] blur-3xl"})}),l.jsx("h2",{className:"relative z-10 text-center font-bold tracking-tight text-3xl sm:text-4xl md:text-5xl lg:text-6xl mb-4 sm:mb-5",children:l.jsx("span",{className:"bg-gradient-to-r from-[#E2628A] via-[#9945ff] to-[#6200EE] bg-clip-text text-transparent",children:"A Lifetime Of Sound."})}),A,M]})}):l.jsx("section",{"aria-label":"A Lifetime Of Sound. RORA is free; an optional lifetime upgrade is available.",children:l.jsx("div",{ref:t,className:"relative w-full",style:{height:"210vh"},children:l.jsxs("div",{className:"sticky top-24 h-[calc(100vh-6rem)] w-full overflow-hidden flex flex-col items-center justify-center px-4",children:[l.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10",children:l.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 h-[60vh] w-[60vh] rounded-full bg-[radial-gradient(circle,rgba(226,98,138,0.18),rgba(98,0,238,0.12)_40%,transparent_70%)] blur-3xl"})}),l.jsx(ve.h2,{style:{y:s,opacity:i},className:"relative z-10 text-center font-bold tracking-tight text-3xl sm:text-4xl md:text-5xl lg:text-6xl mb-6 sm:mb-8",children:l.jsx("span",{className:"bg-gradient-to-r from-[#E2628A] via-[#9945ff] to-[#6200EE] bg-clip-text text-transparent",children:"A Lifetime Of Sound."})}),A,l.jsx(ve.div,{style:{opacity:b,y:x,filter:_},children:M})]})})})},Ru="#ff4d9b",ia="#9945ff",Pu="#3adec2",cSe="Make this sound more like ...",mF=[{prompt:"Make this sound bright",reply:"Brightened the sound with a touch of lift."},{prompt:"Give me that late-night bedroom vibe",reply:"Pulled it further away â soft, distant, dreamy."},{prompt:"I need energy for my workout",reply:"Punched up the bass and turned up the drive."},{prompt:"Make it feel like a cathedral",reply:"Opened the space with a long, airy reverb."}],uSe=()=>l.jsx("span",{className:"flex items-center gap-1 px-0.5 py-1.5","aria-hidden":"true",children:[0,1,2].map(t=>l.jsx(ve.span,{className:"h-1.5 w-1.5 rounded-full bg-zinc-400",animate:{y:[0,-3,0],opacity:[.35,1,.35]},transition:{duration:.9,repeat:1/0,delay:t*.14,ease:"easeInOut"}},t))}),MO=()=>{const t=E.useRef(null),e=bG(t,{amount:.35}),n=!!zk(),[r,i]=E.useState("idle"),[s,o]=E.useState(0),[a,c]=E.useState(""),u=mF[n?0:s];E.useEffect(()=>{if(n||!e)return;let v;if(r==="idle")v=setTimeout(()=>i("typing"),900);else if(r==="typing")if(a.length<u.prompt.length){const g=u.prompt[a.length]===" "?95:34+a.length*53%46;v=setTimeout(()=>c(u.prompt.slice(0,a.length+1)),g)}else v=setTimeout(()=>i("sending"),420);else r==="sending"?v=setTimeout(()=>i("thinking"),380):r==="thinking"?v=setTimeout(()=>i("answer"),1050):r==="answer"?v=setTimeout(()=>i("exit"),3200):r==="exit"&&(v=setTimeout(()=>{c(""),o(p=>(p+1)%mF.length),i("typing")},500));return()=>clearTimeout(v)},[r,a,s,e,n,u.prompt]);const d=n?u.prompt:a,h=n||r==="thinking"||r==="answer",f=n||r==="answer",m=(v,p=24)=>n?{}:{initial:{opacity:0,y:p},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.4},transition:{duration:.7,delay:v,ease:[.22,1,.36,1]}};return l.jsx("section",{ref:t,className:"relative py-20 sm:py-28 px-4 sm:px-6 overflow-x-clip","aria-label":"Conjure: chat with RORA and it adjusts the filters to your feeling",children:l.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[l.jsx(ve.p,{...m(0),className:"text-sm sm:text-base font-semibold text-zinc-400 tracking-wide mb-3 sm:mb-4",children:"New Feature"}),l.jsxs(ve.h2,{...m(.08),className:"relative inline-block mb-5 sm:mb-6",children:[l.jsx(ve.span,{className:"block text-5xl sm:text-6xl md:text-7xl font-bold tracking-tight bg-clip-text text-transparent pr-1",style:{backgroundImage:`linear-gradient(90deg, ${Ru}, ${ia}, ${Pu})`,backgroundSize:"200% auto"},animate:n?void 0:{backgroundPosition:["0% 50%","100% 50%","0% 50%"]},transition:{duration:9,repeat:1/0,ease:"easeInOut"},children:"Conjure"}),l.jsx(ve.span,{"aria-hidden":"true",className:"absolute -right-6 sm:-right-8 -top-1 sm:-top-2",style:{color:ia},animate:n?void 0:{color:[ia,Pu,ia]},transition:{duration:9,repeat:1/0,ease:"easeInOut"},children:l.jsx(ho,{className:"w-5 h-5 sm:w-7 sm:h-7"})})]}),l.jsx(ve.p,{...m(.14),className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto mb-10 sm:mb-12",children:"Chat with your sound. Describe a feeling, and RORA's built-in AI adjusts the filters to match it â live, while the music plays."}),l.jsx("p",{className:"sr-only",children:"For example, type âMake this sound brightâ and RORA replies âBrightened the sound with a touch of lift.â"}),l.jsx("div",{"aria-hidden":"true",children:l.jsxs(ve.div,{className:"relative w-full max-w-xl sm:max-w-2xl mx-auto",...n?{}:{initial:{opacity:0,y:36,scale:.92},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,amount:.5},transition:{type:"spring",stiffness:170,damping:19,mass:.9,delay:.2}},children:[l.jsxs("div",{className:"relative",children:[l.jsxs("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",children:[l.jsx(ve.div,{className:"absolute -inset-x-1 -top-1 -bottom-3 rounded-full blur-2xl",style:{background:`linear-gradient(90deg, ${Ru}, ${ia}, ${Pu})`},animate:n?{opacity:.4}:{opacity:[.3,.55,.3]},transition:{duration:4.5,repeat:1/0,ease:"easeInOut"}}),l.jsx("div",{className:"absolute -inset-0.5 rounded-full blur-[10px] opacity-60",style:{background:`linear-gradient(90deg, ${Ru}, ${ia}, ${Pu})`}})]}),l.jsxs("div",{className:"relative rounded-full p-[2.5px] overflow-hidden",children:[l.jsx(ve.div,{className:"absolute left-1/2 top-1/2 w-[130%] aspect-square",style:{x:"-50%",y:"-50%",background:`conic-gradient(from 0deg, ${Ru}, ${ia}, ${Pu}, ${ia}, ${Ru})`},animate:n?void 0:{rotate:360},transition:{duration:7,repeat:1/0,ease:"linear"}}),l.jsxs("div",{className:"relative rounded-full bg-[#0d0d11] flex items-center gap-3 pl-5 sm:pl-7 pr-2.5 sm:pr-3 h-14 sm:h-16",children:[l.jsxs("div",{className:"flex-1 min-w-0 flex items-center text-left text-base sm:text-lg",children:[d?l.jsx(ve.span,{className:"text-zinc-100 truncate",animate:{o
5524pacity:r==="exit"?0:1},transition:{duration:.25},children:d}):r==="idle"?l.jsx("span",{className:"text-zinc-500 truncate",children:cSe}):null,!n&&l.jsx(ve.span,{className:"inline-block w-px h-[1.15em] bg-zinc-300 ml-1 shrink-0",animate:{opacity:[1,1,0,0]},transition:{duration:1,repeat:1/0,times:[0,.5,.5,1]}})]}),l.jsxs(ve.div,{className:"relative h-9 w-9 sm:h-10 sm:w-10 rounded-full border border-white/25 bg-white/[0.06] flex items-center justify-center shrink-0",animate:r==="sending"?{scale:[1,.8,1.08,1],borderColor:"rgba(255,255,255,0.6)"}:{scale:1,borderColor:"rgba(255,255,255,0.25)"},transition:{duration:.38},children:[l.jsx(Ca,{children:r==="sending"&&l.jsx(ve.span,{className:"absolute inset-0 rounded-full",style:{background:`linear-gradient(135deg, ${Ru}, ${ia}, ${Pu})`},initial:{opacity:0},animate:{opacity:.85},exit:{opacity:0},transition:{duration:.3}})}),l.jsx(yse,{className:"relative w-4 h-4 sm:w-5 sm:h-5 text-white"})]})]})]})]}),l.jsx("div",{className:"mt-4 sm:mt-5 min-h-[72px] sm:min-h-[76px] flex items-start",children:l.jsx(Ca,{children:h&&l.jsxs(ve.div,{className:"flex items-start gap-2.5 max-w-[88%]",style:{transformOrigin:"left top"},initial:n?!1:{opacity:0,y:14,scale:.85},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-8,scale:.95,transition:{duration:.3}},transition:{type:"spring",stiffness:360,damping:26},children:[l.jsx("span",{className:"h-7 w-7 rounded-full flex items-center justify-center shrink-0 mt-0.5",style:{background:`linear-gradient(135deg, ${Ru}, ${ia}, ${Pu})`},children:l.jsx(ho,{className:"w-3.5 h-3.5 text-white"})}),l.jsx(ve.div,{layout:!0,className:"rounded-2xl rounded-tl-md bg-white/[0.07] border border-white/[0.12] backdrop-blur-md px-4 py-2.5 text-left",transition:{layout:{type:"spring",stiffness:300,damping:28}},children:l.jsx(Ca,{mode:"wait",initial:!1,children:f?l.jsx(ve.span,{className:"block text-sm sm:text-base text-zinc-100",initial:{opacity:0,filter:"blur(4px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0},transition:{duration:.3},children:u.reply},"reply"):l.jsx(ve.span,{exit:{opacity:0},transition:{duration:.15},children:l.jsx(uSe,{})},"dots")})})]},`bubble-${n?0:s}`)})})]})}),l.jsxs(ve.p,{...m(.3,12),className:"mt-6 sm:mt-8 inline-flex items-center gap-2 text-xs sm:text-sm text-zinc-500",children:[l.jsx(K9,{className:"w-3.5 h-3.5 shrink-0","aria-hidden":"true"}),"Powered by a local-only LLM â your words never leave your device."]})]})})},jR=12,P1=8,pF=`#version 300 es 5525in vec2 position; 5526void main() { 5527 gl_Position = vec4(position, 0.0, 1.0); 5528} 5529`,dSe=`#version 300 es 5530precision highp float; 5531 5532uniform float uTime; 5533uniform vec2 uResolution; 5534uniform vec3 uColors[${P1}]; 5535uniform int uColorCount; 5536uniform int uStrandCount; 5537uniform float uSpeed; 5538uniform float uAmplitude; 5539uniform float uWaviness; 5540uniform float uThickness; 5541uniform float uGlow; 5542uniform float uTaper; 5543uniform float uSpread; 5544uniform float uFan; 5545uniform float uFanStart; 5546uniform float uFanEnd; 5547uniform float uFanSpread; 5548uniform float uTail; 5549uniform float uEdgeFade; 5550uniform float uBlackLevel; 5551uniform float uHueShift; 5552uniform float uIntensity; 5553uniform float uOpacity; 5554uniform float uScale; 5555uniform float uSaturation; 5556 5557out vec4 fragColor; 5558 5559const float PI = 3.14159265; 5560 5561vec3 spectrum(float t) { 5562 return 0.5 + 0.5 * cos(2.0 * PI * (t + vec3(0.00, 0.33, 0.67))); 5563} 5564 5565vec3 samplePalette(float t) { 5566 t = fract(t); 5567 float scaled = t * float(uColorCount); 5568 int idx = int(floor(scaled)); 5569 float blend = fract(scaled); 5570 int nextIdx = idx + 1; 5571 if (nextIdx >= uColorCount) nextIdx = 0; 5572 return mix(uColors[idx], uColors[nextIdx], blend); 5573} 5574 5575vec3 strandColor(float t) { 5576 if (uColorCount > 0) return samplePalette(t); 5577 return spectrum(t); 5578} 5579 5580void main() { 5581 vec2 uv = (gl_FragCoord.xy - 0.5 * uResolution) / uResolution.y; 5582 uv /= max(uScale, 0.0001); 5583 5584 // Horizontal position normalised across the visible canvas: 0 = left edge, 5585 // 1 = right edge (independent of aspect ratio and scale). 5586 float halfW = 0.5 * uResolution.x / uResolution.y / max(uScale, 0.0001); 5587 float x01 = clamp((uv.x + halfW) / (2.0 * halfW), 0.0, 1.0); 5588 5589 float e = 0.06 + uIntensity * 0.94; 5590 5591 // Bell envelopes over the horizontal run: the weave is biggest and 5592 // brightest in the centre, converges to a point on the left, and stays 5593 // visible (dimmer, thinner) where the strands lock on the right. 5594 float centerEnv = sin(PI * x01); 5595 float ampEnv = pow(centerEnv, 1.0 + uTaper * 0.3); 5596 float briEnv = mix(0.32, 1.0, centerEnv); 5597 5598 // Soft fade towards every canvas edge so the glow dissolves gently 5599 // instead of being clipped by the canvas bounding box. 5600 float edgeMask = 1.0; 5601 if (uEdgeFade > 0.0) { 5602 float y01 = clamp(uv.y * max(uScale, 0.0001) + 0.5, 0.0, 1.0); 5603 float edgeX = smoothstep(0.0, uEdgeFade * 0.8, x01) 5604 * (1.0 - smoothstep(1.0 - uEdgeFade, 1.0, x01)); 5605 float edgeY = smoothstep(0.0, uEdgeFade * 1.2, y01) 5606 * (1.0 - smoothstep(1.0 - uEdgeFade * 1.2, 1.0, y01)); 5607 edgeMask = edgeX * edgeY; 5608 } 5609 5610 vec3 col = vec3(0.0); 5611 5612 for (int i = 0; i < ${jR}; i++) { 5613 if (i >= uStrandCount) break; 5614 5615 float fi = float(i); 5616 float ph = fi * 1.7 * uSpread; 5617 float freq = (2.0 + fi * 0.35) * uWaviness; 5618 float spd = 1.4 + fi * 1.2; 5619 5620 float tt = uTime * uSpeed; 5621 float w = sin(uv.x * freq + tt * spd + ph) * 0.60 5622 + sin(uv.x * freq * 1.1 - tt * spd * 0.7 + ph * 1.7) * 0.40; 5623 5624 // White tail: for the first uTail of the run the strands stay perfectly
5625 // converged (no wave), reading as one bright "original mix" line. 5626 float waveOn = uTail > 0.0 ? smoothstep(uTail * 0.55, uTail * 1.25, x01) : 1.0; 5627 float amp = (0.1 + 0.02 * e) * uAmplitude * ampEnv * waveOn; 5628 5629 // Fan-out: past uFanStart each strand glides to its own locked height. 5630 // Strand 0 locks highest, the last strand lowest; uFanSpread is the 5631 // fraction of the canvas height the locked strands span. 5632 float fanT = uFan * smoothstep(uFanStart, uFanEnd, x01); 5633 float fy = (fi + 0.5) / float(uStrandCount); 5634 float yTarget = (0.5 - fy) * uFanSpread / max(uScale, 0.0001); 5635 5636 float y = mix(w * amp, yTarget, fanT); 5637 5638 float d = abs(uv.y - y); 5639 float thick = (0.001 + 0.05 * e) * (0.35 + centerEnv) * uThickness; 5640 float g = thick / (d + thick * 0.45); 5641 g = g * g; 5642 5643 // One fixed colour per strand (its own palette entry); the white tail 5644 // blends into that colour as the strands separate. 5645 vec3 cs = strandColor(fi / float(uStrandCount) + uHueShift); 5646 if (uTail > 0.0) { 5647 float colorT = smoothstep(uTail * 0.6, uTail * 1.4, x01); 5648 cs = mix(vec3(1.0), cs, colorT); 5649 } 5650 col += cs * g * briEnv; 5651 } 5652 5653 col *= 0.45 + 0.7 * e; 5654 col = 1.0 - exp(-col * uGlow); 5655 5656 float gray = dot(col, vec3(0.2126, 0.7152, 0.0722)); 5657 col = max(mix(vec3(gray), col, uSaturation), 0.0); 5658 col *= edgeMask; 5659 5660 // Black-level cut: subtract the faint far-field haze so pixels away from 5661 // the threads are truly transparent and no canvas rectangle is visible. 5662 if (uBlackLevel > 0.0) { 5663 col = max(col - vec3(uBlackLevel), 0.0) / (1.0 - uBlackLevel); 5664 } 5665 5666 float lum = max(max(col.r, col.g), col.b); 5667 float alpha = clamp(lum, 0.0, 1.0) * uOpacity; 5668 5669 fragColor = vec4(col * uOpacity, alpha); 5670} 5671`,hSe=`#version 300 es 5672precision highp float; 5673 5674uniform sampler2D uScene; 5675uniform vec2 uResolution; 5676uniform float uRadius; 5677uniform float uRefraction; 5678uniform float uDispersion; 5679 5680out vec4 fragColor; 5681 5682vec2 toUv(vec2 p) { 5683 return p * (uResolution.y / uResolution) + 0.5; 5684} 5685 5686void main() { 5687 vec2 p = (gl_FragCoord.xy - 0.5 * uResolution) / uResolution.y; 5688 float d = length(p); 5689 float r = uRadius; 5690 5691 float edge = fwidth(d) * 1.5; 5692 float mask = 1.0 - smoothstep(r - edge, r + edge, d); 5693 if (mask <= 0.0) { 5694 fragColor = vec4(0.0); 5695 return; 5696 } 5697 5698 // sphere height: 0 at the rim, 1 at the center 5699 float z = sqrt(max(r * r - d * d, 0.0)) / r; 5700 float nd = d / r; // 0 at the center, 1 at the rim 5701 5702 // refraction is confined to a narrow band near the rim; the rest stays undistorted 5703 vec2 dir = d > 0.0 ? p / d : vec2(0.0); 5704 float lens = smoothstep(0.85, 1.0, nd) * pow(nd, 6.0); 5705 vec2 offset = -dir * lens * uRefraction * 0.15; 5706 vec2 disp = -dir * lens * uDispersion * 0.012; 5707 5708 vec3 light; 5709 light.r = texture(uScene, toUv(p + offset - disp)).r; 5710 light.g = texture(uScene, toUv(p + offset)).g; 5711 light.b = texture(uScene, toUv(p + offset + disp)).b; 5712 5713 // neutral fresnel rim (no color tint so the glass stays clear) 5714 float fres = pow(1.0 - z, 3.0); 5715 vec3 rim = vec3(1.0) * fres * 0.18; 5716 5717 // specular highlight from the upper-left 5718 vec2 lightDir = normalize(vec2(-0.55, 0.6)); 5719 float spec = pow(max(dot(p / max(r, 1e-4), lightDir), 0.0), 6.0); 5720 spec *= smoothstep(r, r * 0.55, d); 5721 5722 vec3 emissive = light + rim + vec3(spec) * 0.4; 5723 float emissiveA = clamp(max(max(emissive.r, emissive.g), emissive.b), 0.0, 1.0); 5724 5725 // almost clear glass body: only a faint neutral darkening, mostly near the rim 5726 float bodyA = 0.05 + fres * 0.05; 5727 5728 // composite emissive light over the clear body (premultiplied) 5729 float outA = emissiveA + bodyA * (1.0 - emissiveA); 5730 vec3 outRGB = emissive; 5731 5732 outRGB *= mask; 5733 outA *= mask; 5734 5735 fragColor = vec4(outRGB, outA); 5736} 5737`,gF=t=>{const e=t&&t.length?t:["#ffffff"],n=[];for(let r=0;r<P1;r++){const i=e[r]??e[e.length-1],s=new tR(i);n.push([s.r,s.g,s.b])}return n};function fSe({colors:t=["#FF4242","#7C3AED","#06B6D4","#EAB308"],count:e=3,speed:n=.5,amplitude:r=1,waviness:i=1,thickness:s=.7,glow:o=2.6,taper:a=3,spread:c=1,fan:u=0,fanStart:d=.45,fanEnd:h=.9,fanSpread:f=.75,tail:m=0,edgeFade:v=0,blackLevel:p=0,hueShift:g=0,intensity:y=.6,saturation:b=1.5,opacity:x=1,scale:w=1.5,glass:_=!1,refraction:S=1,dispersion:T=1,glassSize:M=1,className:A="",style:C}){const R=E.useRef(null);R.current={colors:t,count:e,speed:n,amplitude:r,waviness:i,thickness:s,glow:o,taper:a,spread:c,fan:u,fanStart:d,fanEnd:h,fanSpread:f,tail
5737:m,edgeFade:v,blackLevel:p,hueShift:g,intensity:y,saturation:b,opacity:x,scale:w,glass:_,refraction:S,dispersion:T,glassSize:M};const j=E.useRef(null);return E.useEffect(()=>{const k=j.current;if(!k)return;const P=new eO({alpha:!0,premultipliedAlpha:!0,antialias:!0}),O=P.gl;O.clearColor(0,0,0,0),O.enable(O.BLEND),O.blendFunc(O.ONE,O.ONE_MINUS_SRC_ALPHA),O.canvas.style.backgroundColor="transparent";const L=new tO(O);L.attributes.uv&&delete L.attributes.uv;const F=new f1(O,{vertex:pF,fragment:dSe,uniforms:{uTime:{value:0},uResolution:{value:[k.offsetWidth,k.offsetHeight]},uColors:{value:gF(R.current.colors)},uColorCount:{value:Math.min(R.current.colors.length,P1)},uStrandCount:{value:Math.min(R.current.count,jR)},uSpeed:{value:n},uAmplitude:{value:r},uWaviness:{value:i},uThickness:{value:s},uGlow:{value:o},uTaper:{value:a},uSpread:{value:c},uFan:{value:u},uFanStart:{value:d},uFanEnd:{value:h},uFanSpread:{value:f},uTail:{value:m},uEdgeFade:{value:v},uBlackLevel:{value:p},uHueShift:{value:g},uIntensity:{value:y},uOpacity:{value:x},uScale:{value:w},uSaturation:{value:b}}}),D=new p1(O,{geometry:L,program:F}),I=new uwe(O,{width:k.offsetWidth,height:k.offsetHeight}),N=new f1(O,{vertex:pF,fragment:hSe,uniforms:{uScene:{value:I.texture},uResolution:{value:[k.offsetWidth,k.offsetHeight]},uRadius:{value:.46*M},uRefraction:{value:S},uDispersion:{value:T}}}),G=new p1(O,{geometry:L,program:N});k.appendChild(O.canvas);function q(){if(!k)return;const te=k.offsetWidth,Q=k.offsetHeight;P.setSize(te,Q),F.uniforms.uResolution.value=[te,Q],I.setSize(te,Q),N.uniforms.uResolution.value=[te,Q]}window.addEventListener("resize",q),q();let W=0;const Y=te=>{W=requestAnimationFrame(Y);const Q=R.current;F.uniforms.uTime.value=te*.001,F.uniforms.uColors.value=gF(Q.colors),F.uniforms.uColorCount.value=Math.min(Q.colors.length,P1),F.uniforms.uStrandCount.value=Math.min(Math.max(Math.round(Q.count),1),jR),F.uniforms.uSpeed.value=Q.speed,F.uniforms.uAmplitude.value=Q.amplitude,F.uniforms.uWaviness.value=Q.waviness,F.uniforms.uThickness.value=Q.thickness,F.uniforms.uGlow.value=Q.glow,F.uniforms.uTaper.value=Q.taper,F.uniforms.uSpread.value=Q.spread,F.uniforms.uFan.value=Q.fan,F.uniforms.uFanStart.value=Q.fanStart,F.uniforms.uFanEnd.value=Q.fanEnd,F.uniforms.uFanSpread.value=Q.fanSpread,F.uniforms.uTail.value=Q.tail,F.uniforms.uEdgeFade.value=Q.edgeFade,F.uniforms.uBlackLevel.value=Q.blackLevel,F.uniforms.uHueShift.value=Q.hueShift,F.uniforms.uIntensity.value=Q.intensity,F.uniforms.uOpacity.value=Q.opacity,F.uniforms.uScale.value=Q.scale,F.uniforms.uSaturation.value=Q.saturation,Q.glass?(P.render({scene:D,target:I}),N.uniforms.uScene.value=I.texture,N.uniforms.uRefraction.value=Q.refraction,N.uniforms.uDispersion.value=Q.dispersion,N.uniforms.uRadius.value=.46*Q.glassSize,P.render({scene:G})):P.render({scene:D})};return W=requestAnimationFrame(Y),()=>{var te;cancelAnimationFrame(W),window.removeEventListener("resize",q),k&&O.canvas.parentNode===k&&k.removeChild(O.canvas),(te=O.getExtension("WEBGL_lose_context"))==null||te.loseContext()}},[]),l.jsx("div",{ref:j,className:`strands-container ${A}`,style:C})}const HX="#ff4d9b",qg="#9945ff",mSe="#5E8BFF",Yg="#3adec2",NR=[{label:"Vocals",color:HX,icon:Fse},{label:"Drums",color:qg,icon:Rse},{label:"Bass",color:mSe,icon:jse},{label:"Other",color:Yg,icon:Q9}],pSe=[{label:"AI Stem Separation",icon:Ose},{label:"Surround Ready",icon:Ase},{label:"Full Control",icon:Gse}],gSe=()=>l.jsx("div",{className:"absolute inset-0 flex flex-col justify-center gap-5 px-2","aria-hidden":"true",children:NR.map(t=>l.jsx("div",{className:"h-px rounded-full",style:{background:`linear-gradient(90deg, transparent, ${t.color}, transparent)`,boxShadow:`0 0 12px ${t.color}66`}},t.label))}),vSe=()=>{const t=!!zk(),e=E.useRef(null),r=bG(e,{once:!0,amount:.15})&&!t,i=(s,o=24)=>t?{}:{initial:{opacity:0,y:o},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.7,delay:s,ease:[.22,1,.36,1]}};return l.jsx("section",{className:"relative py-20 sm:py-28 px-4 sm:px-6 overflow-x-clip","aria-label":"Unravel: AI stem separation, coming soon",children:l.jsxs("div",{className:"max-w-5xl mx-auto text-center",children:[l.jsxs(ve.div,{...i(0),className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/[0.06] border border-white/[0.12] backdrop-blur-md mb-4 sm:mb-5",children:[l.jsxs("span",{className:"relative flex h-2 w-2","aria-hidden":"true",children:[l.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full opacity-60 animate-ping",style:{backgroundColor:Yg}}),l.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full",style:{backgroundColor:Yg}})]}),l.jsx("span",{className:"text-xs font-medium uppercase tracking-wider text-white/80",children:"Coming Soon"})]}),l.jsx("div",{children:l.jsxs(ve.h2,{...i(.06),className:"relative inline-block mb-3 sm:mb-4",children:[l.jsx(ve.span,{className:"block text-5xl sm:text-6xl md:text-7xl font-bold tracking-tight bg-clip-text text-transparent pr-1",style:{backgroundImage:`linear-gradient(90deg, ${HX}, ${qg}, ${Yg})`,backgroundSize:"200% auto"},animate:t?void 0:{backgroundPosition:["0% 50%","100% 50%","0% 50%"]},transition:{duration:9,repeat:1/0,ease:"easeInOut"},children:"Unravel"}),l.jsx(ve.span,{"aria-hidden":"true",className:"absolute -right-7 sm:-right-9 -top-1.5 sm:-top-2.5",style:{color:qg},animate:t?void 0:{color:[qg,Yg,qg]},transition:{duration:9,repeat:1/0,ease:"easeInOut"},children:l.jsx(xse,{className:"w-5 h-5 sm:w-7 sm:h-7"})})]})}),l.jsx(ve.p,{...i(.12),className:"text-sm sm:text-base font-medium uppercase tracking-[0.35em] text-zinc-400 mb-3 sm:mb-4",children:"One Mix. Every Layer."}),l.jsx(ve.p,{...i(.16),className:"text-base sm:text-lg text-muted-foreground max-w-2xl mx-auto mb-10 sm:mb-14",children:"Unravel splits any mix into its stems, so you can isolate, boost, or mute every layer in real time."}),l.jsx("p",{className:"sr-only",children:"The original mix is separated into four stems: vocals, drums, bass, and other."}),l.jsx(ve.div,{...i(.2),"aria-hidden":"true",children:l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[minmax(0,1fr)_minmax(0,1.6fr)_minmax(0,1fr)] items-center gap-4 md:gap-0",children:[l.jsx("div",{className:"flex flex-col items-center md:items-end gap-3 md:pr-1",children:l.jsx("span",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-[0.25em] text-zinc-400",children:"Original Mix"})}),l.jsx("div",{ref:e,className:"relative h-44 sm:h-56 md:h-64",children:r?l.jsx(fSe,{colors:NR.map(s=>s.color),count:4,speed:.5,amplitude:1.15,waviness:1,thickness:.4,glow:1.9,taper:3,spread:1,fan:1,fanStart:.45,fanEnd:.9,fanSpread:.82,tail:.28,edgeFade:.15,blackLevel:.022,intensity:.55,saturation:1.6,opacity:1,scale:2.4}):l.jsx(gSe,{})}),l.jsx("div",{className:"flex flex-col gap-4 sm:gap-5 items-center md:items-start md:pl-1",children:NR.map((s,o)=>
5737l.jsxs(ve.div,{...i(.25+o*.08,14),className:"flex items-center gap-3",children:[l.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-lg border shrink-0",style:{borderColor:`${s.color}55`,backgroundColor:`${s.color}14`,color:s.color},children:l.jsx(s.icon,{className:"w-4 h-4"})}),l.jsx("span",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-[0.2em]",style:{color:s.color},children:s.label})]},s.label))})]})}),l.jsx(ve.div,{...i(.3,12),className:"mt-10 sm:mt-14 flex flex-wrap items-center justify-center gap-y-3",children:pSe.map((s,o)=>l.jsxs("div",{className:`flex items-center gap-2 px-4 sm:px-6 ${o>0?"border-l border-white/10":""}`,children:[l.jsx(s.icon,{className:"w-4 h-4 text-zinc-400","aria-hidden":"true"}),l.jsx("span",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-[0.2em] text-zinc-400",children:s.label})]},s.label))})]})})},ySe=()=>{const[t,e]=E.useState(!1);Tl();const n=[{name:"Smooth Pro",badge:"Most Popular",icon:"/icons/ionicons/water.svg",description:"FFT-based noise removal reduces unwanted noise, hum, and digital artifacts while preserving your music.",useCase:"Good for cleaning up recordings and reducing background noise"},{name:"Bass Boost",icon:"/icons/ionicons/pulse.svg",description:"Two-stage bass enhancement delivers clean bass boost up to +6.5dB without distortion.",useCase:"Ideal for gym sessions, running, or high-intensity workouts"},{name:"Spatial Audio",icon:"/icons/ionicons/headset.svg",description:"3D sound positioning using binaural panning. Music moves around you in real-time.",useCase:"Best with headphones for gaming, movies, or immersive listening"},{name:"Pitch Shifter",icon:"/icons/ionicons/musical-note.svg",description:"Real-time pitch control up to ±6 semitones without affecting tempo. Sing in your key, every time.",useCase:"Good for karaoke practice and vocal matching"},{name:"Bass Cut",icon:"/icons/ionicons/trending-down.svg",description:"High-pass filtering removes boominess and rumble for clearer vocals.",useCase:"Ideal for improving voice clarity in podcasts and audiobooks"},{name:"Muffler",icon:"/icons/ionicons/volume-off.svg",description:"Low-pass filter creates a warm, distant sound for late-night listening and focus sessions.",useCase:"Good for late-night listening and deep work sessions"},{name:"Visual EQ",icon:"/icons/ionicons/analytics.svg",description:"10-band equalizer with a visual interface. Shape your sound exactly how you want it.",useCase:"Fine-tune frequencies to your preference"},{name:"Reverb",icon:"/icons/ionicons/cube.svg",description:"Convolution reverb adds natural room ambience to your audio.",useCase:"Add a sense of space to your listening"},{name:"Echo",icon:"/icons/ionicons/volume-high.svg",description:"Delay effect adds depth with warm, musical repeats.",useCase:"Add dimension to your listening"},{name:"Tempo Control",icon:"/icons/ionicons/speedometer.svg",description:"Time stretching from 0.5à to 1.0à speed without changing pitch. Learn faster, hear deeper.",useCase:"Good for music transcription and learning complex material"}];return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Let Every Song Be Yours | RORA Audio"}),l.jsx("meta",{name:"description",content:"Transform any song with 10+ real-time audio filters. Bass boost, reverb, spatial audio & more. Free Chrome extension for any music or video streaming site."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/"}),l.jsx("meta",{property:"og:title",content:"Let Every Song Be Yours | RORA Audio"}),l.jsx("meta",{property:"og:description",content:"Transform any song with 10+ real-time audio filters. Bass boost, reverb, spatial audio & more. Free Chrome extension for any music or video streaming site."}),l.jsx("meta",{property:"og:url",content:"https://rora.one/"}),l.jsx("meta",{property:"og:type",content:"website"})]}),l.jsxs("div",{className:"min-h-screen relative overflow-x-clip",children:[l.jsxs("div",{className:"absolute top-0 left-0 right-0 h-screen z-0 pointer-events-none",children:[l.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary-brand/5 via-background to-accent/5"}),l.jsx("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-primary-brand/10 rounded-full blur-3xl"}),l.jsx("div",{className:"absolute top-1/3 right-1/4 w-64 h-64 bg-accent/8 rounded-full blur-2xl"})]}),l.jsxs("div",{className:"relative z-10",children:[l.jsx("section",{className:"relative py-16 sm:py-20 px-4 sm:px-6 text-center pt-[90px] pb-[50px] md:py-[95px]",children:l.jsxs("div",{className:"max-w-5xl mx-auto
5737space-y-6 sm:space-y-8",children:[l.jsxs("div",{className:"space-y-6 sm:space-y-8",children:[l.jsx("div",{className:"flex justify-center",children:l.jsxs("div",{className:"feature-update-pill",role:"status","aria-label":"Major Feature Update, June 2026",children:[l.jsx(ho,{className:"feature-update-pill-icon","aria-hidden":"true"}),l.jsx("span",{className:"feature-update-pill-text",children:"Major Feature Update"}),l.jsx("span",{className:"feature-update-pill-sep","aria-hidden":"true"}),l.jsx("span",{className:"feature-update-pill-date",children:"June 2026"})]})}),l.jsx("img",{src:"/images/rora-logo.png",alt:"RORA Audio Processing Logo",className:"h-[61px] sm:h-[92px] md:h-[122px] lg:h-[154px] xl:h-[185px] w-auto max-w-full mx-auto object-contain"}),l.jsx("div",{className:"soft-separator max-w-lg mx-auto mb-8"}),l.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[l.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-bold text-white leading-tight tracking-tight px-4",children:"Let Every Song Be Yours"}),l.jsx("p",{className:"text-base sm:text-lg md:text-xl lg:text-2xl text-zinc-300 max-w-3xl mx-auto leading-relaxed px-4",children:"Bend, Twist and Personalize Your Browser Audio"})]})]}),l.jsxs("div",{className:"pt-2 pb-4 sm:pt-3 sm:pb-6 flex flex-col items-center gap-4 sm:gap-5",children:[l.jsxs("div",{className:"inline-flex items-center gap-2","aria-label":"4.9 out of 5 stars on the Chrome Web Store, over 1,000 users",children:[l.jsx("div",{className:"flex items-center gap-0.5",children:Array.from({length:5}).map((r,i)=>l.jsx(TN,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5",style:{color:"rgba(255, 255, 255, 0.92)",fill:"rgba(255, 255, 255, 0.92)",opacity:i===4?.9:1},"aria-hidden":"true"},i))}),l.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"4.9 rating · 1,000+ users"})]}),l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center h-auto py-3.5 sm:py-4 px-10 sm:px-14 text-lg sm:text-xl md:text-2xl font-semibold text-white rounded-full",children:[l.jsx(Vr,{className:"w-5 h-5 sm:w-6 sm:h-6 mr-3 text-white flex-shrink-0"}),l.jsx("span",{className:"whitespace-nowrap",children:"Get RORA Free for Chrome"})]}),l.jsx("span",{className:"text-xs sm:text-sm text-white/60",children:"Free to use. 7-day full Max trial included."})]}),l.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 sm:gap-6 text-left max-w-4xl mx-auto px-4",children:[l.jsxs("div",{className:"flex flex-col items-start gap-2 group hover:scale-105 transition-transform",children:[l.jsx(AN,{style:{stroke:"url(#icon-gradient)"},className:"w-5 h-5 sm:w-6 sm:h-6 flex-shrink-0 bg-black/[0.01]"}),l.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground group-hover:text-white transition-colors",children:"Works with all browser audio"})]}),l.jsxs("div",{className:"flex flex-col items-start gap-2 group hover:scale-105 transition-transform",children:[l.jsx(ho,{style:{stroke:"url(#icon-gradient)"},className:"w-5 h-5 sm:w-6 sm:h-6 flex-shrink-0 bg-black/[0.01]"}),l.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground group-hover:text-white transition-colors",children:"Ten audio filters"})]}),l.jsxs("div",{className:"flex flex-col items-start gap-2 group hover:scale-105 transition-transform",children:[l.jsx(nH,{style:{stroke:"url(#icon-gradient)"},className:"w-5 h-5 sm:w-6 sm:h-6 flex-shrink-0 bg-black/[0.02]"}),l.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground group-hover:text-white transition-colors",children:"One-Click Installation"})]}),l.jsxs("div",{className:"flex flex-col items-start gap-2 group hover:scale-105 transition-transform",children:[l.jsx(C0,{style:{stroke:"url(#icon-gradient)"},className:"w-5 h-5 sm:w-6 sm:h-6 flex-shrink-0 bg-black/[0.01]"}),l.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground group-hover:text-white transition-colors",children:"Privacy first - local processing"})]})]}),l.jsx(zX,{}),l.jsx("svg",{width:"0",height:"0",style:{position:"absolute"},children:l.jsx("defs",{children:l.jsxs("linearGradient",{id:"icon-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[l.jsx("stop",{offset:"0%",style:{stopColor:"#E2628A",stopOpacity:1}}),l.jsx("stop",{offset:"100%",style:{stopColor:"#6200EE",stopOpacity:1}})]})})})]})}),l.jsx(ma,{animation:"fade-blur",duration:1e3,threshold:.2,children:l.jsx(pY,{className:"py-[30px] pb-[50px] pt-[5px]"})}),l.jsx(ma,{animation:"fade-blur",duration:800,threshold:.15,children:l.jsx(UX,{})}),l.jsx(ma,{animation:"slide-up",duration:900,threshold:.15,distance:60,children:l.jsx("section",{className:"px-6 bg-neutral-900 py-[40px]",children:l.jsxs("div",{className:"max-w-6xl mx-auto py-0",children:[l.jsxs("div",{className:"text-center mb-16 space-y-4",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",
5737scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-4xl md:text-5xl text-foreground font-bold bg-transparent",children:"10 Different Ways to Twist Your Sound."}),l.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Audio filters for any listening situation"})]}),l.jsxs("div",{style:{padding:"3rem 1rem"},className:"relative mb-12 overflow-visible px-0 py-0",children:[l.jsx(Ed,{pauseOnHover:!0,className:"[--duration:30s]",children:n.slice(0,5).map((r,i)=>l.jsxs("div",{className:"panel-2025 p-3 sm:p-4 space-y-2 sm:space-y-3 text-center group w-40 sm:w-48 mx-1 hover:scale-105 transition-transform",children:[l.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 mx-auto flex items-center justify-center",children:l.jsx("img",{src:r.icon,alt:`${r.name} audio filter`,className:"w-full h-full brightness-0 invert"})}),l.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-white transition-colors",children:r.name})]},i))}),l.jsx(Ed,{reverse:!0,pauseOnHover:!0,className:"[--duration:30s]",children:n.slice(5,10).map((r,i)=>l.jsxs("div",{className:"panel-2025 p-3 sm:p-4 space-y-2 sm:space-y-3 text-center group w-40 sm:w-48 mx-1 hover:scale-105 transition-transform",children:[l.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 mx-auto flex items-center justify-center",children:l.jsx("img",{src:r.icon,alt:`${r.name} audio filter`,className:"w-full h-full brightness-0 invert"})}),l.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-white transition-colors",children:r.name})]},i))}),l.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r from-[#171717]"}),l.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l from-[#171717]"})]}),l.jsx("div",{className:"text-center",children:l.jsxs(mt,{to:"/features",className:"stateful-btn group inline-flex items-center justify-center gap-2 py-3 px-8 text-base sm:text-lg font-semibold text-white rounded-full min-h-[44px]",children:["Explore All Filters",l.jsx(Xc,{className:"w-4 h-4 sm:w-5 sm:h-5 group-hover:translate-x-1 transition-transform"})]})})]})})}),l.jsx(MO,{}),l.jsx(vSe,{}),l.jsx(lSe,{}),l.jsx(ma,{animation:"scale",duration:900,threshold:.2,children:l.jsxs("section",{className:"pt-2 pb-8 sm:pt-4 sm:pb-12 bg-neutral-900/30",children:[l.jsxs("div",{className:"text-center mb-4 sm:mb-6 space-y-3 sm:space-y-4 px-4 sm:px-6",children:[l.jsx("h2",{className:"text-3xl sm:text-4xl text-foreground font-bold bg-neutral-900/0 md:text-5xl",children:"Hear the Difference"}),l.jsx("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto px-4",children:"Experience how RORA transforms audio in real-time. Toggle between the original and enhanced version."})]}),l.jsx(mY,{})]})}),l.jsx(BX,{}),l.jsx(ma,{animation:"fade-blur",duration:1e3,threshold:.25,children:l.jsx("section",{className:"py-16 sm:py-20 px-4 sm:px-6 bg-neutral-900/30 md:py-[70px]",children:l.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-8 sm:space-y-12",children:[l.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[l.jsx("div",{className:"max-w-5xl mx-auto w-full",children:l.jsx(v1,{})}),l.jsx("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed px-4",children:"Shape your sound in your browser. No drivers, no cloud processing, everything runs locally."})]}),l.jsx("div",{className:"space-y-6 sm:space-y-8",children:l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center h-auto py-5 sm:py-6 px-10 sm:px-14 text-lg sm:text-xl md:text-2xl font-semibold text-white rounded-full",children:[l.jsx(Vr,{className:"w-5 h-5 sm:w-6 sm:h-6 mr-3 text-white flex-shrink-0"}),l.jsx("span",{className:"whitespace-nowrap",children:"Download Now"})]})}),l.jsxs("div",{className:"space-y-4 pt-4 sm:pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Sign in and create your free account now"}),l.jsxs("div",{className:"flex flex-row items-center justify-center gap-3",children:[l.jsx(Ge,{variant:"outline",className:"h-12 px-4 sm:px-6 bg-white hover:bg-gray-100 border-gray-300 text-gray-700 hover:text-gray-700 font-medium rounded-full shadow-sm",asChild:!0,children:l.jsxs(mt,{to:"/auth?provider=google",className:"flex items-center justify-center gap-2 sm:gap-3",children:[l.jsxs("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 24 24",children:[l.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),l.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),l.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),l.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),l.jsx("span",{className:"whitespace-nowrap text-sm sm:text-base",children:"Google"})]})}),l.jsx(Ge,{variant:"outline",className:"h-12 px-4 sm:px-6 bg-black hover:bg-neutral-900 border-black text-white font-medium rounded-full",asChild:!0,children:l.jsxs(mt,{to:"/auth?provider=apple",className:"flex items-center justify-center gap-2 sm:gap-3",children:[l.jsx("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 24 24",fill:"white",children:l.jsx("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"})}),l.jsx("span",{className:"whitespace-nowrap text-sm sm:text-base",children:"Apple"})]})}),l.jsx(Ge,{variant:"outline",className:"h-12 px-4 sm:px-6 bg-[#5865F2] hover:bg-[#47
573752C4] border-[#5865F2] text-white font-medium rounded-full",asChild:!0,children:l.jsxs(mt,{to:"/auth?provider=discord",className:"flex items-center justify-center gap-2 sm:gap-3",children:[l.jsx("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 71 55",fill:"white",children:l.jsx("path",{d:"M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z"})}),l.jsx("span",{className:"whitespace-nowrap text-sm sm:text-base",children:"Discord"})]})})]})]})]})})})]}),l.jsx(H0,{open:t,onOpenChange:e})]})]})},Py=E.forwardRef(({className:t,...e},n)=>l.jsx("textarea",{className:He("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
5737ing-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",t),ref:n,...e}));Py.displayName="Textarea";const NT={code:"CHF",symbol:"CHF ",rate:1},VX=()=>{const[t,e]=E.useState(NT),[n,r]=E.useState(!0);E.useEffect(()=>{(async()=>{try{const a=navigator.language||"en-US",c=a.split("-")[1]||"US";console.log("ð Currency Debug:",{userLocale:a,country:c});const d={US:{code:"USD",symbol:"$"},GB:{code:"GBP",symbol:"£"},EU:{code:"EUR",symbol:"â¬"},DE:{code:"EUR",symbol:"â¬"},FR:{code:"EUR",symbol:"â¬"},ES:{code:"EUR",symbol:"â¬"},IT:{code:"EUR",symbol:"â¬"},CA:{code:"CAD",symbol:"C$"},AU:{code:"AUD",symbol:"A$"},JP:{code:"JPY",symbol:"Â¥"},IN:{code:"INR",symbol:"â¹"},BR:{code:"BRL",symbol:"R$"},MX:{code:"MXN",symbol:"$"},CH:{code:"CHF",symbol:"CHF "},DK:{code:"DKK",symbol:"kr "},SE:{code:"SEK",symbol:"kr "},NO:{code:"NOK",symbol:"kr "}}[c]||NT;if(d.code==="CHF"){e({...d,rate:1}),r(!1);return}const f=await(await fetch("https://api.exchangerate-api.com/v4/latest/CHF")).json(),m=f.rates[d.code]||1;console.log("ð± Exchange Rate Debug:",{currency:d.code,rate:m,availableRates:Object.keys(f.rates).slice(0,10)}),e({...d,rate:m})}catch(a){console.warn("Failed to fetch currency data, using USD:",a),e(NT)}finally{r(!1)}})()},[]);const i=o=>o*t.rate;return{currency:t,isLoading:n,convertPrice:i,formatPrice:o=>{const a=i(o);return t.code==="JPY"?`${t.symbol}${Math.round(a)}`:`${t.symbol}${a.toFixed(2)}`},isUSD:t.code==="USD",isCHF:t.code==="CHF"}},WX=E.createContext(void 0);function xSe({children:t}){const[e,n]=E.useState("rora-core"),[r,i]=E.useState(!1),[s,o]=E.useState(null),[a,c]=E.useState(!0),{user:u}=Tl(),{toast:d}=lu(),h=E.useRef(0),f=E.useRef(null),m=E.useRef(!1),v=5*60*1e3,p=30*1e3,g=e==="rora-core",y=e==="rora-plus",b=e==="rora-max",x=E.useCallback(async(T=!1)=>{var A,C;if(!u){n("rora-core"),i(!1),o(null),c(!1);return}const M=Date.now();if(!T&&M-h.current<p){console.log("Subscription check rate limited");return}if(!T&&f.current&&M-f.current.timestamp<v){const R=f.current.data;n(R.subscription_tier||"rora-core"),i(R.subscribed||!1),o(R.subscription_end),c(!1);return}if(!m.current)try{m.current=!0,c(!0),h.current=M;const{data:R}=await Yt.from("profiles").select("subscription_tier").eq("user_id",u.id).maybeSingle();R!=null&&R.subscription_tier&&n(R.subscription_tier);const{data:j,error:k}=await Yt.functions.invoke("check-subscription");if(k){console.error("Subscription check failed:",k),(A=k.message)!=null&&A.includes("Session expired")||(C=k.message)!=null&&C.includes("401")?(console.log("Session expired - user needs to log in again"),n("rora-core"),i(!1),o(null)):d({title:"Subscription Check Failed",description:"Could not verify subscription status. Please try again.",variant:"destructive"});return}j&&(n(j.subscription_tier||"rora-core"),i(j.subscribed||!1),o(j.subscription_end),f.current={data:j,timestamp:M})}catch(R){console.error("Subscription check error:",R),d({title:"Error",description:"Failed to check subscription status.",variant:"destructive"})}finally{c(!1),m.current=!1}},[u,d]),w=async T=>{if(!u){d({title:"Authentication Required",description:"Please sign in to upgrade your subscription.",variant:"destructive"});return}try{const{data:M,error:A}=await Yt.functions.invoke("create-checkout",{body:{priceId:T}});if(A)throw A;M!=null&&M.url&&(window.location.href=M.url)}catch(M){console.error("Checkout creation failed:",M),d({title:"Checkout Failed",description:"Could not create checkout session. Please try again.",variant:"destructive"})}},_=async()=>{if(!u){d({title:"Authentication Required",description:"Please sign in to manage your subscription.",variant:"destructive"});return}try{const{data:T,error:M}=await Yt.functions.invoke("customer-portal");if(M)throw M;T!=null&&T.url&&window.open(T.url,"_blank")}catch(T){console.error("Customer portal failed:",T),d({title:"Portal Access Failed",description:"Could not open customer portal. Please try again.",variant:"destructive"})}},S=async T=>
5737{if(!u){d({title:"Authentication Required",description:"Please sign in to upgrade your subscription.",variant:"destructive"});return}try{c(!0);const{data:M,error:A}=await Yt.functions.invoke("update-subscription",{body:{newPriceId:T}});if(A)throw A;d({title:"Subscription Upgraded! ð",description:"Your subscription has been upgraded with prorated billing."}),await x(!0)}catch(M){throw console.error("Error upgrading subscription:",M),d({title:"Upgrade Failed",description:M.message||"Failed to upgrade subscription. Please try again.",variant:"destructive"}),M}finally{c(!1)}};return E.useEffect(()=>{x()},[u]),E.useEffect(()=>{if(!u)return;const T=Yt.channel("subscription-changes").on("postgres_changes",{event:"*",schema:"public",table:"profiles",filter:`user_id=eq.${u.id}`},M=>{console.log("Subscription change detected:",M),x(!0)}).subscribe();return()=>{Yt.removeChannel(T)}},[u]),l.jsx(WX.Provider,{value:{subscriptionTier:e,subscribed:r,subscriptionEnd:s,loading:a,checkSubscription:x,createCheckout:w,upgradeSubscription:S,openCustomerPortal:_,isFreeTier:g,isPlusTier:y,isMaxTier:b},children:t})}function RO(){const t=E.useContext(WX);if(t===void 0)throw new Error("useSubscription must be used within a SubscriptionProvider");return t}var bSe=Array.isArray,is=bSe,wSe=typeof ai=="object"&&ai&&ai.Object===Object&&ai,GX=wSe,_Se=GX,SSe=typeof self=="object"&&self&&self.Object===Object&&self,ESe=_Se||SSe||Function("return this")(),Da=ESe,TSe=Da,ASe=TSe.Symbol,W0=ASe,vF=W0,qX=Object.prototype,CSe=qX.hasOwnProperty,MSe=qX.toString,dg=vF?vF.toStringTag:void 0;function RSe(t){var e=CSe.call(t,dg),n=t[dg];try{t[dg]=void 0;var r=!0}catch{}var i=MSe.call(t);return r&&(e?t[dg]=n:delete t[dg]),i}var PSe=RSe,jSe=Object.prototype,NSe=jSe.toString;function kSe(t){return NSe.call(t)}var OSe=kSe,yF=W0,ISe=PSe,LSe=OSe,DSe="[object Null]",FSe="[object Undefined]",xF=yF?yF.toStringTag:void 0;function USe(t){return t==null?t===void 0?FSe:DSe:xF&&xF in Object(t)?ISe(t):LSe(t)}var Il=USe;function BSe(t){return t!=null&&typeof t=="object"}var Ll=BSe,zSe=Il,$Se=Ll,HSe="[object Symbol]";function VSe(t){return typeof t=="symbol"||$Se(t)&&zSe(t)==HSe}var Rp=VSe,WSe=is,GSe=Rp,qSe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YSe=/^\w*$/;function XSe(t,e){if(WSe(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||GSe(t)?!0:YSe.test(t)||!qSe.test(t)||e!=null&&t in Object(e)}var PO=XSe;function KSe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var pu=KSe;const Pp=tn(pu);var QSe=Il,ZSe=pu,JSe="[object AsyncFunction]",e2e="[object Function]",t2e="[object GeneratorFunction]",n2e="[object Proxy]";function r2e(t){if(!ZSe(t))return!1;var e=QSe(t);return e==e2e||e==t2e||e==JSe||e==n2e}var jO=r2e;const Nt=tn(jO);var i2e=Da,s2e=i2e["__core-js_shared__"],o2e=s2e,kT=o2e,bF=function(){var t=/[^.]+$/.exec(kT&&kT.keys&&kT.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function a2e(t){return!!bF&&bF in t}var l2e=a2e,c2e=Function.prototype,u2e=c2e.toString;function d2e(t){if(t!=null){try{return u2e.call(t)}catch{}try{return t+""}catch{}}return""}var YX=d2e,h2e=jO,f2e=l2e,m2e=pu,p2e=YX,g2e=/[\\^$.*+?()[\]{}|]/g,v2e=/^\[object .+?Constructor\]$/,y2e=Function.prototype,x2e=Object.prototype,b2e=y2e.toString,w2e=x2e.hasOwnProperty,_2e=RegExp("^"+b2e.call(w2e).replace(g2e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S2e(t){if(!m2e(t)||f2e(t))return!1;var e=h2e(t)?_2e:v2e;return e.test(p2e(t))}var E2e=S2e;function T2e(t,e){return t==null?void 0:t[e]}var A2e=T2e,C2e=E2e,M2e=A2e;function R2e(t,e){var n=M2e(t,e);return C2e(n)?n:void 0}var gh=R2e,P2e=gh,j2e=P2e(Object,"create"),HS=j2e,wF=HS;function N2e(){this.__data__=wF?wF(null):{},this.size=0}var k2e=N2e;function O2e(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var I2e=O2e,L2e=HS,D2e="__lodash_hash_undefined__",F2e=Object.prototype,U2e=F2e.hasOwnProperty;function B2e(t){var e=this.__data__;if(L2e){var n=e[t];return n===D2e?void 0:n}return U2e.call(e,t)?e[t]:void 0}var z2e=B2e,$2e=HS,H2e=Object.prototype,V2e=H2e.hasOwnProperty;function W2e(t){var e=this.__data__;return $2e?e[t]!==void 0:V2e.call(e,t)}var G2e=W2e,q2e=HS,Y2e="__lodash_hash_undefined__";function X2e(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=q2e&&e===void 0?Y2e:e,this}var K2e=X2e,Q2e=k2e,Z2e=I2e,J2e=z2e,eEe=G2e,tEe=K2e;function jp(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jp.prototype.clear=Q2e;jp.prototype.delete=Z2e;jp.prototype.get=J2e;jp.prototype.has=eEe;jp.prototype.set=tEe;var nEe=jp;function rEe(){this.__data__=[],this.size=0}var iEe=rEe;function sEe(t,e){return t===e||t!==t&&e!==e}var NO=sEe,oEe=NO;function aEe(t,e){for(var n=t.length;n--;)if(oEe(t[n][0],e))return n;return-1}var VS=aEe,lEe=VS,cEe=Array.prototype,uEe=cEe.splice;function dEe(t){var e=this.__data__,n=lEe(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():uEe.call(e,n,1),--this.size,!0}var hEe=dEe,fEe=VS;function mEe(t){var e=this.__data__,n=fEe(e,t);return n<0?void 0:e[n][1]}var pEe=mEe,gEe=VS;function vEe(t){return gEe(this.__data__,t)>-1}
vendor: 8,575 bytes, lines 5737-5745
5737var yEe=vEe,xEe=VS;function bEe(t,e){var n=this.__data__,r=xEe(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var wEe=bEe,_Ee=iEe,SEe=hEe,EEe=pEe,TEe=yEe,AEe=wEe;function Np(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Np.prototype.clear=_Ee;Np.prototype.delete=SEe;Np.prototype.get=EEe;Np.prototype.has=TEe;Np.prototype.set=AEe;var WS=Np,CEe=gh,MEe=Da,REe=CEe(MEe,"Map"),kO=REe,_F=nEe,PEe=WS,jEe=kO;function NEe(){this.size=0,this.__data__={hash:new _F,map:new(jEe||PEe),string:new _F}}var kEe=NEe;function OEe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var IEe=OEe,LEe=IEe;function DEe(t,e){var n=t.__data__;return LEe(e)?n[typeof e=="string"?"string":"hash"]:n.map}var GS=DEe,FEe=GS;function UEe(t){var e=FEe(this,t).delete(t);return this.size-=e?1:0,e}var BEe=UEe,zEe=GS;function $Ee(t){return zEe(this,t).get(t)}var HEe=$Ee,VEe=GS;function WEe(t){return VEe(this,t).has(t)}var GEe=WEe,qEe=GS;function YEe(t,e){var n=qEe(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var XEe=YEe,KEe=kEe,QEe=BEe,ZEe=HEe,JEe=GEe,eTe=XEe;function kp(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}kp.prototype.clear=KEe;kp.prototype.delete=QEe;kp.prototype.get=ZEe;kp.prototype.has=JEe;kp.prototype.set=eTe;var OO=kp,XX=OO,tTe="Expected a function";function IO(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(tTe);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(IO.Cache||XX),n}IO.Cache=XX;var KX=IO;const nTe=tn(KX);var rTe=KX,iTe=500;function sTe(t){var e=rTe(t,function(r){return n.size===iTe&&n.clear(),r}),n=e.cache;return e}var oTe=sTe,aTe=oTe,lTe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cTe=/\\(\\)?/g,uTe=aTe(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(lTe,function(n,r,i,s){e.push(i?s.replace(cTe,"$1"):r||n)}),e}),dTe=uTe;function hTe(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var LO=hTe,SF=W0,fTe=LO,mTe=is,pTe=Rp,gTe=1/0,EF=SF?SF.prototype:void 0,TF=EF?EF.toString:void 0;function QX(t){if(typeof t=="string")return t;if(mTe(t))return fTe(t,QX)+"";if(pTe(t))return TF?TF.call(t):"";var e=t+"";return e=="0"&&1/t==-gTe?"-0":e}var vTe=QX,yTe=vTe;function xTe(t){return t==null?"":yTe(t)}var ZX=xTe,bTe=is,wTe=PO,_Te=dTe,STe=ZX;function ETe(t,e){return bTe(t)?t:wTe(t,e)?[t]:_Te(STe(t))}var JX=ETe,TTe=Rp,ATe=1/0;function CTe(t){if(typeof t=="string"||TTe(t))return t;var e=t+"";return e=="0"&&1/t==-ATe?"-0":e}var qS=CTe,MTe=JX,RTe=qS;function PTe(t,e){e=MTe(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[RTe(e[n++])];return n&&n==r?t:void 0}var DO=PTe,jTe=DO;function NTe(t,e,n){var r=t==null?void 0:jTe(t,e);return r===void 0?n:r}var eK=NTe;const ao=tn(eK);function kTe(t){return t==null}var OTe=kTe;const en=tn(OTe);var ITe=Il,LTe=is,DTe=Ll,FTe="[object String]";function UTe(t){return typeof t=="string"||!LTe(t)&&DTe(t)&&ITe(t)==FTe}var BTe=UTe;const Qd=tn(BTe);var tK={exports:{}},ln={};/** 5738 * @license React 5739 * react-is.production.min.js 5740 * 5741 * Copyright (c) Facebook, Inc. and its affiliates. 5742 * 5743 * This source code is licensed under the MIT license found in the 5744 * LICENSE file in the root directory of this source tree. 5745 */var FO=Symbol.for("react.element"),UO=Symbol.for("react.portal"),YS=Symbol.for("react.fragment"),XS=Symbol.for("react.strict_mode"),KS=Symbol.for("react.profiler"),QS=Symbol.for("react.provider"),ZS=Symbol.for("react.context"),zTe=Symbol.for("react.server_context"),JS=Symbol.for("react.forward_ref"),e2=Symbol.for("react.suspense"),t2=Symbol.for("react.suspense_list"),n2=Symbol.for("react.memo"),r2=Symbol.for("react.lazy"),$Te=Symbol.for("react.offscreen"),nK;nK=Symbol.for("react.module.reference");function go(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case FO:switch(t=t.type,t){case YS:case KS:case XS:case e2:case t2:return t;default:switch(t=t&&t.$$typeof,t){case zTe:case ZS:case JS:case r2:case n2:case QS:return t;default:return e}}case UO:return e}}}ln.ContextConsumer=ZS;ln.ContextProvider=QS;ln.Element=FO;ln.ForwardRef=JS;ln.Fragment=YS;ln.Lazy=r2;ln.Memo=n2;ln.Portal=UO;ln.Profiler=KS;ln.StrictMode=XS;ln.Suspense=e2;ln.SuspenseList=t2;ln.isAsyncMode=function(){return!1};ln.isConcurrentMode=function(){return!1};ln.isContextConsumer=function(t){return go(t)===ZS};ln.isContextProvider=function(t){return go(t)===QS};ln.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===FO};ln.isForwardRef=function(t){return go(t)===JS};ln.isFragment=function(t){return go(t)===YS};ln.isLazy=function(t){return go(t)===r2};ln.isMemo=function(t){return go(t)===n2};ln.isPortal=function(t){return go(t)===UO};ln.isProfiler=function(t){return go(t)===KS};ln.isStrictMode=function(t){return go(t)===XS};ln.isSuspense=function(t){return go(t)===e2};ln.isSuspenseList=function(t){return go(t)===t2};ln.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===YS||t===KS||t===XS||t===e2||t===t2||t===$Te||typeof t=="object"&&t!==null&&(t.$$typeof===r2||t.$$typeof===n2||t.$$typeof===QS||t.$$typeof===ZS||t.$$typeof===JS||t.$$typeof===nK||t.getModuleId!==void 0)};ln.typeOf=go;tK.exports=ln;var HTe=tK.exports,VTe=Il,WTe=Ll,GTe="[object Number]";function qTe(t){return typeof t=="number"||WTe(t)&&VTe(t)==GTe}var rK=qTe;const YTe=tn(rK);var XTe=rK;function KTe(t){return XTe(t)&&t!=+t}var QTe=KTe;const G0=tn(QTe);var Ho=function(e){return e===0?0:e>0?1:-1},od=function(e){return Qd(e)&&e.indexOf("%")===e.length-1},Le=function(e){return YTe(e)&&!G0(e)},ZTe=function(e){return en(e)},vr=function(e){return Le(e)||Qd(e)},JTe=0,i2=function(e){var n=++JTe;return"".concat(e||"").concat(n)},Zd=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Le(e)&&!Qd(e))return r;var s;if(od(e)){var o=e.indexOf("%");s=n*parseFloat(e.slice(0,o))/100}else s=+e;return G0(s)&&(s=r),i&&s>n&&(s=n),s},ac=function(e){if(!e)return null;var n=Object.keys(e);return n&&n.length?e[n[0]]:null},eAe=function(e){if(!Array.isArray(e))return!1;for(var n=e.length,r={},i=0;i<n;i++)if(!r[e[i]])r[e[i]]=!0;else return!0;return!1},Lh=function(e,n){return Le(e)&&Le(n)?function(r){return e+r*(n-e)}:function(){return n}};function kR(t,e,n){return!t||!t.length?null:t.find(function(r){return r&&(typeof e=="function"?e(r):ao(r,e))===n})}var tAe=function(e,n){return Le(e)&&Le(n)?e-n:Qd(e)&&Qd(n)?e.localeCompare(n):e instanceof Date&&n instanceof Date?e.getTime()-n.getTime():String(e).localeCompare(String(n))};function Zf(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}function OR(t){"@babel/helpers - typeof";return OR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OR(t)}var nAe=["viewBox","children"],rAe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
5745dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],AF=["points","pathLength"],OT={svg:nAe,polygon:AF,polyline:AF},BO=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
5745Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],j1=function(e,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(E.isValidElement(e)&&(r=e.props),!Pp(r))return null;var i={};return Object.keys(r).forEach(function(s){BO.includes(s)&&(i[s]=n||function(o){return r[s](r,o)})}),i},iAe=function(e,n,r){return function(i){return e(n,r,i),null}},N1=function(e,n,r){if(!Pp(e)||OR(e)!=="object")return null;var i=null;return Object.keys(e).forEach(function(s){var o=e[s];BO.includes(s)&&typeof o=="function"&&(i||(i={}),i[s]=iAe(o,n,r))}),i},sAe=["children"],oAe=["children"];function CF(t,e){if(t==null)return{};var n=aAe(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function aAe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var MF={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},gl=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},RF=null,IT=null,zO=function t(e){if(e===RF&&Array.isArray(IT))return IT;var n=[];return E.Children.forEach(e,function(r){en(r)||(HTe.isFragment(r)?n=n.concat(t(r.props.children)):n.push(r))}),IT=n,RF=e,n};function qo(t,e){var n=[],r=[];return Array.isArray(e)?r=e.map(function(i){return gl(i)}):r=[gl(e)],zO(t).forEach(function(i){var s=ao(i,"type.displayName")||ao(i,"type.name");r.indexOf(s)!==-1&&n.push(i)}),n}function hs(t,e){var n=qo(t,e);return n&&n[0]}var PF=function(e){if(!e||!e.props)return!1;var n=e.props,r=n.width,i=n.height;return!(!Le(r)||r<=0||!Le(i)||i<=0)},lAe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],cAe=function(e){return e&&e.type&&Qd(e.type)&&lAe.indexOf(e.type)>=0},uAe=function(e,n,r,i){var s,o=(s=OT==null?void 0:OT[i])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!Nt(e)&&(i&&o.includes(n)||rAe.includes(n))||r&&BO.includes(n)},Jt=function(e,n,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var i=e;if(E.isValidElement(e)&&(i=e.props),!Pp(i))return null;var s={};
vendor: 4,246 bytes, line 5745
5745return Object.keys(i).forEach(function(o){var a;uAe((a=i)===null||a===void 0?void 0:a[o],o,n,r)&&(s[o]=i[o])}),s},IR=function t(e,n){if(e===n)return!0;var r=E.Children.count(e);if(r!==E.Children.count(n))return!1;if(r===0)return!0;if(r===1)return jF(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var s=e[i],o=n[i];if(Array.isArray(s)||Array.isArray(o)){if(!t(s,o))return!1}else if(!jF(s,o))return!1}return!0},jF=function(e,n){if(en(e)&&en(n))return!0;if(!en(e)&&!en(n)){var r=e.props||{},i=r.children,s=CF(r,sAe),o=n.props||{},a=o.children,c=CF(o,oAe);return i&&a?Zf(s,c)&&IR(i,a):!i&&!a?Zf(s,c):!1}return!1},NF=function(e,n){var r=[],i={};return zO(e).forEach(function(s,o){if(cAe(s))r.push(s);else if(s){var a=gl(s.type),c=n[a]||{},u=c.handler,d=c.once;if(u&&(!d||!i[a])){var h=u(s,a,o);r.push(h),i[a]=!0}}}),r},dAe=function(e){var n=e&&e.type;return n&&MF[n]?MF[n]:null},hAe=function(e,n){return zO(n).indexOf(e)},fAe=["children","width","height","viewBox","className","style","title","desc"];function LR(){return LR=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},LR.apply(this,arguments)}function mAe(t,e){if(t==null)return{};var n=pAe(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pAe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function DR(t){var e=t.children,n=t.width,r=t.height,i=t.viewBox,s=t.className,o=t.style,a=t.title,c=t.desc,u=mAe(t,fAe),d=i||{width:n,height:r,x:0,y:0},h=Gt("recharts-surface",s);return V.createElement("svg",LR({},Jt(u,!0,"svg"),{className:h,width:n,height:r,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),V.createElement("title",null,a),V.createElement("desc",null,c),e)}var gAe=["children","className"];function FR(){return FR=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},FR.apply(this,arguments)}function vAe(t,e){if(t==null)return{};var n=yAe(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function yAe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var Rr=V.forwardRef(function(t,e){var n=t.children,r=t.className,i=vAe(t,gAe),s=Gt("recharts-layer",r);return V.createElement("g",FR({className:s},Jt(i,!0),{ref:e}),n)}),vl=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s]};function xAe(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}var bAe=xAe,wAe=bAe;function _Ae(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:wAe(t,e,n)}var SAe=_Ae,EAe="\\ud800-\\udfff",TAe="\\u0300-\\u036f",AAe="\\ufe20-\\ufe2f",CAe="\\u20d0-\\u20ff",MAe=TAe+AAe+CAe,RAe="\\ufe0e\\ufe0f",PAe="\\u200d",jAe=RegExp("["+PAe+EAe+MAe+RAe+"]");function NAe(t){return jAe.test(t)}var iK=NAe;function kAe(t){return t.split("")}var OAe=kAe,sK="\\ud800-\\udfff",IAe="\\u0300-\\u036f",LAe="\\ufe20-\\ufe2f",DAe="\\u20d0-\\u20ff",FAe=IAe+LAe+DAe,UAe="\\ufe0e\\ufe0f",BAe="["+sK+"]",UR="["+FAe+"]",BR="\\ud83c[\\udffb-\\udfff]",zAe="(?:"+UR+"|"+BR+")",oK="[^"+sK+"]",aK="(?:\\ud83c[\\udde6-\\uddff]){2}",lK="[\\ud800-\\udbff][\\udc00-\\udfff]",$Ae="\\u200d",cK=zAe+"?",uK="["+UAe+"]?",HAe="(?:"+$Ae+"(?:"+[oK,aK,lK].join("|")+")"+uK+cK+")*",VAe=uK+cK+HAe,WAe="(?:"+[oK+UR+"?",UR,aK,lK,BAe].join("|")+")",GAe=RegExp(BR+"(?="+BR+")|"+WAe+VAe,"g");function qAe(t){return t.match(GAe)||[]}var YAe=qAe,XAe=OAe,KAe=iK,QAe=YAe;function ZAe(t){return KAe(t)?QAe(t):XAe(t)}var JAe=ZAe,eCe=SAe,tCe=iK,nCe=JAe,rCe=ZX;function iCe(t){return function(e){e=rCe(e);
5745var n=tCe(e)?nCe(e):void 0,r=n?n[0]:e.charAt(0),i=n?eCe(n,1).join(""):e.slice(1);return r[t]()+i}}var sCe=iCe,oCe=sCe,aCe=oCe("toUpperCase"),lCe=aCe;const s2=tn(lCe);function xn(t){return function(){return t}}const dK=Math.cos,k1=Math.sin,ta=Math.sqrt,O1=Math.PI,o2=2*O1,zR=Math.PI,$R=2*zR,Vu=1e-6,cCe=$R-Vu;function hK(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function uCe(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return hK;const n=10**e;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class dCe{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?hK:uCe(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,s,o){this._append`C${+e},${+n},${+r},${+i},${this._x1=+s},${this._y1=+o}`}arcTo(e,n,r,i,s){if(e=+e,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,a=this._y1,c=r-e,u=i-n,d=o-e,h=a-n,f=d*d+h*h;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>Vu)if(!(Math.abs(h*c-u*d)>Vu)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let m=r-o,v=i-a,p=c*c+u*u,g=m*m+v*v,y=Math.sqrt(p),b=Math.sqrt(f),x=s*Math.tan((zR-Math.acos((p+f-g)/(2*y*b)))/2),w=x/b,_=x/y;Math.abs(w-1)>Vu&&this._append`L${e+w*d},${n+w*h}`,this._append`A${s},${s},0,0,${+(h*m>d*v)},${this._x1=e+_*c},${this._y1=n+_*u}`}}arc(e,n,r,i,s,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),c=r*Math.sin(i),u=e+a,d=n+c,h=1^o,f=o?i-s:s-i;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Vu||Math.abs(this._y1-d)>Vu)&&this._append`L${u},${d}`,r&&(f<0&&(f=f%$R+$R),f>cCe?this._append`A${r},${r},0,1,${h},${e-a},${n-c}A${r},${r},0,1,${h},${this._x1=u},${this._y1=d}`:f>Vu&&this._append`A${r},${r},0,${+(f>=zR)},${h},${this._x1=e+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function $O(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new dCe(e)}function HO(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function fK(t){this._context=t}fK.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function a2(t){return new fK(t)}function mK(t){return t[0]}function pK(t){return t[1]}function gK(t,e){var n=xn(!0),r=null,i=a2,s=null,o=$O(a);t=typeof t=="function"?t:t===void 0?mK:xn(t),e=typeof e=="function"?e:e===void 0?pK:xn(e);function a(c){var u,d=(c=HO(c)).length,h,f=!1,m;for(r==null&&(s=i(m=o())),u=0;u<=d;++u)!(u<d&&n(h=c[u],u,c))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(h,u,c),+e(h,u,c));if(m)return s=null,m+""||null}return a.x=function(c){return arguments.length?(t=typeof c=="function"?c:xn(+c),a):t},a.y=function(c){return arguments.length?(e=typeof c=="function"?c:xn(+c),a):e},a.defined=function(c){return arguments.length?(n=typeof c=="function"?c:xn(!!c),a):n},a.curve=function(c){return arguments.length?(i=c,r!=null&&(s=i(r)),a):i},a.context=function(c){return arguments.length?(c==null?r=s=null:s=i(r=c),a):r},a}function Zx(t,e,n){var r=null,i=xn(!0),s=null,o=a2,a=null,c=$O(u);t=typeof t=="function"?t:t===void 0?mK:xn(+t),e=typeof e=="function"?e:xn(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?pK:xn(+n);function u(h){var f,m,v,p=(h=HO(h)).length,g,y=!1,b,x=new Array(p),w=new Array(p);for(s==null&&(a=o(b=c())),f=0;f<=p;++f){if(!(f<p&&i(g=h[f],f,h))===y)if(y=!y)m=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),v=f-1;v>=m;--v)a.point(x[v],w[v]);a.lineEnd(),a.areaEnd()}y&&(x[f]=+t(g,f,h),w[f]=+e(g,f,h),a.point(r?+r(g,f,h):x[f],n?+n(g,f,h):w[f]))}if(b)return a=null,b+""||null}function d(){return gK().defined(i).curve(o).context(s)}return u.x=function(h){return arguments.length?(t=typeof h=="function"?h:xn(+h),r=null,u):t},u.x0=function(h){return arguments.length?(t=typeof h=="function"?h:xn(+h),u):t},u.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:xn(+h),u):r},u.y=function(h){return arguments.length?(e=typeof h=="function"?h:xn(+h),n=null,u):e},u.y0=function(h){return arguments.length?(e=typeof h=="function"?h:xn(+h),u):e},u.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:xn(+h),u):n},u.lineX0=u.lineY0=function(){return d().x(t).y(e)},u.lineY1=function(){return d().x(t).y(n)},u.lineX1=function(){return d().x(r).y(e)},u.defined=function(h){return arguments.length?(i=typeof h=="function"?h:xn(!!h),u):i},u.curve=function(h){return arguments.length?(o=h,s!=null&&(a=o(s)),u):o},u.context=function(h){return arguments.length?(h==null?s=a=null:a=o(s=h),u):s},u}class vK{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}}function hCe(t){return new vK(t,!0)}function fCe(t){return new vK(t,!1)}const VO={draw(t,e){const n=ta(e/O1);t.moveTo(n,0),t.arc(0,0,n,0,o2)}},mCe={draw(t,e){const n=ta(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},yK=ta(1/3),pCe=yK*2,gCe={draw(t,e){const n=ta(e/pCe),r=n*yK;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},vCe={draw(t,e){const n=ta(e),r=-n/2;t.rect(r,r,n,n)}},yCe=.8908130915292852,xK=k1(O1/10)/k1(7*O1/10),xCe=k1(o2/10)*xK,bCe=-dK(o2/10)*xK,wCe={draw(t,e){const n=ta(e*yCe),r=xCe*n,i=bCe*n;t.moveTo(0,-n),t.lineTo(r,i);for(let s=1;s<5;++s){const o=o2*s/5,a=dK(o),c=k1(o);
5745t.lineTo(c*n,-a*n),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},LT=ta(3),_Ce={draw(t,e){const n=-ta(e/(LT*3));t.moveTo(0,n*2),t.lineTo(-LT*n,-n),t.lineTo(LT*n,-n),t.closePath()}},Ls=-.5,Ds=ta(3)/2,HR=1/ta(12),SCe=(HR/2+1)*3,ECe={draw(t,e){const n=ta(e/SCe),r=n/2,i=n*HR,s=r,o=n*HR+n,a=-s,c=o;t.moveTo(r,i),t.lineTo(s,o),t.lineTo(a,c),t.lineTo(Ls*r-Ds*i,Ds*r+Ls*i),t.lineTo(Ls*s-Ds*o,Ds*s+Ls*o),t.lineTo(Ls*a-Ds*c,Ds*a+Ls*c),t.lineTo(Ls*r+Ds*i,Ls*i-Ds*r),t.lineTo(Ls*s+Ds*o,Ls*o-Ds*s),t.lineTo(Ls*a+Ds*c,Ls*c-Ds*a),t.closePath()}};function TCe(t,e){let n=null,r=$O(i);t=typeof t=="function"?t:xn(t||VO),e=typeof e=="function"?e:xn(e===void 0?64:+e);function i(){let s;if(n||(n=s=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),s)return n=null,s+""||null}return i.type=function(s){return arguments.length?(t=typeof s=="function"?s:xn(s),i):t},i.size=function(s){return arguments.length?(e=typeof s=="function"?s:xn(+s),i):e},i.context=function(s){return arguments.length?(n=s??null,i):n},i}function I1(){}function L1(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function bK(t){this._context=t}bK.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:L1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:L1(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ACe(t){return new bK(t)}function wK(t){this._context=t}wK.prototype={areaStart:I1,areaEnd:I1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:L1(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function CCe(t){return new wK(t)}function _K(t){this._context=t}_K.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:L1(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function MCe(t){return new _K(t)}function SK(t){this._context=t}SK.prototype={areaStart:I1,areaEnd:I1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function RCe(t){return new SK(t)}function kF(t){return t<0?-1:1}function OF(t,e,n){var r=t._x1-t._x0,i=e-t._x1,s=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),a=(s*i+o*r)/(r+i);
5745return(kF(s)+kF(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function IF(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function DT(t,e,n){var r=t._x0,i=t._y0,s=t._x1,o=t._y1,a=(s-r)/3;t._context.bezierCurveTo(r+a,i+a*e,s-a,o-a*n,s,o)}function D1(t){this._context=t}D1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:DT(this,this._t0,IF(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,DT(this,IF(this,n=OF(this,t,e)),n);break;default:DT(this,this._t0,n=OF(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function EK(t){this._context=new TK(t)}(EK.prototype=Object.create(D1.prototype)).point=function(t,e){D1.prototype.point.call(this,e,t)};function TK(t){this._context=t}TK.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,s){this._context.bezierCurveTo(e,t,r,n,s,i)}};function PCe(t){return new D1(t)}function jCe(t){return new EK(t)}function AK(t){this._context=t}AK.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=LF(t),i=LF(e),s=0,o=1;o<n;++s,++o)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],t[o],e[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function LF(t){var e,n=t.length-1,r,i=new Array(n),s=new Array(n),o=new Array(n);for(i[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,s[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/s[e-1],s[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/s[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/s[e];for(s[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)s[e]=2*t[e+1]-i[e+1];return[i,s]}function NCe(t){return new AK(t)}function l2(t,e){this._context=t,this._t=e}l2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function kCe(t){return new l2(t,.5)}function OCe(t){return new l2(t,0)}function ICe(t){return new l2(t,1)}function Um(t,e){if((o=t.length)>1)for(var n=1,r,i,s=t[e[0]],o,a=s.length;n<o;++n)for(i=s,s=t[e[n]],r=0;r<a;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function VR(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function LCe(t,e){return t[e]}function DCe(t){const e=[];return e.key=t,e}function FCe(){var t=xn([]),e=VR,n=Um,r=LCe;function i(s){var o=Array.from(t.apply(this,arguments),DCe),a,c=o.length,u=-1,d;for(const h of s)for(a=0,++u;a<c;++a)(o[a][u]=[0,+r(h,o[a].key,u,s)]).data=h;for(a=0,d=HO(e(o));a<c;++a)o[d[a]].index=a;return n(o,d),o}return i.keys=function(s){return arguments.length?(t=typeof s=="function"?s:xn(Array.from(s)),i):t},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:xn(+s),i):r},i.order=function(s){return arguments.length?(e=s==null?VR:typeof s=="function"?s:xn(Array.from(s)),i):e},i.offset=function(s){return arguments.length?(n=s??Um,i):n},i}function UCe(t,e){if((r=t.length)>0){for(var n,r,i=0,s=t[0].length,o;i<s;++i){for(o=n=0;n<r;++n)o+=t[n][i][1]||0;if(o)for(n=0;n<r;++n)t[n][i][1]/=o}Um(t,e)}}function BCe(t,e){if((i=t.length)>0){for(var n=0,r=t[e[0]],i,s=r.length;n<s;++n){for(var o=0,a=0;o<i;++o)a+=t[o][n][1]||0;r[n][1]+=r[n][0]=-a/2}Um(t,e)}}function zCe(t,e){if(!(!((o=t.length)>0)||!((s=(i=t[e[0]]).length)>0))){for(var n=0,r=1,i,s,o;r<s;++r){for(var a=0,c=0,u=0;a<o;++a){for(var d=t[e[a]],h=d[r][1]||0,f=d[r-1][1]||0,m=(h-f)/2,v=0;v<a;++v){var p=t[e[v]],g=p[r][1]||0,y=p[r-1][1]||0;m+=g-y}c+=h,u+=m*h}i[r-1][1]+=i[r-1][0]=n,c&&(n-=u/c)}i[r-1][1]+=i[r-1][0]=n,Um(t,e)}}function jy(t){"@babel/helpers - typeof";return jy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jy(t)}var $Ce=["type","size","sizeType"];function WR(){return WR=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},WR.apply(this,arguments)}function DF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function FF(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
vendor: 8,217 bytes, lines 5745-5748
5745e%2?DF(Object(n),!0).forEach(function(r){HCe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):DF(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HCe(t,e,n){return e=VCe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VCe(t){var e=WCe(t,"string");return jy(e)=="symbol"?e:e+""}function WCe(t,e){if(jy(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(jy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function GCe(t,e){if(t==null)return{};var n=qCe(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function qCe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var CK={symbolCircle:VO,symbolCross:mCe,symbolDiamond:gCe,symbolSquare:vCe,symbolStar:wCe,symbolTriangle:_Ce,symbolWye:ECe},YCe=Math.PI/180,XCe=function(e){var n="symbol".concat(s2(e));return CK[n]||VO},KCe=function(e,n,r){if(n==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var i=18*YCe;return 1.25*e*e*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},QCe=function(e,n){CK["symbol".concat(s2(e))]=n},WO=function(e){var n=e.type,r=n===void 0?"circle":n,i=e.size,s=i===void 0?64:i,o=e.sizeType,a=o===void 0?"area":o,c=GCe(e,$Ce),u=FF(FF({},c),{},{type:r,size:s,sizeType:a}),d=function(){var g=XCe(r),y=TCe().type(g).size(KCe(s,a,r));return y()},h=u.className,f=u.cx,m=u.cy,v=Jt(u,!0);return f===+f&&m===+m&&s===+s?V.createElement("path",WR({},v,{className:Gt("recharts-symbols",h),transform:"translate(".concat(f,", ").concat(m,")"),d:d()})):null};WO.registerSymbol=QCe;function Bm(t){"@babel/helpers - typeof";return Bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bm(t)}function GR(){return GR=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},GR.apply(this,arguments)}function UF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ZCe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?UF(Object(n),!0).forEach(function(r){Ny(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):UF(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function JCe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eMe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,RK(r.key),r)}}function tMe(t,e,n){return e&&eMe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function nMe(t,e,n){return e=F1(e),rMe(t,MK()?Reflect.construct(e,n||[],F1(t).constructor):e.apply(t,n))}function rMe(t,e){if(e&&(Bm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iMe(t)}function iMe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function MK(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MK=function(){return!!t})()}function F1(t){return F1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},F1(t)}function sMe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qR(t,e)}function qR(t,e){return qR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qR(t,e)}function Ny(t,e,n){return e=RK(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function RK(t){var e=oMe(t,"string");return Bm(e)=="symbol"?e:e+""}function oMe(t,e){if(Bm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Bm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fs=32,GO=function(t){function e(){return JCe(this,e),nMe(this,e,arguments)}return sMe(e,t),tMe(e,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,s=Fs/2,o=Fs/6,a=Fs/3,c=r.inactive?i:r.color;if(r.type==="plainline")return V.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:Fs,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return V.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(s,"h").concat(a,` 5746 A`).concat(o,",").concat(o,",0,1,1,").concat(2*a,",").concat(s,` 5747 H`).concat(Fs,"M").concat(2*a,",").concat(s,` 5748 A`).concat(o,",").concat(o,",0,1,1,").concat(a,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return V.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Fs/8,"h").concat(Fs,"v").concat(Fs*3/4,"h").concat(-Fs,"z"),className:"recharts-legend-icon"});if(V.isValidElement(r.legendIcon)){var u=ZCe({},r);return delete u.legendIcon,V.cloneElement(r.legendIcon,u)}return V.createElement(WO,{fill:c,cx:s,cy:s,size:Fs,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,s=i.payload,o=i.iconSize,a=i.layout,c=i.formatter,u=i.inactiveColor,d={x:0,y:0,width:Fs,height:Fs},h={display:a==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(m,v){var p=m.formatter||c,g=Gt(Ny(Ny({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",m.inactive));if(m.type==="none")return null;var y=Nt(m.value)?null:m.value;vl(!Nt(m.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=m.inactive?u:m.color;return V.createElement("li",GR({className:g,style:h,key:"legend-item-".concat(v)},N1(r.props,m,v)),V.createElement(DR,{width:o,height:o,viewBox:d,style:f},r.renderIcon(m)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},p?p(y,m,v):y))})}},{key:"render",value:function(){var r=this.props,i=r.payload,s=r.layout,o=r.align;if(!i||!i.length)return null;var a={padding:0,margin:0,textAlign:s==="horizontal"?o:"left"};return V.createElement("ul",{className:"recharts-default-legend",style:a},this.renderItems())}}])}(E.PureComponent);Ny(GO,"displayName","Legend");Ny(GO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var aMe=WS;function lMe(){this.__data__=new aMe,this.size=0}var cMe=lMe;function uMe(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var dMe=uMe;function hMe(t){return this.__data__.get(t)}var fMe=hMe;function mMe(t){return this.__data__.has(t)}var pMe=mMe,gMe=WS,vMe=kO,yMe=OO,xMe=200;function bMe(t,e){var n=this.__data__;if(n instanceof gMe){var r=n.__data__;if(!vMe||r.length<xMe-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new yMe(r)}return n.set(t,e),this.size=n.size,this}
vendor: 8,136 bytes, line 5748
5748var wMe=bMe,_Me=WS,SMe=cMe,EMe=dMe,TMe=fMe,AMe=pMe,CMe=wMe;function Op(t){var e=this.__data__=new _Me(t);this.size=e.size}Op.prototype.clear=SMe;Op.prototype.delete=EMe;Op.prototype.get=TMe;Op.prototype.has=AMe;Op.prototype.set=CMe;var PK=Op,MMe="__lodash_hash_undefined__";function RMe(t){return this.__data__.set(t,MMe),this}var PMe=RMe;function jMe(t){return this.__data__.has(t)}var NMe=jMe,kMe=OO,OMe=PMe,IMe=NMe;function U1(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new kMe;++e<n;)this.add(t[e])}U1.prototype.add=U1.prototype.push=OMe;U1.prototype.has=IMe;var jK=U1;function LMe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var NK=LMe;function DMe(t,e){return t.has(e)}var kK=DMe,FMe=jK,UMe=NK,BMe=kK,zMe=1,$Me=2;function HMe(t,e,n,r,i,s){var o=n&zMe,a=t.length,c=e.length;if(a!=c&&!(o&&c>a))return!1;var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,m=n&$Me?new FMe:void 0;for(s.set(t,e),s.set(e,t);++h<a;){var v=t[h],p=e[h];if(r)var g=o?r(p,v,h,e,t,s):r(v,p,h,t,e,s);if(g!==void 0){if(g)continue;f=!1;break}if(m){if(!UMe(e,function(y,b){if(!BMe(m,b)&&(v===y||i(v,y,n,r,s)))return m.push(b)})){f=!1;break}}else if(!(v===p||i(v,p,n,r,s))){f=!1;break}}return s.delete(t),s.delete(e),f}var OK=HMe,VMe=Da,WMe=VMe.Uint8Array,GMe=WMe;function qMe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}var YMe=qMe;function XMe(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var qO=XMe,BF=W0,zF=GMe,KMe=NO,QMe=OK,ZMe=YMe,JMe=qO,eRe=1,tRe=2,nRe="[object Boolean]",rRe="[object Date]",iRe="[object Error]",sRe="[object Map]",oRe="[object Number]",aRe="[object RegExp]",lRe="[object Set]",cRe="[object String]",uRe="[object Symbol]",dRe="[object ArrayBuffer]",hRe="[object DataView]",$F=BF?BF.prototype:void 0,FT=$F?$F.valueOf:void 0;function fRe(t,e,n,r,i,s,o){switch(n){case hRe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case dRe:return!(t.byteLength!=e.byteLength||!s(new zF(t),new zF(e)));case nRe:case rRe:case oRe:return KMe(+t,+e);case iRe:return t.name==e.name&&t.message==e.message;case aRe:case cRe:return t==e+"";case sRe:var a=ZMe;case lRe:var c=r&eRe;if(a||(a=JMe),t.size!=e.size&&!c)return!1;var u=o.get(t);if(u)return u==e;r|=tRe,o.set(t,e);var d=QMe(a(t),a(e),r,i,s,o);return o.delete(t),d;case uRe:if(FT)return FT.call(t)==FT.call(e)}return!1}var mRe=fRe;function pRe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var IK=pRe,gRe=IK,vRe=is;function yRe(t,e,n){var r=e(t);return vRe(t)?r:gRe(r,n(t))}var xRe=yRe;function bRe(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}var wRe=bRe;function _Re(){return[]}var SRe=_Re,ERe=wRe,TRe=SRe,ARe=Object.prototype,CRe=ARe.propertyIsEnumerable,HF=Object.getOwnPropertySymbols,MRe=HF?function(t){return t==null?[]:(t=Object(t),ERe(HF(t),function(e){return CRe.call(t,e)}))}:TRe,RRe=MRe;function PRe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var jRe=PRe,NRe=Il,kRe=Ll,ORe="[object Arguments]";function IRe(t){return kRe(t)&&NRe(t)==ORe}var LRe=IRe,VF=LRe,DRe=Ll,LK=Object.prototype,FRe=LK.hasOwnProperty,URe=LK.propertyIsEnumerable,BRe=VF(function(){return arguments}())?VF:function(t){return DRe(t)&&FRe.call(t,"callee")&&!URe.call(t,"callee")},YO=BRe,B1={exports:{}};function zRe(){return!1}var $Re=zRe;B1.exports;(function(t,e){var n=Da,r=$Re,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,o=s&&s.exports===i,a=o?n.Buffer:void 0,c=a?a.isBuffer:void 0,u=c||r;t.exports=u})(B1,B1.exports);var DK=B1.exports,HRe=9007199254740991,VRe=/^(?:0|[1-9]\d*)$/;function WRe(t,e){var n=typeof t;return e=e??HRe,!!e&&(n=="number"||n!="symbol"&&VRe.test(t))&&t>-1&&t%1==0&&t<e}var XO=WRe,GRe=9007199254740991;function qRe(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=GRe}var KO=qRe,YRe=Il,XRe=KO,KRe=Ll,QRe="[object Arguments]",ZRe="[object Array]",JRe="[object Boolean]",ePe="[object Date]",tPe="[object Error]",nPe="[object Function]",rPe="[object Map]",iPe="[object Number]",sPe="[object Object]",oPe="[object RegExp]",aPe="[object Set]",lPe="[object String]",cPe="[object WeakMap]",uPe="[object ArrayBuffer]",dPe="[object DataView]",hPe="[object Float32Array]",fPe="[object Float64Array]",mPe="[object Int8Array]",pPe="[object Int16Array]",gPe="[object Int32Array]",vPe="[object Uint8Array]",yPe="[object Uint8ClampedArray]",xPe="[object Uint16Array]",bPe="[object Uint32Array]",En={};En[hPe]=En[fPe]=En[mPe]=En[pPe]=En[gPe]=En[vPe]=En[yPe]=En[xPe]=En[bPe]=!0;En[QRe]=En[ZRe]=En[uPe]=En[JRe]=En[dPe]=En[ePe]=En[tPe]=En[nPe]=En[rPe]=En[iPe]=En[sPe]=En[oPe]=En[aPe]=En[lPe]=En[cPe]=!1;function wPe(t){return KRe(t)&&XRe(t.length)&&!!En[YRe(t)]}var _Pe=wPe;function SPe(t){return function(e){return t(e)}}var FK=SPe,z1={exports:{}};z1.exports;(function(t,e){var n=GX,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,s=i&&i.exports===r,o=s&&n.process,a=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();t.exports=a})(z1,z1.exports);var EPe=z1.exports,TPe=_Pe,APe=FK,WF=EPe,GF=WF&&WF.isTypedArray,CPe=GF?APe(GF):TPe,UK=CPe,MPe=jRe,RPe=YO,PPe=is,jPe=DK,NPe=XO,kPe=UK,OPe=Object.prototype,IPe=OPe.hasOwnProperty;function LPe(t,e){var n=PPe(t),r=!n&&RPe(t),i=!n&&!r&&jPe(t),s=!n&&!r&&!i&&kPe(t),o=n||r||i||s,a=o?MPe(t.length,String):[],c=a.length;for(var u in t)(e||IPe.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||NPe(u,c)))&&a.push(u);return a}var DPe=LPe,FPe=Object.prototype;function UPe(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||FPe;return t===n}var BPe=UPe;function zPe(t,e){return function(n){return t(e(n))}}var BK=zPe,$Pe=BK,HPe=$Pe(Object.keys,Object),VPe=HPe,WPe=BPe,GPe=VPe,qPe=Object.prototype,YPe=qPe.hasOwnProperty;function XPe(t){if(!WPe(t))return GPe(t);var e=[];for(var n in Object(t))YPe.call(t,n)&&n!="constructor"&&e.push(n);return e}var KPe=XPe,QPe=jO,ZPe=KO;function JPe(t){return t!=null&&ZPe(t.length)&&!QPe(t)}var q0=JPe,eje=DPe,tje=KPe,nje=q0;function rje(t){return nje(t)?eje(t):tje(t)}var c2=rje,ije=xRe,sje=RRe,oje=c2;function aje(t){return ije(t,oje,sje)}var lje=aje,qF=lje,cje=1,uje=Object.prototype,dje=uje.hasOwnProperty;function hje(t,e,n,r,i,s){var o=n&cje,a=qF(t),c=a.length,u=qF(e),d=u.length;if(c!=d&&!o)return!1;for(var h=c;h--;){var f=a[h];if(!(o?f in e:dje.call(e,f)))return!1}var m=s.get(t),v=s.get(e);if(m&&v)return m==e&&v==t;var p=!0;s.set(t,e),s.set(e,t);for(var g=o;++h<c;){f=a[h];var y=t[f],b=e[f];if(r)var x=o?r(b,y,f,e,t,s):r(y,b,f,t,e,s);if(!(x===void 0?y===b||i(y,b,n,r,s):x)){p=!1;break}g||(g=f=="constructor")}if(p&&!g){var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof _=="function"&&_ instanceof _)&&(p=!1)}return s.delete(t),s.delete(e),p}var fje=hje,mje=gh,pje=Da,gje=mje(pje,"DataView"),vje=gje,yje=gh,xje=Da,bje=yje(xje,"Promise"),wje=bje,_je=gh,Sje=Da,Eje=_je(Sje,"Set"),zK=Eje,Tje=gh,Aje=Da,Cje=Tje(Aje,"WeakMap"),Mje=Cje,YR=vje,XR=kO,KR=wje,QR=zK,ZR=Mje,$K=Il,Ip=YX,YF="[object Map]",Rje="[object Object]",XF="[object Promise]",KF="[object Set]",QF="[object WeakMap]",ZF="[object DataView]",Pje=Ip(YR),jje=Ip(XR),Nje=Ip(KR),kje=Ip(QR),Oje=Ip(ZR),Wu=$K;(YR&&Wu(new YR(new ArrayBuffer(1)))!=ZF||XR&&Wu(new XR)!=YF||KR&&Wu(KR.resolve())!=XF||QR&&Wu(new QR)!=KF||ZR&&Wu(new ZR)!=QF)&&(Wu=function(t){var e=$K(t),n=e==Rje?t.constructor:void 0,r=n?Ip(n):"";if(r)switch(r){case Pje:return ZF;case jje:return YF;case Nje:return XF;case kje:return KF;case Oje:return QF}return e});var Ije=Wu,UT=PK,Lje=OK,Dje=mRe,Fje=fje,JF=Ije,eU=is,tU=DK,Uje=UK,Bje=1,nU="[object Arguments]",rU="[object Array]",Jx="[object Object]",zje=Object.prototype,iU=zje.hasOwnProperty;function $je(t,e,n,r,i,s){var o=eU(t),a=eU(e),c=o?rU:JF(t),u=a?rU:JF(e);c=c==nU?Jx:c,u=u==nU?Jx:u;var d=c==Jx,h=u==Jx,f=c==u;if(f&&tU(t)){if(!tU(e))return!1;o=!0,d=!1}if(f&&!d)return s||(s=new UT),o||Uje(t)?Lje(t,e,n,r,i,s):Dje(t,e,c,n,r,i,s);if(!(n&Bje)){var m=d&&iU.call(t,"__wrapped__"),v=h&&iU.call(e,"__wrapped__");
vendor: 4,112 bytes, line 5748
5748if(m||v){var p=m?t.value():t,g=v?e.value():e;return s||(s=new UT),i(p,g,n,r,s)}}return f?(s||(s=new UT),Fje(t,e,n,r,i,s)):!1}var Hje=$je,Vje=Hje,sU=Ll;function HK(t,e,n,r,i){return t===e?!0:t==null||e==null||!sU(t)&&!sU(e)?t!==t&&e!==e:Vje(t,e,n,r,HK,i)}var QO=HK,Wje=PK,Gje=QO,qje=1,Yje=2;function Xje(t,e,n,r){var i=n.length,s=i,o=!r;if(t==null)return!s;for(t=Object(t);i--;){var a=n[i];if(o&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<s;){a=n[i];var c=a[0],u=t[c],d=a[1];if(o&&a[2]){if(u===void 0&&!(c in t))return!1}else{var h=new Wje;if(r)var f=r(u,d,c,t,e,h);if(!(f===void 0?Gje(d,u,qje|Yje,r,h):f))return!1}}return!0}var Kje=Xje,Qje=pu;function Zje(t){return t===t&&!Qje(t)}var VK=Zje,Jje=VK,eNe=c2;function tNe(t){for(var e=eNe(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Jje(i)]}return e}var nNe=tNe;function rNe(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var WK=rNe,iNe=Kje,sNe=nNe,oNe=WK;function aNe(t){var e=sNe(t);return e.length==1&&e[0][2]?oNe(e[0][0],e[0][1]):function(n){return n===t||iNe(n,t,e)}}var lNe=aNe;function cNe(t,e){return t!=null&&e in Object(t)}var uNe=cNe,dNe=JX,hNe=YO,fNe=is,mNe=XO,pNe=KO,gNe=qS;function vNe(t,e,n){e=dNe(e,t);for(var r=-1,i=e.length,s=!1;++r<i;){var o=gNe(e[r]);if(!(s=t!=null&&n(t,o)))break;t=t[o]}return s||++r!=i?s:(i=t==null?0:t.length,!!i&&pNe(i)&&mNe(o,i)&&(fNe(t)||hNe(t)))}var yNe=vNe,xNe=uNe,bNe=yNe;function wNe(t,e){return t!=null&&bNe(t,e,xNe)}var _Ne=wNe,SNe=QO,ENe=eK,TNe=_Ne,ANe=PO,CNe=VK,MNe=WK,RNe=qS,PNe=1,jNe=2;function NNe(t,e){return ANe(t)&&CNe(e)?MNe(RNe(t),e):function(n){var r=ENe(n,t);return r===void 0&&r===e?TNe(n,t):SNe(e,r,PNe|jNe)}}var kNe=NNe;function ONe(t){return t}var Lp=ONe;function INe(t){return function(e){return e==null?void 0:e[t]}}var LNe=INe,DNe=DO;function FNe(t){return function(e){return DNe(e,t)}}var UNe=FNe,BNe=LNe,zNe=UNe,$Ne=PO,HNe=qS;function VNe(t){return $Ne(t)?BNe(HNe(t)):zNe(t)}var WNe=VNe,GNe=lNe,qNe=kNe,YNe=Lp,XNe=is,KNe=WNe;function QNe(t){return typeof t=="function"?t:t==null?YNe:typeof t=="object"?XNe(t)?qNe(t[0],t[1]):GNe(t):KNe(t)}var gu=QNe;function ZNe(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}var GK=ZNe;function JNe(t){return t!==t}var eke=JNe;function tke(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}var nke=tke,rke=GK,ike=eke,ske=nke;function oke(t,e,n){return e===e?ske(t,e,n):rke(t,ike,n)}var ake=oke,lke=ake;function cke(t,e){var n=t==null?0:t.length;return!!n&&lke(t,e,0)>-1}var uke=cke;function dke(t,e,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}var hke=dke;function fke(){}var mke=fke,BT=zK,pke=mke,gke=qO,vke=1/0,yke=BT&&1/gke(new BT([,-0]))[1]==vke?function(t){return new BT(t)}:pke,xke=yke,bke=jK,wke=uke,_ke=hke,Ske=kK,Eke=xke,Tke=qO,Ake=200;function Cke(t,e,n){var r=-1,i=wke,s=t.length,o=!0,a=[],c=a;if(n)o=!1,i=_ke;else if(s>=Ake){var u=e?null:Eke(t);if(u)return Tke(u);o=!1,i=Ske,c=new bke}else c=e?[]:a;e:for(;++r<s;){var d=t[r],h=e?e(d):d;if(d=n||d!==0?d:0,o&&h===h){for(var f=c.length;f--;)if(c[f]===h)continue e;e&&c.push(h),a.push(d)}else i(c,h,n)||(c!==a&&c.push(h),a.push(d))}return a}var Mke=Cke,Rke=gu,Pke=Mke;function jke(t,e){return t&&t.length?Pke(t,Rke(e)):[]}var Nke=jke;const oU=tn(Nke);function qK(t,e,n){return e===!0?oU(t,n):Nt(e)?oU(t,e):t}function zm(t){"@babel/helpers - typeof";return zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zm(t)}var kke=["ref"];function aU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ba(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aU(Object(n),!0).forEach(function(r){u2(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aU(Object(n)).forEac
vendor: 4,282 bytes, line 5748
5748h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Oke(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lU(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,XK(r.key),r)}}function Ike(t,e,n){return e&&lU(t.prototype,e),n&&lU(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Lke(t,e,n){return e=$1(e),Dke(t,YK()?Reflect.construct(e,n||[],$1(t).constructor):e.apply(t,n))}function Dke(t,e){if(e&&(zm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fke(t)}function Fke(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function YK(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YK=function(){return!!t})()}function $1(t){return $1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$1(t)}function Uke(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&JR(t,e)}function JR(t,e){return JR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},JR(t,e)}function u2(t,e,n){return e=XK(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function XK(t){var e=Bke(t,"string");return zm(e)=="symbol"?e:e+""}function Bke(t,e){if(zm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(zm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zke(t,e){if(t==null)return{};var n=$ke(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function $ke(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Hke(t){return t.value}function Vke(t,e){if(V.isValidElement(t))return V.cloneElement(t,e);if(typeof t=="function")return V.createElement(t,e);e.ref;var n=zke(e,kke);return V.createElement(GO,n)}var cU=1,Jf=function(t){function e(){var n;Oke(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Lke(this,e,[].concat(i)),u2(n,"lastBoundingBox",{width:-1,height:-1}),n}return Uke(e,t),Ike(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>cU||Math.abs(i.height-this.lastBoundingBox.height)>cU)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ba({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,s=i.layout,o=i.align,a=i.verticalAlign,c=i.margin,u=i.chartWidth,d=i.chartHeight,h,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&s==="vertical"){var m=this.getBBoxSnapshot();h={left:((u||0)-m.width)/2}}else h=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(a==="middle"){var v=this.getBBoxSnapsh
5748ot();f={top:((d||0)-v.height)/2}}else f=a==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Ba(Ba({},h),f)}},{key:"render",value:function(){var r=this,i=this.props,s=i.content,o=i.width,a=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,d=i.payload,h=Ba(Ba({position:"absolute",width:o||"auto",height:a||"auto"},this.getDefaultPosition(c)),c);return V.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(m){r.wrapperNode=m}},Vke(s,Ba(Ba({},this.props),{},{payload:qK(d,u,Hke)})))}}],[{key:"getWithHeight",value:function(r,i){var s=Ba(Ba({},this.defaultProps),r.props),o=s.layout;return o==="vertical"&&Le(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}])}(E.PureComponent);u2(Jf,"displayName","Legend");u2(Jf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var uU=W0,Wke=YO,Gke=is,dU=uU?uU.isConcatSpreadable:void 0;function qke(t){return Gke(t)||Wke(t)||!!(dU&&t&&t[dU])}var Yke=qke,Xke=IK,Kke=Yke;function KK(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=Kke),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?KK(a,e-1,n,r,i):Xke(i,a):r||(i[i.length]=a)}return i}var QK=KK;function Qke(t){return function(e,n,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var c=o[t?a:++i];if(n(s[c],c,s)===!1)break}return e}}var Zke=Qke,Jke=Zke,eOe=Jke(),tOe=eOe,nOe=tOe,rOe=c2;function iOe(t,e){return t&&nOe(t,e,rOe)}var ZK=iOe,sOe=q0;function oOe(t,e){return function(n,r){if(n==null)return n;if(!sOe(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=Object(n);(e?s--:++s<i)&&r(o[s],s,o)!==!1;);return n}}var aOe=oOe,lOe=ZK,cOe=aOe,uOe=cOe(lOe),ZO=uOe,dOe=ZO,hOe=q0;function fOe(t,e){var n=-1,r=hOe(t)?Array(t.length):[];return dOe(t,function(i,s,o){r[++n]=e(i,s,o)}),r}var JK=fOe;function mOe(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}var pOe=mOe,hU=Rp;function gOe(t,e){if(t!==e){var n=t!==void 0,r=t===null,i=t===t,s=hU(t),o=e!==void 0,a=e===null,c=e===e,u=hU(e);if(!a&&!u&&!s&&t>e||s&&o&&c&&!a&&!u||r&&o&&c||!n&&c||!i)return 1;if(!r&&!s&&!u&&t<e||u&&n&&i&&!r&&!s||a&&n&&i||!o&&i||!c)return-1}return 0}var vOe=gOe,yOe=vOe;function xOe(t,e,n){for(var r=-1,i=t.criteria,s=e.criteria,o=i.length,a=n.length;++r<o;){var c=yOe(i[r],s[r]);if(c){if(r>=a)return c;var u=n[r];return c*(u=="desc"?-1:1)}}return t.index-e.index}var bOe=xOe,zT=LO,wOe=DO,_Oe=gu,SOe=JK,EOe=pOe,TOe=FK,AOe=bOe,COe=Lp,MOe=is;function ROe(t,e,n){e.length?e=zT(e,function(s){return MOe(s)?function(o){return wOe(o,s.length===1?s[0]:s)}:s}):e=[COe];var r=-1;e=zT(e,TOe(_Oe));var i=SOe(t,function(s,o,a){var c=zT(e,function(u){return u(s)});return{criteria:c,index:++r,value:s}});return EOe(i,function(s,o){return AOe(s,o,n)})}var POe=ROe;function jOe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var NOe=jOe,kOe=NOe,fU=Math.max;function OOe(t,e,n){return e=fU(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=fU(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(o),kOe(t,this,a)}}var IOe=OOe;function LOe(t){return function(){return t}}var DOe=LOe,FOe=gh,UOe=function(){try{var t=FOe(Object,"defineProperty");return t({},"",{}),t}catch{}}(),eQ=UOe,BOe=DOe,mU=eQ,zOe=Lp,$Oe=mU?function(t,e){return mU(t,"toString",{configurable:!0,enumerable:!1,value:BOe(e),writable:!0})}:zOe,HOe=$Oe,VOe=800,WOe=16,GOe=Date.now;function qOe(t){var e=0,n=0;return function(){var r=GOe(),i=WOe-(r-n);if(n=r,i>0){if(++e>=VOe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var YOe=qOe,XOe=HOe,KOe=YOe,QOe=KOe(XOe),ZOe=QOe,JOe=Lp,e3e=IOe,t3e=ZOe;function n3e(t,e){return t3e(e3e(t,e,JOe),t+"")}var r3e=n3e,i3e=NO,s3e=q0,o3e=XO,a3e=pu;function l3e(t,e,n){if(!a3e(n))return!1;var r=typeof e;return(r=="number"?s3e(n)&&o3e(e,n.length):r=="string"&&e in n)?i3e(n[e],t):!1}var d2=l3e,c3e=QK,u3e=POe,d3e=r3e,pU=d2,h3e=d3e(function(t,e){if(t==null)return[];var n=e.length;return n>1&&pU(t,e[0],e[1])?e=[]:n>2&&pU(e[0],e[1],e[2])&&(e=[e[0]]),u3e(t,c3e(e,1),[])}),f3e=h3e;const JO=tn(f3e);function ky(t){"@babel/helpers - typeof";return ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ky(t)}function eP(){return eP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},eP.apply(this,arguments)}function m3e(t,e){return y3e(t)||v3e(t,e)||g3e(t,e)||p3e()}
vendor: 29,552 bytes, lines 5748-5755
5748function p3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5749In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g3e(t,e){if(t){if(typeof t=="string")return gU(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gU(t,e)}}function gU(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v3e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function y3e(t){if(Array.isArray(t))return t}function vU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $T(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vU(Object(n),!0).forEach(function(r){x3e(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vU(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function x3e(t,e,n){return e=b3e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b3e(t){var e=w3e(t,"string");return ky(e)=="symbol"?e:e+""}function w3e(t,e){if(ky(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ky(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _3e(t){return Array.isArray(t)&&vr(t[0])&&vr(t[1])?t.join(" ~ "):t}var S3e=function(e){var n=e.separator,r=n===void 0?" : ":n,i=e.contentStyle,s=i===void 0?{}:i,o=e.itemStyle,a=o===void 0?{}:o,c=e.labelStyle,u=c===void 0?{}:c,d=e.payload,h=e.formatter,f=e.itemSorter,m=e.wrapperClassName,v=e.labelClassName,p=e.label,g=e.labelFormatter,y=e.accessibilityLayer,b=y===void 0?!1:y,x=function(){if(d&&d.length){var j={padding:0,margin:0},k=(f?JO(d,f):d).map(function(P,O){if(P.type==="none")return null;var L=$T({display:"block",paddingTop:4,paddingBottom:4,color:P.color||"#000"},a),F=P.formatter||h||_3e,D=P.value,I=P.name,N=D,G=I;if(F&&N!=null&&G!=null){var q=F(D,I,P,O,d);if(Array.isArray(q)){var W=m3e(q,2);N=W[0],G=W[1]}else N=q}return V.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(O),style:L},vr(G)?V.createElement("span",{className:"recharts-tooltip-item-name"},G):null,vr(G)?V.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,V.createElement("span",{className:"recharts-tooltip-item-value"},N),V.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return V.createElement("ul",{className:"recharts-tooltip-item-list",style:j},k)}return null},w=$T({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),_=$T({margin:0},u),S=!en(p),T=S?p:"",M=Gt("recharts-default-tooltip",m),A=Gt("recharts-tooltip-label",v);S&&g&&d!==void 0&&d!==null&&(T=g(p,d));var C=b?{role:"status","aria-live":"assertive"}:{};return V.createElement("div",eP({className:M,style:w},C),V.createElement("p",{className:A,style:_},V.isValidElement(T)?T:"".concat(T)),x())};function Oy(t){"@babel/helpers - typeof";return Oy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oy(t)}function eb(t,e,n){return e=E3e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E3e(t){var e=T3e(t,"string");return Oy(e)=="symbol"?e:e+""}function T3e(t,e){if(Oy(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Oy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var hg="recharts-tooltip-wrapper",A3e={visibility:"hidden"};function C3e(t){var e=t.coordinate,n=t.translateX,r=t.translateY;return Gt(hg,eb(eb(eb(eb({},"".concat(hg,"-right"),Le(n)&&e&&Le(e.x)&&n>=e.x),"".concat(hg,"-left"),Le(n)&&e&&Le(e.x)&&n<e.x),"".concat(hg,"-bottom"),Le(r)&&e&&Le(e.y)&&r>=e.y),"".concat(hg,"-top"),Le(r)&&e&&Le(e.y)&&r<e.y))}function yU(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.key,i=t.offsetTopLeft,s=t.position,o=t.reverseDirection,a=t.tooltipDimension,c=t.viewBox,u=t.viewBoxDimension;if(s&&Le(s[r]))return s[r];var d=n[r]-a-i,h=n[r]+i;if(e[r])return o[r]?d:h;if(o[r]){var f=d,m=c[r];return f<m?Math.max(h,c[r]):Math.max(d,c[r])}var v=h+a,p=c[r]+u;return v>p?Math.max(d,c[r]):Math.max(h,c[r])}function M3e(t){var e=t.translateX,n=t.translateY,r=t.useTranslate3d;return{transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")}}function R3e(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.offsetTopLeft,i=t.position,s=t.reverseDirection,o=t.tooltipBox,a=t.useTranslate3d,c=t.viewBox,u,d,h;return o.height>0&&o.width>0&&n?(d=yU({allowEscapeViewBox:e,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),h=yU({allowEscapeViewBox:e,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=M3e({translateX:d,translateY:h,useTranslate3d:a})):u=A3e,{cssProperties:u,cssClasses:C3e({translateX:d,translateY:h,coordinate:n})}}function $m(t){"@babel/helpers - typeof";return $m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$m(t)}function xU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bU(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xU(Object(n),!0).forEach(function(r){nP(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xU(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function P3e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j3e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nQ(r.key),r)}}function N3e(t,e,n){return e&&j3e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function k3e(t,e,n){return e=H1(e),O3e(t,tQ()?Reflect.construct(e,n||[],H1(t).constructor):e.apply(t,n))}function O3e(t,e){if(e&&($m(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I3e(t)}function I3e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tQ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tQ=function(){return!!t})()}function H1(t){return H1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},H1(t)}function L3e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tP(t,e)}function tP(t,e){return tP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tP(t,e)}function nP(t,e,n){return e=nQ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nQ(t){var e=D3e(t,"string");return $m(e)=="symbol"?e:e+""}function D3e(t,e){if($m(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if($m(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var wU=1,F3e=function(t){function e(){var n;P3e(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=k3e(this,e,[].concat(i)),nP(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),nP(n,"handleKeyDown",function(o){if(o.key==="Escape"){var a,c,u,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(a=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&a!==void 0?a:0,y:(u=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),n}return L3e(e,t),N3e(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>wU||Math.abs(r.height-this.state.lastBoundingBox.height)>wU)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,s=i.active,o=i.allowEscapeViewBox,a=i.animationDuration,c=i.animationEasing,u=i.children,d=i.coordinate,h=i.hasPayload,f=i.isAnimationActive,m=i.offset,v=i.position,p=i.reverseDirection,g=i.useTranslate3d,y=i.viewBox,b=i.wrapperStyle,x=R3e({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:m,position:v,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:y}),w=x.cssClasses,_=x.cssProperties,S=bU(bU({transition:f&&s?"transform ".concat(a,"ms ").concat(c):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&h?"visible":"hidden",position:"absolute",top:0,left:0},b);return V.createElement("div",{tabIndex:-1,className:w,style:S,ref:function(M){r.wrapperNode=M}},u)}}])}(E.PureComponent),U3e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},zc={isSsr:U3e(),get:function(e){return zc[e]},set:function(e,n){if(typeof e=="string")zc[e]=n;else{var r=Object.keys(e);r&&r.length&&r.forEach(function(i){zc[i]=e[i]})}}};function Hm(t){"@babel/helpers - typeof";return Hm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hm(t)}function _U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function SU(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_U(Object(n),!0).forEach(function(r){e3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_U(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function B3e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z3e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,iQ(r.key),r)}}function $3e(t,e,n){return e&&z3e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function H3e(t,e,n){return e=V1(e),V3e(t,rQ()?Reflect.construct(e,n||[],V1(t).constructor):e.apply(t,n))}function V3e(t,e){if(e&&(Hm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W3e(t)}function W3e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rQ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rQ=function(){return!!t})()}function V1(t){return V1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},V1(t)}function G3e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rP(t,e)}function rP(t,e){return rP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rP(t,e)}function e3(t,e,n){return e=iQ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function iQ(t){var e=q3e(t,"string");return Hm(e)=="symbol"?e:e+""}function q3e(t,e){if(Hm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Hm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Y3e(t){return t.dataKey}function X3e(t,e){return V.isValidElement(t)?V.cloneElement(t,e):typeof t=="function"?V.createElement(t,e):V.createElement(S3e,e)}var tl=function(t){function e(){return B3e(this,e),H3e(this,e,arguments)}return G3e(e,t),$3e(e,[{key:"render",value:function(){var r=this,i=this.props,s=i.active,o=i.allowEscapeViewBox,a=i.animationDuration,c=i.animationEasing,u=i.content,d=i.coordinate,h=i.filterNull,f=i.isAnimationActive,m=i.offset,v=i.payload,p=i.payloadUniqBy,g=i.position,y=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,w=i.wrapperStyle,_=v??[];h&&_.length&&(_=qK(v.filter(function(T){return T.value!=null&&(T.hide!==!0||r.props.includeHidden)}),p,Y3e));var S=_.length>0;return V.createElement(F3e,{allowEscapeViewBox:o,animationDuration:a,animationEasing:c,isAnimationActive:f,active:s,coordinate:d,hasPayload:S,offset:m,position:g,reverseDirection:y,useTranslate3d:b,viewBox:x,wrapperStyle:w},X3e(u,SU(SU({},this.props),{},{payload:_})))}}])}(E.PureComponent);e3(tl,"displayName","Tooltip");e3(tl,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!zc.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var K3e=Da,Q3e=function(){return K3e.Date.now()},Z3e=Q3e,J3e=/\s/;function eIe(t){for(var e=t.length;e--&&J3e.test(t.charAt(e)););return e}var tIe=eIe,nIe=tIe,rIe=/^\s+/;function iIe(t){return t&&t.slice(0,nIe(t)+1).replace(rIe,"")}var sIe=iIe,oIe=sIe,EU=pu,aIe=Rp,TU=NaN,lIe=/^[-+]0x[0-9a-f]+$/i,cIe=/^0b[01]+$/i,uIe=/^0o[0-7]+$/i,dIe=parseInt;function hIe(t){if(typeof t=="number")return t;if(aIe(t))return TU;if(EU(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=EU(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=oIe(t);var n=cIe.test(t);return n||uIe.test(t)?dIe(t.slice(2),n?2:8):lIe.test(t)?TU:+t}var sQ=hIe,fIe=pu,HT=Z3e,AU=sQ,mIe="Expected a function",pIe=Math.max,gIe=Math.min;function vIe(t,e,n){var r,i,s,o,a,c,u=0,d=!1,h=!1,f=!0;if(typeof t!="function")throw new TypeError(mIe);e=AU(e)||0,fIe(n)&&(d=!!n.leading,h="maxWait"in n,s=h?pIe(AU(n.maxWait)||0,e):s,f="trailing"in n?!!n.trailing:f);function m(S){var T=r,M=i;return r=i=void 0,u=S,o=t.apply(M,T),o}function v(S){return u=S,a=setTimeout(y,e),d?m(S):o}function p(S){var T=S-c,M=S-u,A=e-T;return h?gIe(A,s-M):A}function g(S){var T=S-c,M=S-u;return c===void 0||T>=e||T<0||h&&M>=s}function y(){var S=HT();if(g(S))return b(S);a=setTimeout(y,p(S))}function b(S){return a=void 0,f&&r?m(S):(r=i=void 0,o)}function x(){a!==void 0&&clearTimeout(a),u=0,r=c=i=a=void 0}function w(){return a===void 0?o:b(HT())}function _(){var S=HT(),T=g(S);if(r=arguments,i=this,c=S,T){if(a===void 0)return v(c);if(h)return clearTimeout(a),a=setTimeout(y,e),m(c)}return a===void 0&&(a=setTimeout(y,e)),o}return _.cancel=x,_.flush=w,_}var yIe=vIe,xIe=yIe,bIe=pu,wIe="Expected a function";function _Ie(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(wIe);return bIe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),xIe(t,e,{leading:r,maxWait:e,trailing:i})}var SIe=_Ie;const oQ=tn(SIe);function Iy(t){"@babel/helpers - typeof";return Iy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iy(t)}function CU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function tb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?CU(Object(n),!0).forEach(function(r){EIe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CU(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function EIe(t,e,n){return e=TIe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TIe(t){var e=AIe(t,"string");return Iy(e)=="symbol"?e:e+""}function AIe(t,e){if(Iy(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Iy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function CIe(t,e){return jIe(t)||PIe(t,e)||RIe(t,e)||MIe()}function MIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5750In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RIe(t,e){if(t){if(typeof t=="string")return MU(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MU(t,e)}}function MU(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function PIe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function jIe(t){if(Array.isArray(t))return t}var aQ=E.forwardRef(function(t,e){var n=t.aspect,r=t.initialDimension,i=r===void 0?{width:-1,height:-1}:r,s=t.width,o=s===void 0?"100%":s,a=t.height,c=a===void 0?"100%":a,u=t.minWidth,d=u===void 0?0:u,h=t.minHeight,f=t.maxHeight,m=t.children,v=t.debounce,p=v===void 0?0:v,g=t.id,y=t.className,b=t.onResize,x=t.style,w=x===void 0?{}:x,_=E.useRef(null),S=E.useRef();S.current=b,E.useImperativeHandle(e,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var T=E.useState({containerWidth:i.width,containerHeight:i.height}),M=CIe(T,2),A=M[0],C=M[1],R=E.useCallback(function(k,P){C(function(O){var L=Math.round(k),F=Math.round(P);return O.containerWidth===L&&O.containerHeight===F?O:{containerWidth:L,containerHeight:F}})},[]);E.useEffect(function(){var k=function(I){var N,G=I[0].contentRect,q=G.width,W=G.height;R(q,W),(N=S.current)===null||N===void 0||N.call(S,q,W)};p>0&&(k=oQ(k,p,{trailing:!0,leading:!1}));var P=new ResizeObserver(k),O=_.current.getBoundingClientRect(),L=O.width,F=O.height;return R(L,F),P.observe(_.current),function(){P.disconnect()}},[R,p]);var j=E.useMemo(function(){var k=A.containerWidth,P=A.containerHeight;if(k<0||P<0)return null;vl(od(o)||od(c),`The width(%s) and height(%s) are both fixed numbers, 5751 maybe you don't need to use a ResponsiveContainer.`,o,c),vl(!n||n>0,"The aspect(%s) must be greater than zero.",n);var O=od(o)?k:o,L=od(c)?P:c;n&&n>0&&(O?L=O/n:L&&(O=L*n),f&&L>f&&(L=f)),vl(O>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0, 5752 please check the style of container, or the props width(%s) and height(%s), 5753 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 5754 height and width.`,O,L,o,c,d,h,n);var F=!Array.isArray(m)&&gl(m.type).endsWith("Chart");return V.Children.map(m,function(D){return V.isValidElement(D)?E.cloneElement(D,tb({width:O,height:L},F?{style:tb({height:"100%",width:"100%",maxHeight:L,maxWidth:O},D.props.style)}:{})):D})},[n,m,c,f,h,d,A,o]);return V.createElement("div",{id:g?"".concat(g):void 0,className:Gt("recharts-responsive-container",y),style:tb(tb({},w),{},{width:o,height:c,minWidth:d,minHeight:h,maxHeight:f}),ref:_},j)}),lQ=function(e){return null};lQ.displayName="Cell";function Ly(t){"@babel/helpers - typeof";return Ly=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ly(t)}function RU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function iP(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?RU(Object(n),!0).forEach(function(r){NIe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):RU(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function NIe(t,e,n){return e=kIe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kIe(t){var e=OIe(t,"string");return Ly(e)=="symbol"?e:e+""}function OIe(t,e){if(Ly(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ly(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Dh={widthCache:{},cacheCount:0},IIe=2e3,LIe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},PU="recharts_measurement_span";function DIe(t){var e=iP({},t);return Object.keys(e).forEach(function(n){e[n]||delete e[n]}),e}var Nv=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||zc.isSsr)return{width:0,height:0};var r=DIe(n),i=JSON.stringify({text:e,copyStyle:r});if(Dh.widthCache[i])return Dh.widthCache[i];try{var s=document.getElementById(PU);s||(s=document.createElement("span"),s.setAttribute("id",PU),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var o=iP(iP({},LIe),r);Object.assign(s.style,o),s.textContent="".concat(e);var a=s.getBoundingClientRect(),c={width:a.width,height:a.height};return Dh.widthCache[i]=c,++Dh.cacheCount>IIe&&(Dh.cacheCount=0,Dh.widthCache={}),c}catch{return{width:0,height:0}}},FIe=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function Dy(t){"@babel/helpers - typeof";return Dy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dy(t)}function W1(t,e){return $Ie(t)||zIe(t,e)||BIe(t,e)||UIe()}function UIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5755In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BIe(t,e){if(t){if(typeof t=="string")return jU(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jU(t,e)}}function jU(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function zIe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function $Ie(t){if(Array.isArray(t))return t}function HIe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NU(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,WIe(r.key),r)}}function VIe(t,e,n){return e&&NU(t.prototype,e),n&&NU(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function WIe(t){var e=GIe(t,"string");return Dy(e)=="symbol"?e:e+""}function GIe(t,e){if(Dy(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Dy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var kU=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,OU=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qIe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,YIe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,cQ={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},XIe=Object.keys(cQ),Pf="NaN";function KIe(t,e){return t*cQ[e]}var nb=function(){function t(e,n){HIe(this,t),this.num=e,this.unit=n,this.num=e,this.unit=n,Number.isNaN(e)&&(this.unit=""),n!==""&&!qIe.test(n)&&(this.num=NaN,this.unit=""),XIe.includes(n)&&(this.num=KIe(e,n),this.unit="px")}return VIe(t,[{key:"add",value:function(n){return this.unit!==n.unit?new t(NaN,""):new t(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new t(NaN,""):new t(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new t(NaN,""):new t(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new t(NaN,""):new t(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=YIe.exec(n))!==null&&r!==void 0?r:[],s=W1(i,3),o=s[1],a=s[2];return new t(parseFloat(o),a??"")}}])}();function uQ(t){if(t.includes(Pf))return Pf;for(var e=t;e.includes("*")||e.includes("/");){var n,r=(n=kU.exec(e))!==null&&n!==void 0?n:[],i=W1(r,4),s=i[1],o=i[2],a=i[3],c=nb.parse(s??""),u=nb.parse(a??""),d=o==="*"?c.multiply(u):c.divide(u);if(d.isNaN())return Pf;e=e.replace(kU,d.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var h,f=(h=OU.exec(e))!==null&&h!==void 0?h:[],m=W1(f,4),v=m[1],p=m[2],g=m[3],y=nb.parse(v??""),b=nb.parse(g??""),x=p==="+"?y.add(b):y.subtract(b);if(x.isNaN())return Pf;e=e.replace(OU,x.toString())}return e}var IU=/\(([^()]*)\)/;function QIe(t){for(var e=t;e.includes("(");){var n=IU.exec(e),r=W1(n,2),i=r[1];e=e.replace(IU,uQ(i))}return e}function ZIe(t){var e=t.replace(/\s+/g,"");return e=QIe(e),e=uQ(e),e}function JIe(t){try{return ZIe(t)}catch{return Pf}}function VT(t){var e=JIe(t.slice(5,-1));return e===Pf?"":e}var e4e=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],t4e=["dx","dy","angle","className","breakAll"];function sP(){return sP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sP.apply(this,arguments)}function LU(t,e){if(t==null)return{};var n=n4e(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function n4e(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function DU(t,e){return o4e(t)||s4e(t,e)||i4e(t,e)||r4e()}
5755function r4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5756In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i4e(t,e){if(t){if(typeof t=="string")return FU(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FU(t,e)}}function FU(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s4e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function o4e(t){if(Array.isArray(t))return t}var dQ=/[ \f\n\r\t\v\u2028\u2029]+/,hQ=function(e){var n=e.children,r=e.breakAll,i=e.style;try{var s=[];en(n)||(r?s=n.toString().split(""):s=n.toString().split(dQ));var o=s.map(function(c){return{word:c,width:Nv(c,i).width}}),a=r?0:Nv(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch{return null}},a4e=function(e,n,r,i,s){var o=e.maxLines,a=e.children,c=e.style,u=e.breakAll,d=Le(o),h=a,f=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return O.reduce(function(L,F){var D=F.word,I=F.width,N=L[L.length-1];if(N&&(i==null||s||N.width+I+r<Number(i)))N.words.push(D),N.width+=I+r;else{var G={words:[D],width:I};L.push(G)}return L},[])},m=f(n),v=function(O){return O.reduce(function(L,F){return L.width>F.width?L:F})};if(!d)return m;for(var p="â¦",g=function(O){var L=h.slice(0,O),F=hQ({breakAll:u,style:c,children:L+p}).wordsWithComputedWidth,D=f(F),I=D.length>o||v(D).width>Number(i);return[I,D]},y=0,b=h.length-1,x=0,w;y<=b&&x<=h.length-1;){var _=Math.floor((y+b)/2),S=_-1,T=g(S),M=DU(T,2),A=M[0],C=M[1],R=g(_),j=DU(R,1),k=j[0];if(!A&&!k&&(y=_+1),A&&k&&(b=_-1),!A&&k){w=C;break}x++}return w||m},UU=function(e){var n=en(e)?[]:e.toString().split(dQ);return[{words:n}]},l4e=function(e){var n=e.width,r=e.scaleToFit,i=e.children,s=e.style,o=e.breakAll,a=e.maxLines;if((n||r)&&!zc.isSsr){var c,u,d=hQ({breakAll:o,children:i,style:s});if(d){var h=d.wordsWithComputedWidth,f=d.spaceWidth;c=h,u=f}else return UU(i);return a4e({breakAll:o,children:i,maxLines:a,style:s},c,u,n,r)}return UU(i)},BU="#808080",G1=function(e){var n=e.x,r=n===void 0?0:n,i=e.y,s=i===void 0?0:i,o=e.lineHeight,a=o===void 0?"1em":o,c=e.capHeight,u=c===void 0?"0.71em":c,d=e.scaleToFit,h=d===void 0?!1:d,f=e.textAnchor,m=f===void 0?"start":f,v=e.verticalAnchor,p=v===void 0?"end":v,g=e.fill,y=g===void 0?BU:g,b=LU(e,e4e),x=E.useMemo(function(){return l4e({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:h,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,h,b.style,b.width]),w=b.dx,_=b.dy,S=b.angle,T=b.className,M=b.breakAll,A=LU(b,t4e);if(!vr(r)||!vr(s))return null;var C=r+(Le(w)?w:0),R=s+(Le(_)?_:0),j;switch(p){case"start":j=VT("calc(".concat(u,")"));break;case"middle":j=VT("calc(".concat((x.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:j=VT("calc(".concat(x.length-1," * -").concat(a,")"));break}var k=[];if(h){var P=x[0].width,O=b.width;k.push("scale(".concat((Le(O)?O/P:1)/P,")"))}return S&&k.push("rotate(".concat(S,", ").concat(C,", ").concat(R,")")),k.length&&(A.transform=k.join(" ")),V.createElement("text",sP({},Jt(A,!0),{x:C,y:R,className:Gt("recharts-text",T),textAnchor:m,fill:y.includes("url")?BU:y}),x.map(function(L,F){var D=L.words.join(M?"":" ");return V.createElement("tspan",{x:C,dy:F===0?j:a,key:"".concat(D,"-").concat(F)},D)}))};function $c(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function c4e(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function t3(t){let e,n,r;t.length!==2?(e=$c,n=(a,c)=>$c(t(a),c),r=(a,c)=>t(a)-c):(e=t===$c||t===c4e?t:u4e,n=t,r=t);function i(a,c,u=0,d=a.length){if(u<d){if(e(c,c)!==0)return d;do{const h=u+d>>>1;n(a[h],c)<0?u=h+1:d=h}while(u<d)}return u}function s(a,c,u=0,d=a.length){if(u<d){if(e(c,c)!==0)return d;do{const h=u+d>>>1;n(a[h],c)<=0?u=h+1:d=h}while(u<d)}return u}function o(a,c,u=0,d=a.length){const h=i(a,c,u,d-1);return h>u&&r(a[h-1],c)>-r(a[h],c)?h-1:h}return{left:i,center:o,right:s}}function u4e(){return 0}function fQ(t){return t===null?NaN:+t}function*d4e(t,e){for(let n of t)n!=null&&(n=+n)>=n&&(yield n)}const h4e=t3($c),Y0=h4e.right;t3(fQ).center;class zU extends Map{constructor(e,n=p4e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get($U(this,e))}has(e){return super.has($U(this,e))}set(e,n){return super.set(f4e(this,e),n)}delete(e){return super.delete(m4e(this,e))}}function $U({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function f4e({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function m4e({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function p4e(t){return t!==null&&typeof t=="object"?t.valueOf():t}function g4e(t=$c){if(t===$c)return mQ;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function mQ(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}const v4e=Math.sqrt(50),y4e=Math.sqrt(10),x4e=Math.sqrt(2);function q1(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),o=s>=v4e?10:s>=y4e?5:s>=x4e?2:1;let a,c,u;return i<0?(u=Math.pow(10,-i)/o,a=Math.round(t*u),c=Math.round(e*u),a/u<t&&++a,c/u>e&&--c,u=-u):(u=Math.pow(10,i)*o,a=Math.round(t/u),c=Math.round(e/u),a*u<t&&++a,c*u>e&&--c),c<a&&.5<=n&&n<2?q1(t,e,n*2):[a,c,u]}function oP(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,s,o]=r?q1(e,t,n):q1(t,e,n);if(!(s>=i))return[];const a=s-i+1,c=new Array(a);if(r)if(o<0)for(let u=0;u<a;++u)c[u]=(s-u)/-o;else for(let u=0;u<a;++u)c[u]=(s-u)*o;else if(o<0)for(let u=0;u<a;++u)c[u]=(i+u)/-o;else for(let u=0;u<a;++u)c[u]=(i+u)*o;return c}function aP(t,e,n){return e=+e,t=+t,n=+n,q1(t,e,n)[2]}function lP(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?aP(e,t,n):aP(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function HU(t,e){let n;for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function VU(t,e){let n;for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}
5756function pQ(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=i===void 0?mQ:g4e(i);r>n;){if(r-n>600){const c=r-n+1,u=e-n+1,d=Math.log(c),h=.5*Math.exp(2*d/3),f=.5*Math.sqrt(d*h*(c-h)/c)*(u-c/2<0?-1:1),m=Math.max(n,Math.floor(e-u*h/c+f)),v=Math.min(r,Math.floor(e+(c-u)*h/c+f));pQ(t,e,m,v,i)}const s=t[e];let o=n,a=r;for(fg(t,n,e),i(t[r],s)>0&&fg(t,n,r);o<a;){for(fg(t,o,a),++o,--a;i(t[o],s)<0;)++o;for(;i(t[a],s)>0;)--a}i(t[n],s)===0?fg(t,n,a):(++a,fg(t,a,r)),a<=e&&(n=a+1),e<=a&&(r=a-1)}return t}function fg(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b4e(t,e,n){if(t=Float64Array.from(d4e(t)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return VU(t);if(e>=1)return HU(t);var r,i=(r-1)*e,s=Math.floor(i),o=HU(pQ(t,s).subarray(0,s+1)),a=VU(t.subarray(s+1));return o+(a-o)*(i-s)}}function w4e(t,e,n=fQ){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,s=Math.floor(i),o=+n(t[s],s,t),a=+n(t[s+1],s+1,t);return o+(a-o)*(i-s)}}function _4e(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,s=new Array(i);++r<i;)s[r]=t+r*n;return s}function vo(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Dl(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const cP=Symbol("implicit");function n3(){var t=new zU,e=[],n=[],r=cP;function i(s){let o=t.get(s);if(o===void 0){if(r!==cP)return r;t.set(s,o=e.push(s)-1)}return n[o%n.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new zU;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return n3(e,n).unknown(r)},vo.apply(i,arguments),i}function Fy(){var t=n3().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,s,o,a=!1,c=0,u=0,d=.5;delete t.unknown;function h(){var f=e().length,m=i<r,v=m?i:r,p=m?r:i;s=(p-v)/Math.max(1,f-c+u*2),a&&(s=Math.floor(s)),v+=(p-v-s*(f-c))*d,o=s*(1-c),a&&(v=Math.round(v),o=Math.round(o));var g=_4e(f).map(function(y){return v+s*y});return n(m?g.reverse():g)}return t.domain=function(f){return arguments.length?(e(f),h()):e()},t.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,h()):[r,i]},t.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,a=!0,h()},t.bandwidth=function(){return o},t.step=function(){return s},t.round=function(f){return arguments.length?(a=!!f,h()):a},t.padding=function(f){return arguments.length?(c=Math.min(1,u=+f),h()):c},t.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),h()):c},t.paddingOuter=function(f){return arguments.length?(u=+f,h()):u},t.align=function(f){return arguments.length?(d=Math.max(0,Math.min(1,f)),h()):d},t.copy=function(){return Fy(e(),[r,i]).round(a).paddingInner(c).paddingOuter(u).align(d)},vo.apply(h(),arguments)}function gQ(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return gQ(e())},t}function kv(){return gQ(Fy.apply(null,arguments).paddingInner(1))}function r3(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function vQ(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function X0(){}var Uy=.7,Y1=1/Uy,em="\\s*([+-]?\\d+)\\s*",By="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ra="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",S4e=/^#([0-9a-f]{3,8})$/,E4e=new RegExp(`^rgb\\(${em},${em},${em}\\)$`),T4e=new RegExp(`^rgb\\(${Ra},${Ra},${Ra}\\)$`),A4e=new RegExp(`^rgba\\(${em},${em},${em},${By}\\)$`),C4e=new RegExp(`^rgba\\(${Ra},${Ra},${Ra},${By}\\)$`),M4e=new RegExp(`^hsl\\(${By},${Ra},${Ra}\\)$`),R4e=new RegExp(`^hsla\\(${By},${Ra},${Ra},${By}\\)$`),WU={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};r3(X0,zy,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:GU,formatHex:GU,formatHex8:P4e,formatHsl:j4e,formatRgb:qU,toString:qU});function GU(){return this.rgb().formatHex()}function P4e(){return this.rgb().formatHex8()}function j4e(){return yQ(this).formatHsl()}function qU(){return this.rgb().formatRgb()}function zy(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=S4e.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?YU(e):n===3?new Gi(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?rb(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?rb(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=E4e.exec(t))?new Gi(e[1],e[2],e[3],1):(e=T4e.exec(t))?new Gi(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=A4e.exec(t))?rb(e[1],e[2],e[3],e[4]):(e=C4e.exec(t))?rb(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=M4e.exec(t))?QU(e[1],e[2]/100,e[3]/100,1):(e=
vendor: 7,185 bytes, line 5756
5756R4e.exec(t))?QU(e[1],e[2]/100,e[3]/100,e[4]):WU.hasOwnProperty(t)?YU(WU[t]):t==="transparent"?new Gi(NaN,NaN,NaN,0):null}function YU(t){return new Gi(t>>16&255,t>>8&255,t&255,1)}function rb(t,e,n,r){return r<=0&&(t=e=n=NaN),new Gi(t,e,n,r)}function N4e(t){return t instanceof X0||(t=zy(t)),t?(t=t.rgb(),new Gi(t.r,t.g,t.b,t.opacity)):new Gi}function uP(t,e,n,r){return arguments.length===1?N4e(t):new Gi(t,e,n,r??1)}function Gi(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}r3(Gi,uP,vQ(X0,{brighter(t){return t=t==null?Y1:Math.pow(Y1,t),new Gi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Uy:Math.pow(Uy,t),new Gi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Gi(Nd(this.r),Nd(this.g),Nd(this.b),X1(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:XU,formatHex:XU,formatHex8:k4e,formatRgb:KU,toString:KU}));function XU(){return`#${ad(this.r)}${ad(this.g)}${ad(this.b)}`}function k4e(){return`#${ad(this.r)}${ad(this.g)}${ad(this.b)}${ad((isNaN(this.opacity)?1:this.opacity)*255)}`}function KU(){const t=X1(this.opacity);return`${t===1?"rgb(":"rgba("}${Nd(this.r)}, ${Nd(this.g)}, ${Nd(this.b)}${t===1?")":`, ${t})`}`}function X1(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Nd(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ad(t){return t=Nd(t),(t<16?"0":"")+t.toString(16)}function QU(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Do(t,e,n,r)}function yQ(t){if(t instanceof Do)return new Do(t.h,t.s,t.l,t.opacity);if(t instanceof X0||(t=zy(t)),!t)return new Do;if(t instanceof Do)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,a=s-i,c=(s+i)/2;return a?(e===s?o=(n-r)/a+(n<r)*6:n===s?o=(r-e)/a+2:o=(e-n)/a+4,a/=c<.5?s+i:2-s-i,o*=60):a=c>0&&c<1?0:o,new Do(o,a,c,t.opacity)}function O4e(t,e,n,r){return arguments.length===1?yQ(t):new Do(t,e,n,r??1)}function Do(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}r3(Do,O4e,vQ(X0,{brighter(t){return t=t==null?Y1:Math.pow(Y1,t),new Do(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Uy:Math.pow(Uy,t),new Do(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Gi(WT(t>=240?t-240:t+120,i,r),WT(t,i,r),WT(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Do(ZU(this.h),ib(this.s),ib(this.l),X1(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=X1(this.opacity);return`${t===1?"hsl(":"hsla("}${ZU(this.h)}, ${ib(this.s)*100}%, ${ib(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ZU(t){return t=(t||0)%360,t<0?t+360:t}function ib(t){return Math.max(0,Math.min(1,t||0))}function WT(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const i3=t=>()=>t;function I4e(t,e){return function(n){return t+n*e}}function L4e(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function D4e(t){return(t=+t)==1?xQ:function(e,n){return n-e?L4e(e,n,t):i3(isNaN(e)?n:e)}}function xQ(t,e){var n=e-t;return n?I4e(t,n):i3(isNaN(t)?e:t)}const JU=function t(e){var n=D4e(e);function r(i,s){var o=n((i=uP(i)).r,(s=uP(s)).r),a=n(i.g,s.g),c=n(i.b,s.b),u=xQ(i.opacity,s.opacity);return function(d){return i.r=o(d),i.g=a(d),i.b=c(d),i.opacity=u(d),i+""}}return r.gamma=t,r}(1);function F4e(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=t[i]*(1-s)+e[i]*s;return r}}function U4e(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function B4e(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),s=new Array(n),o;for(o=0;o<r;++o)i[o]=Dp(t[o],e[o]);for(;o<n;++o)s[o]=e[o];return function(a){for(o=0;o<r;++o)s[o]=i[o](a);return s}}function z4e(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function K1(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function $4e(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Dp(t[i],e[i]):r[i]=e[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var dP=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GT=new RegExp(dP.source,"g");function H4e(t){return function(){return t}}function V4e(t){return function(e){return t(e)+""}}function W4e(t,e){var n=dP.lastIndex=GT.lastIndex=0,r,i,s,o=-1,a=[],c=[];for(t=t+"",e=e+"";(r=dP.exec(t))&&(i=GT.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,c.push({i:o,x:K1(r,i)})),n=GT.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?c[0]?V4e(c[0].x):H4e(e):(e=c.length,function(u){for(var d=0,h;d<e;++d)a[(h=c[d]).i]=h.x(u);return a.join("")})}function Dp(t,e){var n=typeof e,r;return e==null||n==="boolean"?i3(e):(n==="number"?K1:n==="string"?(r=zy(e))?(e=r,JU):W4e:e instanceof zy?JU:e instanceof Date?z4e:U4e(e)?F4e:Array.isArray(e)?B4e:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?$4e:K1)(t,e)}function s3(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function G4e(t,e){e===void 0&&(e=t,t=Dp);for(var n=0,r=e.length-1,i=e[0],s=new Array(r<0?0:r);n<r;)s[n]=t(i,i=e[++n]);return function(o){var a=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return s[a](o-a)}}function q4e(t){return function(){return t}}function Q1(t){return+t}var e6=[0,1];function Mi(t){return t}function hP(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:q4e(isNaN(e)?NaN:.5)}function Y4e(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function X4e(t,e,n){var r=t[0],i=t[1],s=e[0],o=e[1];return i<r?(r=hP(i,r),s=n(o,s)):(r=hP(r,i),s=n(s,o)),function(a){return s(r(a))}}function K4e(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),s=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=hP(t[o],t[o+1]),s[o]=n(e[o],e[o+1]);return function(a){var c=Y0(t,a,1,r)-1;return s[c](i[c](a))}}function K0(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function h2(){var t=e6,e=e6,n=Dp,r,i,s,o=Mi,a,c,u;function d(){var f=Math.min(t.length,e.length);return o!==Mi&&(o=Y4e(t[0],t[f-1])),a=f>2?K4e:X4e,c=u=null,h}function h(f){return f==null||isNaN(f=+f)?s:(c||(c=a(t.map(r),e,n)))(r(o(f)))}return h.invert=function(f){return o(i((u||(u=a(e,t.map(r),K1)))(f)))},h.domain=function(f){return arguments.length?(t=Array.from(f,Q1),d()):t.slice()},h.range=function(f){return arguments.length?(e=Array.from(f),d()):e.slice()},h.rangeRound=function(f){return e=Array.from(f),n=s3,d()},h.clamp=function(f){return arguments.length?(o=f?!0:Mi,d()):o!==Mi},h.interpolate=function(f){return arguments.length?(n=f,d()):n},h.unknown=function(f){return arguments.length?(s=f,h):s},function(f,m){return r=f,i=m,d()}}function o3(){return h2()(Mi,Mi)}function Q4e(t){return Math.abs(t=Math.round(t))>
vendor: 4,407 bytes, line 5756
5756=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Z1(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Vm(t){return t=Z1(Math.abs(t)),t?t[1]:NaN}function Z4e(t,e){return function(n,r){for(var i=n.length,s=[],o=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),s.push(n.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[o=(o+1)%t.length];return s.reverse().join(e)}}function J4e(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var e5e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $y(t){if(!(e=e5e.exec(t)))throw new Error("invalid format: "+t);var e;return new a3({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}$y.prototype=a3.prototype;function a3(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}a3.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function t5e(t){e:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break e;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var bQ;function n5e(t,e){var n=Z1(t,e);if(!n)return t+"";var r=n[0],i=n[1],s=i-(bQ=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return s===o?r:s>o?r+new Array(s-o+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Z1(t,Math.max(0,e+s-1))[0]}function t6(t,e){var n=Z1(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const n6={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Q4e,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>t6(t*100,e),r:t6,s:n5e,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function r6(t){return t}var i6=Array.prototype.map,s6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function r5e(t){var e=t.grouping===void 0||t.thousands===void 0?r6:Z4e(i6.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?r6:J4e(i6.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"â":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(h){h=$y(h);var f=h.fill,m=h.align,v=h.sign,p=h.symbol,g=h.zero,y=h.width,b=h.comma,x=h.precision,w=h.trim,_=h.type;_==="n"?(b=!0,_="g"):n6[_]||(x===void 0&&(x=12),w=!0,_="g"),(g||f==="0"&&m==="=")&&(g=!0,f="0",m="=");var S=p==="$"?n:p==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",T=p==="$"?r:/[%p]/.test(_)?o:"",M=n6[_],A=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function C(R){var j=S,k=T,P,O,L;if(_==="c")k=M(R)+k,R="";else{R=+R;var F=R<0||1/R<0;if(R=isNaN(R)?c:M(Math.abs(R),x),w&&(R=t5e(R)),F&&+R==0&&v!=="+"&&(F=!1),j=(F?v==="("?v:a:v==="-"||v==="("?"":v)+j,k=(_==="s"?s6[8+bQ/3]:"")+k+(F&&v==="("?")":""),A){for(P=-1,O=R.length;++P<O;)if(L=R.charCodeAt(P),48>L||L>57){k=(L===46?i+R.slice(P+1):R.slice(P))+k,R=R.slice(0,P);break}}}b&&!g&&(R=e(R,1/0));var D=j.length+R.length+k.length,I=D<y?new Array(y-D+1).join(f):"";switch(b&&g&&(R=e(I+R,I.length?y-k.length:1/0),I=""),m){case"<":R=j+R+k+I;break;case"=":R=j+I+R+k;break;case"^":R=I.slice(0,D=I.length>>1)+j+R+k+I.slice(D);break;default:R=I+j+R+k;break}return s(R)}return C.toString=function(){return h+""},C}function d(h,f){var m=u((h=$y(h),h.type="f",h)),v=Math.max(-8,Math.min(8,Math.floor(Vm(f)/3)))*3,p=Math.pow(10,-v),g=s6[8+v/3];return function(y){return m(p*y)+g}}return{format:u,formatPrefix:d}}var sb,l3,wQ;
vendor: 4,415 bytes, line 5756
5756i5e({thousands:",",grouping:[3],currency:["$",""]});function i5e(t){return sb=r5e(t),l3=sb.format,wQ=sb.formatPrefix,sb}function s5e(t){return Math.max(0,-Vm(Math.abs(t)))}function o5e(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vm(e)/3)))*3-Vm(Math.abs(t)))}function a5e(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Vm(e)-Vm(t))+1}function _Q(t,e,n,r){var i=lP(t,e,n),s;switch(r=$y(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(s=o5e(i,o))&&(r.precision=s),wQ(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=a5e(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=s5e(i))&&(r.precision=s-(r.type==="%")*2);break}}return l3(r)}function vu(t){var e=t.domain;return t.ticks=function(n){var r=e();return oP(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return _Q(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,s=r.length-1,o=r[i],a=r[s],c,u,d=10;for(a<o&&(u=o,o=a,a=u,u=i,i=s,s=u);d-- >0;){if(u=aP(o,a,n),u===c)return r[i]=o,r[s]=a,e(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;c=u}return t},t}function J1(){var t=o3();return t.copy=function(){return K0(t,J1())},vo.apply(t,arguments),vu(t)}function SQ(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,Q1),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return SQ(t).unknown(e)},t=arguments.length?Array.from(t,Q1):[0,1],vu(n)}function EQ(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],o;return s<i&&(o=n,n=r,r=o,o=i,i=s,s=o),t[n]=e.floor(i),t[r]=e.ceil(s),t}function o6(t){return Math.log(t)}function a6(t){return Math.exp(t)}function l5e(t){return-Math.log(-t)}function c5e(t){return-Math.exp(-t)}function u5e(t){return isFinite(t)?+("1e"+t):t<0?0:t}function d5e(t){return t===10?u5e:t===Math.E?Math.exp:e=>Math.pow(t,e)}function h5e(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function l6(t){return(e,n)=>-t(-e,n)}function c3(t){const e=t(o6,a6),n=e.domain;let r=10,i,s;function o(){return i=h5e(r),s=d5e(r),n()[0]<0?(i=l6(i),s=l6(s),t(l5e,c5e)):t(o6,a6),e}return e.base=function(a){return arguments.length?(r=+a,o()):r},e.domain=function(a){return arguments.length?(n(a),o()):n()},e.ticks=a=>{const c=n();let u=c[0],d=c[c.length-1];const h=d<u;h&&([u,d]=[d,u]);let f=i(u),m=i(d),v,p;const g=a==null?10:+a;let y=[];if(!(r%1)&&m-f<g){if(f=Math.floor(f),m=Math.ceil(m),u>0){for(;f<=m;++f)for(v=1;v<r;++v)if(p=f<0?v/s(-f):v*s(f),!(p<u)){if(p>d)break;y.push(p)}}else for(;f<=m;++f)for(v=r-1;v>=1;--v)if(p=f>0?v/s(-f):v*s(f),!(p<u)){if(p>d)break;y.push(p)}y.length*2<g&&(y=oP(u,d,g))}else y=oP(f,m,Math.min(m-f,g)).map(s);return h?y.reverse():y},e.tickFormat=(a,c)=>{if(a==null&&(a=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=$y(c)).precision==null&&(c.trim=!0),c=l3(c)),a===1/0)return c;const u=Math.max(1,r*a/e.ticks().length);return d=>{let h=d/s(Math.round(i(d)));return h*r<r-.5&&(h*=r),h<=u?c(d):""}},e.nice=()=>n(EQ(n(),{floor:a=>s(Math.floor(i(a))),ceil:a=>s(Math.ceil(i(a)))})),e}function TQ(){const t=c3(h2()).domain([1,10]);return t.copy=()=>K0(t,TQ()).base(t.base()),vo.apply(t,arguments),t}function c6(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function u6(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function u3(t){var e=1,n=t(c6(e),u6(e));return n.constant=function(r){return arguments.length?t(c6(e=+r),u6(e)):e},vu(n)}function AQ(){var t=u3(h2());return t.copy=function(){return K0(t,AQ()).constant(t.constant())},vo.apply(t,arguments)}function d6(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function f5e(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function m5e(t){return t<0?-t*t:t*t}function d3(t){var e=t(Mi,Mi),n=1;function r(){return n===1?t(Mi,Mi):n===.5?t(f5e,m5e):t(d6(n),d6(1/n))}return e.exponent=function(i){return arguments.length?(n=+i,r()):n},vu(e)}function h3(){var t=d3(h2());return t.copy=function(){return K0(t,h3()).exponent(t.exponent())},vo.apply(t,arguments),t}function p5e(){return h3.apply(null,arguments).exponent(.5)}function h6(t){return Math.sign(t)*t*t}
5756function g5e(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function CQ(){var t=o3(),e=[0,1],n=!1,r;function i(s){var o=g5e(t(s));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(s){return t.invert(h6(s))},i.domain=function(s){return arguments.length?(t.domain(s),i):t.domain()},i.range=function(s){return arguments.length?(t.range((e=Array.from(s,Q1)).map(h6)),i):e.slice()},i.rangeRound=function(s){return i.range(s).round(!0)},i.round=function(s){return arguments.length?(n=!!s,i):n},i.clamp=function(s){return arguments.length?(t.clamp(s),i):t.clamp()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return CQ(t.domain(),e).round(n).clamp(t.clamp()).unknown(r)},vo.apply(i,arguments),vu(i)}function MQ(){var t=[],e=[],n=[],r;function i(){var o=0,a=Math.max(1,e.length);for(n=new Array(a-1);++o<a;)n[o-1]=w4e(t,o/a);return s}function s(o){return o==null||isNaN(o=+o)?r:e[Y0(n,o)]}return s.invertExtent=function(o){var a=e.indexOf(o);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},s.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let a of o)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort($c),i()},s.range=function(o){return arguments.length?(e=Array.from(o),i()):e.slice()},s.unknown=function(o){return arguments.length?(r=o,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return MQ().domain(t).range(e).unknown(r)},vo.apply(s,arguments)}function RQ(){var t=0,e=1,n=1,r=[.5],i=[0,1],s;function o(c){return c!=null&&c<=c?i[Y0(r,c,0,n)]:s}function a(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*e-(c-n)*t)/(n+1);return o}return o.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,a()):[t,e]},o.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,a()):i.slice()},o.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[t,r[0]]:u>=n?[r[n-1],e]:[r[u-1],r[u]]},o.unknown=function(c){return arguments.length&&(s=c),o},o.thresholds=function(){return r.slice()},o.copy=function(){return RQ().domain([t,e]).range(i).unknown(s)},vo.apply(vu(o),arguments)}function PQ(){var t=[.5],e=[0,1],n,r=1;function i(s){return s!=null&&s<=s?e[Y0(t,s,0,r)]:n}return i.domain=function(s){return arguments.length?(t=Array.from(s),r=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(s){return arguments.length?(e=Array.from(s),r=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(s){var o=e.indexOf(s);return[t[o-1],t[o]]},i.unknown=function(s){return arguments.length?(n=s,i):n},i.copy=function(){return PQ().domain(t).range(e).unknown(n)},vo.apply(i,arguments)}const qT=new Date,YT=new Date;function br(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o<a-s?o:a},i.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const c=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s<o)||!(a>0))return c;let u;do c.push(u=new Date(+s)),e(s,a),t(s);while(u<s&&s<o);return c},i.filter=s=>br(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(qT.setTime(+s),YT.setTime(+o),t(qT),t(YT),Math.floor(n(qT,YT))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const e_=br(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);e_.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?br(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):e_);e_.range;const ul=1e3,no=ul*60,dl=no*60,Rl=dl*24,f3=Rl*7,f6=Rl*30,XT=Rl*365,ld=br(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ul)},(t,e)=>(e-t)/ul,t=>t.getUTCSeconds());ld.range;const m3=br(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ul)},(t,e)=>{t.setTime(+t+e*no)},(t,e)=>(e-t)/no,t=>t.getMinutes());m3.range;const p3=br(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*no)},(t,e)=>(e-t)/no,t=>t.getUTCMinutes());p3.range;const g3=br(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ul-t.getMinutes()*no)},(t,e)=>{t.setTime(+t+e*dl)},(t,e)=>(e-t)/dl,t=>t.getHours());g3.range;const v3=br(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*dl)},(t,e)=>(e-t)/dl,t=>t.getUTCHours());v3.range;const Q0=br(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*no)/Rl,t=>t.getDate()-1);Q0.range;const f2=br(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Rl,t=>t.getUTCDate()-1);f2.range;const jQ=br(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Rl,t=>Math.floor(t/Rl));jQ.range;function vh(t){return br(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*no)/f3)}const m2=vh(0),t_=vh(1),v5e=vh(2),y5e=vh(3),Wm=vh(4),x5e=vh(5),b5e=vh(6);m2.range;t_.range;v5e.range;y5e.range;Wm.range;x5e.range;b5e.range;function yh(t){return br(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/f3)}
vendor: 5,101 bytes, line 5756
5756const p2=yh(0),n_=yh(1),w5e=yh(2),_5e=yh(3),Gm=yh(4),S5e=yh(5),E5e=yh(6);p2.range;n_.range;w5e.range;_5e.range;Gm.range;S5e.range;E5e.range;const y3=br(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());y3.range;const x3=br(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());x3.range;const Pl=br(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Pl.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:br(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});Pl.range;const jl=br(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());jl.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:br(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});jl.range;function NQ(t,e,n,r,i,s){const o=[[ld,1,ul],[ld,5,5*ul],[ld,15,15*ul],[ld,30,30*ul],[s,1,no],[s,5,5*no],[s,15,15*no],[s,30,30*no],[i,1,dl],[i,3,3*dl],[i,6,6*dl],[i,12,12*dl],[r,1,Rl],[r,2,2*Rl],[n,1,f3],[e,1,f6],[e,3,3*f6],[t,1,XT]];function a(u,d,h){const f=d<u;f&&([u,d]=[d,u]);const m=h&&typeof h.range=="function"?h:c(u,d,h),v=m?m.range(u,+d+1):[];return f?v.reverse():v}function c(u,d,h){const f=Math.abs(d-u)/h,m=t3(([,,g])=>g).right(o,f);if(m===o.length)return t.every(lP(u/XT,d/XT,h));if(m===0)return e_.every(Math.max(lP(u,d,h),1));const[v,p]=o[f/o[m-1][2]<o[m][2]/f?m-1:m];return v.every(p)}return[a,c]}const[T5e,A5e]=NQ(jl,x3,p2,jQ,v3,p3),[C5e,M5e]=NQ(Pl,y3,m2,Q0,g3,m3);function KT(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function QT(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function mg(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function R5e(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,o=t.shortDays,a=t.months,c=t.shortMonths,u=pg(i),d=gg(i),h=pg(s),f=gg(s),m=pg(o),v=gg(o),p=pg(a),g=gg(a),y=pg(c),b=gg(c),x={a:F,A:D,b:I,B:N,c:null,d:x6,e:x6,f:Z5e,g:lLe,G:uLe,H:X5e,I:K5e,j:Q5e,L:kQ,m:J5e,M:eLe,p:G,q,Q:_6,s:S6,S:tLe,u:nLe,U:rLe,V:iLe,w:sLe,W:oLe,x:null,X:null,y:aLe,Y:cLe,Z:dLe,"%":w6},w={a:W,A:Y,b:te,B:Q,c:null,d:b6,e:b6,f:pLe,g:TLe,G:CLe,H:hLe,I:fLe,j:mLe,L:IQ,m:gLe,M:vLe,p:X,q:ae,Q:_6,s:S6,S:yLe,u:xLe,U:bLe,V:wLe,w:_Le,W:SLe,x:null,X:null,y:ELe,Y:ALe,Z:MLe,"%":w6},_={a:C,A:R,b:j,B:k,c:P,d:v6,e:v6,f:W5e,g:g6,G:p6,H:y6,I:y6,j:z5e,L:V5e,m:B5e,M:$5e,p:A,q:U5e,Q:q5e,s:Y5e,S:H5e,u:O5e,U:I5e,V:L5e,w:k5e,W:D5e,x:O,X:L,y:g6,Y:p6,Z:F5e,"%":G5e};x.x=S(n,x),x.X=S(r,x),x.c=S(e,x),w.x=S(n,w),w.X=S(r,w),w.c=S(e,w);function S(J,ue){return function(de){var H=[],_e=-1,he=0,xe=J.length,we,ne,Pe;for(de instanceof Date||(de=new Date(+de));++_e<xe;)J.charCodeAt(_e)===37&&(H.push(J.slice(he,_e)),(ne=m6[we=J.charAt(++_e)])!=null?we=J.charAt(++_e):ne=we==="e"?" ":"0",(Pe=ue[we])&&(we=Pe(de,ne)),H.push(we),he=_e+1);return H.push(J.slice(he,_e)),H.join("")}}function T(J,ue){return function(de){var H=mg(1900,void 0,1),_e=M(H,J,de+="",0),he,xe;if(_e!=de.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(ue&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(he=QT(mg(H.y,0,1)),xe=he.getUTCDay(),he=xe>4||xe===0?n_.ceil(he):n_(he),he=f2.offset(he,(H.V-1)*7),H.y=he.getUTCFullYear(),H.m=he.getUTCMonth(),H.d=he.getUTCDate()+(H.w+6)%7):(he=KT(mg(H.y,0,1)),xe=he.getDay(),he=xe>4||xe===0?t_.ceil(he):t_(he),he=Q0.offset(he,(H.V-1)*7),H.y=he.getFullYear(),H.m=he.getMonth(),H.d=he.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),xe="Z"in H?QT(mg(H.y,0,1)).getUTCDay():KT(mg(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(xe+5)%7:H.w+H.U*7-(xe+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,QT(H)):KT(H)}}function M(J,ue,de,H){for(var _e=0,he=ue.length,xe=de.length,we,ne;_e<he;){if(H>=xe)return-1;if(we=ue.charCodeAt(_e++),we===37){if(we=ue.charAt(_e++),ne=_[we in m6?ue.charAt(_e++):we],!ne||(H=ne(J,de,H))<0)return-1}else if(we!=de.charCodeAt(H++))return-1}return H}function A(J,ue,de){var H=u.exec(ue.slice(de));return H?(J.p=d.get(H[0].toLowerCase()),de+H[0].length):-1}function C(J,ue,de){var H=m.exec(ue.slice(de));return H?(J.w=v.get(H[0].toLowerCase()),de+H[0].length):-1}function R(J,ue,de){var H=h.exec(ue.slice(de));return H?(J.w=f.get(H[0].toLowerCase()),de+H[0].length):-1}function j(J,ue,de){var H=y.exec(ue.slice(de));return H?(J.m=b.get(H[0].toLowerCase()),de+H[0].length):-1}
vendor: 5,737 bytes, line 5756
5756function k(J,ue,de){var H=p.exec(ue.slice(de));return H?(J.m=g.get(H[0].toLowerCase()),de+H[0].length):-1}function P(J,ue,de){return M(J,e,ue,de)}function O(J,ue,de){return M(J,n,ue,de)}function L(J,ue,de){return M(J,r,ue,de)}function F(J){return o[J.getDay()]}function D(J){return s[J.getDay()]}function I(J){return c[J.getMonth()]}function N(J){return a[J.getMonth()]}function G(J){return i[+(J.getHours()>=12)]}function q(J){return 1+~~(J.getMonth()/3)}function W(J){return o[J.getUTCDay()]}function Y(J){return s[J.getUTCDay()]}function te(J){return c[J.getUTCMonth()]}function Q(J){return a[J.getUTCMonth()]}function X(J){return i[+(J.getUTCHours()>=12)]}function ae(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var ue=S(J+="",x);return ue.toString=function(){return J},ue},parse:function(J){var ue=T(J+="",!1);return ue.toString=function(){return J},ue},utcFormat:function(J){var ue=S(J+="",w);return ue.toString=function(){return J},ue},utcParse:function(J){var ue=T(J+="",!0);return ue.toString=function(){return J},ue}}}var m6={"-":"",_:" ",0:"0"},Or=/^\s*\d+/,P5e=/^%/,j5e=/[\\^$*+?|[\]().{}]/g;function Xt(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function N5e(t){return t.replace(j5e,"\\$&")}function pg(t){return new RegExp("^(?:"+t.map(N5e).join("|")+")","i")}function gg(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function k5e(t,e,n){var r=Or.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function O5e(t,e,n){var r=Or.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function I5e(t,e,n){var r=Or.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function L5e(t,e,n){var r=Or.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function D5e(t,e,n){var r=Or.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function p6(t,e,n){var r=Or.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function g6(t,e,n){var r=Or.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function F5e(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function U5e(t,e,n){var r=Or.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function B5e(t,e,n){var r=Or.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function v6(t,e,n){var r=Or.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function z5e(t,e,n){var r=Or.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function y6(t,e,n){var r=Or.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function $5e(t,e,n){var r=Or.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function H5e(t,e,n){var r=Or.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function V5e(t,e,n){var r=Or.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function W5e(t,e,n){var r=Or.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function G5e(t,e,n){var r=P5e.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function q5e(t,e,n){var r=Or.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Y5e(t,e,n){var r=Or.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function x6(t,e){return Xt(t.getDate(),e,2)}function X5e(t,e){return Xt(t.getHours(),e,2)}function K5e(t,e){return Xt(t.getHours()%12||12,e,2)}function Q5e(t,e){return Xt(1+Q0.count(Pl(t),t),e,3)}function kQ(t,e){return Xt(t.getMilliseconds(),e,3)}function Z5e(t,e){return kQ(t,e)+"000"}function J5e(t,e){return Xt(t.getMonth()+1,e,2)}function eLe(t,e){return Xt(t.getMinutes(),e,2)}function tLe(t,e){return Xt(t.getSeconds(),e,2)}function nLe(t){var e=t.getDay();return e===0?7:e}function rLe(t,e){return Xt(m2.count(Pl(t)-1,t),e,2)}function OQ(t){var e=t.getDay();return e>=4||e===0?Wm(t):Wm.ceil(t)}function iLe(t,e){return t=OQ(t),Xt(Wm.count(Pl(t),t)+(Pl(t).getDay()===4),e,2)}function sLe(t){return t.getDay()}function oLe(t,e){return Xt(t_.count(Pl(t)-1,t),e,2)}function aLe(t,e){return Xt(t.getFullYear()%100,e,2)}function lLe(t,e){return t=OQ(t),Xt(t.getFullYear()%100,e,2)}function cLe(t,e){return Xt(t.getFullYear()%1e4,e,4)}function uLe(t,e){var n=t.getDay();return t=n>=4||n===0?Wm(t):Wm.ceil(t),Xt(t.getFullYear()%1e4,e,4)}function dLe(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Xt(e/60|0,"0",2)+Xt(e%60,"0",2)}function b6(t,e){return Xt(t.getUTCDate(),e,2)}function hLe(t,e){return Xt(t.getUTCHours(),e,2)}function fLe(t,e){return Xt(t.getUTCHours()%12||12,e,2)}function mLe(t,e){return Xt(1+f2.count(jl(t),t),e,3)}function IQ(t,e){return Xt(t.getUTCMilliseconds(),e,3)}function pLe(t,e){return IQ(t,e)+"000"}function gLe(t,e){return Xt(t.getUTCMonth()+1,e,2)}function vLe(t,e){return Xt(t.getUTCMinutes(),e,2)}function yLe(t,e){return Xt(t.getUTCSeconds(),e,2)}function xLe(t){var e=t.getUTCDay();return e===0?7:e}function bLe(t,e){return Xt(p2.count(jl(t)-1,t),e,2)}function LQ(t){var e=t.getUTCDay();return e>=4||e===0?Gm(t):Gm.ceil(t)}function wLe(t,e){return t=LQ(t),Xt(Gm.count(jl(t),t)+(jl(t).getUTCDay()===4),e,2)}function _Le(t){return t.getUTCDay()}function SLe(t,e){return Xt(n_.count(jl(t)-1,t),e,2)}function ELe(t,e){return Xt(t.getUTCFullYear()%100,e,2)}function TLe(t,e){return t=LQ(t),Xt(t.getUTCFullYear()%100,e,2)}function ALe(t,e){return Xt(t.getUTCFullYear()%1e4,e,4)}function CLe(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Gm(t):Gm.ceil(t),Xt(t.getUTCFullYear()%1e4,e,4)}function MLe(){return"+0000"}function w6(){return"%"}function _6(t){return+t}function S6(t){return Math.floor(+t/1e3)}var Fh,DQ,FQ;RLe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
5756ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function RLe(t){return Fh=R5e(t),DQ=Fh.format,Fh.parse,FQ=Fh.utcFormat,Fh.utcParse,Fh}function PLe(t){return new Date(t)}function jLe(t){return t instanceof Date?+t:+new Date(+t)}function b3(t,e,n,r,i,s,o,a,c,u){var d=o3(),h=d.invert,f=d.domain,m=u(".%L"),v=u(":%S"),p=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),b=u("%b %d"),x=u("%B"),w=u("%Y");function _(S){return(c(S)<S?m:a(S)<S?v:o(S)<S?p:s(S)<S?g:r(S)<S?i(S)<S?y:b:n(S)<S?x:w)(S)}return d.invert=function(S){return new Date(h(S))},d.domain=function(S){return arguments.length?f(Array.from(S,jLe)):f().map(PLe)},d.ticks=function(S){var T=f();return t(T[0],T[T.length-1],S??10)},d.tickFormat=function(S,T){return T==null?_:u(T)},d.nice=function(S){var T=f();return(!S||typeof S.range!="function")&&(S=e(T[0],T[T.length-1],S??10)),S?f(EQ(T,S)):d},d.copy=function(){return K0(d,b3(t,e,n,r,i,s,o,a,c,u))},d}function NLe(){return vo.apply(b3(C5e,M5e,Pl,y3,m2,Q0,g3,m3,ld,DQ).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function kLe(){return vo.apply(b3(T5e,A5e,jl,x3,p2,f2,v3,p3,ld,FQ).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function g2(){var t=0,e=1,n,r,i,s,o=Mi,a=!1,c;function u(h){return h==null||isNaN(h=+h)?c:o(i===0?.5:(h=(s(h)-n)*i,a?Math.max(0,Math.min(1,h)):h))}u.domain=function(h){return arguments.length?([t,e]=h,n=s(t=+t),r=s(e=+e),i=n===r?0:1/(r-n),u):[t,e]},u.clamp=function(h){return arguments.length?(a=!!h,u):a},u.interpolator=function(h){return arguments.length?(o=h,u):o};function d(h){return function(f){var m,v;return arguments.length?([m,v]=f,o=h(m,v),u):[o(0),o(1)]}}return u.range=d(Dp),u.rangeRound=d(s3),u.unknown=function(h){return arguments.length?(c=h,u):c},function(h){return s=h,n=h(t),r=h(e),i=n===r?0:1/(r-n),u}}function yu(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function UQ(){var t=vu(g2()(Mi));return t.copy=function(){return yu(t,UQ())},Dl.apply(t,arguments)}function BQ(){var t=c3(g2()).domain([1,10]);return t.copy=function(){return yu(t,BQ()).base(t.base())},Dl.apply(t,arguments)}function zQ(){var t=u3(g2());return t.copy=function(){return yu(t,zQ()).constant(t.constant())},Dl.apply(t,arguments)}function w3(){var t=d3(g2());return t.copy=function(){return yu(t,w3()).exponent(t.exponent())},Dl.apply(t,arguments)}function OLe(){return w3.apply(null,arguments).exponent(.5)}function $Q(){var t=[],e=Mi;function n(r){if(r!=null&&!isNaN(r=+r))return e((Y0(t,r,1)-1)/(t.length-1))}return n.domain=function(r){if(!arguments.length)return t.slice();t=[];for(let i of r)i!=null&&!isNaN(i=+i)&&t.push(i);return t.sort($c),n},n.interpolator=function(r){return arguments.length?(e=r,n):e},n.range=function(){return t.map((r,i)=>e(i/(t.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,s)=>b4e(t,s/r))},n.copy=function(){return $Q(e).domain(t)},Dl.apply(n,arguments)}function v2(){var t=0,e=.5,n=1,r=1,i,s,o,a,c,u=Mi,d,h=!1,f;function m(p){return isNaN(p=+p)?f:(p=.5+((p=+d(p))-s)*(r*p<r*s?a:c),u(h?Math.max(0,Math.min(1,p)):p))}m.domain=function(p){return arguments.length?([t,e,n]=p,i=d(t=+t),s=d(e=+e),o=d(n=+n),a=i===s?0:.5/(s-i),c=s===o?0:.5/(o-s),r=s<i?-1:1,m):[t,e,n]},m.clamp=function(p){return arguments.length?(h=!!p,m):h},m.interpolator=function(p){return arguments.length?(u=p,m):u};function v(p){return function(g){var y,b,x;return arguments.length?([y,b,x]=g,u=G4e(p,[y,b,x]),m):[u(0),u(.5),u(1)]}}return m.range=v(Dp),m.rangeRound=v(s3),m.unknown=function(p){return arguments.length?(f=p,m):f},function(p){return d=p,i=p(t),s=p(e),o=p(n),a=i===s?0:.5/(s-i),c=s===o?0:.5/(o-s),r=s<i?-1:1,m}}function HQ(){var t=vu(v2()(Mi));return t.copy=function(){return yu(t,HQ())},Dl.apply(t,arguments)}function VQ(){var t=c3(v2()).domain([.1,1,10]);return t.copy=function(){return yu(t,VQ()).base(t.base())},Dl.apply(t,arguments)}function WQ(){var t=u3(v2());return t.copy=function(){return yu(t,WQ()).constant(t.constant())},Dl.apply(t,arguments)}
vendor: 66,569 bytes, lines 5756-5782
5756function _3(){var t=d3(v2());return t.copy=function(){return yu(t,_3()).exponent(t.exponent())},Dl.apply(t,arguments)}function ILe(){return _3.apply(null,arguments).exponent(.5)}const E6=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Fy,scaleDiverging:HQ,scaleDivergingLog:VQ,scaleDivergingPow:_3,scaleDivergingSqrt:ILe,scaleDivergingSymlog:WQ,scaleIdentity:SQ,scaleImplicit:cP,scaleLinear:J1,scaleLog:TQ,scaleOrdinal:n3,scalePoint:kv,scalePow:h3,scaleQuantile:MQ,scaleQuantize:RQ,scaleRadial:CQ,scaleSequential:UQ,scaleSequentialLog:BQ,scaleSequentialPow:w3,scaleSequentialQuantile:$Q,scaleSequentialSqrt:OLe,scaleSequentialSymlog:zQ,scaleSqrt:p5e,scaleSymlog:AQ,scaleThreshold:PQ,scaleTime:NLe,scaleUtc:kLe,tickFormat:_Q},Symbol.toStringTag,{value:"Module"}));var LLe=Rp;function DLe(t,e,n){for(var r=-1,i=t.length;++r<i;){var s=t[r],o=e(s);if(o!=null&&(a===void 0?o===o&&!LLe(o):n(o,a)))var a=o,c=s}return c}var GQ=DLe;function FLe(t,e){return t>e}var ULe=FLe,BLe=GQ,zLe=ULe,$Le=Lp;function HLe(t){return t&&t.length?BLe(t,$Le,zLe):void 0}var VLe=HLe;const y2=tn(VLe);function WLe(t,e){return t<e}var GLe=WLe,qLe=GQ,YLe=GLe,XLe=Lp;function KLe(t){return t&&t.length?qLe(t,XLe,YLe):void 0}var QLe=KLe;const x2=tn(QLe);var ZLe=LO,JLe=gu,eDe=JK,tDe=is;function nDe(t,e){var n=tDe(t)?ZLe:eDe;return n(t,JLe(e))}var rDe=nDe,iDe=QK,sDe=rDe;function oDe(t,e){return iDe(sDe(t,e),1)}var aDe=oDe;const lDe=tn(aDe);var cDe=QO;function uDe(t,e){return cDe(t,e)}var dDe=uDe;const S3=tn(dDe);var Fp=1e9,hDe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},T3,Nn=!0,fo="[DecimalError] ",kd=fo+"Invalid argument: ",E3=fo+"Exponent out of range: ",Up=Math.floor,Gu=Math.pow,fDe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,xs,Cr=1e7,Tn=7,qQ=9007199254740991,r_=Up(qQ/Tn),et={};et.absoluteValue=et.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t};et.comparedTo=et.cmp=function(t){var e,n,r,i,s=this;if(t=new s.constructor(t),s.s!==t.s)return s.s||-t.s;if(s.e!==t.e)return s.e>t.e^s.s<0?1:-1;for(r=s.d.length,i=t.d.length,e=0,n=r<i?r:i;e<n;++e)if(s.d[e]!==t.d[e])return s.d[e]>t.d[e]^s.s<0?1:-1;return r===i?0:r>i^s.s<0?1:-1};et.decimalPlaces=et.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*Tn;if(e=t.d[e],e)for(;e%10==0;e/=10)n--;return n<0?0:n};et.dividedBy=et.div=function(t){return yl(this,new this.constructor(t))};et.dividedToIntegerBy=et.idiv=function(t){var e=this,n=e.constructor;return gn(yl(e,new n(t),0,1),n.precision)};et.equals=et.eq=function(t){return!this.cmp(t)};et.exponent=function(){return ur(this)};et.greaterThan=et.gt=function(t){return this.cmp(t)>0};et.greaterThanOrEqualTo=et.gte=function(t){return this.cmp(t)>=0};et.isInteger=et.isint=function(){return this.e>this.d.length-2};et.isNegative=et.isneg=function(){return this.s<0};et.isPositive=et.ispos=function(){return this.s>0};et.isZero=function(){return this.s===0};et.lessThan=et.lt=function(t){return this.cmp(t)<0};et.lessThanOrEqualTo=et.lte=function(t){return this.cmp(t)<1};et.logarithm=et.log=function(t){var e,n=this,r=n.constructor,i=r.precision,s=i+5;if(t===void 0)t=new r(10);else if(t=new r(t),t.s<1||t.eq(xs))throw Error(fo+"NaN");if(n.s<1)throw Error(fo+(n.s?"NaN":"-Infinity"));return n.eq(xs)?new r(0):(Nn=!1,e=yl(Hy(n,s),Hy(t,s),s),Nn=!0,gn(e,i))};et.minus=et.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?KQ(e,t):YQ(e,(t.s=-t.s,t))};et.modulo=et.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(t=new r(t),!t.s)throw Error(fo+"NaN");return n.s?(Nn=!1,e=yl(n,t,0,1).times(t),Nn=!0,n.minus(e)):gn(new r(n),i)};et.naturalExponential=et.exp=function(){return XQ(this)};et.naturalLogarithm=et.ln=function(){return Hy(this)};et.negated=et.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};et.plus=et.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?YQ(e,t):KQ(e,(t.s=-t.s,t))};et.precision=et.sd=function(t){var e,n,r,i=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(kd+t);if(e=ur(i)+1,r=i.d.length-1,n=r*Tn+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n};et.squareRoot=et.sqrt=function(){var t,e,n,r,i,s,o,a=this,c=a.constructor;if(a.s<1){if(!a.s)return new c(0);throw Error(fo+"NaN")}for(t=ur(a),Nn=!1,i=Math.sqrt(+a),i==0||i==1/0?(e=ba(a.d),(e.length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=Up((t+1)/2)-(t<0||t%2),i==1/0?e="5e"+t:(e=i.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),r=new c(e)):r=new c(i.toString()),n=c.precision,i=o=n+3;;)if(s=r,r=s.plus(yl(a,s,o+2)).times(.5),ba(s.d).slice(0,o)===(e=ba(r.d)).slice(0,o)){if(e=e.slice(o-3,o+1),i==o&&e=="4999"){if(gn(s,n+1,0),s.times(s).eq(a)){r=s;break}}else if(e!="9999")break;o+=4}return Nn=!0,gn(r,n)};et.times=et.mul=function(t){var e,n,r,i,s,o,a,c,u,d=this,h=d.constructor,f=d.d,m=(t=new h(t)).d;if(!d.s||!t.s)return new h(0);for(t.s*=d.s,n=d.e+t.e,c=f.length,u=m.length,c<u&&(s=f,f=m,m=s,o=c,c=u,u=o),s=[],o=c+u,r=o;r--;)s.push(0);for(r=u;--r>=0;){for(e=0,i=c+r;i>r;)a=s[i]+m[r]*f[i-r-1]+e,s[i--]=a%Cr|0,e=a/Cr|0;s[i]=(s[i]+e)%Cr|0}for(;!s[--o];)s.pop();return e?++n:s.shift(),t.d=s,t.e=n,Nn?gn(t,h.precision):t};et.toDecimalPlaces=et.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),t===void 0?n:(Oa(t,0,Fp),e===void 0?e=r.rounding:Oa(e,0,8),gn(n,t+ur(n)+1,e))};et.toExponential=function(t,e){var n,r=this,i=r.constructor;return t===void 0?n=Jd(r,!0):(Oa(t,0,Fp),e===void 0?e=i.rounding:Oa(e,0,8),r=gn(new i(r),t+1,e),n=Jd(r,!0,t+1)),n};et.toFixed=function(t,e){var n,r,i=this,s=i.constructor;return t===void 0?Jd(i):(Oa(t,0,Fp),e===void 0?e=s.rounding:Oa(e,0,8),r=gn(new s(i),t+ur(i)+1,e),n=Jd(r.abs(),!1,t+ur(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};et.toInteger=et.toint=function(){var t=this,e=t.constructor;return gn(new e(t),ur(t)+1,e.rounding)};et.toNumber=function(){return+this};et.toPower=et.pow=function(t){var e,n,r,i,s,o,a=this,c=a.constructor,u=12,d=+(t=new c(t));if(!t.s)return new c(xs);if(a=new c(a),!a.s){if(t.s<1)throw Error(fo+"Infinity");return a}if(a.eq(xs))return a;if(r=c.precision,t.eq(xs))return gn(a,r);if(e=t.e,n=t.d.length-1,o=e>=n,s=a.s,o){if((n=d<0?-d:d)<=qQ){for(i=new c(xs),e=Math.ceil(r/Tn+4),Nn=!1;n%2&&(i=i.times(a),A6(i.d,e)),n=Up(n/2),n!==0;)a=a.times(a),A6(a.d,e);return Nn=!0,t.s<0?new c(xs).div(i):gn(i,r)}}else if(s<0)throw Error(fo+"NaN");return s=s<0&&t.d[Math.max(e,n)]&1?-1:1,a.s=1,Nn=!1,i=t.times(Hy(a,r+u)),Nn=!0,i=XQ(i),i.s=s,i};et.toPrecision=function(t,e){var n,r,i=this,s=i.constructor;return t===void 0?(n=ur(i),r=Jd(i,n<=s.toExpNeg||n>=s.toExpPos)):(Oa(t,1,Fp),e===void 0?e=s.rounding:Oa(e,0,8),i=gn(new s(i),t,e),n=ur(i),r=Jd(i,t<=n||n<=s.toExpNeg,t)),r};et.toSignificantDigits=et.tosd=function(t,e){var n=this,r=n.constructor;return t===void 0?(t=r.precision,e=r.rounding):(Oa(t,1,Fp),e===void 0?e=r.rounding:Oa(e,0,8)),gn(new r(n),t,e)};et.toString=et.valueOf=et.val=et.toJSON=et[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=ur(t),n=t.constructor;return Jd(t,e<=n.toExpNeg||e>=n.toExpPos)};function YQ(t,e){var n,r,i,s,o,a,c,u,d=t.constructor,h=d.precision;if(!t.s||!e.s)return e.s||(e=new d(t)),Nn?gn(e,h):e;if(c=t.d,u=e.d,o=t.e,i=e.e,c=c.slice(),s=o-i,s){for(s<0?(r=c,s=-s,a=u.length):(r=u,i=o,a=c.length),o=Math.ceil(h/Tn),a=o>a?o+1:a+1,s>a&&(s=a,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(a=c.length,s=u.length,a-s<0&&(s=a,r=u,u=c,c=r),n=0;s;)n=(c[--s]=c[s]+u[s]+n)/Cr|0,c[s]%=Cr;for(n&&(c.unshift(n),++i),a=c.length;c[--a]==0;)c.pop();return e.d=c,e.e=i,Nn?gn(e,h):e}function Oa(t,e,n){if(t!==~~t||t<e||t>n)throw Error(kd+t)}function ba(t){var e,n,r,i=t.length-1,s="",o=t[0];if(i>0){for(s+=o,e=1;e<i;e++)r=t[e]+"",n=Tn-r.length,n&&(s+=rc(n)),s+=r;o=t[e],r=o+"",n=Tn-r.length,n&&(s+=rc(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}var yl=function(){function t(r,i){var s,o=0,a=r.length;for(r=r.slice();a--;)s=r[a]*i+o,r[a]=s%Cr|0,o=s/Cr|0;return o&&r.unshift(o),r}function e(r,i,s,o){var a,c;if(s!=o)c=s>o?1:-1;else for(a=c=0;a<s;a++)if(r[a]!=i[a]){c=r[a]>i[a]?1:-1;break}return c}function n(r,i,s){for(var o=0;s--;)r[s]-=o,o=r[s]<i[s]?1:0,r[s]=o*Cr+r[s]-i[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,s,o){var a,c,u,d,h,f,m,v,p,g,y,b,x,w,_,S,T,M,A=r.constructor,C=r.s==i.s?1:-1,R=r.d,j=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(fo+"Division by zero");for(c=r.e-i.e,T=j.length,_=R.length,m=new A(C),v=m.d=[],u=0;j[u]==(R[u]||0);)++u;if(j[u]>(R[u]||0)&&--c,s==null?b=s=A.precision:o?b=s+(ur(r)-ur(i))+1:b=s,b<0)return new A(0);if(b=b/Tn+2|0,u=0,T==1)for(d=0,j=j[0],b++;(u<_||d)&&b--;u++)x=d*Cr+(R[u]||0),v[u]=x/j|0,d=x%j|0;else{for(d=Cr/(j[0]+1)|0,d>1&&(j=t(j,d),R=t(R,d),T=j.length,_=R.length),w=T,p=R.slice(0,T),g=p.length;g<T;)p[g++]=0;M=j.slice(),M.unshift(0),S=j[0],j[1]>=Cr/2&&++S;do d=0,a=e(j,p,T,g),a<0?(y=p[0],T!=g&&(y=y*Cr+(p[1]||0)),d=y/S|0,d>1?(d>=Cr&&(d=Cr-1),h=t(j,d),f=h.length,g=p.length,a=e(h,p,f,g),a==1&&(d--,n(h,T<f?M:j,f))):(d==0&&(a=d=1),h=j.slice()),f=h.length,f<g&&h.unshift(0),n(p,h,g),a==-1&&(g=p.length,a=e(j,p,T,g),a<1&&(d++,n(p,T<g?M:j,g))),g=p.length):a===0&&(d++,p=[0]),v[u++]=d,a&&p[0]?p[g++]=R[w]||0:(p=[R[w]],g=1);while((w++<_||p[0]!==void 0)&&b--)}return v[0]||v.shift(),m.e=c,gn(m,o?s+ur(m)+1:s)}}();function XQ(t,e){var n,r,i,s,o,a,c=0,u=0,d=t.constructor,h=d.precision;if(ur(t)>16)throw Error(E3+ur(t));if(!t.s)return new d(xs);for(e==null?(Nn=!1,a=h):a=e,o=new d(.03125);t.abs().gte(.1);)t=t.times(o),u+=5;for(r=Math.log(Gu(2,u))/Math.LN10*2+5|0,a+=r,n=i=s=new d(xs),d.precision=a;;){if(i=gn(i.times(t),a),n=n.times(++c),o=s.plus(yl(i,n,a)),ba(o.d).slice(0,a)===ba(s.d).slice(0,a)){for(;u--;)s=gn(s.times(s),a);return d.precision=h,e==null?(Nn=!0,gn(s,h)):s}s=o}}function ur(t){for(var e=t.e*Tn,n=t.d[0];n>=10;n/=10)e++;return e}function ZT(t,e,n){if(e>t.LN10.sd())throw Nn=!0,n&&(t.precision=n),Error(fo+"LN10 precision limit exceeded");return gn(new t(t.LN10),e)}function rc(t){for(var e="";t--;)e+="0";return e}function Hy(t,e){var n,r,i,s,o,a,c,u,d,h=1,f=10,m=t,v=m.d,p=m.constructor,g=p.precision;if(m.s<1)throw Error(fo+(m.s?"NaN":"-Infinity"));if(m.eq(xs))return new p(0);if(e==null?(Nn=!1,u=g):u=e,m.eq(10))return e==null&&(Nn=!0),ZT(p,u);if(u+=f,p.precision=u,n=ba(v),r=n.charAt(0),s=ur(m),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(t),n=ba(m.d),r=n.charAt(0),h++;s=ur(m),r>1?(m=new p("0."+n),s++):m=new p(r+"."+n.slice(1))}else return c=ZT(p,u+2,g).times(s+""),m=Hy(new p(r+"."+n.slice(1)),u-f).plus(c),p.precision=g,e==null?(Nn=!0,gn(m,g)):m;for(a=o=m=yl(m.minus(xs),m.plus(xs),u),d=gn(m.times(m),u),i=3;;){if(o=gn(o.times(d),u),c=a.plus(yl(o,new p(i),u)),ba(c.d).slice(0,u)===ba(a.d).slice(0,u))return a=a.times(2),s!==0&&(a=a.plus(ZT(p,u+2,g).times(s+""))),a=yl(a,new p(h),u),p.precision=g,e==null?(Nn=!0,gn(a,g)):a;a=c,i+=2}}function T6(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charCodeAt(r)===48;)++r;for(i=e.length;e.charCodeAt(i-1)===48;)--i;if(e=e.slice(r,i),e){if(i-=r,n=n-r-1,t.e=Up(n/Tn),t.d=[],r=(n+1)%Tn,n<0&&(r+=Tn),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=Tn;r<i;)t.d.push(+e.slice(r,r+=Tn));e=e.slice(r),r=Tn-e.length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),Nn&&(t.e>r_||t.e<-r_))throw Error(E3+n)}else t.s=0,t.e=0,t.d=[0];return t}function gn(t,e,n){var r,i,s,o,a,c,u,d,h=t.d;for(o=1,s=h[0];s>=10;s/=10)o++;if(r=e-o,r<0)r+=Tn,i=e,u=h[d=0];else{if(d=Math.ceil((r+1)/Tn),s=h.length,d>=s)return t;for(u=s=h[d],o=1;s>=10;s/=10)o++;r%=Tn,i=r-Tn+o}if(n!==void 0&&(s=Gu(10,o-i-1),a=u/s%10|0,c=e<0||h[d+1]!==void 0||u%s,c=n<4?(a||c)&&(n==0||n==(t.s<0?3:2)):a>5||a==5&&(n==4||c||n==6&&(r>0?i>0?u/Gu(10,o-i):0:h[d-1])%10&1||n==(t.s<0?8:7))),e<1||!h[0])return c?(s=ur(t),h.length=1,e=e-s-1,h[0]=Gu(10,(Tn-e%Tn)%Tn),t.e=Up(-e/Tn)||0):(h.length=1,h[0]=t.e=t.s=0),t;if(r==0?(h.length=d,s=1,d--):(h.length=d+1,s=Gu(10,Tn-r),h[d]=i>0?(u/Gu(10,o-i)%Gu(10,i)|0)*s:0),c)for(;;)if(d==0){(h[0]+=s)==Cr&&(h[0]=1,++t.e);break}else{if(h[d]+=s,h[d]!=Cr)break;h[d--]=0,s=1}for(r=h.length;h[--r]===0;)h.pop();if(Nn&&(t.e>r_||t.e<-r_))throw Error(E3+ur(t));return t}function KQ(t,e){var n,r,i,s,o,a,c,u,d,h,f=t.constructor,m=f.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new f(t),Nn?gn(e,m):e;if(c=t.d,h=e.d,r=e.e,u=t.e,c=c.slice(),o=u-r,o){for(d=o<0,d?(n=c,o=-o,a=h.length):(n=h,r=u,a=c.length),i=Math.max(Math.ceil(m/Tn),a)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=c.length,a=h.length,d=i<a,d&&(a=i),i=0;i<a;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}o=0}for(d&&(n=c,c=h,h=n,e.s=-e.s),a=c.length,i=h.length-a;i>0;--i)c[a++]=0;for(i=h.length;i>o;){if(c[--i]<h[i]){for(s=i;s&&c[--s]===0;)c[s]=Cr-1;--c[s],c[i]+=Cr}c[i]-=h[i]}for(;c[--a]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(e.d=c,e.e=r,Nn?gn(e,m):e):new f(0)}function Jd(t,e,n){var r,i=ur(t),s=ba(t.d),o=s.length;return e?(n&&(r=n-o)>0?s=s.charAt(0)+"."+s.slice(1)+rc(r):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+rc(-i-1)+s,n&&(r=n-o)>0&&(s+=rc(r))):i>=o?(s+=rc(i+1-o),n&&(r=n-i-1)>0&&(s=s+"."+rc(r))):((r=i+1)<o&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(s+="."),s+=rc(r))),t.s<0?"-"+s:s}function A6(t,e){if(t.length>e)return t.length=e,!0}function QQ(t){var e,n,r;function i(s){var o=this;if(!(o instanceof i))return new i(s);if(o.constructor=i,s instanceof i){o.s=s.s,o.e=s.e,o.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(kd+s);if(s>0)o.s=1;else if(s<0)s=-s,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(s===~~s&&s<1e7){o.e=0,o.d=[s];return}return T6(o,s.toString())}else if(typeof s!="string")throw Error(kd+s);if(s.charCodeAt(0)===45?(s=s.slice(1),o.s=-1):o.s=1,fDe.test(s))T6(o,s);else throw Error(kd+s)}if(i.prototype=et,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=QQ,i.config=i.set=mDe,t===void 0&&(t={}),t)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e<r.length;)t.hasOwnProperty(n=r[e++])||(t[n]=this[n]);return i.config(t),i}function mDe(t){if(!t||typeof t!="object")throw Error(fo+"Object expected");var e,n,r,i=["precision",1,Fp,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if((r=t[n=i[e]])!==void 0)if(Up(r)===r&&r>=i[e+1]&&r<=i[e+2])this[n]=r;else throw Error(kd+n+": "+r);if((r=t[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(kd+n+": "+r);return this}var T3=QQ(hDe);xs=new T3(1);const dn=T3;function pDe(t){return xDe(t)||yDe(t)||vDe(t)||gDe()}function gDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5757In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vDe(t,e){if(t){if(typeof t=="string")return fP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fP(t,e)}}function yDe(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function xDe(t){if(Array.isArray(t))return fP(t)}function fP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var bDe=function(e){return e},ZQ={"@@functional/placeholder":!0},JQ=function(e){return e===ZQ},C6=function(e){return function n(){return arguments.length===0||arguments.length===1&&JQ(arguments.length<=0?void 0:arguments[0])?n:e.apply(void 0,arguments)}},wDe=function t(e,n){return e===1?n:C6(function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var o=i.filter(function(a){return a!==ZQ}).length;return o>=e?n.apply(void 0,i):t(e-o,C6(function(){for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];var d=i.map(function(h){return JQ(h)?c.shift():h});return n.apply(void 0,pDe(d).concat(c))}))})},b2=function(e){return wDe(e.length,e)},mP=function(e,n){for(var r=[],i=e;i<n;++i)r[i-e]=i;return r},_De=b2(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(n){return e[n]}).map(t)}),SDe=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!n.length)return bDe;var i=n.reverse(),s=i[0],o=i.slice(1);return function(){return o.reduce(function(a,c){return c(a)},s.apply(void 0,arguments))}},pP=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},eZ=function(e){var n=null,r=null;return function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return n&&s.every(function(a,c){return a===n[c]})||(n=s,r=e.apply(void 0,s)),r}};function EDe(t){var e;return t===0?e=1:e=Math.floor(new dn(t).abs().log(10).toNumber())+1,e}function TDe(t,e,n){for(var r=new dn(t),i=0,s=[];r.lt(e)&&i<1e5;)s.push(r.toNumber()),r=r.add(n),i++;return s}var ADe=b2(function(t,e,n){var r=+t,i=+e;return r+n*(i-r)}),CDe=b2(function(t,e,n){var r=e-+t;return r=r||1/0,(n-t)/r}),MDe=b2(function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))});const w2={rangeStep:TDe,getDigitCount:EDe,interpolateNumber:ADe,uninterpolateNumber:CDe,uninterpolateTruncation:MDe};function gP(t){return jDe(t)||PDe(t)||tZ(t)||RDe()}function RDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5758In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PDe(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function jDe(t){if(Array.isArray(t))return vP(t)}function Vy(t,e){return ODe(t)||kDe(t,e)||tZ(t,e)||NDe()}function NDe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5759In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tZ(t,e){if(t){if(typeof t=="string")return vP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vP(t,e)}}function vP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kDe(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var n=[],r=!0,i=!1,s=void 0;try{for(var o=t[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(e&&n.length===e));r=!0);}catch(c){i=!0,s=c}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw s}}return n}}function ODe(t){if(Array.isArray(t))return t}function nZ(t){var e=Vy(t,2),n=e[0],r=e[1],i=n,s=r;return n>r&&(i=r,s=n),[i,s]}function rZ(t,e,n){if(t.lte(0))return new dn(0);var r=w2.getDigitCount(t.toNumber()),i=new dn(10).pow(r),s=t.div(i),o=r!==1?.05:.1,a=new dn(Math.ceil(s.div(o).toNumber())).add(n).mul(o),c=a.mul(i);return e?c:new dn(Math.ceil(c))}function IDe(t,e,n){var r=1,i=new dn(t);if(!i.isint()&&n){var s=Math.abs(t);s<1?(r=new dn(10).pow(w2.getDigitCount(t)-1),i=new dn(Math.floor(i.div(r).toNumber())).mul(r)):s>1&&(i=new dn(Math.floor(t)))}else t===0?i=new dn(Math.floor((e-1)/2)):n||(i=new dn(Math.floor(t)));var o=Math.floor((e-1)/2),a=SDe(_De(function(c){return i.add(new dn(c-o).mul(r)).toNumber()}),mP);return a(0,e)}function iZ(t,e,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new dn(0),tickMin:new dn(0),tickMax:new dn(0)};var s=rZ(new dn(e).sub(t).div(n-1),r,i),o;t<=0&&e>=0?o=new dn(0):(o=new dn(t).add(e).div(2),o=o.sub(new dn(o).mod(s)));var a=Math.ceil(o.sub(t).div(s).toNumber()),c=Math.ceil(new dn(e).sub(o).div(s).toNumber()),u=a+c+1;return u>n?iZ(t,e,n,r,i+1):(u<n&&(c=e>0?c+(n-u):c,a=e>0?a:a+(n-u)),{step:s,tickMin:o.sub(new dn(a).mul(s)),tickMax:o.add(new dn(c).mul(s))})}function LDe(t){var e=Vy(t,2),n=e[0],r=e[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),a=nZ([n,r]),c=Vy(a,2),u=c[0],d=c[1];if(u===-1/0||d===1/0){var h=d===1/0?[u].concat(gP(mP(0,i-1).map(function(){return 1/0}))):[].concat(gP(mP(0,i-1).map(function(){return-1/0})),[d]);return n>r?pP(h):h}if(u===d)return IDe(u,i,s);var f=iZ(u,d,o,s),m=f.step,v=f.tickMin,p=f.tickMax,g=w2.rangeStep(v,p.add(new dn(.1).mul(m)),m);return n>r?pP(g):g}function DDe(t,e){var n=Vy(t,2),r=n[0],i=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=nZ([r,i]),a=Vy(o,2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var d=Math.max(e,2),h=rZ(new dn(u).sub(c).div(d-1),s,0),f=[].concat(gP(w2.rangeStep(new dn(c),new dn(u).sub(new dn(.99).mul(h)),h)),[u]);return r>i?pP(f):f}var FDe=eZ(LDe),UDe=eZ(DDe),BDe="Invariant failed";function eh(t,e){throw new Error(BDe)}var zDe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function qm(t){"@babel/helpers - typeof";return qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qm(t)}function i_(){return i_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i_.apply(this,arguments)}function $De(t,e){return GDe(t)||WDe(t,e)||VDe(t,e)||HDe()}function HDe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5760In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VDe(t,e){if(t){if(typeof t=="string")return M6(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M6(t,e)}}function M6(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function WDe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function GDe(t){if(Array.isArray(t))return t}function qDe(t,e){if(t==null)return{};var n=YDe(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function YDe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function XDe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KDe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,aZ(r.key),r)}}function QDe(t,e,n){return e&&KDe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ZDe(t,e,n){return e=s_(e),JDe(t,sZ()?Reflect.construct(e,n||[],s_(t).constructor):e.apply(t,n))}function JDe(t,e){if(e&&(qm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eFe(t)}function eFe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sZ=function(){return!!t})()}function s_(t){return s_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},s_(t)}function tFe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yP(t,e)}function yP(t,e){return yP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yP(t,e)}function oZ(t,e,n){return e=aZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aZ(t){var e=nFe(t,"string");return qm(e)=="symbol"?e:e+""}function nFe(t,e){if(qm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(qm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var _2=function(t){function e(){return XDe(this,e),ZDe(this,e,arguments)}return tFe(e,t),QDe(e,[{key:"render",value:function(){var r=this.props,i=r.offset,s=r.layout,o=r.width,a=r.dataKey,c=r.data,u=r.dataPointFormatter,d=r.xAxis,h=r.yAxis,f=qDe(r,zDe),m=Jt(f,!1);this.props.direction==="x"&&d.type!=="number"&&eh();var v=c.map(function(p){var g=u(p,a),y=g.x,b=g.y,x=g.value,w=g.errorVal;if(!w)return null;var _=[],S,T;if(Array.isArray(w)){var M=$De(w,2);S=M[0],T=M[1]}else S=T=w;if(s==="vertical"){var A=d.scale,C=b+i,R=C+o,j=C-o,k=A(x-S),P=A(x+T);_.push({x1:P,y1:R,x2:P,y2:j}),_.push({x1:k,y1:C,x2:P,y2:C}),_.push({x1:k,y1:R,x2:k,y2:j})}else if(s==="horizontal"){var O=h.scale,L=y+i,F=L-o,D=L+o,I=O(x-S),N=O(x+T);_.push({x1:F,y1:N,x2:D,y2:N}),_.push({x1:L,y1:I,x2:L,y2:N}),_.push({x1:F,y1:I,x2:D,y2:I})}return V.createElement(Rr,i_({className:"recharts-errorBar",key:"bar-".concat(_.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},m),_.map(function(G){return V.createElement("line",i_({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return V.createElement(Rr,{className:"recharts-errorBars"},v)}}])}(V.Component);oZ(_2,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});oZ(_2,"displayName","ErrorBar");function Wy(t){"@babel/helpers - typeof";return Wy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wy(t)}function R6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ju(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?R6(Object(n),!0).forEach(function(r){rFe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rFe(t,e,n){return e=iFe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function iFe(t){var e=sFe(t,"string");return Wy(e)=="symbol"?e:e+""}function sFe(t,e){if(Wy(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Wy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var lZ=function(e){var n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,s=e.legendContent,o=hs(n,Jf);if(!o)return null;var a=Jf.defaultProps,c=a!==void 0?ju(ju({},a),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:s==="children"?u=(r||[]).reduce(function(d,h){var f=h.item,m=h.props,v=m.sectors||m.data||[];return d.concat(v.map(function(p){return{type:o.props.iconType||f.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):u=(r||[]).map(function(d){var h=d.item,f=h.type.defaultProps,m=f!==void 0?ju(ju({},f),h.props):{},v=m.dataKey,p=m.name,g=m.legendType,y=m.hide;return{inactive:y,dataKey:v,type:c.iconType||g||"square",color:A3(h),value:p||v,payload:m}}),ju(ju(ju({},c),Jf.getWithHeight(o,i)),{},{payload:u,item:o})};function Gy(t){"@babel/helpers - typeof";return Gy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gy(t)}function P6(t){return cFe(t)||lFe(t)||aFe(t)||oFe()}function oFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5761In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aFe(t,e){if(t){if(typeof t=="string")return xP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xP(t,e)}}function lFe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cFe(t){if(Array.isArray(t))return xP(t)}function xP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function j6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Wn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j6(Object(n),!0).forEach(function(r){tm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tm(t,e,n){return e=uFe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uFe(t){var e=dFe(t,"string");return Gy(e)=="symbol"?e:e+""}function dFe(t,e){if(Gy(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Gy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ia(t,e,n){return en(t)||en(e)?n:vr(e)?ao(t,e,n):Nt(e)?e(t):n}function Ov(t,e,n,r){var i=lDe(t,function(a){return Ia(a,e)});if(n==="number"){var s=i.filter(function(a){return Le(a)||parseFloat(a)});return s.length?[x2(s),y2(s)]:[1/0,-1/0]}var o=r?i.filter(function(a){return!en(a)}):i;return o.map(function(a){return vr(a)||a instanceof Date?a:""})}var hFe=function(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,o=-1,a=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(a<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var c=s.range,u=0;u<a;u++){var d=u>0?i[u-1].coordinate:i[a-1].coordinate,h=i[u].coordinate,f=u>=a-1?i[0].coordinate:i[u+1].coordinate,m=void 0;if(Ho(h-d)!==Ho(f-h)){var v=[];if(Ho(f-h)===Ho(c[1]-c[0])){m=f;var p=h+c[1]-c[0];v[0]=Math.min(p,(p+d)/2),v[1]=Math.max(p,(p+d)/2)}else{m=d;var g=f+c[1]-c[0];v[0]=Math.min(h,(g+h)/2),v[1]=Math.max(h,(g+h)/2)}var y=[Math.min(h,(m+h)/2),Math.max(h,(m+h)/2)];if(e>y[0]&&e<=y[1]||e>=v[0]&&e<=v[1]){o=i[u].index;break}}else{var b=Math.min(d,f),x=Math.max(d,f);if(e>(b+h)/2&&e<=(x+h)/2){o=i[u].index;break}}}else for(var w=0;w<a;w++)if(w===0&&e<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<a-1&&e>(r[w].coordinate+r[w-1].coordinate)/2&&e<=(r[w].coordinate+r[w+1].coordinate)/2||w===a-1&&e>(r[w].coordinate+r[w-1].coordinate)/2){o=r[w].index;break}return o},A3=function(e){var n,r=e,i=r.type.displayName,s=(n=e.type)!==null&&n!==void 0&&n.defaultProps?Wn(Wn({},e.type.defaultProps),e.props):e.props,o=s.stroke,a=s.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:a;break;default:c=a;break}return c},fFe=function(e){var n=e.barSize,r=e.totalSize,i=e.stackGroups,s=i===void 0?{}:i;if(!s)return{};for(var o={},a=Object.keys(s),c=0,u=a.length;c<u;c++)for(var d=s[a[c]].stackGroups,h=Object.keys(d),f=0,m=h.length;f<m;f++){var v=d[h[f]],p=v.items,g=v.cateAxisId,y=p.filter(function(T){return gl(T.type).indexOf("Bar")>=0});if(y&&y.length){var b=y[0].type.defaultProps,x=b!==void 0?Wn(Wn({},b),y[0].props):y[0].props,w=x.barSize,_=x[g];o[_]||(o[_]=[]);var S=en(w)?n:w;o[_].push({item:y[0],stackList:y.slice(1),barSize:en(S)?void 0:Zd(S,r,0)})}}return o},mFe=function(e){var n=e.barGap,r=e.barCategoryGap,i=e.bandSize,s=e.sizeList,o=s===void 0?[]:s,a=e.maxBarSize,c=o.length;if(c<1)return null;var u=Zd(n,i,0,!0),d,h=[];if(o[0].barSize===+o[0].barSize){var f=!1,m=i/c,v=o.reduce(function(w,_){return w+_.barSize||0},0);v+=(c-1)*u,v>=i&&(v-=(c-1)*u,u=0),v>=i&&m>0&&(f=!0,m*=.9,v=c*m);var p=(i-v)/2>>0,g={offset:p-u,size:0};d=o.reduce(function(w,_){var S={item:_.item,position:{offset:g.offset+g.size+u,size:f?m:_.barSize}},T=[].concat(P6(w),[S]);return g=T[T.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function(M){T.push({item:M,position:g})}),T},h)}else{var y=Zd(r,i,0,!0);i-2*y-(c-1)*u<=0&&(u=0);var b=(i-2*y-(c-1)*u)/c;b>1&&(b>>=0);var x=a===+a?Math.min(b,a):b;d=o.reduce(function(w,_,S){var T=[].concat(P6(w),[{item:_.item,position:{offset:y+(b+u)*S+(b-x)/2,size:x}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function(M){T.push({item:M,position:T[T.length-1].position})}),T},h)}return d},pFe=function(e,n,r,i){var s=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=lZ({children:s,legendWidth:c});if(u){var d=i||{},h=d.width,f=d.height,m=u.align,v=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&v==="middle")&&m!=="center"&&Le(e[m]))return Wn(Wn({},e),{},tm({},m,e[m]+(h||0)));if((p==="horizontal"||p==="vertical"&&m==="center")&&v!=="middle"&&Le(e[v]))return Wn(Wn({},e),{},tm({},v,e[v]+(f||0)))}return e},gFe=function(e,n,r){return en(n)?!0:e==="horizontal"?n==="yAxis":e==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},cZ=function(e,n,r,i,s){var o=n.props.children,a=qo(o,_2).filter(function(u){return gFe(i,s,u.props.direction)});if(a&&a.length){var c=a.map(function(u){return u.props.dataKey});return e.reduce(function(u,d){var h=Ia(d,r);if(en(h))return u;var f=Array.isArray(h)?[x2(h),y2(h)]:[h,h],m=c.reduce(function(v,p){var g=Ia(d,p,0),y=f[0]-Math.abs(Array.isArray(g)?g[0]:g),b=f[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(y,v[0]),Math.max(b,v[1])]},[1/0,-1/0]);return[Math.min(m[0],u[0]),Math.max(m[1],u[1])]},[1/0,-1/0])}return null},vFe=function(e,n,r,i,s){var o=n.map(function(a){return cZ(e,a,r,s,i)}).filter(function(a){return!en(a)});return o&&o.length?o.reduce(function(a,c){return[Math.min(a[0],c[0]),Math.max(a[1],c[1])]},[1/0,-1/0]):null},uZ=function(e,n,r,i,s){var o=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&cZ(e,c,u,i)||Ov(e,u,r,s)});if(r==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var a={};return o.reduce(function(c,u){for(var d=0,h=u.length;d<h;d++)a[u[d]]||(a[u[d]]=!0,c.push(u[d]));return c},[])},dZ=function(e,n){return e==="horizontal"&&n==="xAxis"||e==="vertical"&&n==="yAxis"||e==="centric"&&n==="angleAxis"||e==="radial"&&n==="radiusAxis"},hZ=function(e,n,r,i){if(i)return e.map(function(c){return c.coordinate});var s,o,a=e.map(function(c){return c.coordinate===n&&(s=!0),c.coordinate===r&&(o=!0),c.coordinate});return s||a.push(n),o||a.push(r),a},hl=function(e,n,r){if(!e)return null;var i=e.scale,s=e.duplicateDomain,o=e.type,a=e.range,c=e.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=e.axisType==="angleAxis"&&(a==null?void 0:a.length)>=2?Ho(a[0]-a[1])*2*u:u,n&&(e.ticks||e.niceTicks)){var d=(e.ticks||e.niceTicks).map(function(h){var f=s?s.indexOf(h):h;return{coordinate:i(f)+u,value:h,offset:u}});return d.filter(function(h){return!G0(h.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(h,f){return{coordinate:i(h)+u,value:h,index:f,offset:u}}):i.ticks&&!r?i.ticks(e.tickCount).map(function(h){return{coordinate:i(h)+u,value:h,offset:u}}):i.domain().map(function(h,f){return{coordinate:i(h)+u,value:s?s[h]:h,index:f,offset:u}})},JT=new WeakMap,ob=function(e,n){if(typeof n!="function")return e;JT.has(e)||JT.set(e,new WeakMap);var r=JT.get(e);if(r.has(n))return r.get(n);var i=function(){e.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},yFe=function(e,n,r){var i=e.scale,s=e.type,o=e.layout,a=e.axisType;if(i==="auto")return o==="radial"&&a==="radiusAxis"?{scale:Fy(),realScaleType:"band"}:o==="radial"&&a==="angleAxis"?{scale:J1(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:kv(),realScaleType:"point"}:s==="category"?{scale:Fy(),realScaleType:"band"}:{scale:J1(),realScaleType:"linear"};if(Qd(i)){var c="scale".concat(s2(i));return{scale:(E6[c]||kv)(),realScaleType:E6[c]?c:"point"}}return Nt(i)?{scale:i}:{scale:kv(),realScaleType:"point"}},N6=1e-4,xFe=function(e){var n=e.domain();if(!(!n||n.length<=2)){var r=n.length,i=e.range(),s=Math.min(i[0],i[1])-N6,o=Math.max(i[0],i[1])+N6,a=e(n[0]),c=e(n[r-1]);(a<s||a>o||c<s||c>o)&&e.domain([n[0],n[r-1]])}},bFe=function(e,n){if(!e)return null;for(var r=0,i=e.length;r<i;r++)if(e[r].item===n)return e[r].position;return null},wFe=function(e,n){if(!n||n.length!==2||!Le(n[0])||!Le(n[1]))return e;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),s=[e[0],e[1]];return(!Le(e[0])||e[0]<r)&&(s[0]=r),(!Le(e[1])||e[1]>i)&&(s[1]=i),s[0]>i&&(s[0]=i),s[1]<r&&(s[1]=r),s},_Fe=function(e){var n=e.length;if(!(n<=0))for(var r=0,i=e[0].length;r<i;++r)for(var s=0,o=0,a=0;a<n;++a){var c=G0(e[a][r][1])?e[a][r][0]:e[a][r][1];c>=0?(e[a][r][0]=s,e[a][r][1]=s+c,s=e[a][r][1]):(e[a][r][0]=o,e[a][r][1]=o+c,o=e[a][r][1])}},SFe=function(e){var n=e.length;if(!(n<=0))for(var r=0,i=e[0].length;r<i;++r)for(var s=0,o=0;o<n;++o){var a=G0(e[o][r][1])?e[o][r][0]:e[o][r][1];a>=0?(e[o][r][0]=s,e[o][r][1]=s+a,s=e[o][r][1]):(e[o][r][0]=0,e[o][r][1]=0)}},EFe={sign:_Fe,expand:UCe,none:Um,silhouette:BCe,wiggle:zCe,positive:SFe},TFe=function(e,n,r){var i=n.map(function(a){return a.props.dataKey}),s=EFe[r],o=FCe().keys(i).value(function(a,c){return+Ia(a,c,0)}).order(VR).offset(s);return o(e)},AFe=function(e,n,r,i,s,o){if(!e)return null;var a=o?n.reverse():n,c={},u=a.reduce(function(h,f){var m,v=(m=f.type)!==null&&m!==void 0&&m.defaultProps?Wn(Wn({},f.type.defaultProps),f.props):f.props,p=v.stackId,g=v.hide;if(g)return h;var y=v[r],b=h[y]||{hasStack:!1,stackGroups:{}};if(vr(p)){var x=b.stackGroups[p]||{numericAxisId:r,cateAxisId:i,items:[]};x.items.push(f),b.hasStack=!0,b.stackGroups[p]=x}else b.stackGroups[i2("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[f]};return Wn(Wn({},h),{},tm({},y,b))},c),d={};return Object.keys(u).reduce(function(h,f){var m=u[f];if(m.hasStack){var v={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(p,g){var y=m.stackGroups[g];return Wn(Wn({},p),{},tm({},g,{numericAxisId:r,cateAxisId:i,items:y.items,stackedData:TFe(e,y.items,s)}))},v)}return Wn(Wn({},h),{},tm({},f,m))},d)},CFe=function(e,n){var r=n.realScaleType,i=n.type,s=n.tickCount,o=n.originalDomain,a=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(s&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=e.domain();if(!u.length)return null;var d=FDe(u,s,a);return e.domain([x2(d),y2(d)]),{niceTicks:d}}if(s&&i==="number"){var h=e.domain(),f=UDe(h,s,a);return{niceTicks:f}}return null},k6=function(e){var n=e.axis,r=e.ticks,i=e.offset,s=e.bandSize,o=e.entry,a=e.index;if(n.type==="category")return r[a]?r[a].coordinate+i:null;var c=Ia(o,n.dataKey,n.domain[a]);return en(c)?null:n.scale(c)-s/2+i},MFe=function(e){var n=e.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return i<=0&&s>=0?0:s<0?s:i}return r[0]},RFe=function(e,n){var r,i=(r=e.type)!==null&&r!==void 0&&r.defaultProps?Wn(Wn({},e.type.defaultProps),e.props):e.props,s=i.stackId;if(vr(s)){var o=n[s];if(o){var a=o.items.indexOf(e);return a>=0?o.stackedData[a]:null}}return null},PFe=function(e){return e.reduce(function(n,r){return[x2(r.concat([n[0]]).filter(Le)),y2(r.concat([n[1]]).filter(Le))]},[1/0,-1/0])},fZ=function(e,n,r){return Object.keys(e).reduce(function(i,s){var o=e[s],a=o.stackedData,c=a.reduce(function(u,d){var h=PFe(d.slice(n,r+1));return[Math.min(u[0],h[0]),Math.max(u[1],h[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},O6=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,I6=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bP=function(e,n,r){if(Nt(e))return e(n,r);if(!Array.isArray(e))return n;var i=[];if(Le(e[0]))i[0]=r?e[0]:Math.min(e[0],n[0]);else if(O6.test(e[0])){var s=+O6.exec(e[0])[1];i[0]=n[0]-s}else Nt(e[0])?i[0]=e[0](n[0]):i[0]=n[0];if(Le(e[1]))i[1]=r?e[1]:Math.max(e[1],n[1]);else if(I6.test(e[1])){var o=+I6.exec(e[1])[1];i[1]=n[1]+o}else Nt(e[1])?i[1]=e[1](n[1]):i[1]=n[1];return i},o_=function(e,n,r){if(e&&e.scale&&e.scale.bandwidth){var i=e.scale.bandwidth();if(!r||i>0)return i}if(e&&n&&n.length>=2){for(var s=JO(n,function(h){return h.coordinate}),o=1/0,a=1,c=s.length;a<c;a++){var u=s[a],d=s[a-1];o=Math.min((u.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},L6=function(e,n,r){return!e||!e.length||S3(e,ao(r,"type.defaultProps.domain"))?n:e},mZ=function(e,n){var r=e.type.defaultProps?Wn(Wn({},e.type.defaultProps),e.props):e.props,i=r.dataKey,s=r.name,o=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,d=r.hide;return Wn(Wn({},Jt(e,!1)),{},{dataKey:i,unit:o,formatter:a,name:s||i,color:A3(e),value:Ia(n,i),type:c,payload:n,chartType:u,hide:d})};function qy(t){"@babel/helpers - typeof";return qy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qy(t)}function D6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function F6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?D6(Object(n),!0).forEach(function(r){jFe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jFe(t,e,n){return e=NFe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function NFe(t){var e=kFe(t,"string");return qy(e)=="symbol"?e:e+""}function kFe(t,e){if(qy(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(qy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var a_=Math.PI/180,OFe=function(e){return e*180/Math.PI},Br=function(e,n,r,i){return{x:e+Math.cos(-a_*i)*r,y:n+Math.sin(-a_*i)*r}},IFe=function(e,n){var r=e.x,i=e.y,s=n.x,o=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(i-o,2))},LFe=function(e,n){var r=e.x,i=e.y,s=n.cx,o=n.cy,a=IFe({x:r,y:i},{x:s,y:o});if(a<=0)return{radius:a};var c=(r-s)/a,u=Math.acos(c);return i>o&&(u=2*Math.PI-u),{radius:a,angle:OFe(u),angleInRadian:u}},DFe=function(e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),s=Math.floor(r/360),o=Math.min(i,s);return{startAngle:n-o*360,endAngle:r-o*360}},FFe=function(e,n){var r=n.startAngle,i=n.endAngle,s=Math.floor(r/360),o=Math.floor(i/360),a=Math.min(s,o);return e+a*360},U6=function(e,n){var r=e.x,i=e.y,s=LFe({x:r,y:i},n),o=s.radius,a=s.angle,c=n.innerRadius,u=n.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var d=DFe(n),h=d.startAngle,f=d.endAngle,m=a,v;if(h<=f){for(;m>f;)m-=360;for(;m<h;)m+=360;v=m>=h&&m<=f}else{for(;m>h;)m-=360;for(;m<f;)m+=360;v=m>=f&&m<=h}return v?F6(F6({},n),{},{radius:o,angle:FFe(m,n)}):null};function Yy(t){"@babel/helpers - typeof";return Yy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yy(t)}var UFe=["offset"];function BFe(t){return VFe(t)||HFe(t)||$Fe(t)||zFe()}function zFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5762In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Fe(t,e){if(t){if(typeof t=="string")return wP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wP(t,e)}}function HFe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function VFe(t){if(Array.isArray(t))return wP(t)}function wP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function WFe(t,e){if(t==null)return{};var n=GFe(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function GFe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function B6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function hr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?B6(Object(n),!0).forEach(function(r){qFe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qFe(t,e,n){return e=YFe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YFe(t){var e=XFe(t,"string");return Yy(e)=="symbol"?e:e+""}function XFe(t,e){if(Yy(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Yy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xy(){return Xy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xy.apply(this,arguments)}var KFe=function(e){var n=e.value,r=e.formatter,i=en(e.children)?n:e.children;return Nt(r)?r(i):i},QFe=function(e,n){var r=Ho(n-e),i=Math.min(Math.abs(n-e),360);return r*i},ZFe=function(e,n,r){var i=e.position,s=e.viewBox,o=e.offset,a=e.className,c=s,u=c.cx,d=c.cy,h=c.innerRadius,f=c.outerRadius,m=c.startAngle,v=c.endAngle,p=c.clockWise,g=(h+f)/2,y=QFe(m,v),b=y>=0?1:-1,x,w;i==="insideStart"?(x=m+b*o,w=p):i==="insideEnd"?(x=v-b*o,w=!p):i==="end"&&(x=v+b*o,w=p),w=y<=0?w:!w;var _=Br(u,d,g,x),S=Br(u,d,g,x+(w?1:-1)*359),T="M".concat(_.x,",").concat(_.y,` 5763 A`).concat(g,",").concat(g,",0,1,").concat(w?0:1,`, 5764 `).concat(S.x,",").concat(S.y),M=en(e.id)?i2("recharts-radial-line-"):e.id;return V.createElement("text",Xy({},r,{dominantBaseline:"central",className:Gt("recharts-radial-bar-label",a)}),V.createElement("defs",null,V.createElement("path",{id:M,d:T})),V.createElement("textPath",{xlinkHref:"#".concat(M)},n))},JFe=function(e){var n=e.viewBox,r=e.offset,i=e.position,s=n,o=s.cx,a=s.cy,c=s.innerRadius,u=s.outerRadius,d=s.startAngle,h=s.endAngle,f=(d+h)/2;if(i==="outside"){var m=Br(o,a,u+r,f),v=m.x,p=m.y;return{x:v,y:p,textAnchor:v>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var g=(c+u)/2,y=Br(o,a,g,f),b=y.x,x=y.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},eUe=function(e){var n=e.viewBox,r=e.parentViewBox,i=e.offset,s=e.position,o=n,a=o.x,c=o.y,u=o.width,d=o.height,h=d>=0?1:-1,f=h*i,m=h>0?"end":"start",v=h>0?"start":"end",p=u>=0?1:-1,g=p*i,y=p>0?"end":"start",b=p>0?"start":"end";if(s==="top"){var x={x:a+u/2,y:c-h*i,textAnchor:"middle",verticalAnchor:m};return hr(hr({},x),r?{height:Math.max(c-r.y,0),width:u}:{})}if(s==="bottom"){var w={x:a+u/2,y:c+d+f,textAnchor:"middle",verticalAnchor:v};return hr(hr({},w),r?{height:Math.max(r.y+r.height-(c+d),0),width:u}:{})}if(s==="left"){var _={x:a-g,y:c+d/2,textAnchor:y,verticalAnchor:"middle"};return hr(hr({},_),r?{width:Math.max(_.x-r.x,0),height:d}:{})}if(s==="right"){var S={x:a+u+g,y:c+d/2,textAnchor:b,verticalAnchor:"middle"};return hr(hr({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:d}:{})}var T=r?{width:u,height:d}:{};return s==="insideLeft"?hr({x:a+g,y:c+d/2,textAnchor:b,verticalAnchor:"middle"},T):s==="insideRight"?hr({x:a+u-g,y:c+d/2,textAnchor:y,verticalAnchor:"middle"},T):s==="insideTop"?hr({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:v},T):s==="insideBottom"?hr({x:a+u/2,y:c+d-f,textAnchor:"middle",verticalAnchor:m},T):s==="insideTopLeft"?hr({x:a+g,y:c+f,textAnchor:b,verticalAnchor:v},T):s==="insideTopRight"?hr({x:a+u-g,y:c+f,textAnchor:y,verticalAnchor:v},T):s==="insideBottomLeft"?hr({x:a+g,y:c+d-f,textAnchor:b,verticalAnchor:m},T):s==="insideBottomRight"?hr({x:a+u-g,y:c+d-f,textAnchor:y,verticalAnchor:m},T):Pp(s)&&(Le(s.x)||od(s.x))&&(Le(s.y)||od(s.y))?hr({x:a+Zd(s.x,u),y:c+Zd(s.y,d),textAnchor:"end",verticalAnchor:"end"},T):hr({x:a+u/2,y:c+d/2,textAnchor:"middle",verticalAnchor:"middle"},T)},tUe=function(e){return"cx"in e&&Le(e.cx)};function ri(t){var e=t.offset,n=e===void 0?5:e,r=WFe(t,UFe),i=hr({offset:n},r),s=i.viewBox,o=i.position,a=i.value,c=i.children,u=i.content,d=i.className,h=d===void 0?"":d,f=i.textBreakAll;if(!s||en(a)&&en(c)&&!E.isValidElement(u)&&!Nt(u))return null;if(E.isValidElement(u))return E.cloneElement(u,i);var m;if(Nt(u)){if(m=E.createElement(u,i),E.isValidElement(m))return m}else m=KFe(i);var v=tUe(s),p=Jt(i,!0);if(v&&(o==="insideStart"||o==="insideEnd"||o==="end"))return ZFe(i,m,p);var g=v?JFe(i):eUe(i);return V.createElement(G1,Xy({className:Gt("recharts-label",h)},p,g,{breakAll:f}),m)}ri.displayName="Label";var pZ=function(e){var n=e.cx,r=e.cy,i=e.angle,s=e.startAngle,o=e.endAngle,a=e.r,c=e.radius,u=e.innerRadius,d=e.outerRadius,h=e.x,f=e.y,m=e.top,v=e.left,p=e.width,g=e.height,y=e.clockWise,b=e.labelViewBox;if(b)return b;if(Le(p)&&Le(g)){if(Le(h)&&Le(f))return{x:h,y:f,width:p,height:g};if(Le(m)&&Le(v))return{x:m,y:v,width:p,height:g}}return Le(h)&&Le(f)?{x:h,y:f,width:0,height:0}:Le(n)&&Le(r)?{cx:n,cy:r,startAngle:s||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:d||c||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},nUe=function(e,n){return e?e===!0?V.createElement(ri,{key:"label-implicit",viewBox:n}):vr(e)?V.createElement(ri,{key:"label-implicit",viewBox:n,value:e}):E.isValidElement(e)?e.type===ri?E.cloneElement(e,{key:"label-implicit",viewBox:n}):V.createElement(ri,{key:"label-implicit",content:e,viewBox:n}):Nt(e)?V.createElement(ri,{key:"label-implicit",content:e,viewBox:n}):Pp(e)?V.createElement(ri,Xy({viewBox:n},e,{key:"label-implicit"})):null:null},rUe=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var i=e.children,s=pZ(e),o=qo(i,ri).map(function(c,u){return E.cloneElement(c,{viewBox:n||s,key:"label-".concat(u)})});if(!r)return o;var a=nUe(e.label,n||s);return[a].concat(BFe(o))};ri.parseViewBox=pZ;ri.renderCallByParent=rUe;function iUe(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var sUe=iUe;const oUe=tn(sUe);function Ky(t){"@babel/helpers - typeof";return Ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ky(t)}var aUe=["valueAccessor"],lUe=["data","dataKey","clockWise","id","textBreakAll"];function cUe(t){return fUe(t)||hUe(t)||dUe(t)||uUe()}function uUe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5765In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dUe(t,e){if(t){if(typeof t=="string")return _P(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _P(t,e)}}function hUe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function fUe(t){if(Array.isArray(t))return _P(t)}function _P(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l_(){return l_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l_.apply(this,arguments)}function z6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?z6(Object(n),!0).forEach(function(r){mUe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mUe(t,e,n){return e=pUe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pUe(t){var e=gUe(t,"string");return Ky(e)=="symbol"?e:e+""}function gUe(t,e){if(Ky(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ky(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function H6(t,e){if(t==null)return{};var n=vUe(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function vUe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var yUe=function(e){return Array.isArray(e.value)?oUe(e.value):e.value};function Hc(t){var e=t.valueAccessor,n=e===void 0?yUe:e,r=H6(t,aUe),i=r.data,s=r.dataKey,o=r.clockWise,a=r.id,c=r.textBreakAll,u=H6(r,lUe);return!i||!i.length?null:V.createElement(Rr,{className:"recharts-label-list"},i.map(function(d,h){var f=en(s)?n(d,h):Ia(d&&d.payload,s),m=en(a)?{}:{id:"".concat(a,"-").concat(h)};return V.createElement(ri,l_({},Jt(d,!0),u,m,{parentViewBox:d.parentViewBox,value:f,textBreakAll:c,viewBox:ri.parseViewBox(en(o)?d:$6($6({},d),{},{clockWise:o})),key:"label-".concat(h),index:h}))}))}Hc.displayName="LabelList";function xUe(t,e){return t?t===!0?V.createElement(Hc,{key:"labelList-implicit",data:e}):V.isValidElement(t)||Nt(t)?V.createElement(Hc,{key:"labelList-implicit",data:e,content:t}):Pp(t)?V.createElement(Hc,l_({data:e},t,{key:"labelList-implicit"})):null:null}function bUe(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=qo(r,Hc).map(function(o,a){return E.cloneElement(o,{data:e,key:"labelList-".concat(a)})});if(!n)return i;var s=xUe(t.label,e);return[s].concat(cUe(i))}Hc.renderCallByParent=bUe;function Qy(t){"@babel/helpers - typeof";return Qy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qy(t)}function SP(){return SP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},SP.apply(this,arguments)}function V6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function W6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?V6(Object(n),!0).forEach(function(r){wUe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wUe(t,e,n){return e=_Ue(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _Ue(t){var e=SUe(t,"string");return Qy(e)=="symbol"?e:e+""}function SUe(t,e){if(Qy(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Qy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var EUe=function(e,n){var r=Ho(n-e),i=Math.min(Math.abs(n-e),359.999);return r*i},ab=function(e){var n=e.cx,r=e.cy,i=e.radius,s=e.angle,o=e.sign,a=e.isExternal,c=e.cornerRadius,u=e.cornerIsExternal,d=c*(a?1:-1)+i,h=Math.asin(c/d)/a_,f=u?s:s+o*h,m=Br(n,r,d,f),v=Br(n,r,i,f),p=u?s-o*h:s,g=Br(n,r,d*Math.cos(h*a_),p);return{center:m,circleTangency:v,lineTangency:g,theta:h}},gZ=function(e){var n=e.cx,r=e.cy,i=e.innerRadius,s=e.outerRadius,o=e.startAngle,a=e.endAngle,c=EUe(o,a),u=o+c,d=Br(n,r,s,o),h=Br(n,r,s,u),f="M ".concat(d.x,",").concat(d.y,` 5766 A `).concat(s,",").concat(s,`,0, 5767 `).concat(+(Math.abs(c)>180),",").concat(+(o>u),`, 5768 `).concat(h.x,",").concat(h.y,` 5769 `);if(i>0){var m=Br(n,r,i,o),v=Br(n,r,i,u);f+="L ".concat(v.x,",").concat(v.y,` 5770 A `).concat(i,",").concat(i,`,0, 5771 `).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`, 5772 `).concat(m.x,",").concat(m.y," Z")}else f+="L ".concat(n,",").concat(r," Z");return f},TUe=function(e){var n=e.cx,r=e.cy,i=e.innerRadius,s=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,d=e.endAngle,h=Ho(d-u),f=ab({cx:n,cy:r,radius:s,angle:u,sign:h,cornerRadius:o,cornerIsExternal:c}),m=f.circleTangency,v=f.lineTangency,p=f.theta,g=ab({cx:n,cy:r,radius:s,angle:d,sign:-h,cornerRadius:o,cornerIsExternal:c}),y=g.circleTangency,b=g.lineTangency,x=g.theta,w=c?Math.abs(u-d):Math.abs(u-d)-p-x;if(w<0)return a?"M ".concat(v.x,",").concat(v.y,` 5773 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 5774 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 5775 `):gZ({cx:n,cy:r,innerRadius:i,outerRadius:s,startAngle:u,endAngle:d});var _="M ".concat(v.x,",").concat(v.y,` 5776 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(m.x,",").concat(m.y,` 5777 A`).concat(s,",").concat(s,",0,").concat(+(w>180),",").concat(+(h<0),",").concat(y.x,",").concat(y.y,` 5778 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(b.x,",").concat(b.y,` 5779 `);if(i>0){var S=ab({cx:n,cy:r,radius:i,angle:u,sign:h,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),T=S.circleTangency,M=S.lineTangency,A=S.theta,C=ab({cx:n,cy:r,radius:i,angle:d,sign:-h,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),R=C.circleTangency,j=C.lineTangency,k=C.theta,P=c?Math.abs(u-d):Math.abs(u-d)-A-k;if(P<0&&o===0)return"".concat(_,"L").concat(n,",").concat(r,"Z");_+="L".concat(j.x,",").concat(j.y,` 5780 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(R.x,",").concat(R.y,` 5781 A`).concat(i,",").concat(i,",0,").concat(+(P>180),",").concat(+(h>0),",").concat(T.x,",").concat(T.y,` 5782 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(M.x,",").concat(M.y,"Z")}else _+="L".concat(n,",").concat(r,"Z");return _},AUe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},vZ=function(e){var n=W6(W6({},AUe),e),r=n.cx,i=n.cy,s=n.innerRadius,o=n.outerRadius,a=n.cornerRadius,c=n.forceCornerRadius,u=n.cornerIsExternal,d=n.startAngle,h=n.endAngle,f=n.className;if(o<s||d===h)return null;var m=Gt("recharts-sector",f),v=o-s,p=Zd(a,v,0,!0),g;return p>0&&Math.abs(d-h)<360?g=TUe({cx:r,cy:i,innerRadius:s,outerRadius:o,cornerRadius:Math.min(p,v/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:d,endAngle:h}):g=gZ({cx:r,cy:i,innerRadius:s,outerRadius:o,startAngle:d,endAngle:h}),V.createElement("path",SP({},Jt(n,!0),{className:m,d:g,role:"img"}))};function Zy(t){"@babel/helpers - typeof";return Zy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zy(t)}function EP(){return EP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},EP.apply(this,arguments)}function G6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function q6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G6(Object(n),!0).forEach(function(r){CUe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function CUe(t,e,n){return e=MUe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function MUe(t){var e=RUe(t,"string");return Zy(e)=="symbol"?e:e+""}function RUe(t,e){if(Zy(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Zy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Y6={curveBasisClosed:CCe,curveBasisOpen:MCe,curveBasis:ACe,curveBumpX:hCe,curveBumpY:fCe,curveLinearClosed:RCe,curveLinear:a2,curveMonotoneX:PCe,curveMonotoneY:jCe,curveNatural:NCe,curveStep:kCe,curveStepAfter:ICe,curveStepBefore:OCe},lb=function(e){return e.x===+e.x&&e.y===+e.y},vg=function(e){return e.x},yg=function(e){return e.y},PUe=function(e,n){if(Nt(e))return e;var r="curve".concat(s2(e));return(r==="curveMonotone"||r==="curveBump")&&n?Y6["".concat(r).concat(n==="vertical"?"Y":"X")]:Y6[r]||a2},jUe=function(e){var n=e.type,r=n===void 0?"linear":n,i=e.points,s=i===void 0?[]:i,o=e.baseLine,a=e.layout,c=e.connectNulls,u=c===void 0?!1:c,d=PUe(r,a),h=u?s.filter(function(p){return lb(p)}):s,f;if(Array.isArray(o)){var m=u?o.filter(function(p){return lb(p)}):o,v=h.map(function(p,g){return q6(q6({},p),{},{base:m[g]})});return a==="vertical"?f=Zx().y(yg).x1(vg).x0(function(p){return p.base.x}):f=Zx().x(vg).y1(yg).y0(function(p){return p.base.y}),f.defined(lb).curve(d),f(v)}return a==="vertical"&&Le(o)?f=Zx().y(yg).x1(vg).x0(o):Le(o)?f=Zx().x(vg).y1(yg).y0(o):f=gK().x(vg).y(yg),f.defined(lb).curve(d),f(h)},X6=function(e){var n=e.className,r=e.points,i=e.path,s=e.pathRef;if((!r||!r.length)&&!i)return null;var o=r&&r.length?jUe(e):i;return E.createElement("path",EP({},Jt(e,!1),j1(e),{className:Gt("recharts-curve",n),d:o,ref:s}))},NUe=Object.getOwnPropertyNames,kUe=Object.getOwnPropertySymbols,OUe=Object.prototype.hasOwnProperty;function K6(t,e){return function(r,i,s){return t(r,i,s)&&e(r,i,s)}}function cb(t){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,i);var s=i.cache,o=s.get(n),a=s.get(r);if(o&&a)return o===r&&a===n;s.set(n,r),s.set(r,n);var c=t(n,r,i);return s.delete(n),s.delete(r),c}}function Q6(t){return NUe(t).concat(kUe(t))}var IUe=Object.hasOwn||function(t,e){return OUe.call(t,e)};function xh(t,e){return t===e||!t&&!e&&t!==t&&e!==e}var LUe="__v",DUe="__o",FUe="_owner",Z6=Object.getOwnPropertyDescriptor,J6=Object.keys;function UUe(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function BUe(t,e){return xh(t.getTime(),e.getTime())}function zUe(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function $Ue(t,e){return t===e}function eB(t,e,n){var r=t.size;if(r!==e.size)return!1;if(!r)return!0;for(var i=new Array(r),s=t.entries(),o,a,c=0;(o=s.next())&&!o.done;){for(var u=e.entries(),d=!1,h=0;(a=u.next())&&!a.done;){if(i[h]){h++;continue}var f=o.value,m=a.value;if(n.equals(f[0],m[0],c,h,t,e,n)&&n.equals(f[1],m[1],f[0],m[0],t,e,n)){d=i[h]=!0;break}h++}if(!d)return!1;c++}return!0}var HUe=xh;function VUe(t,e,n){var r=J6(t),i=r.length;if(J6(e).length!==i)return!1;for(;i-- >0;)if(!yZ(t,e,n,r[i]))return!1;return!0}function xg(t,e,n){var r=Q6(t),i=r.length;if(Q6(e).length!==i)return!1;for(var s,o,a;i-- >0;)if(s=r[i],!yZ(t,e,n,s)||(o=Z6(t,s),a=Z6(e,s),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function WUe(t,e){return xh(t.valueOf(),e.valueOf())}function GUe(t,e){return t.source===e.source&&t.flags===e.flags}function tB(t,e,n){var r=t.size;if(r!==e.size)return!1;if(!r)return!0;for(var i=new Array(r),s=t.values(),o,a;(o=s.next())&&!o.done;){for(var c=e.values(),u=!1,d=0;(a=c.next())&&!a.done;){if(!i[d]&&n.equals(o.value,a.value,o.value,a.value,t,e,n)){u=i[d]=!0;break}d++}if(!u)return!1}return!0}function qUe(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function YUe(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function yZ(t,e,n,r){return(r===FUe||r===DUe||r===LUe)&&(t.$$typeof||e.$$typeof)?!0:IUe(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}var XUe="[object Arguments]",KUe="[object Boolean]",QUe="[object Date]",ZUe
5782="[object Error]",JUe="[object Map]",e6e="[object Number]",t6e="[object Object]",n6e="[object RegExp]",r6e="[object Set]",i6e="[object String]",s6e="[object URL]",o6e=Array.isArray,nB=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,rB=Object.assign,a6e=Object.prototype.toString.call.bind(Object.prototype.toString);function l6e(t){var e=t.areArraysEqual,n=t.areDatesEqual,r=t.areErrorsEqual,i=t.areFunctionsEqual,s=t.areMapsEqual,o=t.areNumbersEqual,a=t.areObjectsEqual,c=t.arePrimitiveWrappersEqual,u=t.areRegExpsEqual,d=t.areSetsEqual,h=t.areTypedArraysEqual,f=t.areUrlsEqual;return function(v,p,g){if(v===p)return!0;if(v==null||p==null)return!1;var y=typeof v;if(y!==typeof p)return!1;if(y!=="object")return y==="number"?o(v,p,g):y==="function"?i(v,p,g):!1;var b=v.constructor;if(b!==p.constructor)return!1;if(b===Object)return a(v,p,g);if(o6e(v))return e(v,p,g);if(nB!=null&&nB(v))return h(v,p,g);if(b===Date)return n(v,p,g);if(b===RegExp)return u(v,p,g);if(b===Map)return s(v,p,g);if(b===Set)return d(v,p,g);var x=a6e(v);return x===QUe?n(v,p,g):x===n6e?u(v,p,g):x===JUe?s(v,p,g):x===r6e?d(v,p,g):x===t6e?typeof v.then!="function"&&typeof p.then!="function"&&a(v,p,g):x===s6e?f(v,p,g):x===ZUe?r(v,p,g):x===XUe?a(v,p,g):x===KUe||x===e6e||x===i6e?c(v,p,g):!1}}function c6e(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,i={areArraysEqual:r?xg:UUe,areDatesEqual:BUe,areErrorsEqual:zUe,areFunctionsEqual:$Ue,areMapsEqual:r?K6(eB,xg):eB,areNumbersEqual:HUe,areObjectsEqual:r?xg:VUe,arePrimitiveWrappersEqual:WUe,areRegExpsEqual:GUe,areSetsEqual:r?K6(tB,xg):tB,areTypedArraysEqual:r?xg:qUe,areUrlsEqual:YUe};if(n&&(i=rB({},i,n(i))),e){var s=cb(i.areArraysEqual),o=cb(i.areMapsEqual),a=cb(i.areObjectsEqual),c=cb(i.areSetsEqual);i=rB({},i,{areArraysEqual:s,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:c})}return i}function u6e(t){return function(e,n,r,i,s,o,a){return t(e,n,a)}}function d6e(t){var e=t.circular,n=t.comparator,r=t.createState,i=t.equals,s=t.strict;if(r)return function(c,u){var d=r(),h=d.cache,f=h===void 0?e?new WeakMap:void 0:h,m=d.meta;return n(c,u,{cache:f,equals:i,meta:m,strict:s})};if(e)return function(c,u){return n(c,u,{cache:new WeakMap,equals:i,meta:void 0,strict:s})};var o={cache:void 0,equals:i,meta:void 0,strict:s};return function(c,u){return n(c,u,o)}}var h6e=xu();xu({strict:!0});xu({circular:!0});xu({circular:!0,strict:!0});xu({createInternalComparator:function(){return xh}});xu({strict:!0,createInternalComparator:function(){return xh}});xu({circular:!0,createInternalComparator:function(){return xh}});xu({circular:!0,createInternalComparator:function(){return xh},strict:!0});function xu(t){t===void 0&&(t={});var e=t.circular,n=e===void 0?!1:e,r=t.createInternalComparator,i=t.createState,s=t.strict,o=s===void 0?!1:s,a=c6e(t),c=l6e(a),u=r?r(c):u6e(c);return d6e({circular:n,comparator:c,createState:i,equals:u,strict:o})}function f6e(t){typeof requestAnimationFrame<"u"&&requestAnimationFrame(t)}function iB(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(s){n<0&&(n=s),s-n>e?(t(s),n=-1):f6e(i)};requestAnimationFrame(r)}function TP(t){"@babel/helpers - typeof";return TP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TP(t)}function m6e(t){return y6e(t)||v6e(t)||g6e(t)||p6e()}function p6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5783In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g6e(t,e){if(t){if(typeof t=="string")return sB(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sB(t,e)}}function sB(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v6e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function y6e(t){if(Array.isArray(t))return t}function x6e(){var t={},e=function(){return null}
vendor: 49,196 bytes, lines 5783-5800
5783,n=!1,r=function i(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var o=s,a=m6e(o),c=a[0],u=a.slice(1);if(typeof c=="number"){iB(i.bind(null,u),c);return}i(c),iB(i.bind(null,u));return}TP(s)==="object"&&(t=s,e(t)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return e=s,function(){e=function(){return null}}}}}function Jy(t){"@babel/helpers - typeof";return Jy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jy(t)}function oB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function aB(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oB(Object(n),!0).forEach(function(r){xZ(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xZ(t,e,n){return e=b6e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b6e(t){var e=w6e(t,"string");return Jy(e)==="symbol"?e:String(e)}function w6e(t,e){if(Jy(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Jy(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var _6e=function(e,n){return[Object.keys(e),Object.keys(n)].reduce(function(r,i){return r.filter(function(s){return i.includes(s)})})},S6e=function(e){return e},E6e=function(e){return e.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Iv=function(e,n){return Object.keys(n).reduce(function(r,i){return aB(aB({},r),{},xZ({},i,e(i,n[i])))},{})},lB=function(e,n,r){return e.map(function(i){return"".concat(E6e(i)," ").concat(n,"ms ").concat(r)}).join(",")};function T6e(t,e){return M6e(t)||C6e(t,e)||bZ(t,e)||A6e()}function A6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5784In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C6e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function M6e(t){if(Array.isArray(t))return t}function R6e(t){return N6e(t)||j6e(t)||bZ(t)||P6e()}function P6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5785In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bZ(t,e){if(t){if(typeof t=="string")return AP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AP(t,e)}}function j6e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function N6e(t){if(Array.isArray(t))return AP(t)}function AP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c_=1e-4,wZ=function(e,n){return[0,3*e,3*n-6*e,3*e-3*n+1]},_Z=function(e,n){return e.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},cB=function(e,n){return function(r){var i=wZ(e,n);return _Z(i,r)}},k6e=function(e,n){return function(r){var i=wZ(e,n),s=[].concat(R6e(i.map(function(o,a){return o*a}).slice(1)),[0]);return _Z(s,r)}},uB=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],s=n[1],o=n[2],a=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,s=0,o=1,a=1;break;case"ease":i=.25,s=.1,o=.25,a=1;break;case"ease-in":i=.42,s=0,o=1,a=1;break;case"ease-out":i=.42,s=0,o=.58,a=1;break;case"ease-in-out":i=0,s=0,o=.58,a=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),d=T6e(u,4);i=d[0],s=d[1],o=d[2],a=d[3]}}}var h=cB(i,o),f=cB(s,a),m=k6e(i,o),v=function(y){return y>1?1:y<0?0:y},p=function(y){for(var b=y>1?1:y,x=b,w=0;w<8;++w){var _=h(x)-b,S=m(x);if(Math.abs(_-b)<c_||S<c_)return f(x);x=v(x-_/S)}return f(x)};return p.isStepper=!1,p},O6e=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.stiff,r=n===void 0?100:n,i=e.damping,s=i===void 0?8:i,o=e.dt,a=o===void 0?17:o,c=function(d,h,f){var m=-(d-h)*r,v=f*s,p=f+(m-v)*a/1e3,g=f*a/1e3+d;return Math.abs(g-h)<c_&&Math.abs(p)<c_?[h,0]:[g,p]};return c.isStepper=!0,c.dt=a,c},I6e=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return uB(i);case"spring":return O6e();default:if(i.split("(")[0]==="cubic-bezier")return uB(i)}return typeof i=="function"?i:null};function e0(t){"@babel/helpers - typeof";return e0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e0(t)}function dB(t){return F6e(t)||D6e(t)||SZ(t)||L6e()}function L6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5786In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D6e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function F6e(t){if(Array.isArray(t))return MP(t)}function hB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ir(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hB(Object(n),!0).forEach(function(r){CP(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function CP(t,e,n){return e=U6e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U6e(t){var e=B6e(t,"string");return e0(e)==="symbol"?e:String(e)}function B6e(t,e){if(e0(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(e0(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function z6e(t,e){return V6e(t)||H6e(t,e)||SZ(t,e)||$6e()}function $6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5787In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SZ(t,e){if(t){if(typeof t=="string")return MP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MP(t,e)}}function MP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function H6e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function V6e(t){if(Array.isArray(t))return t}var u_=function(e,n,r){return e+(n-e)*r},RP=function(e){var n=e.from,r=e.to;return n!==r},W6e=function t(e,n,r){var i=Iv(function(s,o){if(RP(o)){var a=e(o.from,o.to,o.velocity),c=z6e(a,2),u=c[0],d=c[1];return Ir(Ir({},o),{},{from:u,velocity:d})}return o},n);return r<1?Iv(function(s,o){return RP(o)?Ir(Ir({},o),{},{velocity:u_(o.velocity,i[s].velocity,r),from:u_(o.from,i[s].from,r)}):o},n):t(e,i,r-1)};const G6e=function(t,e,n,r,i){var s=_6e(t,e),o=s.reduce(function(g,y){return Ir(Ir({},g),{},CP({},y,[t[y],e[y]]))},{}),a=s.reduce(function(g,y){return Ir(Ir({},g),{},CP({},y,{from:t[y],velocity:0,to:e[y]}))},{}),c=-1,u,d,h=function(){return null},f=function(){return Iv(function(y,b){return b.from},a)},m=function(){return!Object.values(a).filter(RP).length},v=function(y){u||(u=y);var b=y-u,x=b/n.dt;a=W6e(n,a,x),i(Ir(Ir(Ir({},t),e),f())),u=y,m()||(c=requestAnimationFrame(h))},p=function(y){d||(d=y);var b=(y-d)/r,x=Iv(function(_,S){return u_.apply(void 0,dB(S).concat([n(b)]))},o);if(i(Ir(Ir(Ir({},t),e),x)),b<1)c=requestAnimationFrame(h);else{var w=Iv(function(_,S){return u_.apply(void 0,dB(S).concat([n(1)]))},o);i(Ir(Ir(Ir({},t),e),w))}};return h=n.isStepper?v:p,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(c)}}};function Ym(t){"@babel/helpers - typeof";return Ym=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ym(t)}var q6e=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Y6e(t,e){if(t==null)return{};var n=X6e(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function X6e(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function eA(t){return J6e(t)||Z6e(t)||Q6e(t)||K6e()}function K6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5788In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q6e(t,e){if(t){if(typeof t=="string")return PP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PP(t,e)}}function Z6e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function J6e(t){if(Array.isArray(t))return PP(t)}function PP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fB(Object(n),!0).forEach(function(r){Xg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Xg(t,e,n){return e=EZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eBe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tBe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,EZ(r.key),r)}}function nBe(t,e,n){return e&&tBe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function EZ(t){var e=rBe(t,"string");return Ym(e)==="symbol"?e:String(e)}function rBe(t,e){if(Ym(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ym(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function iBe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jP(t,e)}function jP(t,e){return jP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},jP(t,e)}function sBe(t){var e=oBe();return function(){var r=d_(t),i;if(e){var s=d_(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return NP(this,i)}}function NP(t,e){if(e&&(Ym(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kP(t)}function kP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oBe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d_(t){return d_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},d_(t)}var nu=function(t){iBe(n,t);var e=sBe(n);function n(r,i){var s;eBe(this,n),s=e.call(this,r,i);var o=s.props,a=o.isActive,c=o.attributeName,u=o.from,d=o.to,h=o.steps,f=o.children,m=o.duration;if(s.handleStyleChange=s.handleStyleChange.bind(kP(s)),s.changeStyle=s.changeStyle.bind(kP(s)),!a||m<=0)return s.state={style:{}},typeof f=="function"&&(s.state={style:d}),NP(s);if(h&&h.length)s.state={style:h[0].style};else if(u){if(typeof f=="function")return s.state={style:u},NP(s);s.state={style:c?Xg({},c,u):u}}else s.state={style:{}};return s}return nBe(n,[{key:"componentDidMount",value:function(){var i=this.props,s=i.isActive,o=i.canBegin;this.mounted=!0,!(!s||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var s=this.props,o=s.isActive,a=s.canBegin,c=s.attributeName,u=s.shouldReAnimate,d=s.to,h=s.from,f=this.state.style;if(a){if(!o){var m={style:c?Xg({},c,d):d};this.state&&f&&(c&&f[c]!==d||!c&&f!==d)&&this.setState(m);return}if(!(h6e(i.to,d)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=v||u?h:i.to;if(this.state&&f){var g={style:c?Xg({},c,p):p};(c&&f[c]!==p||!c&&f!==p)&&this.setState(g)}this.runAnimation(bo(bo({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var s=this,o=i.from,a=i.to,c=i.duration,u=i.easing,d=i.begin,h=i.onAnimationEnd,f=i.onAnimationStart,m=G6e(o,a,I6e(u),c,this.changeStyle),v=function(){s.stopJSAnimation=m()};this.manager.start([f,d,v,c,h])}},{key:"runStepAnimation",value:function(i){var s=this,o=i.steps,a=i.begin,c=i.onAnimationStart,u=o[0],d=u.style,h=u.duration,f=h===void 0?0:h,m=function(p,g,y){if(y===0)return p;var b=g.duration,x=g.easing,w=x===void 0?"ease":x,_=g.style,S=g.properties,T=g.onAnimationEnd,M=y>0?o[y-1]:g,A=S||Object.keys(_);if(typeof w=="function"||w==="spring")return[].concat(eA(p),[s.runJSAnimation.bind(s,{from:M.style,to:_,duration:b,easing:w}),b]);var C=lB(A,b,w),R=bo(bo(bo({},M.style),_),{},{transition:C});return[].concat(eA(p),[R,b,T]).filter(S6e)};return this.manager.start([c].concat(eA(o.reduce(m,[d,Math.max(f,a)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=x6e());var s=i.begin,o=i.duration,a=i.attributeName,c=i.to,u=i.easing,d=i.onAnimationStart,h=i.onAnimationEnd,f=i.steps,m=i.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof u=="function"||typeof m=="function"||u==="spring"){this.runJSAnimation(i);return}if(f.length>1){this.runStepAnimation(i);return}var p=a?Xg({},a,c):c,g=lB(Object.keys(p),o,u);v.start([d,s,bo(bo({},p),{},{transition:g}),o,h])}},{key:"render",value:function(){var i=this.props,s=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var a=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=Y6e(i,q6e),u=E.Children.count(s),d=this.state.style;if(typeof s=="function")return s(d);if(!a||u===0||o<=0)return s;var h=function(m){var v=m.props,p=v.style,g=p===void 0?{}:p,y=v.className,b=E.cloneElement(m,bo(bo({},c),{},{style:bo(bo({},g),d),className:y}));return b};return u===1?h(E.Children.only(s)):V.createElement("div",null,E.Children.map(s,function(f){return h(f)}))}}]),n}(E.PureComponent);nu.displayName="Animate";nu.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};nu.propTypes={from:dt.oneOfType([dt.object,dt.string]),to:dt.oneOfType([dt.object,dt.string]),attributeName:dt.string,duration:dt.number,begin:dt.number,easing:dt.oneOfType([dt.string,dt.func]),steps:dt.arrayOf(dt.shape({duration:dt.number.isRequired,style:dt.object.isRequired,easing:dt.oneOfType([dt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),dt.func]),properties:dt.arrayOf("string"),onAnimationEnd:dt.func})),children:dt.oneOfType([dt.node,dt.func]),isActive:dt.bool,canBegin:dt.bool,onAnimationEnd:dt.func,shouldReAnimate:dt.bool,onAnimationStart:dt.func,onAnimationReStart:dt.func};function t0(t){"@babel/helpers - typeof";return t0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t0(t)}function h_(){return h_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h_.apply(this,arguments)}function aBe(t,e){return dBe(t)||uBe(t,e)||cBe(t,e)||lBe()}function lBe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5789In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cBe(t,e){if(t){if(typeof t=="string")return mB(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mB(t,e)}}function mB(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function uBe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function dBe(t){if(Array.isArray(t))return t}function pB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function gB(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pB(Object(n),!0).forEach(function(r){hBe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hBe(t,e,n){return e=fBe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fBe(t){var e=mBe(t,"string");return t0(e)=="symbol"?e:e+""}function mBe(t,e){if(t0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(t0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vB=function(e,n,r,i,s){var o=Math.min(Math.abs(r)/2,Math.abs(i)/2),a=i>=0?1:-1,c=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,d;if(o>0&&s instanceof Array){for(var h=[0,0,0,0],f=0,m=4;f<m;f++)h[f]=s[f]>o?o:s[f];d="M".concat(e,",").concat(n+a*h[0]),h[0]>0&&(d+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(u,",").concat(e+c*h[0],",").concat(n)),d+="L ".concat(e+r-c*h[1],",").concat(n),h[1]>0&&(d+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(u,`, 5790 `).concat(e+r,",").concat(n+a*h[1])),d+="L ".concat(e+r,",").concat(n+i-a*h[2]),h[2]>0&&(d+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(u,`, 5791 `).concat(e+r-c*h[2],",").concat(n+i)),d+="L ".concat(e+c*h[3],",").concat(n+i),h[3]>0&&(d+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(u,`, 5792 `).concat(e,",").concat(n+i-a*h[3])),d+="Z"}else if(o>0&&s===+s&&s>0){var v=Math.min(o,s);d="M ".concat(e,",").concat(n+a*v,` 5793 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(e+c*v,",").concat(n,` 5794 L `).concat(e+r-c*v,",").concat(n,` 5795 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(e+r,",").concat(n+a*v,` 5796 L `).concat(e+r,",").concat(n+i-a*v,` 5797 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(e+r-c*v,",").concat(n+i,` 5798 L `).concat(e+c*v,",").concat(n+i,` 5799 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(e,",").concat(n+i-a*v," Z")}else d="M ".concat(e,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return d},pBe=function(e,n){if(!e||!n)return!1;var r=e.x,i=e.y,s=n.x,o=n.y,a=n.width,c=n.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(s,s+a),d=Math.max(s,s+a),h=Math.min(o,o+c),f=Math.max(o,o+c);return r>=u&&r<=d&&i>=h&&i<=f}return!1},gBe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},C3=function(e){var n=gB(gB({},gBe),e),r=E.useRef(),i=E.useState(-1),s=aBe(i,2),o=s[0],a=s[1];E.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&a(w)}catch{}},[]);var c=n.x,u=n.y,d=n.width,h=n.height,f=n.radius,m=n.className,v=n.animationEasing,p=n.animationDuration,g=n.animationBegin,y=n.isAnimationActive,b=n.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||h!==+h||d===0||h===0)return null;var x=Gt("recharts-rectangle",m);return b?V.createElement(nu,{canBegin:o>0,from:{width:d,height:h,x:c,y:u},to:{width:d,height:h,x:c,y:u},duration:p,animationEasing:v,isActive:b},function(w){var _=w.width,S=w.height,T=w.x,M=w.y;return V.createElement(nu,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:p,isActive:y,easing:v},V.createElement("path",h_({},Jt(n,!0),{className:x,d:vB(T,M,_,S,f),ref:r})))}):V.createElement("path",h_({},Jt(n,!0),{className:x,d:vB(c,u,d,h,f)}))};function OP(){return OP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},OP.apply(this,arguments)}var TZ=function(e){var n=e.cx,r=e.cy,i=e.r,s=e.className,o=Gt("recharts-dot",s);return n===+n&&r===+r&&i===+i?E.createElement("circle",OP({},Jt(e,!1),j1(e),{className:o,cx:n,cy:r,r:i})):null};function n0(t){"@babel/helpers - typeof";return n0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n0(t)}var vBe=["x","y","top","left","width","height","className"];function IP(){return IP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},IP.apply(this,arguments)}function yB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function yBe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yB(Object(n),!0).forEach(function(r){xBe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xBe(t,e,n){return e=bBe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bBe(t){var e=wBe(t,"string");return n0(e)=="symbol"?e:e+""}function wBe(t,e){if(n0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(n0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _Be(t,e){if(t==null)return{};var n=SBe(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function SBe(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var EBe=function(e,n,r,i,s,o){return"M".concat(e,",").concat(s,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},TBe=function(e){var n=e.x,r=n===void 0?0:n,i=e.y,s=i===void 0?0:i,o=e.top,a=o===void 0?0:o,c=e.left,u=c===void 0?0:c,d=e.width,h=d===void 0?0:d,f=e.height,m=f===void 0?0:f,v=e.className,p=_Be(e,vBe),g=yBe({x:r,y:s,top:a,left:u,width:h,height:m},p);return!Le(r)||!Le(s)||!Le(h)||!Le(m)||!Le(a)||!Le(u)?null:V.createElement("path",IP({},Jt(g,!0),{className:Gt("recharts-cross",v),d:EBe(r,s,h,m,a,u)}))},ABe=BK,CBe=ABe(Object.getPrototypeOf,Object),MBe=CBe,RBe=Il,PBe=MBe,jBe=Ll,NBe="[object Object]",kBe=Function.prototype,OBe=Object.prototype,AZ=kBe.toString,IBe=OBe.hasOwnProperty,LBe=AZ.call(Object);function DBe(t){if(!jBe(t)||RBe(t)!=NBe)return!1;var e=PBe(t);if(e===null)return!0;var n=IBe.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&AZ.call(n)==LBe}var FBe=DBe;const UBe=tn(FBe);var BBe=Il,zBe=Ll,$Be="[object Boolean]";function HBe(t){return t===!0||t===!1||zBe(t)&&BBe(t)==$Be}var VBe=HBe;const WBe=tn(VBe);function r0(t){"@babel/helpers - typeof";return r0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r0(t)}function f_(){return f_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f_.apply(this,arguments)}function GBe(t,e){return KBe(t)||XBe(t,e)||YBe(t,e)||qBe()}function qBe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5800In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YBe(t,e){if(t){if(typeof t=="string")return xB(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xB(t,e)}}function xB(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function XBe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function KBe(t){if(Array.isArray(t))return t}function bB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function wB(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bB(Object(n),!0).forEach(function(r){QBe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QBe(t,e,n){return e=ZBe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZBe(t){var e=JBe(t,"string");return r0(e)=="symbol"?e:e+""}function JBe(t,e){if(r0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(r0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var _B=function(e,n,r,i,s){var o=r-i,a;return a="M ".concat(e,",").concat(n),a+="L ".concat(e+r,",").concat(n),a+="L ".concat(e+r-o/2,",").concat(n+s),a+="L ".concat(e+r-o/2-i,",").concat(n+s),a+="L ".concat(e,",").concat(n," Z"),a},eze={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},tze=function(e){var n=wB(wB({},eze),e),r=E.useRef(),i=E.useState(-1),s=GBe(i,2),o=s[0],a=s[1];E.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&a(x)}catch{}},[]);var c=n.x,u=n.y,d=n.upperWidth,h=n.lowerWidth,f=n.height,m=n.className,v=n.animationEasing,p=n.animationDuration,g=n.animationBegin,y=n.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||h!==+h||f!==+f||d===0&&h===0||f===0)return null;var b=Gt("recharts-trapezoid",m);return y?V.createElement(nu,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:f,x:c,y:u},to:{upperWidth:d,lowerWidth:h,height:f,x:c,y:u},duration:p,animationEasing:v,isActive:y},function(x){var w=x.upperWidth,_=x.lowerWidth,S=x.height,T=x.x,M=x.y;return V.createElement(nu,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:p,easing:v},V.createElement("path",f_({},Jt(n,!0),{className:b,d:_B(T,M,w,_,S),ref:r})))}):V.createElement("g",null,V.createElement("path",f_({},Jt(n,!0),{className:b,d:_B(c,u,d,h,f)})))},nze=["option","shapeType","propTransformer","activeClassName","isActive"];function i0(t){"@babel/helpers - typeof";return i0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i0(t)}function rze(t,e){if(t==null)return{};var n=ize(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ize(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function SB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function m_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?SB(Object(n),!0).forEach(function(r){sze(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):SB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function sze(t,e,n){return e=oze(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oze(t){var e=aze(t,"string");return i0(e)=="symbol"?e:e+""}function aze(t,e){if(i0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(i0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lze(t,e){return m_(m_({},e),t)}function cze(t,e){return t==="symbols"}function EB(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return V.createElement(C3,n);case"trapezoid":return V.createElement(tze,n);case"sector":return V.createElement(vZ,n);case"symbols":if(cze(e))return V.createElement(WO,n);break;default:return null}}function uze(t){return E.isValidElement(t)?t.props:t}function dze(t){var e=t.option,n=t.shapeType,r=t.propTransformer,i=r===void 0?lze:r,s=t.activeClassName,o=s===void 0?"recharts-active-shape":s,a=t.isActive,c=rze(t,nze),u;if(E.isValidElement(e))u=E.cloneElement(e,m_(m_({},c),uze(e)));else if(Nt(e))u=e(c);else if(UBe(e)&&!WBe(e)){var d=i(e,c);u=V.createElement(EB,{shapeType:n,elementProps:d})}else{var h=c;u=V.createElement(EB,{shapeType:n,elementProps:h})}return a?V.createElement(Rr,{className:o},u):u}function S2(t,e){return e!=null&&"trapezoids"in t.props}function E2(t,e){return e!=null&&"sectors"in t.props}function s0(t,e){return e!=null&&"points"in t.props}function hze(t,e){var n,r,i=t.x===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.x)||t.x===e.x,s=t.y===(e==null||(r=e.labelViewBox)===null||r===void 0?void 0:r.y)||t.y===e.y;return i&&s}function fze(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function mze(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}function pze(t,e){var n;return S2(t,e)?n=hze:E2(t,e)?n=fze:s0(t,e)&&(n=mze),n}function gze(t,e){var n;return S2(t,e)?n="trapezoids":E2(t,e)?n="sectors":s0(t,e)&&(n="points"),n}function vze(t,e){if(S2(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(E2(t,e)){var r;return(r=e.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return s0(t,e)?e.payload:{}}function yze(t){var e=t.activeTooltipItem,n=t.graphicalItem,r=t.itemData,i=gze(n,e),s=vze(n,e),o=r.filter(function(c,u){var d=S3(s,c),h=n.props[i].filter(function(v){var p=pze(n,e);return p(v,e)}),f=n.props[i].indexOf(h[h.length-1]),m=u===f;return d&&m}),a=r.indexOf(o[o.length-1]);return a}var xze=Math.ceil,bze=Math.max;function wze(t,e,n,r){for(var i=-1,s=bze(xze((e-t)/(n||1)),0),o=Array(s);s--;)o[r?s:++i]=t,t+=n;return o}var _ze=wze,Sze=sQ,TB=1/0,Eze=17976931348623157e292;function Tze(t){if(!t)return t===0?t:0;if(t=Sze(t),t===TB||t===-TB){var e=t<0?-1:1;return e*Eze}return t===t?t:0}var CZ=Tze,Aze=_ze,Cze=d2,tA=CZ;function Mze(t){return function(e,n,r){return r&&typeof r!="number"&&Cze(e,n,r)&&(n=r=void 0),e=tA(e),n===void 0?(n=e,e=0):n=tA(n),r=r===void 0?e<n?1:-1:tA(r),Aze(e,n,r,t)}}var Rze=Mze,Pze=Rze,jze=Pze(),Nze=jze;const p_=tn(Nze);function o0(t){"@babel/helpers - typeof";return o0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o0(t)}function AB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function CB(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?AB(Object(n),!0).forEach(function(r){MZ(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):AB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function MZ(t,e,n){return e=kze(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kze(t){var e=Oze(t,"string");return o0(e)=="symbol"?e:e+""}function Oze(t,e){if(o0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(o0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ize=["Webkit","Moz","O","ms"],Lze=function(e,n){var r=e.replace(/(\w)/,function(s){return s.toUpperCase()}),i=Ize.reduce(function(s,o){return CB(CB({},s),{},MZ({},o+r,n))},{});return i[e]=n,i};function Xm(t){"@babel/helpers - typeof";return Xm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xm(t)}function g_(){return g_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g_.apply(this,arguments)}function MB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function nA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?MB(Object(n),!0).forEach(function(r){ls(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):MB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Dze(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RB(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,PZ(r.key),r)}}function Fze(t,e,n){return e&&RB(t.prototype,e),n&&RB(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Uze(t,e,n){return e=v_(e),Bze(t,RZ()?Reflect.construct(e,n||[],v_(t).constructor):e.apply(t,n))}function Bze(t,e){if(e&&(Xm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zze(t)}function zze(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function RZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RZ=function(){return!!t})()}function v_(t){return v_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v_(t)}function $ze(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&LP(t,e)}function LP(t,e){return LP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LP(t,e)}function ls(t,e,n){return e=PZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function PZ(t){var e=Hze(t,"string");return Xm(e)=="symbol"?e:e+""}function Hze(t,e){if(Xm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Xm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Vze=function(e){var n=e.data,r=e.startIndex,i=e.endIndex,s=e.x,o=e.width,a=e.travellerWidth;if(!n||!n.length)return{};var c=n.length,u=kv().domain(p_(0,c)).range([s,s+o-a]),d=u.domain().map(function(h){return u(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:d}},PB=function(e){return e.changedTouches&&!!e.changedTouches.length},Km=function(t){function e(n){var r;return Dze(this,e),r=Uze(this,e,[n]),ls(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),ls(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),ls(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,s=i.endIndex,o=i.onDragEnd,a=i.startIndex;o==null||o({endIndex:s,startIndex:a})}),r.detachDragEndListener()}),ls(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),ls(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),ls(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),ls(r,"handleSlideDragStart",function(i){var s=PB(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return $ze(e,t),Fze(e,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,s=r.endX,o=this.state.scaleValues,a=this.props,c=a.gap,u=a.data,d=u.length-1,h=Math.min(i,s),f=Math.max(i,s),m=e.getIndexInRange(o,h),v=e.getIndexInRange(o,f);return{startIndex:m-m%c,endIndex:v===d?d:v-v%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,s=i.data,o=i.tickFormatter,a=i.dataKey,c=Ia(s[r],a,r);return Nt(o)?o(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,s=i.slideMoveStartX,o=i.startX,a=i.endX,c=this.props,u=c.x,d=c.width,h=c.travellerWidth,f=c.startIndex,m=c.endIndex,v=c.onChange,p=r.pageX-s;p>0?p=Math.min(p,u+d-h-a,u+d-h-o):p<0&&(p=Math.max(p,u-o,u-a));var g=this.getIndex({startX:o+p,endX:a+p});(g.startIndex!==f||g.endIndex!==m)&&v&&v(g),this.setState({startX:o+p,endX:a+p,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var s=PB(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,s=i.brushMoveStartX,o=i.movingTravellerId,a=i.endX,c=i.startX,u=this.state[o],d=this.props,h=d.x,f=d.width,m=d.travellerWidth,v=d.onChange,p=d.gap,g=d.data,y={startX:this.state.startX,endX:this.state.endX},b=r.pageX-s;b>0?b=Math.min(b,h+f-m-u):b<0&&(b=Math.max(b,h-u)),y[o]=u+b;var x=this.getIndex(y),w=x.startIndex,_=x.endIndex,S=function(){var M=g.length-1;return o==="startX"&&(a>c?w%p===0:_%p===0)||a<c&&_===M||o==="endX"&&(a>c?_%p===0:w%p===0)||a>c&&_===M};this.setState(ls(ls({},o,u+b),"brushMoveStartX",r.pageX),function(){v&&S()&&v(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var s=this,o=this.state,a=o.scaleValues,c=o.startX,u=o.endX,d=this.state[i],h=a.indexOf(d);if(h!==-1){var f=h+r;if(!(f===-1||f>=a.length)){var m=a[f];i==="startX"&&m>=u||i==="endX"&&m<=c||this.setState(ls({},i,m),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,s=r.y,o=r.width,a=r.height,c=r.fill,u=r.stroke;return V.createElement("rect",{stroke:u,fill:c,x:i,y:s,width:o,height:a})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,s=r.y,o=r.width,a=r.height,c=r.data,u=r.children,d=r.padding,h=E.Children.only(u);return h?V.cloneElement(h,{x:i,y:s,width:o,height:a,margin:d,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var s,o,a=this,c=this.props,u=c.y,d=c.travellerWidth,h=c.height,f=c.traveller,m=c.ariaLabel,v=c.data,p=c.startIndex,g=c.endIndex,y=Math.max(r,this.props.x),b=nA(nA({},Jt(this.props,!1)),{},{x:y,y:u,width:d,height:h}),x=m||"Min value: ".concat((s=v[p])===null||s===void 0?void 0:s.name,", Max value: ").concat((o=v[g])===null||o===void 0?void 0:o.name);return V.createElement(Rr,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),a.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(f,b))}},{key:"renderSlide",value:function(r,i){var s=this.props,o=s.y,a=s.height,c=s.stroke,u=s.travellerWidth,d=Math.min(r,i)+u,h=Math.max(Math.abs(i-r)-u,0);return V.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:d,y:o,width:h,height:a})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,s=r.endIndex,o=r.y,a=r.height,c=r.travellerWidth,u=r.stroke,d=this.state,h=d.startX,f=d.endX,m=5,v={pointerEvents:"none",fill:u};return V.createElement(Rr,{className:"recharts-brush-texts"},V.createElement(G1,g_({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,f)-m,y:o+a/2},v),this.getTextOfTick(i)),V.createElement(G1,g_({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,f)+c+m,y:o+a/2},v),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,i=r.data,s=r.className,o=r.children,a=r.x,c=r.y,u=r.width,d=r.height,h=r.alwaysShowText,f=this.state,m=f.startX,v=f.endX,p=f.isTextActive,g=f.isSlideMoving,y=f.isTravellerMoving,b=f.isTravellerFocused;if(!i||!i.length||!Le(a)||!Le(c)||!Le(u)||!Le(d)||u<=0||d<=0)return null;var x=Gt("recharts-brush",s),w=V.Children.count(o)===1,_=Lze("userSelect","none");return V.createElement(Rr,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(m,v),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(v,"endX"),(p||g||y||b||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,s=r.y,o=r.width,a=r.height,c=r.stroke,u=Math.floor(s+a/2)-1;return V.createElement(V.Fragment,null,V.createElement("rect",{x:i,y:s,width:o,height:a,fill:c,stroke:"none"}),V.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var s;return V.isValidElement(r)?s=V.cloneElement(r,i):Nt(r)?s=r(i):s=e.renderDefaultTraveller(i),s}},{key:"getDerivedStateFromProps",value:function(r,i){var s=r.data,o=r.width,a=r.x,c=r.travellerWidth,u=r.updateId,d=r.startIndex,h=r.endIndex;if(s!==i.prevData||u!==i.prevUpdateId)return nA({prevData:s,prevTravellerWidth:c,prevUpdateId:u,prevX:a,prevWidth:o},s&&s.length?Vze({data:s,width:o,x:a,travellerWidth:c,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||a!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([a,a+o-c]);var f=i.scale.domain().map(function(m){return i.scale(m)});return{prevData:s,prevTravellerWidth:c,prevUpdateId:u,prevX:a,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:f}}return null}},{key:"getIndexInRange",value:function(r,i){for(var s=r.length,o=0,a=s-1;a-o>1;){var c=Math.floor((o+a)/2);r[c]>i?a=c:o=c}return i>=r[a]?a:o}}])}(E.PureComponent);ls(Km,"displayName","Brush");ls(Km,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Wze=ZO;function Gze(t,e){var n;return Wze(t,function(r,i,s){return n=e(r,i,s),!n}),!!n}var qze=Gze,Yze=NK,Xze=gu,Kze=qze,Qze=is,Zze=d2;function Jze(t,e,n){var r=Qze(t)?Yze:Kze;return n&&Zze(t,e,n)&&(e=void 0),r(t,Xze(e))}var e8e=Jze;
5800const t8e=tn(e8e);var Pa=function(e,n){var r=e.alwaysShow,i=e.ifOverflow;return r&&(i="extendDomain"),i===n},jB=eQ;function n8e(t,e,n){e=="__proto__"&&jB?jB(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var r8e=n8e,i8e=r8e,s8e=ZK,o8e=gu;function a8e(t,e){var n={};return e=o8e(e),s8e(t,function(r,i,s){i8e(n,i,e(r,i,s))}),n}var l8e=a8e;const c8e=tn(l8e);function u8e(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}var d8e=u8e,h8e=ZO;function f8e(t,e){var n=!0;return h8e(t,function(r,i,s){return n=!!e(r,i,s),n}),n}var m8e=f8e,p8e=d8e,g8e=m8e,v8e=gu,y8e=is,x8e=d2;function b8e(t,e,n){var r=y8e(t)?p8e:g8e;return n&&x8e(t,e,n)&&(e=void 0),r(t,v8e(e))}var w8e=b8e;const jZ=tn(w8e);var _8e=["x","y"];function a0(t){"@babel/helpers - typeof";return a0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a0(t)}function DP(){return DP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},DP.apply(this,arguments)}function NB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?NB(Object(n),!0).forEach(function(r){S8e(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):NB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function S8e(t,e,n){return e=E8e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E8e(t){var e=T8e(t,"string");return a0(e)=="symbol"?e:e+""}function T8e(t,e){if(a0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(a0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function A8e(t,e){if(t==null)return{};var n=C8e(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function C8e(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function M8e(t,e){var n=t.x,r=t.y,i=A8e(t,_8e),s="".concat(n),o=parseInt(s,10),a="".concat(r),c=parseInt(a,10),u="".concat(e.height||i.height),d=parseInt(u,10),h="".concat(e.width||i.width),f=parseInt(h,10);return bg(bg(bg(bg(bg({},e),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:d,width:f,name:e.name,radius:e.radius})}function kB(t){return V.createElement(dze,DP({shapeType:"rectangle",propTransformer:M8e,activeClassName:"recharts-active-bar"},t))}var R8e=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof e=="number")return e;var s=Le(r)||ZTe(r);return s?e(r,i):(s||eh(),n)}},P8e=["value","background"],NZ;function Qm(t){"@babel/helpers - typeof";return Qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qm(t)}function j8e(t,e){if(t==null)return{};var n=N8e(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function N8e(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function y_(){return y_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y_.apply(this,arguments)}function OB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
vendor: 99,530 bytes, lines 5800-5810
5800e%2?OB(Object(n),!0).forEach(function(r){Tc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):OB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function k8e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IB(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,OZ(r.key),r)}}function O8e(t,e,n){return e&&IB(t.prototype,e),n&&IB(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function I8e(t,e,n){return e=x_(e),L8e(t,kZ()?Reflect.construct(e,n||[],x_(t).constructor):e.apply(t,n))}function L8e(t,e){if(e&&(Qm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D8e(t)}function D8e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kZ=function(){return!!t})()}function x_(t){return x_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},x_(t)}function F8e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FP(t,e)}function FP(t,e){return FP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},FP(t,e)}function Tc(t,e,n){return e=OZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function OZ(t){var e=U8e(t,"string");return Qm(e)=="symbol"?e:e+""}function U8e(t,e){if(Qm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Qm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bh=function(t){function e(){var n;k8e(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=I8e(this,e,[].concat(i)),Tc(n,"state",{isAnimationFinished:!1}),Tc(n,"id",i2("recharts-bar-")),Tc(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Tc(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return F8e(e,t),O8e(e,[{key:"renderRectanglesStatically",value:function(r){var i=this,s=this.props,o=s.shape,a=s.dataKey,c=s.activeIndex,u=s.activeBar,d=Jt(this.props,!1);return r&&r.map(function(h,f){var m=f===c,v=m?u:o,p=rr(rr(rr({},d),h),{},{isActive:m,option:v,index:f,dataKey:a,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return V.createElement(Rr,y_({className:"recharts-bar-rectangle"},N1(i.props,h,f),{key:"rectangle-".concat(h==null?void 0:h.x,"-").concat(h==null?void 0:h.y,"-").concat(h==null?void 0:h.value,"-").concat(f)}),V.createElement(kB,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,s=i.data,o=i.layout,a=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,d=i.animationEasing,h=i.animationId,f=this.state.prevData;return V.createElement(nu,{begin:c,duration:u,isActive:a,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var v=m.t,p=s.map(function(g,y){var b=f&&f[y];if(b){var x=Lh(b.x,g.x),w=Lh(b.y,g.y),_=Lh(b.width,g.width),S=Lh(b.height,g.height);return rr(rr({},g),{},{x:x(v),y:w(v),width:_(v),height:S(v)})}if(o==="horizontal"){var T=Lh(0,g.height),M=T(v);return rr(rr({},g),{},{y:g.y+g.height-M,height:M})}var A=Lh(0,g.width),C=A(v);return rr(rr({},g),{},{width:C})});return V.createElement(Rr,null,r.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,s=r.isAnimationActive,o=this.state.prevData;return s&&i&&i.length&&(!o||!S3(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,s=i.data,o=i.dataKey,a=i.activeIndex,c=Jt(this.props.background,!1);return s.map(function(u,d){u.value;var h=u.background,f=j8e(u,P8e);if(!h)return null;var m=rr(rr(rr(rr(rr({},f),{},{fill:"#eee"},h),c),N1(r.props,u,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return V.createElement(kB,y_({key:"background-bar-".concat(d),option:r.props.background,isActive:d===a},m))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,o=s.data,a=s.xAxis,c=s.yAxis,u=s.layout,d=s.children,h=qo(d,_2);if(!h)return null;var f=u==="vertical"?o[0].height/2:o[0].width/2,m=function(g,y){var b=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:b,errorVal:Ia(g,y)}},v={clipPath:r?"url(#clipPath-".concat(i,")"):null};return V.createElement(Rr,v,h.map(function(p){return V.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:o,xAxis:a,yAxis:c,layout:u,offset:f,dataPointFormatter:m})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,s=r.data,o=r.className,a=r.xAxis,c=r.yAxis,u=r.left,d=r.top,h=r.width,f=r.height,m=r.isAnimationActive,v=r.background,p=r.id;if(i||!s||!s.length)return null;var g=this.state.isAnimationFinished,y=Gt("recharts-bar",o),b=a&&a.allowDataOverflow,x=c&&c.allowDataOverflow,w=b||x,_=en(p)?this.id:p;return V.createElement(Rr,{className:y},b||x?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(_)},V.createElement("rect",{x:b?u:u-h/2,y:x?d:d-f/2,width:b?h:h*2,height:x?f:f*2}))):null,V.createElement(Rr,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(_,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,_),(!m||g)&&Hc.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])}(E.PureComponent);NZ=bh;Tc(bh,"displayName","Bar");Tc(bh,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!zc.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Tc(bh,"getComposedData",function(t){var e=t.props,n=t.item,r=t.barPosition,i=t.bandSize,s=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.stackedData,d=t.dataStartIndex,h=t.displayedData,f=t.offset,m=bFe(r,n);if(!m)return null;var v=e.layout,p=n.type.defaultProps,g=p!==void 0?rr(rr({},p),n.props):n.props,y=g.dataKey,b=g.children,x=g.minPointSize,w=v==="horizontal"?o:s,_=u?w.scale.domain():null,S=MFe({numericAxis:w}),T=qo(b,lQ),M=h.map(function(A,C){var R,j,k,P,O,L;u?R=wFe(u[d+C],_):(R=Ia(A,y),Array.isArray(R)||(R=[S,R]));var F=R8e(x,NZ.defaultProps.minPointSize)(R[1],C);if(v==="horizontal"){var D,I=[o.scale(R[0]),o.scale(R[1])],N=I[0],G=I[1];j=k6({axis:s,ticks:a,bandSize:i,offset:m.offset,entry:A,index:C}),k=(D=G??N)!==null&&D!==void 0?D:void 0,P=m.size;var q=N-G;if(O=Number.isNaN(q)?0:q,L={x:j,y:o.y,width:P,height:o.height},Math.abs(F)>0&&Math.abs(O)<Math.abs(F)){var W=Ho(O||F)*(Math.abs(F)-Math.abs(O));k-=W,O+=W}}else{var Y=[s.scale(R[0]),s.scale(R[1])],te=Y[0],Q=Y[1];if(j=te,k=k6({axis:o,ticks:c,bandSize:i,offset:m.offset,entry:A,index:C}),P=Q-te,O=m.size,L={x:s.x,y:k,width:s.width,height:O},Math.abs(F)>0&&Math.abs(P)<Math.abs(F)){var X=Ho(P||F)*(Math.abs(F)-Math.abs(P));P+=X}}return rr(rr(rr({},A),{},{x:j,y:k,width:P,height:O,value:u?R:R[1],payload:A,background:L},T&&T[C]&&T[C].props),{},{tooltipPayload:[mZ(n,A)],tooltipPosition:{x:j+P/2,y:k+O/2}})});return rr({data:M,layout:v},f)});function l0(t){"@babel/helpers - typeof";return l0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l0(t)}function B8e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LB(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,IZ(r.key),r)}}function z8e(t,e,n){return e&&LB(t.prototype,e),n&&LB(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function DB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Oo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?DB(Object(n),!0).forEach(function(r){T2(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):DB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function T2(t,e,n){return e=IZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function IZ(t){var e=$8e(t,"string");return l0(e)=="symbol"?e:e+""}function $8e(t,e){if(l0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(l0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var H8e=function(e,n,r,i,s){var o=e.width,a=e.height,c=e.layout,u=e.children,d=Object.keys(n),h={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!hs(u,bh);return d.reduce(function(m,v){var p=n[v],g=p.orientation,y=p.domain,b=p.padding,x=b===void 0?{}:b,w=p.mirror,_=p.reversed,S="".concat(g).concat(w?"Mirror":""),T,M,A,C,R;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var j=y[1]-y[0],k=1/0,P=p.categoricalDomain.sort(tAe);if(P.forEach(function(Y,te){te>0&&(k=Math.min((Y||0)-(P[te-1]||0),k))}),Number.isFinite(k)){var O=k/j,L=p.layout==="vertical"?r.height:r.width;if(p.padding==="gap"&&(T=O*L/2),p.padding==="no-gap"){var F=Zd(e.barCategoryGap,O*L),D=O*L/2;T=D-F-(D-F)/L*F}}}i==="xAxis"?M=[r.left+(x.left||0)+(T||0),r.left+r.width-(x.right||0)-(T||0)]:i==="yAxis"?M=c==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(T||0),r.top+r.height-(x.bottom||0)-(T||0)]:M=p.range,_&&(M=[M[1],M[0]]);var I=yFe(p,s,f),N=I.scale,G=I.realScaleType;N.domain(y).range(M),xFe(N);var q=CFe(N,Oo(Oo({},p),{},{realScaleType:G}));i==="xAxis"?(R=g==="top"&&!w||g==="bottom"&&w,A=r.left,C=h[S]-R*p.height):i==="yAxis"&&(R=g==="left"&&!w||g==="right"&&w,A=h[S]-R*p.width,C=r.top);var W=Oo(Oo(Oo({},p),q),{},{realScaleType:G,x:A,y:C,scale:N,width:i==="xAxis"?r.width:p.width,height:i==="yAxis"?r.height:p.height});return W.bandSize=o_(W,q),!p.hide&&i==="xAxis"?h[S]+=(R?-1:1)*W.height:p.hide||(h[S]+=(R?-1:1)*W.width),Oo(Oo({},m),{},T2({},v,W))},{})},LZ=function(e,n){var r=e.x,i=e.y,s=n.x,o=n.y;return{x:Math.min(r,s),y:Math.min(i,o),width:Math.abs(s-r),height:Math.abs(o-i)}},V8e=function(e){var n=e.x1,r=e.y1,i=e.x2,s=e.y2;return LZ({x:n,y:r},{x:i,y:s})},DZ=function(){function t(e){B8e(this,t),this.scale=e}return z8e(t,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(n)+a}default:return this.scale(n)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],s=r[r.length-1];return i<=s?n>=i&&n<=s:n>=s&&n<=i}}],[{key:"create",value:function(n){return new t(n)}}])}();T2(DZ,"EPS",1e-4);var M3=function(e){var n=Object.keys(e).reduce(function(r,i){return Oo(Oo({},r),{},T2({},i,DZ.create(e[i])))},{});return Oo(Oo({},n),{},{apply:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=s.bandAware,a=s.position;return c8e(i,function(c,u){return n[u].apply(c,{bandAware:o,position:a})})},isInRange:function(i){return jZ(i,function(s,o){return n[o].isInRange(s)})}})};function W8e(t){return(t%180+180)%180}var G8e=function(e){var n=e.width,r=e.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=W8e(i),o=s*Math.PI/180,a=Math.atan(r/n),c=o>a&&o<Math.PI-a?r/Math.sin(o):n/Math.cos(o);return Math.abs(c)},q8e=gu,Y8e=q0,X8e=c2;function K8e(t){return function(e,n,r){var i=Object(e);if(!Y8e(e)){var s=q8e(n);e=X8e(e),n=function(a){return s(i[a],a,i)}}var o=t(e,n,r);return o>-1?i[s?e[o]:o]:void 0}}var Q8e=K8e,Z8e=CZ;function J8e(t){var e=Z8e(t),n=e%1;return e===e?n?e-n:e:0}var e$e=J8e,t$e=GK,n$e=gu,r$e=e$e,i$e=Math.max;function s$e(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=n==null?0:r$e(n);return i<0&&(i=i$e(r+i,0)),t$e(t,n$e(e),i)}var o$e=s$e,a$e=Q8e,l$e=o$e,c$e=a$e(l$e),u$e=c$e;const d$e=tn(u$e);var h$e=nTe(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),R3=E.createContext(void 0),P3=E.createContext(void 0),FZ=E.createContext(void 0),UZ=E.createContext({}),BZ=E.createContext(void 0),zZ=E.createContext(0),$Z=E.createContext(0),FB=function(e){var n=e.state,r=n.xAxisMap,i=n.yAxisMap,s=n.offset,o=e.clipPathId,a=e.children,c=e.width,u=e.height,d=h$e(s);return V.createElement(R3.Provider,{value:r},V.createElement(P3.Provider,{value:i},V.createElement(UZ.Provider,{value:s},V.createElement(FZ.Provider,{value:d},V.createElement(BZ.Provider,{value:o},V.createElement(zZ.Provider,{value:u},V.createElement($Z.Provider,{value:c},a)))))))},f$e=function(){return E.useContext(BZ)},HZ=function(e){var n=E.useContext(R3);n==null&&eh();var r=n[e];return r==null&&eh(),r},m$e=function(){var e=E.useContext(R3);return ac(e)},p$e=function(){var e=E.useContext(P3),n=d$e(e,function(r){return jZ(r.domain,Number.isFinite)});return n||ac(e)},VZ=function(e){var n=E.useContext(P3);n==null&&eh();var r=n[e];return r==null&&eh(),r},g$e=function(){var e=E.useContext(FZ);return e},v$e=function(){return E.useContext(UZ)},j3=function(){return E.useContext($Z)},N3=function(){return E.useContext(zZ)};function Zm(t){"@babel/helpers - typeof";return Zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zm(t)}function y$e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x$e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,GZ(r.key),r)}}function b$e(t,e,n){return e&&x$e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function w$e(t,e,n){return e=b_(e),_$e(t,WZ()?Reflect.construct(e,n||[],b_(t).constructor):e.apply(t,n))}function _$e(t,e){if(e&&(Zm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S$e(t)}function S$e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WZ=function(){return!!t})()}function b_(t){return b_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},b_(t)}function E$e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&UP(t,e)}function UP(t,e){return UP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},UP(t,e)}function UB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function BB(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?UB(Object(n),!0).forEach(function(r){k3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):UB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function k3(t,e,n){return e=GZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function GZ(t){var e=T$e(t,"string");return Zm(e)=="symbol"?e:e+""}function T$e(t,e){if(Zm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Zm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function A$e(t,e){return P$e(t)||R$e(t,e)||M$e(t,e)||C$e()}function C$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5801In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M$e(t,e){if(t){if(typeof t=="string")return zB(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zB(t,e)}}function zB(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R$e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function P$e(t){if(Array.isArray(t))return t}function BP(){return BP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},BP.apply(this,arguments)}var j$e=function(e,n){var r;return V.isValidElement(e)?r=V.cloneElement(e,n):Nt(e)?r=e(n):r=V.createElement("line",BP({},n,{className:"recharts-reference-line-line"})),r},N$e=function(e,n,r,i,s,o,a,c,u){var d=s.x,h=s.y,f=s.width,m=s.height;if(r){var v=u.y,p=e.y.apply(v,{position:o});if(Pa(u,"discard")&&!e.y.isInRange(p))return null;var g=[{x:d+f,y:p},{x:d,y:p}];return c==="left"?g.reverse():g}if(n){var y=u.x,b=e.x.apply(y,{position:o});if(Pa(u,"discard")&&!e.x.isInRange(b))return null;var x=[{x:b,y:h+m},{x:b,y:h}];return a==="top"?x.reverse():x}if(i){var w=u.segment,_=w.map(function(S){return e.apply(S,{position:o})});return Pa(u,"discard")&&t8e(_,function(S){return!e.isInRange(S)})?null:_}return null};function k$e(t){var e=t.x,n=t.y,r=t.segment,i=t.xAxisId,s=t.yAxisId,o=t.shape,a=t.className,c=t.alwaysShow,u=f$e(),d=HZ(i),h=VZ(s),f=g$e();if(!u||!f)return null;vl(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=M3({x:d.scale,y:h.scale}),v=vr(e),p=vr(n),g=r&&r.length===2,y=N$e(m,v,p,g,f,t.position,d.orientation,h.orientation,t);if(!y)return null;var b=A$e(y,2),x=b[0],w=x.x,_=x.y,S=b[1],T=S.x,M=S.y,A=Pa(t,"hidden")?"url(#".concat(u,")"):void 0,C=BB(BB({clipPath:A},Jt(t,!0)),{},{x1:w,y1:_,x2:T,y2:M});return V.createElement(Rr,{className:Gt("recharts-reference-line",a)},j$e(o,C),ri.renderCallByParent(t,V8e({x1:w,y1:_,x2:T,y2:M})))}var O3=function(t){function e(){return y$e(this,e),w$e(this,e,arguments)}return E$e(e,t),b$e(e,[{key:"render",value:function(){return V.createElement(k$e,this.props)}}])}(V.Component);k3(O3,"displayName","ReferenceLine");k3(O3,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function zP(){return zP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zP.apply(this,arguments)}function Jm(t){"@babel/helpers - typeof";return Jm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jm(t)}function $B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function HB(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$B(Object(n),!0).forEach(function(r){A2(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$B(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function O$e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I$e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,YZ(r.key),r)}}function L$e(t,e,n){return e&&I$e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function D$e(t,e,n){return e=w_(e),F$e(t,qZ()?Reflect.construct(e,n||[],w_(t).constructor):e.apply(t,n))}function F$e(t,e){if(e&&(Jm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U$e(t)}function U$e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qZ=function(){return!!t})()}function w_(t){return w_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},w_(t)}function B$e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$P(t,e)}function $P(t,e){return $P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$P(t,e)}function A2(t,e,n){return e=YZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YZ(t){var e=z$e(t,"string");return Jm(e)=="symbol"?e:e+""}function z$e(t,e){if(Jm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Jm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var $$e=function(e){var n=e.x,r=e.y,i=e.xAxis,s=e.yAxis,o=M3({x:i.scale,y:s.scale}),a=o.apply({x:n,y:r},{bandAware:!0});return Pa(e,"discard")&&!o.isInRange(a)?null:a},C2=function(t){function e(){return O$e(this,e),D$e(this,e,arguments)}return B$e(e,t),L$e(e,[{key:"render",value:function(){var r=this.props,i=r.x,s=r.y,o=r.r,a=r.alwaysShow,c=r.clipPathId,u=vr(i),d=vr(s);if(vl(a===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var h=$$e(this.props);if(!h)return null;var f=h.x,m=h.y,v=this.props,p=v.shape,g=v.className,y=Pa(this.props,"hidden")?"url(#".concat(c,")"):void 0,b=HB(HB({clipPath:y},Jt(this.props,!0)),{},{cx:f,cy:m});return V.createElement(Rr,{className:Gt("recharts-reference-dot",g)},e.renderDot(p,b),ri.renderCallByParent(this.props,{x:f-o,y:m-o,width:2*o,height:2*o}))}}])}(V.Component);A2(C2,"displayName","ReferenceDot");A2(C2,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});A2(C2,"renderDot",function(t,e){var n;return V.isValidElement(t)?n=V.cloneElement(t,e):Nt(t)?n=t(e):n=V.createElement(TZ,zP({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"})),n});function HP(){return HP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},HP.apply(this,arguments)}function ep(t){"@babel/helpers - typeof";return ep=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ep(t)}function VB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function WB(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?VB(Object(n),!0).forEach(function(r){M2(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):VB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function H$e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function V$e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,KZ(r.key),r)}}function W$e(t,e,n){return e&&V$e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function G$e(t,e,n){return e=__(e),q$e(t,XZ()?Reflect.construct(e,n||[],__(t).constructor):e.apply(t,n))}function q$e(t,e){if(e&&(ep(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y$e(t)}function Y$e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function XZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XZ=function(){return!!t})()}function __(t){return __=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},__(t)}function X$e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&VP(t,e)}function VP(t,e){return VP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},VP(t,e)}function M2(t,e,n){return e=KZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function KZ(t){var e=K$e(t,"string");return ep(e)=="symbol"?e:e+""}function K$e(t,e){if(ep(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Q$e=function(e,n,r,i,s){var o=s.x1,a=s.x2,c=s.y1,u=s.y2,d=s.xAxis,h=s.yAxis;if(!d||!h)return null;var f=M3({x:d.scale,y:h.scale}),m={x:e?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},v={x:n?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:i?f.y.apply(u,{position:"end"}):f.y.rangeMax};return Pa(s,"discard")&&(!f.isInRange(m)||!f.isInRange(v))?null:LZ(m,v)},R2=function(t){function e(){return H$e(this,e),G$e(this,e,arguments)}return X$e(e,t),W$e(e,[{key:"render",value:function(){var r=this.props,i=r.x1,s=r.x2,o=r.y1,a=r.y2,c=r.className,u=r.alwaysShow,d=r.clipPathId;vl(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=vr(i),f=vr(s),m=vr(o),v=vr(a),p=this.props.shape;if(!h&&!f&&!m&&!v&&!p)return null;var g=Q$e(h,f,m,v,this.props);if(!g&&!p)return null;var y=Pa(this.props,"hidden")?"url(#".concat(d,")"):void 0;return V.createElement(Rr,{className:Gt("recharts-reference-area",c)},e.renderRect(p,WB(WB({clipPath:y},Jt(this.props,!0)),g)),ri.renderCallByParent(this.props,g))}}])}(V.Component);M2(R2,"displayName","ReferenceArea");M2(R2,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});M2(R2,"renderRect",function(t,e){var n;return V.isValidElement(t)?n=V.cloneElement(t,e):Nt(t)?n=t(e):n=V.createElement(C3,HP({},e,{className:"recharts-reference-area-rect"})),n});function QZ(t,e,n){if(e<1)return[];if(e===1&&n===void 0)return t;for(var r=[],i=0;i<t.length;i+=e)r.push(t[i]);return r}function Z$e(t,e,n){var r={width:t.width+e.width,height:t.height+e.height};return G8e(r,n)}function J$e(t,e,n){var r=n==="width",i=t.x,s=t.y,o=t.width,a=t.height;return e===1?{start:r?i:s,end:r?i+o:s+a}:{start:r?i+o:s+a,end:r?i:s}}function S_(t,e,n,r,i){if(t*e<t*r||t*e>t*i)return!1;var s=n();return t*(e-t*s/2-r)>=0&&t*(e+t*s/2-i)<=0}function e7e(t,e){return QZ(t,e+1)}function t7e(t,e,n,r,i){for(var s=(r||[]).slice(),o=e.start,a=e.end,c=0,u=1,d=o,h=function(){var v=r==null?void 0:r[c];if(v===void 0)return{v:QZ(r,u)};var p=c,g,y=function(){return g===void 0&&(g=n(v,p)),g},b=v.coordinate,x=c===0||S_(t,b,y,d,a);x||(c=0,d=o,u+=1),x&&(d=b+t*(y()/2+i),c+=u)},f;u<=s.length;)if(f=h(),f)return f.v;return[]}function c0(t){"@babel/helpers - typeof";return c0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c0(t)}function GB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ei(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?GB(Object(n),!0).forEach(function(r){n7e(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):GB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function n7e(t,e,n){return e=r7e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r7e(t){var e=i7e(t,"string");return c0(e)=="symbol"?e:e+""}function i7e(t,e){if(c0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(c0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function s7e(t,e,n,r,i){for(var s=(r||[]).slice(),o=s.length,a=e.start,c=e.end,u=function(f){var m=s[f],v,p=function(){return v===void 0&&(v=n(m,f)),v};if(f===o-1){var g=t*(m.coordinate+t*p()/2-c);s[f]=m=ei(ei({},m),{},{tickCoord:g>0?m.coordinate-g*t:m.coordinate})}else s[f]=m=ei(ei({},m),{},{tickCoord:m.coordinate});var y=S_(t,m.tickCoord,p,a,c);y&&(c=m.tickCoord-t*(p()/2+i),s[f]=ei(ei({},m),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return s}function o7e(t,e,n,r,i,s){var o=(r||[]).slice(),a=o.length,c=e.start,u=e.end;if(s){var d=r[a-1],h=n(d,a-1),f=t*(d.coordinate+t*h/2-u);o[a-1]=d=ei(ei({},d),{},{tickCoord:f>0?d.coordinate-f*t:d.coordinate});var m=S_(t,d.tickCoord,function(){return h},c,u);m&&(u=d.tickCoord-t*(h/2+i),o[a-1]=ei(ei({},d),{},{isShow:!0}))}for(var v=s?a-1:a,p=function(b){var x=o[b],w,_=function(){return w===void 0&&(w=n(x,b)),w};if(b===0){var S=t*(x.coordinate-t*_()/2-c);o[b]=x=ei(ei({},x),{},{tickCoord:S<0?x.coordinate-S*t:x.coordinate})}else o[b]=x=ei(ei({},x),{},{tickCoord:x.coordinate});var T=S_(t,x.tickCoord,_,c,u);T&&(c=x.tickCoord+t*(_()/2+i),o[b]=ei(ei({},x),{},{isShow:!0}))},g=0;g<v;g++)p(g);return o}function I3(t,e,n){var r=t.tick,i=t.ticks,s=t.viewBox,o=t.minTickGap,a=t.orientation,c=t.interval,u=t.tickFormatter,d=t.unit,h=t.angle;if(!i||!i.length||!r)return[];if(Le(c)||zc.isSsr)return e7e(i,typeof c=="number"&&Le(c)?c:0);var f=[],m=a==="top"||a==="bottom"?"width":"height",v=d&&m==="width"?Nv(d,{fontSize:e,letterSpacing:n}):{width:0,height:0},p=function(x,w){var _=Nt(u)?u(x.value,w):x.value;return m==="width"?Z$e(Nv(_,{fontSize:e,letterSpacing:n}),v,h):Nv(_,{fontSize:e,letterSpacing:n})[m]},g=i.length>=2?Ho(i[1].coordinate-i[0].coordinate):1,y=J$e(s,g,m);return c==="equidistantPreserveStart"?t7e(g,y,p,i,o):(c==="preserveStart"||c==="preserveStartEnd"?f=o7e(g,y,p,i,o,c==="preserveStartEnd"):f=s7e(g,y,p,i,o),f.filter(function(b){return b.isShow}))}var a7e=["viewBox"],l7e=["viewBox"],c7e=["ticks"];function tp(t){"@babel/helpers - typeof";return tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tp(t)}function jf(){return jf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jf.apply(this,arguments)}function qB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qB(Object(n),!0).forEach(function(r){L3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rA(t,e){if(t==null)return{};var n=u7e(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function u7e(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function d7e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YB(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,JZ(r.key),r)}}function h7e(t,e,n){return e&&YB(t.prototype,e),n&&YB(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f7e(t,e,n){return e=E_(e),m7e(t,ZZ()?Reflect.construct(e,n||[],E_(t).constructor):e.apply(t,n))}function m7e(t,e){if(e&&(tp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p7e(t)}function p7e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ZZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZZ=function(){return!!t})()}function E_(t){return E_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},E_(t)}function g7e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&WP(t,e)}function WP(t,e){return WP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},WP(t,e)}function L3(t,e,n){return e=JZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JZ(t){var e=v7e(t,"string");return tp(e)=="symbol"?e:e+""}function v7e(t,e){if(tp(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(tp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Bp=function(t){function e(n){var r;return d7e(this,e),r=f7e(this,e,[n]),r.state={fontSize:"",letterSpacing:""},r}return g7e(e,t),h7e(e,[{key:"shouldComponentUpdate",value:function(r,i){var s=r.viewBox,o=rA(r,a7e),a=this.props,c=a.viewBox,u=rA(a,l7e);return!Zf(s,c)||!Zf(o,u)||!Zf(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,s=i.x,o=i.y,a=i.width,c=i.height,u=i.orientation,d=i.tickSize,h=i.mirror,f=i.tickMargin,m,v,p,g,y,b,x=h?-1:1,w=r.tickSize||d,_=Le(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":m=v=r.coordinate,g=o+ +!h*c,p=g-x*w,b=p-x*f,y=_;break;case"left":p=g=r.coordinate,v=s+ +!h*a,m=v-x*w,y=m-x*f,b=_;break;case"right":p=g=r.coordinate,v=s+ +h*a,m=v+x*w,y=m+x*f,b=_;break;default:m=v=r.coordinate,g=o+ +h*c,p=g+x*w,b=p+x*f,y=_;break}return{line:{x1:m,y1:p,x2:v,y2:g},tick:{x:y,y:b}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,o;switch(i){case"left":o=s?"start":"end";break;case"right":o=s?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=s?"start":"end";break;default:o=s?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,s=r.y,o=r.width,a=r.height,c=r.orientation,u=r.mirror,d=r.axisLine,h=dr(dr(dr({},Jt(this.props,!1)),Jt(d,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var f=+(c==="top"&&!u||c==="bottom"&&u);h=dr(dr({},h),{},{x1:i,y1:s+f*a,x2:i+o,y2:s+f*a})}else{var m=+(c==="left"&&!u||c==="right"&&u);h=dr(dr({},h),{},{x1:i+m*o,y1:s,x2:i+m*o,y2:s+a})}return V.createElement("line",jf({},h,{className:Gt("recharts-cartesian-axis-line",ao(d,"className"))}))}},{key:"renderTicks",value:function(r,i,s){var o=this,a=this.props,c=a.tickLine,u=a.stroke,d=a.tick,h=a.tickFormatter,f=a.unit,m=I3(dr(dr({},this.props),{},{ticks:r}),i,s),v=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),g=Jt(this.props,!1),y=Jt(d,!1),b=dr(dr({},g),{},{fill:"none"},Jt(c,!1)),x=m.map(function(w,_){var S=o.getTickLineCoord(w),T=S.line,M=S.tick,A=dr(dr(dr(dr({textAnchor:v,verticalAnchor:p},g),{},{stroke:"none",fill:u},y),M),{},{index:_,payload:w,visibleTicksCount:m.length,tickFormatter:h});return V.createElement(Rr,jf({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},N1(o.props,w,_)),c&&V.createElement("line",jf({},b,T,{className:Gt("recharts-cartesian-axis-tick-line",ao(c,"className"))})),d&&e.renderTickItem(d,A,"".concat(Nt(h)?h(w.value,_):w.value).concat(f||"")))});return V.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,i=this.props,s=i.axisLine,o=i.width,a=i.height,c=i.ticksGenerator,u=i.className,d=i.hide;if(d)return null;var h=this.props,f=h.ticks,m=rA(h,c7e),v=f;return Nt(c)&&(v=f&&f.length>0?c(this.props):c(m)),o<=0||a<=0||!v||!v.length?null:V.createElement(Rr,{className:Gt("recharts-cartesian-axis",u),ref:function(g){r.layerReference=g}},s&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),ri.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,s){var o,a=Gt(i.className,"recharts-cartesian-axis-tick-value");return V.isValidElement(r)?o=V.cloneElement(r,dr(dr({},i),{},{className:a})):Nt(r)?o=r(dr(dr({},i),{},{className:a})):o=V.createElement(G1,jf({},i,{className:"recharts-cartesian-axis-tick-value"}),s),o}}])}(E.Component);L3(Bp,"displayName","CartesianAxis");L3(Bp,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var y7e=["x1","y1","x2","y2","key"],x7e=["offset"];function th(t){"@babel/helpers - typeof";return th=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},th(t)}function XB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ii(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?XB(Object(n),!0).forEach(function(r){b7e(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):XB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b7e(t,e,n){return e=w7e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w7e(t){var e=_7e(t,"string");return th(e)=="symbol"?e:e+""}function _7e(t,e){if(th(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(th(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cd(){return cd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cd.apply(this,arguments)}function KB(t,e){if(t==null)return{};var n=S7e(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function S7e(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var E7e=function(e){var n=e.fill;if(!n||n==="none")return null;var r=e.fillOpacity,i=e.x,s=e.y,o=e.width,a=e.height,c=e.ry;return V.createElement("rect",{x:i,y:s,ry:c,width:o,height:a,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function eJ(t,e){var n;if(V.isValidElement(t))n=V.cloneElement(t,e);else if(Nt(t))n=t(e);else{var r=e.x1,i=e.y1,s=e.x2,o=e.y2,a=e.key,c=KB(e,y7e),u=Jt(c,!1);u.offset;var d=KB(u,x7e);n=V.createElement("line",cd({},d,{x1:r,y1:i,x2:s,y2:o,fill:"none",key:a}))}return n}function T7e(t){var e=t.x,n=t.width,r=t.horizontal,i=r===void 0?!0:r,s=t.horizontalPoints;if(!i||!s||!s.length)return null;var o=s.map(function(a,c){var u=ii(ii({},t),{},{x1:e,y1:a,x2:e+n,y2:a,key:"line-".concat(c),index:c});return eJ(i,u)});return V.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function A7e(t){var e=t.y,n=t.height,r=t.vertical,i=r===void 0?!0:r,s=t.verticalPoints;if(!i||!s||!s.length)return null;var o=s.map(function(a,c){var u=ii(ii({},t),{},{x1:a,y1:e,x2:a,y2:e+n,key:"line-".concat(c),index:c});return eJ(i,u)});return V.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function C7e(t){var e=t.horizontalFill,n=t.fillOpacity,r=t.x,i=t.y,s=t.width,o=t.height,a=t.horizontalPoints,c=t.horizontal,u=c===void 0?!0:c;if(!u||!e||!e.length)return null;var d=a.map(function(f){return Math.round(f+i-i)}).sort(function(f,m){return f-m});i!==d[0]&&d.unshift(0);var h=d.map(function(f,m){var v=!d[m+1],p=v?i+o-f:d[m+1]-f;if(p<=0)return null;var g=m%e.length;return V.createElement("rect",{key:"react-".concat(m),y:f,x:r,height:p,width:s,stroke:"none",fill:e[g],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function M7e(t){var e=t.vertical,n=e===void 0?!0:e,r=t.verticalFill,i=t.fillOpacity,s=t.x,o=t.y,a=t.width,c=t.height,u=t.verticalPoints;if(!n||!r||!r.length)return null;var d=u.map(function(f){return Math.round(f+s-s)}).sort(function(f,m){return f-m});s!==d[0]&&d.unshift(0);var h=d.map(function(f,m){var v=!d[m+1],p=v?s+a-f:d[m+1]-f;if(p<=0)return null;var g=m%r.length;return V.createElement("rect",{key:"react-".concat(m),x:f,y:o,width:p,height:c,stroke:"none",fill:r[g],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var R7e=function(e,n){var r=e.xAxis,i=e.width,s=e.height,o=e.offset;return hZ(I3(ii(ii(ii({},Bp.defaultProps),r),{},{ticks:hl(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),o.left,o.left+o.width,n)},P7e=function(e,n){var r=e.yAxis,i=e.width,s=e.height,o=e.offset;return hZ(I3(ii(ii(ii({},Bp.defaultProps),r),{},{ticks:hl(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),o.top,o.top+o.height,n)},Uh={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function tJ(t){var e,n,r,i,s,o,a=j3(),c=N3(),u=v$e(),d=ii(ii({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:Uh.stroke,fill:(n=t.fill)!==null&&n!==void 0?n:Uh.fill,horizontal:(r=t.horizontal)!==null&&r!==void 0?r:Uh.horizontal,horizontalFill:(i=t.horizontalFill)!==null&&i!==void 0?i:Uh.horizontalFill,vertical:(s=t.vertical)!==null&&s!==void 0?s:Uh.vertical,verticalFill:(o=t.verticalFill)!==null&&o!==void 0?o:Uh.verticalFill,x:Le(t.x)?t.x:u.left,y:Le(t.y)?t.y:u.top,width:Le(t.width)?t.width:u.width,height:Le(t.height)?t.height:u.height}),h=d.x,f=d.y,m=d.width,v=d.height,p=d.syncWithTicks,g=d.horizontalValues,y=d.verticalValues,b=m$e(),x=p$e();if(!Le(m)||m<=0||!Le(v)||v<=0||!Le(h)||h!==+h||!Le(f)||f!==+f)return null;var w=d.verticalCoordinatesGenerator||R7e,_=d.horizontalCoordinatesGenerator||P7e,S=d.horizontalPoints,T=d.verticalPoints;if((!S||!S.length)&&Nt(_)){var M=g&&g.length,A=_({yAxis:x?ii(ii({},x),{},{ticks:M?g:x.ticks}):void 0,width:a,height:c,offset:u},M?!0:p);vl(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(th(A),"]")),Array.isArray(A)&&(S=A)}if((!T||!T.length)&&Nt(w)){var C=y&&y.length,R=w({xAxis:b?ii(ii({},b),{},{ticks:C?y:b.ticks}):void 0,width:a,height:c,offset:u},C?!0:p);vl(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(th(R),"]")),Array.isArray(R)&&(T=R)}return V.createElement("g",{className:"recharts-cartesian-grid"},V.createElement(E7e,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),V.createElement(T7e,cd({},d,{offset:u,horizontalPoints:S,xAxis:b,yAxis:x})),V.createElement(A7e,cd({},d,{offset:u,verticalPoints:T,xAxis:b,yAxis:x})),V.createElement(C7e,cd({},d,{horizontalPoints:S})),V.createElement(M7e,cd({},d,{verticalPoints:T})))}tJ.displayName="CartesianGrid";function np(t){"@babel/helpers - typeof";return np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},np(t)}function j7e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N7e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,iJ(r.key),r)}}function k7e(t,e,n){return e&&N7e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function O7e(t,e,n){return e=T_(e),I7e(t,nJ()?Reflect.construct(e,n||[],T_(t).constructor):e.apply(t,n))}function I7e(t,e){if(e&&(np(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L7e(t)}function L7e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nJ=function(){return!!t})()}function T_(t){return T_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},T_(t)}function D7e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&GP(t,e)}function GP(t,e){return GP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},GP(t,e)}function rJ(t,e,n){return e=iJ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function iJ(t){var e=F7e(t,"string");return np(e)=="symbol"?e:e+""}function F7e(t,e){if(np(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(np(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qP(){return qP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qP.apply(this,arguments)}function U7e(t){var e=t.xAxisId,n=j3(),r=N3(),i=HZ(e);return i==null?null:E.createElement(Bp,qP({},i,{className:Gt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return hl(o,!0)}}))}var P2=function(t){function e(){return j7e(this,e),O7e(this,e,arguments)}return D7e(e,t),k7e(e,[{key:"render",value:function(){return E.createElement(U7e,this.props)}}])}(E.Component);rJ(P2,"displayName","XAxis");rJ(P2,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function rp(t){"@babel/helpers - typeof";return rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rp(t)}function B7e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z7e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,aJ(r.key),r)}}function $7e(t,e,n){return e&&z7e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function H7e(t,e,n){return e=A_(e),V7e(t,sJ()?Reflect.construct(e,n||[],A_(t).constructor):e.apply(t,n))}function V7e(t,e){if(e&&(rp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W7e(t)}function W7e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sJ=function(){return!!t})()}function A_(t){return A_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},A_(t)}function G7e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&YP(t,e)}function YP(t,e){return YP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},YP(t,e)}function oJ(t,e,n){return e=aJ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aJ(t){var e=q7e(t,"string");return rp(e)=="symbol"?e:e+""}function q7e(t,e){if(rp(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(rp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function XP(){return XP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},XP.apply(this,arguments)}var Y7e=function(e){var n=e.yAxisId,r=j3(),i=N3(),s=VZ(n);return s==null?null:E.createElement(Bp,XP({},s,{className:Gt("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(a){return hl(a,!0)}}))},j2=function(t){function e(){return B7e(this,e),H7e(this,e,arguments)}return G7e(e,t),$7e(e,[{key:"render",value:function(){return E.createElement(Y7e,this.props)}}])}(E.Component);oJ(j2,"displayName","YAxis");oJ(j2,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function QB(t){return Z7e(t)||Q7e(t)||K7e(t)||X7e()}function X7e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5802In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K7e(t,e){if(t){if(typeof t=="string")return KP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KP(t,e)}}function Q7e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Z7e(t){if(Array.isArray(t))return KP(t)}function KP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var QP=function(e,n,r,i,s){var o=qo(e,O3),a=qo(e,C2),c=[].concat(QB(o),QB(a)),u=qo(e,R2),d="".concat(i,"Id"),h=i[0],f=n;if(c.length&&(f=c.reduce(function(p,g){if(g.props[d]===r&&Pa(g.props,"extendDomain")&&Le(g.props[h])){var y=g.props[h];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},f)),u.length){var m="".concat(h,"1"),v="".concat(h,"2");f=u.reduce(function(p,g){if(g.props[d]===r&&Pa(g.props,"extendDomain")&&Le(g.props[m])&&Le(g.props[v])){var y=g.props[m],b=g.props[v];return[Math.min(p[0],y,b),Math.max(p[1],y,b)]}return p},f)}return s&&s.length&&(f=s.reduce(function(p,g){return Le(g)?[Math.min(p[0],g),Math.max(p[1],g)]:p},f)),f},lJ={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function s(c,u,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new i(d,h||c,f),v=n?n+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],m]:c._events[v].push(m):(c._events[v]=m,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)e.call(d,h)&&u.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},a.prototype.listeners=function(u){var d=n?n+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,m=h.length,v=new Array(m);f<m;f++)v[f]=h[f].fn;return v},a.prototype.listenerCount=function(u){var d=n?n+u:u,h=this._events[d];return h?h.fn?1:h.length:0},a.prototype.emit=function(u,d,h,f,m,v){var p=n?n+u:u;if(!this._events[p])return!1;var g=this._events[p],y=arguments.length,b,x;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,d),!0;case 3:return g.fn.call(g.context,d,h),!0;case 4:return g.fn.call(g.context,d,h,f),!0;case 5:return g.fn.call(g.context,d,h,f,m),!0;case 6:return g.fn.call(g.context,d,h,f,m,v),!0}for(x=1,b=new Array(y-1);x<y;x++)b[x-1]=arguments[x];g.fn.apply(g.context,b)}else{var w=g.length,_;for(x=0;x<w;x++)switch(g[x].once&&this.removeListener(u,g[x].fn,void 0,!0),y){case 1:g[x].fn.call(g[x].context);break;case 2:g[x].fn.call(g[x].context,d);break;case 3:g[x].fn.call(g[x].context,d,h);break;case 4:g[x].fn.call(g[x].context,d,h,f);break;default:if(!b)for(_=1,b=new Array(y-1);_<y;_++)b[_-1]=arguments[_];g[x].fn.apply(g[x].context,b)}}return!0},a.prototype.on=function(u,d,h){return s(this,u,d,h,!1)},a.prototype.once=function(u,d,h){return s(this,u,d,h,!0)},a.prototype.removeListener=function(u,d,h,f){var m=n?n+u:u;if(!this._events[m])return this;if(!d)return o(this,m),this;var v=this._events[m];if(v.fn)v.fn===d&&(!f||v.once)&&(!h||v.context===h)&&o(this,m);else{for(var p=0,g=[],y=v.length;p<y;p++)(v[p].fn!==d||f&&!v[p].once||h&&v[p].context!==h)&&g.push(v[p]);g.length?this._events[m]=g.length===1?g[0]:g:o(this,m)}return this},a.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&o(this,d)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a})(lJ);var J7e=lJ.exports;const e9e=tn(J7e);var iA=new e9e,sA="recharts.syncMouseEvents";function u0(t){"@babel/helpers - typeof";return u0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u0(t)}function t9e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n9e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,cJ(r.key),r)}}function r9e(t,e,n){return e&&n9e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function oA(t,e,n){return e=cJ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cJ(t){var e=i9e(t,"string");return u0(e)=="symbol"?e:e+""}function i9e(t,e){if(u0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(u0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var s9e=function(){function t(){t9e(this,t),oA(this,"activeIndex",0),oA(this,"coordinateList",[]),oA(this,"layout","horizontal")}return r9e(t,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,s=i===void 0?null:i,o=n.container,a=o===void 0?null:o,c=n.layout,u=c===void 0?null:c,d=n.offset,h=d===void 0?null:d,f=n.mouseHandlerCallback,m=f===void 0?null:f;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=a??this.container,this.layout=u??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=m??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),s=i.x,o=i.y,a=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,h=s+c+u,f=o+this.offset.top+a/2+d;this.mouseHandlerCallback({pageX:h,pageY:f})}}}])}();function o9e(t,e,n){if(n==="number"&&e===!0&&Array.isArray(t)){var r=t==null?void 0:t[0],i=t==null?void 0:t[1];if(r&&i&&Le(r)&&Le(i))return!0}return!1}function a9e(t,e,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-i:n.left+.5,y:t==="horizontal"?n.top+.5:e.y-i,width:t==="horizontal"?r:n.width-1,height:t==="horizontal"?n.height-1:r}}function uJ(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,s=t.endAngle,o=Br(e,n,r,i),a=Br(e,n,r,s);return{points:[o,a],cx:e,cy:n,radius:r,startAngle:i,endAngle:s}}function l9e(t,e,n){var r,i,s,o;if(t==="horizontal")r=e.x,s=r,i=n.top,o=n.top+n.height;else if(t==="vertical")i=e.y,o=i,r=n.left,s=n.left+n.width;else if(e.cx!=null&&e.cy!=null)if(t==="centric"){var a=e.cx,c=e.cy,u=e.innerRadius,d=e.outerRadius,h=e.angle,f=Br(a,c,u,h),m=Br(a,c,d,h);r=f.x,i=f.y,s=m.x,o=m.y}else return uJ(e);return[{x:r,y:i},{x:s,y:o}]}function d0(t){"@babel/helpers - typeof";return d0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d0(t)}function ZB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ub(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ZB(Object(n),!0).forEach(function(r){c9e(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ZB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function c9e(t,e,n){return e=u9e(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u9e(t){var e=d9e(t,"string");return d0(e)=="symbol"?e:e+""}function d9e(t,e){if(d0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(d0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function h9e(t){var e,n,r=t.element,i=t.tooltipEventType,s=t.isActive,o=t.activeCoordinate,a=t.activePayload,c=t.offset,u=t.activeTooltipIndex,d=t.tooltipAxisBandSize,h=t.layout,f=t.chartName,m=(e=r.props.cursor)!==null&&e!==void 0?e:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!m||!s||!o||f!=="ScatterChart"&&i!=="axis")return null;var v,p=X6;if(f==="ScatterChart")v=o,p=TBe;else if(f==="BarChart")v=a9e(h,o,c,d),p=C3;else if(h==="radial"){var g=uJ(o),y=g.cx,b=g.cy,x=g.radius,w=g.startAngle,_=g.endAngle;v={cx:y,cy:b,startAngle:w,endAngle:_,innerRadius:x,outerRadius:x},p=vZ}else v={points:l9e(h,o,c)},p=X6;var S=ub(ub(ub(ub({stroke:"#ccc",pointerEvents:"none"},c),v),Jt(m,!1)),{},{payload:a,payloadIndex:u,className:Gt("recharts-tooltip-cursor",m.className)});return E.isValidElement(m)?E.cloneElement(m,S):E.createElement(p,S)}var f9e=["item"],m9e=["children","className","width","height","style","compact","title","desc"];function ip(t){"@babel/helpers - typeof";return ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ip(t)}function Nf(){return Nf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Nf.apply(this,arguments)}function JB(t,e){return v9e(t)||g9e(t,e)||hJ(t,e)||p9e()}function p9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5803In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g9e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function v9e(t){if(Array.isArray(t))return t}function ez(t,e){if(t==null)return{};var n=y9e(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function y9e(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function x9e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b9e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,fJ(r.key),r)}}function w9e(t,e,n){return e&&b9e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function _9e(t,e,n){return e=C_(e),S9e(t,dJ()?Reflect.construct(e,n||[],C_(t).constructor):e.apply(t,n))}function S9e(t,e){if(e&&(ip(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E9e(t)}function E9e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dJ=function(){return!!t})()}function C_(t){return C_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},C_(t)}function T9e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ZP(t,e)}function ZP(t,e){return ZP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZP(t,e)}function sp(t){return M9e(t)||C9e(t)||hJ(t)||A9e()}function A9e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5804In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hJ(t,e){if(t){if(typeof t=="string")return JP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JP(t,e)}}function C9e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function M9e(t){if(Array.isArray(t))return JP(t)}function JP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function tz(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function me(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tz(Object(n),!0).forEach(function(r){ft(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tz(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ft(t,e,n){return e=fJ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fJ(t){var e=R9e(t,"string");return ip(e)=="symbol"?e:e+""}function R9e(t,e){if(ip(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ip(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var P9e={xAxis:["bottom","top"],yAxis:["left","right"]},j9e={width:"100%",height:"100%"},mJ={x:0,y:0};function db(t){return t}var N9e=function(e,n){return n==="horizontal"?e.x:n==="vertical"?e.y:n==="centric"?e.angle:e.radius},k9e=function(e,n,r,i){var s=n.find(function(d){return d&&d.index===r});if(s){if(e==="horizontal")return{x:s.coordinate,y:i.y};if(e==="vertical")return{x:i.x,y:s.coordinate};if(e==="centric"){var o=s.coordinate,a=i.radius;return me(me(me({},i),Br(i.cx,i.cy,a,o)),{},{angle:o,radius:a})}var c=s.coordinate,u=i.angle;return me(me(me({},i),Br(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return mJ},N2=function(e,n){var r=n.graphicalItems,i=n.dataStartIndex,s=n.dataEndIndex,o=(r??[]).reduce(function(a,c){var u=c.props.data;return u&&u.length?[].concat(sp(a),sp(u)):a},[]);return o.length>0?o:e&&e.length&&Le(i)&&Le(s)?e.slice(i,s+1):[]};function pJ(t){return t==="number"?[0,"auto"]:void 0}var ej=function(e,n,r,i){var s=e.graphicalItems,o=e.tooltipAxis,a=N2(n,e);return r<0||!s||!s.length||r>=a.length?null:s.reduce(function(c,u){var d,h=(d=u.props.data)!==null&&d!==void 0?d:n;h&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=r&&(h=h.slice(e.dataStartIndex,e.dataEndIndex+1));var f;if(o.dataKey&&!o.allowDuplicatedCategory){var m=h===void 0?a:h;f=kR(m,o.dataKey,i)}else f=h&&h[r]||a[r];return f?[].concat(sp(c),[mZ(u,f)]):c},[])},nz=function(e,n,r,i){var s=i||{x:e.chartX,y:e.chartY},o=N9e(s,r),a=e.orderedTooltipTicks,c=e.tooltipAxis,u=e.tooltipTicks,d=hFe(o,a,u,c);if(d>=0&&u){var h=u[d]&&u[d].value,f=ej(e,n,d,h),m=k9e(r,a,d,s);return{activeTooltipIndex:d,activeLabel:h,activePayload:f,activeCoordinate:m}}return null},O9e=function(e,n){var r=n.axes,i=n.graphicalItems,s=n.axisType,o=n.axisIdKey,a=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,d=e.layout,h=e.children,f=e.stackOffset,m=dZ(d,s);return r.reduce(function(v,p){var g,y=p.type.defaultProps!==void 0?me(me({},p.type.defaultProps),p.props):p.props,b=y.type,x=y.dataKey,w=y.allowDataOverflow,_=y.allowDuplicatedCategory,S=y.scale,T=y.ticks,M=y.includeHidden,A=y[o];if(v[A])return v;var C=N2(e.data,{graphicalItems:i.filter(function(q){var W,Y=o in q.props?q.props[o]:(W=q.type.defaultProps)===null||W===void 0?void 0:W[o];return Y===A}),dataStartIndex:c,dataEndIndex:u}),R=C.length,j,k,P;o9e(y.domain,w,b)&&(j=bP(y.domain,null,w),m&&(b==="number"||S!=="auto")&&(P=Ov(C,x,"category")));var O=pJ(b);if(!j||j.length===0){var L,F=(L=y.domain)!==null&&L!==void 0?L:O;if(x){if(j=Ov(C,x,b),b==="category"&&m){var D=eAe(j);_&&D?(k=j,j=p_(0,R)):_||(j=L6(F,j,p).reduce(function(q,W){return q.indexOf(W)>=0?q:[].concat(sp(q),[W])},[]))}else if(b==="category")_?j=j.filter(function(q){return q!==""&&!en(q)}):j=L6(F,j,p).reduce(function(q,W){return q.indexOf(W)>=0||W===""||en(W)?q:[].concat(sp(q),[W])},[]);else if(b==="number"){var I=vFe(C,i.filter(function(q){var W,Y,te=o in q.props?q.props[o]:(W=q.type.defaultProps)===null||W===void 0?void 0:W[o],Q="hide"in q.props?q.props.hide:(Y=q.type.defaultProps)===null||Y===void 0?void 0:Y.hide;return te===A&&(M||!Q)}),x,s,d);I&&(j=I)}m&&(b==="number"||S!=="auto")&&(P=Ov(C,x,"category"))}else m?j=p_(0,R):a&&a[A]&&a[A].hasStack&&b==="number"?j=f==="expand"?[0,1]:fZ(a[A].stackGroups,c,u):j=uZ(C,i.filter(function(q){var W=o in q.props?q.props[o]:q.type.defaultProps[o],Y="hide"in q.props?q.props.hide:q.type.defaultProps.hide;return W===A&&(M||!Y)}),b,d,!0);if(b==="number")j=QP(h,j,A,s,T),F&&(j=bP(F,j,w));else if(b==="category"&&F){var N=F,G=j.every(function(q){return N.indexOf(q)>=0});G&&(j=N)}}return me(me({},v),{},ft({},A,me(me({},y),{},{axisType:s,domain:j,categoricalDomain:P,duplicateDomain:k,originalDomain:(g=y.domain)!==null&&g!==void 0?g:O,isCategorical:m,layout:d})))},{})},I9e=function(e,n){var r=n.graphicalItems,i=n.Axis,s=n.axisType,o=n.axisIdKey,a=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,d=e.layout,h=e.children,f=N2(e.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),m=f.length,v=dZ(d,s),p=-1;return r.reduce(function(g,y){var b=y.type.defaultProps!==void 0?me(me({},y.type.defaultProps),y.props):y.props,x=b[o],w=pJ("number");if(!g[x]){p++;var _;return v?_=p_(0,m):a&&a[x]&&a[x].hasStack?(_=fZ(a[x].stackGroups,c,u),_=QP(h,_,x,s)):(_=bP(w,uZ(f,r.filter(function(S){var T,M,A=o in S.props?S.props[o]:(T=S.type.defaultProps)===null||T===void 0?void 0:T[o],C="hide"in S.props?S.props.hide:(M=S.type.defaultProps)===null||M===void 0?void 0:M.hide;return A===x&&!C}),"number",d),i.defaultProps.allowDataOverflow),_=QP(h,_,x,s)),me(me({},g),{},ft({},x,me(me({axisType:s},i.defaultProps),{},{hide:!0,orientation:ao(P9e,"".concat(s,".").concat(p%2),null),domain:_,originalDomain:w,isCategorical:v,layout:d})))}return g},{})},L9e=function(e,n){var r=n.axisType,i=r===void 0?"xAxis":r,s=n.AxisComp,o=n.graphicalItems,a=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,d=e.children,h="".concat(i,"Id"),f=qo(d,s),m={};return f&&f.length?m=O9e(e,{axes:f,graphicalItems:o,axisType:i,axisIdKey:h,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(m=I9e(e,{Axis:s,graphicalItems:o,axisType:i,axisIdKey:h,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),m},D9e=function(e){var n=ac(e),r=hl(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:JO(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:o_(n,r)}},rz=function(e){var n=e.children,r=e.defaultShowTooltip,i=hs(n,Km),s=0,o=0;return e.data&&e.data.length!==0&&(o=e.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(s=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},F9e=function(e){return!e||!e.length?!1:e.some(function(n){var r=gl(n&&n.type);return r&&r.indexOf("Bar")>=0})},iz=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},U9e=function(e,n){var r=e.props,i=e.graphicalItems,s=e.xAxisMap,o=s===void 0?{}:s,a=e.yAxisMap,c=a===void 0?{}:a,u=r.width,d=r.height,h=r.children,f=r.margin||{},m=hs(h,Km),v=hs(h,Jf),p=Object.keys(c).reduce(function(_,S){var T=c[S],M=T.orientation;return!T.mirror&&!T.hide?me(me({},_),{},ft({},M,_[M]+T.width)):_},{left:f.left||0,right:f.right||0}),g=Object.keys(o).reduce(function(_,S){var T=o[S],M=T.orientation;return!T.mirror&&!T.hide?me(me({},_),{},ft({},M,ao(_,"".concat(M))+T.height)):_},{top:f.top||0,bottom:f.bottom||0}),y=me(me({},g),p),b=y.bottom;m&&(y.bottom+=m.props.height||Km.defaultProps.height),v&&n&&(y=pFe(y,i,r,n));var x=u-y.left-y.right,w=d-y.top-y.bottom;return me(me({brushBottom:b},y),{},{width:Math.max(x,0),height:Math.max(w,0)})},B9e=function(e,n){if(n==="xAxis")return e[n].width;if(n==="yAxis")return e[n].height},z9e=function(e){var n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,s=i===void 0?"axis":i,o=e.validateTooltipEventTypes,a=o===void 0?["axis"]:o,c=e.axisComponents,u=e.legendContent,d=e.formatAxisMap,h=e.defaultProps,f=function(y,b){var x=b.graphicalItems,w=b.stackGroups,_=b.offset,S=b.updateId,T=b.dataStartIndex,M=b.dataEndIndex,A=y.barSize,C=y.layout,R=y.barGap,j=y.barCategoryGap,k=y.maxBarSize,P=iz(C),O=P.numericAxisName,L=P.cateAxisName,F=F9e(x),D=[];return x.forEach(function(I,N){var G=N2(y.data,{graphicalItems:[I],dataStartIndex:T,dataEndIndex:M}),q=I.type.defaultProps!==void 0?me(me({},I.type.defaultProps),I.props):I.props,W=q.dataKey,Y=q.maxBarSize,te=q["".concat(O,"Id")],Q=q["".concat(L,"Id")],X={},ae=c.reduce(function(re,pe){var ge=b["".concat(pe.axisType,"Map")],ye=q["".concat(pe.axisType,"Id")];ge&&ge[ye]||pe.axisType==="zAxis"||eh();var je=ge[ye];return me(me({},re),{},ft(ft({},pe.axisType,je),"".concat(pe.axisType,"Ticks"),hl(je)))},X),J=ae[L],ue=ae["".concat(L,"Ticks")],de=w&&w[te]&&w[te].hasStack&&RFe(I,w[te].stackGroups),H=gl(I.type).indexOf("Bar")>=0,_e=o_(J,ue),he=[],xe=F&&fFe({barSize:A,stackGroups:w,totalSize:B9e(ae,L)});if(H){var we,ne,Pe=en(Y)?k:Y,$=(we=(ne=o_(J,ue,!0))!==null&&ne!==void 0?ne:Pe)!==null&&we!==void 0?we:0;he=mFe({barGap:R,barCategoryGap:j,bandSize:$!==_e?$:_e,sizeList:xe[Q],maxBarSize:Pe}),$!==_e&&(he=he.map(function(re){return me(me({},re),{},{position:me(me({},re.position),{},{offset:re.position.offset-$/2})})}))}var B=I&&I.type&&I.type.getComposedData;B&&D.push({props:me(me({},B(me(me({},ae),{},{displayedData:G,props:y,dataKey:W,item:I,bandSize:_e,barPosition:he,offset:_,stackedData:de,layout:C,dataStartIndex:T,dataEndIndex:M}))),{},ft(ft(ft({key:I.key||"item-".concat(N)},O,ae[O]),L,ae[L]),"animationId",S)),childIndex:hAe(I,y.children),item:I})}),D},m=function(y,b){var x=y.props,w=y.dataStartIndex,_=y.dataEndIndex,S=y.updateId;if(!PF({props:x}))return null;var T=x.children,M=x.layout,A=x.stackOffset,C=x.data,R=x.reverseStackOrder,j=iz(M),k=j.numericAxisName,P=j.cateAxisName,O=qo(T,r),L=AFe(C,O,"".concat(k,"Id"),"".concat(P,"Id"),A,R),F=c.reduce(function(q,W){var Y="".concat(W.axisType,"Map");return me(me({},q),{},ft({},Y,L9e(x,me(me({},W),{},{graphicalItems:O,stackGroups:W.axisType===k&&L,dataStartIndex:w,dataEndIndex:_}))))},{}),D=U9e(me(me({},F),{},{props:x,graphicalItems:O}),b==null?void 0:b.legendBBox);Object.keys(F).forEach(function(q){F[q]=d(x,F[q],D,q.replace("Map",""),n)});var I=F["".concat(P,"Map")],N=D9e(I),G=f(x,me(me({},F),{},{dataStartIndex:w,dataEndIndex:_,updateId:S,graphicalItems:O,stackGroups:L,offset:D}));return me(me({formattedGraphicalItems:G,graphicalItems:O,offset:D,stackGroups:L},N),F)},v=function(g){function y(b){var x,w,_;return x9e(this,y),_=_9e(this,y,[b]),ft(_,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ft(_,"accessibilityManager",new s9e),ft(_,"handleLegendBBoxUpdate",function(S){if(S){var T=_.state,M=T.dataStartIndex,A=T.dataEndIndex,C=T.updateId;_.setState(me({legendBBox:S},m({props:_.props,dataStartIndex:M,dataEndIndex:A,updateId:C},me(me({},_.state),{},{legendBBox:S}))))}}),ft(_,"handleReceiveSyncEvent",function(S,T,M){if(_.props.syncId===S){if(M===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(T)}}),ft(_,"handleBrushChange",function(S){var T=S.startIndex,M=S.endIndex;if(T!==_.state.dataStartIndex||M!==_.state.dataEndIndex){var A=_.state.updateId;_.setState(function(){return me({dataStartIndex:T,dataEndIndex:M},m({props:_.props,dataStartIndex:T,dataEndIndex:M,updateId:A},_.state))}),_.triggerSyncEvent({dataStartIndex:T,dataEndIndex:M})}}),ft(_,"handleMouseEnter",function(S){var T=_.getMouseInfo(S);if(T){var M=me(me({},T),{},{isTooltipActive:!0});_.setState(M),_.triggerSyncEvent(M);var A=_.props.onMouseEnter;Nt(A)&&A(M,S)}}),ft(_,"triggeredAfterMouseMove",function(S){var T=_.getMouseInfo(S),M=T?me(me({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState(M),_.triggerSyncEvent(M);var A=_.props.onMouseMove;Nt(A)&&A(M,S)}),ft(_,"handleItemMouseEnter",function(S){_.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),ft(_,"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),ft(_,"handleMouseMove",function(S){S.persist(),_.throttleTriggeredAfterMouseMove(S)}),ft(_,"handleMouseLeave",function(S){_.throttleTriggeredAfterMouseMove.cancel();var T={isTooltipActive:!1};_.setState(T),_.triggerSyncEvent(T);var M=_.props.onMouseLeave;Nt(M)&&M(T,S)}),ft(_,"handleOuterEvent",function(S){var T=dAe(S),M=ao(_.props,"".concat(T));if(T&&Nt(M)){var A,C;/.*touch.*/i.test(T)?C=_.getMouseInfo(S.changedTouches[0]):C=_.getMouseInfo(S),M((A=C)!==null&&A!==void 0?A:{},S)}}),ft(_,"handleClick",function(S){var T=_.getMouseInfo(S);if(T){var M=me(me({},T),{},{isTooltipActive:!0});_.setState(M),_.triggerSyncEvent(M);var A=_.props.onClick;Nt(A)&&A(M,S)}}),ft(_,"handleMouseDown",function(S){var T=_.props.onMouseDown;if(Nt(T)){var M=_.getMouseInfo(S);T(M,S)}}),ft(_,"handleMouseUp",function(S){var T=_.props.onMouseUp;if(Nt(T)){var M=_.getMouseInfo(S);T(M,S)}}),ft(_,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),ft(_,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseDown(S.changedTouches[0])}),ft(_,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseUp(S.changedTouches[0])}),ft(_,"handleDoubleClick",function(S){var T=_.props.onDoubleClick;if(Nt(T)){var M=_.getMouseInfo(S);T(M,S)}}),ft(_,"handleContextMenu",function(S){var T=_.props.onContextMenu;if(Nt(T)){var M=_.getMouseInfo(S);T(M,S)}}),ft(_,"triggerSyncEvent",function(S){_.props.syncId!==void 0&&iA.emit(sA,_.props.syncId,S,_.eventEmitterSymbol)}),ft(_,"applySyncEvent",function(S){var T=_.props,M=T.layout,A=T.syncMethod,C=_.state.updateId,R=S.dataStartIndex,j=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)_.setState(me({dataStartIndex:R,dataEndIndex:j},m({props:_.props,dataStartIndex:R,dataEndIndex:j,updateId:C},_.state)));else if(S.activeTooltipIndex!==void 0){var k=S.chartX,P=S.chartY,O=S.activeTooltipIndex,L=_.state,F=L.offset,D=L.tooltipTicks;if(!F)return;if(typeof A=="function")O=A(D,S);else if(A==="value"){O=-1;for(var I=0;I<D.length;I++)if(D[I].value===S.activeLabel){O=I;break}}var N=me(me({},F),{},{x:F.left,y:F.top}),G=Math.min(k,N.x+N.width),q=Math.min(P,N.y+N.height),W=D[O]&&D[O].value,Y=ej(_.state,_.props.data,O),te=D[O]?{x:M==="horizontal"?D[O].coordinate:G,y:M==="horizontal"?q:D[O].coordinate}:mJ;_.setState(me(me({},S),{},{activeLabel:W,activeCoordinate:te,activePayload:Y,activeTooltipIndex:O}))}else _.setState(S)}),ft(_,"renderCursor",function(S){var T,M=_.state,A=M.isTooltipActive,C=M.activeCoordinate,R=M.activePayload,j=M.offset,k=M.activeTooltipIndex,P=M.tooltipAxisBandSize,O=_.getTooltipEventType(),L=(T=S.props.active)!==null&&T!==void 0?T:A,F=_.props.layout,D=S.key||"_recharts-cursor";return V.createElement(h9e,{key:D,activeCoordinate:C,activePayload:R,activeTooltipIndex:k,chartName:n,element:S,isActive:L,layout:F,offset:j,tooltipAxisBandSize:P,tooltipEventType:O})}),ft(_,"renderPolarAxis",function(S,T,M){var A=ao(S,"type.axisType"),C=ao(_.state,"".concat(A,"Map")),R=S.type.defaultProps,j=R!==void 0?me(me({},R),S.props):S.props,k=C&&C[j["".concat(A,"Id")]];return E.cloneElement(S,me(me({},k),{},{className:Gt(A,k.className),key:S.key||"".concat(T,"-").concat(M),ticks:hl(k,!0)}))}),ft(_,"renderPolarGrid",function(S){var T=S.props,M=T.radialLines,A=T.polarAngles,C=T.polarRadius,R=_.state,j=R.radiusAxisMap,k=R.angleAxisMap,P=ac(j),O=ac(k),L=O.cx,F=O.cy,D=O.innerRadius,I=O.outerRadius;return E.cloneElement(S,{polarAngles:Array.isArray(A)?A:hl(O,!0).map(function(N){return N.coordinate}),polarRadius:Array.isArray(C)?C:hl(P,!0).map(function(N){return N.coordinate}),cx:L,cy:F,innerRadius:D,outerRadius:I,key:S.key||"polar-grid",radialLines:M})}),ft(_,"renderLegend",function(){var S=_.state.formattedGraphicalItems,T=_.props,M=T.children,A=T.width,C=T.height,R=_.props.margin||{},j=A-(R.left||0)-(R.right||0),k=lZ({children:M,formattedGraphicalItems:S,legendWidth:j,legendContent:u});if(!k)return null;var P=k.item,O=ez(k,f9e);return E.cloneElement(P,me(me({},O),{},{chartWidth:A,chartHeight:C,margin:R,onBBoxUpdate:_.handleLegendBBoxUpdate}))}),ft(_,"renderTooltip",function(){var S,T=_.props,M=T.children,A=T.accessibilityLayer,C=hs(M,tl);if(!C)return null;var R=_.state,j=R.isTooltipActive,k=R.activeCoordinate,P=R.activePayload,O=R.activeLabel,L=R.offset,F=(S=C.props.active)!==null&&S!==void 0?S:j;return E.cloneElement(C,{viewBox:me(me({},L),{},{x:L.left,y:L.top}),active:F,label:O,payload:F?P:[],coordinate:k,accessibilityLayer:A})}),ft(_,"renderBrush",function(S){var T=_.props,M=T.margin,A=T.data,C=_.state,R=C.offset,j=C.dataStartIndex,k=C.dataEndIndex,P=C.updateId;return E.cloneElement(S,{key:S.key||"_recharts-brush",onChange:ob(_.handleBrushChange,S.props.onChange),data:A,x:Le(S.props.x)?S.props.x:R.left,y:Le(S.props.y)?S.props.y:R.top+R.height+R.brushBottom-(M.bottom||0),width:Le(S.props.width)?S.props.width:R.width,startIndex:j,endIndex:k,updateId:"brush-".concat(P)})}),ft(_,"renderReferenceElement",function(S,T,M){if(!S)return null;var A=_,C=A.clipPathId,R=_.state,j=R.xAxisMap,k=R.yAxisMap,P=R.offset,O=S.type.defaultProps||{},L=S.props,F=L.xAxisId,D=F===void 0?O.xAxisId:F,I=L.yAxisId,N=I===void 0?O.yAxisId:I;return E.cloneElement(S,{key:S.key||"".concat(T,"-").concat(M),xAxis:j[D],yAxis:k[N],viewBox:{x:P.left,y:P.top,width:P.width,height:P.height},clipPathId:C})}),ft(_,"renderActivePoints",function(S){var T=S.item,M=S.activePoint,A=S.basePoint,C=S.childIndex,R=S.isRange,j=[],k=T.props.key,P=T.item.type.defaultProps!==void 0?me(me({},T.item.type.defaultProps),T.item.props):T.item.props,O=P.activeDot,L=P.dataKey,F=me(me({index:C,dataKey:L,cx:M.x,cy:M.y,r:4,fill:A3(T.item),strokeWidth:2,stroke:"#fff",payload:M.payload,value:M.value},Jt(O,!1)),j1(O));return j.push(y.renderActiveDot(O,F,"".concat(k,"-activePoint-").concat(C))),A?j.push(y.renderActiveDot(O,me(me({},F),{},{cx:A.x,cy:A.y}),"".concat(k,"-basePoint-").concat(C))):R&&j.push(null),j}),ft(_,"renderGraphicChild",function(S,T,M){var A=_.filterFormatItem(S,T,M);if(!A)return null;var C=_.getTooltipEventType(),R=_.state,j=R.isTooltipActive,k=R.tooltipAxis,P=R.activeTooltipIndex,O=R.activeLabel,L=_.props.children,F=hs(L,tl),D=A.props,I=D.points,N=D.isRange,G=D.baseLine,q=A.item.type.defaultProps!==void 0?me(me({},A.item.type.defaultProps),A.item.props):A.item.props,W=q.activeDot,Y=q.hide,te=q.activeBar,Q=q.activeShape,X=!!(!Y&&j&&F&&(W||te||Q)),ae={};C!=="axis"&&F&&F.props.trigger==="click"?ae={onClick:ob(_.handleItemMouseEnter,S.props.onClick)}:C!=="axis"&&(ae={onMouseLeave:ob(_.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:ob(_.handleItemMouseEnter,S.props.onMouseEnter)});var J=E.cloneElement(S,me(me({},A.props),ae));function ue(pe){return typeof k.dataKey=="function"?k.dataKey(pe.payload):null}if(X)if(P>=0){var de,H;if(k.dataKey&&!k.allowDuplicatedCategory){var _e=typeof k.dataKey=="function"?ue:"payload.".concat(k.dataKey.toString());de=kR(I,_e,O),H=N&&G&&kR(G,_e,O)}else de=I==null?void 0:I[P],H=N&&G&&G[P];if(Q||te){var he=S.props.activeIndex!==void 0?S.props.activeIndex:P;return[E.cloneElement(S,me(me(me({},A.props),ae),{},{activeIndex:he})),null,null]}if(!en(de))return[J].concat(sp(_.renderActivePoints({item:A,activePoint:de,basePoint:H,childIndex:P,isRange:N})))}else{var xe,we=(xe=_.getItemByXY(_.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:J},ne=we.graphicalItem,Pe=ne.item,$=Pe===void 0?S:Pe,B=ne.childIndex,re=me(me(me({},A.props),ae),{},{activeIndex:B});return[E.cloneElement($,re),null,null]}return N?[J,null,null]:[J,null]}),ft(_,"renderCustomized",function(S,T,M){return E.cloneElement(S,me(me({key:"recharts-customized-".concat(M)},_.props),_.state))}),ft(_,"renderMap",{CartesianGrid:{handler:db,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:db},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:db},YAxis:{handler:db},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:i2("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=oQ(_.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),_.state={},_}return T9e(y,g),w9e(y,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,_=x.data,S=x.height,T=x.layout,M=hs(w,tl);if(M){var A=M.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,R=ej(this.state,_,A,C),j=this.state.tooltipTicks[A].coordinate,k=(this.state.offset.top+S)/2,P=T==="horizontal",O=P?{x:j,y:k}:{y:j,x:k},L=this.state.formattedGraphicalItems.find(function(D){var I=D.item;return I.type.name==="Scatter"});L&&(O=me(me({},O),L.props.points[A].tooltipPosition),R=L.props.points[A].tooltipPayload);var F={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:C,activePayload:R,activeCoordinate:O};this.setState(F),this.renderCursor(M),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var _,S;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(x){IR([hs(x.children,tl)],[hs(this.props.children,tl)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=hs(this.props.children,tl);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return a.indexOf(w)>=0?w:s}return s}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,_=w.getBoundingClientRect(),S=FIe(_),T={chartX:Math.round(x.pageX-S.left),chartY:Math.round(x.pageY-S.top)},M=_.width/w.offsetWidth||1,A=this.inRange(T.chartX,T.chartY,M);if(!A)return null;var C=this.state,R=C.xAxisMap,j=C.yAxisMap,k=this.getTooltipEventType(),P=nz(this.state,this.props.data,this.props.layout,A);if(k!=="axis"&&R&&j){var O=ac(R).scale,L=ac(j).scale,F=O&&O.invert?O.invert(T.chartX):null,D=L&&L.invert?L.invert(T.chartY):null;return me(me({},T),{},{xValue:F,yValue:D},P)}return P?me(me({},T),P):null}},{key:"inRange",value:function(x,w){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,T=x/_,M=w/_;if(S==="horizontal"||S==="vertical"){var A=this.state.offset,C=T>=A.left&&T<=A.left+A.width&&M>=A.top&&M<=A.top+A.height;return C?{x:T,y:M}:null}var R=this.state,j=R.angleAxisMap,k=R.radiusAxisMap;if(j&&k){var P=ac(j);return U6({x:T,y:M},P)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),_=hs(x,tl),S={};_&&w==="axis"&&(_.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var T=j1(this.props,this.handleOuterEvent);return me(me({},T),S)}},{key:"addListener",value:function(){iA.on(sA,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){iA.removeListener(sA,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,_){for(var S=this.state.formattedGraphicalItems,T=0,M=S.length;T<M;T++){var A=S[T];if(A.item===x||A.props.key===x.key||w===gl(A.item.type)&&_===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,_=w.left,S=w.top,T=w.height,M=w.width;return V.createElement("defs",null,V.createElement("clipPath",{id:x},V.createElement("rect",{x:_,y:S,height:T,width:M})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,_){var S=JB(_,2),T=S[0],M=S[1];return me(me({},w),{},ft({},T,M.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,_){var S=JB(_,2),T=S[0],M=S[1];return me(me({},w),{},ft({},T,M.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,_=w.formattedGraphicalItems,S=w.activeItem;if(_&&_.length)for(var T=0,M=_.length;T<M;T++){var A=_[T],C=A.props,R=A.item,j=R.type.defaultProps!==void 0?me(me({},R.type.defaultProps),R.props):R.props,k=gl(R.type);if(k==="Bar"){var P=(C.data||[]).find(function(D){return pBe(x,D)});if(P)return{graphicalItem:A,payload:P}}else if(k==="RadialBar"){var O=(C.data||[]).find(function(D){return U6(x,D)});if(O)return{graphicalItem:A,payload:O}}else if(S2(A,S)||E2(A,S)||s0(A,S)){var L=yze({graphicalItem:A,activeTooltipItem:S,itemData:j.data}),F=j.activeIndex===void 0?L:j.activeIndex;return{graphicalItem:me(me({},A),{},{childIndex:F}),payload:s0(A,S)?j.data[L]:A.props.data[L]}}}return null}},{key:"render",value:function(){var x=this;if(!PF(this))return null;var w=this.props,_=w.children,S=w.className,T=w.width,M=w.height,A=w.style,C=w.compact,R=w.title,j=w.desc,k=ez(w,m9e),P=Jt(k,!1);if(C)return V.createElement(FB,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement(DR,Nf({},P,{width:T,height:M,title:R,desc:j}),this.renderClipPath(),NF(_,this.renderMap)));if(this.props.accessibilityLayer){var O,L;P.tabIndex=(O=this.props.tabIndex)!==null&&O!==void 0?O:0,P.role=(L=this.props.role)!==null&&L!==void 0?L:"application",P.onKeyDown=function(D){x.accessibilityManager.keyboardEvent(D)},P.onFocus=function(){x.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return V.createElement(FB,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement("div",Nf({className:Gt("recharts-wrapper",S),style:me({position:"relative",cursor:"default",width:T,height:M},A)},F,{ref:function(I){x.container=I}}),V.createElement(DR,Nf({},P,{width:T,height:M,title:R,desc:j,style:j9e}),this.renderClipPath(),NF(_,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(E.Component);ft(v,"displayName",n),ft(v,"defaultProps",me({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),ft(v,"getDerivedStateFromProps",function(g,y){var b=g.dataKey,x=g.data,w=g.children,_=g.width,S=g.height,T=g.layout,M=g.stackOffset,A=g.margin,C=y.dataStartIndex,R=y.dataEndIndex;if(y.updateId===void 0){var j=rz(g);return me(me(me({},j),{},{updateId:0},m(me(me({props:g},j),{},{updateId:0}),y)),{},{prevDataKey:b,prevData:x,prevWidth:_,prevHeight:S,prevLayout:T,prevStackOffset:M,prevMargin:A,prevChildren:w})}if(b!==y.prevDataKey||x!==y.prevData||_!==y.prevWidth||S!==y.prevHeight||T!==y.prevLayout||M!==y.prevStackOffset||!Zf(A,y.prevMargin)){var k=rz(g),P={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},O=me(me({},nz(y,x,T)),{},{updateId:y.updateId+1}),L=me(me(me({},k),P),O);return me(me(me({},L),m(me({props:g},L),y)),{},{prevDataKey:b,prevData:x,prevWidth:_,prevHeight:S,prevLayout:T,prevStackOffset:M,prevMargin:A,prevChildren:w})}if(!IR(w,y.prevChildren)){var F,D,I,N,G=hs(w,Km),q=G&&(F=(D=G.props)===null||D===void 0?void 0:D.startIndex)!==null&&F!==void 0?F:C,W=G&&(I=(N=G.props)===null||N===void 0?void 0:N.endIndex)!==null&&I!==void 0?I:R,Y=q!==C||W!==R,te=!en(x),Q=te&&!Y?y.updateId:y.updateId+1;return me(me({updateId:Q},m(me(me({props:g},y),{},{updateId:Q,dataStartIndex:q,dataEndIndex:W}),y)),{},{prevChildren:w,dataStartIndex:q,dataEndIndex:W})}return null}),ft(v,"renderActiveDot",function(g,y,b){var x;return E.isValidElement(g)?x=E.cloneElement(g,y):Nt(g)?x=g(y):x=V.createElement(TZ,y),V.createElement(Rr,{className:"recharts-active-dot",key:b},x)});var p=E.forwardRef(function(y,b){return V.createElement(v,Nf({},y,{ref:b}))});return p.displayName=v.displayName,p},$9e=z9e({chartName:"BarChart",GraphicalChild:bh,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:P2},{axisType:"yAxis",AxisComp:j2}],formatAxisMap:H8e});const H9e={light:"",dark:".dark"},gJ=E.createContext(null);function vJ(){const t=E.useContext(gJ);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}const yJ=E.forwardRef(({id:t,className:e,children:n,config:r,...i},s)=>{const o=E.useId(),a=`chart-${t||o.replace(/:/g,"")}`;return l.jsx(gJ.Provider,{value:{config:r},children:l.jsxs("div",{"data-chart":a,ref:s,className:He("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",e),...i,children:[l.jsx(V9e,{id:a,config:r}),l.jsx(aQ,{children:n})]})})});yJ.displayName="Chart";const V9e=({id:t,config:e})=>{const n=Object.entries(e).filter(([r,i])=>i.theme||i.color);return n.length?l.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(H9e).map(([r,i])=>` 5805${i} [data-chart=${t}] { 5806${n.map(([s,o])=>{var c;const a=((c=o.theme)==null?void 0:c[r])||o.color;return a?` --color-${s}: ${a};`:null}).join(` 5807`)} 5808} 5809`).join(` 5810`)}}):null},W9e=E.forwardRef(({active:t,payload:e,className:n,indicator:r="dot",hideLabel:i=!1,hideIndicator:s=!1,label:o,labelFormatter:a,labelClassName:c,formatter:u,color:d,nameKey:h,labelKey:f},m)=>{const{config:v}=vJ(),p=E.useMemo(()=>{var _;if(i||!(e!=null&&e.length))return null;const[y]=e,b=`${f||y.dataKey||y.name||"value"}
5810`,x=tj(v,y,b),w=!f&&typeof o=="string"?((_=v[o])==null?void 0:_.label)||o:x==null?void 0:x.label;return a?l.jsx("div",{className:He("font-medium",c),children:a(w,e)}):w?l.jsx("div",{className:He("font-medium",c),children:w}):null},[o,a,e,i,c,v,f]);if(!t||!(e!=null&&e.length))return null;const g=e.length===1&&r!=="dot";return l.jsxs("div",{ref:m,className:He("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[g?null:p,l.jsx("div",{className:"grid gap-1.5",children:e.map((y,b)=>{const x=`${h||y.name||y.dataKey||"value"}`,w=tj(v,y,x),_=d||y.payload.fill||y.color;return l.jsx("div",{className:He("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:u&&(y==null?void 0:y.value)!==void 0&&y.name?u(y.value,y.name,y,b,y.payload):l.jsxs(l.Fragment,{children:[w!=null&&w.icon?l.jsx(w.icon,{}):!s&&l.jsx("div",{className:He("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":g&&r==="dashed"}),style:{"--color-bg":_,"--color-border":_}}),l.jsxs("div",{className:He("flex flex-1 justify-between leading-none",g?"items-end":"items-center"),children:[l.jsxs("div",{className:"grid gap-1.5",children:[g?p:null,l.jsx("span",{className:"text-muted-foreground",children:(w==null?void 0:w.label)||y.name})]}),y.value&&l.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});W9e.displayName="ChartTooltip";const G9e=E.forwardRef(({className:t,hideIcon:e=!1,payload:n,verticalAlign:r="bottom",nameKey:i},s)=>{const{config:o}=vJ();return n!=null&&n.length?l.jsx("div",{ref:s,className:He("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",t),children:n.map(a=>{const c=`${i||a.dataKey||"value"}`,u=tj(o,a,c);return l.jsxs("div",{className:He("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[u!=null&&u.icon&&!e?l.jsx(u.icon,{}):l.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:a.color}}),u==null?void 0:u.label]},a.value)})}):null});G9e.displayName="ChartLegend";function tj(t,e,n){if(typeof e!="object"||e===null)return;const r="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let i=n;return n in e&&typeof e[n]=="string"?i=e[n]:r&&n in r&&typeof r[n]=="string"&&(i=r[n]),i in t?t[i]:t[n]}const q9e=12,xJ=300,k2="226, 98, 138",Y9e=768,X9e=(t,e,n=k2)=>{const r=document.createElement("div");return r.className="particle",r.style.cssText=` 5811 position: absolute; 5812 width: 4px; 5813 height: 4px; 5814 border-radius: 50%; 5815 background: rgba(${n}, 1); 5816 box-shadow: 0 0 6px rgba(${n}, 0.6); 5817 pointer-events: none; 5818 z-index: 100; 5819 left: ${t}px; 5820 top: ${e}px; 5821 `,r},K9e=t=>({proximity:t*.5,fadeDistance:t*.75}),Q9e=(t,e,n,r,i)=>{const s=t.getBoundingClientRect(),o=(e-s.left)/s.width*100,a=(n-s.top)/s.height*100;t.style.setProperty("--glow-x",`${o}%`),t.style.setProperty("--glow-y",`${a}%`),t.style.setProperty("--glow-intensity",r.toString()),t.style.setProperty("--glow-radius",`${i}px`)},za=({children:t,className:e="",disableAnimations:n=!1,style:r,particleCount:i=q9e,glowColor:s=k2,enableTilt:o=!0,clickEffect:a=!1,enableMagnetism:c=!1})=>{const u=E.useRef(null),d=E.useRef([]),h=E.useRef([]),f=E.useRef(!1),m=E.useRef([]),v=E.useRef(!1),p=E.useRef(null),g=E.useCallback(()=>{if(v.current||!u.current)return;const{width:x,height:w}=u.current.getBoundingClientRect();m.current=Array.from({length:i},()=>X9e(Math.random()*x,Math.random()*w,s)),v.current=!0},[i,s]),y=E.useCallback(()=>{var x;h.current.forEach(clearTimeout),h.current=[],(x=p.current)==null||x.kill(),d.current.forEach(w=>{mn.to(w,{scale:0,opacity:0,duration:.3,ease:"back.in(1.7)",onComplete:()=>{var _;(_=w.parentNode)==null||_.removeChild(w)}})}),d.current=[]},[]),b=E.useCallback(()=>{!u.current||!f.current||(v.current||g(),m.current.forEach((x,w)=>{const _=setTimeout(()=>{if(!f.current||!u.current)return;const S=x.cloneNode(!0);u.current.appendChild(S),d.current.push(S),mn.fromTo(S,{scale:0,opacity:0}
5821,{scale:1,opacity:1,duration:.3,ease:"back.out(1.7)"}),mn.to(S,{x:(Math.random()-.5)*100,y:(Math.random()-.5)*100,rotation:Math.random()*360,duration:2+Math.random()*2,ease:"none",repeat:-1,yoyo:!0}),mn.to(S,{opacity:.3,duration:1.5,ease:"power2.inOut",repeat:-1,yoyo:!0})},w*100);h.current.push(_)}))},[g]);return E.useEffect(()=>{if(n||!u.current)return;const x=u.current,w=()=>{f.current=!0,b(),o&&mn.to(x,{rotateX:5,rotateY:5,duration:.3,ease:"power2.out",transformPerspective:1e3})},_=()=>{f.current=!1,y(),o&&mn.to(x,{rotateX:0,rotateY:0,duration:.3,ease:"power2.out"}),c&&mn.to(x,{x:0,y:0,duration:.3,ease:"power2.out"})},S=M=>{if(!o&&!c)return;const A=x.getBoundingClientRect(),C=M.clientX-A.left,R=M.clientY-A.top,j=A.width/2,k=A.height/2;if(o){const P=(R-k)/k*-10,O=(C-j)/j*10;mn.to(x,{rotateX:P,rotateY:O,duration:.1,ease:"power2.out",transformPerspective:1e3})}if(c){const P=(C-j)*.05,O=(R-k)*.05;p.current=mn.to(x,{x:P,y:O,duration:.3,ease:"power2.out"})}},T=M=>{if(!a)return;const A=x.getBoundingClientRect(),C=M.clientX-A.left,R=M.clientY-A.top,j=Math.max(Math.hypot(C,R),Math.hypot(C-A.width,R),Math.hypot(C,R-A.height),Math.hypot(C-A.width,R-A.height)),k=document.createElement("div");k.style.cssText=` 5822 position: absolute; 5823 width: ${j*2}px; 5824 height: ${j*2}px; 5825 border-radius: 50%; 5826 background: radial-gradient(circle, rgba(${s}, 0.4) 0%, rgba(${s}, 0.2) 30%, transparent 70%); 5827 left: ${C-j}px; 5828 top: ${R-j}px; 5829 pointer-events: none; 5830 z-index: 1000; 5831 `,x.appendChild(k),mn.fromTo(k,{scale:0,opacity:1},{scale:1,opacity:0,duration:.8,ease:"power2.out",onComplete:()=>k.remove()})};return x.addEventListener("mouseenter",w),x.addEventListener("mouseleave",_),x.addEventListener("mousemove",S),x.addEventListener("click",T),()=>{f.current=!1,x.removeEventListener("mouseenter",w),x.removeEventListener("mouseleave",_),x.removeEventListener("mousemove",S),x.removeEventListener("click",T),y()}},[b,y,n,o,c,a,s]),l.jsx("div",{ref:u,className:`${e} particle-container`,style:{...r,position:"relative",overflow:"hidden"},children:t})},Z9e=({gridRef:t,disableAnimations:e=!1,enabled:n=!0,spotlightRadius:r=xJ,glowColor:i=k2})=>{const s=E.useRef(null),o=E.useRef(!1);return E.useEffect(()=>{if(e||!(t!=null&&t.current)||!n)return;const a=document.createElement("div");a.className="global-spotlight",a.style.cssText=` 5832 position: fixed; 5833 width: 800px; 5834 height: 800px; 5835 border-radius: 50%; 5836 pointer-events: none; 5837 background: radial-gradient(circle, 5838 rgba(${i}, 0.15) 0%, 5839 rgba(${i}, 0.08) 15%, 5840 rgba(${i}, 0.04) 25%, 5841 rgba(${i}, 0.02) 40%, 5842 rgba(${i}, 0.01) 65%, 5843 transparent 70% 5844 ); 5845 z-index: 200; 5846 opacity: 0; 5847 transform: translate(-50%, -50%); 5848 mix-blend-mode: screen; 5849 `,document.body.appendChild(a),s.current=a;const c=d=>{if(!s.current||!t.current)return;const h=t.current.closest(".bento-section"),f=h==null?void 0:h.getBoundingClientRect(),m=f&&d.clientX>=f.left&&d.clientX<=f.right&&d.clientY>=f.top&&d.clientY<=f.bottom;o.current=m||!1;const v=t.current.querySelectorAll(".magic-bento-card");if(!m){mn.to(s.current,{opacity:0,duration:.3,ease:"power2.out"}),v.forEach(x=>{x.style.setProperty("--glow-intensity","0")});return}const{proximity:p,fadeDistance:g}=K9e(r);let y=1/0;v.forEach(x=>{const w=x,_=w.getBoundingClientRect(),S=_.left+_.width/2,T=_.top+_.height/2,M=Math.hypot(d.clientX-S,d.clientY-T)-Math.max(_.width,_.height)/2,A=Math.max(0,M);y=Math.min(y,A);let C=0;A<=p?C=1:A<=g&&(C=(g-A)/(g-p)),Q9e(w,d.clientX,d.clientY,C,r)}),mn.to(s.current,{left:d.clientX,top:d.clientY,duration:.1,ease:"power2.out"});const b=y<=p?.8:y<=g?(g-y)/(g-p)*.8:0;mn.to(s.current,{opacity:b,duration:b>0?.2:.5,ease:"power2.out"})},u=()=>{var d;o.current=!1,(d=t.current)==null||d.querySelectorAll(".magic-bento-card").forEach(h=>{h.style.setProperty("--glow-intensity","0")}),s.current&&mn.to(s.current,{opacity:0,duration:.3,ease:"power2.out"})};return document.addEventListener("mousemove",c),document.addEventListener("mouseleave",u),()=>{var d,h;document.removeEventListener("mousemove",c),document.removeEventListener("mouseleave",u),(h=(d=s.current)==null?void 0:d.parentNode)==null||h.removeChild(s.current)}},[t,e,n,r,i]),null},J9e=({children:t,gridRef:e,className:n=""})=>l.jsx("div",{className:`card-grid bento-section ${n}`,ref:e,children:t}),eHe=()=>{const[t,e]=E.useState(!1);return E.useEffect(()=>{const n=()=>e(window.innerWidth<=Y9e);
5849return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),t},tHe=({children:t,enableSpotlight:e=!0,disableAnimations:n=!1,spotlightRadius:r=xJ,glowColor:i=k2,className:s=""})=>{const o=E.useRef(null),a=eHe(),c=n||a;return l.jsxs(l.Fragment,{children:[e&&l.jsx(Z9e,{gridRef:o,disableAnimations:c,enabled:e,spotlightRadius:r,glowColor:i}),l.jsx(J9e,{gridRef:o,className:s,children:t})]})},nHe=({className:t,size:e=200,duration:n=15,borderWidth:r=1.5,anchor:i=90,colorFrom:s="#E2628A",colorTo:o="#6200EE",delay:a=0})=>l.jsx("div",{style:{"--size":e,"--duration":`${n}s`,"--anchor":i,"--border-width":r,"--color-from":s,"--color-to":o,"--delay":`${a}s`},className:He("pointer-events-none absolute inset-0 rounded-[inherit]","[border:calc(var(--border-width)*1px)_solid_transparent]","![mask-clip:padding-box,border-box] ![mask-composite:intersect] [mask:linear-gradient(transparent,transparent),linear-gradient(white,white)]","after:absolute after:aspect-square after:w-[calc(var(--size)*1px)] after:animate-border-beam after:[animation-delay:var(--delay)]","after:[background:linear-gradient(to_left,transparent,var(--color-from),var(--color-to),transparent)]","after:[offset-anchor:calc(var(--anchor)*1%)_50%] after:[offset-path:rect(0_auto_auto_0_round_calc(var(--size)*1px))]",t)}),M_=({text:t,disabled:e=!1,speed:n=5,className:r=""})=>{const i=`${n}s`;return l.jsx("div",{className:`shiny-text ${e?"disabled":""} ${r}`,style:{animationDuration:i},children:t})},bJ="ffceljdacbcfpajkaceodijbiodkokmj",rHe="https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj";function iHe(){const t=navigator.userAgent;return t.includes("Chrome")&&!t.includes("Edg")&&!t.includes("OPR")&&!t.includes("Brave")}async function wJ(){return new Promise(t=>{const e=window.chrome;if(typeof e>"u"||!(e!=null&&e.runtime)){t(!1);return}try{e.runtime.sendMessage(bJ,{action:"ping"},n=>{var r;(r=e.runtime)!=null&&r.lastError?t(!1):t(n&&n.success)})}catch{t(!1)}setTimeout(()=>t(!1),1e3)})}const sHe=()=>{var Qe,at;const{user:t,loading:e,updatePassword:n}=Tl(),r=du(),[i,s]=E.useState(null),{formatPrice:o}=VX(),{toast:a}=lu(),[c,u]=E.useState(!1),[d,h]=E.useState(""),[f,m]=E.useState(""),[v,p]=E.useState(""),[g,y]=E.useState(""),[b,x]=E.useState(!1),[w,_]=E.useState(!1),[S,T]=E.useState(!1),[M,A]=E.useState(!0),[C,R]=E.useState(!1),[j,k]=E.useState(!1),[P,O]=E.useState(!1),[L,F]=E.useState({message:""}),[D,I]=E.useState({message:"",rating:0}),[N,G]=E.useState(!1),[q,W]=E.useState(!0),[Y,te]=E.useState(!1);E.useEffect(()=>{!e&&!t&&r("/auth")},[t,e,r]),E.useEffect(()=>{R(iHe()),wJ().then(A)},[]);const{subscriptionTier:Q,subscribed:X,subscriptionEnd:ae,createCheckout:J,openCustomerPortal:ue,isFreeTier:de,isPlusTier:H,isMaxTier:_e}=RO(),he=((Qe=t==null?void 0:t.app_metadata)==null?void 0:Qe.provider)&&t.app_metadata.provider!=="email",{data:xe,isLoading:we}=Cce({queryKey:["profile",t==null?void 0:t.id],queryFn:async()=>{if(!t)return null;const{data:oe,error:rt}=await Yt.from("profiles").select("*").eq("user_id",t.id).single();if(rt)throw rt;return oe},enabled:!!t}),ne=oe=>{if(!oe||typeof oe!="object"||Array.isArray(oe))return{};const rt={};for(const[qe,We]of Object.entries(oe)){if(typeof We=="number"&&Number.isFinite(We)){rt[qe]=We;continue}if(typeof We=="string"){const ke=Number(We);Number.isFinite(ke)&&(rt[qe]=ke);continue}if(We&&typeof We=="object"&&!Array.isArray(We)){const ke=We,it=["count","uses","total","value"].find(vt=>typeof ke[vt]=="number"&&Number.isFinite(ke[vt]));it&&(rt[qe]=ke[it])}}return rt},Pe=xe?{totalSessions:xe.total_sessions||0,totalTime:xe.total_time_minutes||0,filterUsage:ne(xe.filter_usage),lastSync:xe.last_sync_date}:null;E.useEffect(()=>{(xe==null?void 0:xe.marketing_emails)!==void 0&&W(xe.marketing_emails)},[xe]);
5849const $=async oe=>{te(!0);try{const{data:rt,error:qe}=await Yt.rpc("check_marketing_email_rate_limit",{p_user_id:t==null?void 0:t.id});if(qe)throw qe;const We=rt;if(!We.allowed){a({title:"Rate limit reached",description:We.message,variant:"destructive"});return}const{error:ke}=await Yt.from("profiles").update({marketing_emails:oe}).eq("user_id",t==null?void 0:t.id);if(ke)throw ke;W(oe),a({title:oe?"Subscribed":"Unsubscribed",description:oe?"You'll receive updates about new features and news.":"You've been unsubscribed from marketing emails."}),We.remaining<=2&&We.remaining>0&&setTimeout(()=>{a({title:"Note",description:`${We.remaining} email preference change${We.remaining===1?"":"s"} remaining today.`})},1500)}catch(rt){console.error("Email preference error:",rt),a({title:"Error",description:"Failed to update email preferences. Please try again.",variant:"destructive"})}finally{te(!1)}};if(we)return l.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),l.jsx("p",{className:"text-muted-foreground",children:"Loading dashboard..."})]})});const B=oe=>{switch(oe==null?void 0:oe.toLowerCase()){case"rora-plus":return"Plus";case"rora-max":return"Max";default:return"Core"}},re=oe=>{switch(oe==null?void 0:oe.toLowerCase()){case"rora-plus":return Cse;case"rora-max":return qw;default:return EN}},pe=async oe=>
5849{try{s(oe.name);const rt=oe.stripePriceId;if(!rt)throw new Error("Price ID not configured for this plan");await J(rt)}catch(rt){console.error("Upgrade error:",rt),a({title:"Error",description:"Failed to start upgrade process. Please try again.",variant:"destructive"})}finally{s(null)}},ge=async()=>{const oe=N0(d);if(!oe.valid){p(oe.error||"");return}if(d!==f){y("Passwords do not match");return}T(!0);try{await n(d),u(!1),h(""),m(""),p(""),y("")}catch(rt){console.error("Password change error:",rt),a({title:"Error",description:rt.message||"Failed to change password",variant:"destructive"})}finally{T(!1)}},ye=async()=>{if(!L.message.trim()){a({title:"Error",description:"Please enter a message",variant:"destructive"});return}G(!0);try{const{error:oe}=await Yt.functions.invoke("send-contact-email",{body:{email:t==null?void 0:t.email,message:L.message,subject:"Contact from Dashboard"}});if(oe)throw oe;a({title:"Success",description:"Your message has been sent successfully!"}),k(!1),F({message:""})}catch(oe){console.error("Contact error:",oe),a({title:"Error",description:"Failed to send message. Please try again.",variant:"destructive"})}finally{G(!1)}},je=async()=>{if(!D.message.trim()){a({title:"Error",description:"Please enter your feedback",variant:"destructive"});return}G(!0);try{const{error:oe}=await Yt.functions.invoke("send-contact-email",{body:{email:t==null?void 0:t.email,message:`Rating: ${D.rating}/5 5850 5851${D.message}`,subject:"Feature Request / Feedback from Dashboard"}});if(oe)throw oe;a({title:"Success",description:"Thank you for your feedback!"}),O(!1),I({message:"",rating:0})}catch(oe){console.error("Feature request error:",oe),a({title:"Error",description:"Failed to send feedback. Please try again.",variant:"destructive"})}finally{G(!1)}};re(Q);const be=Pe!=null&&Pe.filterUsage?Object.entries(Pe.filterUsage).map(([oe,rt])=>({filter:oe.replace(/-/g," ").replace(/\b\w/g,qe=>qe.toUpperCase()),uses:rt})).sort((oe,rt)=>rt.uses-oe.uses).slice(0,8):[],Ae={uses:{label:"Uses",color:"hsl(var(--chart-1))"}};return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Dashboard | RORA Audio"}),l.jsx("meta",{name:"description",content:"Manage your RORA subscription, view usage stats, and customize your audio experience."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/dashboard"}),l.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-7xl",children:[l.jsxs("div",{className:"mb-8 px-4",children:[l.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-2",children:[l.jsxs("h1",{className:"text-4xl font-bold",children:[l.jsx("span",{className:"text-foreground",children:"Welcome back, "}),l.jsxs("span",{className:"bg-gradient-to-r from-[#E2628A] to-[#6200EE] bg-clip-text text-transparent",children:[(xe==null?void 0:xe.full_name)||((at=t==null?void 0:t.email)==null?void 0:at.split("@")[0]),"!"]})]}),C&&!M&&l.jsxs("a",{href:rHe,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-full bg-white/10 backdrop-blur-sm border border-white/20 px-4 py-1.5 text-sm font-medium text-foreground hover:bg-white/20 hover:border-white/30 transition-all duration-200",children:[l.jsx(Vr,{className:"h-3.5 w-3.5"}),"Add RORA to Chrome"]})]}),l.jsx("p",{className:"text-muted-foreground",children:"Manage your subscription and view your usage"})]}),l.jsxs(tHe,{enableSpotlight:!0,enableBorderGlow:!0,enableTilt:!1,enableMagnetism:!0,clickEffect:!0,spotlightRadius:300,glowColor:"226, 98, 138",className:"dashboard-bento-grid",children:[l.jsxs(za,{className:"magic-bento-card magic-bento-card--border-glow dashboard-card-subscription",particleCount:0,glowColor:"226, 98, 138",clickEffect:!1,enableTilt:!1,children:[l.jsx("div",{className:"magic-bento-card__header"}),l.jsxs("div",{className:"magic-bento-card__content flex flex-col items-center justify-center h-full gap-4",children:[l.jsx("img",{src:"/images/rora-logo-full.png",alt:"RORA",className:"w-32 h-auto"}),l.jsx("h2",{className:"text-5xl font-bold bg-gradient-to-r from-[#E2628A] to-[#6200EE] bg-clip-text text-transparent text-center leading-none",children:B(Q)})]})]}),l.jsxs(za,{className:"magic-bento-card magic-bento-card--border-glow dashboard-card-stat",particleCount:0,glowColor:"226, 98, 138",clickEffect:!1,enableTilt:!1,children:[l.jsx("div",{className:"magic-bento-card__header",children:l.jsx(gse,{className:"w-5 h-5 text-white"})}),l.jsxs("div",{className:"magic-bento-card__content space-y-3",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-2xl font-bold text-white",children:(Pe==null?void 0:Pe.totalSessions)||0}),l.jsx("p",{className:"text-xs text-neutral-400",children:"Total Sessions"})]}),l.jsxs("div",{className:"text-right",children:[l.jsxs("div",{className:"text-2xl font-bold text-white",children:[Math.round(((Pe==null?void 0:Pe.totalTime)||0)/60),"h"]}),l.jsx("p",{className:"text-xs text-neutral-400",children:"Listening Time"})]})]}),be.length>0&&l.jsxs("div",{className:"pt-2 border-t border-neutral-700",children:[l.jsx("p",{className:"text-xs text-neutral-400 mb-1",children:"Favorite Filter"}),l.jsx("div",{className:"text-lg font-semibold text-white",children:be[0].filter}),l.jsxs("p",{className:"text-xs text-neutral-500",children:[be[0].uses," uses"]})]})]})]}),l.jsx("div",{onClick:()=>k(!0),children:l.jsxs(za,{className:"magic-bento-card magic-bento-card--border-glow dashboard-card-action cursor-pointer",particleCount:0,glowColor:"226, 98, 138",clickEffect:!0,enableTilt:!1,children:[l.jsx("div",{className:"magic-bento-card__header",children:l.jsx(Dse,{className:"w-5 h-5 text-white"})}),l.jsxs("div",{className:"magic-bento-card__content",children:[l.jsx("h3",{className:"text-lg font-semibold text-white mb-1",children:"Support"}),l.jsx("p",{className:"text-sm text-neutral-400",children:"Contact us"})]})]})}),l.jsx("div",{onClick:()=>O(!0),children:l.jsxs(za,{className:"magic-bento-card magic-bento-card--border-glow dashboard-card-action cursor-pointer",particleCount:0,glowColor:"226, 98, 138",clickEffect:!0,enableTilt:!1,children:[l.jsx("div",{className:"magic-bento-card__header",children:l.jsx(Ise,{className:"w-5 h-5 text-white"})}),l.jsxs("div",{className:"magic-bento-card__content",children:[l.jsx("h3",{className:"text-lg font-semibold text-white mb-1",children:"Feedback"}),l.jsx("p",{className:"text-sm text-neutral-400",children:"Share ideas"})]})]})}),_e?l.jsx(za,{className:"magic-bento-card magic-bento-card--border-glow dashboard-card-upgrade",particleCount:0,glowColor:"226, 98, 138",clickEffect:!1,enableTilt:!1,children:l.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3 text-center",children:[l.jsx(qw,{className:"w-8 h-8 text-white"}),l.jsx("h3",{className:"text-xl font-bold text-white leading-tight",children:"Thank You for Being Part of RORA Max"}),l.jsx(M_,{text:"You have lifetime access to all features.",speed:3,className:"text-sm font-semibold"})]})}):l.jsx(za,{className:"magic-bento-card magic-bento-card--border-glow dashboard-card-upgrade",particleCount:0,glowColor:"226, 98, 138",clickEffect:!1,enableTilt:!1,children:l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"text-xl font-bold text-white leading-tight",children:"Get RORA Max"}),l.jsx("p",{className:"text-sm text-neutral-300 leading-snug mt-1",children:"Unlock all filters and features with a one-time purchase"}),l.jsx(M_,{text:"Lifetime access. No subscriptions.",speed:3,className:"text-xs font-semibold mt-2"})]}),l.jsx("div",{className:"flex flex-col gap-3 mt-3",children:l.jsx("div",{className:"relative h-9 rounded-full overflow-hidden",children:l.jsxs(Ge,{onClick:()=>pe({name:"RORA Max",stripePriceId:"price_1T8kb20iBpi4vT1YFUpSeTMg",price:10}),disabled:i==="RORA Max",size:"sm",className:"relative w-full h-full rounded-full font-semibold bg-white/20 backdrop-blur-sm border border-white/20 hover:bg-white/30 text-foreground transition-all text-xs px-2 overflow-hidden",children:[l.jsx(nHe,{size:40,duration:8,delay:1,borderWidth:1.2,anchor:90,colorFrom:"#E2628A",colorTo:"#6200EE"}),i==="RORA Max"?l.jsx(Bo,{className:"w-3 h-3 animate-spin"}):l.jsxs("span",{className:"text-xs leading-tight",children:["One Time Purchase · ",o(10)," · Lifetime"]})]})})})]})}),l.jsxs("div",{className:`col-span-1 sm:col-span-2 grid grid-cols-1 ${he?"":"sm:grid-cols-2"} gap-4`,children:[!he&&l.jsx("div",{onClick:()=>u(!0),className:"h-full",children:l.jsxs(za,{className:"magic-bento-card magic-bento-card--border-glow dashboard-card-settings curs
5851or-pointer h-full",particleCount:0,glowColor:"226, 98, 138",clickEffect:!0,enableTilt:!1,children:[l.jsx("div",{className:"magic-bento-card__header",children:l.jsx(kse,{className:"w-5 h-5 text-white"})}),l.jsxs("div",{className:"magic-bento-card__content flex flex-col justify-between flex-1",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-semibold text-white mb-1",children:"Password"}),l.jsx("p",{className:"text-sm text-neutral-400",children:"Change password"})]}),l.jsx("div",{className:"flex items-center mt-3",children:l.jsx("span",{className:"text-sm text-neutral-300",children:"Click to update"})})]})]})}),l.jsxs(za,{className:"magic-bento-card magic-bento-card--border-glow dashboard-card-settings h-full",particleCount:0,glowColor:"226, 98, 138",clickEffect:!1,enableTilt:!1,children:[l.jsx("div",{className:"magic-bento-card__header",children:l.jsx(sS,{className:"w-5 h-5 text-white"})}),l.jsxs("div",{className:"magic-bento-card__content flex flex-col justify-between flex-1",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-semibold text-white mb-1",children:"Email Preferences"}),l.jsx("p",{className:"text-sm text-neutral-400",children:"News & updates"})]}),l.jsxs("div",{className:"flex items-center justify-between mt-3",children:[l.jsx("span",{className:"text-sm text-neutral-300",children:"Marketing emails"}),l.jsxs("div",{className:"rora-toggle-container scale-[1.05] origin-right",children:[l.jsx("input",{type:"checkbox",id:"marketing-toggle",className:"rora-toggle-input",checked:q,onChange:oe=>$(oe.target.checked),disabled:Y}),l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292 142",className:"rora-toggle",children:[l.jsx("defs",{children:l.jsxs("linearGradient",{id:"rora-marketing-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[l.jsx("stop",{offset:"0%",style:{stopColor:"#E2628A"}}),l.jsx("stop",{offset:"100%",style:{stopColor:"#6200EE"}})]})}),l.jsx("path",{d:"M71 142C31.7878 142 0 110.212 0 71C0 31.7878 31.7878 0 71 0C110.212 0 119 30 146 30C173 30 182 0 221 0C260 0 292 31.7878 292 71C292 110.212 260.212 142 221 142C181.788 142 173 112 146 112C119 112 110.212 142 71 142Z",className:"rora-toggle-background",style:{fill:q?"url(#rora-marketing-gradient)":"rgba(255, 255, 255, 0.2)"}}),l.jsx("rect",{rx:"6",height:"64",width:"12",y:"39",x:"64",className:"rora-toggle-icon on",style:{fill:q?"#fff":"rgba(255, 255, 255, 0.2)"}}),l.jsx("path",{d:"M221 91C232.046 91 241 82.0457 241 71C241 59.9543 232.046 51 221 51C209.954 51 201 59.9543 201 71C201 82.0457 209.954 91 221 91ZM221 103C238.673 103 253 88.6731 253 71C253 53.3269 238.673 39 221 39C203.327 39 189 53.3269 189 71C189 88.6731 203.327 103 221 103Z",fillRule:"evenodd",className:"rora-toggle-icon off",style:{fill:q?"#E2628A":"rgba(255, 255, 255, 0.1)"}}),l.jsxs("g",{filter:"url('#goo-marketing')",children:[l.jsx("rect",{fill:"#fff",rx:"29",height:"58",width:"116",y:"42",x:"13",className:"rora-toggle-circle-center",style:{transform:q?"translateX(150px)":"translateX(0)"}}),l.jsx("rect",{fill:"#fff",rx:"58",height:"114",width:"114",y:"14",x:"14",className:"rora-toggle-circle left",style:{transform:q?"scale(0)":"scale(1)"}}),l.jsx("rect",{fill:"#fff",rx:"58",height:"114",width:"114",y:"14",x:"164",className:"rora-toggle-circle right",style:{transform:q?"scale(1)":"scale(0)"}})]}),l.jsxs("filter",{id:"goo-marketing",children:[l.jsx("feGaussianBlur",{stdDeviation:"10",result:"blur",in:"SourceGraphic"}),l.jsx("feColorMatrix",{result:"goo",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7",mode:"matrix",in:"blur"})]})]})]})]})]})]})]}),l.jsxs(za,{className:"magic-bento-card magic-bento-card--border-glow dashboard-card-chart",particleCount:0,glowColor:"226, 98, 138",clickEffect:!1,enableTilt:!1,children:[l.jsx("div",{className:"magic-bento-card__header",children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(wse,{className:"w-5 h-5 text-white"}),l.jsx("h3",{className:"text-lg font-semibold text-white",children:"Filter Usage"})]})}),l.jsx("div",{className:"magic-bento-card__content h-full",children:be.length>0?l.jsx(yJ,{config:Ae,className:"h-[200px] w-full",children:l.jsx(aQ,{width:"100%",height:"100%",children:l.jsxs($9e,{data:be,margin:{top:10,right:10,left:10,bottom:30},children:[l.jsx(tJ,{strokeDasharray:"3 3",stroke:"#525252",vertical:!1,opacity:.3}),l.jsx(P2,{dataKey:"filter",stroke:"#a3a3a3",fontSize:10,angle:-45,textAnchor:"end",height:60}),l.jsx(j2,{stroke:"#a3a3a3",fontSize:10}),l.jsx(bh,{dataKey:"uses",fill:"#d4d4d4",fillOpacity:.3,radius:[6,6,0,0],children:l.jsx(Hc,{dataKey:"uses",position:"top",fill:"#e5e5e5",fontSize:10})})]})})}):l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx("p",{className:"text-neutral-400 text-sm",children:"No usage data yet"})})})]})]})]}),l.jsx(cw,{open:c,onOpenChange:u,children:l.jsxs(gv,{className:"sm:max-w-[500px]",children:[l.jsxs(vv,{children:[l.jsx(yv,{className:"text-2xl font-bold text-center",children:"Change Password"}),l.jsx(xv,{className:"text-center",children:"Enter your new password below"})]}),l.jsxs("div",{className:"space-y-4 pt-2",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Pr,{htmlFor:"new-password",children:"New Password"}),l.jsxs("div",{className:"relative",children:[l.jsx(Ms,{id:"new-password",type:b?"text":"password",value:d,onChange:oe=>{h(oe.target.value),p("")},className:"h-12 text-base rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)] pr-10"}),l.jsx("button",{type:"button",onClick:()=>x(!b),className:"absolute right-3 top-1/2 -translate-y-1/2 text-neutral-400 hover:text-foreground",children:b?l.jsx(Em,{className:"w-4 h-4"}):l.jsx(Tm,{className:"w-4 h-4"})})]}),v&&l.jsx("p",{className:"text-sm text-red-400",children:v})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Pr,{htmlFor:"confirm-password",children:"Confirm Password"}),l.jsxs("div",{className:"relative",children:[l.jsx(Ms,{id:"confirm-password",type:w?"text":"password",value:f,onChange:oe=>{m(oe.target.value),y("")},className:"h-12 text-base rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)] pr-10"}),l.jsx("button",{type:"button",onClick:()=>_(!w),className:"absolute right-3 top-1/2 -translate-y-1/2 text-neutral-400 hover:text-foreground",children:w?l.jsx(Em,{className:"w-4 h-4"}):l.jsx(Tm,{className:"w-4 h-4"})})]}),g&&l.jsx("p",{className:"text-sm text-red-400",children:g})]}),l.jsx(Ge,{onClick:ge,disabled:S,variant:"ghost",className:"w-full h-12 text-base font-semibold rounded-full bg-white/20 backdrop-blur-sm border border-white/30 hover:bg-white/30 text-foreground",children:S?l.jsx(Bo,{className:"w-4 h-4 animate-spin"}):"Change Password"})]})]})}),l.jsx(cw,{open:j,onOpenChange:k,children:l.jsxs(gv,{className:"sm:max-w-[500px]",children:[l.jsxs(vv,{children:[l.jsx(yv,{className:"text-2xl font-bold text-center",children:"Contact Support"}),l.jsx(xv,{className:"text-center",children:"Send us a message and we'll get back to you soon"})]}),l.jsxs("div",{className:"space-y-4 pt-2",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Pr,{htmlFor:"contact-message",children:"Message"}),l.jsx(Py,{id:"contact-message",value:L.message,onChange:oe=>F({message:oe.target.value}),placeholder:"Describe your issue or question...",rows:5,className:"text-base rounded-3xl bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)] resize-none"})]}),l.jsx(Ge,{onClick:ye,disabled:N,variant:"ghost",className:"w-full h-12 text-base font-semibold rounded-full bg-white/20 backdrop-blur-sm border border-white/30 hover:bg-white/30 text-foreground",children:N?l.jsx(Bo,{className:"w-4 h-4 animate-spin"}):"Send Message"})]})]})}),l.jsx(cw,{open:P,onOpenChange:O,children:l.jsxs(gv,{className:"sm:max-w-[500px]",children:[l.jsxs(vv,{children:[l.jsx(yv,{className:"text-2xl font-bold text-center",children:"Feature Request & Feedback"}),l.jsx(xv,{className:"text-center",children:"Share your ideas and feedback with us"})]}),l.jsxs("div",{className:"space-y-4 pt-2",children:[l.jsx("div",{className:"flex justify-center",children:l.jsx("div",{className:"rating",children:[5,4,3,2,1].map(oe=>l.jsxs(V.Fragment,{children:[l.jsx("input",{type:"radio",id:`star${oe}
5851`,name:"rating",value:oe,checked:D.rating===oe,onChange:()=>I({...D,rating:oe})}),l.jsx("label",{htmlFor:`star${oe}`})]},oe))})}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Pr,{htmlFor:"feature-message",children:"Your Feedback"}),l.jsx(Py,{id:"feature-message",value:D.message,onChange:oe=>I({...D,message:oe.target.value}),placeholder:"Share your ideas or feedback...",rows:5,className:"text-base rounded-3xl bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)] resize-none"})]}),l.jsx(Ge,{onClick:je,disabled:N,variant:"ghost",className:"w-full h-12 text-base font-semibold rounded-full bg-white/20 backdrop-blur-sm border border-white/30 hover:bg-white/30 text-foreground",children:N?l.jsx(Bo,{className:"w-4 h-4 animate-spin"}):"Submit Feedback"})]})]})})]})]})},Ai=E.forwardRef(({className:t,...e},n)=>l.jsx("div",{ref:n,className:He("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));Ai.displayName="Card";const nh=E.forwardRef(({className:t,...e},n)=>l.jsx("div",{ref:n,className:He("flex flex-col space-y-1.5 p-6",t),...e}));nh.displayName="CardHeader";const rh=E.forwardRef(({className:t,...e},n)=>l.jsx("h3",{ref:n,className:He("text-2xl font-semibold leading-none tracking-tight",t),...e}));rh.displayName="CardTitle";const ih=E.forwardRef(({className:t,...e},n)=>l.jsx("p",{ref:n,className:He("text-sm text-muted-foreground",t),...e}));ih.displayName="CardDescription";const wa=E.forwardRef(({className:t,...e},n)=>l.jsx("div",{ref:n,className:He("p-6 pt-0",t),...e}));wa.displayName="CardContent";const oHe=E.forwardRef(({className:t,...e},n)=>l.jsx("div",{ref:n,className:He("flex items-center p-6 pt-0",t),...e}));oHe.displayName="CardFooter";const Tt=({children:t,blur:e=!1,duration:n=1e3,easing:r="ease-out",delay:i=0,threshold:s=.1,initialOpacity:o=0,className:a=""})=>{const[c,u]=E.useState(!1),d=E.useRef(null);return E.useEffect(()=>{if(!d.current)return;const h=new IntersectionObserver(([f])=>{f.isIntersecting&&(h.unobserve(d.current),setTimeout(()=>{u(!0)},i))},{threshold:s});return h.observe(d.current),()=>h.disconnect()},[s,i]),l.jsx("div",{ref:d,className:a,style:{opacity:c?1:o,transition:`opacity ${n}ms ${r}, filter ${n}ms ${r}`,filter:e?c?"blur(0px)":"blur(10px)":"none"},children:t})},_J=()=>{const[t,e]=E.useState(!1),[n,r]=E.useState(null),i="6LcMHQksAAAAAF9YAkdZJzQMC45gw2TsotxAmub_";return E.useEffect(()=>{if(window.grecaptcha){e(!0);return}const o=document.createElement("script");return o.src=`https://www.google.com/recaptcha/api.js?render=${i}`,o.async=!0,o.defer=!0,o.onload=()=>{console.log("reCAPTCHA script loaded successfully"),e(!0)},o.onerror=()=>{const a="Failed to load reCAPTCHA script";console.error(a),r(a)},document.head.appendChild(o),()=>{const a=document.querySelector('script[src^="https://www.google.com/recaptcha/api.js"]');a&&a.remove()}},[i]),{executeRecaptcha:E.useCallback(async o=>{if(!t)throw new Error("reCAPTCHA not loaded yet");return new Promise((a,c)=>{window.grecaptcha.ready(()=>{window.grecaptcha.execute(i,{action:o}).then(u=>{console.log(`reCAPTCHA token generated for action: ${o}`),a(u)}).catch(u=>{console.error("reCAPTCHA execution failed:",u),c(u)})})})},[i,t]),isLoaded:t,error:n}};function SJ(){return typeof window<"u"&&window.gtag!==void 0&&sY()==="accepted"}function Nu(t,e){if(SJ())try{window.gtag("event",t,e)}catch(n){console.warn("Analytics event failed:",n)}}function O2(){const t=uu();E.useEffect(()=>{if(!SJ())return;const c=setTimeout(()=>{window.gtag("config","G-LH0DY3MY81",{page_path:t.pathname+t.search,page_title:document.title})},100);return()=>clearTimeout(c)},[t.pathname,t.search]);const e=E.useCallback((c,u)=>{Nu(c,u)},[]),n=E.useCallback((c="email")=>{Nu("sign_up",{method:c})},[]),r=E.useCallback((c="email")=>{Nu("login",{method:c})},[]),i=E.useCallback((c,u,d="USD")=>{Nu("begin_checkout",{currency:d,value:u,items:[{item_id:c.toLowerCase().replace(/\s+/g,"-"),item_name:c,price:u,quantity:1}]})},[]),s=E.useCallback((c,u,d,h="USD")=>{Nu("purchase",{transaction_id:d||`rora-${Date.now()}`,currency:h,value:u,items:[{item_id:c.toLowerCase().replace(/\s+/g,"-"),item_name:c,price:u,quantity:1}]})},[]),o=E.useCallback((c="unknown")=>{Nu("extension_click",{click_location:c,link_url:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj"})},[]),a=E.useCallback((c,u)=>{Nu("view_item",{content_type:c,content_id:u})},[]);return{trackEvent:e,trackSignUp:n,trackLogin:r,trackBeginCheckout:i,trackPurchase:s,trackExtensionCl
5851ick:o,trackViewContent:a}}const aHe=()=>l.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M17.64 9.20454C17.64 8.56636 17.5827 7.95273 17.4764 7.36364H9V10.845H13.8436C13.635 11.97 13.0009 12.9232 12.0477 13.5614V15.8195H14.9564C16.6582 14.2527 17.64 11.9455 17.64 9.20454Z",fill:"#4285F4"}),l.jsx("path",{d:"M9 18C11.43 18 13.4673 17.1941 14.9564 15.8195L12.0477 13.5614C11.2418 14.1014 10.2109 14.4205 9 14.4205C6.65591 14.4205 4.67182 12.8373 3.96409 10.71H0.957275V13.0418C2.43818 15.9832 5.48182 18 9 18Z",fill:"#34A853"}),l.jsx("path",{d:"M3.96409 10.71C3.78409 10.17 3.68182 9.59318 3.68182 9C3.68182 8.40682 3.78409 7.83 3.96409 7.29V4.95818H0.957275C0.347727 6.17318 0 7.54773 0 9C0 10.4523 0.347727 11.8268 0.957275 13.0418L3.96409 10.71Z",fill:"#FBBC05"}),l.jsx("path",{d:"M9 3.57955C10.3214 3.57955 11.5077 4.03364 12.4405 4.92545L15.0218 2.34409C13.4632 0.891818 11.4259 0 9 0C5.48182 0 2.43818 2.01682 0.957275 4.95818L3.96409 7.29C4.67182 5.16273 6.65591 3.57955 9 3.57955Z",fill:"#EA4335"})]}),lHe=()=>l.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M14.6157 17.3906C13.7907 18.2156 12.8782 18.1281 12.0032 17.7656C11.0782 17.3906 10.2282 17.3781 9.24069 17.7656C8.00319 18.2656 7.34069 18.1531 6.60319 17.3906C2.41569 13.1031 3.02819 6.62812 7.81569 6.39062C8.90319 6.44062 9.64069 6.97812 10.2532 7.01562C11.1907 6.84062 12.0907 6.28062 13.1032 6.34062C14.3157 6.42812 15.2407 6.87812 15.8782 7.70312C12.9282 9.42812 13.6157 13.3656 16.3282 14.4656C15.7657 15.8656 15.0282 17.2531 14.6032 17.4031L14.6157 17.3906ZM10.1407 6.34062C10.0157 4.54062 11.4407 3.04062 13.1407 2.89062C13.3907 4.96562 11.1532 6.52812 10.1407 6.34062Z"})});function cHe({isOpen:t,onClose:e,formatPrice:n}){const{user:r}=Tl(),{createCheckout:i}=RO(),{toast:s}=lu(),{executeRecaptcha:o,isLoaded:a}=_J(),{trackSignUp:c,trackLogin:u,trackBeginCheckout:d}=O2(),{signUp:h,signIn:f,signInWithOAuth:m}=Tl(),[v,p]=E.useState(1),[g,y]=E.useState(!1),[b,x]=E.useState(!1),[w,_]=E.useState(!1),[S,T]=E.useState("signup"),[M,A]=E.useState(""),[C,R]=E.useState(""),[j,k]=E.useState(""),[P,O]=E.useState(""),[L,F]=E.useState(!1);E.useEffect(()=>{r&&t&&p(2)},[r,t]),E.useEffect(()=>{r&&v===1&&p(2)},[r,v]);const D=Y=>{A(Y),k("")},I=Y=>{R(Y),O("")},N=async Y=>{var Q;const te=hy(M);if(!te.valid){k(te.error||"");return}if(Y==="signup"){const X=N0(C);if(!X.valid){O(X.error||"");return}}if(!a){s({title:"Security check loading",description:"Please wait a moment and try again",variant:"destructive"});return}y(!0);try{const X=Y==="signup"?"signup":"signin",ae=await o(X),{data:J,error:ue}=await Yt.functions.invoke("verify-recaptcha",{body:{token:ae,action:X}}),de=window.location.hostname.includes("localhost")||window.location.hostname.includes("lovable.app"),H=(Q=J==null?void 0:J.errors)==null?void 0:Q.includes("browser-error");if(ue||!(J!=null&&J.success))if(de&&H)console.warn("Bypassing reCAPTCHA in dev environment");else{s({title:"Security check failed",description:"Please try again.",variant:"destructive"});return}else if(J.score<.5){s({title:"Security check failed",description:"Unusual activity detected.",variant:"destructive"});return}if(Y==="signup"){await h(M,C),c("email"),await f(M,C);const{data:{session:_e}}=await Yt.auth.getSession()}else{await f(M,C);const{data:{session:_e}}=await Yt.auth.getSession();_e&&u("email")}}catch(X){console.error("Auth error:",X),s({title:"Authentication failed",description:X.message||"Please try again",variant:"destructive"})}finally{y(!1)}},G=async Y=>{var te;if(!a){s({title:"Security check loading",description:"Please wait a moment",variant:"destructive"});return}x(!0);try{const Q=await o("oauth_signin"),{data:X,error:ae}=await Yt.functions.invoke("verify-recaptcha",{body:{token:Q,action:"oauth_signin"}}),J=window.location.hostname.includes("localhost")||window.location.hostname.includes("lovable.app"),ue=(te=X==null?void 0:X.errors)==null?void 0:te.includes("browser-error");if(ae||!(X!=null&&X.success)||X.score&&X.score<.5)if(J&&ue)console.warn("Bypassing reCAPTCHA for OAuth in dev");else{s({title:"Security check failed",description:"Please try again.",variant:"destructive"});return}await m(Y),u(Y)}catch(Q){console.error("OAuth error:",Q),s({title:"Authentication failed",description:"Please try again",variant:"destructive"})}finally{x(!1)}},q=async()=>{_(!0);try{d("RORA Max",10,"CHF"),await i("price_1T8kb20iBpi4vT1YFUpSeTMg")}catch(Y){console.error("Checkout error:",Y),s({title:"Error",description:Y.message||"Failed to start checkout",variant:"destructive"})}finally{_(!1)}},W=Y=>{Y.key==="Enter"&&N(S)};return l.jsx(Ca,{children:t&&l.jsx(ve.div,{initial:{height:0,opacity:0}
5851,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.5,ease:[.4,0,.2,1]},className:"overflow-hidden mt-6",children:l.jsxs("div",{className:"rounded-2xl border border-border bg-background/50 backdrop-blur-xl p-6 md:p-8 max-w-md",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[l.jsxs("div",{className:`flex items-center gap-2 text-sm font-medium ${v===1?"text-foreground":"text-muted-foreground"}`,children:[l.jsx("div",{className:`w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold ${v===1?"bg-gradient-to-br from-[#E2628A] to-[#6200EE] text-white":"bg-white/20 text-muted-foreground"}`,children:v>1?l.jsx(ry,{className:"w-4 h-4"}):"1"}),"Account"]}),l.jsx("div",{className:"flex-1 h-px bg-border"}),l.jsxs("div",{className:`flex items-center gap-2 text-sm font-medium ${v===2?"text-foreground":"text-muted-foreground"}`,children:[l.jsx("div",{className:`w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold ${v===2?"bg-gradient-to-br from-[#E2628A] to-[#6200EE] text-white":"bg-white/20 text-muted-foreground"}`,children:"2"}),"Purchase"]})]}),l.jsxs(Ca,{mode:"wait",children:[v===1&&l.jsx(ve.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.3},className:"space-y-5",children:l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"space-y-3",children:[l.jsxs(Ge,{variant:"outline",onClick:()=>G("google"),disabled:b,className:"w-full h-12 bg-white hover:bg-gray-100 border-gray-300 text-gray-700 hover:text-gray-700 font-medium rounded-full shadow-sm",children:[l.jsx("span",{className:"mr-2",children:l.jsx(aHe,{})}),"Continue with Google"]}),l.jsxs(Ge,{variant:"outline",onClick:()=>G("apple"),disabled:b,className:"w-full h-12 bg-black hover:bg-gray-900 border-black text-white hover:text-white font-medium rounded-full shadow-sm",children:[l.jsx("span",{className:"mr-2 text-white",children:l.jsx(lHe,{})}),"Continue with Apple"]}),l.jsxs(Ge,{variant:"outline",onClick:()=>G("discord"),disabled:b,className:"w-full h-12 bg-[#5865F2] hover:bg-[#4752C4] border-[#5865F2] text-white hover:text-white font-medium rounded-full shadow-sm",children:[l.jsx("span",{className:"mr-2",children:l.jsx("svg",{width:"18",height:"18",viewBox:"0 0 71 55",fill:"white",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z"})})}),"Continue with Discord"]})]}),l.jsxs("div",{className:"relative",children:[l.jsx("div",{className:"absolute inset-0 flex items-center",children:l.jsx("span",{className:"w-full border-t border-border/50"})}),l.jsx("div",{className:"relative flex justify-center text-xs",children:l.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:S==="signin"?"Or sign in with email":"Or create with email"})})]}),l.jsxs("div",{role:"tablist",className:"grid w-full grid-cols-2 h-10 rounded-full p-1 bg-white/5 backdrop-blur-sm border border-white/10 overflow-hidden",children:[l.jsxs("button",{type:"button",role:"tab","aria-selected":S==="signin",onClick:()=>T("signin"),className:"relative w-full h-full rounded-full flex items-center justify-center text-sm font-semibold text-muted-foreground data-[active=true]:text-foreground","data-active":S==="signin",children:[S==="signin"&&l.jsx(ve.span,{layoutId:"wizard-auth-bubble",className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30",style:{borderRadius:9999},transition:{type:"spring",bounce:.2,duration:.5}}),l.jsx("span",{className:"relative z-20",children:"Sign In"})]}),l.jsxs("button",{type:"button",role:"tab","aria-selected":S==="signup",onClick:()=>T("signup"),className:"relative w-full h-full rounded-full flex items-center justify-center text-sm font-semibold text-muted-foreground data-[active=true]:text-foreground","data-active":S==="signup",children:[S==="signup"&&l.jsx(ve.span,{layoutId:"wizard-auth-bubble",className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30",style:{borderRadius:9999},transition:{type:"spring",bounce:.2,duration:.5}}),l.jsx("span",{className:"relative z-20",children:"Sign Up"})]})]}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(Pr,{htmlFor:"wizard-email",className:"text-sm font-medium mb-2 block",children:"Email"}),l.jsx(Ms,{id:"wizard-email",type:"email",autoComplete:"email",placeholder:"[email protected]",value:M,onChange:Y=>D(Y.target.value),onKeyDown:W,className:`h-11 rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 ${j?"border-destructive focus-visible:ring-destructive":"focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)]"}`}),j&&l.jsxs("p",{className:"text-destructive text-xs mt-1.5 flex items-center gap-1 ml-4",children:[l.jsx(Hd,{className:"w-3 h-3"})," ",j]})]}),l.jsxs("div",{children:[l.jsx(Pr,{htmlFor:"wizard-password",className:"text-sm font-medium mb-2 block",children:"Password"}),l.jsxs("div",{className:"relative",children:[l.jsx(Ms,{id:"wizard-password",type:L?"text":"password",autoComplete:S==="signin"?"current-password":"new-password",placeholder:S==="signup"?"Min. 8 characters":void 0,value:C,onChange:Y=>I(Y.target.value),onKeyDown:W,className:`h-11 rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 pr-10 ${P?"border-destructive focus-visible:ring-destructive":"focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)]"}`}),l.jsx(Ge,{type:"button",variant:"ghost",size:"icon",className:"absolute right-1 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full hover:bg-white/10",onClick:()=>F(!L),children:L?l.jsx(Em,{className:"h-4 w-4 text-muted-foreground"}):l.jsx(Tm,{className:"h-4 w-4 text-muted-foreground"})})]}),P&&l.jsxs("p",{className:"text-destructive text-xs mt-1.5 flex items-center gap-1 ml-4",children:[l.jsx(Hd,{className:"w-3 h-3"})," ",P]}),S==="signup"&&l.jsx("p",{className:"text-xs text-muted-foreground mt-1.5 ml-4",children:"Use at least 8 characters with letters and numbers"})]})]}),l.jsx(Ge,{className:"w-full h-11 rounded-full font-semibold bg-white/20 backdrop-blur-sm border border-white/30 hover:bg-white/30 text-foreground",variant:"ghost",onClick:()=>N(S),disabled:g||!M||!C||!a,children:g?l.jsxs(l.Fragment,{children:[l.jsx(Bo,{className:"mr-2 h-4 w-4 animate-spin"}
5851)," ",S==="signin"?"Signing In...":"Creating Account..."]}):S==="signin"?l.jsxs(l.Fragment,{children:[l.jsx(ry,{className:"mr-2 h-4 w-4"})," Sign In"]}):l.jsxs(l.Fragment,{children:[l.jsx(ho,{className:"mr-2 h-4 w-4"})," Create Free Account"]})}),S==="signup"&&l.jsxs("p",{className:"text-xs text-muted-foreground text-center leading-relaxed",children:["By signing up, you agree to our"," ",l.jsx("a",{href:"/legal#terms",className:"text-foreground hover:underline",children:"Terms"})," ","and"," ",l.jsx("a",{href:"/legal#privacy",className:"text-foreground hover:underline",children:"Privacy Policy"})]}),l.jsxs("div",{className:"text-center text-xs text-muted-foreground/60",children:["Protected by reCAPTCHA."," ",l.jsx("a",{href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:"Privacy"}),l.jsx("span",{className:"mx-1",children:"·"}),l.jsx("a",{href:"https://policies.google.com/terms",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:"Terms"})]})]})},"step1"),v===2&&l.jsxs(ve.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.3},className:"space-y-5",children:[l.jsxs("div",{className:"text-center space-y-2",children:[l.jsx(qw,{className:"w-8 h-8 mx-auto text-foreground"}),l.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Get RORA Max"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Lifetime access to all filters and features. One payment, no subscriptions."})]}),l.jsx(ve.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:q,disabled:w,className:"stateful-btn w-full rounded-full px-8 py-4 text-base font-medium text-white disabled:opacity-50 disabled:cursor-not-allowed",children:w?l.jsxs("span",{className:"flex items-center justify-center gap-2",children:[l.jsx(Bo,{className:"w-4 h-4 animate-spin"})," Redirecting to Stripe..."]}):l.jsxs("span",{className:"flex items-center justify-center gap-2",children:["Purchase RORA Max · ",n(10),l.jsx(Xc,{className:"w-4 h-4"})]})}),l.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"Secure payment via Stripe. Your payment info never touches our servers."})]},"step2")]}),l.jsx("button",{onClick:e,className:"mt-4 w-full text-sm text-muted-foreground hover:text-foreground transition-colors text-center",children:"Cancel"})]})})})}const uHe=()=>({plans:[{id:"rora-core",name:"RORA Core",subtitle:"Free Experience",icon:EN,price:{monthly:0,yearly:0},stripePriceId:{monthly:null,yearly:null},description:"Essential audio controls with 7-day free trial of RORA Max",features:[{name:"Share",included:!0},{name:"Reverb",included:!0},{name:"Master Volume",included:!0},{name:"Muffler",included:!0},{name:"Visual EQ",included:!0},{name:"Tempo",included:!0},{name:"Custom Presets",included:!0}],cta:"Free Forever",popular:!1,tier:"free"},{id:"rora-max",name:"RORA Max",subtitle:"Full Suite · Lifetime",icon:qw,price:{monthly:10,yearly:10},stripePriceId:{monthly:"price_1T8kb20iBpi4vT1YFUpSeTMg",yearly:"price_1T8kb20iBpi4vT1YFUpSeTMg"},description:"All filters and features, forever. One-time payment.",inheritedFrom:"Core",features:[{name:"Conjure AI",included:!0},{name:"Smooth Pro",included:!0},{name:"Bass Boost",included:!0},{name:"Bass Reduce",included:!0},{name:"Echo",included:!0},{name:"Pitch Shift",included:!0},{name:"Spatial Audio",included:!0},{name:"Visualizers",included:!0},{name:"Light Mode",included:!0},{name:"L/R Panning",included:!0},{name:"Mono/Stereo",included:!0},{name:"Record",included:!0},{name:"Load File",included:!0}],cta:"Get RORA Max",popular:!0,tier:"rora-max"}],loading:!1,error:null,refetch:()=>Promise.resolve()});function dHe(){const[t,e]=E.useState(null),[n,r]=E.useState(!1),{user:i}=Tl(),{subscriptionTier:s,subscribed:o,loading:a,createCheckout:c,upgradeSubscription:u,openCustomerPortal:d,checkSubscription:h,isFreeTier:f,isPlusTier:m,isMaxTier:v}=RO();du();const{toast:p}=lu(),{currency:g,isLoading:y,formatPrice:b,isUSD:x,isCHF:w}=VX(),{plans:_,loading:S,error:T}
5851=uHe(),{trackBeginCheckout:M,trackExtensionClick:A}=O2(),C=P=>({free:0,"rora-core":0,"rora-plus":1,"au-rora":1,"rora-max":2,"au-rora-max":2})[P]||0,R=P=>C(P.tier)===C(s),j=P=>C(P.tier)<C(s)&&C(s)>0,k=async P=>{var O;if(!R(P)){if(j(P)){try{e(P.name),await d()}catch(L){console.error("Portal error:",L)}finally{e(null)}return}if(!i){r(!0);return}if(P.tier==="free"){A("pricing-free-tier"),window.open("https://chromewebstore.google.com/detail/rora-audio-filter-equaliz/ffceljdacbcfpajkaceodijbiodkokmj","_blank");return}try{e(P.name);const L=(O=P.stripePriceId)==null?void 0:O.monthly;if(!L)throw new Error("Price ID not configured for this plan");M(P.name,P.price.monthly,"CHF"),await c(L)}catch(L){console.error("Subscription error:",L),p({title:"Error",description:`Failed to start checkout: ${L.message}`,variant:"destructive"})}finally{e(null)}}};return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Plans & Pricing | RORA Audio"}),l.jsx("meta",{name:"description",content:"Choose your RORA plan. Free Core tier with essential filters, or get RORA Max lifetime for 10 CHF with all features."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/pricing"}),l.jsx("meta",{property:"og:title",content:"Plans & Pricing | RORA Audio"}),l.jsx("meta",{property:"og:description",content:"Choose your RORA plan. Free Core tier or RORA Max lifetime for 10 CHF."}),l.jsx("meta",{property:"og:url",content:"https://rora.one/pricing"}),l.jsx("meta",{property:"og:type",content:"website"}),l.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Product",name:"RORA Core",description:"Essential audio controls for your listening experience.",brand:{"@type":"Brand",name:"RORA"},offers:{"@type":"Offer",price:"0",priceCurrency:"CHF",availability:"https://schema.org/InStock"}},{"@type":"Product",name:"RORA Max",description:"All filters and features. Lifetime access.",brand:{"@type":"Brand",name:"RORA"},offers:{"@type":"Offer",name:"Lifetime",price:"10.00",priceCurrency:"CHF",availability:"https://schema.org/InStock"}}]})})]}),l.jsxs("div",{className:"min-h-screen relative z-10",children:[l.jsx("section",{className:"relative w-full px-6 md:px-8 pt-28 pb-20",children:l.jsx("div",{className:"mx-auto w-full max-w-[1400px]",children:l.jsxs("div",{className:"grid gap-12 lg:grid-cols-2 lg:items-start",children:[l.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"flex flex-col lg:sticky lg:top-32",children:[l.jsx("h1",{className:"mb-6 text-4xl md:text-5xl font-bold tracking-tight text-foreground",children:"RORA Core vs. Max"}),l.jsxs("p",{className:"mb-8 text-base md:text-lg max-w-md leading-relaxed text-muted-foreground",children:["Both plans give you real-time audio processing in Chrome. RORA Max unlocks every filter and feature with a single lifetime payment of ",y?"...":b
5851(10),"."]}),(()=>{const P=_.find(O=>O.tier==="rora-max");return P?l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx(ve.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>k(P),disabled:t===P.name||R(P),className:"stateful-btn w-full md:w-auto rounded-full px-8 py-4 text-base font-medium text-white disabled:opacity-50 disabled:cursor-not-allowed",children:t===P.name?l.jsxs("span",{className:"flex items-center gap-2",children:[l.jsx(Bo,{className:"w-4 h-4 animate-spin"})," Processing..."]}):R(P)?"Current Plan":`One Time Purchase · Lifetime Access · ${y?"...":b(10)}`}),l.jsx("a",{href:"https://chromewebstore.google.com/detail/rora-audio-filter-equaliz/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-foreground transition-colors text-center md:text-left",children:"or try RORA Core for free â"}),l.jsx(xwe,{target:xc.endDate,className:"mt-3 max-w-md"}),l.jsx(cHe,{isOpen:n,onClose:()=>r(!1),formatPrice:b})]}):null})()]}),l.jsx("div",{className:"w-full",children:S?l.jsx("div",{className:"flex justify-center items-center py-20",children:l.jsx(Bo,{className:"w-8 h-8 animate-spin text-foreground"})}):T?l.jsxs("div",{className:"text-center py-20",children:[l.jsx("p",{className:"text-destructive mb-4",children:"Failed to load pricing"}),l.jsx(Ge,{variant:"outline",onClick:()=>window.location.reload(),children:"Try Again"})]}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"mb-8 grid grid-cols-2 gap-4 md:gap-6",children:[l.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},className:"flex items-center gap-2",children:[l.jsx("img",{src:"/images/rora-logo.png",alt:"RORA",className:"h-6 w-auto"}),l.jsx("span",{className:"text-2xl md:text-3xl font-bold text-foreground",children:"Core"})]}),l.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"flex items-center gap-2",children:[l.jsx("img",{src:"/images/rora-logo.png",alt:"RORA",className:"h-6 w-auto"}),l.jsx("span",{className:"text-2xl md:text-3xl font-bold bg-gradient-to-r from-[#E2628A] to-[#6200EE] bg-clip-text text-transparent",children:"Max"})]})]}),l.jsx("div",{className:"space-y-0",children:[{name:"Share",core:!0,max:!0},{name:"Reverb",core:!0,max:!0},{name:"Master Volume",core:!0,max:!0},{name:"Muffler",core:!0,max:!0},{name:"Visual EQ",core:!0,max:!0},{name:"Tempo",core:!0,max:!0},{name:"Custom Presets",core:!0,max:!0},{name:"Conjure AI",core:!1,max:!0},{name:"Smooth Pro",core:!1,max:!0},{name:"Bass Boost",core:!1,max:!0},{name:"Bass Reduce",core:!1,max:!0},{name:"Echo",core:!1,max:!0},{name:"Pitch Shift",core:!1,max:!0},{name:"Spatial Audio",core:!1,max:!0},{name:"Visualizers",core:!1,max:!0},{name:"Light Mode",core:!1,max:!0},{name:"L/R Panning",core:!1,max:!0},{name:"Mono/Stereo",core:!1,max:!0},{name:"Record",core:!1,max:!0},{name:"Load File",core:!1,max:!0}].map((O,L)=>l.jsxs(ve.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.05*L},className:"grid grid-cols-2 gap-4 md:gap-6",children:[l.jsxs("div",{className:"flex items-center gap-3 py-4",children:[l.jsx("div",{className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-full transition-colors ${O.core?"bg-gradient-to-br from-[#E2628A] to-[#6200EE]":"border-2 border-muted-foreground/30"}`,children:O.core&&l.jsx(Sm,{className:"h-3.5 w-3.5 text-white",strokeWidth:3})}),l.jsx("span",{className:`text-sm md:text-base font-medium ${O.core?"text-foreground":"text-muted-foreground/40"}`,children:O.name})]}),l.jsxs("div",{className:"flex items-center gap-3 py-4",children:[l.jsx("div",{className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-full transition-colors ${O.max?"bg-gradient-to-br from-[#E2628A] to-[#6200EE]":"border-2 border-muted-foreground/30"}`,children:O.max&&l.jsx(Sm,{className:"h-3.5 w-3.5 text-white",strokeWidth:3})}),l.jsx("span",{className:`text-sm md:text-base font-medium ${O.max?"text-foreground":"text-muted-foreground
5851/40"}`,children:O.name})]})]},O.name))})]})})]})})}),l.jsx("section",{className:"container mx-auto px-4 py-12",children:l.jsx(Tt,{duration:800,delay:500,children:l.jsxs(Ai,{className:"glass border border-border rounded-2xl bg-transparent shadow-none p-8 max-w-6xl mx-auto",children:[l.jsx("h3",{className:"text-2xl font-semibold text-center mb-8",children:"Our Guarantee to You"}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[l.jsx("svg",{width:"0",height:"0",className:"absolute",children:l.jsx("defs",{children:l.jsxs("linearGradient",{id:"gradient-guarantee",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[l.jsx("stop",{offset:"0%",stopColor:"#E2628A"}),l.jsx("stop",{offset:"100%",stopColor:"#6200EE"})]})})}),l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx($se,{className:"w-5 h-5 flex-shrink-0 mt-1",stroke:"url(#gradient-guarantee)"}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-1",children:"One-Time Purchase"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Pay once, own it forever. No recurring charges or renewals."})]})]}),l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(K9,{className:"w-5 h-5 flex-shrink-0 mt-1",stroke:"url(#gradient-guarantee)"}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-1",children:"Secure Payment with Stripe"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Bank-level security. Your payment info never touches our servers."})]})]}),l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(Mse,{className:"w-5 h-5 flex-shrink-0 mt-1",stroke:"url(#gradient-guarantee)"}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-1",children:"No Hidden Fees. Ever."}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"What you see is what you pay. One price, one payment. That's it."})]})]}),l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(C0,{className:"w-5 h-5 flex-shrink-0 mt-1",stroke:"url(#gradient-guarantee)"}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-1",children:"Your Audio Stays Private"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"100% local processing. Your music never leaves your device."})]})]})]})]})})}),l.jsx(zX,{}),l.jsx("section",{className:"container mx-auto px-4 py-20",children:l.jsxs(Tt,{duration:800,delay:600,children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Frequently Asked Questions"}),l.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Get clarity on everything you need to know about RORA"})]}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-6 max-w-6xl mx-auto",children:[l.jsxs(Ai,{className:"glass border border-border rounded-2xl bg-transparent shadow-none p-6 text-left",children:[l.jsx("h3",{className:"font-semibold mb-3",children:"How does RORA work?"}),l.jsx("p",{className:"text-muted-foreground text-sm",children:"RORA is a Chrome extension that processes audio with sub-10ms latency using DSP algorithms. Works with music streaming sites, video platforms, podcastsâany HTML5 audio. No drivers or audio routing needed."})]}),l.jsxs(Ai,{className:"glass border border-border rounded-2xl bg-transparent shadow-none p-6 text-left",children:[l.jsx("h3",{className:"font-semibold mb-3",children:"What makes RORA different?"}),l.jsx("p",{className:"text-muted-foreground text-sm",children:"We use established audio algorithms (FFT spectral gating, WSOLA pitch/tempo, HRTF binaural audio) running entirely in your browser. All processing happens locally with sub-10ms latency."})]}),l.jsxs(Ai,{className:"glass border border-border rounded-2xl bg-transparent shadow-none p-6 text-left",children:[l.jsx("h3",{className:"font-semibold mb-3",children:"Does it work offline?"}),l.jsx("p",{className:"text-muted-foreground text-sm",children:"Yes! All processing happens locally in your browser. No cloud processing, no uploads, no internet required. Your audio never leaves your deviceâcomplete privacy."})]}),l.jsxs(Ai,{className:"glass border border-border rounded-2xl bg-transparent shadow-none p-6 text-left",children:[l.jsx("h3",{className:"font-semibold mb-3",children:"Is RORA Max really lifetime?"}),l.jsx("p",{className:"text-muted-foreground text-sm",children:"Yes. You pay once and RORA Max is yours for as long as the service is available. No recurring charges, no renewals. RORA Core remains free forever."})]})]}),l.jsx("div",{className:"text-center mt-12",children:l.jsx(mt,{to:"/support",children:l.jsx(Ge,{className:"rounded-full font-semibold bg-white/20 backdrop-blur-sm border border-white/30 hover:bg-white/30 px-8 py-6 text-base",children:"Explore More FAQs"})})})]})})]})]})}const hHe=A0("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function fHe({className:t,variant:e,...n}){return l.jsx("div",{className:He(hHe({variant:e}),t),...n})}const mHe=()=>l.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M17.64 9.20454C17.64 8.56636 17.5827 7.95273 17.4764 7.36364H9V10.845H13.8436C13.635 11.97 13.0009 12.9232 12.0477 13.5614V15.8195H14.9564C16.6582 14.2527 17.64 11.9455 17.64 9.20454Z",fill:"#4285F4"}),l.jsx("path",{d:"M9 18C11.43 18 13.4673 17.1941 14.9564 15.8195L12.0477 13.5614C11.2418 14.1014 10.2109 14.4205 9 14.4205C6.65591 14.4205 4.67182 12.8373 3.96409 10.71H0.957275V13.0418C2.43818 15.9832 5.48182 18 9 18Z",fill:"#34A853"}),l.jsx("path",{d:"M3.96409 10.71C3.78409 10.17 3.68182 9.59318 3.68182 9C3.68182 8.40682 3.78409 7.83 3.96409 7.29V4.95818H0.957275C0.347727 6.17318 0 7.54773 0 9C0 10.4523 0.347727 11.8268 0.957275 13.0418L3.96409 10.71Z",fill:"#FBBC05"}),l.jsx("path",{d:"M9 3.57955C10.3214 3.57955 11.5077 4.03364 12.4405 4.92545L15.0218 2.34409C13.4632 0.891818 11.4259 0 9 0C5.48
5851182 0 2.43818 2.01682 0.957275 4.95818L3.96409 7.29C4.67182 5.16273 6.65591 3.57955 9 3.57955Z",fill:"#EA4335"})]}),pHe=()=>l.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M14.6157 17.3906C13.7907 18.2156 12.8782 18.1281 12.0032 17.7656C11.0782 17.3906 10.2282 17.3781 9.24069 17.7656C8.00319 18.2656 7.34069 18.1531 6.60319 17.3906C2.41569 13.1031 3.02819 6.62812 7.81569 6.39062C8.90319 6.44062 9.64069 6.97812 10.2532 7.01562C11.1907 6.84062 12.0907 6.28062 13.1032 6.34062C14.3157 6.42812 15.2407 6.87812 15.8782 7.70312C12.9282 9.42812 13.6157 13.3656 16.3282 14.4656C15.7657 15.8656 15.0282 17.2531 14.6032 17.4031L14.6157 17.3906ZM10.1407 6.34062C10.0157 4.54062 11.4407 3.04062 13.1407 2.89062C13.3907 4.96562 11.1532 6.52812 10.1407 6.34062Z"})});function gHe(){const[t,e]=E.useState(!1),[n,r]=E.useState(!1),[i,s]=E.useState(""),[o,a]=E.useState(""),[c,u]=E.useState(""),[d,h]=E.useState(""),[f,m]=E.useState("signin"),[v,p]=E.useState(!1),[g,y]=E.useState(!1),[b,x]=E.useState(!1),[w,_]=E.useState(""),{user:S,signIn:T,signUp:M,signInWithOAuth:A,resetPassword:C}=Tl(),R=du(),[j]=fV(),k=j.get("plan"),{toast:P}=lu(),{executeRecaptcha:O,isLoaded:L,error:F}=_J(),{trackSignUp:D,trackLogin:I}=O2();E.useEffect(()=>{S&&R("/dashboard",{replace:!0})},[S,R]);const N=Q=>{s(Q),u("")},G=Q=>{a(Q),h("")},q=async Q=>{var ae;const X=hy(i);if(!X.valid){u(X.error||"");return}if(Q==="signup"){const J=N0(o);if(!J.valid){h(J.error||"");return}}if(!L){P({title:"Security check loading",description:"Please wait a moment and try again",variant:"destructive"});return}e(!0);try{const J=Q==="signup"?"signup":"signin",ue=await O(J),{data:de,error:H}=await Yt.functions.invoke("verify-recaptcha",{body:{token:ue,action:J}}),_e=window.location.hostname.includes("localhost")||window.location.hostname.includes("lovable.app"),he=(ae=de==null?void 0:de.errors)==null?void 0:ae.includes("browser-error");if(H||!(de!=null&&de.success))if(console.error("reCAPTCHA verification failed:",H||de),_e&&he)console.warn("Bypassing reCAPTCHA in development environment due to browser-error");else{P({title:"Security check failed",description:"Please try again. If the issue persists, contact support.",variant:"destructive"});return}else{if(de.score<.5){console.warn("reCAPTCHA score too low:",de.score),P({title:"Security check failed",description:"Unusual activity detected. Please try again or contact support.",variant:"destructive"});return}console.log("reCAPTCHA verification passed with score:",de.score)}if(Q==="signup")await M(i,o),_(i),x(!0),D("email");else{await T(i,o);const{data:{session:xe}}=await Yt.auth.getSession();xe&&(I("email"),R(k?"/pricing":"/dashboard"))}}catch(J){console.error("Auth error:",J),P({title:"Authentication failed",description:J.message||"Please try again",variant:"destructive"})}finally{e(!1)}},W=async()=>{const Q=hy(i);if(!Q.valid){u(Q.error||"");return}e(!0);try{await C(i),y(!1),s("")}catch(X){console.error("Reset password error:",X)}finally{e(!1)}},Y=async Q=>{var X;if(!L){P({title:"Security check loading",description:"Please wait a moment and try again",variant:"destructive"});return}r(!0);try{const ae=await O("oauth_signin"),{data:J,error:ue}=await Yt.functions.invoke("verify-recaptcha",{body:{token:ae,action:"oauth_signin"}}),de=window.location.hostname.includes("localhost")||window.location.hostname.includes("lovable.app"),H=(X=J==null?void 0:J.errors)==null?void 0:X.includes("browser-error");if(ue||!(J!=null&&J.success)||J.score&&J.score<.5)if(console.error("reCAPTCHA verification failed for OAuth:",ue||J),de&&H)console.warn("Bypassing reCAPTCHA for OAuth in development environment due to browser-error");else{P({title:"Security check failed",description:"Please try again or contact support.",variant:"destructive"});return}else console.log("reCAPTCHA verification passed for OAuth with score:",J.score);await A(Q),I(Q)}catch(ae){console.error("OAuth error:",ae),P({title:"Authentication failed",description:"Please try again",variant:"destructive"})}finally{r(!1)}},te=Q=>{Q.key==="Enter"&&(g?W():q(f))};return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Sign In | RORA Audio"}),l.jsx("meta",{name:"description",content:"Sign in to your RORA account to access premium audio filters and manage your account."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/auth"}),l.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),l.jsxs("div",{className:"min-h-screen flex relative overflow-hidden bg-background",children:[l.jsx("div",{className:"hidden lg:flex lg:w-1/2 relative items-center justify-center pl-12 pr-6 bg-gradient-to-br from-background/50 to-background/30",children:l.jsx("div",{className:"relative z-10 flex items-center justify-center w-full h-full max-w-[693px] ml-auto",children:l.jsxs(ve.div,{className:"flex flex-col items-center justify-center text-center space-y-6",initial:{scale:.5,op
5851acity:0},animate:{scale:1,opacity:1},transition:{duration:1.2,ease:[.34,1.56,.64,1],opacity:{duration:.8}},children:[l.jsx("img",{src:"/images/rora-logo-full.png",alt:"RORA",className:"h-[36px] sm:h-[54px] md:h-[72px] lg:h-[91px] xl:h-[109px] w-auto max-w-full mx-auto object-contain"}),l.jsx("div",{className:"w-full",children:l.jsx(v1,{className:"text-white/80 scale-[0.5] origin-center"})})]})})}),l.jsx("div",{className:"w-full lg:w-1/2 flex items-center justify-center px-6 lg:pl-6 lg:pr-12 py-6 relative z-10",children:l.jsx("div",{className:"w-full max-w-md mx-auto lg:mr-auto lg:ml-0",children:l.jsxs(Tt,{duration:600,children:[l.jsxs(ve.div,{className:"lg:hidden flex flex-col items-center justify-center text-center space-y-4 mb-8",initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.8,ease:[.34,1.56,.64,1]},children:[l.jsx("img",{src:"/images/rora-logo-full.png",alt:"RORA",className:"h-[48px] sm:h-[56px] md:h-[64px] w-auto object-contain"}),l.jsx("div",{className:"w-full",children:l.jsx(v1,{className:"text-white/80 scale-[0.47] sm:scale-[0.54] origin-center"})})]}),b?l.jsx(ve.div,{initial:{opacity:0,scale:1.1,y:20},animate:{opacity:1,scale:1,y:0},transition:{duration:.6,ease:[.34,1.56,.64,1]},className:"flex items-center justify-center",children:l.jsxs("div",{className:"inline-flex items-center gap-4 px-8 py-5 rounded-full bg-gradient-to-r from-[#FF10F0] to-[#C77DFF] shadow-2xl border border-white/20",children:[l.jsx(ry,{className:"w-7 h-7 text-white flex-shrink-0"}),l.jsxs("div",{className:"text-left",children:[l.jsx("h3",{className:"text-lg font-bold text-white leading-tight",children:"Welcome to RORA!"}),l.jsxs("p",{className:"text-sm text-white/95 leading-tight",children:["We've sent an email to ",w,"."]})]})]})}):l.jsxs(l.Fragment,{children:[k&&l.jsx("div",{className:"mb-6 text-center",children:l.jsxs(fHe,{className:"premium-badge text-sm",children:[l.jsx(TN,{className:"w-4 h-4 mr-1"}),k==="rora-plus"?"RORA Plus":"RORA Max"," Selected"]})}),l.jsxs(ve.div,{initial:{opacity:1,scale:1},animate:{opacity:1,scale:1,height:"auto"},exit:{opacity:0,scale:.8,height:0},transition:{duration:.5,ease:[.34,1.56,.64,1]},children:[l.jsxs(Ai,{className:"glass border border-border rounded-2xl bg-transparent shadow-none",children:[l.jsx(nh,{className:"space-y-2 pb-6",children:l.jsxs(ve.div,{layout:"position",children:[l.jsx(rh,{className:"text-2xl text-foreground",children:g?"Reset Password":f==="signin"?"Welcome Back":"We're Glad You're Joining Us"}),l.jsx(ih,{className:"text-muted-foreground",children:g?"Enter your email to receive a password reset link":f==="signin"?"Sign in to access your account":"Create your account and get access to free premium features"})]})}),l.jsxs(wa,{className:"space-y-6",children:[!g&&l.jsxs("div",{role:"tablist","aria-label":"Authentication tabs",className:"grid w-full grid-cols-2 h-12 rounded-full p-1 bg-white/5 backdrop-blur-sm border border-white/10 overflow-hidden",children:[l.jsxs("button",{type:"button",role:"tab","aria-selected":f==="signin",onClick:()=>m("signin"),className:"relative w-full h-full rounded-full flex items-center justify-center text-sm font-semibold text-muted-foreground data-[active=true]:text-foreground","data-active":f==="signin",children:[f==="signin"&&l.jsx(ve.span,{layoutId:"auth-segment-bubble",className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30",style:{borderRadius:9999},transition:{type:"spring",bounce:.2,duration:.5}}),l.jsx("span",{className:"relative z-20",children:"Sign In"})]}),l.jsxs("button",{type:"button",role:"tab","aria-selected":f==="signup",onClick:()=>m("signup"),className:"relative w-full h-full rounded-full flex items-center justify-center text-sm font-semibold text-muted-foreground data-[active=true]:text-foreground","data-active":f==="signup",children:[f==="signup"&&l.jsx(ve.span,{layoutId:"auth-segment-bubble",className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30",style:{borderRadius:9999},transition:{type:"spring",bounce:.2,duration:.5}}),l.jsx("span",{className:"relative z-20",children:"Sign Up"})]})]}),l.jsxs(ve.div,{layout:"position",className:"space-y-5",children:[!g&&l.jsxs(ve.div,{layout:"position",className:"space-y-3",children:[l.jsxs(Ge,{variant:"outline",onClick:()=>Y("google"),disabled:n,className:"w-full h-12 bg-white hover:bg-gray-100 border-gray-300 text-gray-700 hover:text-gray-700 font-medium rounded-full shadow-sm",children:[l.jsx("span",{className:"mr-2",children:l.jsx(mHe,{})}),"Continue with Google"]}),l.jsxs(Ge,{variant:"outline",onClick:()=>Y("apple"),disabled:n,className:"w-full h-12 bg-black hover:bg-gray-900 border-black text-white hover:text-white font-medium rounded-full shadow-sm",children:[l.jsx("span",{className:"mr-2 text-white",children:l.jsx(pHe,{})}),"Continue with Apple"]}),l.jsxs(Ge,{variant:"outline",onClick:()=>Y("discord"),disabled:n,className:"w-full h-12 bg-[#5865F2] hover:bg-[#47
585152C4] border-[#5865F2] text-white hover:text-white font-medium rounded-full shadow-sm",children:[l.jsx("span",{className:"mr-2",children:l.jsx("svg",{width:"18",height:"18",viewBox:"0 0 71 55",fill:"white",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z"})})}),"Continue with Discord"]})]}),!g&&l.jsxs(ve.div,{layout:"position",className:"relative",children:[l.jsx("div",{className:"absolute inset-0 flex items-center",children:l.jsx("span",{className:"w-full border-t border-border/50"})}),l.jsx("div",{className:"relative flex justify-center text-xs",children:l.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:f==="signin"?"Or continue with email":"Or create with email"})})]}),l.jsxs(ve.div,{layout:"position",className:"space-y-4",children:[l.jsxs(ve.div,{layout:"position",children:[l.jsx(Pr,{htmlFor:"email",className:"text-sm font-medium mb-2 block",children:"Email"}),l.jsx(Ms,{id:"email",name:"email",type:"email",autoComplete:"email",placeholder:"[email protected]",value:i,onChange:Q=>N(Q.target.value),onKeyDown:te,className:`h-11 rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 ${c?"border-destructive focus-visible:ring-destructive":"focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)]"}`}),c&&l.jsxs("p",{className:"text-destructive text-xs mt-1.5 flex items-center gap-1 ml-4",children:[l.jsx(Hd,{className:"w-3 h-3"}),c]})]}),l.jsxs(ve.div,{layout:"position",children:[l.jsxs("div",{className:"flex justify-between items-center mb-2",children:[l.jsx(Pr,{htmlFor:"password",className:"text-sm font-medium",children:"Password"}),f==="signin"&&l.jsx(ve.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:l.jsx(Ge,{variant:"link",onClick:()=>y(!0),className:"text-xs text-muted-foreground p-0 h-auto hover:text-foreground",children:"Forgot?"})})]}),!g&&l.jsxs("div",{className:"relative",children:[l.jsx(Ms,{id:"password",name:"password",type:v?"text":"password",autoComplete:f==="signin"?"current-password":"new-password",placeholder:f==="signup"?"Min. 8 characters":void 0,value:o,onChange:Q=>G(Q.target.value),onKeyDown:te,className:`h-11 rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 pr-10 ${d?"border-destructive focus-visible:ring-destructive":"focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)]"}`}),l.jsx(Ge,{type:"button",variant:"ghost",size:"icon",className:"absolute right-1 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full hover:bg-white/10",onClick:()=>p(!v),children:v?l.jsx(Em,{className:"h-4 w-4 text-muted-foreground"}):l.jsx(Tm,{className:"h-4 w-4 text-muted-foreground"})})]}),d&&l.jsxs("p",{className:"text-destructive text-xs mt-1.5 flex items-center gap-1 ml-4",children:[l.jsx(Hd,{className:"w-3 h-3"}),d]}),f==="signup"&&l.jsx(ve.p,{initial:{opacity:0,height:0}
5851,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3},className:"text-xs text-muted-foreground mt-1.5 ml-4",children:"Use at least 8 characters with letters and numbers"})]})]}),l.jsxs(ve.div,{layout:"position",children:[l.jsx(Ge,{className:"w-full h-11 rounded-full font-semibold bg-white/20 backdrop-blur-sm border border-white/30 hover:bg-white/30 text-foreground",variant:"ghost",onClick:g?W:()=>q(f),disabled:t||!i||!g&&!o||!g&&!L,children:t?l.jsxs(l.Fragment,{children:[l.jsx(Bo,{className:"mr-2 h-4 w-4 animate-spin"}),g?"Sending...":f==="signin"?"Signing In...":"Creating Account..."]}):l.jsx(l.Fragment,{children:g?"Send Reset Link":f==="signin"?l.jsxs(l.Fragment,{children:[l.jsx(ry,{className:"mr-2 h-4 w-4"}),"Sign In"]}):l.jsxs(l.Fragment,{children:[l.jsx(ho,{className:"mr-2 h-4 w-4"}),"Create Free Account"]})})}),g&&l.jsx(Ge,{variant:"link",onClick:()=>{y(!1),u("")},className:"w-full text-sm text-muted-foreground hover:text-foreground mt-2",children:"Back to Sign In"}),f==="signup"&&l.jsxs(ve.p,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3},className:"text-xs text-muted-foreground text-center leading-relaxed pt-3",children:["By signing up, you agree to our"," ",l.jsx("a",{href:"/legal#terms",className:"text-foreground hover:underline",children:"Terms"})," ","and"," ",l.jsx("a",{href:"/legal#privacy",className:"text-foreground hover:underline",children:"Privacy Policy"})]})]})]})]})]}),l.jsxs("div",{className:"text-center text-xs text-muted-foreground/60 mt-2",children:["Protected by reCAPTCHA.",l.jsx("a",{href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer",className:"hover:underline ml-1",children:"Privacy"}),l.jsx("span",{className:"mx-1",children:"·"}),l.jsx("a",{href:"https://policies.google.com/terms",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:"Terms"})]})]})]}),l.jsx("div",{className:"mt-8"})]})})})]})]})}function vHe({hue:t=0,hoverIntensity:e=.2,rotateOnHover:n=!0,forceHoverState:r=!1}){const i=E.useRef(null),s=` 5852 precision highp float; 5853 attribute vec2 position; 5854 attribute vec2 uv; 5855 varying vec2 vUv; 5856 void main() { 5857 vUv = uv; 5858 gl_Position = vec4(position, 0.0, 1.0); 5859 } 5860 `,o=` 5861 precision highp float; 5862 5863 uniform float iTime; 5864 uniform vec3 iResolution; 5865 uniform float hue; 5866 uniform float hover; 5867 uniform float rot; 5868 uniform float hoverIntensity; 5869 varying vec2 vUv; 5870 5871 vec3 rgb2yiq(vec3 c) { 5872 float y = dot(c, vec3(0.299, 0.587, 0.114)); 5873 float i = dot(c, vec3(0.596, -0.274, -0.322)); 5874 float q = dot(c, vec3(0.211, -0.523, 0.312)); 5875 return vec3(y, i, q); 5876 } 5877 5878 vec3 yiq2rgb(vec3 c) { 5879 float r = c.x + 0.956 * c.y + 0.621 * c.z; 5880 float g = c.x - 0.272 * c.y - 0.647 * c.z; 5881 float b = c.x - 1.106 * c.y + 1.703 * c.z; 5882 return vec3(r, g, b); 5883 } 5884 5885 vec3 adjustHue(vec3 color, float hueDeg) { 5886 float hueRad = hueDeg * 3.14159265 / 180.0; 5887 vec3 yiq = rgb2yiq(color); 5888 float cosA = cos(hueRad); 5889 float sinA = sin(hueRad); 5890 float i = yiq.y * cosA - yiq.z * sinA; 5891 float q = yiq.y * sinA + yiq.z * cosA; 5892 yiq.y = i; 5893 yiq.z = q; 5894 return yiq2rgb(yiq); 5895 } 5896 5897 vec3 hash33(vec3 p3) { 5898 p3 = fract(p3 * vec3(0.1031, 0.11369, 0.13787)); 5899 p3 += dot(p3, p3.yxz + 19.19); 5900 return -1.0 + 2.0 * fract(vec3( 5901 p3.x + p3.y, 5902 p3.x + p3.z, 5903 p3.y + p3.z 5904 ) * p3.zyx); 5905 } 5906 5907 float snoise3(vec3 p) { 5908 const float K1 = 0.333333333; 5909 const float K2 = 0.166666667; 5910 vec3 i = floor(p + (p.x + p.y + p.z) * K1); 5911 vec3 d0 = p - (i - (i.x + i.y + i.z) * K2); 5912 vec3 e = step(vec3(0.0), d0 - d0.yzx); 5913 vec3 i1 = e * (1.0 - e.zxy); 5914 vec3 i2 = 1.0 - e.zxy * (1.0 - e); 5915 vec3 d1 = d0 - (i1 - K2); 5916 vec3 d2 = d0 - (i2 - K1); 5917 vec3 d3 = d0 - 0.5; 5918 vec4 h = max(0.6 - vec4( 5919 dot(d0, d0), 5920 dot(d1, d1), 5921 dot(d2, d2), 5922 dot(d3, d3) 5923 ), 0.0); 5924 vec4 n = h * h * h * h * vec4( 5925 dot(d0, hash33(i)), 5926 dot(d1, hash33(i + i1)), 5927 dot(d2, hash33(i + i2)), 5928 dot(d3, hash33(i + 1.0)) 5929 ); 5930 return dot(vec4(31.316), n); 5931 } 5932 5933 vec4 extractAlpha(vec3 colorIn) {
5934 float a = max(max(colorIn.r, colorIn.g), colorIn.b); 5935 return vec4(colorIn.rgb / (a + 1e-5), a); 5936 } 5937 5938 const vec3 baseColor1 = vec3(0.38, 0.0, 0.93); // RORA Purple - More saturated 5939 const vec3 baseColor2 = vec3(1.0, 0.2, 0.65); // RORA Pink - More saturated 5940 const float innerRadius = 0.64; 5941 const float noiseScale = 0.65; 5942 5943 float light1(float intensity, float attenuation, float dist) { 5944 return intensity / (1.0 + dist * attenuation); 5945 } 5946 float light2(float intensity, float attenuation, float dist) { 5947 return intensity / (1.0 + dist * dist * attenuation); 5948 } 5949 5950 vec4 draw(vec2 uv) { 5951 // Flip vertically 5952 uv.y = -uv.y; 5953 5954 // Rotate 90 degrees counter clockwise 5955 float tempX = uv.x; 5956 uv.x = -uv.y; 5957 uv.y = tempX; 5958 5959 float ang = atan(uv.y, uv.x); 5960 float len = length(uv); 5961 5962 // Normalize angle to 0-1 range (0 = right, 0.25 = top, 0.5 = left, 0.75 = bottom) 5963 float normalizedAngle = (ang + 3.14159265) / (2.0 * 3.14159265); 5964 5965 // Smooth gradient transition between visible and transparent areas 5966 // Use smoothstep for soft edges at 0.25 and 0.75 5967 float fadeRange = 0.15; // Controls how gradual the fade is 5968 float angleAlpha = 1.0; 5969 5970 if (normalizedAngle > 0.25 && normalizedAngle < 0.75) { 5971 // Bottom half - fade from visible to transparent 5972 float distFrom25 = normalizedAngle - 0.25; 5973 float distFrom75 = 0.75 - normalizedAngle; 5974 float minDist = min(distFrom25, distFrom75); 5975 angleAlpha = 1.0 - smoothstep(0.0, fadeRange, minDist); 5976 } 5977 5978 // Simple gradient from pink (left) to purple (right) across the visible half 5979 vec3 blendedColor; 5980 if (normalizedAngle < 0.5) { 5981 // Right half (0 to 0.5): pink to purple 5982 float t = normalizedAngle / 0.5; 5983 t = smoothstep(0.0, 1.0, t); 5984 blendedColor = mix(baseColor2, baseColor1, t); 5985 } else { 5986 // Left half (0.5 to 1.0): purple to pink (continuing the gradient) 5987 float t = (normalizedAngle - 0.5) / 0.5; 5988 t = smoothstep(0.0, 1.0, t); 5989 blendedColor = mix(baseColor1, baseColor2, t); 5990 } 5991 5992 vec3 color1 = adjustHue(blendedColor, hue); 5993 vec3 color2 = adjustHue(blendedColor, hue); 5994 vec3 color3 = adjustHue(blendedColor, hue); 5995 float invLen = len > 0.0 ? 1.0 / len : 0.0; 5996 5997 float n0 = snoise3(vec3(uv * noiseScale, iTime * 0.5)) * 0.5 + 0.5; 5998 float r0 = mix(mix(innerRadius, 1.0, 0.4), mix(innerRadius, 1.0, 0.6), n0); 5999 float d0 = distance(uv, (r0 * invLen) * uv); 6000 float v0 = light1(1.0, 10.0, d0); 6001 v0 *= smoothstep(r0 * 1.05, r0, len); 6002 float cl = cos(ang + iTime * 2.0) * 0.5 + 0.5; 6003 6004 float a = iTime * -1.0; 6005 vec2 pos = vec2(cos(a), sin(a)) * r0; 6006 float d = distance(uv, pos); 6007 float v1 = light2(1.5, 5.0, d); 6008 v1 *= light1(1.0, 50.0, d0); 6009 6010 float v2 = smoothstep(1.0, mix(innerRadius, 1.0, n0 * 0.5), len); 6011 float v3 = smoothstep(innerRadius, mix(innerRadius, 1.0, 0.5), len); 6012 6013 vec3 col = mix(color1, color2, cl); 6014 col = mix(color3, col, v0); 6015 col = (col + v1) * v2 * v3; 6016 col = clamp(col, 0.0, 1.0); 6017 6018 vec4 result = extractAlpha(col); 6019 result.a *= angleAlpha; // Apply angle-based transparency 6020 6021 return result; 6022 } 6023 6024 vec4 mainImage(vec2 fragCoord) { 6025 vec2 center = iResolution.xy * 0.5; 6026 float size = min(iResolution.x, iResolution.y); 6027 vec2 uv = (fragCoord - center) / size * 2.1; 6028 6029 float angle = rot; 6030 float s = sin(angle); 6031 float c = cos(angle); 6032 uv = vec2(c * uv.x - s * uv.y, s * uv.x + c * uv.y); 6033 6034 uv.x += hover * hoverIntensity * 0.1 * sin(uv.y * 10.0 + iTime); 6035 uv.y += hover * hoverIntensity * 0.1 * sin(uv.x * 10.0 + iTime); 6036 6037 return draw(uv); 6038 } 6039 6040 void main() { 6041 vec2 fragCoord = vUv * iResolution.xy; 6042 vec4 col = mainImage(fragCoord); 6043 gl_FragColor = vec4(col.rgb * col.a, col.a); 6044 } 6045 `;return E.useEffect(()=>{const a=i.current;if(!a)return;const c=new eO({alpha:!0,premultipliedAlpha:!1}),u=c.gl;u.clearColor(0,0,0,0),a.appendChild(u.canvas);const d=new tO(u),h=new f1(u,{vertex:s,fragment:o,uniforms:{iTime:{value:0},iResolution:{value:new Zs(u.canvas.width,u.canvas.height,u.canvas.width/u.canvas.height)},hue:{value:t},hover:{value:0},rot:{value:Math.PI},hoverIntensity:{value:e}}}),f=new p1(u,{geometry:d,program:h});function m(){if(!a)return;const S=window.devicePixelRatio||1,T=a.clientWidth,M=a.clientHeight;c.setSize(T*S,M*S),u.canvas.style.width=T+"px",u.canvas.style.height=M+"px",h.uniforms.iResolution.value.set(u.canvas.width,u.canvas.height,u.canvas.width/u.canvas.height)}window.addEventListener("resize",m),m();let v=0,p=0,g=Math.PI;const y=.3,b=S=>{const T=a.getBoundingClientRect(),M=S.clientX-T.left,A=S.clientY-T.top,C=T.width,R=T.height,j=Math.min(C,R),k=C/2,P=R/2,O=(M-k)/j*2,L=(A-P)/j*2;Math.sqrt(O*O+L*L)<.8?v=1:v=0},x=()=>{v=0};a.addEventListener("mousemove",b),a.addEventListener("mouseleave",x);let w;const _=S=>{w=requestAnimationFrame(_);const T=(S-p)*.001;p=S,h.uniforms.iTime.value=S*.001,h.uniforms.hue.value=t,h.uniforms.hoverIntensity.value=e;const M=r?1:v;h.uniforms.hover.value+=(M-h.uniforms.hover.value)*.1,n&&M>.5&&(g+=T*y),h.uniforms.rot.value=g,c.render({scene:f})};return w=requestAnimationFrame(_),()=>{var S;cancelAnimationFrame(w),window.removeEventListener("resize",m),a.removeEventListener("mousemove",b),a.removeEventListener("mouseleave",x),a.removeChild(u.canvas),(S=u.getExtension("WEBGL_lose_context"))==null||S.loseContext()}},[t,e,n,r]),l.jsx("div",{ref:i,className:"orb-container"})}function yHe(){const[t,e]=E.useState(""),[n,r]=E.useState(""),[i,s]=E.useState(""),[o,a]=E.useState(""),[c,u]=E.useState(!1),[d,h]=E.useState(!1),[f,m]=E.useState(!1),{updatePassword:v}=Tl(),p=du(),{toast:g}=lu();E.useEffect(()=>{(async()=>{const{data:{session:_}}=await Yt.auth.getSession();_||(g({title:"Invalid or expired reset link",description:"Please request a new password reset link",variant:"destructive"}),p("/auth"))})()},[p,g]);const y=w=>{e(w),s("")},b=w=>{r(w),a("")},x=async()=>{const w=N0(t);if(!w.valid){s(w.error||"");return}if(t!==n){a("Passwords do not match");return}m(!0);try{await v(t),p("/dashboard")}catch(_){console.error("Password reset error:",_),g({title:"Password reset failed",description:_.message||"Please try again",variant:"destructive"})}finally{m(!1)}};return l.jsxs("div",{className:"min-h-screen flex relative overflow-hidden bg-background",children:[l.jsx("div",{className:"hidden lg:flex lg:w-1/2 relative items-center justify-center p-12 bg-gradient-to-br from-background/50 to-background/30",children:l.jsx("div",{className:"relative z-10 flex items-center justify-center w-full h-full",children:l.jsxs("div",{className:"relative w-full h-full max-h-[900px]",children:[l.jsx(vHe,{hoverIntensity:.5,rotateOnHover:!0,hue:0,forceHoverState:!1}),l.jsxs(ve.div,{className:"absolute inset-0 flex flex-col items-center justify-center text-center space-y-4 pointer-events-none",initial:{scale:.5,op
6045acity:0},animate:{scale:1,opacity:1},transition:{duration:1.2,ease:[.34,1.56,.64,1],opacity:{duration:.8}},children:[l.jsx("h1",{className:"rora-title text-7xl font-bold",children:"RORA"}),l.jsx("p",{className:"text-white/80 text-xl font-light max-w-md",children:"Let Every Song Be Yours"})]})]})})}),l.jsx("div",{className:"w-full lg:w-1/2 flex items-center justify-center p-6 lg:p-12 relative z-10",children:l.jsxs("div",{className:"w-full max-w-md",children:[l.jsx("div",{className:"lg:hidden text-center mb-8",children:l.jsx("h1",{className:"rora-title text-5xl font-bold mb-2",children:"RORA"})}),l.jsxs(Ai,{className:"glass border border-border rounded-2xl bg-transparent shadow-none",children:[l.jsxs(nh,{className:"space-y-2 pb-6",children:[l.jsx(rh,{className:"text-2xl text-foreground",children:"Set New Password"}),l.jsx(ih,{className:"text-muted-foreground",children:"Enter your new password below"})]}),l.jsxs(wa,{className:"space-y-6",children:[l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(Pr,{htmlFor:"new-password",className:"text-sm font-medium mb-2 block",children:"New Password"}),l.jsxs("div",{className:"relative",children:[l.jsx(Ms,{id:"new-password",type:c?"text":"password",placeholder:"Min. 8 characters",value:t,onChange:w=>y(w.target.value),className:`h-11 rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 pr-10 ${i?"border-destructive focus-visible:ring-destructive":"focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)]"}`}),l.jsx(Ge,{type:"button",variant:"ghost",size:"icon",className:"absolute right-1 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full hover:bg-white/10",onClick:()=>u(!c),children:c?l.jsx(Em,{className:"h-4 w-4 text-muted-foreground"}):l.jsx(Tm,{className:"h-4 w-4 text-muted-foreground"})})]}),i&&l.jsxs("p",{className:"text-destructive text-xs mt-1.5 flex items-center gap-1 ml-4",children:[l.jsx(Hd,{className:"w-3 h-3"}),i]}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1.5 ml-4",children:"Use at least 8 characters with letters and numbers"})]}),l.jsxs("div",{children:[l.jsx(Pr,{htmlFor:"confirm-password",className:"text-sm font-medium mb-2 block",children:"Confirm Password"}),l.jsxs("div",{className:"relative",children:[l.jsx(Ms,{id:"confirm-password",type:d?"text":"password",placeholder:"Re-enter password",value:n,onChange:w=>b(w.target.value),className:`h-11 rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 pr-10 ${o?"border-destructive focus-visible:ring-destructive":"focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)]"}`}),l.jsx(Ge,{type:"button",variant:"ghost",size:"icon",className:"absolute right-1 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full hover:bg-white/10",onClick:()=>h(!d),children:d?l.jsx(Em,{className:"h-4 w-4 text-muted-foreground"}):l.jsx(Tm,{className:"h-4 w-4 text-muted-foreground"})})]}),o&&l.jsxs("p",{className:"text-destructive text-xs mt-1.5 flex items-center gap-1 ml-4",children:[l.jsx(Hd,{className:"w-3 h-3"}),o]})]})]}),l.jsx(Ge,{className:"w-full h-11 rounded-full font-semibold bg-white/20 backdrop-blur-sm border border-white/30 hover:bg-white/30 text-foreground",variant:"ghost",onClick:x,disabled:f||!t||!n,children:f?l.jsxs(l.Fragment,{children:[l.jsx(Bo,{className:"mr-2 h-4 w-4 animate-spin"}),"Updating Password..."]}):l.jsxs(l.Fragment,{children:[l.jsx(ry,{className:"mr-2 h-4 w-4"}),"Reset Password"]})})]})]})]})})]})}const EJ=E.memo(()=>l.jsx("svg",{width:"0",height:"0",className:"absolute",children:l.jsxs("defs",{children:[l.jsxs("linearGradient",{id:"rora-billing-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[l.jsx("stop",{offset:"0%",style:{stopColor:"#E2628A"}}),l.jsx("stop",{offset:"100%",style:{stopColor:"#6200EE"}})]}),l.jsxs("filter",{id:"goo-effect-shared",children:[l.jsx("feGaussianBlur",{stdDeviation:"10",result:"blur",in:"SourceGraphic"}),l.jsx("feColorMatrix",{result:"goo",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7",mode:"matrix",in:"blur"})]})]})}));EJ.displayName="SharedSVGFilter";const D3=[{name:"Smooth Pro",icon:l.jsx("img",{src:"/icons/ionicons/water.svg",className:"w-5 h-5",alt:""}),defaultValue:30,min:0,max:100,step:1,scaleLabels:["Crisp","Smooth","Silky"]},{name:"Visual EQ",icon:l.jsx("img",{src:"/icons/ionicons/analytics.svg",className:"w-5 h-5",alt:""}),defaultValue:50,min:0,max:100,step:1,scaleLabels:["Flat","Shaped","Custom"]},{name:"Master Volume",icon:l.jsx("img",{src:"/icons/ionicons/volume-high.svg",className:"w-5 h-5",alt:""}),defaultValue:70,min:0,max:100,step:1,scaleLabels:["Quiet","Normal","Loud"]},{name:"Spatial Audio",icon:l.jsx("img",{src:"/icons/ionicons/headset.svg",className:"w-5 h-5",alt:""}),defaultValue:40,min:0,max:100,step:1,scaleLabels:["Flat","Wide","Immersive"]},{name:"Pitch Shifter",icon:l.jsx("img",{src:"/icons/ionicons/musical-note.svg",className:"w-5 h-5",alt:""}),defaultValue:50,min:0,max:100,step:1,scaleLabels:["Lower","Normal","Higher"]},{name:"Tempo Control",icon:l.jsx("img",{src:"/icons/ionicons/speedometer.svg",className:"w-5 h-5",alt:""}),defaultValue:75,min:0,max:100,step:1,scaleLabels:["Slow","Normal","Fast"]},{name:"Reverb",icon:l.jsx("img",{src:"/icons/ionicons/cube.svg",className:"w-5 h-5",alt:""}),defaultValue:25,min:0,max:100,step:1,scaleLabels:["Dry","Room","Hall"]},{name:"Muffler",icon:l.jsx("img",{src:"/icons/ionicons/volume-off.svg",className:"w-5 h-5",alt:""}),defaultValue:60,min:0,max:100,step:1,scaleLabels:["Clear","Muffled","Heavy"]}
6045,{name:"Echo",icon:l.jsx("img",{src:"/icons/ionicons/barcode-outline.svg",className:"w-5 h-5",alt:""}),defaultValue:35,min:0,max:100,step:1,scaleLabels:["None","Subtle","Deep"]}],xHe=D3.slice(0,3),bHe=D3.slice(3,6),wHe=D3.slice(6,9),bw=E.memo(({filter:t})=>{const[e,n]=E.useState(t.defaultValue),[r,i]=E.useState(!0),s=t.name.toLowerCase().replace(/\s+/g,"-");return l.jsx("figure",{className:He("relative h-full w-[360px] min-w-[360px] max-w-[360px] basis-[360px] flex-none flex-shrink-0 overflow-hidden rounded-2xl border p-4","bg-white/[0.03] border-white/[0.08]",r&&"bg-[#E2628A]/[0.08] border-[#E2628A]/30"),style:{willChange:"transform",backfaceVisibility:"hidden"},children:l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsxs("div",{className:"flex items-center justify-between mb-3",children:[l.jsxs("div",{className:"flex items-center gap-2.5 flex-1",children:[l.jsx("div",{className:He("flex items-center justify-center w-9 h-9 rounded-full transition-all","bg-white/[0.08]",r&&"[&>img]:brightness-0 [&>img]:invert [&>img]:hue-rotate-[320deg] [&>img]:saturate-[2]"),children:t.icon}),l.jsx("span",{className:"text-[13px] font-semibold tracking-wide",children:t.name})]}),l.jsxs("span",{className:He("min-w-[50px] text-right text-xs font-semibold mr-3 transition-all",r?"bg-gradient-to-r from-[#E2628A] to-[#6200EE] bg-clip-text text-transparent":"text-white/50"),children:[Math.round(e),"%"]}),l.jsxs("div",{className:"rora-toggle-container",children:[l.jsx("input",{type:"checkbox",id:`toggle-${s}`,className:"rora-toggle-input",checked:r,onChange:o=>i(o.target.checked)}),l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292 142",className:"rora-toggle",children:[l.jsx("path",{d:"M71 142C31.7878 142 0 110.212 0 71C0 31.7878 31.7878 0 71 0C110.212 0 119 30 146 30C173 30 182 0 221 0C260 0 292 31.7878 292 71C292 110.212 260.212 142 221 142C181.788 142 173 112 146 112C119 112 110.212 142 71 142Z",className:"rora-toggle-background"}),l.jsx("rect",{rx:"6",height:"64",width:"12",y:"39",x:"64",className:"rora-toggle-icon on"}),l.jsx("path",{d:"M221 91C232.046 91 241 82.0457 241 71C241 59.9543 232.046 51 221 51C209.954 51 201 59.9543 201 71C201 82.0457 209.954 91 221 91ZM221 103C238.673 103 253 88.6731 253 71C253 53.3269 238.673 39 221 39C203.327 39 189 53.3269 189 71C189 88.6731 203.327 103 221 103Z",fillRule:"evenodd",className:"rora-toggle-icon off"}),l.jsxs("g",{filter:"url('#goo-effect-shared')",children:[l.jsx("rect",{fill:"#fff",rx:"29",height:"58",width:"116",y:"42",x:"13",className:"rora-toggle-circle-center"}),l.jsx("rect",{fill:"#fff",rx:"58",height:"114",width:"114",y:"14",x:"14",className:"rora-toggle-circle left"}),l.jsx("rect",{fill:"#fff",rx:"58",height:"114",width:"114",y:"14",x:"164",className:"rora-toggle-circle right"})]})]})]})]}),l.jsxs("div",{className:He("transition-opacity duration-200",!r&&"opacity-30 pointer-events-none"),children:[l.jsxs("div",{className:"relative h-8 flex items-center group",children:[l.jsx("div",{className:"absolute inset-0 flex items-center",children:l.jsx("div",{className:He("w-full h-1.5 rounded-full transition-all duration-200 overflow-hidden","bg-white/[0.08]","group-hover:h-3 group-hover:bg-white/[0.12]"),children:l.jsx("div",{className:"h-full bg-gradient-to-r from-[#E2628A] to-[#6200EE] rounded-full transition-all",style:{width:`${e}%`}})})}),l.jsx("input",{type:"range",min:t.min,max:t.max,step:t.step,value:e,onChange:o=>n(Number(o.target.value)),disabled:!r,className:"absolute inset-0 w-full h-full opacity-0 cursor-grab active:cursor-grabbing disabled:cursor-default z-10"})]}),l.jsxs("div",{className:"flex justify-between text-[10px] text-white/35 mt-1.5 px-0.5 select-none tracking-wide",children:[l.jsx("span",{children:t.scaleLabels[0]}),l.jsx("span",{children:t.scaleLabels[1]}),l.jsx("span",{children:t.scaleLabels[2]})]})]})]})})});bw.displayName="FilterCard";function _He(){return l.jsxs("div",{className:"group/marquee relative flex h-[400px] w-full flex-row items-center justify-center gap-4 overflow-hidden [perspective:600px]",style:{WebkitMaskImage:"linear-gradient(to bottom, transparent, black 15%, black 85%, transparent)",maskImage:"linear-gradient(to bottom, transparent, black 15%, black 85%, transparent)",contain:"layout style paint"},children:[l.jsx(EJ,{}),l.jsxs("div",{className:"flex flex-row items-center gap-4",style:{transform:"translateZ(-100px) rotateX(25deg)",willChange:"transform",backfaceVisibility:"hidden"},children:[l.jsx(Ed,{pauseOnHover:!0,vertical:!0,repeat:3,className:"px-0 [--duration:20s] w-[360px] min-w-[360px] max-w-[360px]",children:xHe.map(t=>l.jsx(bw,{filter:t}
6045,t.name))}),l.jsx(Ed,{pauseOnHover:!0,reverse:!0,repeat:3,className:"px-0 [--duration:20s] w-[360px] min-w-[360px] max-w-[360px]",vertical:!0,children:bHe.map(t=>l.jsx(bw,{filter:t},t.name))}),l.jsx(Ed,{pauseOnHover:!0,repeat:3,className:"px-0 [--duration:20s] w-[360px] min-w-[360px] max-w-[360px]",vertical:!0,children:wHe.map(t=>l.jsx(bw,{filter:t},t.name))})]})]})}const SHe=({className:t,containerRef:e,fromRef:n,toRef:r,curvature:i=0,reverse:s=!1,duration:o=Math.random()*3+4,delay:a=0,pathColor:c="gray",pathWidth:u=2,pathOpacity:d=.2,gradientStartColor:h="#E2628A",gradientStopColor:f="#6200EE",startXOffset:m=0,startYOffset:v=0,endXOffset:p=0,endYOffset:g=0})=>{const y=E.useId(),[b,x]=E.useState(""),[w,_]=E.useState({width:0,height:0}),[S,T]=E.useState(null),M=S?S.endX-S.startX:0,A=S?S.endY-S.startY:0,C=M*.2,R=A*.2,j={x1:[((S==null?void 0:S.startX)??0)-C,((S==null?void 0:S.endX)??0)+C],x2:[(S==null?void 0:S.startX)??0,(S==null?void 0:S.endX)??0],y1:[((S==null?void 0:S.startY)??0)-R,((S==null?void 0:S.endY)??0)+R],y2:[(S==null?void 0:S.startY)??0,(S==null?void 0:S.endY)??0]},k={x1:[((S==null?void 0:S.endX)??0)+C,((S==null?void 0:S.startX)??0)-C],x2:[(S==null?void 0:S.endX)??0,(S==null?void 0:S.startX)??0],y1:[((S==null?void 0:S.endY)??0)+R,((S==null?void 0:S.startY)??0)-R],y2:[(S==null?void 0:S.endY)??0,(S==null?void 0:S.startY)??0]},P=s?k:j;return E.useEffect(()=>{const O=()=>{if(e.current&&n.current&&r.current){const F=e.current.getBoundingClientRect(),D=n.current.getBoundingClientRect(),I=r.current.getBoundingClientRect(),N=F.width,G=F.height;_({width:N,height:G});const q=D.left-F.left+D.width/2+m,W=D.top-F.top+D.height/2+v,Y=I.left-F.left+I.width/2+p,te=I.top-F.top+I.height/2+g,Q=W-i,X=`M ${q},${W} Q ${(q+Y)/2},${Q} ${Y},${te}`;x(X),T({startX:q,startY:W,endX:Y,endY:te})}},L=new ResizeObserver(F=>{for(const D of F)O()});return e.current&&L.observe(e.current),O(),()=>{L.disconnect()}},[e,n,r,i,m,v,p,g]),l.jsxs("svg",{fill:"none",width:w.width,height:w.height,xmlns:"http://www.w3.org/2000/svg",className:He("pointer-events-none absolute left-0 top-0 transform-gpu stroke-2",t),viewBox:`0 0 ${w.width} ${w.height}`,children:[l.jsx("path",{d:b,stroke:c,strokeWidth:u,strokeOpacity:d,strokeLinecap:"round"}),l.jsx("path",{d:b,strokeWidth:u,stroke:`url(#${y})`,strokeOpacity:"1",strokeLinecap:"round"}),l.jsx("defs",{children:l.jsxs(ve.linearGradient,{className:"transform-gpu",id:y,gradientUnits:"userSpaceOnUse",initial:{x1:"0%",x2:"0%",y1:"0%",y2:"0%"},animate:{x1:P.x1,x2:P.x2,y1:P.y1,y2:P.y2},transition:{delay:a,duration:o,ease:[.16,1,.3,1],repeat:1/0,repeatDelay:0},children:[l.jsx("stop",{stopColor:h,stopOpacity:"0"}),l.jsx("stop",{stopColor:h}),l.jsx("stop",{offset:"32.5%",stopColor:f}),l.jsx("stop",{offset:"100%",stopColor:f,stopOpacity:"0"})]})})]})},nj=E.forwardRef(({className:t,children:e},n)=>l.jsxs("div",{ref:n,className:He("z-10 flex size-12 items-center justify-center rounded-full bg-neutral-900/80 backdrop-blur-sm p-2 shadow-lg transition-all duration-300 relative",t),children:[l.jsx("div",{className:"absolute inset-0 rounded-full border-2 border-white/20 transition-all duration-300"}),l.jsx("div",{className:"absolute inset-0 rounded-full opacity-0 group-hover:opacity-100 transition-opacity duration-300",style:{background:"linear-gradient(135deg, #E2628A, #6200EE)",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",padding:"2px"}}),l.jsx("div",{className:"relative z-10",children:e})]}));nj.displayName="Circle";const EHe={masterVolume:"master-volume",bassBoost:"bass-boost",bassReduce:"bass-cut",bassCut:"bass-cut",echo:"echo",muffler:"muffler",pitch:"pitch-shifter",pitchShifter:"pitch-shifter",reverb:"reverb",smooth:"smooth-pro",smoothPro:"smooth-pro",spatialAudio:"spatial-audio",tempo:"tempo-control",tempoControl:"tempo-control",visualEQ:"visual-eq","master-volume":"master-volume","bass-boost":"bass-boost","bass-cut":"bass-cut","pitch-shifter":"pitch-shifter","smooth-pro":"smooth-pro","spatial-audio":"spatial-audio","tempo-control":"tempo-control","visual-eq":"visual-eq"},THe={"master-volume":"Extreme amplification up to 400% with advanced headroom protection","bass-boost":"Two-stage bass enhancement with clean, powerful low-end punch","bass-cut":"Reduce unwanted bass for improved voice clarity and focus",echo:"Rhythmic delay effect with 300ms repeats and filtered feedback",muffler:"Creative high-frequency reduction for warm, lo-fi soundscapes","pitch-shifter":"Change pitch ±6 semitones without affecting tempo",reverb:"Convolution reverb for spatial depth and ambience","smooth-pro":"FFT-based noise removal preserving audio quality","spatial-audio":"True 3D HRTF positioning - headphones required","tempo-control":"Slow down audio 0.5à to 1.0à without pitch change","visual-eq":"10-band parametric EQ with visual control"},aA=t=>EHe[t]||t;function TJ({filters:t,className:e}){const n=E.useRef(null),r=E.useRef(null);E.useRef(null);const i=E.useRef([]),[s,o]=E.useState(!1);return E.useEffect(()=>o(!0),[]),l.jsxs("div",{className:He("relative w-full max-w-[600px] mx-auto aspect-square flex items-center justify-center overflow-visible",e),ref:n,children:[l.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50",children:l.jsx(nj,{ref:r,className:"size-20 border-white/30 bg-gradient-to-br from-primary-brand/20 to-accent/20",children:l.jsx("img",{src:"/lovable-uploads/9fecd808-10d6-4fa5-847b-b7736d90756c.png",alt:"RORA",className:"w-[60px] h-[60px] rounded-lg"})})}),l.jsx(HH,{delayDuration:200,children:t.map((a,c)=>{const u=(c*(360/t.length)-90)*(Math.PI/180),d=50+Math.cos(u)*42,h=50+Math.sin(u)*42;return l.jsxs(qle,{children:[l.jsx(Yle,{asChild:!0,children:l.jsx("div",{className:"absolute z-10",style:{left:`${d}%`,top:`${h}%`,transform:"translate(-50%, -50%)"},children:l.jsxs(mt,{to:`/features/${aA(a.key)}`,className:"relative block group",children:[l.jsx(nj,{ref:f=>i.current[c]=f,className:"transition-all duration-300 group-hover:scale-125 group-hover:shadow-[0_0_30px_rgba(226,98,138,0.6)] group-hover:border-[#
6045E2628A]",children:l.jsxs("div",{className:"relative w-[31px] h-[31px]",children:[l.jsx("img",{src:a.icon,alt:a.name,className:"w-[31px] h-[31px] brightness-0 invert transition-all duration-300 absolute inset-0 group-hover:opacity-0"}),l.jsx("div",{className:"w-[31px] h-[31px] opacity-0 group-hover:opacity-100 transition-all duration-300 absolute inset-0 bg-gradient-to-br from-[#E2628A] to-[#6200EE]",style:{maskImage:`url(${a.icon})`,WebkitMaskImage:`url(${a.icon})`,maskSize:"contain",WebkitMaskSize:"contain",maskRepeat:"no-repeat",WebkitMaskRepeat:"no-repeat",maskPosition:"center",WebkitMaskPosition:"center"}})]})}),l.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 text-center pointer-events-none hidden md:block",children:l.jsx("div",{className:"text-white text-base font-medium whitespace-nowrap transition-all duration-300 group-hover:scale-110",children:a.name})})]})})}),l.jsx(VH,{side:"top",className:"max-w-96 z-[100] p-0 border-0 bg-transparent",sideOffset:12,children:l.jsx("div",{className:"relative p-6 rounded-2xl border border-white/18 shadow-[0_8px_32px_rgba(0,0,0,0.4)] overflow-hidden bg-neutral-900/95",children:l.jsxs("div",{className:"relative",children:[l.jsxs("div",{className:"flex items-start justify-between gap-4 mb-3",children:[l.jsx("h3",{className:"text-lg font-semibold text-white",children:a.name}),l.jsx(mt,{to:`/features/${aA(a.key)}`,className:"flex-shrink-0 p-2 hover:bg-white/10 rounded-lg transition-all duration-300 group",children:l.jsx("svg",{className:"w-4 h-4 text-white group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform duration-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})})]}),l.jsx("p",{className:"text-sm text-gray-400",children:THe[aA(a.key)]||"Enhance your audio"})]})})})]},a.key)})}),s&&t.map((a,c)=>{const u=i.current[c];return u?l.jsx(SHe,{containerRef:n,fromRef:{current:u},toRef:r,duration:5.4,delay:c*.36},`beam-in-${c}`):null})]})}const Lv=[{title:"AI Features",description:"Describe a vibe. Hear it happen.",filters:[{name:"Conjure",slug:"conjure",icon:l.jsx(ho,{className:"w-6 h-6 text-[#ff4d9b]","aria-hidden":!0}),description:"Type a vibe in plain language and Conjure builds a custom filter stack for you. On-device AI via Chrome's Prompt API. Private, free, and instant.",isNew:!0}]},{title:"Amplification Control",description:"Volume control for quiet sources",badge:"Bonus",filters:[{name:"Master Volume",slug:"master-volume",icon:l.jsx("img",{src:"/icons/ionicons/volume-high.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Amplify your audio from 25% to 400% volume. Useful for quiet recordings or low-volume sources. Simple linear gain control across all frequencies."}]},{title:"Noise Removal & Clarity",description:"FFT-based spectral processing for cleaner audio",filters:[{name:"Smooth Pro",slug:"smooth-pro",icon:l.jsx("img",{src:"/icons/ionicons/water.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Spectral gate denoiser that reduces unwanted noise, hum, and background artifacts while preserving musical detail. Real-time FFT-based processing with MCRA noise floor tracking targets electrical interference, rumble, and high-frequency hiss."},{name:"Bass Cut",slug:"bass-cut",icon:l.jsx("img",{src:"/icons/ionicons/trending-down.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Bass reduction removes boominess and rumble without thinning your audio. Two-stage filtering combines high-pass and low-shelf EQ to reduce bass while maintaining vocal clarity."}]},{title:"Bass & Frequency Control",description:"Low-end enhancement and creative filtering",filters:[{name:"Bass Boost",slug:"bass-boost",icon:l.jsx("img",{src:"/icons/ionicons/pulse.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Two-stage bass enhancement delivers clean low-end boost. Low-shelf filter at 150Hz combines with sub-bass peaking at 50Hz for up to +6.5dB of bass without distortion."},{name:"Muffler",slug:"muffler",icon:l.jsx("img",{src:"/icons/ionicons/volume-off.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Cascaded low-pass filter creates a warm, distant sound by rolling off high frequencies. Good for late-night listening, reducing harshness, or creating lo-fi aesthetics."},{name:"Visual EQ",slug:"visual-eq",icon:l.jsx("img",{src:"/icons/ionicons/analytics.svg",className:"w-6 h-6 brightness-0 invert",alt:""}
6045),description:"10-band equalizer with interactive drag-and-drop canvas. Frequency control from 32Hz to 16kHz with ±12dB gain per band. Includes 12 presets plus custom save/load."}]},{title:"Spatial & Time Effects",description:"Reverb, echo, and 3D audio positioning",filters:[{name:"Spatial Audio",slug:"spatial-audio",icon:l.jsx("img",{src:"/icons/ionicons/headset.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"3D sound positioning using HRTF binaural panning. Creates spatial movement with circular and orbital patterns. Adjustable orbit radius and speed. Requires headphones for full effect."},{name:"Reverb",slug:"reverb",icon:l.jsx("img",{src:"/icons/ionicons/cube.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Convolution reverb adds natural room ambience to your audio. Uses procedurally-generated impulse responses with stereo width enhancement and smooth decay."},{name:"Echo",slug:"echo",icon:l.jsx("img",{src:"/icons/ionicons/barcode-outline.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Delay effect creates warm, rhythmic repeats. Adjustable delay time up to 600ms with feedback control and adaptive high-cut filtering for natural decay."}]},{title:"Pitch & Tempo Control",description:"Independent time and frequency manipulation",filters:[{name:"Pitch Shifter",slug:"pitch-shifter",icon:l.jsx("img",{src:"/icons/ionicons/musical-note.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Real-time pitch control shifts your music up or down by 6 semitones without affecting tempo. Powered by SoundTouch WASM for pitch-shifting with minimal artifacts."},{name:"Tempo Control",slug:"tempo-control",icon:l.jsx("img",{src:"/icons/ionicons/speedometer.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Time stretching adjusts playback speed from 50% to 100% without changing pitch. Powered by SoundTouch WASMâuseful for learning difficult passages or detailed audio analysis."}]},{title:"Capture & Export",description:"Record and share your perfect audio configurations",filters:[{name:"Recording",slug:"recording",icon:l.jsx("img",{src:"/icons/ionicons/mic.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Capture any audio playing in your browser as a lossless .wav file. No re-encoding, no compression artifactsâjust a pristine, bit-accurate recording you can keep forever."},{name:"Share",slug:"share",icon:l.jsx("img",{src:"/icons/ionicons/share-social.svg",className:"w-6 h-6 brightness-0 invert",alt:""}),description:"Export and share your custom audio presets with friends, collaborators, or the RORA community. One-click sharing via URL, QR code, or file export lets anyone instantly apply your exact audio configuration."}]}];mn.registerPlugin(wt);const AHe=()=>{const t=E.useRef([]);E.useEffect(()=>(t.current.forEach((n,r)=>{n&&mn.fromTo(n,{opacity:0,y:60,scale:.95},{opacity:1,y:0,scale:1,duration:1.2,ease:"power3.out",scrollTrigger:{trigger:n,start:"top bottom-=100",end:"top center",toggleActions:"play none none reverse",scrub:!1}})}),()=>{wt.getAll().forEach(n=>n.kill())}),[]);const e=[{title:"Audiophiles & Music Lovers",description:"Enhance your streaming audio",icon:l.jsx(Q9,{className:"w-12 h-12 text-white"}),examples:["Bass booster adds punch without distortion","3D binaural audio creates spatial sound","Audio enhancement for all your music"]},{title:"Podcast & Audiobook Fans",description:"Clearer voices without background noise",icon:l.jsx(Y9,{className:"w-12 h-12 text-white"}),examples:["Smooth Pro removes hiss, hum, and background noise","Tempo control slows speech without changing pitch","Bass reducer removes rumble for clearer voices"]},{title:"Content Creators & Producers",description:"Audio processing without leaving your browser",icon:l.jsx(Use,{className:"w-12 h-12 text-white"}),examples:["Preview audio adjustments instantly while working","Add reverb to enhance your content","Creative pitch shifting for unique sound design"]},{title:"Students & Educators",description:"Better audio for online learning and lectures",icon:l.jsx(C0,{className:"w-12 h-12 text-white"}),examples:["Slow down difficult material without changing pitch","Remove noise from poor-quality lecture recordings","Enhance clarity of educational videos and podcasts"]}];return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Audio Filters & Features | RORA Audio"}),l.jsx("meta",{name:"description",content:"Explore RORA's 10 real-time audio filters: bass boost, pitch shift, spatial audio, reverb, echo & more. Works on any website with audio."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features"}),l.jsx("meta",{property:"og:title",content:"Audio Filters & Features | RORA Audio"}),l.jsx("meta",{property:"og:description",content:"Explore RORA's 10 real-time audio filters: bass boost, pitch shift, spatial audio, reverb, echo & more. Works on any website with audio."}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features"}),l.jsx("meta",{property:"og:type",content:"website"})]}),l.jsxs("div",{className:"min-h-screen relative z-10",children:[l.jsx("div",{className:"pt-10",children:l.jsx(MO,{})}),l.jsx("section",{className:"pt-6 pb-6",children:l.jsxs("div",{className:"container mx-auto px-4 text-center",children:[l.jsxs(Tt,{duration:700,delay:50,children:[l.jsxs("h1",{className:"text-5xl md:text-7xl font-bold mb-6 leading-tight",children:[l.jsx("span",{className:"text-foreground",children:"Add Your Own Personal Touch"}),l.jsx("br",{})]}),l.jsx("div",{className:"soft-separator max-w-lg mx-auto mb-8"})]}),l.jsx(Tt,{duration:700,delay:100,children:l.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground max-w-4xl mx-auto mb-12",children:"Take control of the sound with 10 filters, from pitch shifting to 3D audio, the options are endless. All inside your browser."})}),l.jsx(Tt,{duration:700,delay:200,children:l.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:l.jsxs(NS,{modal:!1,children:[l.jsx(kS,{asChild:!0,children:l.jsxs(Ge,{variant:"outline",size:"lg",className:"glass group relative z-[51]",children:["Explore All Filters",l.jsx(pp,{className:"ml-2 h-4 w-4 chevron-rotate group-data-[state=open]:rotate-180"})]})}),l.jsx($0,{className:"w-[90vw] max-w-6xl max-h-[80vh] overflow-y-auto p-6 bg-white/10 backdrop-blur-xl border-white/20 z-50 dropdown-menu-animate rounded-3xl shadow-2xl shadow-black/20",align:"center",sideOffset:12,children:l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:Lv.flatMap(n=>n.filters.map(r=>l.jsxs(mt,{to:`/features/${r.slug}`,className:"flex items-center gap-3 px-5 py-3 rounded-full hover:bg-white/20 hover:border-white/30 transition-all group dropdown-item-animate border border-transparent",children:[l.jsx("div",{className:"w-5 h-5 flex items-center justify-center flex-shrink-0 [&>
6045svg]:text-foreground/70 [&>svg]:group-hover:text-white [&>svg]:transition-colors [&>img]:group-hover:brightness-0 [&>img]:group-hover:invert-[1] [&>img]:transition-all",children:r.icon}),l.jsx("h4",{className:"text-sm font-normal text-foreground/70 group-hover:text-white transition-colors flex-1 min-w-0",children:r.name}),r.isNew&&l.jsx("span",{className:"ml-auto shrink-0 text-[10px] font-semibold uppercase tracking-wider px-2 py-0.5 rounded-full bg-gradient-to-r from-[#ff4d9b]/25 to-[#9945ff]/25 border border-white/20 text-white/90",children:"New"})]},r.slug)))})})]})})})]})}),l.jsx("section",{className:"pt-10 pb-24",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsx(Tt,{duration:600,delay:0,children:l.jsx(_He,{})}),l.jsxs("div",{className:"text-center mb-16 mt-16",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-4xl md:text-5xl font-bold mb-6 text-foreground",children:"Attuned to Every Situation"}),l.jsx(Tt,{duration:600,delay:100,children:l.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Real-time audio processing using the Web Audio API"})}),l.jsx(Tt,{duration:700,delay:200,children:l.jsx("div",{className:"flex justify-center mt-12 px-4",children:l.jsx("div",{className:"w-full max-w-[95vw] sm:max-w-[80vw] md:max-w-[600px] lg:max-w-[700px]",children:l.jsx(TJ,{filters:Lv.flatMap(n=>n.filters.map(r=>{var s,o;let i="/icons/ionicons/musical-note.svg";if(r.icon&&typeof r.icon=="object"){const a=r.icon;(s=a.props)!=null&&s.src?i=a.props.src:((o=a.type)==null?void 0:o.name)==="Volume2"&&(i="/icons/ionicons/volume-high.svg")}return{key:r.slug,value:"Active",icon:i,name:r.name}})),className:"max-w-6xl mx-auto"})})})})]}),l.jsx("div",{className:"space-y-24 hidden",children:Lv.map((n,r)=>l.jsxs(Tt,{duration:600,delay:r*100,children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("h3",{className:"text-3xl font-bold text-foreground mb-4",children:n.title}),l.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:n.description})]}),l.jsx("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(320px,380px))] gap-8 max-w-7xl mx-auto justify-center",children:n.filters.map((i,s)=>l.jsxs(Ai,{className:"glass border border-border rounded-2xl bg-transparent shadow-none group flex flex-col h-full",children:[l.jsxs(nh,{className:"text-center relative z-10",children:[l.jsx("div",{className:"w-10 h-10 mx-auto flex items-center justify-center mb-4",children:i.icon}),l.jsx(rh,{className:"text-xl font-bold text-white group-hover:text-white transition-colors",children:i.name})]}),l.jsxs(wa,{className:"relative z-10 flex-1 flex flex-col gap-4",children:[l.jsx(ih,{className:"text-center text-neutral-300 group-hover:text-neutral-200 transition-colors leading-relaxed",children:i.description}),l.jsx(Ge,{variant:"outline",size:"sm",className:"glass mx-auto mt-auto",asChild:!0,children:l.jsxs(mt,{to:`/features/${i.slug}`,children:["Explore ",l.jsx(Xc,{className:"ml-2 w-4 h-4"})]})})]})]},i.name))})]},n.title))})]})}),l.jsx("section",{className:"pt-8 pb-24",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsxs("div",{className:"text-center mb-3",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-4xl md:text-5xl font-bold mb-6 text-foreground",children:"Use Cases & Applications"}),l.jsx(Tt,{duration:600,delay:100,children:l.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Discover how RORA enhances your music experience across different scenarios and use cases."})})]}),l.jsx("div",{className:"max-w-4xl mx-auto space-y-8 py-12",children:e.map((n,r)=>l.jsxs("div",{ref:i=>t.current[r]=i,className:"bg-background/95 backdrop-blur-sm p-8 rounded-2xl border border-border opacity-0",children:[l.jsxs("div",{className:"text-center mb-6",children:[l.jsx("div",{className:"w-20 h-20 mx-auto rounded-full aurora-bg-subtle flex items-center justify-center mb-4",children:n.icon}),l.jsx("h3",{className:"text-2xl font-bold text-foreground mb-2",children:n.title}),l.jsx("p",{className:"text-base text-muted-foreground",children:n.description})]}),l.jsx("ul",{className:"space-y-3",children:n.examples.map((i,s)=>l.jsxs("li",{className:"flex items-start gap-3 text-sm text-muted-foreground",children:[l.jsx(ho,{className:"w-4 h-4 mt-0.5 text-white flex-shrink-0"}),i]},s))})]},n.title))})]})}),l.jsx("section",{className:"py-24",children:l.jsxs("div",{className:"container mx-auto px-4 text-center",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",
6045scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-4xl md:text-5xl font-bold mb-6 text-foreground",children:"Ready to Upgrade Your Music?"}),l.jsx(Tt,{duration:600,delay:100,children:l.jsx("div",{className:"text-xl text-muted-foreground mb-12 max-w-3xl mx-auto",children:l.jsx(M_,{text:"Try RORA's audio filters and see how they work for you.",speed:3,className:"text-xl"})})}),l.jsx(Tt,{duration:600,delay:200,children:l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsx(Ge,{size:"lg",variant:"premium",asChild:!0,children:l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",children:[l.jsx(Vr,{className:"w-5 h-5 mr-2 text-white"}),"Get It Now"]})}),l.jsx(Ge,{variant:"outline",size:"lg",className:"glass",asChild:!0,children:l.jsx(mt,{to:"/about",children:"Learn how RORA enhances audio"})})]})})]})}),l.jsx("section",{className:"py-8 border-t border-border/50",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsx("p",{className:"text-xs text-muted-foreground/60 text-center max-w-4xl mx-auto",children:"¹Works on most websites we've tested. We reserve the right to not work on certain websites due to content restrictions and privacy reasons."})})})]})]})},AJ=E.forwardRef(({className:t,onMouseMove:e,children:n,...r},i)=>{let s=c1(0),o=c1(0);function a(c){const{left:u,top:d}=c.currentTarget.getBoundingClientRect();s.set(c.clientX-u),o.set(c.clientY-d),e&&e(c)}return l.jsxs("div",{ref:i,className:He("group relative rounded-lg border bg-card text-card-foreground shadow-sm",t),onMouseMove:a,...r,children:[l.jsx(ve.div,{className:"pointer-events-none absolute -inset-px rounded-lg opacity-0 transition duration-300 group-hover:opacity-100",style:{background:YM` 6046 radial-gradient( 6047 650px circle at ${s}px ${o}px, 6048 rgba(255, 51, 153, 0.15), 6049 rgba(168, 85, 247, 0.1), 6050 transparent 80% 6051 ) 6052 `}}),n]})});AJ.displayName="MagneticCard";const CJ=E.forwardRef(({className:t,...e},n)=>l.jsx("div",{ref:n,className:He("flex flex-col space-y-1.5 p-6 relative z-10",t),...e}));CJ.displayName="MagneticCardHeader";const MJ=E.forwardRef(({className:t,...e},n)=>l.jsx("h3",{ref:n,className:He("text-2xl font-semibold leading-none tracking-tight",t),...e}));MJ.displayName="MagneticCardTitle";const RJ=E.forwardRef(({className:t,...e},n)=>l.jsx("p",{ref:n,className:He("text-sm text-muted-foreground",t),...e}));RJ.displayName="MagneticCardDescription";const PJ=E.forwardRef(({className:t,...e},n)=>l.jsx("div",{ref:n,className:He("p-6 pt-0 relative z-10",t),...e}));PJ.displayName="MagneticCardContent";const CHe=E.forwardRef(({className:t,...e},n)=>l.jsx("div",{ref:n,className:He("flex items-center p-6 pt-0 relative z-10",t),...e}));CHe.displayName="MagneticCardFooter";function MHe({children:t,className:e="",colors:n=["#E2628A","#6200EE","#40ffaa","#E2628A","#6200EE"],animationSpeed:r=20,showBorder:i=!1}){const s={backgroundImage:`linear-gradient(to right, ${n.join(", ")})`,animationDuration:`${r}s`};return l.jsx("div",{className:`animated-gradient-text ${e}`,children:i&&l.jsx("div",{className:"gradient-overlay",style:s})})}mn.registerPlugin(wt);const RHe=({children:t,scrollContainerRef:e,baseOpacity:n=.1,baseRotation:r=3,containerClassName:i="",textClassName:s="",rotationEnd:o="bottom bottom",wordAnimationEnd:a="bottom bottom"})=>{const c=E.useRef(null),u=E.useMemo(()=>(typeof t=="string"?t:"").split(/(\s+)/).map((h,f)=>h.match(/^\s+$/)?h:l.jsx("span",{className:"word",children:h},f)),[t]);return E.useEffect(()=>{const d=c.current;if(!d)return;const h=e&&e.current?e.current:window;mn.fromTo(d,{transformOrigin:"0% 50%",rotate:r},{ease:"none",rotate:0,scrollTrigger:{trigger:d,scroller:h,start:"top bottom",end:o,scrub:!0}});const f=d.querySelectorAll(".word");return mn.fromTo(f,{opacity:n,willChange:"opacity"},{ease:"none",opacity:1,stagger:.03,scrollTrigger:{trigger:d,scroller:h,start:"top 80%",end:a,scrub:!0}}),()=>
6052{wt.getAll().forEach(m=>m.kill())}},[e,r,n,o,a]),l.jsx("h2",{ref:c,className:`scroll-reveal ${i}`,children:l.jsx("p",{className:`scroll-reveal-text ${s}`,children:u})})},PHe=()=>{const[t,e]=E.useState(!1),n=[{icon:l.jsx(ho,{className:"w-8 h-8"}),title:"Quality Processing",description:"We implement established audio engineering algorithms: FFT spectral processing, WSOLA pitch/tempo control, HRTF binaural audio."},{icon:l.jsx(C0,{className:"w-8 h-8"}),title:"Privacy First",description:"All processing happens locally in your browser. Zero data collection, zero tracking, zero cloud uploads. Your audio never leaves your device."},{icon:l.jsx(Yse,{className:"w-8 h-8"}),title:"Easy to Use",description:"Audio processing without expensive hardware or complex software. RORA runs entirely in your browser."},{icon:l.jsx(X9,{className:"w-8 h-8"}),title:"Own It, Don't Rent It",description:"Software like RORA should be owned, not rented. Our upfront investment is covered, so now we pass the value to you. RORA Max is a one-time purchase. No subscriptions, no renewals. It is yours forever."}];return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"About RORA | Audio Enhancement for Everyone"}),l.jsx("meta",{name:"description",content:"RORA is a browser extension that lets you adjust audio in real-time. Built in Scandinavia for music lovers, students, and creators."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/about"}),l.jsx("meta",{property:"og:title",content:"About RORA | Audio Enhancement for Everyone"}),l.jsx("meta",{property:"og:description",content:"RORA is a browser extension that lets you adjust audio in real-time. Built in Scandinavia for music lovers, students, and creators."}),l.jsx("meta",{property:"og:url",content:"https://rora.one/about"}),l.jsx("meta",{property:"og:type",content:"website"})]}),l.jsxs("div",{className:"min-h-screen relative z-10",children:[l.jsx("section",{className:"pt-24 pb-2",children:l.jsxs("div",{className:"container mx-auto px-4 text-center",children:[l.jsxs(Tt,{duration:700,children:[l.jsxs("h1",{className:"text-5xl md:text-7xl font-bold text-white mb-6",children:["Songs Say More",l.jsx("br",{}),"Than A Million Words",l.jsx(MHe,{colors:["#E2628A","#ff8fb4","#E2628A"],animationSpeed:20,className:"text-5xl md:text-7xl font-bold",children:"More Than Sound"})]}),l.jsx("div",{className:"soft-separator max-w-lg mx-auto mb-8"})]}),l.jsx(Tt,{duration:700,delay:100,children:l.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground max-w-4xl mx-auto mb-12",children:"RORA was created by music lovers, for music lovers. We believe you should be able to adjust any song to fit your mood and moment."})})]})}),l.jsx("section",{className:"pt-6 pb-12",children:l.jsx("div",{className:"container mx-auto px-4 text-center",children:l.jsx(RHe,{baseOpacity:.2,baseRotation:0,wordAnimationEnd:"bottom center",children:"The best version of any song is your version. We built RORA because we love music and we wanted more control over how it sounds. The same song can feel completely different depending on the moment. A track that works for your morning run might need to soften when you're trying to focus. An old favorite can come alive again with a little more low end. A podcast becomes easier to follow when the voices sit right. We wanted a simple way to shape sound in real-time. So we made one. We care about how things feel. Not just how they work. How they feel to use. Every slider responds instantly. The toggles are intuitive, not just functional. We listened to hundreds of songs tuning each EQ preset, making sure they actually worked for real music. We built a 3D visualizer that shows where sound sits in space around you. We scrapped it twice before getting it right. Details take time. We think they matter. We're just getting started. Right now, RORA is simple and works seamlessly in your browser. We're building toward something bigger. Your audio preferences following you across devices. Smarter ways to discover music based on how you listen. The ability to share exactly what you're hearing with someone else. There's a lot we want to make. If that sounds like you, we're glad you're here. So, let every song be yours and get started with us today."})})}),l.jsx("section",{className:"py-24",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",
6052scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-4xl md:text-5xl font-bold mb-6 text-foreground",children:"What We Stand For"}),l.jsx(Tt,{duration:600,delay:100,children:l.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Our values guide every decision we make, from the filters we create to the features we build."})})]}),l.jsx("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:n.map((r,i)=>l.jsx(Tt,{duration:600,delay:i*100,children:l.jsxs(AJ,{className:"panel-2025 h-full group",children:[l.jsxs(CJ,{className:"text-center relative z-10",children:[l.jsx("div",{className:"w-10 h-10 mx-auto flex items-center justify-center mb-4",children:r.icon}),l.jsx(MJ,{className:"text-xl font-bold text-white group-hover:text-white transition-colors",children:r.title})]}),l.jsx(PJ,{className:"relative z-10",children:l.jsx(RJ,{className:"text-center text-neutral-300 group-hover:text-neutral-200 transition-colors leading-relaxed",children:r.description})})]})},r.title))})]})}),l.jsx("section",{className:"py-24",children:l.jsxs("div",{className:"container mx-auto px-4 text-center",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-4xl md:text-5xl font-bold mb-6 text-foreground",children:"Join Our Story"}),l.jsx(Tt,{duration:600,delay:100,children:l.jsx("div",{className:"text-xl text-muted-foreground mb-12 max-w-3xl mx-auto",children:l.jsx(M_,{text:"Try RORA with just one song and see how it feels.",speed:3,className:"text-xl"})})}),l.jsx(Tt,{duration:600,delay:200,children:l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsxs(Ge,{size:"lg",variant:"premium",onClick:()=>e(!0),children:[l.jsx(Vr,{className:"w-5 h-5 mr-2 text-white"}),"Get Notified"]}),l.jsx(Ge,{variant:"outline",size:"lg",className:"glass",asChild:!0,children:l.jsx(mt,{to:"/features",children:"Explore Features"})})]})})]})}),l.jsx(H0,{open:t,onOpenChange:e})]})]})},jHe=E.lazy(()=>dh(()=>import("./LightPillar-DTWXnmt1.js"),__vite__mapDeps([0,1]))),NHe=t=>Array.from({length:t},(e,n)=>({id:n,left:Math.random()*100,top:Math.random()*100,size:Math.random()*1.5+1,opacity:Math.random()*.3+.1,animationDelay:Math.random()*3})),kHe=()=>{const t=E.useMemo(()=>NHe(40),[]),[e,n]=E.useState("#6bffc6"),[r,i]=E.useState("#8b5cf6"),[s,o]=E.useState("#ec4899"),[a,c]=E.useState(1),[u,d]=E.useState(.5),[h,f]=E.useState(.002),[m,v]=E.useState(2.9),[p,g]=E.useState(.3),[y,b]=E.useState(1.6),[x,w]=E.useState(311),[_,S]=E.useState(!1),[T,M]=E.useState("screen");return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Lost in Space | RORA"}),l.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),l.jsxs("div",{className:"min-h-screen relative overflow-x-hidden bg-background -mt-16 md:-mt-18 pt-16 md:pt-18",children:[l.jsxs("div",{className:"absolute top-0 left-0 right-0 h-[calc(100vh+4rem)] z-0 pointer-events-none",children:[l.jsx("div",{className:"absolute inset-0 bg-background",children:t.map(A=>l.jsx("div",{className:"absolute rounded-full bg-white/60 animate-pulse",style:{left:`${A.left}%`,top:`${A.top}%`,width:`${A.size}px`,height:`${A.size}px`,opacity:A.opacity,animationDelay:`${A.animationDelay}s`,animationDuration:"3s"}},A.id))}),l.jsx("div",{className:"absolute inset-0",style:{mixBlendMode:T},children:l.jsx(E.Suspense,{fallback:l.jsx("div",{className:"w-full h-full bg-gradient-to-b from-[#070710] via-[#0f0f1a] to-[#070710]"}),children:l.jsx(jHe,{topColor:e,middleColor:r,bottomColor:s,intensity:a,rotationSpeed:u,glowAmount:h,pillarWidth:m,pillarHeight:p,noiseIntensity:y,pillarRotation:x,interactive:_,mixBlendMode:"normal"})})}),l.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-80 bg-gradient-to-b from-transparent via-background/60 to-background pointer-events-none z-10"})]}),l.jsx("div",{className:"relative z-10",children:l.jsx("div",{className:"h-screen flex items-center justify-center px-4",children:l.jsxs(ve.div,{initial:{opacity:0,y:20}
6052,animate:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},className:"text-center space-y-6",children:[l.jsx(ve.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:1,delay:.2},children:l.jsx("h1",{className:"text-[10rem] md:text-[14rem] font-bold leading-none tracking-tighter",style:{WebkitTextStroke:"2px rgba(255, 255, 255, 0.8)",WebkitTextFillColor:"transparent"},children:"404"})}),l.jsx(ve.p,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.6,delay:.5},className:"text-lg md:text-xl text-white/70 max-w-md mx-auto font-light",children:"This page doesn't exist yet, but we're building something in secret. Props to you for finding it!"}),l.jsx(ve.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.6,delay:.7},children:l.jsx(Ge,{asChild:!0,className:"rounded-full bg-white/10 backdrop-blur-md border border-white/20 hover:bg-white/20 hover:border-white/40 transition-all px-8 py-6 text-base group",children:l.jsxs(mt,{to:"/",className:"flex items-center gap-3",children:[l.jsx(Z9,{className:"w-5 h-5 group-hover:-translate-y-1 group-hover:translate-x-1 transition-transform"}),"Return to Home"]})})})]})})})]})]})};function R_(t,[e,n]){return Math.min(n,Math.max(e,t))}function F3(t){const e=E.useRef({value:t,previous:t});return E.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var jJ=["PageUp","PageDown"],NJ=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],kJ={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},zp="Slider",[rj,OHe,IHe]=fp(zp),[OJ,bJe]=ks(zp,[IHe]),[LHe,I2]=OJ(zp),IJ=E.forwardRef((t,e)=>{const{name:n,min:r=0,max:i=100,step:s=1,orientation:o="horizontal",disabled:a=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[r],value:d,onValueChange:h=()=>{},onValueCommit:f=()=>{},inverted:m=!1,form:v,...p}=t,g=E.useRef(new Set),y=E.useRef(0),x=o==="horizontal"?DHe:FHe,[w=[],_]=uo({prop:d,defaultProp:u,onChange:R=>{var k;(k=[...g.current][y.current])==null||k.focus(),h(R)}}),S=E.useRef(w);function T(R){const j=HHe(w,R);C(R,j)}function M(R){C(R,y.current)}function A(){const R=S.current[y.current];w[y.current]!==R&&f(w)}function C(R,j,{commit:k}={commit:!1}){const P=qHe(s),O=YHe(Math.round((R-r)/s)*s+r,P),L=R_(O,[r,i]);_((F=[])=>{const D=zHe(F,L,j);if(GHe(D,c*s)){y.current=D.indexOf(L);const I=String(D)!==String(F);return I&&k&&f(D),I?D:F}else return F})}return l.jsx(LHe,{scope:t.__scopeSlider,name:n,disabled:a,min:r,max:i,valueIndexToChangeRef:y,thumbs:g.current,values:w,orientation:o,form:v,children:l.jsx(rj.Provider,{scope:t.__scopeSlider,children:l.jsx(rj.Slot,{scope:t.__scopeSlider,children:l.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...p,ref:e,onPointerDown:De(p.onPointerDown,()=>{a||(S.current=w)}),min:r,max:i,inverted:m,onSlideStart:a?void 0:T,onSlideMove:a?void 0:M,onSlideEnd:a?void 0:A,onHomeKeyDown:()=>!a&&C(r,0,{commit:!0}),onEndKeyDown:()=>!a&&C(i,w.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:j})=>{if(!a){const O=jJ.includes(R.key)||R.shiftKey&&NJ.includes(R.key)?10:1,L=y.current,F=w[L],D=s*O*j;C(F+D,L,{commit:!0})}}})})})})});IJ.displayName=zp;var[LJ,DJ]=OJ(zp,{startEdge:"left",endEdge:"right",size:"width",direction:1}),DHe=E.forwardRef((t,e)=>{const{min:n,max:r,dir:i,inverted:s,onSlideStart:o,onSlideMove:a,onSlideEnd:c,onStepKeyDown:u,...d}=t,[h,f]=E.useState(null),m=At(e,x=>f(x)),v=E.useRef(void 0),p=F0(i),g=p==="ltr",y=g&&!s||!g&&s;function b(x){const w=v.current||h.getBoundingClientRect(),_=[0,w.width],T=U3(_,y?[n,r]:[r,n]);return v.current=w,T(x-w.left)}return l.jsx(LJ,{scope:t.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:l.jsx(FJ,{dir:p,"data-orientation":"horizontal",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const w=b(x.clientX);o==null||o(w)},onSlideMove:x=>{const w=b(x.clientX);a==null||a(w)},onSlideEnd:()=>{v.current=void 0,c==null||c()},onStepKeyDown:x=>{const _=kJ[y?"from-left":"from-right"].includes(x.key);u==null||u({event:x,direction:_?-1:1})}})})}),FHe=E.forwardRef((t,e)=>{const{min:n,max:r,inverted:i,onSlideStart:s,onSlideMove:o,onSlideEnd:a,onStepKeyDown:c,...u}=t,d=E.useRef(null),h=At(e,d),f=E.useRef(void 0),m=!i;function v(p){const g=f.current||d.current.getBoundingClientRect(),y=[0,g.height],x=U3(y,m?[r,n]:[n,r]);
6052return f.current=g,x(p-g.top)}return l.jsx(LJ,{scope:t.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:l.jsx(FJ,{"data-orientation":"vertical",...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:p=>{const g=v(p.clientY);s==null||s(g)},onSlideMove:p=>{const g=v(p.clientY);o==null||o(g)},onSlideEnd:()=>{f.current=void 0,a==null||a()},onStepKeyDown:p=>{const y=kJ[m?"from-bottom":"from-top"].includes(p.key);c==null||c({event:p,direction:y?-1:1})}})})}),FJ=E.forwardRef((t,e)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:o,onEndKeyDown:a,onStepKeyDown:c,...u}=t,d=I2(zp,n);return l.jsx(ht.span,{...u,ref:e,onKeyDown:De(t.onKeyDown,h=>{h.key==="Home"?(o(h),h.preventDefault()):h.key==="End"?(a(h),h.preventDefault()):jJ.concat(NJ).includes(h.key)&&(c(h),h.preventDefault())}),onPointerDown:De(t.onPointerDown,h=>{const f=h.target;f.setPointerCapture(h.pointerId),h.preventDefault(),d.thumbs.has(f)?f.focus():r(h)}),onPointerMove:De(t.onPointerMove,h=>{h.target.hasPointerCapture(h.pointerId)&&i(h)}),onPointerUp:De(t.onPointerUp,h=>{const f=h.target;f.hasPointerCapture(h.pointerId)&&(f.releasePointerCapture(h.pointerId),s(h))})})}),UJ="SliderTrack",BJ=E.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,i=I2(UJ,n);return l.jsx(ht.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:e})});BJ.displayName=UJ;var ij="SliderRange",zJ=E.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,i=I2(ij,n),s=DJ(ij,n),o=E.useRef(null),a=At(e,o),c=i.values.length,u=i.values.map(f=>VJ(f,i.min,i.max)),d=c>1?Math.min(...u):0,h=100-Math.max(...u);return l.jsx(ht.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:a,style:{...t.style,[s.startEdge]:d+"%",[s.endEdge]:h+"%"}})});zJ.displayName=ij;var sj="SliderThumb",$J=E.forwardRef((t,e)=>{const n=OHe(t.__scopeSlider),[r,i]=E.useState(null),s=At(e,a=>i(a)),o=E.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return l.jsx(UHe,{...t,ref:s,index:o})}),UHe=E.forwardRef((t,e)=>{const{__scopeSlider:n,index:r,name:i,...s}=t,o=I2(sj,n),a=DJ(sj,n),[c,u]=E.useState(null),d=At(e,b=>u(b)),h=c?o.form||!!c.closest("form"):!0,f=IN(c),m=o.values[r],v=m===void 0?0:VJ(m,o.min,o.max),p=$He(r,o.values.length),g=f==null?void 0:f[a.size],y=g?VHe(g,v,a.direction):0;return E.useEffect(()=>{if(c)return o.thumbs.add(c),()=>{o.thumbs.delete(c)}},[c,o.thumbs]),l.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${v}% + ${y}px)`},children:[l.jsx(rj.ItemSlot,{scope:t.__scopeSlider,children:l.jsx(ht.span,{role:"slider","aria-label":t["aria-label"]||p,"aria-valuemin":o.min,"aria-valuenow":m,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...s,ref:d,style:m===void 0?{display:"none"}:t.style,onFocus:De(t.onFocus,()=>{o.valueIndexToChangeRef.current=r})})}),h&&l.jsx(HJ,{name:i??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:m},r)]})});$J.displayName=sj;var BHe="RadioBubbleInput",HJ=E.forwardRef(({__scopeSlider:t,value:e,...n},r)=>{const i=E.useRef(null),s=At(i,r),o=F3(e);return E.useEffect(()=>{const a=i.current;if(!a)return;const c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==e&&d){const h=new Event("input",{bubbles:!0});d.call(a,e),a.dispatchEvent(h)}},[o,e]),l.jsx(ht.input,{style:{display:"none"},...n,ref:s,defaultValue:e})});HJ.displayName=BHe;function zHe(t=[],e,n){const r=[...t];return r[n]=e,r.sort((i,s)=>i-s)}function VJ(t,e,n){const s=100/(n-e)*(t-e);return R_(s,[0,100])}function $He(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function HHe(t,e){if(t.length===1)return 0;const n=t.map(i=>Math.abs(i-e)),r=Math.min(...n);return n.indexOf(r)}function VHe(t,e,n){const r=t/2,s=U3([0,50],[0,r]);return(r-s(e)*n)*n}function WHe(t){return t.slice(0,-1).map((e,n)=>t[n+1]-e)}function GHe(t,e){if(e>0){const n=WHe(t);return Math.min(...n)>=e}return!0}function U3(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function qHe(t){return(String(t).split(".")[1]||"").length}function YHe(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}var WJ=IJ,XHe=BJ,KHe=zJ,QHe=$J;const ec=E.forwardRef(({className:t,...e},n)=>l.jsxs(WJ,{ref:n,className:He("relative flex w-full touch-none select-none items-center",t),...e,children:[l.jsx(XHe,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:l.jsx(KHe,{className:"absolute h-full bg-primary"})}),l.jsx(QHe,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background 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"})]}));ec.displayName=WJ.displayName;var L2="Switch",[ZHe,wJe]=ks(L2),[JHe,eVe]=ZHe(L2),GJ=E.forwardRef((t,e)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:s,required:o,disabled:a,value:c="on",onCheckedChange:u,form:d,...h}=t,[f,m]=E.useState(null),v=At(e,x=>m(x)),p=E.useRef(!1),g=f?d||!!f.closest("form"):!0,[y,b]=uo({prop:i,defaultProp:s??!1,onChange:u,caller:L2});return l.jsxs(JHe,{scope:n,checked:y,disabled:a,children:[l.jsx(ht.button,{type:"button",role:"switch","aria-checked":y,"aria-required":o,"data-state":KJ(y),"data-disabled":a?"":void 0,disabled:a,value:c,...h,ref:v,onClick:De(t.onClick,x=>{b(w=>!w),g&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})}),g&&l.jsx(XJ,{control:f,bubbles:!p.current,name:r,value:c,checked:y,required:o,disabled:a,form:d,style:{transform:"translateX(-100%)"}})]})});GJ.displayName=L2;var qJ="SwitchThumb",YJ=E.forwardRef((t,e)=>{const{__scopeSwitch:n,...r}=t,i=eVe(qJ,n);return l.jsx(ht.span,{"data-state":KJ(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:e})});YJ.displayName=qJ;var tVe="SwitchBubbleInput",XJ=E.forwardRef(({__scopeSwitch:t,control:e,checked:n,bubbles:r=!0,...i},s)=>{const o=E.useRef(null),a=At(o,s),c=F3(n),u=IN(e);return E.useEffect(()=>{const d=o.current;if(!d)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==n&&m){const v=new Event("click",{bubbles:r});m.call(d,n),d.dispatchEvent(v)}},[c,n,r]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});XJ.displayName=tVe;function KJ(t){return t?"checked":"unchecked"}
vendor: 4,784 bytes, line 6052
6052var QJ=GJ,nVe=YJ;const ZJ=E.forwardRef(({className:t,...e},n)=>l.jsx(QJ,{className:He("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors 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 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...e,ref:n,children:l.jsx(nVe,{className:He("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")})}));ZJ.displayName=QJ.displayName;var rVe=[" ","Enter","ArrowUp","ArrowDown"],iVe=[" ","Enter"],sh="Select",[D2,F2,sVe]=fp(sh),[$p,_Je]=ks(sh,[sVe,bp]),U2=bp(),[oVe,bu]=$p(sh),[aVe,lVe]=$p(sh),JJ=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:i,onOpenChange:s,value:o,defaultValue:a,onValueChange:c,dir:u,name:d,autoComplete:h,disabled:f,required:m,form:v}=t,p=U2(e),[g,y]=E.useState(null),[b,x]=E.useState(null),[w,_]=E.useState(!1),S=F0(u),[T,M]=uo({prop:r,defaultProp:i??!1,onChange:s,caller:sh}),[A,C]=uo({prop:o,defaultProp:a,onChange:c,caller:sh}),R=E.useRef(null),j=g?v||!!g.closest("form"):!0,[k,P]=E.useState(new Set),O=Array.from(k).map(L=>L.props.value).join(";");return l.jsx(FN,{...p,children:l.jsxs(oVe,{required:m,scope:e,trigger:g,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:_,contentId:io(),value:A,onValueChange:C,open:T,onOpenChange:M,dir:S,triggerPointerDownPosRef:R,disabled:f,children:[l.jsx(D2.Provider,{scope:e,children:l.jsx(aVe,{scope:t.__scopeSelect,onNativeOptionAdd:E.useCallback(L=>{P(F=>new Set(F).add(L))},[]),onNativeOptionRemove:E.useCallback(L=>{P(F=>{const D=new Set(F);return D.delete(L),D})},[]),children:n})}),j?l.jsxs(See,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:h,value:A,onChange:L=>C(L.target.value),disabled:f,form:v,children:[A===void 0?l.jsx("option",{value:""}):null,Array.from(k)]},O):null]})})};JJ.displayName=sh;var eee="SelectTrigger",tee=E.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,...i}=t,s=U2(n),o=bu(eee,n),a=o.disabled||r,c=At(e,o.onTriggerChange),u=F2(n),d=E.useRef("touch"),[h,f,m]=Tee(p=>{const g=u().filter(x=>!x.disabled),y=g.find(x=>x.value===o.value),b=Aee(g,p,y);b!==void 0&&o.onValueChange(b.value)}),v=p=>{a||(o.onOpenChange(!0),m()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return l.jsx(UN,{asChild:!0,...s,children:l.jsx(ht.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:a,"data-disabled":a?"":void 0,"data-placeholder":Eee(o.value)?"":void 0,...i,ref:c,onClick:De(i.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&v(p)}),onPointerDown:De(i.onPointerDown,p=>{d.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:De(i.onKeyDown,p=>{const g=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&f(p.key),!(g&&p.key===" ")&&rVe.includes(p.key)&&(v(),p.preventDefault())})})})});tee.displayName=eee;var nee="SelectValue",ree=E.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,children:s,placeholder:o="",...a}=t,c=bu(nee,n),{onValueNodeHasChildrenChange:u}=c,d=s!==void 0,h=At(e,c.onValueNodeChange);return Nr(()=>{u(d)},[u,d]),l.jsx(ht.span,{...a,ref:h,style:{pointerEvents:"none"},children:Eee(c.value)?l.jsx(l.Fragment,{children:o}):s})});ree.displayName=nee;var cVe="SelectIcon",iee=E.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...i}=t;return l.jsx(ht.span,{"aria-hidden":!0,...i,ref:e,children:r||"â¼"})});iee.displayName=cVe;var uVe="SelectPortal",see=t=>l.jsx(E0,{asChild:!0,...t});see.displayName=uVe;var oh="SelectContent",oee=E.forwardRef((t,e)=>{const n=bu(oh,t.__scopeSelect),[r,i]=E.useState();if(Nr(()=>{i(new DocumentFragment)},[]),!n.open){const s=r;return s?uh.createPortal(l.jsx(aee,{scope:t.__scopeSelect,children:l.jsx(D2.Slot,{scope:t.__scopeSelect,children:l.jsx("div",{children:t.children})})}),s):null}return l.jsx(lee,{...t,ref:e})});oee.displayName=oh;var Co=10,[aee,wu]=$p(oh),dVe="SelectContentImpl",hVe=$d("SelectContent.RemoveScroll"),lee=E.forwardRef((t,e)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:o,side:a,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:g,...y}
vendor: 14,079 bytes, line 6052
6052=t,b=bu(oh,n),[x,w]=E.useState(null),[_,S]=E.useState(null),T=At(e,X=>w(X)),[M,A]=E.useState(null),[C,R]=E.useState(null),j=F2(n),[k,P]=E.useState(!1),O=E.useRef(!1);E.useEffect(()=>{if(x)return Hk(x)},[x]),$k();const L=E.useCallback(X=>{const[ae,...J]=j().map(H=>H.ref.current),[ue]=J.slice(-1),de=document.activeElement;for(const H of X)if(H===de||(H==null||H.scrollIntoView({block:"nearest"}),H===ae&&_&&(_.scrollTop=0),H===ue&&_&&(_.scrollTop=_.scrollHeight),H==null||H.focus(),document.activeElement!==de))return},[j,_]),F=E.useCallback(()=>L([M,x]),[L,M,x]);E.useEffect(()=>{k&&F()},[k,F]);const{onOpenChange:D,triggerPointerDownPosRef:I}=b;E.useEffect(()=>{if(x){let X={x:0,y:0};const ae=ue=>{var de,H;X={x:Math.abs(Math.round(ue.pageX)-(((de=I.current)==null?void 0:de.x)??0)),y:Math.abs(Math.round(ue.pageY)-(((H=I.current)==null?void 0:H.y)??0))}},J=ue=>{X.x<=10&&X.y<=10?ue.preventDefault():x.contains(ue.target)||D(!1),document.removeEventListener("pointermove",ae),I.current=null};return I.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",J,{capture:!0})}}},[x,D,I]),E.useEffect(()=>{const X=()=>D(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[D]);const[N,G]=Tee(X=>{const ae=j().filter(de=>!de.disabled),J=ae.find(de=>de.ref.current===document.activeElement),ue=Aee(ae,X,J);ue&&setTimeout(()=>ue.ref.current.focus())}),q=E.useCallback((X,ae,J)=>{const ue=!O.current&&!J;(b.value!==void 0&&b.value===ae||ue)&&(A(X),ue&&(O.current=!0))},[b.value]),W=E.useCallback(()=>x==null?void 0:x.focus(),[x]),Y=E.useCallback((X,ae,J)=>{const ue=!O.current&&!J;(b.value!==void 0&&b.value===ae||ue)&&R(X)},[b.value]),te=r==="popper"?oj:cee,Q=te===oj?{side:a,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:g}:{};return l.jsx(aee,{scope:n,content:x,viewport:_,onViewportChange:S,itemRefCallback:q,selectedItem:M,onItemLeave:W,itemTextRefCallback:Y,focusSelectedItem:F,selectedItemText:C,position:r,isPositioned:k,searchRef:N,children:l.jsx(MS,{as:hVe,allowPinchZoom:!0,children:l.jsx(AS,{asChild:!0,trapped:b.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:De(i,X=>{var ae;(ae=b.trigger)==null||ae.focus({preventScroll:!0}),X.preventDefault()}),children:l.jsx(mp,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:l.jsx(te,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:X=>X.preventDefault(),...y,...Q,onPlaced:()=>P(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:De(y.onKeyDown,X=>{const ae=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!ae&&X.key.length===1&&G(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let ue=j().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(X.key)&&(ue=ue.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const de=X.target,H=ue.indexOf(de);ue=ue.slice(H+1)}setTimeout(()=>L(ue)),X.preventDefault()}})})})})})})});lee.displayName=dVe;var fVe="SelectItemAlignedPosition",cee=E.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:r,...i}=t,s=bu(oh,n),o=wu(oh,n),[a,c]=E.useState(null),[u,d]=E.useState(null),h=At(e,T=>d(T)),f=F2(n),m=E.useRef(!1),v=E.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=o,x=E.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&p&&g&&y){const T=s.trigger.getBoundingClientRect(),M=u.getBoundingClientRect(),A=s.valueNode.getBoundingClientRect(),C=y.getBoundingClientRect();if(s.dir!=="rtl"){const de=C.left-M.left,H=A.left-de,_e=T.left-H,he=T.width+_e,xe=Math.max(he,M.width),we=window.innerWidth-Co,ne=R_(H,[Co,Math.max(Co,we-xe)]);a.style.minWidth=he+"px",a.style.left=ne+"px"}else{const de=M.right-C.right,H=window.innerWidth-A.right-de,_e=window.innerWidth-T.right-H,he=T.width+_e,xe=Math.max(he,M.width),we=window.innerWidth-Co,ne=R_(H,[Co,Math.max(Co,we-xe)]);a.style.minWidth=he+"px",a.style.right=ne+"px"}const R=f(),j=window.innerHeight-Co*2,k=p.scrollHeight,P=window.getComputedStyle(u),O=parseInt(P.borderTopWidth,10),L=parseInt(P.paddingTop,10),F=parseInt(P.borderBottomWidth,10),D=parseInt(P.paddingBottom,10),I=O+L+k+D+F,N=Math.min(g.offsetHeight*5,I),G=window.getComputedStyle(p),q=parseInt(G.paddingTop,10),W=parseInt(G.paddingBottom,10),Y=T.top+T.height/2-Co,te=j-Y,Q=g.offsetHeight/2,X=g.offsetTop+Q,ae=O+L+X,J=I-ae;if(ae<=Y){const de=R.length>0&&g===R[R.length-1].ref.current;a.style.bottom="0px";const H=u.clientHeight-p.offsetTop-p.offsetHeight,_e=Math.max(te,Q+(de?W:0)+H+F),he=ae+_e;a.style.height=he+"px"}else{const de=R.length>0&&g===R[0].ref.current;a.style.top="0px";const _e=Math.max(Y,O+p.offsetTop+(de?q:0)+Q)+J;a.style.height=_e+"px",p.scrollTop=ae-Y+p.offsetTop}a.style.margin=`${Co}px 0`,a.style.minHeight=N+"px",a.style.maxHeight=j+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[f,s.trigger,s.valueNode,a,u,p,g,y,s.dir,r]);Nr(()=>x(),[x]);const[w,_]=E.useState();Nr(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const S=E.useCallback(T=>{T&&v.current===!0&&(x(),b==null||b(),v.current=!1)},[x,b]);return l.jsx(pVe,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:S,children:l.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:l.jsx(ht.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});cee.displayName=fVe;var mVe="SelectPopperPosition",oj=E.forwardRef((t,e)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Co,...s}=t,o=U2(n);return l.jsx(BN,{...o,...s,ref:e,align:r,collisionPadding:i,style:{boxSizing:"border-box",...s.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)"}})});oj.displayName=mVe;var[pVe,B3]=$p(oh,{}),aj="SelectViewport",uee=E.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:r,...i}=t,s=wu(aj,n),o=B3(aj,n),a=At(e,s.onViewportChange),c=E.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsx(D2.Slot,{scope:n,children:l.jsx(ht.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:De(i.onScroll,u=>{const d=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&h){const m=Math.abs(c.current-d.scrollTop);if(m>0){const v=window.innerHeight-Co*2,p=parseFloat(h.style.minHeight),g=parseFloat(h.style.height),y=Math.max(p,g);if(y<v){const b=y+m,x=Math.min(v,b),w=b-x;h.style.height=x+"px",h.style.bottom==="0px"&&(d.scrollTop=w>0?w:0,h.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});uee.displayName=aj;var dee="SelectGroup",[gVe,vVe]=$p(dee),yVe=E.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=io();return l.jsx(gVe,{scope:n,id:i,children:l.jsx(ht.div,{role:"group","aria-labelledby":i,...r,ref:e})})});yVe.displayName=dee;var hee="SelectLabel",fee=E.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=vVe(hee,n);return l.jsx(ht.div,{id:i.id,...r,ref:e})});fee.displayName=hee;var P_="SelectItem",[xVe,mee]=$p(P_),pee=E.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:s,...o}=t,a=bu(P_,n),c=wu(P_,n),u=a.value===r,[d,h]=E.useState(s??""),[f,m]=E.useState(!1),v=At(e,b=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,b,r,i)}),p=io(),g=E.useRef("touch"),y=()=>{i||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(xVe,{scope:n,value:r,disabled:i,textId:p,isSelected:u,onItemTextChange:E.useCallback(b=>{h(x=>x||((b==null?void 0:b.textContent)??"").trim())},[]),children:l.jsx(D2.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:l.jsx(ht.div,{role:"option","aria-labelledby":p,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:v,onFocus:De(o.onFocus,()=>m(!0)),onBlur:De(o.onBlur,()=>m(!1)),onClick:De(o.onClick,()=>{g.current!=="mouse"&&y()}),onPointerUp:De(o.onPointerUp,()=>{g.current==="mouse"&&y()}),onPointerDown:De(o.onPointerDown,b=>{g.current=b.pointerType}),onPointerMove:De(o.onPointerMove,b=>{var x;g.current=b.pointerType,i?(x=c.onItemLeave)==null||x.call(c):g.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:De(o.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:De(o.onKeyDown,b=>{var w;((w=c.searchRef)==null?void 0:w.current)!==""&&b.key===" "||(iVe.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});pee.displayName=P_;var Kg="SelectItemText",gee=E.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,...s}=t,o=bu(Kg,n),a=wu(Kg,n),c=mee(Kg,n),u=lVe(Kg,n),[d,h]=E.useState(null),f=At(e,y=>h(y),c.onItemTextChange,y=>{var b;return(b=a.itemTextRefCallback)==null?void 0:b.call(a,y,c.value,c.disabled)}),m=d==null?void 0:d.textContent,v=E.useMemo(()=>l.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return Nr(()=>(p(v),()=>g(v)),[p,g,v]),l.jsxs(l.Fragment,{children:[l.jsx(ht.span,{id:c.textId,...s,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?uh.createPortal(s.children,o.valueNode):null]})});gee.displayName=Kg;var vee="SelectItemIndicator",yee=E.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return mee(vee,n).isSelected?l.jsx(ht.span,{"aria-hidden":!0,...r,ref:e}):null});yee.displayName=vee;var lj="SelectScrollUpButton",xee=E.forwardRef((t,e)=>{const n=wu(lj,t.__scopeSelect),r=B3(lj,t.__scopeSelect),[i,s]=E.useState(!1),o=At(e,r.onScrollButtonChange);return Nr(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=c.scrollTop>0;s(u)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),i?l.jsx(wee,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});xee.displayName=lj;var cj="SelectScrollDownButton",bee=E.forwardRef((t,e)=>{const n=wu(cj,t.__scopeSelect),r=B3(cj,t.__scopeSelect),[i,s]=E.useState(!1),o=At(e,r.onScrollButtonChange);return Nr(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;s(d)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),i?l.jsx(wee,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});bee.displayName=cj;var wee=E.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=t,s=wu("SelectScrollButton",n),o=E.useRef(null),a=F2(n),c=E.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return E.useEffect(()=>()=>c(),[c]),Nr(()=>{var d;const u=a().find(h=>h.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),l.jsx(ht.div,{"aria-hidden":!0,...i,ref:e,style:{flexShrink:0,...i.style},onPointerDown:De(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:De(i.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:De(i.onPointerLeave,()=>{c()})})}),bVe="SelectSeparator",_ee=E.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return l.jsx(ht.div,{"aria-hidden":!0,...r,ref:e})});_ee.displayName=bVe;var uj="SelectArrow",wVe=E.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=U2(n),s=bu(uj,n),o=wu(uj,n);return s.open&&o.position==="popper"?l.jsx(zN,{...i,...r,ref:e}):null});wVe.displayName=uj;var _Ve="SelectBubbleInput",See=E.forwardRef(({__scopeSelect:t,value:e,...n},r)=>{const i=E.useRef(null),s=At(r,i),o=F3(e);return E.useEffect(()=>{const a=i.current;if(!a)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==e&&d){const h=new Event("change",{bubbles:!0});d.call(a,e),a.dispatchEvent(h)}},[o,e]),l.jsx(ht.select,{...n,style:{...T9,...n.style},ref:s,defaultValue:e})});See.displayName=_Ve;function Eee(t){return t===""||t===void 0}function Tee(t){const e=ns(t),n=E.useRef(""),r=E.useRef(0),i=E.useCallback(o=>{const a=n.current+o;e(a),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(a)},[e]),s=E.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,s]}function Aee(t,e,n){const i=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,s=n?t.indexOf(n):-1;let o=SVe(t,Math.max(s,0));i.length===1&&(o=o.filter(u=>u!==n));const c=o.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function SVe(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var EVe=JJ,Cee=tee,TVe=ree,AVe=iee,CVe=see,Mee=oee,MVe=uee,Ree=fee,Pee=pee,RVe=gee,PVe=yee,jee=xee,Nee=bee,kee=_ee;
6052const jVe=EVe,NVe=TVe,Oee=E.forwardRef(({className:t,children:e,...n},r)=>l.jsxs(Cee,{ref:r,className:He("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-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",t),...n,children:[e,l.jsx(AVe,{asChild:!0,children:l.jsx(pp,{className:"h-4 w-4 opacity-50"})})]}));Oee.displayName=Cee.displayName;const Iee=E.forwardRef(({className:t,...e},n)=>l.jsx(jee,{ref:n,className:He("flex cursor-default items-center justify-center py-1",t),...e,children:l.jsx(Sse,{className:"h-4 w-4"})}));Iee.displayName=jee.displayName;const Lee=E.forwardRef(({className:t,...e},n)=>l.jsx(Nee,{ref:n,className:He("flex cursor-default items-center justify-center py-1",t),...e,children:l.jsx(pp,{className:"h-4 w-4"})}));Lee.displayName=Nee.displayName;const Dee=E.forwardRef(({className:t,children:e,position:n="popper",...r},i)=>l.jsx(CVe,{children:l.jsxs(Mee,{ref:i,className:He("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",t),position:n,...r,children:[l.jsx(Iee,{}),l.jsx(MVe,{className:He("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),l.jsx(Lee,{})]})}));Dee.displayName=Mee.displayName;const kVe=E.forwardRef(({className:t,...e},n)=>l.jsx(Ree,{ref:n,className:He("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...e}));kVe.displayName=Ree.displayName;const qu=E.forwardRef(({className:t,children:e,...n},r)=>l.jsxs(Pee,{ref:r,className:He("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(PVe,{children:l.jsx(Sm,{className:"h-4 w-4"})})}),l.jsx(RVe,{children:e})]}));qu.displayName=Pee.displayName;const OVe=E.forwardRef(({className:t,...e},n)=>l.jsx(kee,{ref:n,className:He("-mx-1 my-1 h-px bg-muted",t),...e}));OVe.displayName=kee.displayName;const IVe=E.lazy(()=>dh(()=>import("./LightPillar-DTWXnmt1.js"),__vite__mapDeps([0,1]))),LVe=t=>Array.from({length:t},(e,n)=>({id:n,left:Math.random()*100,top:Math.random()*100,size:Math.random()*1.5+1,opacity:Math.random()*.3+.1,animationDelay:Math.random()*3})),Cn={topColor:"#6bffc6",middleColor:"#8b5cf6",bottomColor:"#ec4899",intensity:1,rotationSpeed:.5,glowAmount:.002,pillarWidth:2.9,pillarHeight:.3,noiseIntensity:1.6,pillarRotation:311,interactive:!1,mixBlendMode:"screen"},DVe=()=>{const t=E.useMemo(()=>LVe(40),[]),[e,n]=E.useState(Cn.topColor),[r,i]=E.useState(Cn.middleColor),[s,o]=E.useState(Cn.bottomColor),[a,c]=E.useState(Cn.intensity),[u,d]=E.useState(Cn.rotationSpeed),[h,f]=E.useState(Cn.glowAmount),[m,v]=E.useState(Cn.pillarWidth),[p,g]=E.useState(Cn.pillarHeight),[y,b]=E.useState(Cn.noiseIntensity),[x,w]=E.useState(Cn.pillarRotation),[_,S]=E.useState(Cn.interactive),[T,M]=E.useState(Cn.mixBlendMode),A=()=>{n(Cn.topColor),i(Cn.middleColor),o(Cn.bottomColor),c(Cn.intensity),d(Cn.rotationSpeed),f(Cn.glowAmount),v(Cn.pillarWidth),g(Cn.pillarHeight),b(Cn.noiseIntensity),w(Cn.pillarRotation),S(Cn.interactive),M(Cn.mixBlendMode),ga.success("Reset to defaults")},C=()=>{const k=`const LIGHT_PILLAR_CONFIG = { 6053 topColor: "${e}", 6054 middleColor: "${r}", 6055 bottomColor: "${s}", 6056 intensity: ${a}, 6057 rotationSpeed: ${u.toFixed(2)}, 6058 glowAmount: ${h.toFixed(4)}, 6059 pillarWidth: ${m.toFixed(1)}, 6060 pillarHeight: ${p.toFixed(2)}, 6061 noiseIntensity: ${y.toFixed(1)}, 6062 pillarRotation: ${x}, 6063 interactive: ${_}, 6064 mixBlendMode: "${T}", 6065};`;navigator.clipboard.writeText(k),ga.success("Settings copied to clipboard!")},R=()=>{const k=e;n(r),i(s),o(k)},j=()=>{const k=e;n(s),o(k)};return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"LightPillar Controls | RORA"}),l.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),l.jsxs("div",{className:"min-h-screen relative overflow-x-hidden bg-background -mt-16 md:-mt-18 pt-16 md:pt-18",children:[l.jsxs("div",{className:"absolute top-0 left-0 right-0 h-[calc(100vh+4rem)] z-0 pointer-events-none",children:[l.jsx("div",{className:"absolute inset-0 bg-background",children:t.map(k=>l.jsx("div",{className:"absolute rounded-full bg-white/60 animate-pulse",style:{left:`${k.left}%`,top:`${k.top}%`,width:`${k.size}px`,height:`${k.size}px`,opacity:k.opacity,animationDelay:`${k.animationDelay}s`,animationDuration:"3s"}},k.id))}),l.jsx("div",{className:"absolute inset-0",style:{mixBlendMode:T},children:l.jsx(E.Suspense,{fallback:l.jsx("div",{className:"w-full h-full bg-gradient-to-b from-[#070710] via-[#0f0f1a] to-[#070710]"}),children:l.jsx(IVe,{topColor:e,middleColor:r,bottomColor:s,intensity:a,rotationSpeed:u,glowAmount:h,pillarWidth:m,pillarHeight:p,noiseIntensity:y,pillarRotation:x,interactive:_,mixBlendMode:"normal"})})}),l.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-80 bg-gradient-to-b from-transparent via-background/60 to-background pointer-events-none z-10"})]}),l.jsx("div",{className:"relative z-10",children:l.jsx("div",{className:"min-h-screen flex items-start justify-end p-4 pt-20",children:l.jsxs("div",{className:"w-80 bg-black/80 backdrop-blur-xl rounded-2xl border border-white/10 p-5 space-y-4 max-h-[85vh] overflow-y-auto",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("h3",{className:"text-white font-semibold text-lg",children:"LightPillar Controls"}),l.jsx(Ge,{variant:"ghost",size:"sm",onClick:A,className:"text-white/60 hover:text-white hover:bg-white/10",children:l.jsx(J9,{className:"w-4 h-4"})})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(Ge,{variant:"outline",size:"sm",onClick:R,className:"flex-1 bg-white/10 hover:bg-white/20 border-white/20 text-white/70",children:"Rotate â»"}),l.jsxs(Ge,{variant:"outline",size:"sm",onClick:j,className:"flex-1 bg-white/10 hover:bg-white/20 border-white/20 text-white/70",children:[l.jsx(vse,{className:"w-3 h-3 mr-1"}),"Swap TâB"]})]}),l.jsxs(Ge,{variant:"outline",size:"sm",onClick:C,className:"w-full bg-white/10 hover:bg-white/20 border-white/20 text-white/70",children:[l.jsx(q9,{className:"w-3 h-3 mr-2"}),"Copy Settings as Code"]}),l.jsx("div",{className:"h-px bg-white/10"}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"text-white/50 text-xs uppercase tracking-wider",children:"Colors"}),l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-white/70 text-sm",children:"Top"}),l.jsx("span",{className:"text-white/40 text-xs font-mono",children:e})]}
6065),l.jsx("input",{type:"color",value:e,onChange:k=>n(k.target.value),className:"w-12 h-7 rounded cursor-pointer border-0 bg-transparent"})]}),l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-white/70 text-sm",children:"Middle"}),l.jsx("span",{className:"text-white/40 text-xs font-mono",children:r})]}),l.jsx("input",{type:"color",value:r,onChange:k=>i(k.target.value),className:"w-12 h-7 rounded cursor-pointer border-0 bg-transparent"})]}),l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-white/70 text-sm",children:"Bottom"}),l.jsx("span",{className:"text-white/40 text-xs font-mono",children:s})]}),l.jsx("input",{type:"color",value:s,onChange:k=>o(k.target.value),className:"w-12 h-7 rounded cursor-pointer border-0 bg-transparent"})]})]}),l.jsx("div",{className:"h-px bg-white/10"}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"text-white/50 text-xs uppercase tracking-wider",children:"Shader"}),l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsx("span",{className:"text-white/70",children:"Intensity"}),l.jsx("span",{className:"text-white/50",children:a.toFixed(1)})]}),l.jsx(ec,{value:[a],onValueChange:([k])=>c(k),min:0,max:3,step:.1})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsx("span",{className:"text-white/70",children:"Rotation Speed"}),l.jsx("span",{className:"text-white/50",children:u.toFixed(2)})]}),l.jsx(ec,{value:[u],onValueChange:([k])=>d(k),min:0,max:2,step:.05})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsx("span",{className:"text-white/70",children:"Glow Amount"}),l.jsx("span",{className:"text-white/50",children:h.toFixed(4)})]}),l.jsx(ec,{value:[h],onValueChange:([k])=>f(k),min:1e-4,max:.01,step:1e-4})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsx("span",{className:"text-white/70",children:"Noise Intensity"}),l.jsx("span",{className:"text-white/50",children:y.toFixed(1)})]}),l.jsx(ec,{value:[y],onValueChange:([k])=>b(k),min:0,max:3,step:.1})]})]}),l.jsx("div",{className:"h-px bg-white/10"}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"text-white/50 text-xs uppercase tracking-wider",children:"Geometry"}),l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsx("span",{className:"text-white/70",children:"Pillar Width"}),l.jsx("span",{className:"text-white/50",children:m.toFixed(1)})]}),l.jsx(ec,{value:[m],onValueChange:([k])=>v(k),min:.5,max:10,step:.1})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsx("span",{className:"text-white/70",children:"Pillar Height"}),l.jsx("span",{className:"text-white/50",children:p.toFixed(2)})]}),l.jsx(ec,{value:[p],onValueChange:([k])=>g(k),min:.1,max:2,step:.05})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsx("span",{className:"text-white/70",children:"Pillar Rotation"}),l.jsxs("span",{className:"text-white/50",children:[x,"°"]})]}),l.jsx(ec,{value:[x],onValueChange:([k])=>w(k),min:0,max:360,step:1})]})]}),l.jsx("div",{className:"h-px bg-white/10"}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"text-white/50 text-xs uppercase tracking-wider",children:"Mode"}),l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-white/70 text-sm",children:"Interactive (Mouse)"}),l.jsx(ZJ,{checked:_,onCheckedChange:S})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("span",{className:"text-white/70 text-sm",children:"Mix Blend Mode"}),l.jsxs(jVe,{value:T,onValueChange:M,children:[l.jsx(Oee,{className:"bg-white/10 border-white/20 text-white",children:l.jsx(NVe,{})}),l.jsxs(Dee,{children:[l.jsx(qu,{value:"normal",children:"Normal"}),l.jsx(qu,{value:"screen",children:"Screen"}),l.jsx(qu,{value:"multiply",children:"Multiply"}),l.jsx(qu,{value:"overlay",children:"Overlay"}),l.jsx(qu,{value:"lighten",children:"Lighten"}),l.jsx(qu,{value:"color-dodge",children:"Color Dodge"})]})]})]})]})]})})})]})]})};/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:Fee,setPrototypeOf:sz,isFrozen:FVe,getPrototypeOf:UVe,getOwnPropertyDescriptor:BVe}=Object;let{freeze:Pi,seal:mo,create:dj}=Object,{apply:hj,construct:fj}=typeof Reflect<"u"&&Reflect;
vendor: 8,048 bytes, line 6065
6065Pi||(Pi=function(e){return e});mo||(mo=function(e){return e});hj||(hj=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return e.apply(n,i)});fj||(fj=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const hb=ji(Array.prototype.forEach),zVe=ji(Array.prototype.lastIndexOf),oz=ji(Array.prototype.pop),wg=ji(Array.prototype.push),$Ve=ji(Array.prototype.splice),ww=ji(String.prototype.toLowerCase),lA=ji(String.prototype.toString),cA=ji(String.prototype.match),_g=ji(String.prototype.replace),HVe=ji(String.prototype.indexOf),VVe=ji(String.prototype.trim),Mo=ji(Object.prototype.hasOwnProperty),hi=ji(RegExp.prototype.test),Sg=WVe(TypeError);function ji(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return hj(t,e,r)}}function WVe(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return fj(t,n)}}function Ot(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ww;sz&&sz(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const s=n(i);s!==i&&(FVe(e)||(e[r]=s),i=s)}t[i]=!0}return t}function GVe(t){for(let e=0;e<t.length;e++)Mo(t,e)||(t[e]=null);return t}function Xa(t){const e=dj(null);for(const[n,r]of Fee(t))Mo(t,n)&&(Array.isArray(r)?e[n]=GVe(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Xa(r):e[n]=r);return e}function Eg(t,e){for(;t!==null;){const r=BVe(t,e);if(r){if(r.get)return ji(r.get);if(typeof r.value=="function")return ji(r.value)}t=UVe(t)}function n(){return null}return n}const az=Pi(["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"]),uA=Pi(["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"]),dA=Pi(["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"]),qVe=Pi(["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"]),hA=Pi(["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"]),YVe=Pi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),lz=Pi(["#text"]),cz=Pi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","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","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),fA=Pi(["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","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-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"]),uz=Pi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
6065subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fb=Pi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),XVe=mo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),KVe=mo(/<%[\w\W]*|[\w\W]*%>/gm),QVe=mo(/\$\{[\w\W]*/gm),ZVe=mo(/^data-[\-\w.\u00B7-\uFFFF]+$/),JVe=mo(/^aria-[\-\w]+$/),Uee=mo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eWe=mo(/^(?:\w+script|data):/i),tWe=mo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bee=mo(/^html$/i),nWe=mo(/^[a-z][.\w]*(-[.\w]+)+$/i);var dz=Object.freeze({__proto__:null,ARIA_ATTR:JVe,ATTR_WHITESPACE:tWe,CUSTOM_ELEMENT:nWe,DATA_ATTR:ZVe,DOCTYPE_NAME:Bee,ERB_EXPR:KVe,IS_ALLOWED_URI:Uee,IS_SCRIPT_OR_DATA:eWe,MUSTACHE_EXPR:XVe,TMPLIT_EXPR:QVe});const Tg={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},rWe=function(){return typeof window>"u"?null:window},iWe=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;
vendor: 12,411 bytes, line 6065
6065const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},hz=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function zee(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rWe();const e=Z=>zee(Z);if(e.version="3.3.0",e.removed=[],!t||!t.document||t.document.nodeType!==Tg.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:m}=t,v=c.prototype,p=Eg(v,"cloneNode"),g=Eg(v,"remove"),y=Eg(v,"nextSibling"),b=Eg(v,"childNodes"),x=Eg(v,"parentNode");if(typeof o=="function"){const Z=n.createElement("template");Z.content&&Z.content.ownerDocument&&(n=Z.content.ownerDocument)}let w,_="";const{implementation:S,createNodeIterator:T,createDocumentFragment:M,getElementsByTagName:A}=n,{importNode:C}=r;let R=hz();e.isSupported=typeof Fee=="function"&&typeof x=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:j,ERB_EXPR:k,TMPLIT_EXPR:P,DATA_ATTR:O,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:I}=dz;let{IS_ALLOWED_URI:N}=dz,G=null;const q=Ot({},[...az,...uA,...dA,...hA,...lz]);let W=null;const Y=Ot({},[...cz,...fA,...uz,...fb]);let te=Object.seal(dj(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}})),Q=null,X=null;const ae=Object.seal(dj(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let J=!0,ue=!0,de=!1,H=!0,_e=!1,he=!0,xe=!1,we=!1,ne=!1,Pe=!1,$=!1,B=!1,re=!0,pe=!1;const ge="user-content-";let ye=!0,je=!1,be={},Ae=null;const Qe=Ot({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let at=null;const oe=Ot({},["audio","video","img","source","image","track"]);let rt=null;const qe=Ot({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",ke="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml";let it=Oe,vt=!1,Dt=null;const Ie=Ot({},[We,ke,Oe],lA);let Ce=Ot({},["mi","mo","mn","ms","mtext"]),K=Ot({},["annotation-xml"]);const Re=Ot({},["title","style","font","a","script"]);let Ee=null;const lt=["application/xhtml+xml","text/html"],Se="text/html";let Ne=null,st=null;const Ve=n.createElement("form"),Fe=function(U){return U instanceof RegExp||U instanceof Function},Ye=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(st&&st===U)){if((!U||typeof U!="object")&&(U={}),U=Xa(U),Ee=lt.indexOf(U.PARSER_MEDIA_TYPE)===-1?Se:U.PARSER_MEDIA_TYPE,Ne=Ee==="application/xhtml+xml"?lA:ww,G=Mo(U,"ALLOWED_TAGS")?Ot({},U.ALLOWED_TAGS,Ne):q,W=Mo(U,"ALLOWED_ATTR")?Ot({},U.ALLOWED_ATTR,Ne):Y,Dt=Mo(U,"ALLOWED_NAMESPACES")?Ot({},U.ALLOWED_NAMESPACES,lA):Ie,rt=Mo(U,"ADD_URI_SAFE_ATTR")?Ot(Xa(qe),U.ADD_URI_SAFE_ATTR,Ne):qe,at=Mo(U,"ADD_DATA_URI_TAGS")?Ot(Xa(oe),U.ADD_DATA_URI_TAGS,Ne):oe,Ae=Mo(U,"FORBID_CONTENTS")?Ot({},U.FORBID_CONTENTS,Ne):Qe,Q=Mo(U,"FORBID_TAGS")?Ot({},U.FORBID_TAGS,Ne):Xa({}),X=Mo(U,"FORBID_ATTR")?Ot({},U.FORBID_ATTR,Ne):Xa({}),be=Mo(U,"USE_PROFILES")?U.USE_PROFILES:!1,J=U.ALLOW_ARIA_ATTR!==!1,ue=U.ALLOW_DATA_ATTR!==!1,de=U.ALLOW_UNKNOWN_PROTOCOLS||!1,H=U.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_e=U.SAFE_FOR_TEMPLATES||!1,he=U.SAFE_FOR_XML!==!1,xe=U.WHOLE_DOCUMENT||!1,Pe=U.RETURN_DOM||!1,$=U.RETURN_DOM_FRAGMENT||!1,B=U.RETURN_TRUSTED_TYPE||!1,ne=U.FORCE_BODY||!1,re=U.SANITIZE_DOM!==!1,pe=U.SANITIZE_NAMED_PROPS||!1,ye=U.KEEP_CONTENT!==!1,je=U.IN_PLACE||!1,N=U.ALLOWED_URI_REGEXP||Uee,it=U.NAMESPACE||Oe,Ce=U.MATHML_TEXT_INTEGRATION_POINTS||Ce,K=U.HTML_INTEGRATION_POINTS||K,te=U.CUSTOM_ELEMENT_HANDLING||{},U.CUSTOM_ELEMENT_HANDLING&&Fe(U.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(te.tagNameCheck=U.CUSTOM_ELEMENT_HANDLING.tagNameCheck),U.CUSTOM_ELEMENT_HANDLING&&Fe(U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(te.attributeNameCheck=U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),U.CUSTOM_ELEMENT_HANDLING&&typeof U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_e&&(ue=!1),$&&(Pe=!0),be&&(G=Ot({},lz),W=[],be.html===!0&&(Ot(G,az),Ot(W,cz)),be.svg===!0&&(Ot(G,uA),Ot(W,fA),Ot(W,fb)),be.svgFilters===!0&&(Ot(G,dA),Ot(W,fA),Ot(W,fb)),be.mathMl===!0&&(Ot(G,hA),Ot(W,uz),Ot(W,fb))),U.ADD_TAGS&&(typeof U.ADD_TAGS=="function"?ae.tagCheck=U.ADD_TAGS:(G===q&&(G=Xa(G)),Ot(G,U.ADD_TAGS,Ne))),U.ADD_ATTR&&(typeof U.ADD_ATTR=="function"?ae.attributeCheck=U.ADD_ATTR:(W===Y&&(W=Xa(W)),Ot(W,U.ADD_ATTR,Ne))),U.ADD_URI_SAFE_ATTR&&Ot(rt,U.ADD_URI_SAFE_ATTR,Ne),U.FORBID_CONTENTS&&(Ae===Qe&&(Ae=Xa(Ae)),Ot(Ae,U.FORBID_CONTENTS,Ne)),ye&&(G["#text"]=!0),xe&&Ot(G,["html","head","body"]),G.table&&(Ot(G,["tbody"]),delete Q.tbody),U.TRUSTED_TYPES_POLICY){if(typeof U.TRUSTED_TYPES_POLICY.createHTML!="function")throw Sg('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof U.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Sg('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=U.TRUSTED_TYPES_POLICY,_=w.createHTML("")}else w===void 0&&(w=iWe(m,i)),w!==null&&typeof _=="string"&&(_=w.createHTML(""));Pi&&Pi(U),st=U}},Te=Ot({},[...uA,...dA,...qVe]),Xe=Ot({},[...hA,...YVe]),Ze=function(U){let se=x(U);(!se||!se.tagName)&&(se={namespaceURI:it,tagName:"template"});const fe=ww(U.tagName),$e=ww(se.tagName);return Dt[U.namespaceURI]?U.namespaceURI===ke?se.namespaceURI===Oe?fe==="svg":se.namespaceURI===We?fe==="svg"&&($e==="annotation-xml"||Ce[$e]):!!Te[fe]:U.namespaceURI===We?se.namespaceURI===Oe?fe==="math":se.namespaceURI===ke?fe==="math"&&K[$e]:!!Xe[fe]:U.namespaceURI===Oe?se.namespaceURI===ke&&!K[$e]||se.namespaceURI===We&&!Ce[$e]?!1:!Xe[fe]&&(Re[fe]||!Te[fe]):!!(Ee==="application/xhtml+xml"&&Dt[U.namespaceURI]):!1},ct=function(U){wg(e.removed,{element:U});try{x(U).removeChild(U)}catch{g(U)}},Kt=function(U,se){try{wg(e.removed,{attribute:se.getAttributeNode(U),from:se})}catch{wg(e.removed,{attribute:null,from:se})}if(se.removeAttribute(U),U==="is")if(Pe||$)try{ct(se)}catch{}else try{se.setAttribute(U,"")}catch{}},St=function(U){let se=null,fe=null;if(ne)U="<remove></remove>"+U;else{const Ue=cA(U,/^[\r\n\t ]+/);fe=Ue&&Ue[0]}Ee==="application/xhtml+xml"&&it===Oe&&(U='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+U+"</body></html>");const $e=w?w.createHTML(U):U;if(it===Oe)try{se=new f().parseFromString($e,Ee)}catch{}if(!se||!se.documentElement){se=S.createDocument(it,"template",null);try{se.documentElement.innerHTML=vt?_:$e}catch{}}const Be=se.body||se.documentElement;return U&&fe&&Be.insertBefore(n.createTextNode(fe),Be.childNodes[0]||null),it===Oe?A.call(se,xe?"html":"body")[0]:xe?se.documentElement:Be},on=function(U){return T.call(U.ownerDocument||U,U,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},kn=function(U){return U instanceof h&&(typeof U.nodeName!="string"||typeof U.textContent!="string"||typeof U.removeChild!="function"||!(U.attributes instanceof d)||typeof U.removeAttribute!="function"||typeof U.setAttribute!="function"||typeof U.namespaceURI!="string"||typeof U.insertBefore!="function"||typeof U.hasChildNodes!="function")},cn=function(U){return typeof a=="function"&&U instanceof a};function Ft(Z,U,se){hb(Z,fe=>{fe.call(e,U,se,st)})}const qt=function(U){let se=null;if(Ft(R.beforeSanitizeElements,U,null),kn(U))return ct(U),!0;const fe=Ne(U.nodeName);if(Ft(R.uponSanitizeElement,U,{tagName:fe,allowedTags:G}),he&&U.hasChildNodes()&&!cn(U.firstElementChild)&&hi(/<[/\w!]/g,U.innerHTML)&&hi(/<[/\w!]/g,U.textContent)||U.nodeType===Tg.progressingInstruction||he&&U.nodeType===Tg.comment&&hi(/<[/\w]/g,U.data))return ct(U),!0;if(!(ae.tagCheck instanceof Function&&ae.tagCheck(fe))&&(!G[fe]||Q[fe])){if(!Q[fe]&&z(fe)&&(te.tagNameCheck instanceof RegExp&&hi(te.tagNameCheck,fe)||te.tagNameCheck instanceof Function&&te.tagNameCheck(fe)))return!1;if(ye&&!Ae[fe]){const $e=x(U)||U.parentNode,Be=b(U)||U.childNodes;if(Be&&$e){const Ue=Be.length;for(let Ke=Ue-1;Ke>=0;--Ke){const ut=p(Be[Ke],!0);ut.__removalCount=(U.__removalCount||0)+1,$e.insertBefore(ut,y(U))}}}return ct(U),!0}return U instanceof c&&!Ze(U)||(fe==="noscript"||fe==="noembed"||fe==="noframes")&&hi(/<\/no(script|embed|frames)/i,U.innerHTML)?(ct(U),!0):(_e&&U.nodeType===Tg.text&&(se=U.textContent,hb([j,k,P],$e=>{se=_g(se,$e," ")}),U.textContent!==se&&(wg(e.removed,{element:U.cloneNode()}),U.textContent=se)),Ft(R.afterSanitizeElements,U,null),!1)},Wr=function(U,se,fe){if(re&&(se==="id"||se==="name")&&(fe in n||fe in Ve))return!1;if(!(ue&&!X[se]&&hi(O,se))){if(!(J&&hi(L,se))){if(!(ae.attributeCheck instanceof Function&&ae.attributeCheck(se,U))){if(!W[se]||X[se]){if(!(z(U)&&(te.tagNameCheck instanceof RegExp&&hi(te.tagNameCheck,U)||te.tagNameCheck instanceof Function&&te.tagNameCheck(U))&&(te.attributeNameCheck instanceof RegExp&&hi(te.attributeNameCheck,se)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(se,U))||se==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&hi(te.tagNameCheck,fe)||te.tagNameCheck instanceof Function&&te.tagNameCheck(fe))))return!1}else if(!rt[se]){if(!hi(N,_g(fe,D,""))){if(!((se==="src"||se==="xlink:href"||se==="href")&&U!=="script"&&HVe(fe,"data:")===0&&at[U])){if(!(de&&!hi(F,_g(fe,D,"")))){if(fe)return!1}}}}}}}return!0},z=function(U){return U!=="annotation-xml"&&cA(U,I)},ie=function(U){Ft(R.beforeSanitizeAttributes,U,null);const{attributes:se}=U;if(!se||kn(U))return;const fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let $e=se.length;for(;$e--;){const Be=se[$e],{name:Ue,namespaceURI:Ke,value:ut}=Be,Qt=Ne(Ue),On=ut;let yt=Ue==="value"?On:VVe(On);if(fe.attrName=Qt,fe.attrValue=yt,fe.keepAttr=!0,fe.forceKeepAttr=void 0,Ft(R.uponSanitizeAttribute,U,fe),yt=fe.attrValue,pe&&(Qt==="id"||Qt==="name")&&(Kt(Ue,U),yt=ge+yt),he&&hi(/((--!?|])>)|<\/(style|title|textarea)/i,yt)){Kt(Ue,U);continue}if(Qt==="attributename"&&cA(yt,"href")){Kt(Ue,U);continue}if(fe.forceKeepAttr)continue;if(!fe.keepAttr){Kt(Ue,U);continue}if(!H&&hi(/\/>/i,yt)){Kt(Ue,U);continue}_e&&hb([j,k,P],Zt=>{yt=_g(yt,Zt," ")});const wr=Ne(U.nodeName);if(!Wr(wr,Qt,yt)){Kt(Ue,U);continue}if(w&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Ke)switch(m.getAttributeType(wr,Qt)){case"TrustedHTML":{yt=w.createHTML(yt);break}case"TrustedScriptURL":{yt=w.createScriptURL(yt);break}}if(yt!==On)try{Ke?U.setAttributeNS(Ke,Ue,yt):U.setAttribute(Ue,yt),kn(U)?ct(U):oz(e.removed)}catch{Kt(Ue,U)}}Ft(R.afterSanitizeAttributes,U,null)},ce=function Z(U){let se=null;const fe=on(U);for(Ft(R.beforeSanitizeShadowDOM,U,null);se=fe.nextNode();)Ft(R.uponSanitizeShadowNode,se,null),qt(se),ie(se),se.content instanceof s&&Z(se.content);Ft(R.afterSanitizeShadowDOM,U,null)};return e.sanitize=function(Z){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=null,fe=null,$e=null,Be=null;if(vt=!Z,vt&&(Z="<!-->"),typeof Z!="string"&&!cn(Z))if(typeof Z.toString=="function"){if(Z=Z.toString(),typeof Z!="string")throw Sg("dirty is not a string, aborting")}else throw Sg("toString is not a function");if(!e.isSupported)return Z;if(we||Ye(U),e.removed=[],typeof Z=="string"&&(je=!1),je){if(Z.nodeName){const ut=Ne(Z.nodeName);if(!G[ut]||Q[ut])throw Sg("root node is forbidden and cannot be sanitized in-place")}}else if(Z instanceof a)se=St("<!---->"),fe=se.ownerDocument.importNode(Z,!0),fe.nodeType===Tg.element&&fe.nodeName==="BODY"||fe.nodeName==="HTML"?se=fe:se.appendChild(fe);
6065else{if(!Pe&&!_e&&!xe&&Z.indexOf("<")===-1)return w&&B?w.createHTML(Z):Z;if(se=St(Z),!se)return Pe?null:B?_:""}se&&ne&&ct(se.firstChild);const Ue=on(je?Z:se);for(;$e=Ue.nextNode();)qt($e),ie($e),$e.content instanceof s&&ce($e.content);if(je)return Z;if(Pe){if($)for(Be=M.call(se.ownerDocument);se.firstChild;)Be.appendChild(se.firstChild);else Be=se;return(W.shadowroot||W.shadowrootmode)&&(Be=C.call(r,Be,!0)),Be}let Ke=xe?se.outerHTML:se.innerHTML;return xe&&G["!doctype"]&&se.ownerDocument&&se.ownerDocument.doctype&&se.ownerDocument.doctype.name&&hi(Bee,se.ownerDocument.doctype.name)&&(Ke="<!DOCTYPE "+se.ownerDocument.doctype.name+`> 6066`+Ke),_e&&hb([j,k,P],ut=>{Ke=_g(Ke,ut," ")}),w&&B?w.createHTML(Ke):Ke},e.setConfig=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ye(Z),we=!0},e.clearConfig=function(){st=null,we=!1},e.isValidAttribute=function(Z,U,se){st||Ye({});const fe=Ne(Z),$e=Ne(U);return Wr(fe,$e,se)},e.addHook=function(Z,U){typeof U=="function"&&wg(R[Z],U)},e.removeHook=function(Z,U){if(U!==void 0){const se=zVe(R[Z],U);return se===-1?void 0:$Ve(R[Z],se,1)[0]}return oz(R[Z])},e.removeHooks=function(Z){R[Z]=[]},e.removeAllHooks=function(){R=hz()},e}var fz=zee();const Ag=window.chrome,sWe={Flat:[{freq:32,gain:0},{freq:64,gain:0},{freq:125,gain:0},{freq:250,gain:0},{freq:500,gain:0},{freq:1e3,gain:0},{freq:2e3,gain:0},{freq:4e3,gain:0},{freq:8e3,gain:0},{freq:16e3,gain:0}],"Bass+":[{freq:32,gain:6},{freq:64,gain:4},{freq:125,gain:2},{freq:250,gain:0},{freq:500,gain:0},{freq:1e3,gain:0},{freq:2e3,gain:0},{freq:4e3,gain:0},{freq:8e3,gain:0},{freq:16e3,gain:0}],"Treble+":[{freq:32,gain:0},{freq:64,gain:0},{freq:125,gain:0},{freq:250,gain:0},{freq:500,gain:0},{freq:1e3,gain:0},{freq:2e3,gain:0},{freq:4e3,gain:2},{freq:8e3,gain:4},{freq:16e3,gain:6}],Vocal:[{freq:32,gain:-2},{freq:64,gain:-2},{freq:125,gain:-1},{freq:250,gain:1},{freq:500,gain:3},{freq:1e3,gain:4},{freq:2e3,gain:4},{freq:4e3,gain:3},{freq:8e3,gain:1},{freq:16e3,gain:0}],Loudness:[{freq:32,gain:5},{freq:64,gain:3},{freq:125,gain:0},{freq:250,gain:0},{freq:500,gain:0},{freq:1e3,gain:0},{freq:2e3,gain:0},{freq:4e3,gain:0},{freq:8e3,gain:3},{freq:16e3,gain:5}],EDM:[{freq:32,gain:5},{freq:64,gain:3},{freq:125,gain:1},{freq:250,gain:-1},{freq:500,gain:-2},{freq:1e3,gain:-1},{freq:2e3,gain:1},{freq:4e3,gain:3},{freq:8e3,gain:4},{freq:16e3,gain:5}],Acoustic:[{freq:32,gain:3},{freq:64,gain:2},{freq:125,gain:1},{freq:250,gain:1},{freq:500,gain:2},{freq:1e3,gain:3},{freq:2e3,gain:2},{freq:4e3,gain:2},{freq:8e3,gain:3},{freq:16e3,gain:2}],Rock:[{freq:32,gain:4},{freq:64,gain:2},{freq:125,gain:0},{freq:250,gain:-2},{freq:500,gain:-3},{freq:1e3,gain:-3},{freq:2e3,gain:-2},{freq:4e3,gain:0},{freq:8e3,gain:2},{freq:16e3,gain:4}],Podcast:[{freq:32,gain:-3},{freq:64,gain:-2},{freq:125,gain:-1},{freq:250,gain:2},{freq:500,gain:4},{freq:1e3,gain:5},{freq:2e3,gain:4},{freq:4e3,gain:2},{freq:8e3,gain:-1},{freq:16e3,gain:-2}],Movie:[{freq:32,gain:4},{freq:64,gain:3},{freq:125,gain:1},{freq:250,gain:0},{freq:500,gain:-1},{freq:1e3,gain:0},{freq:2e3,gain:1},{freq:4e3,gain:2},{freq:8e3,gain:3},{freq:16e3,gain:3}],Warm:[{freq:32,gain:3},{freq:64,gain:2},{freq:125,gain:1},{freq:250,gain:1},{freq:500,gain:0},{freq:1e3,gain:0},{freq:2e3,gain:-1},{freq:4e3,gain:-1},{freq:8e3,gain:-2},{freq:16e3,gain:-2}],Presence:[{freq:32,gain:-1},{freq:64,gain:-1},{freq:125,gain:0},{freq:250,gain:1},{freq:500,gain:2},{freq:1e3,gain:4},{freq:2e3,gain:5},{freq:4e3,gain:4},{freq:8e3,gain:2},{freq:16e3,gain:1}]};function oWe(t){for(const[e,n]of Object.entries(sWe))if(t.length===n.length&&t.every((i,s)=>i.freq===n[s].freq&&i.gain===n[s].gain))return e;return"Custom"}function mz(t){return t&&(t.artist||t.a||t.ar||t.c)||""}const pz={smooth:"Smooth Pro",pitch:"Pitch Shift",tempo:"Tempo",spatialAudio:"Spatial Audio",reverb:"Reverb",echo:"Echo",muffler:"Muffler",bassBoost:"Bass Boost",bassReduce:"Bass Cut",visualEQ:"Visual EQ",masterVolume:"Master Volume",monoStereo:"Mono/Stereo",balance:"Balance"};function aWe(t){if(!t||t.length>2048)throw new Error("Invalid preset length");try{let e=t.replace(/-/g,"+").replace(/_/g,"/");for(;e.length%4;)e+="=";const n=decodeURIComponent(escape(atob(e))),r=JSON.parse(n);if(!r.v||!r.f||typeof r.f!="object")throw new Error("Invalid preset structure");const i=lWe(r.f);return{version:r.v,filters:i,metadata:r.m||{}}}catch{throw new Error("Failed to decode preset")}}function lWe(t){const e=["smooth","pitch","tempo","spatialAudio","reverb","echo","muffler","bassBoost","bassReduce","visualEQ","masterVolume","monoStereo","balance"],n={smooth:{min:0,max:150},pitch:{min:-100,max:100},tempo:{min:50,max:150},spatialAudio:{min:0,max:100},default:{min:0,max:100}},r={};for(const[i,s]of Object.entries(t)){if(!e.includes(i))continue;if(i==="visualEQ"&&typeof s=="object"&&s!==null){Array.isArray(s.bands)&&(r[i]={bands:s.bands.filter(a=>typeof a=="object"&&typeof a.freq=="number"&&typeof a.gain=="number").map(a=>({freq:Math.max(20,Math.min(2e4,a.freq)),gain:Math.max(-12,Math.min(12,a.gain))})).slice(0,10)});continue}if(typeof s!="number")continue;const o=n[i]||n.default;
6066r[i]=Math.max(o.min,Math.min(o.max,s))}return r}function cWe(t){if(!t)return null;const e=["spotify.com","open.spotify.com","youtube.com","youtu.be","music.youtube.com","music.apple.com","tidal.com","listen.tidal.com","deezer.com","soundcloud.com","epidemicsound.com","bandcamp.com","audiomack.com","mixcloud.com","pandora.com","music.amazon.com","amazon.com","qobuz.com","napster.com","netflix.com","primevideo.com","vimeo.com","dailymotion.com","twitch.tv","tiktok.com","twitter.com","x.com","instagram.com","facebook.com","reddit.com"];try{const n=new URL(t);return e.some(i=>n.hostname===i||n.hostname.endsWith("."+i))?(["token","key","auth","session","api_key","access_token"].forEach(i=>{n.searchParams.delete(i)}),n.toString()):(console.warn("Media URL from unauthorized domain:",n.hostname),null)}catch(n){return console.error("Invalid media URL:",n),null}}async function uWe(t,e,n){return new Promise(r=>{if(typeof Ag>"u"||!Ag.runtime){console.error("â Chrome runtime not available"),r(!1);return}console.log("ð¤ Queuing preset in extension..."),Ag.runtime.sendMessage(bJ,{action:"queuePreset",preset:t,mediaUrl:e,source:n},i=>{Ag.runtime.lastError?(console.error("â Failed to queue preset:",Ag.runtime.lastError.message),r(!1)):i&&i.success?(console.log("â
Preset queued successfully"),r(!0)):(console.warn("â ï¸ Queue failed:",(i==null?void 0:i.error)||"Unknown error"),r(!1))}),setTimeout(()=>{console.log("â±ï¸ Queue timeout"),r(!1)},2e3)})}function dWe(){var y;const[t,e]=E.useState(null),[n,r]=E.useState(null),[i,s]=E.useState(""),[o,a]=E.useState(!1),[c,u]=E.useState(!0),[d,h]=E.useState(!1),[f,m]=E.useState(!1);E.useEffect(()=>{v()},[]);const v=async()=>{console.log("ðµ RORA Aura Share - Initializing");const b=new URLSearchParams(window.location.search),x=b.get("p"),w=b.get("u"),_=b.get("s")||"share";if(!x){console.error("â No preset parameter found"),s("Oopsâ¦no aura found! Not yours, but theirs! Try again by reloading the link shared with you."),u(!1);return}let S;try{console.log("ð Decoding preset..."),S=aWe(x),console.log("â
Preset decoded:",S),e(S)}catch(A){console.error("â Failed to decode preset:",A),s("Oopsâ¦no aura found! Not yours, but theirs! Try again by reloading the link shared with you."),u(!1);return}const T=w?cWe(w):null;w&&!T&&console.warn("â ï¸ Media URL failed validation"),r(T),console.log("ð Checking for extension...");const M=await wJ();if(a(M),M){console.log("â
Extension detected, queueing preset...");const A=await uWe(x,T,_);h(A),A?console.log("â
Preset queued successfully - User can now open media and RORA"):console.warn("â ï¸ Failed to queue preset, but user can still install/use extension")}else console.log("â¹ï¸ Extension not detected - showing install prompt");u(!1)};if(c)return l.jsx("div",{className:"min-h-screen flex items-center justify-center bg-transparent",children:l.jsxs("div",{className:"text-center",children:[l.jsx(Bo,{className:"w-12 h-12 animate-spin mx-auto mb-4 text-white"}),l.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Loading your custom audio preset..."})]})});if(i)return l.jsx("div",{className:"min-h-screen flex items-center justify-center bg-transparent p-4",children:l.jsxs("div",{className:"text-center",children:[l.jsx(Hd,{className:"w-12 h-12 mx-auto mb-4 text-destructive"}),l.jsx("h1",{className:"text-2xl font-semibold text-white mb-4",children:i}),l.jsx(Ge,{asChild:!0,variant:"outline",children:l.jsx("a",{href:"/",children:"â Back to Home"})})]})});const g=n?(b=>{try{const x=new URL(b);return x.hostname.includes("youtube.com")?x.searchParams.get("v"):x.hostname.includes("youtu.be")?x.pathname.slice(1):null}catch{return null}})(n):null;return l.jsxs("div",{className:"min-h-screen bg-transparent py-20 px-4",children:[l.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6 text-white",children:"Someone's Sharing Their Aura with You"}),l.jsx("p",{className:"text-lg text-white/70",children:"Experience the
6066ir custom audio preset in 3 simple steps"})]}),l.jsxs("div",{className:"panel-2025 p-6 sm:p-8",children:[l.jsxs("div",{className:"mb-6",children:[l.jsxs("h3",{className:"flex items-center gap-3 text-xl font-bold text-white mb-2",children:[l.jsx("img",{src:"/icons/ionicons/pulse.svg",alt:"",className:"w-6 h-6 brightness-0 invert"}),"How to Experience This Aura"]}),l.jsx("p",{className:"text-sm text-neutral-300",children:"Follow these steps to apply the custom audio preset"})]}),l.jsxs("ol",{className:"space-y-6 text-white",children:[l.jsxs("li",{className:"flex items-start gap-4",children:[l.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-full bg-white/10 text-white font-bold text-sm",children:"1"}),l.jsx("div",{className:"flex-1 pt-0.5",children:n?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"font-medium",children:"Open the link"}),g&&l.jsx("div",{className:"mt-3 mb-3 rounded-lg overflow-hidden border border-white/10",children:l.jsx("img",{src:`https://img.youtube.com/vi/${g}/mqdefault.jpg`,alt:"Video preview",className:"w-full h-auto"})}),l.jsxs("div",{className:"mt-2 p-3 bg-white/5 rounded-lg border border-white/10",children:[l.jsx("p",{className:"text-xs text-white/50 mb-1",children:"You'll be redirected to:"}),l.jsx("p",{className:"text-sm text-white/90 break-all font-mono",children:n})]}),l.jsx(Ge,{asChild:!0,variant:"outline",size:"sm",className:"mt-3 w-full border-white/20 text-white hover:bg-white/10",children:l.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2",children:[l.jsx("img",{src:"/icons/ionicons/musical-note.svg",alt:"",className:"w-4 h-4 brightness-0 invert"}),"Open Media"]})})]}):l.jsx("span",{className:"font-medium",children:"Open the link"})})]}),l.jsxs("li",{className:"flex items-start gap-4",children:[l.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-full bg-white/10 text-white font-bold text-sm",children:"2"}),l.jsxs("div",{className:"flex-1 pt-0.5",children:[l.jsx("span",{className:"font-medium",children:"Open RORA"}),l.jsx("p",{className:"text-sm text-white/50 mt-1",children:"Click the RORA extension icon in your browser toolbar"})]})]}),l.jsxs("li",{className:"flex items-start gap-4",children:[l.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-full bg-white/10 text-white font-bold text-sm",children:"3"}),l.jsxs("div",{className:"flex-1 pt-0.5",children:[l.jsx("span",{className:"font-medium",children:'Press "Start Experience" to load the preset'}),l.jsx("p",{className:"text-sm text-white/50 mt-1",children:"The plugin loads the preset for you"})]})]})]})]}),t&&l.jsxs("div",{className:"panel-2025 p-6 sm:p-8",children:[l.jsxs("div",{className:"mb-6",children:[l.jsxs("h3",{className:"flex items-center gap-3 text-xl font-bold text-white mb-2",children:[l.jsx("img",{src:"/icons/ionicons/analytics.svg",alt:"",className:"w-6 h-6 brightness-0 invert"}),"How RORA Filters Your Audio"]}),l.jsx("p",{className:"text-sm text-neutral-300",children:"Real-time audio processing pipeline"})]}),(()=>{const b={smooth:"/icons/ionicons/water.svg",pitch:"/icons/ionicons/musical-note.svg",tempo:"/icons/ionicons/speedometer.svg",spatialAudio:"/icons/ionicons/cube.svg",reverb:"/icons/ionicons/pulse.svg",echo:"/icons/ionicons/pulse.svg",muffler:"/icons/ionicons/volume-mute-outline.svg",bassBoost:"/icons/ionicons/trending-down.svg",bassReduce:"/icons/ionicons/volume-off.svg",visualEQ:"/icons/ionicons/analytics.svg",masterVolume:"/icons/ionicons/volume-high.svg",monoStereo:"/icons/ionicons/musical-notes-outline.svg",balance:"/icons/ionicons/sparkles-outline.svg"},x=Object.entries(t.filters).map(([w,_])=>{if(w==="visualEQ"&&typeof _=="object"&&_!==null){const S=_;if("bands"in S&&Array.isArray(S.bands)){const T=oWe(S.bands);return{key:w,value:T,icon:b[w],name:pz[w]||w}}}return{key:w,value:_,icon:b[w]||"/icons/ionicons/sparkles-outline.svg",name:pz[w]||w}}).slice(0,5);return l.jsx(TJ,{filters:x})})(),((y=t==null?void 0:t.metadata)==null?void 0:y.n)&&l.jsxs("div",{className:"mt-6 pt-6 border-t border-white/10",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[l.jsx("img",{src:"/icons/ionicons/headset.svg",alt:"",className:"w-5 h-5 brightness-0 invert opacity-70"}),l.jsx("span",{className:"text-sm text-white/70",children:"Created for"})]}),l.jsx("p",{className:"text-white font-semibold text-lg",children:fz.sanitize(t.metadata.n,{ALLOWED_TAGS:[],ALLOWED_ATTR:[]})}),mz(t.metadata)&&l.jsx("p",{className:"text-white/70",children:fz.sanitize(mz(t.metadata),{ALLOWED_TAGS:[],ALLOWED_ATTR:[]})})]})]}),!o&&l.jsxs("div",{className:"text-center mt-12 space-y-4",children:[l.jsx("p",{className:"text-white/70",children:"Don't have RORA yet?"}),l.jsx(Ge,{variant:"premium",size:"lg",className:"text-lg px-12 py-6 h-auto",asChild:!0,children:l.jsx("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",children:"Get It Now"})}),l.jsx("p",{className:"text-sm text-white/50",children:"Download from Chrome Web Store"})]})]}),l.jsx(H0,{open:f,onOpenChange:m})]})}function hWe(){const[t,e]=E.useState("terms");E.useEffect(()=>{const r=window.location.hash.substring(1);r&&["terms","privacy","license"].includes(r)&&e(r)},[]);const n=r=>{e(r),window.history.pushState(null,"",`/legal#${r}`)};return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Legal Information | RORA Audio"}),l.jsx("meta",{name:"description",content:"Terms of Service, Privacy Policy, and License information for RORA Audio browser extension."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/legal"}),l.jsx("meta",{property:"og:title",content:"Legal Information | RORA Audio"}),l.jsx("meta",{property:"og:description",content:"Terms of Service, Privacy Policy, and License information for RORA Audio browser extension."}),l.jsx("meta",{property:"og:url",content:"https://rora.one/legal"}),l.jsx("meta",{property:"og:type",content:"website"})]}),l.jsx("div",{className:"min-h-screen bg-gradient-to-br from-background to-background/95 py-12 px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-8",children:[l.jsx("h1",{className:"text-4xl font-bold text-white mb-2",children:"Legal Information"}),l.jsx("p",{className:"text-zinc-400",children:"Terms, Privacy Policy, and Licenses"})]}),l.jsxs("div",{className:"w-full",children:[l.jsx("div",{className:"flex justify-center mb-8",children:l.jsxs("div",{role:"tablist","aria-label":"Legal tabs",className:"grid w-full max-w-2xl grid-cols-3 h-12 rounded-full p-1 bg-white/5 backdrop-blur-sm border border-white/10 overflow-hidden",children:[l.jsxs("button",{type:"button",role:"tab","aria-selected":t==="terms",onClick:()=>n("terms"),className:"relative w-full h-full rounded-full flex items-center justify-center text-sm font-semibold text-muted-foreground data-[active=true]:text-foreground","data-active":t==="terms",children:[t==="terms"&&l.jsx(ve.span,{layoutId:"legal-segment-bubble",className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30",style:{borderRadius:9999},transition:{type:"spring",bounce:.2,duration:.5}}),l.jsx("span",{className:"relative z-20",children:"Terms of Service"})]}),l.jsxs("button",{type:"button",role:"tab","aria-selected":t==="privacy",onClick:()=>n("privacy"),className:"relative w-full h-full rounded-full flex items-center justify-center text-sm font-semibold text-muted-foreground data-[active=true]:text-foreground","data-active":t==="privacy",children:[t==="privacy"&&l.jsx(ve.span,{layoutId:"legal-segment-bubble",className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30",style:{borderRadius:9999},transition:{type:"spring",bounce:.2,duration:.5}}),l.jsx("span",{className:"relative z-20",children:"Privacy Policy"})]}),l.jsxs("button",{type:"button",role:"tab","aria-selected":t==="license",onClick:()=>n("license"),className:"relative w-full h-full rounded-full flex items-center justify-center text-sm font-semibold text-muted-foreground data-[active=true]:text-foreground","data-active":t==="license",children:[t==="license"&&l.jsx(ve.span,{layoutId:"legal-segment-bubble",className:"absolute inset-0 z-10 bg-white/20 backdrop-blur-sm border border-white/30",style:{borderRadius:9999},transition:{type:"spring",bounce:.2,duration:.5}}),l.jsx("span",{className:"relative z-20",children:"Licenses"})]})]})}),l.jsxs("div",{className:"border border-white/10 rounded-lg p-8 backdrop-blur-sm",children:[t==="terms"&&l.jsxs("div",{className:"space-y-6 text-zinc-300",children:[l.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"Terms of Service & End User License Agreement"}),l.jsxs("p",{className:"text-sm text-zinc-400 mb-6",children:[l.jsx("strong",{children:"Effective Date:"})," November 28, 2025",l.jsx("br",{}),l.jsx("strong",{children:"Version:"})," 1.0.0"]}),l.jsx("p",{className:"mb-6",children:'This agreement ("Terms") governs your use of RORA, a browser extension for real-time audio processing. By installing or using RORA, you agree to these Terms.'}),l.jsxs("div",{className:"space-y-6",children:[l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"1. Our Core Promises"}),l.jsxs("ul",{className:"space-y-3",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Lifetime Access"})," - RORA Max is a one-time purchase. No recurring fees, no renewals."]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Secure Payment with Stripe"})," - Bank-level security. Your payment info never touches our servers."]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"No Hidden Fees. Ever."})," - What you see is what you pay. One price, one payment."]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Your Audio Stays Private"})," - 100% local processing. Your music never leaves your device."]})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"2. License Grant"}),l.jsx("p",{className:"mb-2",children:"We grant you a personal, non-exclusive, non-transferable license to use RORA based on your plan:"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"RORA Core (Free)"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Share, Reverb, Master Volume, Muffler, Visual EQ, Custom Presets"}),l.jsx("li",{children:"Full support included"})]}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"RORA Max (Paid, Lifetime)"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"All Core features plus:"}),l.jsx("li",{children:"Smooth Pro, Bass Boost, Bass Reduce, Echo, Pitch Shift, Tempo"}),l.jsx("li",{children:"Spatial Audio, Visualizers, Light Mode, L/R Panning, Mono/Stereo"}),l.jsx("li",{children:"Priority access to new features"}),l.jsx("li",{children:"Priority support"})]}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Lifetime License"}),l.jsx("p",{className:"mb-2",children:'"Lifetime" means access to RORA Max for as long as RORA remains commercially available and reasonably maintainable. In the unlikely event that RORA ceases operations or is permanently discontinued, the lifetime license would end upon the termination of the service. We will provide reasonable advance notice of any such discontinuation.'})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"3. Acceptable Use"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"You CAN:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Use RORA for any legal purpose"}),l.jsx("li",{children:"Enhance audio from streaming services"}),l.jsx("li",{children:"Create and share custom presets"})]}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"You CANNOT:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Rever
6066se engineer or modify RORA"}),l.jsx("li",{children:"Share your account with others"}),l.jsx("li",{children:"Use RORA for illegal activities"}),l.jsx("li",{children:"Violate copyright laws"}),l.jsx("li",{children:"Resell or redistribute our service"}),l.jsx("li",{children:"Create multiple accounts to circumvent plan limitations"})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"4. Payment Terms"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Billing"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Processed securely through Stripe"}),l.jsx("li",{children:"RORA Max is a one-time payment (no recurring charges)"}),l.jsx("li",{children:"Prices in Swiss Francs (CHF), converted to your local currency at checkout"})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"5. Privacy Summary"}),l.jsxs("p",{className:"mb-2",children:["Your privacy is fundamental. See our full"," ",l.jsx("a",{href:"/legal#privacy",className:"text-rora-pink hover:underline",children:"Privacy Policy"})," ","for details."]}),l.jsx("p",{className:"mb-2",children:"Key points:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"100% local processing"})," - Audio never leaves your device"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Minimal data collection"})," - Only what's needed for the service"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"No selling data"})," - Ever"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Secure payments"})," - Through Stripe, we never see your card"]})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"6. Intellectual Property"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Our Property"}),l.jsx("p",{children:"RORA's code, design, and technology belong to us. Don't copy, modify, or redistribute."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Your Content"}),l.jsx("p",{children:"Your audio remains yours. We only process it locally to provide our service."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Feedback"}),l.jsx("p",{children:"Suggestions you provide may be used without compensation."})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"7. Support"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"All users:"})," Full support at"," ",l.jsx("a",{href:"mailto:[email protected]",className:"text-rora-pink hover:underline",children:"[email protected]"})]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Max users:"})," Priority response times"]})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"8. Limitations"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"No Warranty"}),l.jsx("p",{className:"mb-2",children:`RORA is provided "as is" without warranties. We don't guarantee:`}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Uninterrupted service"}),l.jsx("li",{children:"Error-free operation"}),l.jsx("li",{children:"Specific audio improvements"})]}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Limited Liability"}),l.jsx("p",{children:"Our maximum liability is the amount you paid for RORA. We're not liable for indirect damages."})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"9. Termination"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"You Can:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Cancel anytime"}),l.jsx("li",{children:"Uninstall the extension"}),l.jsx("li",{children:"Delete your account"})]}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"We Can:"}),l.jsx("p",{className:"mb-2",children:"Terminate accounts that:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Violate these Terms"}),l.jsx("li",{children:"Engage in fraud"}),l.jsx("li",{children:"Harm other users"})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"10. General"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Updates"}),l.jsx("p",{children:"We may update these Terms. Continued use means acceptance."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Governing Law"}),l.jsx("p",{children:"Swiss law governs these Terms."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Entire Agreement"}),l.jsx("p",{children:"These Terms and our Privacy Policy are the complete agreement."})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"11. Contact"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Email:"})," ",l.jsx("a",{href:"mailto:[email protected]",className:"text-rora-pink hover:underline",children:"[email protected]"})]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Support:"})," ",l.jsx("a",{href:"mailto:[email protected]",className:"text-rora-pink hover:underline",children:"[email protected]"})]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Website:"})," ",l.jsx("a",{href:"https://rora.one",className:"text-rora-pink hover:underline",children:"https://rora.one"})]})]})]}),l.jsx("section",{className:"border-t border-white/10 pt-4 mt-4",children:l.jsx("p",{className:"font-semibold text-white text-center",children:"By using RORA, you agree to these Terms."})})]})]}),t==="privacy"&&l.jsxs("div",{className:"space-y-6 text-zinc-300",children:[l.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"Privacy Policy"}),l.jsxs("p",{className:"text-sm text-zinc-400 mb-6",children:[l.jsx("strong",{children:"Effective Date:"})," November 28, 2025",l.jsx("br",{}),l.jsx("strong",{children:"Last Updated:"})," June 14, 2026"]}),l.jsxs("div",{className:"space-y-6",children:[l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Our Privacy Promise"}),l.jsx("p",{className:"font-semibold text-white",children:"Your Audio Stays Private - 100% local processing. Your music never leaves your device."})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"What We Collect"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Information You Provide"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Email address (for your account)"}),l.jsx("li",{children:"Payment info (handled by Stripe, we never see it)"})]}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Automatic Collection"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Filter preferences and settings"}),l.jsx("li",{children:"Account tier and purchase status"}),l.jsx("li",{children:"Technical info (browser type, extension ver
6066sion)"})]}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Usage Analytics"}),l.jsx("p",{className:"mb-2",children:"RORA requires an account to use the extension. While logged in, we collect usage statistics to power your dashboard and improve the product:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Total Listening Time"})," â Cumulative time you have used audio processing"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Filter Usage"})," â Which audio filters you use and how often"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Filter Active Time"})," â How long each filter is actively enabled"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Features Discovered"})," â Which features you have tried at least once"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Last Audio Used"})," â Timestamp of your last audio processing session"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Last Popup Opened"})," â Timestamp of when you last opened the extension popup"]})]}),l.jsx("p",{className:"mt-2 text-sm text-zinc-400",children:"There is no opt-out for this collection â a RORA account is required to use the extension, and usage statistics are collected as part of the service. Individual usage data is retained for 90 days, then anonymized."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"What We DON'T Collect"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Your audio content (processed locally only)"}),l.jsx("li",{children:"Your browsing history"}),l.jsx("li",{children:"Which websites you visit"}),l.jsx("li",{children:"Personal data from audio streams"})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"How We Use Your Data"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Provide and improve RORA"}),l.jsx("li",{children:"Power your usage dashboard"}),l.jsx("li",{children:"Manage your subscription"}),l.jsx("li",{children:"Send important updates"}),l.jsx("li",{children:"Provide support"})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Third-Party Services"}),l.jsx("p",{className:"mb-2",children:"RORA uses the following third-party services:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Supabase"})," - Authentication and data storage -"," ",l.jsx("a",{href:"https://supabase.com/privacy",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"Privacy Policy"})]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Stripe"})," - Payment processing -"," ",l.jsx("a",{href:"https://stripe.com/privacy",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"Privacy Policy"})]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Google OAuth"})," - Optional sign-in method -"," ",l.jsx("a",{href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"Privacy Policy"})]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Apple OAuth"})," - Optional sign-in method -"," ",l.jsx("a",{href:"https://www.apple.com/legal/privacy/",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"Privacy Policy"})]})]}),l.jsx("p",{className:"mt-3 font-semibold text-white",children:"We do NOT share your personal data with third parties for marketing purposes. We NEVER sell your data."})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Data Storage & Security"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Encryption:"})," All data encrypted in transit and at rest"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Local Processing:"})," Audio processing happens on your device"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Minimal Collection:"})," We only collect what's necessary"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Secure Authentication:"})," Industry-standard security"]})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Cookies & Storage"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Extension Storage"}),l.jsx("p",{className:"mb-2",children:"The RORA extension stores:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Your settings and preferences"}),l.jsx("li",{children:"Authentication tokens"}),l.jsx("li",{children:"Trial usage count"})]}),l.jsx("p",{className:"mt-2",children:"Settings and preferences are stored locally on your device. Usage statistics are synced to your account when you are logged in."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Website Cookies"}),l.jsx("p",{className:"mb-2",children:"Our website (rora.one) uses:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Essential cookies:"})," For login and security"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Analytics cookies:"})," To understand usage (optional)"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Preference cookies:"})," To remember your choices"]})]}),l.jsx("p",{className:"mt-2",children:"You can control cookies in your browser settings or via our cookie consent banner."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Google Analytics (Website Only)"}),l.jsx("p",{className:"mb-2",children:"We use Google Analytics 4 (GA4) on rora.one only â not in the RORA extension. This helps us understand how visitors use our website. GA4 collects:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Pages you visit and time spent"}),l.jsx("li",{children:"How you found our site"}),l.jsx("li",{children:"Your general location (country/city level)"}),l.jsx("li",{children:"Device and browser information"}),l.jsx("li",{children:"Interactions with features (button clicks, form submissions)"})]}),l.jsx("p",{className:"mt-2",children:"We have enabled IP anonymization to protect your privacy. Analytics cookies are only set after you accept cookies via our consent banner."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"How to Opt Out (Website Only)"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:'Click "Decline" on our cookie consent banner'}),l.jsx("li",{children:'Use the "Cookie Settings" link in our footer to change your preference'}),l.jsxs("li",{children:["Install the ",l.jsx("a",{href:"https://tools.google.com/dlpage/gaoptout",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"Google Analytics Opt-out Browser Add-on"})]}),l.jsx("li",{children:"Adjust cookie settings in your browser"})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Your Rights"}),l.jsx("p",{className:"mb-2",children:"You have the right to:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Access"})," your data"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Correct"})," inaccuracies"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Delete"})," your account and data"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Export"})," your data"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Opt-out"})," of marketing"]})]}),l.jsxs("p",{className:"mt-2",children:["To exercise these rights, email"," ",l.jsx("a",{href:"mailto:[email protected]",className:"text-rora-pink hover:underline",children:"[email protected]"})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"GDPR & CCPA Compliance"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"For EU Users"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Legal basis: Contract and legitimate interests"}),l.jsx("li",{children:"Data controller: RORA Audio"}),l.jsx("li",{children:"You can contact supervisory authorities"})]}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"For California Users"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"We don't sell personal information"}),l.jsx("li",{children:"Equal service regardless of privacy choices"}),l.jsx("li",{children:"Right to know what we collect"})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Children's Privacy and Protection"}),l.jsx("p",{children:"RORA is not for children under 13. If we learn a child has provided data, we'll delete it."})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Data Retention"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Account data: While account is active + 30 days"}),l.jsx("li",{children:"Usage analytics: 2 years"}),l.jsx("li",{children:"Payment records: 7 years (legal requirement)"})]})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Changes to This Policy"}),l.jsx("p",{children:"We'll notify you of significant changes via email or in-extension notice."})]}),l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Contact Us"}),l.jsxs("p",{className:"mb-2",children:[l.jsx("strong",{className:"text-white",children:"Privacy and Legal Questions:"})," ",l.jsx("a",{href:"mailto:[email protected]",className:"text-rora-pink hover:underline",children:"[email protected]"})]}),l.jsxs("p",{children:[l.jsx("strong",{className:"text-white",children:"General Support:"})," ",l.jsx("a",{href:"mailto:[email protected]",className:"text-rora-pink hover:underline",children:"[email protected]"})]})]}),l.jsx("section",{className:"border-t border-white/10 pt-4 mt-4",children:l.jsx("p",{className:"font-semibold text-white text-center",children:"Remember: Your audio never leaves your device. We can't access what you're listening to, and we like it that way."})})]})]}),t==="license"&&l.jsxs("div",{className:"space-y-6 text-zinc-300",children:[l.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"Open Source Licenses"}),l.jsx("p",{className:"text-sm text-zinc-400 mb-6",children:"RORA uses the following open-source libraries. We're grateful to the developers who make these tools available."}),l.jsxs("div",{className:"space-y-8",children:[l.jsxs("section",{children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"SoundTouch Audio Processing Library"}),l.jsxs("ul",{className:"space-y-2 mb-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"License:"})," LGPL-2.1"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Copyright:"})," © Olli Parviainen"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Website:"})," ",l.jsx("a",{href:"https://www.surina.net/soundtouch/",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"https://www.surina.net/soundtouch/"})]})]}),l.jsx("p",{className:"mb-3",children:"Used for pitch shifting and tempo control features."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"LGPL-2.1 License Summary"}),l.jsx("p",{className:"mb-2",children:"The Lesser General Public License v2.1 allows you to:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Use the library in proprietary software"}),l.jsx("li",{children:"Modify the library for your own use"}),l.jsx("li",{children:"Replace the library with a modified version"})]}),l.jsxs("p",{className:"mt-3",children:["Full source code for SoundTouch as used in RORA is available at:"," ",l.jsx("a",{href:"https://github.com/RORA-AUDIO/soundtouch-source",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"https://github.com/RORA-AUDIO/soundtouch-source"})]}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"JavaScript Implementation"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Contributors:"})," Ryan Berdeen, Jakub Fiala, Steve 'Cutter' Blades"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Repository:"})," ",l.jsx("a",{href:"https://github.com/cutterbl/SoundTouchJS",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"https://github.com/cutterbl/SoundTouchJS"})]})]})]}),l.jsxs("section",{className:"border-t border-white/10 pt-6",children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Resonance Audio"}),l.jsxs("ul",{className:"space-y-2 mb-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"License:"})," Apache 2.0"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Copyright:"})," © 2017 Google Inc."]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Website:"})," ",l.jsx("a",{href:"https://resonance-audio.github.io/resonance-audio/",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"https://resonance-audio.github.io/resonance-audio/"})]})]}),l.jsx("p",{className:"mb-3",children:"Used for spatial audio processing (3D sound) in RORA Max."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Apache 2.0 License Summary"}),l.jsxs("p",{children:["Licensed under the Apache License, Version 2.0. You may obtain a copy at:"," ",l.jsx("a",{href:"http://www.apache.org/licenses/LICENSE-2.0",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"http://www.apache.org/licenses/LICENSE-2.0"})]})]}),l.jsxs("section",{className:"border-t border-white/10 pt-6",children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Web Audio API"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Standard:"})," W3C Specification"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Website:"})," ",l.jsx("a",{href:"https://www.w3.org/TR/webaudio/",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"https://www.w3.org/TR/webaudio/"})]})]}),l.jsx("p",{className:"mt-3",children:"Core audio processing technology used throughout RORA."})]}),l.jsxs("section",{className:"border-t border-white/10 pt-6",children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Chrome Extension APIs"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"License:"})," Apache 2.0"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Copyright:"})," © Google"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Documentation:"})," ",l.jsx("a",{href:"https://developer.chrome.com/docs/extensions/",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"https://developer.c
6066hrome.com/docs/extensions/"})]})]}),l.jsx("p",{className:"mt-3",children:"Used for browser integration and extension functionality."})]}),l.jsxs("section",{className:"border-t border-white/10 pt-6",children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Gulax Font"}),l.jsxs("ul",{className:"space-y-2 mb-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"License:"})," SIL Open Font License, Version 1.1"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Designers:"})," Morgan Gilbert, with the contribution of Anton Moglia"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Styles:"})," Gulax Regular"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Collections:"})," Geometric, Sans Serif"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Writing Systems:"})," Latin"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Published:"})," March 4, 2014 (updated March 29, 2022)"]})]}),l.jsx("p",{className:"mb-3",children:"Used for the RORA logo and branding."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"SIL Open Font License Summary"}),l.jsx("p",{className:"mb-2",children:"The OFL allows you to:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Use the font freely in any project"}),l.jsx("li",{children:"Modify the font for your own use"}),l.jsx("li",{children:"Redistribute the font with your software"})]}),l.jsxs("p",{className:"mt-3",children:["Full license text available at:"," ",l.jsx("a",{href:"https://scripts.sil.org/OFL",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"https://scripts.sil.org/OFL"})]})]}),l.jsxs("section",{className:"border-t border-white/10 pt-6",children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Elastic Slider UI Component"}),l.jsxs("ul",{className:"space-y-2 mb-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"License:"})," MIT License"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Copyright:"})," © 2026 Nicolas Jesenberger (njesenberger)"]})]}),l.jsx("p",{className:"mb-3",children:"Used for characteristic UI toggle switches and sliders throughout RORA."}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"MIT License"}),l.jsx("p",{className:"text-sm text-zinc-400 mb-3",children:'Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:'}),l.jsx("p",{className:"text-sm text-zinc-400 mb-3",children:"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."}),l.jsx("p",{className:"text-sm text-zinc-400",children:'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.'})]}),l.jsxs("section",{className:"border-t border-white/10 pt-6",children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"License Compliance"}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"For LGPL Components (SoundTouch)"}),l.jsx("p",{className:"mb-2",children:"In compliance with LGPL-2.1 requirements:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Source Code:"})," Available at"," ",l.jsx("a",{href:"https://github.com/RORA-AUDIO/soundtouch-source",target:"_blank",rel:"noopener noreferrer",className:"text-rora-pink hover:underline",children:"https://github.com/RORA-AUDIO/soundtouch-source"})]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Modifications:"})," You may modify the SoundTouch library for personal use"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Linking:"})," RORA is designed to allow relinking with modified versions"]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Support:"})," Modifying libraries may affect RORA functionality and voids support"]})]}),l.jsx("h4",{className:"text-lg font-semibold text-white mb-2 mt-4",children:"Your Rights"}),l.jsx("p",{className:"mb-2",children:"These open-source licenses grant you specific rights:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"View the source code of these libraries"}),l.jsx("li",{children:"Modify these libraries for your use"}),l.jsx("li",{children:"Understand how RORA processes audio"})]}),l.jsx("p",{className:"mt-3",children:"However, RORA itself (excluding these libraries) remains proprietary software."})]}),l.jsxs("section",{className:"border-t border-white/10 pt-6",children:[l.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"Questions?"}),l.jsx("p",{className:"mb-2",children:"For licensing questions or source code requests:"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"Email:"})," ",l.jsx("a",{href:"mailto:[email protected]",className:"text-rora-pink hover:underline",children:"[email protected]"})]}),l.jsxs("li",{children:[l.jsx("strong",{className:"text-white",children:"LGPL source code (available for 3+ years):"})," ",l.jsx("a",{href:"mailto:[email protected]",className:"text-rora-pink hover:underline",children:"[email protected]"})]})]})]}),l.jsx("section",{className:"border-t border-white/10 pt-4 mt-4",children:l.jsx("p",{className:"text-sm text-center italic",children:"This document lists third-party libraries used by RORA. Each library retains its original license and copyright."})})]})]})]})]})]})})]})}var B2="Collapsible",[fWe,$ee]=ks(B2),[mWe,z3]=fWe(B2),Hee=E.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:o,...a}=t,[c,u]=uo({prop:r,defaultProp:i??!1,onChange:o,caller:B2});return l.jsx(mWe,{scope:n,disabled:s,contentId:io(),open:c,onOpenToggle:E.useCallback(()=>u(d=>!d),[u]),children:l.jsx(ht.div,{"data-state":H3(c),"data-disabled":s?"":void 0,...a,ref:e})})});Hee.displayName=B2;var Vee="CollapsibleTrigger",Wee=E.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,i=z3(Vee,n);return l.jsx(ht.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":H3(i.open
6066),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:e,onClick:De(t.onClick,i.onOpenToggle)})});Wee.displayName=Vee;var $3="CollapsibleContent",Gee=E.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=z3($3,t.__scopeCollapsible);return l.jsx(Jo,{present:n||i.open,children:({present:s})=>l.jsx(pWe,{...r,ref:e,present:s})})});Gee.displayName=$3;var pWe=E.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=t,o=z3($3,n),[a,c]=E.useState(r),u=E.useRef(null),d=At(e,u),h=E.useRef(0),f=h.current,m=E.useRef(0),v=m.current,p=o.open||a,g=E.useRef(p),y=E.useRef(void 0);return E.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),Nr(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const x=b.getBoundingClientRect();h.current=x.height,m.current=x.width,g.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),c(r)}},[o.open,r]),l.jsx(ht.div,{"data-state":H3(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...s,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...t.style},children:p&&i})});function H3(t){return t?"open":"closed"}var gWe=Hee,vWe=Wee,yWe=Gee,na="Accordion",xWe=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[V3,bWe,wWe]=fp(na),[z2,SJe]=ks(na,[wWe,$ee]),W3=$ee(),qee=V.forwardRef((t,e)=>{const{type:n,...r}=t,i=r,s=r;return l.jsx(V3.Provider,{scope:t.__scopeAccordion,children:n==="multiple"?l.jsx(TWe,{...s,ref:e}):l.jsx(EWe,{...i,ref:e})})});qee.displayName=na;var[Yee,_We]=z2(na),[Xee,SWe]=z2(na,{collapsible:!1}),EWe=V.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:s=!1,...o}=t,[a,c]=uo({prop:n,defaultProp:r??"",onChange:i,caller:na});return l.jsx(Yee,{scope:t.__scopeAccordion,value:V.useMemo(()=>a?[a]:[],[a]),onItemOpen:c,onItemClose:V.useCallback(()=>s&&c(""),[s,c]),children:l.jsx(Xee,{scope:t.__scopeAccordion,collapsible:s,children:l.jsx(Kee,{...o,ref:e})})})}),TWe=V.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=t,[o,a]=uo({prop:n,defaultProp:r??[],onChange:i,caller:na}),c=V.useCallback(d=>a((h=[])=>[...h,d]),[a]),u=V.useCallback(d=>a((h=[])=>h.filter(f=>f!==d)),[a]);return l.jsx(Yee,{scope:t.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:l.jsx(Xee,{scope:t.__scopeAccordion,collapsible:!0,children:l.jsx(Kee,{...s,ref:e})})})}),[AWe,$2]=z2(na),Kee=V.forwardRef((t,e)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:s="vertical",...o}=t,a=V.useRef(null),c=At(a,e),u=bWe(n),h=F0(i)==="ltr",f=De(t.onKeyDown,m=>{var M;if(!xWe.includes(m.key))return;const v=m.target,p=u().filter(A=>{var C;return!((C=A.ref.current)!=null&&C.disabled)}),g=p.findIndex(A=>A.ref.current===v),y=p.length;if(g===-1)return;m.preventDefault();let b=g;const x=0,w=y-1,_=()=>{b=g+1,b>w&&(b=x)},S=()=>{b=g-1,b<x&&(b=w)};switch(m.key){case"Home":b=x;break;case"End":b=w;break;case"ArrowRight":s==="horizontal"&&(h?_():S());break;case"ArrowDown":s==="vertical"&&_();break;case"ArrowLeft":s==="horizontal"&&(h?S():_());break;case"ArrowUp":s==="vertical"&&S();break}const T=b%y;(M=p[T].ref.current)==null||M.focus()});return l.jsx(AWe,{scope:n,disabled:r,direction:i,orientation:s,children:l.jsx(V3.Slot,{scope:n,children:l.jsx(ht.div,{...o,"data-orientation":s,ref:c,onKeyDown:r?void 0:f})})})}),j_="AccordionItem",[CWe,G3]=z2(j_),Qee=V.forwardRef((t,e)=>{const{__scopeAccordion:n,value:r,...i}=t,s=$2(j_,n),o=_We(j_,n),a=W3(n),c=io(),u=r&&o.value.includes(r)||!1,d=s.disabled||t.disabled;return l.jsx(CWe,{scope:n,open:u,disabled:d,triggerId:c,children:l.jsx(gWe,{"data-orientation":s.orientation,"data-state":rte(u),...a,...i,ref:e,disabled:d,open:u,onOpenChange:h=>{h?o.onItemOpen(r):o.onItemClose(r)}})})});Qee.displayName=j_;var Zee="AccordionHeader",Jee=V.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,i=$2(na,n),s=G3(Zee,n);return l.jsx(ht.h3,{"data-orientation":i.orientation,"data-state":rte(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:e})});Jee.displayName=Zee;var mj="AccordionTrigger",ete=V.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,i=$2(na,n),s=G3(mj,n),o=SWe(mj,n),a=W3(n);return l.jsx(V3.ItemSlot,{scope:n,children:l.jsx(vWe,{"aria-disabled":s.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...a,...r,ref:e})})});ete.displayName=mj;var tte="AccordionContent",nte=V.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,i=$2(na,n),s=G3(tte,n),o=W3(n);return l.jsx(yWe,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...o,...r,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});nte.displayName=tte;function rte(t){return t?"open":"closed"}var MWe=qee,RWe=Qee,PWe=Jee,ite=ete,ste=nte;const Bh=MWe,Yn=E.forwardRef(({className:t,...e},n)=>l.jsx(RWe,{ref:n,className:He("",t),...e}));Yn.displayName="AccordionItem";const Xn=E.forwardRef(({className:t,children:e,...n},r)=>l.jsx(PWe,{className:"flex",children:l.jsxs(ite,{ref:r,className:He("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...n,children:[e,l.jsx(pp,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Xn.displayName=ite.displayName;const Kn=E.forwardRef(({className:t,children:e,...n},r)=>l.jsx(ste,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:l.jsx("div",{className:He("pb-4 pt-0",t),children:e})}));Kn.displayName=ste.displayName;const jWe=()=>{const t=du(),[e,n]=E.useState({name:"",email:"",subject:"",message:""}),r=a=>{const c=document.getElementById(a);c&&c.scrollIntoView({behavior:"smooth",block:"start"})},i=async a=>{if(a.preventDefault(),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email)){ga.error("Please enter a valid email address");return}try{const{error:u}=await Yt.functions.invoke("send-contact-email",{body:e});if(u){console.error("Error sending email:",u),ga.error("Failed to send message. Please try again or email [email protected] directly.");return}
6066ga.success("Thank you! We'll get back to you within 24-48 hours."),n({name:"",email:"",subject:"",message:""})}catch(u){console.error("Error sending email:",u),ga.error("Failed to send message. Please try again or email [email protected] directly.")}},s={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How do I install RORA and use it?",acceptedAnswer:{"@type":"Answer",text:"Install RORA from the Chrome Web Store, pin it to your toolbar, open any music or video streaming site, click the RORA icon, press 'Start the Experience', and apply filters. Visit our Getting Started guide for a video tutorial."}},{"@type":"Question",name:"How do I start using RORA on my favorite music/video site?",acceptedAnswer:{"@type":"Answer",text:"RORA works on any website that plays audio. Open a tab with audio on your favorite music or video streaming site, click the RORA extension icon, click 'Start the Experience', wait 2-3 seconds for 'Processing' status, then apply filters using toggles and sliders."}},{"@type":"Question",name:"Why isn't RORA working on my website?",acceptedAnswer:{"@type":"Answer",text:"RORA works on 99% of websites but may not work on DRM-protected content from major streaming services, system audio, or sites that block extensions. It works great on most music streaming sites, video platforms, and podcast sites."}},{"@type":"Question",name:"Can I use multiple filters at the same time?",acceptedAnswer:{"@type":"Answer",text:"Yes! You can combine as many filters as you want. Popular combinations include 'Concert Hall' (Reverb 50%, Echo 20%, Airy 40%), 'Lofi Vibes' (Smooth Pro 70%, Bass Boost 50%), and '8D Audio' (Spatial Audio 100%, Bass Boost 40%, Reverb 20%)."}},{"@type":"Question",name:"What's the difference between RORA Core and Max?",acceptedAnswer:{"@type":"Answer",text:"RORA Core is free with essential filters including Share, Reverb, Master Volume, Muffler, Visual EQ, and Custom Presets. RORA Max is a one-time lifetime purchase that unlocks all filters and features including Smooth Pro, Bass Boost, Bass Reduce, Echo, Pitch Shift, Tempo, Spatial Audio, Visualizers, Light Mode, L/R Panning, and Mono/Stereo."}},{"@type":"Question",name:"Why can't I hear Spatial Audio?",acceptedAnswer:{"@type":"Answer",text:"Spatial Audio requires headphones or earbuds to work properly. It creates a 'binaural' effect by panning between left/right channels. With speakers, both ears hear both speakers which cancels the effect. Headphones isolate each ear so panning is obvious."}}]},o={"@context":"https://schema.org","@type":"HowTo",name:"How to Use RORA Audio Enhancer",description:"Get started with RORA in 3 simple steps to transform your audio experience",step:[{"@type":"HowToStep",name:"Install Extension",text:"Visit the Chrome Web Store and install RORA Audio Enhancer for free"},{"@type":"HowToStep",name:"Open Music Site",text:"Navigate to your favorite music or video streaming site"},{"@type":"HowToStep",name:"Apply Filters",text:"Click the RORA icon, press 'Start the Experience', and adjust filters to your preference"}]};return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Help & Support | RORA Audio"}),l.jsx("meta",{name:"description",content:"Get help with RORA audio filters, troubleshooting, account, and more. Browse FAQs or contact our support team."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/support"}),l.jsx("meta",{property:"og:title",content:"Help & Support | RORA Audio"}),l.jsx("meta",{property:"og:description",content:"Get help with RORA audio filters, troubleshooting, account, and more. Browse FAQs or contact our support team."}),l.jsx("meta",{property:"og:url",content:"https://rora.one/support"}),l.jsx("meta",{property:"og:type",content:"website"}),l.jsx("script",{type:"application/ld+json",children:JSON.stringify(s)}),l.jsx("script",{type:"application/ld+json",children:JSON.stringify(o)})]}),l.jsxs("div",{className:"min-h-screen",children:[l.jsx("div",{className:"relative overflow-hidden py-20",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsx(Tt,{blur:!0,duration:600,children:l.jsx("h1",{className:"text-5xl font-bold text-center mb-4 bg-gradient-to-r from-primary to-secondary bg-clip-text text-slate-50",children:"Support and Frequently Asked Questions"})}),l.jsx(Tt,{blur:!0,duration:600,delay:100,children:l.jsx("p",{className:"text-xl text-center text-muted-foreground max-w-2xl mx-auto",children:"Get help with RORA audio processor. Find answers to common questions about filters, spatial audio, and more."})})]})}),l.jsx("div",{className:"container mx-auto px-4 py-12",children:l.jsx(Tt,{blur:!0,duration:600,delay:200,children:l.jsxs("div",{className:"grid grid-cols-3 gap-4 max-w-4xl mx-auto",children:[l.jsxs(Ge,{variant:"outline",className:"glass flex flex-col items-center gap-2 h-auto py-4",onClick:()=>r("getting-started"),children:[l.jsx(Z9,{className:"h-10 w-10 text-white"}),l.jsx("span",{className:"text-sm",children:"Getting Started"})]}),l.jsxs(Ge,{variant:"outline",className:"glass flex flex-col items-center gap-2 h-auto py-4",onClick:()=>r("filters"),children:[l.jsx(qse,{className:"h-10 w-10 text-white"}),l.jsx("span",{className:"text-sm",children:"Using Filters"})]}),l.jsxs(Ge,{variant:"outline",className:"glass flex flex-col items-center gap-2 h-auto py-4",onClick:()=>r("spatial"),children:[l.jsx(Y9,{className:"h-10 w-10 text-white"}),l.jsx("span",{className:"text-sm",children:"Spatial Audio"})]}),l.jsxs(Ge,{variant:"outline",className:"glass flex flex-col items-center gap-2 h-auto py-4",onClick:()=>r("subscriptions"),children:[l.jsx(Tse,{className:"h-10 w-10 text-white"}),l.jsx("span",{className:"text-sm",children:"Plans & Account"})]}),l.jsxs(Ge,{variant:"outline",className:"glass flex flex-col items-center gap-2 h-auto py-4",onClick:()=>r("sharing"),children:[l.jsx(Wse,{className:"h-10 w-10 text-white"}),l.jsx("span",{className:"text-sm",children:"Sharing Presets"})]}),l.jsxs(Ge,{variant:"outline",className:"glass flex flex-col items-center gap-2 h-auto py-4",onClick:()=>r("troubleshooting"),children:[l.jsx(Vse,{className:"h-10 w-10 text-white"}),l.jsx("span",{className:"text-sm",children:"Troubleshooting"})]})]})})}),l.jsx("div",{className:"container mx-auto px-4 pb-20",children:l.jsxs("div",{className:"max-w-4xl mx-auto
6066space-y-12",children:[l.jsx(Tt,{blur:!0,duration:600,delay:300,children:l.jsxs("div",{id:"getting-started",className:"scroll-mt-20",children:[l.jsx("h2",{className:"text-3xl font-bold mb-6 text-foreground",children:"Getting Started"}),l.jsxs(Bh,{type:"single",collapsible:!0,className:"space-y-4",children:[l.jsxs(Yn,{value:"q0",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"How do I install RORA and use it?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsx("p",{children:"Getting started with RORA is quick and easy:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Install the extension"})," - Visit the ",l.jsx("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Chrome Web Store"}),' and click "Add to Chrome"']}),l.jsxs("li",{children:[l.jsx("strong",{children:"Pin it"})," - Click the puzzle icon in Chrome and pin RORA for easy access"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Open any audio site"})," - Go to your favorite music or video streaming site"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Click the RORA icon"}),' and press "Start the Experience"']}),l.jsxs("li",{children:[l.jsx("strong",{children:"Apply filters"})," - Toggle and adjust filters to transform your audio"]})]}),l.jsx("div",{className:"bg-primary/10 p-4 rounded-lg border border-primary/20 mt-4",children:l.jsxs("p",{className:"font-medium text-foreground",children:["Want a visual walkthrough? Check out our ",l.jsx("a",{href:"/guide",className:"text-primary hover:underline",children:"Getting Started video tutorial"})," for a step-by-step guide."]})})]})]}),l.jsxs(Yn,{value:"q1",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"How do I start using RORA on my favorite music/video site?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsx("p",{children:"RORA works on any website that plays audio. Here's how to start:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Open a tab with audio"})," - Go to your favorite music or video streaming site"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Click the RORA extension icon"})," in your browser toolbar (top-right corner)"]}),l.jsxs("li",{children:[l.jsx("strong",{children:'Click "Start the Experience"'})," - The big purple button"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Wait 2-3 seconds"}),` - You'll see "Processing" status when it's working`]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Apply filters"})," - Use the toggles and sliders to transform your audio"]})]}),l.jsx("p",{className:"text-white font-medium",children:"Pro Tip: Make sure the audio is already playing or has played once before starting RORA. This helps Chrome grant audio permissions."})]})]}),l.jsxs(Yn,{value:"q2",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"Why isn't RORA working on my website?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsx("p",{children:"RORA works on 99% of websites, but there are a few scenarios where it won't work:"}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"Common Issues:"}),l.jsxs("ul",{className:"space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"DRM-Protected Content"})," - Some streaming services use protected streams that browsers block from extensions"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"System Audio"})," - RORA only processes audio from websites, not system sounds or desktop apps"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Embedded Audio without Permission"})," - Some sites block extensions from accessing their audio"]})]}),l.jsx("h4",{className:"font-semibold text-foreground mt-4",children:"Compatible Sites:"}),l.jsxs("ul",{className:"space-y-1 ml-4",children:[l.jsx("li",{children:"Most music streaming sites (web players)"}),l.jsx("li",{children:"Video streaming platforms"}),l.jsx("li",{children:"Podcast sites and players"}),l.jsx("li",{children:"Any site using standard HTML5 audio"})]}),l.jsx("h4",{className:"font-semibold text-foreground mt-4",children:"Troubleshooting:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Refresh the page"}),l.jsx("li",{children:"Make sure audio has played at least once"}),l.jsx("li",{children:'Click "Start the Experience" AFTER audio starts playing'}),l.jsx("li",{children:"Check that the extension icon is colorful (not grayed out)"})]})]})]})]}),l.jsxs(Yn,{value:"q3",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"Can I use RORA on multiple tabs at the same time?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsxs("p",{children:[l.jsx("strong",{children:"No, RORA can only process one tab at a time."})," This is by design to:"]}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:"Prevent audio conflicts"}),l.jsx("li",{children:"Optimize performance"}),l.jsx("li",{children:"Avoid confusing which tab has active effects"})]}),l.jsxs("div",{className:"bg-muted/50 p-4 rounded-lg mt-4",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"What Happens:"}),l.jsx("p",{className:"mb-3",children:"If you try to start RORA on a second tab while it's already active somewhere else, you'll see a warning:"}),l.jsx("div",{className:"bg-background p-3 rounded border",children:l.jsxs("p",{className:"font-mono text-sm",children:['"RORA Already Active"',l.jsx("br",{}),"Tab: [Name of the active tab]"]})})]}),l.jsxs("div",{className:"mt-4",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Your Options:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{children:'"Go to Tab"'})," - Switch to the tab where RORA is active"]}),l.jsxs("li",{children:[l.jsx("strong",{children:'"Start Here"'})," - Stop RORA on the other tab and start it here instead"]})]})]})]})]}),l.jsxs(Yn,{value:"q4",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"How do I know if RORA is actually working?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsx("p",{children:"There are several visual indicators that RORA is processing your audio:"}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"1. Status Text"}),l.jsxs("ul",{className:"space-y-1 ml-4 mt-2",children:[l.jsx("li",{children:'"Processing" = RORA is actively enhancing your audio'}),l.jsx("li",{children:'"Ready" = Extension is open but not processing'}),l.jsx("li",{children:'"Starting..." = Initializing audio processing'})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"2. Header Button Changes"}),l.jsxs("p",{className:"ml-4 mt-2",children:['From "Start the Experience" to two buttons: ',l.jsx("strong",{children:"Pause"})," and ",l.jsx("strong",{children:"Share"})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"3. Media Controls Appear"}),l.jsx("p",{className:"ml-4 mt-2",children:"Shows playback controls and current song title"})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"4. Visualizer (if enabled)"}),l.jsx("p",{className:"ml-4 mt-2",children:"Aurora visualization moves with your audio"})]}),l.jsxs("div",{className:"bg-primary/10 p-4 rounded-lg border border-primary/20",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Qu
6066ick Test:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-1",children:[l.jsx("li",{children:"Start RORA on a song"}),l.jsx("li",{children:'Enable "Bass Boost" filter'}),l.jsx("li",{children:"Set intensity to 100%"}),l.jsx("li",{children:"You should immediately hear deeper, punchier bass"}),l.jsx("li",{children:"Toggle the filter off - bass should return to normal"})]})]})]})]})]})]})]})}),l.jsx(Tt,{blur:!0,duration:600,children:l.jsxs("div",{id:"filters",className:"scroll-mt-20",children:[l.jsx("h2",{className:"text-3xl font-bold mb-6 text-foreground",children:"Filters & Audio Processing"}),l.jsxs(Bh,{type:"single",collapsible:!0,className:"space-y-4",children:[l.jsxs(Yn,{value:"q5",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"What do each of the audio filters do?"})}),l.jsxs(Kn,{className:"text-muted-foreground",children:[l.jsx("p",{className:"mb-4",children:"RORA includes 10 audio filters:"}),l.jsx("div",{className:"space-y-4",children:[{icon:"/icons/ionicons/volume-mute-outline.svg",name:"Smooth Pro",desc:"Removes background noise, hum, and harsh frequencies",range:"0-150%",best:"Podcasts, voice recordings, low-quality audio"},{icon:"/icons/ionicons/musical-notes-outline.svg",name:"Pitch Shift",desc:"Changes pitch without affecting speed",range:"-12 to +12 semitones",best:"Making songs higher or lower, karaoke"},{icon:"/icons/ionicons/musical-notes-outline.svg",name:"Tempo",desc:"Changes speed without affecting pitch",range:"50% to 100%",best:"Making songs faster or slower, workout music"},{icon:"/icons/ionicons/sparkles-outline.svg",name:"Airy",desc:"Adds sparkle and brilliance to high frequencies",range:"0-100%",best:"Dull recordings, making audio sound more 'open'"},{icon:"/icons/ionicons/musical-notes-outline.svg",name:"Reverb",desc:"Adds spatial depth, simulates room acoustics",range:"0-100% wet mix",best:"Creating atmosphere, live concert feel"},{icon:"/icons/ionicons/musical-notes-outline.svg",name:"Echo",desc:"Creates repeating delay effects",range:"0-100% feedback",best:"Atmospheric effects, spacey sounds"},{icon:"/icons/ionicons/volume-mute-outline.svg",name:"Muffler",desc:"Makes audio sound muffled, like through a wall",range:"0-100%",best:"Creative effects, simulating distance"},{icon:"/icons/ionicons/musical-notes-outline.svg",name:"Bass Boost",desc:"Increases low-frequency power",range:"0-100%",best:"Electronic music, hip-hop, adding punch"},{icon:"/icons/ionicons/volume-mute-outline.svg",name:"Bass Cut",desc:"Reduces low frequencies",range:"0-100%",best:"Voice clarity, reducing boomy audio"},{icon:"/icons/ionicons/musical-notes-outline.svg",name:"Spatial Audio",desc:"Creates 3D panning effects (REQUIRES HEADPHONES)",range:"Multiple patterns",best:"Immersive listening, '8D audio' effect"},{icon:"/icons/ionicons/musical-notes-outline.svg",name:"Visual EQ",desc:"10-band equalizer with precise frequency control",range:"32Hz - 16kHz",best:"Audiophiles, fine-tuning"}].map((a,c)=>l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[l.jsx("img",{src:a.icon,alt:a.name,className:"w-5 h-5"}),l.jsx("h4",{className:"font-semibold text-foreground",children:a.name})]}),l.jsxs("p",{className:"mb-2",children:[l.jsx("strong",{children:"What it does:"})," ",a.desc]}),l.jsxs("p",{className:"mb-2",children:[l.jsx("strong",{children:"Range:"})," ",a.range]}),l.jsxs("p",{className:"text-white",children:[l.jsx("strong",{children:"Best for:"})," ",a.best]})]},c))})]})]}),l.jsxs(Yn,{value:"q6",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"Can I use multiple filters at the same time?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsx("p",{className:"text-lg font-semibold text-foreground",children:"Yes! You can combine as many filters as you want."}),l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-3",children:"Popular Combinations:"}),l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{className:"border-l-4 border-primary pl-4",children:[l.jsx("p",{className:"font-semibold text-foreground",children:'"Concert Hall"'}),l.jsx("p",{className:"text-sm",children:"Reverb: 50%, Echo: 20%, Airy: 40%"})]}),l.jsxs("div",{className:"border-l-4 border-secondary pl-4",children:[l.jsx("p",{className:"font-semibold text-foreground",children:'"L
6066ofi Vibes"'}),l.jsx("p",{className:"text-sm",children:"Smooth Pro: 70%, Bass Boost: 50%, Reverb: 30%, Tempo: 85%"})]}),l.jsxs("div",{className:"border-l-4 border-accent pl-4",children:[l.jsx("p",{className:"font-semibold text-foreground",children:'"Voice Clarity"'}),l.jsx("p",{className:"text-sm",children:"Smooth Pro: 60%, Bass Cut: 40%, Airy: 30%"})]}),l.jsxs("div",{className:"border-l-4 border-primary pl-4",children:[l.jsx("p",{className:"font-semibold text-foreground",children:'"8D Audio"'}),l.jsx("p",{className:"text-sm",children:"Spatial Audio: 100% (Ping-Pong), Bass Boost: 40%, Reverb: 20%"})]})]})]}),l.jsx("p",{className:"text-sm italic",children:"Performance Tip: Using 5+ filters simultaneously may cause slight audio lag on older computers."})]})]}),l.jsxs(Yn,{value:"q9",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"My audio sounds distorted or glitchy. How do I fix it?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsxs("div",{className:"bg-destructive/10 border border-destructive/20 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Quick Fix:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-1",children:[l.jsx("li",{children:'Click "Turn Off All" button at bottom of filters section'}),l.jsx("li",{children:"Re-enable filters one at a time"}),l.jsx("li",{children:"Keep intensities below 70% when using multiple filters"})]})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"Common Causes:"}),l.jsxs("ul",{className:"space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Too Much Bass Boost:"})," Above 80% can cause clipping. Reduce to 60% or lower."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Multiple Loudness Filters:"})," Bass Boost + Airy + Reverb = too loud. Make sure Master Switch is ON."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Pitch Shift Artifacts:"})," Extreme shifting (±10 semitones) causes warbling. Keep between ±6 semitones."]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Too Many Filters:"})," 7+ filters can overload processing. Use 3-5 filters max."]})]})]}),l.jsxs("p",{className:"text-sm",children:["Still having issues? Contact ",l.jsx("a",{href:"mailto:[email protected]",className:"text-white hover:underline",children:"[email protected]"})]})]})]}),l.jsxs(Yn,{value:"q10",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"Can I save my favorite filter combinations?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsx("p",{className:"text-lg font-semibold text-foreground",children:"Yes! RORA has two ways to save presets:"}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Method 1: Quick Vibes (Built-in)"}),l.jsx("p",{children:"Pre-made filter combinations: Mood, Concert, Podcast, Airy"})]}),l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Method 2: Custom Aura Slots"}),l.jsx("p",{className:"mb-3",children:"Save your own combinations in 3 slots (I, II, III):"}),l.jsxs("div",{className:"space-y-2 ml-4",children:[l.jsxs("p",{children:[l.jsx("strong",{children:"To Save:"})," Click and HOLD a slot for 2 seconds"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"To Load:"})," Click any saved slot"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"To Overwrite:"})," Click and hold again"]})]})]}),l.jsxs("div",{className:"bg-primary/10 p-4 rounded-lg border border-primary/20",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Method 3: Share & Import"}),l.jsxs("p",{children:["Click ",l.jsx("strong",{children:'"Share"'})," button to generate a URL. Send to friends, they click and the preset loads automatically!"]})]})]})]})]})]})]})}),l.jsx(Tt,{blur:!0,duration:600,children:l.jsxs("div",{id:"spatial",className:"scroll-mt-20",children:[l.jsx("h2",{className:"text-3xl font-bold mb-6 text-foreground",children:"Spatial Audio & Visualizer"}),l.jsxs(Bh,{type:"single",collapsible:!0,className:"space-y-4",children:[l.jsxs(Yn,{value:"q7",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"Why can't I hear any difference when I turn on Spatial Audio?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsx("div",{className:"bg-destructive/10 border border-destructive p-4 rounded-lg",children:l.jsx("p",{className:"font-semibold text-foreground",children:"Spatial Audio works best with headphones, earbuds, or stereo speakers."})}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"Why Headphones Are Required:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[l.jsx("li",{children:'Spatial audio creates "binaural" effect by panning between left/right channels'}),l.jsx("li",{children:"With speakers, both ears hear both speakers = cancels the effect"}),l.jsx("li",{children:"Headphones isolate each ear = panning is obvious"})]})]})]})]}),l.jsxs(Yn,{value:"q11",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"How do the different Spatial Audio patterns work?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsx("div",{className:"space-y-3",children:[{name:"Circular",desc:"Sound rotates in a full circle around your head. Smooth, continuous motion.",best:"Ambient music, meditation"},{name:"Ping-Pong",desc:"Sound bounces LEFT â RIGHT â LEFT. Sharp, obvious panning. Very dramatic.",best:"EDM, '8D audio' style"},{name:"Figure-8",desc:"Complex 3D movement in a figure-8 pattern.",best:"Experimental listening"},{name:"Random",desc:"Unpredictable panning movements. Different every time.",best:"Long sessions, avoiding pattern fatigue"}].map((a,c)=>l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-1",children:a.name}),l.jsx("p",{className:"mb-2",children:a.desc}),l.jsxs("p",{className:"text-white text-sm",children:[l.jsx("strong",{children:"Best for:"})," ",a.best]})]},c))}),l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Pro Tips:"}),l.jsxs("ul",{className:"space-y-1 text-sm",children:[l.jsx("li",{children:"Start with Ping-Pong at 100% speed to hear effect clearly"}),l.jsx("li",{children:"Use Circular at 30-50 speed for subtle immersion"}),l.jsx("li",{children:"Combine with Reverb (20-30%) for enhanced depth"}),l.jsx("li",{children:"Lower intensities (30-60%) are less fatiguing"})]})]})]})]}),l.jsxs(Yn,{value:"q12",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"What is the Aurora Visualizer and how do I use it?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsx("p",{children:"The Aurora Visualizer is RORA's 3D audio visualization system showing your music as animated particles."}),l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"How to Enable:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-1",children:[l.jsx("li",{children:"Start RORA on any audio source"}),l.jsx("li",{children:'Look for the "Aurora" button at top of extension'}),l.jsx("li",{children:"Click to toggle between: Mini / Window / Off"})]})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"Visualizer Modes:"}),l.jsxs("ul",{className:"space-y-2 ml-4",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Standard:"})," Central sun with orbiting particles reactive to bass/mids/treble"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Spatial:"})," Shows 3D position when Spatial Audio enabled"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Visual EQ:"})," 10 frequency bands as vertical bars"]})]})]}),l.jsx("p",{className:"text-sm italic",children:"Controls: Mouse drag to rotate, scroll to zoom, double-click to reset"})]})]}),l.jsxs(Yn,{value:"q13",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"The visualizer is laggy or not animating. How do I fix it?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsxs("div",{className:"bg-primary/10 p-4 rounded-lg border border-primary/20",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Qu
6066ick Fixes:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-2",children:[l.jsx("li",{children:"Use Window mode instead of Mini (better performance)"}),l.jsx("li",{children:"Close other Chrome tabs (especially video tabs)"}),l.jsx("li",{children:"Disable Visual EQ if you don't need it"}),l.jsx("li",{children:"Check chrome://gpu to ensure WebGL is hardware accelerated"})]})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"Common Issues:"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{children:`"Visualizer doesn't move"`})," â Stop RORA, reload extension, start again"]}),l.jsxs("li",{children:[l.jsx("strong",{children:'"Choppy/stuttering"'})," â Use Window mode, close GPU-heavy tabs"]}),l.jsxs("li",{children:[l.jsx("strong",{children:'"Frozen"'})," â Close and reopen visualizer"]}),l.jsxs("li",{children:[l.jsx("strong",{children:'"Black screen"'})," â Check chrome://gpu, update Chrome"]})]})]}),l.jsx("p",{className:"text-sm",children:"System Requirements: Chrome 90+, WebGL 2.0 support, 4GB RAM minimum"})]})]})]})]})}),l.jsx(Tt,{blur:!0,duration:600,children:l.jsxs("div",{id:"subscriptions",className:"scroll-mt-20",children:[l.jsx("h2",{className:"text-3xl font-bold mb-6 text-foreground",children:"Plans & Account"}),l.jsxs(Bh,{type:"single",collapsible:!0,className:"space-y-4",children:[l.jsxs(Yn,{value:"q14",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"What's the difference between RORA Core and Max?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxs("div",{className:"border rounded-lg p-4 bg-muted/30",children:[l.jsx("h4",{className:"font-bold text-lg text-foreground mb-2",children:"RORA Core"}),l.jsx("p",{className:"text-2xl font-bold text-white mb-3",children:"Free"}),l.jsxs("ul",{className:"space-y-1 text-sm",children:[l.jsx("li",{children:"Share"}),l.jsx("li",{children:"Reverb"}),l.jsx("li",{children:"Master Volume"}),l.jsx("li",{children:"Muffler"}),l.jsx("li",{children:"Visual EQ"}),l.jsx("li",{children:"Custom Presets"})]})]}),l.jsxs("div",{className:"border-2 border-accent rounded-lg p-4 bg-accent/5 relative",children:[l.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-accent text-primary-foreground px-3 py-1 rounded-full text-xs font-bold",children:"LIFETIME"}),l.jsx("h4",{className:"font-bold text-lg text-foreground mb-2",children:"RORA Max"}),l.jsx("p",{className:"text-2xl font-bold text-white mb-3",children:"10 CHF"}),l.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"One-time purchase. Yours forever."}),l.jsxs("ul",{className:"space-y-1 text-sm",children:[l.jsx("li",{children:"All Core features"}),l.jsx("li",{children:"Smooth Pro, Bass Boost, Bass Reduce"}),l.jsx("li",{children:"Echo, Pitch Shift, Tempo"}),l.jsx("li",{children:"Spatial Audio, Visualizers"}),l.jsx("li",{children:"Light Mode, L/R Panning, Mono/Stereo"}),l.jsx("li",{children:"Priority support"})]})]})]}),l.jsx(Ge,{onClick:()=>t("/pricing"),className:"w-full mt-4",children:"View Full Pricing Details"})]})]}),l.jsxs(Yn,{value:"q15",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"How do I manage my account or view my purchase?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"To Manage Your Account:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-2",children:[l.jsx("li",{children:"Click profile icon in RORA popup"}),l.jsx("li",{children:'Click "Account Settings"'}),l.jsx("li",{children:'Click "Manage Billing"'}),l.jsx("li",{children:"You'll be redirected to Stripe Customer Portal"})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"In Stripe Portal You Can:"}),l.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-4",children:[l.jsx("li",{children:"Update payment method"}),l.jsx("li",{children:"View and download invoices"}),l.jsx("li",{children:"View purchase history"})]})]})]})]}),l.jsxs(Yn,{value:"q16",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"I purchased RORA Max but my features aren't unlocked. Why?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsxs("div",{className:"bg-primary/10 p-4 rounded-lg border border-primary/20",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Qu
6066ick Fix:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-1",children:[l.jsx("li",{children:"Click profile icon in RORA"}),l.jsx("li",{children:'Click "Refresh Subscription"'}),l.jsx("li",{children:"Wait 5 seconds"}),l.jsx("li",{children:"Restart RORA"})]})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"Common Causes:"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"1. Purchase Not Synced"}),' â Use "Refresh Subscription"']}),l.jsxs("li",{children:[l.jsx("strong",{children:"2. Payment Issue"})," â Check Stripe portal for payment status"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"3. Cache Issue"})," â Reinstall extension"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"4. Browser Not Logged In"})," â Log in via profile icon"]})]})]}),l.jsxs("p",{className:"text-sm",children:["Still seeing limits? Email ",l.jsx("a",{href:"mailto:[email protected]",className:"text-white hover:underline",children:"[email protected]"})," with your account email and screenshot"]})]})]})]})]})}),l.jsx(Tt,{blur:!0,duration:600,children:l.jsxs("div",{id:"sharing",className:"scroll-mt-20",children:[l.jsx("h2",{className:"text-3xl font-bold mb-6 text-foreground",children:"Sharing & Presets"}),l.jsxs(Bh,{type:"single",collapsible:!0,className:"space-y-4",children:[l.jsxs(Yn,{value:"q17",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"How do I share my filter settings with a friend?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Step 1: Set Up Your Filters"}),l.jsx("p",{children:"Configure all filters exactly how you want them while RORA is processing audio."})]}),l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Step 2: Generate Share Link"}),l.jsx("p",{children:'Click the "Share" button (appears when RORA is active). A modal shows your configuration and shareable URL.'})]}),l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Step 3: Copy or Share"}),l.jsxs("ul",{className:"space-y-1 ml-4",children:[l.jsx("li",{children:"Copy Link - Click to copy URL"}),l.jsx("li",{children:"Share to Twitter/X"}),l.jsx("li",{children:"Share via Email"}),l.jsx("li",{children:"Download as Image"})]})]}),l.jsxs("div",{className:"bg-primary/10 p-4 rounded-lg border border-primary/20",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"What Gets Shared:"}),l.jsx("p",{className:"mb-2",children:"Included: All filter settings, Spatial Audio, Visual EQ, current song URL (optional)"}),l.jsx("p",{children:"Not included: Your account info, actual audio"})]}),l.jsx("p",{className:"text-sm",children:"Share links never expire and work on any device."})]})]}),l.jsxs(Yn,{value:"q18",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"Someone shared a RORA preset with me. How do I use it?"})}),l.jsx(Kn,{className:"text-muted-foreground space-y-4",children:l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"If You Have RORA Installed:"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-2",children:[l.jsx("li",{children:"Click the share link"}),l.jsx("li",{children:'See "Loading your custom audio preset..."'}),l.jsx("li",{children:'After 1-2 seconds, redirected to media (if included) or see "Preset loaded!"'}),l.jsx("li",{children:'Open RORA â Click "Start the Experience"'}),l.jsx("li",{children:"Filters are already applied!"})]})]}),l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"If You DON'T Have RORA:"}),l.jsx("p",{className:"mb-2",children:"You'll see a landing page showing:"}),l.jsxs("ul",{className:"space-y-1 ml-4",children:[l.jsx("li",{children:"What filters are in the preset"}),l.jsx("li",{children:"Their intensity levels"}),l.jsx("li",{children:'"Get RORA Extension" button'}),l.jsx("li",{children:"Link to original media (if included)"})]})]}),l.jsxs("div",{className:"bg-primary/10 p-4 rounded-lg border border-primary/20",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Saving a Shared Preset:"}),l.jsx("p",{children:"After loading, click and hold one of your Custom Aura slots (I, II, III) for 2 seconds to save permanently!"})]})]})})]})]})]})}),l.jsx(Tt,{blur:!0,duration:600,children:l.jsxs("div",{id:"troubleshooting",className:"scroll-mt-20",children:[l.jsx("h2",{className:"text-3xl font-bold mb-6 text-foreground",children:"Technical Issues"}),l.jsxs(Bh,{type:"single",collapsible:!0,className:"space-y-4",children:[l.jsxs(Yn,{value:"q19",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"RORA was working fine, but now it won't start. What do I do?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsxs("div",{className:"bg-primary/10 p-4 rounded-lg border border-primary/20",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Level 1: Quick Fixes (Try First)"}),l.jsxs("ol",{className:"list-decimal list-inside space-y-2",children:[l.jsx("li",{children:"Refresh the page (F5 or Ctrl+R)"}),l.jsx("li",{children:"Reload extension (chrome://extensions â Reload)"}
6066),l.jsx("li",{children:"Restart Chrome (close ALL windows)"})]})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"Level 2: Deeper Fixes"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"4. Check Permissions"}),' â chrome://extensions â Details â "On all sites"']}),l.jsxs("li",{children:[l.jsx("strong",{children:"5. Clear Cache"})," â Right-click icon â Inspect â Application â Clear site data"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"6. Update Chrome"})," â chrome://settings/help"]})]})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h4",{className:"font-semibold text-foreground",children:"Level 3: Advanced"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsxs("li",{children:[l.jsx("strong",{children:"7. Check Console"})," â Right-click popup â Inspect â Console (look for RED errors)"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"8. Test Different Site"})," â Try YouTube, then Spotify"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"9. Disable Conflicting Extensions"})," â Other audio processors, volume boosters"]})]})]}),l.jsxs("div",{className:"bg-destructive/10 border border-destructive p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Level 4: Nuclear Option"}),l.jsx("p",{className:"mb-2",children:"Reinstall RORA (chrome://extensions â Remove â Reinstall from Chrome Web Store)"}),l.jsx("p",{className:"text-sm text-destructive",children:"Warning: This resets custom presets. Save them first via Share button!"})]}),l.jsxs("p",{className:"text-sm",children:["Still not working? Email ",l.jsx("a",{href:"mailto:[email protected]",className:"text-white hover:underline",children:"[email protected]"})," with error messages and console screenshots"]})]})]}),l.jsxs(Yn,{value:"q20",className:"border rounded-3xl px-6 glass",children:[l.jsx(Xn,{className:"text-left hover:no-underline",children:l.jsx("span",{className:"font-semibold",children:"Can I use RORA offline? Does it work without an internet connection?"})}),l.jsxs(Kn,{className:"text-muted-foreground space-y-4",children:[l.jsx("p",{className:"text-lg font-semibold text-foreground",children:"Short Answer: RORA works offline for audio processing, but some features require internet."}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxs("div",{className:"bg-green-500/10 border border-green-500/20 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Works Offline:"}),l.jsxs("ul",{className:"space-y-1 text-sm",children:[l.jsx("li",{children:"All audio filters"}),l.jsx("li",{children:"Visual EQ"}),l.jsx("li",{children:"Aurora Visualizer"}),l.jsx("li",{children:"Saved presets"}),l.jsx("li",{children:"Local file processing"})]})]}),l.jsxs("div",{className:"bg-destructive/10 border border-destructive/20 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Requires Internet:"}),l.jsxs("ul",{className:"space-y-1 text-sm",children:[l.jsx("li",{children:"Account login"}),l.jsx("li",{children:"Subscription verification"}),l.jsx("li",{children:"Sharing presets"}),l.jsx("li",{children:"Downloading shared presets"}),l.jsx("li",{children:"Syncing across devices"})]})]})]}),l.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Subscription Verification:"}),l.jsx("p",{className:"text-sm",children:"RORA checks subscription every 24 hours. If offline for >24 hours:"}),l.jsxs("ul",{className:"space-y-1 text-sm ml-4 mt-2",children:[l.jsx("li",{children:"Core (Free): No impact"}),l.jsx("li",{children:"Plus/Max: Features remain unlocked for up to 7 days"}),l.jsx("li",{children:"After 7 days: Falls back to Core until reconnected"})]})]}),l.jsxs("div",{className:"bg-primary/10 p-4 rounded-lg border border-primary/20",children:[l.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Privacy Benefit:"}),l.jsx("p",{className:"text-sm",children:"Audio processing is 100% local (always). No audio data ever sent to servers. Works in air-gapped environments!"})]})]})]})]})]})}),l.jsx(Tt,{blur:!0,duration:600,children:l.jsxs("div",{id:"contact",className:"scroll-mt-20 border rounded-3xl px-6 glass p-8",children:[l.jsx("h2",{className:"text-3xl font-bold mb-6 text-foreground",children:"Contact Support"}),l.jsx("p",{className:"text-muted-foreground mb-6",children:"Can't find what you're looking for? Send us a message and we'll respond within 24-48 hours."}),l.jsxs("form",{onSubmit:i,className:"space-y-6",children:[l.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(Pr,{htmlFor:"name",children:"Name *"}),l.jsx(Ms,{id:"name",required:!0,value:e.name,onChange:a=>n({...e,name:a.target.value}),placeholder:"Your name",className:"rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)]"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Pr,{htmlFor:"email",children:"Email *"}),l.jsx(Ms,{id:"email",type:"email",required:!0,value:e.email,onChange:a=>n({...e,email:a.target.value}),placeholder:"[email protected]",className:"rounded-full bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)]"})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Pr,{htmlFor:"subject",children:"Subject *"}),l.jsxs(NS,{modal:!1,children:[l.jsx(kS,{asChild:!0,children:l.jsxs(Ge,{variant:"outline",className:"w-full justify-between rounded-full bg-background/50 backdrop-blur-sm focus:ring-2 focus:ring-offset-0 focus:ring-transparent focus:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)] text-left h-10",children:[l.jsx("span",{className:e.subject?"text-foreground":"text-muted-foreground",children:e.subject?e.subject==="technical"?"Technical Issue":e.subject==="billing"?"Billing Question":e.subject==="feature"?"Feature Request":e.subject==="bug"?"Bug Report":"General Question":"Select a topic"}),l.jsx(pp,{className:"ml-2 h-4 w-4"})]})}),l.jsx($0,{className:"w-[var(--radix-dropdown-menu-trigger-width)] p-2 bg-white/10 backdrop-blur-xl border-white/20 z-50 dropdown-menu-animate rounded-3xl shadow-2xl shadow-black/20",align:"center",children:l.jsx("div",{className:"space-y-1",children:[{value:"technical",label:"Technical Issue"},{value:"billing",label:"Billing Question"},{value:"feature",label:"Feature Request"},{value:"bug",label:"Bug Report"},{value:"general",label:"General Question"}].map(a=>l.jsx("button",{type:"button",onClick:()=>n({...e,subject:a.value}),className:`w-full text-left px-5 py-3 rounded-full hover:bg-white/20 hover:border-white/30 transition-all group dropdown-item-animate border border-transparent ${e.subject===a.value?"bg-white/20 text-white":"text-foreground
6066/70"}`,children:a.label},a.value))})})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Pr,{htmlFor:"message",children:"Message *"}),l.jsx(Py,{id:"message",required:!0,rows:6,value:e.message,onChange:a=>n({...e,message:a.target.value}),placeholder:"Please describe your issue or question in detail...",className:"resize-none rounded-3xl bg-background/50 backdrop-blur-sm focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-transparent focus-visible:shadow-[0_0_0_2px_rgba(255,77,155,0.5),0_0_0_4px_rgba(153,69,255,0.3)]"})]}),l.jsx(Ge,{type:"submit",className:"w-full md:w-auto rounded-full font-semibold bg-white/20 backdrop-blur-sm border border-white/30 hover:bg-white/30 text-foreground",size:"lg",children:"Send Message"})]}),l.jsx("div",{className:"mt-8 pt-8 border-t",children:l.jsxs("p",{className:"text-sm text-muted-foreground",children:["You can also reach us directly at"," ",l.jsx("a",{href:"mailto:[email protected]",className:"text-white hover:underline",children:"[email protected]"})]})})]})}),l.jsxs("div",{className:"bg-muted/30 p-6 rounded-lg",children:[l.jsx("h3",{className:"text-xl font-bold mb-4 text-foreground",children:"Related Resources"}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-3",children:[l.jsx(Ge,{variant:"outline",className:"glass justify-start",onClick:()=>t("/legal#privacy"),children:"Privacy Policy"}),l.jsx(Ge,{variant:"outline",className:"glass justify-start",onClick:()=>t("/legal#terms"),children:"Terms of Service"}),l.jsx(Ge,{variant:"outline",className:"glass justify-start",onClick:()=>t("/legal#license"),children:"Open Source Licenses"}),l.jsx(Ge,{variant:"outline",className:"glass justify-start",asChild:!0,children:l.jsx("a",{href:"mailto:[email protected]",children:"Email Support"})})]})]})]})}),l.jsx("div",{className:"border-t py-8",children:l.jsxs("div",{className:"container mx-auto px-4 text-center text-sm text-muted-foreground",children:[l.jsx("p",{children:"Last updated: October 18, 2025"}),l.jsxs("p",{className:"mt-2",children:["Need immediate help? Email"," ",l.jsx("a",{href:"mailto:[email protected]",className:"text-white hover:underline",children:"[email protected]"})]})]})})]})]})},NWe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Press Kit | RORA - Media Resources & Press Releases"}),l.jsx("meta",{name:"description",content:"Download RORA brand assets, logos, and access press releases. Media inquiries and press contact information for journalists and content creators."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/press"})]}),l.jsx("div",{className:"min-h-screen pt-32 pb-20 px-6",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Press Kit"}),l.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Resources for journalists, bloggers, and content creators covering RORA."})]}),l.jsxs("section",{className:"mb-16",children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Brand Assets"}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[l.jsxs(Ai,{className:"bg-white/5 border-white/10",children:[l.jsxs(nh,{children:[l.jsxs(rh,{className:"flex items-center gap-2 text-foreground",children:[l.jsx(Nse,{className:"w-5 h-5"}),"Logo Package"]}),l.jsx(ih,{children:"RORA logos in various formats (PNG, SVG) for light and dark backgrounds."})]}),l.jsx(wa,{children:l.jsxs(Ge,{variant:"outline",className:"w-full",disabled:!0,children:[l.jsx(Vr,{className:"w-4 h-4 mr-2"}),"Coming Soon"]})})]}),l.jsxs(Ai,{className:"bg-white/5 border-white/10",children:[l.jsxs(nh,{children:[l.jsxs(rh,{className:"flex items-center gap-2 text-foreground",children:[l.jsx(Pse,{className:"w-5 h-5"}),"Brand Guidelines"]}),l.jsx(ih,{children:"Usage guidelines, color palette, typography, and spacing rules."})]}),l.jsx(wa,{children:l.jsxs(Ge,{variant:"outline",className:"w-full",disabled:!0,children:[l.jsx(Vr,{className:"w-4 h-4 mr-2"}),"Coming Soon"]})})]})]})]}),l.jsxs("section",{className:"mb-16",children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Press Releases"}),l.jsx(Ai,{className:"bg-white/5 border-white/10",children:l.jsx(wa,{className:"py-12 text-center",children:l.jsx("p",{className:"text-muted-foreground",children:"No press releases yet. Check back soon for announcements."})})})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Media Contact"}),l.jsx(Ai,{className:"bg-white/5 border-white/10",children:l.jsx(wa,{className:"py-8",children:l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"p-3 rounded-full bg-white/10",children:l.jsx(sS,{className:"w-6 h-6 text-foreground"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-foreground font-medium",children:"Media & Press Inquiries"}),l.jsx("a",{href:"mailto:[email protected]",className:"text-muted-foreground hover:text-foreground transition-colors",children:"[email protected]"})]})]})})})]})]})})]}),kWe=()=>{const t=[{name:"X",description:"Follow us for updates, tips, and announcements.",url:"https://x.com/RORAAudio",icon:l.jsx("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"
6066currentColor",children:l.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),color:"bg-white/10 hover:bg-white/20"},{name:"LinkedIn",description:"Connect with us for company news and updates.",url:"https://www.linkedin.com/company/rora-audio/",icon:l.jsx("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),color:"bg-[#0A66C2]/20 hover:bg-[#0A66C2]/30"},{name:"YouTube",description:"Tutorials, demos, and feature showcases.",url:"https://youtube.com/@getRORA",icon:l.jsx("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})}),color:"bg-[#FF0000]/20 hover:bg-[#FF0000]/30"}];return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Community | RORA - Join the Audio Community"}),l.jsx("meta",{name:"description",content:"Join the RORA community on Discord, Twitter, Instagram, and YouTube. Connect with other users, share presets, and stay updated on new features."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/community"})]}),l.jsx("div",{className:"min-h-screen pt-32 pb-20 px-6",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Community"}),l.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Connect with other RORA users, share your audio presets, and stay updated on the latest features."})]}),l.jsxs("section",{className:"mb-16",children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Connect With Us"}),l.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:t.map(e=>l.jsxs(Ai,{className:"bg-white/5 border-white/10",children:[l.jsxs(nh,{children:[l.jsxs(rh,{className:"flex items-center gap-3 text-foreground",children:[l.jsx("div",{className:`p-2 rounded-lg ${e.color} transition-colors`,children:e.icon}),e.name]}),l.jsx(ih,{children:e.description})]}),l.jsx(wa,{children:l.jsx(Ge,{variant:"outline",className:"w-full",asChild:!0,children:l.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:["Follow on ",e.name]})})})]},e.name))})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Community Guidelines"}),l.jsx(Ai,{className:"bg-white/5 border-white/10",children:l.jsx(wa,{className:"py-8 space-y-4",children:l.jsxs("div",{className:"space-y-3 text-muted-foreground",children:[l.jsxs("p",{children:[l.jsx("strong",{className:"text-foreground",children:"Be Respectful"})," â Treat everyone with kindness and respect. We're all here to enjoy better audio."]}),l.jsxs("p",{children:[l.jsx("strong",{className:"text-foreground",children:"Share Responsibly"})," â When sharing presets, ensure you have the rights to any associated content."]}),l.jsxs("p",{children:[l.jsx("strong",{className:"text-foreground",children:"Help Others"})," â If you know the answer, share it. We grow stronger together."]}),l.jsxs("p",{children:[l.jsx("strong",{className:"text-foreground",children:"Stay On Topic"}
6066)," â Keep discussions relevant to RORA and audio enhancement."]})]})})})]})]})})]})};function OWe({step:t,currentStep:e}){const n=e===t?"active":e<t?"inactive":"complete";return l.jsxs(ve.div,{animate:n,className:"relative overflow-hidden rounded-full",children:[l.jsx(ve.div,{variants:{active:{scale:1,transition:{delay:0,duration:.2}},complete:{scale:1.25}},transition:{duration:.6,delay:.2,type:"tween",ease:"circOut"},className:"absolute inset-0 rounded-full bg-gradient-to-r from-[#ff4d9b]/30 to-[#9945ff]/30"}),l.jsx(ve.div,{initial:!1,variants:{inactive:{backgroundColor:"rgba(255, 255, 255, 0.05)",borderColor:"rgba(255, 255, 255, 0.2)",color:"rgba(255, 255, 255, 0.4)"},active:{backgroundColor:"rgba(255, 255, 255, 0.1)",borderColor:"#ff4d9b",color:"#ff4d9b"},complete:{backgroundColor:"linear-gradient(to right, #ff4d9b, #9945ff)",borderColor:"#9945ff",color:"#ffffff"}},transition:{duration:.2},className:`relative flex h-10 w-10 items-center justify-center rounded-full border-2 font-semibold overflow-hidden ${n==="complete"?"bg-gradient-to-r from-[#ff4d9b] to-[#9945ff] border-[#9945ff]":""}`,children:l.jsx("div",{className:"flex items-center justify-center",children:n==="complete"?l.jsx(IWe,{className:"h-5 w-5 text-white"}):l.jsx("span",{children:t})})})]})}function IWe(t){return l.jsx("svg",{...t,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:l.jsx(ve.path,{initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.2,type:"tween",ease:"easeOut",duration:.3},strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}function LWe({currentStep:t,totalSteps:e}){const n=e>4?"w-4 sm:w-6 md:w-10 lg:w-14":"w-12 sm:w-16 md:w-24";return l.jsx("div",{className:"flex items-center justify-center gap-1 sm:gap-2 md:gap-3 overflow-x-auto px-4",children:Array.from({length:e},(r,i)=>i+1).map((r,i)=>l.jsxs("div",{className:"flex items-center flex-shrink-0",children:[l.jsx(OWe,{step:r,currentStep:t}),i<e-1&&l.jsx(ve.div,{initial:!1,animate:{backgroundColor:t>r?"rgba(153, 69, 255, 0.6)":"rgba(255, 255, 255, 0.2)"},transition:{duration:.3},className:`h-0.5 ${n} ml-1 sm:ml-2 md:ml-3`})]},r))})}mn.registerPlugin(wt);const gz=({text:t,className:e="",delay:n=100,duration:r=.6,ease:i="power3.out",splitType:s="chars",from:o={opacity:0,y:40},to:a={opacity:1,y:0},threshold:c=.1,rootMargin:u="-100px",textAlign:d="center",onLetterAnimationComplete:h})=>{const f=E.useRef(null),m=E.useRef(!1),v=E.useRef(null),p=JSON.stringify(o??{}),g=JSON.stringify(a??{});return E.useEffect(()=>{if(typeof window>"u"||!f.current||!t)return;const y=f.current;m.current=!1;const b=(j,k)=>{const P=j.textContent||"";let O=[];switch(k){case"chars":O=P.split("");break;case"words":O=P.split(" ");break;case"lines":O=P.split(` 6067`);break;default:O=P.split("")}return j.innerHTML=O.map((L,F)=>k==="chars"?L===" "?" ":`<span class="split-char" data-index="${F}">${L}</span>`:k==="words"?`<span class="split-word" data-index="${F}">${L}</span>${F<O.length-1?" ":""}`:`<span class="split-line" data-index="${F}">${L}</span>`).join(""),j.querySelectorAll(`.split-${k==="chars"?"char":k==="words"?"word":"line"}`)};let x;try{x=b(y,s)}catch(j){console.error("Failed to create SplitText:",j);return}if(!x||x.length===0){console.warn("No targets found for SplitText animation");return}const w=Array.from(x);w.forEach(j=>{j.style.willChange="transform, opacity",j.style.display="inline-block"});const _=(1-c)*100,S=/^(-?\d+(?:\.\d+)?)(px|em|rem|%)?$/.exec(u),T=S?parseFloat(S[1]):0,M=S&&S[2]||"px",A=T<0?`-=${Math.abs(T)}${M}`:`+=${T}${M}`,C=`top ${_}%${A}`,R=mn.timeline({scrollTrigger:{trigger:y,start:C,toggleActions:"play none none none",once:!0,onToggle:j=>{v.current=j}},smoothChildTiming:!0,onComplete:()=>{m.current=!0,mn.set(w,{...a,clearProps:"willChange",immediateRender:!0}),h==null||h()}});return R.set(w,{...o,immediateRender:!1,force3D:!0}),R.to(w,{...a,duration:r,ease:i,stagger:n/1e3,force3D:!0}),()=>{R.kill(),v.current&&(v.current.kill(),v.current=null),mn.killTweensOf(w),y&&(y.textContent=t)}},[t,n,r,i,s,p,g,c,u,h]),l.jsx("p",{ref:f,className:`split-parent ${e}`,style:{textAlign:d,overflow:"hidden",display:"inline-block",whiteSpace:"normal",wordWrap:"break-word"},children:t})},mA=[{id:2,title:"Install the Extension",description:"Add RORA to Chrome from the Web Store with one click.",showDownloadButton:!0,startTime:0,endTime:5.1},{id:3,title:"Pin RORA to Chrome",description:"Pin the extension to your toolbar for easy access.",startTime:5.6,endTime:9.5},{id:4,title:"Sign In to Your Account",description:"Create your free account or sign in to unlock all features.",showAuthButtons:!0,startTime:9.8,endTime:19.2},{id:5,title:"Start RORA",description:"Open any audio or video source from any site, then click the RORA icon and press 'Start the Experience'.",startTime:19.8,endTime:22.6}
6067,{id:6,title:"Apply Filters",description:"Choose from 10+ audio filters to transform your sound.",startTime:23.1,endTime:31.3},{id:7,title:"Create Custom Presets",description:"Save your favorite filter combinations for quick access.",startTime:31.7,endTime:39.6}],pA=8,DWe=()=>{const[t,e]=E.useState(1),[n,r]=E.useState(0),[i,s]=E.useState(!0),[o,a]=E.useState(!1),[c,u]=E.useState(null),[d,h]=E.useState(!0),f=E.useRef(null),m=mA.find(A=>A.id===t),v=t>=2&&t<=7,p=t===1,g=t===8;E.useEffect(()=>{let A=!1;return(async()=>{try{const R=await fetch("/video/rora_guide.mp4");if(A)return;const j=await R.blob();if(A)return;const k=URL.createObjectURL(j);u(k),h(!1)}catch(R){console.error("Failed to load video as blob:",R),u("/video/rora_guide.mp4"),h(!1)}})(),()=>{A=!0,c&&c.startsWith("blob:")&&URL.revokeObjectURL(c)}},[]);const y=E.useRef(!1),b=E.useRef(0),x=E.useRef(i);E.useEffect(()=>{x.current=i},[i]);const w=(A,C)=>{const R=f.current;if(!R)return;const j=++b.current,k=C.play??x.current;y.current=!0;const P=()=>{b.current===j&&(y.current=!1,k&&R.play().catch(()=>{}))};let O=0;const L=()=>{clearTimeout(O),R.removeEventListener("seeked",L),P()};R.addEventListener("seeked",L);try{R.currentTime=A}catch{R.removeEventListener("seeked",L),P();return}O=window.setTimeout(()=>{R.removeEventListener("seeked",L),P()},900)};E.useEffect(()=>{const A=f.current;if(!A)return;const C=mA.find(j=>j.id===t);if(!C)return;const R=()=>{y.current||A.currentTime>=C.endTime&&w(C.startTime,{play:x.current,reason:"loop"})};return A.addEventListener("timeupdate",R),()=>A.removeEventListener("timeupdate",R)},[t]),E.useEffect(()=>{const A=f.current;if(!A)return;const C=mA.find(k=>k.id===t);if(!C)return;const R=()=>{w(C.startTime,{reason:`step-${t}`})};if(A.readyState>=1){R();return}const j=()=>{A.removeEventListener("loadedmetadata",j),A.removeEventListener("canplaythrough",j),R()};return A.addEventListener("loadedmetadata",j),A.addEventListener("canplaythrough",j),()=>{A.removeEventListener("loadedmetadata",j),A.removeEventListener("canplaythrough",j)}},[t]);const _=()=>{t<pA&&(r(1),e(A=>A+1))},S=()=>{t>1&&(r(-1),e(A=>A-1))},T=()=>{const A=f.current;A&&(i?A.pause():A.play().catch(()=>{}),s(!i))},M=()=>{!f.current||!m||(s(!0),w((m==null?void 0:m.startTime)??0,{play:!0,reason:"restart"}))};return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"How to Use RORA | Getting Started Guide"}),l.jsx("meta",{name:"description",content:"Learn how to install and use RORA's audio filters. A simple guide to enhance your browser audio experience."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/guide"})]}),l.jsxs("div",{className:"min-h-screen relative z-10",children:[l.jsx("section",{className:"pt-24 pb-6",children:l.jsx("div",{className:"container mx-auto px-4 text-center",children:l.jsxs(Tt,{duration:700,children:[l.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6 leading-tight",children:l.jsx("span",{className:"text-foreground",children:"Getting Started"})}),l.jsx("div",{className:"soft-separator max-w-lg mx-auto mb-6"})]})})}),l.jsx("section",{className:"pb-6",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsx(Tt,{duration:700,delay:200,children:l.jsx(LWe,{currentStep:t,totalSteps:pA})})})}),l.jsx("section",{className:"py-6",children:l.jsx("div",{className:"container mx-auto px-4 flex justify-center",children:l.jsxs("div",{className:"w-full max-w-[680px]",children:[l.jsx(Ca,{children:p&&l.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.5},className:"min-h-[400px] flex flex-col items-center justify-center",children:[l.jsx(ve.div,{initial:{scale:.8,opacity:0}
6067,animate:{scale:1,opacity:1},transition:{duration:.6,ease:"easeOut"},className:"mb-8",children:l.jsx("img",{src:"/images/rora-logo.png",alt:"RORA",className:"h-[61px] sm:h-[92px] md:h-[122px] w-auto max-w-full mx-auto object-contain"})}),l.jsxs("div",{className:"text-center space-y-6",children:[l.jsx(gz,{text:"Welcome to Your Sound",className:"text-4xl md:text-5xl font-bold text-foreground block",delay:50,duration:.5,ease:"power3.out",splitType:"chars",from:{opacity:0,y:30},to:{opacity:1,y:0},threshold:.1,rootMargin:"0px",textAlign:"center"}),l.jsx(ve.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8,duration:.5},className:"text-lg md:text-xl text-muted-foreground max-w-md mx-auto",children:"This quick guide will get you started in minutes."}),l.jsx(ve.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:1.2,duration:.4},className:"pt-4",children:l.jsxs("button",{onClick:_,className:"stateful-btn inline-flex items-center justify-center h-auto py-4 px-8 text-lg font-semibold text-white rounded-full",children:[l.jsx("span",{className:"whitespace-nowrap",children:"Let's Begin"}),l.jsx(Xc,{className:"w-5 h-5 ml-2 text-white flex-shrink-0"})]})})]})]},"welcome")}),l.jsxs("div",{style:{display:v?"block":"none"},children:[l.jsx("div",{className:"glass rounded-2xl p-6 md:p-8 min-h-[200px] relative overflow-hidden mb-3",children:l.jsx(Ca,{mode:"wait",custom:n,children:l.jsxs(ve.div,{custom:n,initial:{x:n>0?50:-50,opacity:0},animate:{x:0,opacity:1},exit:{x:n<0?50:-50,opacity:0},transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},className:"text-center",children:[l.jsxs("h2",{className:"text-xl md:text-2xl font-bold text-foreground mb-2",children:["Step ",t,": ",(m==null?void 0:m.title)??""]}),l.jsx("p",{className:"text-sm text-muted-foreground max-w-xl mx-auto mb-4",children:m==null?void 0:m.description}
6067),l.jsxs("div",{className:"min-h-[60px] flex items-center justify-center",children:[(m==null?void 0:m.showDownloadButton)&&l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center h-auto py-3 px-6 text-base font-semibold text-white rounded-full",children:[l.jsx(Vr,{className:"w-4 h-4 mr-2 text-white flex-shrink-0"}),l.jsx("span",{className:"whitespace-nowrap",children:"Get RORA Now"})]}),(m==null?void 0:m.showAuthButtons)&&l.jsxs("div",{className:"flex flex-row gap-3 justify-center flex-wrap",children:[l.jsxs(mt,{to:"/auth",className:"inline-flex items-center justify-center h-12 px-6 bg-white hover:bg-gray-100 border border-gray-300 text-gray-700 hover:text-gray-700 font-medium rounded-full shadow-sm transition-all duration-200",children:[l.jsxs("svg",{className:"w-5 h-5 flex-shrink-0 mr-2",viewBox:"0 0 24 24",children:[l.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),l.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),l.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),l.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),l.jsx("span",{className:"whitespace-nowrap text-sm",children:"Google"})]}),l.jsxs(mt,{to:"/auth",className:"inline-flex items-center justify-center h-12 px-6 bg-black hover:bg-neutral-900 border border-black text-white font-medium rounded-full transition-all duration-200",children:[l.jsx("svg",{className:"w-5 h-5 flex-shrink-0 mr-2",viewBox:"0 0 24 24",fill:"white",children:l.jsx("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"})}),l.jsx("span",{className:"whitespace-nowrap text-sm",children:"Apple"})]}),l.jsxs(mt,{to:"/auth",className:"inline-flex items-center justify-center h-12 px-6 bg-white/10 hover:bg-white/20 backdrop-blur-sm border border-white/20 text-white font-medium rounded-full transition-all duration-200",children:[l.jsx(sS,{className:"w-5 h-5 flex-shrink-0 mr-2"}),l.jsx("span",{className:"whitespace-nowrap text-sm",children:"Email"})]})]})]})]},t)})}),l.jsxs("div",{className:"flex justify-center items-center gap-4",children:[l.jsx("button",{onClick:S,disabled:t===1,className:"stateful-btn-gray flex-shrink-0 w-12 h-12 rounded-full flex items-center justify-center disabled:opacity-30 disabled:cursor-not-allowed","aria-label":"Previous step",children:l.jsx(GC,{className:"w-5 h-5 text-white"})}),l.jsxs("div",{className:"flex-1 max-w-[80%] relative rounded-2xl overflow-hidden bg-black/20 backdrop-blur-sm border border-white/10",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[d&&l.jsx("div",{className:"w-full aspect-video flex items-center justify-center bg-black/40",children:l.jsx("div",{className:"text-white/60 text-sm",children:"Loading video..."})}),l.jsx("video",{ref:f,src:c||void 0,className:`w-full ${d?"hidden":""}`,muted:!0,playsInline:!0,preload:"auto"}),l.jsx(ve.div,{className:"absolute bottom-0 left-0 right-0 p-4 bg-gradient-to-t from-black/60 to-transparent",initial:{opacity:0}
6067,animate:{opacity:o?1:0},transition:{duration:.2},children:l.jsxs("div",{className:"flex items-center justify-center gap-3",children:[l.jsx(Ge,{variant:"ghost",size:"icon",onClick:M,className:"h-10 w-10 rounded-full bg-white/10 hover:bg-white/20 backdrop-blur-sm",children:l.jsx(J9,{className:"h-4 w-4"})}),l.jsx(Ge,{variant:"ghost",size:"icon",onClick:T,className:"h-12 w-12 rounded-full bg-white/20 hover:bg-white/30 backdrop-blur-sm",children:i?l.jsx(Bse,{className:"h-5 w-5"}):l.jsx(zse,{className:"h-5 w-5 ml-0.5"})}),l.jsx("div",{className:"h-10 w-10"})]})})]}),l.jsx("button",{onClick:_,disabled:t>=pA,className:"stateful-btn flex-shrink-0 w-12 h-12 rounded-full flex items-center justify-center disabled:opacity-30 disabled:cursor-not-allowed","aria-label":"Next step",children:l.jsx(Xc,{className:"w-5 h-5 text-white"})})]})]}),l.jsx(Ca,{children:g&&l.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},className:"min-h-[400px] flex flex-col items-center justify-center",children:[l.jsx(ve.div,{initial:{scale:.8,opacity:0}
6067,animate:{scale:1,opacity:1},transition:{duration:.6,ease:"easeOut"},className:"w-20 h-20 rounded-full aurora-bg-subtle flex items-center justify-center mb-8",children:l.jsx(ho,{className:"w-10 h-10 text-white"})}),l.jsxs("div",{className:"text-center space-y-6",children:[l.jsx(gz,{text:"You're All Set!",className:"text-4xl md:text-5xl font-bold text-foreground block",delay:50,duration:.5,ease:"power3.out",splitType:"chars",from:{opacity:0,y:30},to:{opacity:1,y:0},threshold:.1,rootMargin:"0px",textAlign:"center"}),l.jsx(ve.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6,duration:.5},className:"text-lg md:text-xl text-muted-foreground max-w-md mx-auto",children:"Continue exploring filters, tweak your presets, and make every song yours."}),l.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1,duration:.4},className:"flex flex-col sm:flex-row gap-4 justify-center pt-4",children:[l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center h-auto py-4 px-8 text-lg font-semibold text-white rounded-full",children:[l.jsx(Vr,{className:"w-5 h-5 mr-2 text-white flex-shrink-0"}),l.jsx("span",{className:"whitespace-nowrap",children:"Get RORA Now"})]}),l.jsx(mt,{to:"/features",className:"stateful-btn inline-flex items-center justify-center h-auto py-4 px-8 text-lg font-semibold text-white rounded-full",children:l.jsx("span",{className:"whitespace-nowrap",children:"Explore Features"})})]})]})]},"outro")}),g&&l.jsx("div",{className:"flex justify-center items-center mt-6",children:l.jsx("button",{onClick:S,className:"stateful-btn-gray w-12 h-12 rounded-full flex items-center justify-center","aria-label":"Previous step",children:l.jsx(GC,{className:"w-5 h-5 text-white"})})})]})})})]})]})},FWe=[{id:"all",label:"All"},{id:"product",label:"Product News"},{id:"features",label:"Features"},{id:"company",label:"Company"},{id:"guides",label:"Guides"}],UWe=[{id:"8",slug:"introducing-conjure-v2",category:"features",title:"Conjure: Describe a Vibe, Hear It Happen",description:"RORA v2.0 brings on-device AI to audio filtering. Tell the extension how you want something to sound, and it builds the preset for you. Private, free, and instant.",imageUrl:"",date:"June 14, 2026",featured:!0},{id:"4",slug:"lifetime-license-and-spring-sale",category:"company",title:"RORA Max Goes Lifetime: Thank You to the Early Supp
6067orters",description:"RORA Max is now a one-time lifetime purchase. No subscription. Spring sale: 20 percent off when you apply code SPRING20 at checkout. A thank you to the early supporters who made this possible.",imageUrl:"",date:"May 18, 2026"},{id:"5",slug:"local-files-recording-sleep-timer",category:"features",title:"Load, Listen, Record: Local Files Meet the Full RORA Filter Chain",description:"Play your own mp3, wav, flac, ogg, m4a, and aac files through every RORA filter. Record processed audio as WAV or MP3 up to 320 kbps. Plus a sleep timer with optional fade-out.",imageUrl:"",date:"May 18, 2026"},{id:"6",slug:"improve-browser-audio-quality",category:"guides",title:"How to Improve Audio Quality in Your Browser: A Practical Guide",description:"A no-nonsense guide to making music streaming, podcasts, films, and study audio sound better in your browser. EQ, bass control, spatial audio, and headphone-aware tuning explained.",imageUrl:"",date:"May 18, 2026"},{id:"7",slug:"bedroom-sound-distant-reverb",category:"guides",title:"The Bedroom Sound: How to Get That Drowned-Out, Distant Vibe in RORA",description:"Three sliders, one mood. Reverb at 70 percent, Muffler at 65 percent, Pitch at minus 3 semitones. The melancholic, late-night TikTok sound that turns any bright pop track into something you remember at 2am.",imageUrl:"",date:"May 18, 2026"},{id:"1",slug:"rora-launches-chrome-web-store",category:"company",title:"RORA Launches on Chrome Web Store: Let Every Song Be Yours",description:"RORA is an audio enhancer for Chrome that lets you shape how music, videos, and podcasts sound using real-time filters and an easy-to-use interface.",imageUrl:"/images/news/launch.png?v=2",date:"January 16, 2026"},{id:"2",slug:"introducing-spatial-audio",category:"features",title:"Spatial Audio: Feel Sound Move Around You",description:"Close your eyes. Put on your headphones. Hear the music orbit around your head. Welcome to Spatial Audio, the immersive 3D sound experience in RORA Max.",imageUrl:"/images/spatial
6067-audio-hero.png?v=2",date:"January 14, 2026"},{id:"3",slug:"visual-eq-deep-dive",category:"product",title:"Visual EQ: Take Control of the Curves",description:"That bass line you love? Make it thunder. The vocal you can't quite hear? Bring it forward. Visual EQ puts professional-grade sound shaping in your hands.",imageUrl:"/images/news/visual-eq.png",date:"January 10, 2026"}],vz={product:"border-[#E2628A]",features:"border-[#6200EE]",company:"border-[#3adec2]",guides:"border-[#FFA94D]"},yz={product:"PRODUCT",features:"FEATURES",company:"COMPANY",guides:"GUIDES"},xz=t=>{const e=t.split(/\s+/).length;return e<20?"2 min read":e<30?"3 min read":"4 min read"};function BWe(){const[t,e]=E.useState("all"),[n,r]=E.useState(""),i=UWe.filter(a=>{const c=t==="all"||a.category===t,u=a.title.toLowerCase().includes(n.toLowerCase())||a.description.toLowerCase().includes(n.toLowerCase());return c&&u}),s=i.find(a=>a.featured)||i[0],o=i.filter(a=>a.id!==(s==null?void 0:s.id));return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"News | RORA - Latest Updates & Announcements"}),l.jsx("meta",{name:"description",content:"Stay updated with the latest RORA news, product announcements, feature releases, and company updates."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/news"})]}),l.jsxs("div",{className:"min-h-screen py-16",children:[l.jsxs("div",{className:"container mx-auto px-4 text-center mb-12",children:[l.jsx(ve.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"text-5xl md:text-7xl tracking-tight mb-8 font-bold",children:"Newsroom"}),l.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"flex flex-wrap items-center justify-center gap-4 mb-8",children:[l.jsx("div",{className:"flex flex-wrap justify-center gap-1 p-1 rounded-full bg-white/5 border border-white/10",children:FWe.map(a=>l.jsxs("button",{onClick:()=>e(a.id),className:"relative px-4 py-2 rounded-full text-sm font-medium transition-colors",children:[t===a.id&&l.jsx(ve.span,{layoutId:"newsCategoryPill",className:"absolute inset-0 rounded-full bg-[#E2628A]/20 border border-[#E2628A]/40",transition:{type:"spring",bounce:.2,duration:.6}}),l.jsx("span",{className:`relative z-10 ${t===a.id?"text-foreground":"text-muted-foreground hover:text-foreground"}`,children:a.label})]},a.id))}),l.jsxs("div",{className:"relative",children:[l.jsx(Hse,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),l.jsx(Ms,{type:"text",placeholder:"Search News",value:n,onChange:a=>r(a.target.value),className:"pl-10 pr-4 py-2 rounded-full bg-white/5 border-white/10 focus:border-[#E2628A]/50 focus:ring-[#E2628A]/20 w-48"})]})]})]}),l.jsx("div",{className:"container mx-auto px-4",children:i.length===0?l.jsx("div",{className:"text-center py-20",children:l.jsx("p",{className:"text-muted-foreground text-lg",children:"No articles found."})}):l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 max-w-5xl mx-auto",children:[s&&l.jsx(ve.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"",children:l.jsxs(mt,{to:`/news/${s.slug}`,className:"group block",children:[l.jsx("div",{className:"aspect-[4/3] overflow-hidden rounded-xl mb-5 bg-black",children:s.videoUrl?l.jsx("video",{src:s.videoUrl,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-contain transition-transform duration-500 group-hover:scale-105"}):s.imageUrl?l.jsx("img",{src:s.imageUrl,alt:s.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}):l.jsx("div",{className:"w-full h-full bg-muted/50"})}),l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[l.jsx("div",{className:`inline-block border-b-2 ${vz[s.category]} pb-1`,children:l.jsx("span",{className:"text-xs font-semibold tracking-wider text-muted-foreground",children:yz[s.category]})}),l.jsx("span",{className:"px-2.5 py-0.5 rounded-full bg-white/10 text-xs text-muted-foreground",children:xz(s.description)})]}),l.jsx("h2",{className:"text-xl md:text-2xl font-semibold mb-3 group-hover:text-[#E2628A] transition-colors leading-tight",children:s.title}),l.jsx("p",{className:"text-muted-foreground mb-4 line-clamp-3",children:s.description}
6067),l.jsx("time",{className:"text-sm text-muted-foreground/70",children:s.date})]})]})}),l.jsx("div",{className:"space-y-8",children:o.map((a,c)=>l.jsx(ve.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3+c*.1},children:l.jsxs(mt,{to:`/news/${a.slug}`,className:"group flex gap-4",children:[l.jsx("div",{className:"w-32 h-24 flex-shrink-0 overflow-hidden rounded-lg bg-black",children:a.videoUrl?l.jsx("video",{src:a.videoUrl,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-contain transition-transform duration-500 group-hover:scale-105"}):a.imageUrl?l.jsx("img",{src:a.imageUrl,alt:a.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}):l.jsx("div",{className:"w-full h-full bg-muted/50"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[l.jsx("div",{className:`inline-block border-b-2 ${vz[a.category]} pb-0.5`,children:l.jsx("span",{className:"text-xs font-semibold tracking-wider text-muted-foreground",children:yz[a.category]})}),l.jsx("span",{className:"px-2 py-0.5 rounded-full bg-white/10 text-[10px] text-muted-foreground",children:xz(a.description)})]}),l.jsx("h3",{className:"font-semibold mb-2 group-hover:text-[#E2628A] transition-colors line-clamp-2 leading-snug",children:a.title}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-2",children:a.description}),l.jsx("time",{className:"text-xs text-muted-foreground/70",children:a.date})]})]})},a.id))})]})}),l.jsx(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.5},className:"container mx-auto px-4 mt-20",children:l.jsxs("div",{className:"text-center py-12 border-t border-white/10",children:[l.jsx("h2",{className:"text-xl font-semibold mb-6",children:"Follow RORA"}),l.jsxs("div",{className:"flex justify-center gap-6",children:[l.jsxs("a",{href:"https://x.com/RORAAudio",target:"_blank",rel:"noopener noreferrer",className:"p-3 rounded-full bg-white/5 hover:bg-white/10 transition-colors",children:[l.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),l.jsx("span",{className:"sr-only",children:"X"})]}),l.jsxs("a",{href:"https://www.linkedin.com/company/rora-audio/",target:"_blank",rel:"noopener noreferrer",className:"p-3 rounded-full bg-white/5 hover:bg-white/10 transition-colors",children:[l.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),l.jsx("span",{className:"sr-only",children:"LinkedIn"})]}),l.jsxs("a",{href:"https://youtube.com/@getRORA",target:"_blank",rel:"noopener noreferrer",className:"p-3 rounded-full bg-white/5 hover:bg-white/10 transition-colors",children:[l.jsx(tH,{className:"w-5 h-5"}),l.jsx("span",{className:"sr-only",children:"YouTube"})]})]})]})})]})]})}const zWe=t=>{const n=t.split(/\s+/).length/200;return`${Math.max(2,Math.min(8,Math.ceil(n)))} min read`},$We={label:"Add RORA to Chrome",href:"https://chromewebstore.google.com/detail/rora-audio/ffceljdacbcfpajkaceodijbiodkokmj"},HWe=({items:t,cta:e=$We})=>{const n=/^https?:\/\//.test(e.href);return l.jsxs("div",{className:"my-10",children:[l.jsxs("div",{className:"border-t border-white/20 pt-8",children:[l.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wider text-white/60 mb-6",children:"Takeaways"}),l.jsx("ul",{className:"space-y-5",children:t.map((r,i)=>l.jsxs("li",{className:"flex items-start gap-3 text-xl text-white/90 leading-relaxed",children:[l.jsx("span",{className:"mt-3 w-2 h-2 rounded-full bg-gradient-to-r from-[#E2628A] to-[#6200EE] flex-shrink-0"}),l.jsx("span",{children:r})]},i))}),n?l.jsx("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center mt-8 px-8 py-3 text-white font-medium rounded-full transition-all",children:e.label}):l.jsx(mt,{to:e.href,className:"stateful-btn inline-flex items-center justify-center mt-8 px-8 py-3 text-white font-medium rounded-full transition-all",children:e.label})]}),l.jsx("div",{className:"border-t border-white/20 mt-8"})]})},VWe=({media:t})=>l.jsxs("figure",{className:"my-10",children:[t.type==="video"?l.jsx("video",{src:t.src,autoPlay:!0,loop:!0,muted:!0,playsInl
6067ine:!0,className:"w-full rounded-xl"}):l.jsx("img",{src:t.src,alt:t.alt||"",className:"w-full rounded-xl"}),t.caption&&l.jsx("figcaption",{className:"mt-3 text-sm text-white/50 text-center italic",children:t.caption})]}),gA={"introducing-conjure-v2":{title:"Conjure: Describe a Vibe, Hear It Happen",description:"RORA v2.0 brings on-device AI to audio filtering. Tell the extension how you want something to sound, and it builds the preset for you. Private, free, and instant.",takeaways:["Conjure is the flagship feature of RORA v2.0: plain-language vibe prompts that assemble real filter presets in seconds.","Everything runs on-device via Chrome's Prompt API. Your prompts never leave your computer, and RORA does not process them in the cloud.","Conjure is free to use. It respects your RORA plan and applies every filter you have access to while skipping locked Max filters."],takeawaysCta:{label:"Explore Conjure",href:"/features/conjure"},ctaSection:{title:"Ready to conjure a vibe?",description:"Update to RORA v2.0 in Chrome, open the popup, and describe how you want it to sound.",label:"Get RORA v2.0",href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj"},content:` 6068Most audio tools ask you to learn sliders. **Conjure asks you to learn feelings.** 6069 6070Launch RORA, type a vibe like *"rainy jazz bar"* or *"dreamy and far away"*, and the extension's built-in AI assembles a matching stack of real-time filters: warmth, space, texture, clarity, or all of the above. Everything runs on your device. Your prompts never leave your computer, and the feature costs nothing to use. 6071 6072## The flagship feature of RORA v2.0 6073 6074Version 2 is not a polish pass. It is a new way to interact with sound. 6075 6076**Conjure** (codename CONJURE) sits at the center of the release: a natural-language layer on top of RORA's real-time filter chain. You describe the mood. Conjure picks the filters, sets the levels, and applies them to whatever you are playing. 6077 6078No preset hunting. No guessing which slider does what. Just words, then sound. 6079 6080[BUTTON|Explore Conjure|/features/conjure] 6081 6082## How it works 6083 60841. Open the RORA popup while audio is playing. 60852. Type a short description, up to 300 characters. *"Warm lo-fi for studying."* *"Front row at a show."* *"Clean this podcast up."* 60863. Conjure runs on **Chrome's built-in on-device AI** via the Prompt API. Inference happens locally on your machine. 60874. Conjure translates your words into a structured preset: reverb, muffler, vinyl, EQ, spatial width, noise cleanup, and more, only what fits the vibe. 60885. The preset applies to the live audio chain. Conjure leaves a short friendly note so you know what changed. You can tweak any slider by hand afterward. 6089 6090Each new prompt starts fresh on the creative filters Conjure controls. You always get a vibe built for that request, not leftovers from the last one. 6091 6092## Private by design 6093 6094This is not a chatbot that phones home. 6095 6096- **On-device inference** through Chrome's Prompt API 6097- **No cloud processing** of your prompts by RORA 6098- **No audio content** sent anywhere; processing stays local, as always 6099 6100The first time you use Conjure, Chrome may download the on-device model once. Chrome stores it as a shared browser component, not inside the RORA extension. After that, prompts resolve in a few seconds. 6101 6102## Free to use, plan-aware 6103 6104Conjure itself is **free**. If your vibe calls for a Max-only filter (Spatial Audio, Smooth Pro, Echo, Bass Boost, and others), Conjure applies everything you have access to and skips what is locked on your tier. 6105 6106It also deliberately does **not** touch master volume, mono/stereo, or balance. Those stay under your control for safety and consistency. 6107 6108## What you can ask for 6109 6110Conjure speaks RORA's language. A few directions that work well: 6111 6112- **Lo-fi and study:** *"Warm lo-fi for studying"* or *"dusty and cozy"* 6113- **Mood and atmosphere:** *"Sad and moody"*, *"dreamy and far away"*, *"underwater"* 6114- **Live feel:** *"Concert vibes"* or *"front row"* 6115- **Vintage texture:** *"Rainy jazz bar"* or *"sounds like an old record"*
6116- **Speech clarity:** *"Clean this podcast up"* 6117- **Slowed edits:** *"Slowed and reverb"* when you explicitly want slower playback on supported pages 6118 6119Rotating suggestions in the extension help you get started. You can be literal, poetic, or casual. Conjure works best when you name a mood, place, or texture. 6120 6121## Works everywhere RORA does 6122 6123Conjure applies to audio playing through RORA: streaming in the browser, podcasts, videos, and **local files** loaded in the player. 6124 6125The Conjure panel appears only when Chrome reports on-device AI is available on your device. If you do not see it, update Chrome and check that on-device AI is enabled for your browser. 6126 6127## What is new in v2 beyond Conjure 6128 6129RORA v2.0 ships as a major feature update: Conjure leads the release, alongside refinements across the filter chain, local file playback, recording, and the dashboard experience you already know. 6130 6131**Unravel**, stem separation that splits a mix into vocals, drums, bass, and other layers, is coming soon. Conjure is what you can use today. 6132 6133## Try it now 6134 6135Update to RORA v2.0 in Chrome, open the popup, and ask Conjure for a vibe. If you already know the mood, you no longer need to know the DSP. 6136 6137[BUTTON|Get RORA v2.0 for Chrome|https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj] 6138 6139**Less knob-twiddling. More feeling.** 6140 `,date:"June 14, 2026",category:"features",categoryLabel:"FEATURES",tags:["Conjure","AI","RORA v2","On-Device AI","Natural Language","Audio Filters","Privacy"]},"lifetime-license-and-spring-sale":{title:"RORA Max Goes Lifetime: Thank You to the Early Supp
6140orters",description:"RORA Max is now a one-time lifetime purchase. No subscription. Spring sale: 20 percent off when you apply code SPRING20 at checkout. A thank you to the early supporters who made this possible.",takeaways:["RORA Max is now a one-time lifetime purchase. Pay once, keep it forever, no subscription.","Spring sale: 20 percent off when you apply code SPRING20 at checkout.","This is only possible because of the early supporters who believed in RORA before it was easy."],takeawaysCta:{label:"Claim Spring Sale",href:"/pricing"},ctaSection:{title:"Ready to go lifetime?",description:"Apply code SPRING20 at checkout for 20 percent off the one-time RORA Max purchase.",label:"Claim Spring Sale",href:"/pricing"},content:` 6141When we launched RORA, the only honest way to keep the lights on was a subscription. Real-time audio processing in a browser is expensive to build and maintain, and a small recurring fee was the way to stay in business while we made the product good. 6142 6143**That is no longer the case.** Thanks to the people who paid for those early subscriptions, who told their friends, who left a review, who emailed us with bug reports and feature requests at midnight, we have built a base steady enough to offer something we have wanted to offer from the start. 6144 6145## RORA Max is now lifetime 6146 6147A single purchase. No renewal. No tier that quietly raises every twelve months. You buy RORA Max once and it is yours, including every future update we ship on the v1 line. 6148 6149There is no asterisk. We are not capping features behind a higher plan you have to upgrade to next quarter. The Max tier is the full product, and the full product is now a one-time purchase. 6150 6151## Spring sale: 20 percent off 6152 6153To mark the move to lifetime pricing we are running a Spring sale. Use code **SPRING20** at checkout and you get **20 percent off** the lifetime price. 6154 6155The sale runs through the end of the season. The lifetime price itself is not going up after the sale, but the discount window is finite. 6156 6157[BUTTON|Buy RORA Max Lifetime - 20 percent off|/pricing] 6158 6159## Thank you 6160 6161This is not the cheap kind of thank you. We mean it. 6162 6163Every early subscriber funded the next round of filter work. Every public review pushed RORA up the Chrome Web Store rankings and brought in the next batch of listeners. Every bug report sharpened the build. Every email asking for a feature shaped the roadmap. 6164 6165**If you were one of those people, this is your release.** You backed RORA when it was a small project from Scandinavia with one filter that worked and a few that mostly worked. You believed in the idea that browser audio could be better, and you paid for that belief in real money. 6166 6167The ambition was always to make this a one-time purchase. Subscription pricing was never the plan; it was the bridge. You built that bridge with us. Now we get to cross it together. 6168 6169## What RORA Max includes 6170 6171Every filter and feature in the extension, unlocked permanently: 6172 6173- **Spatial Audio** with HRTF binaural processing, three movement modes, full 3D positioning. 6174- **Visual EQ**, 10 bands, plus or minus 12 dB, per band. 6175- **Bass Boost and Bass Reduce** for shaping the low end without a graphic EQ. 6176- **Pitch and Tempo** control, each independent of the other. 6177- **Reverb and Echo** with adjustable room and feedback. 6178- **Smooth Pro** for taking the edge off harsh recordings. 6179- **Local file playback and recording**, with WAV and MP3 export. 6180- **Sleep timer** with optional fade-out for late-night listening. 6181- **Custom Presets** so your tuning travels with your account. 6182 6183## If you already paid for a subscription 6184 6185If you are an active RORA Max subscriber, you do not need to do anything. Your subscription has been converted to lifetime access at no extra cost. If you cancelled in the past but want back in, the Spring sale is the cheapest way to come home. 6186 6187## Where to get it 6188 6189RORA itself stays free on the Chrome Web Store. The lifetime upgrade lives on the **Plans** page. Sign in, choose **RORA Max Lifetime**, apply **SPRING20** at checkout, and you are done. 6190 6191[BUTTON|Go Lifetime - 20 percent off with SPRING20|/pricing] 6192 6193**From everyone working on RORA: thank you. We owe this release to you.** 6194 `,date:"May 18, 2026",category:"company",categoryLabel:"COMPANY",tags:["Lifetime License","Pricing","Spring Sale","RORA Max","Early Supp
6194orters","Thank You"]},"local-files-recording-sleep-timer":{title:"Load, Listen, Record: Local Files Meet the Full RORA Filter Chain",description:"Play your own mp3, wav, flac, ogg, m4a, and aac files through every RORA filter. Record processed audio as WAV or MP3 up to 320 kbps. Plus a sleep timer with optional fade-out.",takeaways:["Load local audio (mp3, wav, flac, ogg, m4a, aac), single file or full folder, and play through the entire RORA filter chain.","Record processed audio as WAV or MP3 (128, 192, or 320 kbps) and save it to your computer.","Bonus: a sleep timer that fades audio to silence after 15, 30, 45, 60 minutes or a custom duration."],ctaSection:{title:"Ready to try RORA?",description:"Download RORA for free and start customising your audio experience. Use SPRING20 for 20 percent off the lifetime upgrade.",label:"Get It Now",href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj"},content:` 6195For a long time RORA was something you used *on top of* what was already playing in your browser. A music streaming app, a video site, a podcast player. RORA reshaped that audio, but it could never reach the files sitting on your own drive. 6196 6197**That changes today.** The local file player is now a first-class part of RORA. Drop in your own files and they run through the same processing chain as everything else, with full transport controls, playlists, and the ability to save the processed result. 6198 6199## Load anything 6200 6201RORA accepts the formats you actually have on your drive: 6202 6203- **mp3** for the rip-from-anywhere classic. 6204- **wav** for uncompressed masters. 6205- **flac** for lossless libraries. 6206- **ogg, m4a, aac** for everything else. 6207 6208Drag a file or folder onto the Load buttons in the RORA popup, or click to browse. Drop a whole folder and you get a playlist: tracks queue up, auto-advance when one ends, and the previous and next buttons in the transport bar do exactly what you expect. 6209 6210### Everything stays on your machine 6211 6212Local files are processed entirely on-device. Nothing is uploaded, nothing leaves your computer, nothing reaches our servers. The audio decodes inside the browser, runs through the filter chain in real time, and plays out the speaker. If you turn off your network connection, the local player still works. 6213 6214## The full filter chain, all of it 6215 6216Loading a file does not give you a stripped-down version of RORA. Every filter that works on streaming audio works on your local files too: 6217 6218- **Visual EQ** across 10 bands, plus or minus 12 dB each. 6219- **Spatial Audio** with HRTF binaural processing. Yes, even on a 90s mp3. 6220- **Bass Boost and Bass Reduce**, Reverb, Echo, Smooth Pro, Muffler. 6221- **Pitch shifting** up to plus or minus 12 semitones, with tempo untouched. 6222- **Tempo control** from 50 to 150 percent, pitch preserved. 6223 6224Build a preset that works for your headphones, apply it to a local album, and listen the way you actually wanted to listen. 6225 6226## Recording 6227 6228You can capture what RORA is playing and save it to your computer. 6229 6230### Two formats 6231 6232- **WAV**: uncompressed, bit-perfect, lossless. Larger files, best for archiving. 6233- **MP3** at 128, 192, or 320 kbps. Smaller files, ideal for sharing or playback on other devices. 6234 6235Choose the format and bitrate once in the RORA settings panel. From then on, the red record pill at the top of the popup captures what you hear. Hit it again and you are prompted to name the file. The recording lands in your normal downloads folder. 6236 6237### Smart default filenames 6238 6239If RORA can read the track title and artist from the source, the suggested filename comes pre-filled with **Artist - Track**. Otherwise it falls back to a sensible default. You can always rename before saving. 6240 6241### What you can use it for 6242 6243Mostly the same things you already do with the audio coming out of your machine. Save a podcast episode with the noise filter tuned for your phone speaker. Bounce a flat track through Spatial Audio and keep the result. Render a study mix at exactly the volume you want. 6244 6245Recording is part of RORA Max. The Spring sale code **SPRING20** applies if you do not have it yet. 6246 6247## Bonus: the sleep timer 6248 6249For everyone who falls asleep with audio playing and then wakes up at 3am with the playlist still running, the sleep timer is for you. 6250 6251- **Pick a preset**: 15, 30, 45, or 60 minutes. 6252- **Or set a custom time** down to the minute. 6253- **Optional fade-out**: audio ramps to silence over a few seconds, then pauses. 6254 6255When the timer fires, RORA pauses what is playing and tears down the audio chain so nothing keeps running in the background. The fade-out means you do not get an abrupt cut, which is the thing that wakes you up. 6256 6257The timer survives a closed popup. You can arm it and walk away. It will fire whether or not RORA is open. 6258 6259## Putting it together 6260 6261A workflow that uses all three: 6262 62631. Drop a folder of ambient tracks onto the Load Folder button.
62642. Apply a soft preset: bass reduce, slight reverb, Spatial Audio in Custom mode placed behind your head. 62653. Arm the sleep timer for 30 minutes with a fade-out. 62664. If you like the result, hit record and save it as a 320 kbps mp3 to share with a friend. 6267 6268Twenty seconds of setup, a personalised mix, and a clean exit when your timer runs out. 6269 6270## Available now 6271 6272All three features ship in RORA v1.7.1, available today on the Chrome Web Store. Local file playback and the sleep timer are free; recording is part of RORA Max. 6273 6274If you have not gone lifetime yet, the Spring sale gives you 20 percent off with code **SPRING20**. 6275 6276[CTA_BUTTON] 6277 6278**Bring your own files. Save what you hear. Sleep through it if you want.** 6279 `,date:"May 18, 2026",category:"features",categoryLabel:"FEATURES",tags:["Local Files","Recording","Sleep Timer","MP3 Export","WAV Export","Playlist","Audio Filters"]},"improve-browser-audio-quality":{title:"How to Improve Audio Quality in Your Browser: A Practical Guide",description:"A no-nonsense guide to making music streaming, podcasts, films, and study audio sound better in your browser. EQ, bass control, spatial audio, and headphone-aware tuning explained.",takeaways:["Browser audio is flat by default. Five small adjustments do most of the work.","EQ, bass control, spatial audio, and gentle ambience cover music, podcasts, films, and focus work.","Tune once, save as a preset, and the same sound follows every site you visit."],content:` 6280If you spend most of your listening time in a browser tab, you are probably hearing audio the way the website chose to render it. No tone control, no spatial dimension, no headphone correction. Just whatever the original mix sounds like on whatever output device you have plugged in. 6281 6282This guide walks through what to actually change to make that audio sound better, and how to do it without leaving the browser. 6283 6284## Why browser audio sounds flat 6285 6286Three reasons. 6287 62881. **The source.** Streaming platforms compress audio to keep file sizes manageable. Compression preserves loudness and rough shape but discards detail, especially in the high end. 62892. **The route.** Browsers play audio through a general-purpose pipeline. There is no preamp, no EQ stage, no spatial processor. It is signal in, signal out. 62903. **Your output device.** Headphones, laptop speakers, and external speakers all have their own frequency response. Most consumer gear is tuned for general listening, not for the specific track you happen to be playing. 6291 6292The fix is the same one music engineers use: small, deliberate adjustments at each stage. You do not need a studio. You need a handful of filters that work on whatever audio is playing in your tab. 6293 6294## The five adjustments that do the most 6295 6296### 1. Equalisation 6297 6298EQ is the single most useful tool in any audio chain. It lets you raise or lower the volume of specific frequency ranges without touching the rest. 6299 6300A practical 10-band EQ covers roughly: 6301 6302- **31 Hz to 125 Hz** - sub bass and bass, the weight and warmth of the mix. 6303- **250 Hz to 1 kHz** - low mids, body of male voices and rhythm guitars. 6304- **2 kHz to 4 kHz** - presence, the part of speech you understand. 6305- **8 kHz to 16 kHz** - air, sibilance, cymbal shimmer. 6306 6307**Starting points:** 6308 6309- Music feels muddy? Pull 250 Hz down 2 to 3 dB. 6310- Voices hard to understand? Push 2 kHz up 2 dB. 6311- Headphones feel dull on top? Push 8 kHz up 2 dB. 6312- Highs harsh? Pull 4 kHz down 1 to 2 dB. 6313 6314Stay within plus or minus 6 dB unless you really know what you are doing. Big EQ moves create new problems. 6315 6316### 2. Bass control 6317 6318Separate from the EQ band, a dedicated bass control is useful because it works across a wider range at once and gives you a single slider for the part of the mix you adjust most often. 6319 6320**Bass Boost** raises the low end, useful on small speakers, in noisy environments, or with bass-light headphones. **Bass Reduce** trims the low end, useful late at night, with closed headphones that already have heavy bass, or on a sub-equipped system in a small room. 6321 6322Both tools target frequencies that masks detail when overdone. Go in 10 percent increments and listen for clarity in the mid range. If voices and snares get harder to hear, you have too much bass. 6323 6324### 3. Spatial widening 6325 6326Most browser audio is stereo. Most listening is on headphones. The result is sound that lives *inside* your head rather than around it. 6327 6328**Spatial audio** fixes this by simulating physical placement of the sound around you. The underlying technology is called HRTF (Head-Related Transfer Function), the same maths used in professional spatial audio implementations. The result is sound that orbits, sits behind you, or hovers above you, with depth cues that match how real sound reaches your ears. 6329 6330This effect is only audible on headphones. Speakers cannot deliver it because the room geometry overrides the simulation. For a long-form deep dive on how it works see [our spatial audio article](https://rora.one/news/introducing-spatial
6330-audio). 6331 6332### 4. Ambience 6333 6334A small amount of reverb makes audio feel like it is happening in a room rather than at your eardrum. This matters especially for dry studio recordings and for acoustic content (acoustic guitar, piano, classical strings). 6335 6336Start with a small room setting, around 10 to 20 percent wet. You should barely notice it. If you do notice it, pull it back. Reverb is one of those things that sounds great for 30 seconds and tiring after an hour. 6337 6338### 5. A high-frequency softener for tough recordings 6339 6340Older recordings, badly compressed sources, and harsh microphones share a common problem: too much energy above 6 kHz. A gentle low-pass filter (sometimes called a Muffler in RORA) attenuates the very top end and pulls the recording closer to natural. 6341 6342Used carefully it is the difference between a 90s mp3 sounding like a 90s mp3 and that same file sounding like a remaster. 6343 6344## Tuning by content type 6345 6346### Music 6347 6348- Bass Boost 10 to 20 percent. 6349- EQ: pull 250 Hz down 2 dB, push 8 kHz up 2 dB. 6350- Spatial audio in Circular mode at medium distance and slow speed. 6351- Reverb off. 6352 6353### Podcasts and interviews 6354 6355- Bass Reduce 10 percent. Voices do not need sub bass. 6356- EQ: push 2 kHz up 1 to 2 dB for intelligibility. 6357- Smooth Pro at medium setting to take the edge off plosives. 6358- Spatial audio off; speech is fatiguing in motion. 6359 6360### Films and TV 6361 6362- Bass Boost 10 percent for explosions and rumble without going overboard. 6363- EQ: push 2 kHz up 2 dB; film dialogue is often buried. 6364- Spatial audio in Custom mode placed slightly in front; mimics a small cinema. 6365- Light reverb (5 to 10 percent wet) for cinematic feel. 6366 6367### Focus and study audio 6368 6369- Bass Reduce 15 to 20 percent. Too much low end pulls your attention. 6370- Muffler on, light setting, to soften high-frequency excitement. 6371- Spatial audio in Orbital mode at slow speed and far distance for ambient presence. 6372- Volume 10 to 15 percent below comfortable; you want it under your work, not over it. 6373 6374### Late-night listening 6375 6376- Bass Reduce 25 percent. Sub bass travels through walls. 6377- Muffler at medium setting for a warm, soft top end. 6378- Sleep timer 30 minutes with fade-out. 6379- Spatial audio at far distance for room-filling without loudness. 6380 6381## Headphones matter, but not the way you think 6382 6383The best filter cannot fix the wrong headphones. Two practical points: 6384 63851. **For spatial audio, headphones are mandatory.** The effect relies on different signals reaching each ear independently. Speakers cannot do it. 63862. **For everything else, a decent pair beats anything fancy.** Wired headphones in the 100 to 200 USD range outperform most premium wireless options on resolution, simply because they skip the codec compression step. 6387 6388If you cannot change your headphones, you can compensate with EQ. RORA ships with tuning profiles for 50 popular headphone models that pre-adjust the EQ to flatten the headphone's natural response. 6389 6390## Save what works 6391 6392The best tuning is the one you actually use. Set up the filters once for each use case (music, podcasts, films, focus, late night), save each one as a custom preset, and switch between them with one click. 6393 6394Presets are tied to your account, so they survive a browser reinstall and follow you across machines. 6395 6396## What to use 6397 6398Everything in this guide is available in **RORA**, our browser audio extension. The core EQ, bass controls, spatial audio, reverb, and presets are part of **RORA Max**, a one-time lifetime purchase with no subscription. 6399 6400Spring sale: apply code **SPRING20** at checkout for **20 percent off**. 6401 6402[BUTTON|Get RORA Max - 20 percent off with SPRING20|/pricing] 6403 6404## Frequently asked questions 6405 6406### Why does audio in my browser sound flat compared to a music app? 6407 6408Browsers play audio with no processing on top. There is no EQ, no bass shaping, no spatial widening. Dedicated music apps often apply their own tuning on top of the original mix. To get a similar level of control inside the browser, you need an audio enhancement extension that processes the tab audio in real time. 6409 6410### Do I need special headphones to hear the difference? 6411 6412No. Any pair of headphones will reveal the difference more clearly than speakers, but the changes are audible on built-in laptop speakers too. Spatial audio specifically requires headphones because the effect depends on sending different signals to each ear. 6413 6414### Will adding filters reduce audio quality? 6415 6416Not when applied carefully. Filters work in the digital domain at the same sample rate as the source. Aggressive settings can introduce distortion, but moderate adjustments to EQ, bass, and ambience are transparent and add to the listening experience rather than degrade it. 6417 6418### Does this work on all audio in my browser? 6419 6420Yes. RORA processes the audio output of any tab, whether that is a music streaming service, a video site, a podcast player, a study mix, a film, or a livestream. It also processes local audio files you load directly. 6421 6422### How much CPU does it use? 6423 6424Negligible. Modern browser audio APIs are heavily optimised, and RORA piggybacks on them. On a five-year-old laptop a full filter chain (EQ + spatial + bass + reverb) costs roughly the same as having one extra tab open. 6425 6426**Better audio is the difference between background noise and a real listening experience. The tools are small, the gains are not.** 6427 `,date:"May 18, 2026",category:"guides",categoryLabel:"GUIDES",tags:["Audio Quality","Browser Audio","EQ","Bass Boost","Headphones","Spatial Audio","Audio Guide","Listening Tips"]},"bedroom-sound-distant-reverb":{title:"The Bedroom Sound: How to Get That Drowned-Out, Distant Vibe in RORA",description:"Three sliders, one mood. Reverb at 70 percent, Muffler at 65 percent, Pitch at minus 3 semitones. The melancholic, late-night TikTok sound that turns any bright pop track into something you remember at 2am.",takeaways:["The recipe: Reverb 70 percent, Muffler 65 percent, Pitch -3 semitones. Three filters, one mood.","Works on any song playing in your browser. The brighter the original mix, the more dramatic the transformation.","Save it as a custom preset and switch back to flat with one click."],content:` 6428You know the sound. A pop hook drifting through a wall. A vocal that feels two rooms away. The echo of a song you used to like, sitting somewhere just out of reach. 6429 6430It is everywhere on TikTok and on bedroom edits. People call it slowed and reverb, distant audio, drowned-out, muffled, the bedroom sound. Whatever name you give it, the effect is the same: a track that used to feel close and shiny now feels far and a little sad. 6431 6432It is iconic for a reason. The brain hears distance and starts filling in memory. A song that was just a song becomes the song you heard through someone else's headphones in 2017. 6433 6434You can build that exact mood in RORA in about ten seconds. You only need three filters. 6435 6436## The recipe 6437 6438Three values, in order: 6439 6440- **Reverb**: 70 percent 6441- **Muffler**: 65 percent 6442- **Pitch**: minus 3 semitones 6443 6444That is it. Open RORA on any song playing in your browser, dial those three, and the track is suddenly drifting in from the next room. 6445 6446[CTA_BUTTON] 6447 6448## Why these three? 6449 6450Each filter is doing one specific job. Take any away and the spell breaks. 6451 6452### Reverb at 70 percent: the room 6453 6454Reverb is the sound of a space. A small amount makes audio feel real. A lot makes it feel *far*. 6455 6456At 70 percent the reverb tail is long and wet enough that the original dry signal stops being the loudest thing in your ear. You start hearing the *reflection* of the song more than the song itself. That is the trick. Your brain reads "this audio is bouncing off walls" and immediately decides the source is somewhere else, somewhere you are not. 6457 6458If you push reverb past 80 percent the track starts losing definition, words turn into mush, the kick drum disappears. 70 is the sweet spot where the song still survives but feels like it is happening in a different room. 6459 6460### Muffler at 65 percent: the wall 6461
6462Muffler is a low-pass filter. It cuts the high frequencies, the bright top end where vocal consonants and cymbal shimmer live. 6463 6464Sound travels through walls badly. High frequencies get absorbed first. That is why the bass from a neighbour's party always reaches you before the melody. Your ears are calibrated to that physical reality, so when audio loses its top end your brain reads "there is something between me and this sound." 6465 6466At 65 percent Muffler shaves off enough of the air and sparkle to feel like the song is on the other side of a closed door, but not so much that it turns into a low rumble. You still get the shape of the melody. You just no longer get the detail. 6467 6468### Pitch at minus 3 semitones: the slow 6469 6470Three semitones down is roughly the difference between a major and a minor chord. Drop a song by that much and two things happen at once. The whole track goes a little darker harmonically, and every voice sounds a touch slower and more tired. 6471 6472This is where the *melancholic* part of the bedroom sound lives. Bright pop in its original key has too much energy to feel distant. Pull it down 3 semitones and even an upbeat hook starts sounding nostalgic. 6473 6474RORA's pitch shifter keeps the tempo unchanged, so the song does not actually slow down. It just sounds heavier. Combined with the reverb and the muffler, that drop in pitch is the difference between "this audio is far away" and "this audio is far away and I am thinking about something I lost". 6475 6476## Tweaks for different moods 6477 6478The 70 / 65 / -3 recipe is the canonical bedroom sound. You can shift it to land in slightly different places. 6479 6480### More dreamy, less sad 6481 6482- Reverb: 75 percent 6483- Muffler: 60 percent 6484- Pitch: minus 1 semitone 6485 6486Keep the room big and washy but back off on the pitch drop. The track stays bright enough to feel awake. Good for daytime study, late-summer nostalgia, or songs you actually still want to hear clearly. 6487 6488### More melancholic, more drowned-out 6489 6490- Reverb: 70 percent 6491- Muffler: 75 percent 6492- Pitch: minus 5 semitones 6493 6494Crush the top end and drop the pitch a full fourth. The song dissolves into the room. Use this on something you already feel emotional about and you will need a minute. 6495 6496### Lo-fi tape feel 6497 6498- Reverb: 50 percent 6499- Muffler: 70 percent 6500- Pitch: minus 2 semitones 6501 6502Less reverb, more muffle. The song still sounds close, just like it is playing through an old cassette deck across the room. Pairs well with a soft Bass Reduce if the source is bass-heavy. 6503 6504### Underwater 6505 6506- Reverb: 80 percent 6507- Muffler: 85 percent 6508- Pitch: minus 4 semitones 6509 6510Pure submersion. The song is no longer in the next room, it is at the bottom of a swimming pool. Useful for a few seconds at a time. Wears out faster than the canonical recipe. 6511 6512## A few things that make it sound better 6513 6514**Use headphones.** The effect depends on a clean stereo image and a flat-ish low end. Laptop speakers will turn the reverb tail into mud and erase half of what makes the sound work. 6515 6516**Pick the right song.** The bedroom sound is most dramatic on tracks with a clear vocal and a bright original mix. Pop, indie pop, electropop, anything from the radio. Songs that are already washy and ambient will get *less* interesting under the same recipe; you are smearing what was already smeared. 6517 6518**Try it on a song you have heard a thousand times.** The first time you hear a track you know inside out come back through this filter chain is the actual point. The familiarity is what makes the distance feel emotional. 6519 6520**Pair with Spatial Audio if you have RORA Max.** Slow circular orbit at far distance plus the bedroom recipe is unfair. The song now drifts physically around you while it dissolves in the room. Late-night listening, basically a movie cue. 6521 6522## Save it as a preset 6523 6524Once you have the values you like, save the chain as a custom preset. The next time you want the bedroom sound on any tab, it is one click away. RORA presets are tied to your account, so they survive a browser reinstall and follow you between machines. 6525 6526A naming idea: keep the canonical recipe as **Bedroom**, the pitch-up variant as **Dreamy**, the heavier one as **Drowned**, the cassette one as **Tape**. Three or four presets cover most of the moods you will reach for. 6527 6528## Get RORA 6529 6530Reverb, Muffler, and Pitch are all part of RORA. Free on the Chrome Web Store. Install, open the popup, dial three sliders, and the song you have always known starts sounding like a memory. 6531 6532[CTA_BUTTON] 6533 6534**Same song. Different room. Different night.** 6535 `,date:"May 18, 2026",category:"guides",categoryLabel:"GUIDES",tags:["Bedroom Sound","Reverb","Muffler","Pitch Shift","Slowed and Reverb","TikTok Sound","Lo-Fi","Mood"]},"rora-launches-chrome-web-store":{title:"RORA Launches on Chrome Web Store: Let Every Song Be Yours",description:"RORA is an audio enhancer for Chrome that lets you shape how music, videos, and podcasts s
6535ound using real-time filters and an easy-to-use interface.",heroImage:"/images/news/launch.png?v=2",takeaways:["RORA gives you complete control over browser audio with filters like 10-band EQ, Spatial Audio, Bass Boost, and more.","Works on any website with audio: music, videos, podcasts, online courses, video calls.","All audio processing happens locally in your browser. Your audio never leaves your device."],mediaBlocks:[{type:"image",src:"/images/rora-launch-eq.png",caption:"The RORA extension popup with real-time audio filters",alt:"RORA extension interface showing Spatial Audio, Visual EQ, and other filters"}],content:` 6536Today, we're introducing RORA to the world. RORA is an audio enhancer for Chrome that lets you shape how music, videos, and podcasts sound using real-time filters and an easy-to-use interface. 6537 6538## Audio Filters 6539 6540RORA ships with a collection of audio filters designed for everyday listening: 6541 6542- **10-Band Visual Equalizer**: Drag-and-drop EQ from 32Hz to 16kHz with genre presets (Pop, Jazz, Classical, EDM, Podcast, and more) 6543- **Bass Boost**: Add punchy low-end to any audio 6544- **3D Spatial Audio**: Binaural processing with circular, orbital, and custom trajectory modes. Best with headphones. 6545- **Smooth Pro Noise Removal**: Reduces hiss, hum, and background noises 6546- **Pitch Shifter**: Shift pitch up or down without changing tempo 6547- **Tempo Control**: Slow audio down without pitch distortion 6548- **Reverb and Echo**: Add room ambience and delay effects 6549- **Bass Cut and Muffler**: Reduce bass or create warm, lo-fi aesthetics 6550- **Master Volume**: Boost quiet audio up to 400% 6551 6552[MEDIA_BLOCK_0] 6553 6554## Works Everywhere 6555 6556RORA works on all audio streams in Chrome: music streaming sites, video platforms, podcasts, online courses, video calls, and any website with audio. 6557 6558## Who RORA Is For 6559 6560- **Music lovers** who want more bass, clarity, or spatial depth 6561- **Podcast listeners** who need clearer voices 6562- **Students** slowing down lectures or muffling music to study 6563- **Language learners** practicing pronunciation 6564- **Creatives** who want to play around and experiment with their sound 6565- **Anyone** who wants their audio to sound better 6566 6567## Privacy First. Always. 6568 6569All audio processing happens locally in your browser. Your audio never leaves your device. There are no cloud servers processing your audio. No recordings. No uploads. No tracking of what you listen to. 6570 6571## Two Ways to Experience RORA 6572 6573RORA is available in two tiers: 6574 6575- **RORA Core (Free)**: Essential filters including Share, Reverb, Master Volume, Muffler, Visual EQ, and Custom Presets. 6576- **RORA Max (Lifetime)**: All filters and features. One-time purchase, yours forever. 6577 6578## Download RORA Today 6579 6580RORA is available now on the Chrome Web Store. Installation takes seconds. 6581 6582[CTA_BUTTON] 6583 6584**Let every song be yours.** 6585 `,date:"January 16, 2026",category:"company",categoryLabel:"COMPANY",tags:["Chrome Extension","Audio Enhancer","Browser Audio","Real-time Processing","Privacy"]},"introducing-spatial-audio":{title:"Spatial Audio: Feel Sound Move Around You",description:"Close your eyes. Put on your headphones. Hear the music orbit around your head. Welcome to Spatial Audio, the immersive 3D sound experience in RORA Max.",heroImage:"/images/spatial
6585-audio-hero.png?v=2",takeaways:["Spatial Audio transforms any audio into a 3D soundscape using HRTF binaural processing. Headphones required.","Three modes to choose from: Circular orbit (classic 8D effect), Orbital (complex 3D paths), or Custom positioning.","Included in RORA Max. One-time purchase, lifetime access."],content:` 6586Close your eyes. Put on your headphones. Hear the music orbit around your head: not just left and right, but forward, behind, above, below. Welcome to Spatial Audio. 6587 6588[INLINE_VIDEO]/video/3D-Audio.mp4[/INLINE_VIDEO] 6589 6590## The 8D Audio Experience in Your Browser 6591 6592You've probably seen those "8D Audio" videos online. Sound that swirls around you, wrapping you in a sonic bubble. Until now, that required pre-processed files or expensive plugins. 6593 6594**RORA changes that.** 6595 6596We process audio in real time, directly in your browser. Play any song, any podcast, any video and experience it in 3D space. No downloads. No special files. Just headphones and RORA. 6597 6598## How It Works 6599 6600When you enable Spatial Audio, RORA takes the audio playing in your browser and positions it in virtual 3D space around your head. 6601 6602### Audio Capture 6603 6604RORA intercepts the audio stream from any browser tab using the Web Audio API. This works with music streaming sites, video platforms, podcasts, and anything else playing in your browser. 6605 6606### HRTF Processing 6607 6608We use the browser's built-in **Head-Related Transfer Function** (HRTF) processing. This is the same technology used in professional spatial audio implementations. The HRTF model simulates how sound reaches your ears when it comes from different directions, accounting for timing differences, frequency changes, and reflections caused by your head and ears. 6609 6610### Real-Time 3D Positioning 6611 6612At 60 frames per second, we calculate the exact position of the sound source and update the HRTF accordingly. The result: smooth movement with no clicks or pops. 6613 6614**The audio orbits you.** The entire soundstage moves as one immersive whole. Think of it like sitting on a spinning chair at a concert. 6615 6616### Distance Simulation 6617 6618We don't just pan left and right. We simulate **depth**: 6619 6620- **Air absorption**: Distant sounds lose high frequencies (low-pass filtering) 6621- **Volume attenuation**: Distant sounds get quieter naturally 6622- **Room ambience**: Distant sounds gain natural reverb 6623 6624The result: sound that feels genuinely near or far, not just loud or quiet. 6625 6626## Three Ways to Experience It 6627 6628### Circular Orbit 6629 6630Sound travels at ear level in a complete 360-degree loop. Front to right to behind to left and back again. This is the classic 8D audio effect. Perfect for music and ambient soundscapes. 6631 6632### Orbital (Figure-8) 6633 6634Sound weaves above and below while orbiting horizontally. A Lissajous curve that creates a mesmerizing, unpredictable path. Great for electronic music and creating that "inside the music" feeling. 6635 6636### Custom Positioning 6637 6638Pick exactly where the sound sits in 3D space. Want it behind you and to the left? Done. Above you? Sure. Use our 3D visualizer to position the sound source anywhere on the sphere. 6639 6640## What It Feels Like 6641 6642This effect is not subtle. Here's what users describe: 6643 6644**For Music:** The stereo image expands. That guitar riff isn't just in your left ear. It's behind your left shoulder. The bass doesn't just thump. It envelops you. 6645 6646**For Podcasts:** Voices gain presence. Long listening sessions become less fatiguing because your brain isn't working as hard to process flat stereo. 6647 6648**For Gaming:** Environmental sounds gain context. You'll hear that NPC talking from the right, or ambient thunder from above. 6649 6650**For Focus:** Some users find gentle orbital movement helpful for deep work. The continuous motion prevents audio fatigue and keeps you subtly engaged. 6651 6652## The Controls 6653 6654We kept it simple: 6655 6656- **Distance**: How far away the sound source sits. Close (intimate, in-your-ear) to Far (stadium, cinematic). 6657- **Speed**: How fast the sound orbits. Stopped (fixed position) to Fast (energetic swirling). 6658- **Pattern**: Circular, Orbital, or Custom. 6659 6660The 3D visualizer shows you exactly where the sound is in real time. Watch the satellite orbit around the planet: that's your audio moving around you. 6661 6662## Tips for the Best Experience 6663 66641. **Headphones are mandatory.** Speakers cannot deliver spatial audio. The effect relies on
6664sending different signals to each ear. 6665 66662. **Start subtle.** Begin with medium distance and slow speed. Let your ears adjust before experimenting further. 6667 66683. **Match the content:** Fast orbit plus close distance creates an energetic, "inside the song" experience. Slow orbit plus far distance creates a cinematic, "concert hall" effect. Stopped plus custom position works for focused, directional audio. 6669 66704. **Try it with binaural recordings.** Spatial audio stacks beautifully with content already recorded in 3D. 6671 66725. **Night mode:** For late-night listening, try far distance plus slow speed. Creates room-filling ambience without overwhelming loudness. 6673 6674## Available in RORA Max 6675 6676Spatial Audio is available in **RORA Max**, a one-time lifetime purchase that unlocks all filters and features. 6677 6678Already own RORA Max? Open RORA, enable Spatial Audio, and play any audio in your browser. Put on headphones. Close your eyes. 6679 6680[UPGRADE_BUTTON] 6681 6682**Sound isn't supposed to be flat. Let it wrap around you.** 6683 `,date:"January 14, 2026",category:"features",categoryLabel:"FEATURES",tags:["Spatial Audio","3D Audio","HRTF","Binaural","Immersive Sound","Headphones"]},"visual-eq-deep-dive":{title:"Visual EQ: Take Control of the Curves",description:"That bass line you love? Make it thunder. The vocal you can't quite hear? Bring it forward. Visual EQ puts professional-grade sound shaping in your hands.",heroImage:"/images/news/visual-eq.png",takeaways:["Visual EQ is a professional-grade 10-band parametric equalizer using ISO-standard frequencies from 32Hz to 16kHz.","12 presets designed for specific use cases: EDM, Podcast, Rock, Acoustic, Movie, and more.","Cut before you boost. This golden rule of EQ produces cleaner sound with less distortion."],content:` 6684That bass line you love? Make it thunder. The vocal you can't quite hear? Bring it forward. The harshness that's fatiguing your ears? Smooth it away. Visual EQ puts the sound in your hands. 6685 6686## The Tool Producers Use Every Day 6687 6688Here's something from the audio world: **EQ is the most powerful tool in any producer's arsenal.** It's how engineers make vocals cut through a mix, how mastering houses add that polished sheen to albums, and how podcasters make their voices sound professional. 6689 6690Until now, that power required expensive software, years of training, and a treated room. 6691 6692**RORA changes that.** 6693 6694Visual EQ brings a professional-grade 10-band parametric equalizer to your browser. No downloads. No subscription to complex DAW software. Just you, a visual interface, and the ability to shape any sound to your exact preference. 6695 6696## What Is EQ, Really? 6697 6698[INLINE_VIDEO]/video/Visual-EQ.mp4[/INLINE_VIDEO] 6699 6700EQ (equalization) is the art of adjusting how loud different frequencies are in a piece of audio. 6701 6702Every sound you hear is made up of frequencies. The rumble of a bass drum? That's around 60Hz. A singer's voice? Mostly 200Hz to 4kHz. The shimmer of a cymbal? Up around 8kHz to 16kHz. 6703 6704When you adjust EQ, you're deciding which frequencies are louder and which are quieter. **You're sculpting the sound.** 6705 6706Think of it like a mixing board at a concert. The engineer isn't just making things louder or quieter. They're making the kick drum punch through, the vocals sit clearly above the instruments, the guitar snarl without harshness. 6707 6708That's what you can do with Visual EQ. For any audio in your browser. 6709 6710## How RORA's Visual EQ Works 6711 6712### The Interface 6713 6714We modeled Visual EQ after professional channel EQs. It's a canvas where you can see and touch the frequency response of your audio. 6715 6716Ten control points, one for each frequency band. **Click and drag** any point up or down: 6717 6718- **Drag up** = boost that frequency (make it louder) 6719- **Drag down** = cut that frequency (make it quieter) 6720 6721The curve between points updates in real time, showing you exactly what your EQ looks like. No guessing, no mystery. What you see is what you hear. 6722 6723### The Frequencies 6724 6725We use **ISO-standard frequencies**, the same ones used in professional audio gear worldwide: 6726 6727- **32 Hz**: Sub-bass. The rumble you feel more than hear. 6728- **64 Hz**: Bass. Kick drums, bass guitar fundamentals. 6729- **125 Hz**: Upper bass. Warmth, body. 6730- **250 Hz**: Low-mids. Muddiness lives here (often cut). 6731- **500 Hz**: Mids. The "body" of most instruments.
6732- **1 kHz**: Upper-mids. Presence, vocal fundamentals. 6733- **2 kHz**: Presence. Attack, clarity. 6734- **4 kHz**: Brilliance. Vocal consonants, edge. 6735- **8 kHz**: Highs. Air, sparkle. 6736- **16 kHz**: Ultra-highs. Shimmer, "air." 6737 6738### The Range 6739 6740Each band can be adjusted **±12dB**. That's a massive range, enough to completely transform a sound or make subtle, surgical corrections. 6741 6742Most adjustments live in the ±3dB to ±6dB range. Save the ±12dB extremes for dramatic effect. 6743 6744## Best Practices: The Producer's Playbook 6745 6746### 1. Cut Before You Boost 6747 6748This is the golden rule of EQ. **Cutting is almost always better than boosting.** 6749 6750Why? When you boost, you add energy. That energy can cause distortion, clipping, and listening fatigue. When you cut, you're removing what you don't want, letting the good stuff shine through naturally. 6751 6752**Before:** "This song needs more bass" 6753**After:** "This song has too much mid-bass mud. Let me cut 250Hz so the low bass punches through" 6754 6755Same result. Cleaner sound. 6756 6757### 2. The "Sweep and Destroy" Technique 6758 6759Can't find what's bothering you about a sound? Try this: 6760 67611. Pick a frequency band 67622. Boost it to +12dB (temporarily) 67633. Slowly move through frequencies, listening for "there it is!" 67644. When you find the problem, **cut** that frequency instead of boosting 6765 6766This technique reveals hidden problems. That nasty resonance in a vocal? That boxy quality in a podcast? Sweep until you find it, then cut. 6767 6768### 3. The 3dB Rule 6769 6770Your ears are remarkably good at adapting. A boost that sounds "perfect" today will sound normal tomorrow, and you'll boost more. 6771 6772**The fix:** Never boost more than 3dB in a single session. If you need more, take a break, reset your ears, and evaluate with fresh perspective. 6773 6774### 4. Context Is Everything 6775 6776An EQ curve that sounds amazing for EDM will ruin a podcast. Classical music needs different treatment than hip-hop. 6777 6778Match your EQ to the content: 6779 6780- **EDM/Electronic**: Boost bass (32-64Hz), boost treble (8-16kHz), scoop mids 6781- **Podcasts**: Boost 1-4kHz for clarity, cut bass below 125Hz, gentle treble roll-off 6782- **Classical**: Flat or gentle, subtle adjustments only
6783- **Rock**: Boost bass, boost 2-4kHz for bite, slight mid-scoop 6784- **Acoustic**: Warm sound with boost at 125-250Hz, gentle treble 6785- **Hip-Hop**: Strong sub-bass (32Hz), clear mids, crisp highs 6786 6787### 5. The Headphone Reality Check 6788 6789Your headphones have their own frequency response. Every pair sounds different. 6790 6791If you're doing serious EQ work: 6792 67931. Look up your headphone's frequency response chart 67942. Note where they boost or cut naturally 67953. Compensate with Visual EQ 6796 6797**Example:** Some headphones boost bass heavily. To hear "true" sound, cut 60-125Hz by 4-6dB. Flat studio monitors? You're already balanced. 6798 6799## The Presets: Your Starting Points 6800 6801We've created 12 professional presets. Think of them as starting points, not destinations. 6802 6803**Flat**: All bands at 0dB. The "off" state. Use this to reset and A/B compare. 6804 6805**Bass+**: Gentle low-end boost. Adds weight and power without muddiness. Great for songs that feel thin or laptop speakers that lack bass. 6806 6807**Treble+**: Gentle high-end boost. Adds sparkle and air. Great for older recordings that sound dull or classical and acoustic music. 6808 6809**Vocal**: Optimized for speech clarity. Boosts the 1-4kHz range where consonants live, cuts bass rumble. Great for podcasts and audiobooks. 6810 6811**V-Shape**: The "fun" preset. Boosts bass and treble, scoops the mids. Great for casual listening and EDM. 6812 6813**EDM**: Electronic dance music optimized. Strong sub-bass, crisp highs, clean mids. 6814 6815**Acoustic**: Natural, warm sound. Gentle mid boost, smooth highs. Great for acoustic guitar and singer-songwriter. 6816 6817**Rock**: Guitar and drums optimized. Punchy bass, biting mids, present highs. 6818 6819**Podcast**: Speech perfected. Removes room rumble, enhances clarity, reduces fatigue. 6820 6821**Movie**: Cinematic experience. Deep, extended bass for explosions; clear mids for dialogue; spacious highs for atmosphere. 6822 6823**Warm**: Analog-style warmth. Bass boost, gentle treble roll-off. Great for reducing digital harshness. 6824 6825**Presence**: Forward, "in your face" sound. Mid-boost for instruments and vocals. 6826 6827## Pro Tips: The Deep Cuts 6828 6829### The "EQ for Your Environment" Trick 6830 6831Noisy coffee shop? Boost 1-4kHz so vocals cut through ambient noise. 6832Quiet room at night? Cut treble slightly to reduce listening fatigue. 6833Train with rumble? High-pass everything below 125Hz. 6834 6835**Match your EQ to where you are, not just what you're listening to.** 6836 6837### The "Less Is More" Philosophy 6838 6839The best EQ is the one you can't hear. Seriously. 6840 6841If someone notices "wow, that sounds equalized," you've probably gone too far. Good EQ sounds like the content was always supposed to sound that way. 6842 6843**Subtlety wins.** 6844 6845### The "A/B Test" Method 6846 68471. Set your EQ 68482. Toggle Visual EQ off 68493. Listen to the original 68504. Toggle back on 68515. Ask: "Is this genuinely better, or just different?" 6852 6853Different isn't always better. Trust your ears, but verify. 6854 6855### The "Reference Track" Approach 6856 6857Find a song that sounds perfect to you on your headphones. Note its character. 6858 6859When you EQ new content, compare: "Does this have the same balance as my reference?" 6860 6861Professional mastering engineers do this constantly. You should too. 6862 6863### The "Flat Then Season" Workflow 6864 68651. Start with Flat preset 68662. Listen for what bothers you 68673. Cut that frequency 68684. Listen for what's missing 68695. Gently boost that frequency 68706. Repeat until satisfied 6871 6872This methodical approach beats randomly tweaking until it sounds "good." 6873 6874## When to Use Visual EQ vs. Other Filters 6875 6876- **"I want more bass" (quick)**: Use Bass Boost filter 6877- **"I want precise control over bass frequencies"**: Use Visual EQ 6878- **"This sounds too harsh"**: Use Smooth Pro, or cut 2-4kHz in Visual EQ 6879- **"Voices are hard to hear"**: Use Vocal preset in Visual EQ 6880- **"Everything sounds muddy"**: Cut 250Hz in Visual EQ 6881- **"I want my headphones to sound flat"**: Create a custom Visual EQ curve 6882 6883Visual EQ is your scalpel. Other filters are your hammers. Both have their place. 6884 6885## Available in RORA 6886 6887Visual EQ is available in **RORA Core** and **RORA Max**. 6888 6889Open RORA, enable Visual EQ, and play any audio. Click a control point. Drag it. **Hear the difference.** 6890 6891Start with a preset. Tweak to taste. Save your custom curve. Make every song sound exactly the way you want. 6892 6893[CTA_BUTTON] 6894 6895**The frequencies are waiting.** 6896 `,date:"January 10, 2026",category:"product",categoryLabel:"PRODUCT",tags:["Equalizer","Audio EQ","Frequency Control","Sound Shaping","Presets","Professional Audio"]}}
6896,bz={product:"border-b-2 border-[#E2628A]",features:"border-b-2 border-[#6200EE]",company:"border-b-2 border-[#3adec2]",guides:"border-b-2 border-[#FFA94D]"},wz=t=>t.replace(/\*\*(.+?)\*\*/g,'<strong class="text-white font-semibold">$1</strong>').replace(/\*(.+?)\*/g,"<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,(e,n,r)=>{const i=/^https?:\/\//.test(r)&&!/^https?:\/\/(?:www\.)?rora\.one(?:\/|$)/.test(r),s=r.replace(/^https?:\/\/(?:www\.)?rora\.one/,"");return`<a href="${i?r:s}" class="text-[#E2628A] underline hover:opacity-80"${i?' target="_blank" rel="noopener noreferrer"':""}>${n}</a>`}),WWe=(t,e)=>{const n=t.trim().split(` 6897`),r=[];let i=[],s=!1,o=[],a="ul",c=0;const u=()=>{if(i.length>0){const h=i.join(" ").trim();h&&r.push(l.jsx("p",{className:"mb-6 text-white/80 leading-[1.8]",dangerouslySetInnerHTML:{__html:wz(h)}},c++)),i=[]}},d=()=>{if(o.length>0){const h=a;r.push(l.jsx(h,{className:`mb-6 space-y-2 ${a==="ol"?"list-decimal":"list-none"} pl-0`,children:o.map((f,m)=>l.jsxs("li",{className:"flex items-start gap-3 text-white/80 leading-[1.8]",children:[a==="ul"&&l.jsx("span",{className:"mt-2.5 w-1.5 h-1.5 rounded-full bg-white/40 flex-shrink-0"}),l.jsx("span",{dangerouslySetInnerHTML:{__html:wz(f)}})]},m))},c++)),o=[],s=!1}};for(const h of n){const f=h.trim(),m=f.match(/^\[INLINE_VIDEO\](.+?)\[\/INLINE_VIDEO\]$/);if(m){u(),d(),r.push(l.jsx("div",{className:"float-right ml-6 mb-4 w-1/4",children:l.jsx("video",{src:m[1],autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full rounded-xl"})},c++));continue}if(f==="[UPGRADE_BUTTON]"){u(),d(),r.push(l.jsx(mt,{to:"/pricing",className:"stateful-btn inline-flex items-center justify-center gap-2 my-8 px-8 py-3 text-white font-medium rounded-full transition-all",children:"Explore RORA Max"},c++));continue}if(f==="[CTA_BUTTON]"){u(),d(),r.push(l.jsx("a",{href:"https://chromewebstore.google.com/detail/rora-audio/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center my-8 px-8 py-3 text-white font-medium rounded-full transition-all",children:"Add RORA to Chrome"},c++));continue}const v=f.match(/^\[BUTTON\|(.+?)\|(.+?)\]$/);if(v){u(),d();const[,g,y]=v,b=/^https?:\/\//.test(y);r.push(b?l.jsx("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center my-8 px-8 py-3 text-white font-medium rounded-full transition-all",children:g},c++):l.jsx(mt,{to:y,className:"stateful-btn inline-flex items-center justify-center my-8 px-8 py-3 text-white font-medium rounded-full transition-all",children:g},c++));continue}const p=f.match(/^\[MEDIA_BLOCK_(\d+)\]$/);if(p&&e){u(),d();const g=parseInt(p[1]);e[g]&&r.push(l.jsx(VWe,{media:e[g]},c++));continue}if(f.startsWith("## ")){u(),d(),r.push(l.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mt-12 mb-6",children:f.slice(3)},c++));continue}if(f.startsWith("### ")){u(),d(),r.push(l.jsx("h3",{className:"text-xl md:text-2xl font-semibold text-white mt-10 mb-4",children:f.slice(4)},c++));continue}if(f.startsWith("- ")){u(),s||(s=!0,a="ul"),o.push(f.slice(2));continue}if(/^\d+\.\s/.test(f)){u(),s||(s=!0,a="ol"),o.push(f.replace(/^\d+\.\s/,""));continue}s&&f===""?d():f===""?u():i.push(f)}return u(),d(),r};function GWe(){const{slug:t}=nue(),e=t?gA[t]:null;if(!e)return l.jsx("div",{className:"min-h-screen py-20",children:l.jsxs("div",{className:"container mx-auto px-4 text-center",children:[l.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Article Not Found"}),l.jsx("p",{className:"text-muted-foreground mb-8",children:"The article you're looking for doesn't exist."}),l.jsx(Ge,{asChild:!0,children:l.jsx(mt,{to:"/news",children:"Back to News"})})]})});const n=Object.entries(gA).filter(([i])=>i!==t).slice(0,3).map(([i,s])=>({slug:i,...s})),r=Object.entries(gA).filter(([i])=>i!==t).slice(0,4).map(([i,s])=>({slug:i,...s}));return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsxs("title",{children:[e.title," | RORA News"]}),l.jsx("meta",{name:"description",content:e.description}),l.jsx("link",{rel:"canonical",href:`https://rora.one/news/${t}`})]}),l.jsx("div",{className:"min-h-screen py-12 md:py-20",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsx(ve.div,{initial:{opacity:0,x:-20}
6897,animate:{opacity:1,x:0},transition:{duration:.4},className:"mb-8 max-w-6xl mx-auto",children:l.jsxs(mt,{to:"/news",className:"inline-flex items-center text-white/50 hover:text-white transition-colors text-sm",children:[l.jsx(GC,{className:"w-4 h-4 mr-2"}),"Back to News"]})}),l.jsxs("div",{className:"max-w-6xl mx-auto flex flex-col lg:flex-row gap-12",children:[l.jsxs("div",{className:"flex-1 max-w-3xl",children:[l.jsxs(ve.header,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-8",children:[l.jsx("div",{className:"mb-4",children:l.jsx("span",{className:`text-xs font-semibold uppercase tracking-wider text-white/70 pb-1 ${bz[e.category]}`,children:e.categoryLabel})}),l.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-6 leading-tight",children:e.title}),l.jsxs("div",{className:"flex items-center gap-4 text-white/50 text-sm",children:[l.jsxs("div",{className:"flex items-center",children:[l.jsx(bse,{className:"w-4 h-4 mr-2"}),l.jsx("time",{children:e.date})]}),l.jsxs("div",{className:"flex items-center",children:[l.jsx(Ese,{className:"w-4 h-4 mr-2"}),l.jsx("span",{children:zWe(e.content)})]})]})]}),l.jsx(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mb-10",children:l.jsx("div",{className:"aspect-video overflow-hidden rounded-2xl bg-white/5",children:e.heroVideo?l.jsx("video",{src:e.heroVideo,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-cover"}):e.heroImage?l.jsx("img",{src:e.heroImage,alt:e.title,className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full bg-gradient-to-br from-[#E2628A]/20 to-[#6200EE]/20"})})}),l.jsxs(ve.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},children:[e.takeaways&&e.takeaways.length>0&&l.jsx(HWe,{items:e.takeaways,cta:e.takeawaysCta}),l.jsx("div",{className:"text-lg",children:WWe(e.content,e.mediaBlocks)}),e.tags&&e.tags.length>0&&l.jsx("div",{className:"mt-16 pt-8 border-t border-white/10",children:l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l.jsx("span",{className:"text-white/50 text-sm mr-2",children:"Tags:"}),e.tags.map((i,s)=>l.jsx("span",{className:"px-3 py-1 text-sm bg-white/5 rounded-full text-white/70",children:i},s))]})})]})]}),l.jsx(ve.aside,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6,delay:.3},className:"hidden lg:block w-72 flex-shrink-0",children:l.jsxs("div",{className:"sticky top-24",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[l.jsx("svg",{className:"w-4 h-4 text-white/60",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:l.jsx("path",{d:"M6 9l6 6 6-6"})}),l.jsx("span",{className:"text-sm font-semibold uppercase tracking-wider text-white/60",children:"Recent News"})]}),l.jsx("div",{className:"space-y-4",children:r.map(i=>l.jsxs(mt,{to:`/news/${i.slug}`,className:"group flex items-start gap-3 py-4 border-t border-white/10 first:border-t-0 first:pt-0",children:[l.jsx("div",{className:"flex-1",children:l.jsx("h3",{className:"text-sm font-medium text-white/90 group-hover:text-[#E2628A] transition-colors line-clamp-3 leading-snug",children:i.title})}),l.jsx("div",{className:"flex-shrink-0 w-6 h-6 rounded-full border border-white/20 flex items-center justify-center group-hover:border-[#E2628A] group-hover:text-[#E2628A] transition-colors",children:l.jsx("svg",{className:"w-3 h-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:l.jsx("path",{d:"M9 18l6-6-6-6"})})})]},i.slug))})]})})]}),(()=>{const i=e.ctaSection??{title:"Ready to try RORA?",description:"Download RORA for free and start customizing your audio experience.",label:"Get It Now",href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj"},s=/^https?:\/\//.test(i.href);return l.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},className:"max-w-6xl mx-auto mt-16 pt-12 border-t border-white/10 text-center",children:[l.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-4",children:i.title}),l.jsx("p",{className:"text-white/60 mb-8 max-w-lg mx-auto",children:i.description}),s?l.jsx("a",{href:i.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center px-8 py-4 rounded-full bg-gradient-to-r from-[#E2628A] to-[#6200EE] text-white font-semibold hover:opacity-90 transition-opacity text-lg",children:i.label}):l.jsx(mt,{to:i.href,className:"inline-flex items-center px-8 py-4 rounded-full bg-gradient-to-r from-[#E2628A] to-[#6200EE] text-white font-semibold hover:opacity-90 transition-opacity text-lg",children:i.label})]})})(),n.length>0&&l.jsxs(ve.div,{initial:{opacity:0,y:20}
6897,animate:{opacity:1,y:0},transition:{duration:.6,delay:.4},className:"max-w-6xl mx-auto mt-20 pt-12 border-t border-white/10",children:[l.jsx("h2",{className:"text-xl font-semibold text-white mb-8",children:"Related News"}),l.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:n.map(i=>l.jsxs(mt,{to:`/news/${i.slug}`,className:"group block",children:[l.jsx("div",{className:"aspect-video overflow-hidden rounded-xl bg-white/5 mb-4",children:i.heroVideo?l.jsx("video",{src:i.heroVideo,muted:!0,playsInline:!0,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}):i.heroImage?l.jsx("img",{src:i.heroImage,alt:i.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}):l.jsx("div",{className:"w-full h-full bg-gradient-to-br from-[#E2628A]/20 to-[#6200EE]/20"})}),l.jsx("div",{className:"mb-2",children:l.jsx("span",{className:`text-xs font-semibold uppercase tracking-wider text-white/70 pb-1 ${bz[i.category]}`,children:i.categoryLabel})}),l.jsx("h3",{className:"font-semibold text-white group-hover:text-white/80 transition-colors line-clamp-2",children:i.title}),l.jsx("time",{className:"text-sm text-white/40 mt-2 block",children:i.date})]},i.slug))})]})]})})]})}const qWe=Lv.flatMap(t=>t.filters),YWe=()=>l.jsx("span",{className:"ml-auto shrink-0 text-[10px] font-semibold uppercase tracking-wider px-2 py-0.5 rounded-full bg-gradient-to-r from-[#ff4d9b]/25 to-[#9945ff]/25 border border-white/20 text-white/90",children:"New"}),XWe=Lv.reduce((t,e)=>(e.filters.forEach(n=>{t[n.slug]=n.icon}),t),{}),ss=({title:t,tagline:e,icon:n,category:r,overview:i,detailedDescription:s,specs:o,useCases:a,howItWorks:c,faqs:u,relatedFilters:d,audioDemo:h,uiPreview:f,customPreview:m,customPreviewFullWidth:v,customPreviewTitle:p,circularTextWrap:g,examplePrompts:y,tryNowDescription:b})=>{t.toLowerCase().replace(/\s+/g,"-");const x={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://rora.one"},{"@type":"ListItem",position:2,name:"Features",item:"https://rora.one/features"},{"@type":"ListItem",position:3,name:t}]},w=u.length>0?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:u.map(_=>({"@type":"Question",name:_.question,acceptedAnswer:{"@type":"Answer",text:_.answer}}))}:null;return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("script",{type:"application/ld+json",children:JSON.stringify(x)}),w&&l.jsx("script",{type:"application/ld+json",children:JSON.stringify(w)})]}),l.jsxs("div",{className:"min-h-screen relative z-10",children:[l.jsx("section",{className:"pt-20 pb-16",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsx(Tt,{duration:700,children:l.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[l.jsx("div",{className:"w-20 h-20 mx-auto mb-6 flex items-center justify-center rounded-2xl aurora-bg-subtle",children:n}),l.jsx("h1",{className:"text-5xl md:text-7xl font-bold mb-6 text-foreground",children:t}),l.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground mb-8",children:e}),l.jsx("div",{className:"flex justify-center",children:l.jsxs(NS,{modal:!1,children:[l.jsx(kS,{asChild:!0,children:l.jsxs(Ge,{variant:"outline",size:"lg",className:"glass group relative z-[51]",children:["Explore All Filters",l.jsx(pp,{className:"ml-2 h-4 w-4 chevron-rotate group-data-[state=open]:rotate-180"})]})}),l.jsx($0,{className:"w-[90vw] max-w-6xl max-h-[80vh] overflow-y-auto p-6 bg-white/10 backdrop-blur-xl border-white/20 z-50 dropdown-menu-animate rounded-3xl shadow-2xl shadow-black/20",align:"center",sideOffset:12,children:l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:qWe.map(_=>{const S=_.name===t;return l.jsxs(mt,{to:`/features/${_.slug}`,className:`flex items-center gap-3 px-5 py-3 rounded-full transition-all group dropdown-item-animate ${S?"bg-white/20 border border-white/30":"border border-transparent hover:border-white/20 hover:bg-white/10"}`,children:[l.jsx("div",{className:`w-5 h-5 flex items-center justify-center flex-shrink-0 [&>svg]:transition-colors [&>img]:transition-all ${S?"[&>svg]:text-white [&>img]:brightness-0 [&>img]:invert-[1]":"[&>
6897svg]:text-foreground/70 [&>svg]:group-hover:text-white [&>img]:group-hover:brightness-0 [&>img]:group-hover:invert-[1]"}`,children:XWe[_.slug]}),l.jsx("h4",{className:`text-sm transition-colors flex-1 min-w-0 ${S?"text-white font-semibold":"text-foreground/70 font-normal group-hover:text-white"}`,children:_.name}),_.isNew&&l.jsx(YWe,{})]},_.slug)})})})]})})]})})})}),l.jsx("section",{className:"py-16",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsx("div",{className:"max-w-4xl mx-auto",children:l.jsxs(Tt,{duration:600,children:[l.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-foreground text-center",children:["What is ",t,"?"]}),l.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed mb-6",children:i}),m&&!v&&l.jsx("div",{className:"float-left mr-6 mb-4 w-[50%] relative z-10",style:g?{shapeOutside:"circle(50%)",shapeMargin:"1rem"}:void 0,children:m}),l.jsx("div",{className:"space-y-4",children:s.map((_,S)=>l.jsx("p",{className:"text-base text-muted-foreground leading-relaxed",children:_},S))})]})})})}),m&&v&&l.jsx("section",{className:"py-16",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsx("div",{className:"max-w-6xl mx-auto",children:l.jsxs(Tt,{duration:600,children:[p!==!1&&l.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-8 text-foreground text-center",children:p??"Interactive Visualizer"}),m]})})})}),l.jsx("section",{className:"py-16",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsx("div",{className:"max-w-4xl mx-auto text-center",children:l.jsxs(Tt,{duration:600,children:[l.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-foreground",children:["Try ",t," Now"]}),l.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-2xl mx-auto",children:b??"Available free in the RORA Chrome extension. Works with any audio in your browser."}),l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center h-auto py-4 px-10 text-lg font-semibold text-white rounded-full",children:[l.jsx(Vr,{className:"w-5 h-5 mr-3 text-white flex-shrink-0"}),l.jsx("span",{className:"whitespace-nowrap",children:"Get It Now"})]})]})})})}),l.jsx("section",{className:"py-16",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-3xl md:text-4xl font-bold mb-8 text-foreground text-center",children:"Technical Specifications"}),l.jsx(Tt,{duration:600,delay:100,children:l.jsx("div",{className:"glass p-8 rounded-2xl border border-border",children:l.jsx("dl",{className:"space-y-6",children:o.map((_,S)=>l.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center border-b border-border/50 pb-4 last:border-0 last:pb-0",children:[l.jsx("dt",{className:"text-sm font-medium text-muted-foreground mb-2 sm:mb-0",children:_.label}),l.jsx("dd",{className:"text-base font-semibold text-foreground",children:_.value})]},S))})})})]})})}),l.jsx("section",{className:"py-16",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-3xl md:text-4xl font-bold mb-8 text-foreground text-center",children:"Perfect For"}),l.jsx(Tt,{duration:600,delay:100,children:l.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:a.map((_,S)=>l.jsxs("div",{className:"glass p-6 rounded-xl border border-border",children:[l.jsx("h3",{className:"text-xl font-bold text-foreground mb-3",children:_.title}),l.jsx("p",{className:"text-muted-foreground",children:_.description})]},S))})})]})})}),y&&y.length>0&&l.jsx("section",{className:"py-16",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",
6897scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-3xl md:text-4xl font-bold mb-8 text-foreground text-center",children:"Example Prompts"}),l.jsxs(Tt,{duration:600,delay:100,children:[l.jsx("p",{className:"text-center text-muted-foreground mb-8 max-w-2xl mx-auto",children:"You can be literal, poetic, or casual. Conjure works best with a clear mood, place, or texture in mind."}),l.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:y.map((_,S)=>l.jsxs("div",{className:"glass p-5 rounded-xl border border-border text-muted-foreground italic",children:["â",_,"â"]},S))})]})]})})}),l.jsx("section",{className:"py-16",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-3xl md:text-4xl font-bold mb-8 text-foreground text-center",children:"Frequently Asked Questions"}),l.jsx(Tt,{duration:600,delay:100,children:l.jsx("div",{className:"space-y-6",children:u.map((_,S)=>l.jsxs("div",{className:"glass p-6 rounded-xl border border-border",children:[l.jsx("h3",{className:"text-lg font-bold text-foreground mb-3",children:_.question}),l.jsx("p",{className:"text-muted-foreground",children:_.answer})]},S))})})]})})}),d.length>0&&l.jsx("section",{className:"py-16",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-3xl md:text-4xl font-bold mb-8 text-foreground text-center",children:"Related Filters"}),l.jsx(Tt,{duration:600,delay:100,children:l.jsx("div",{className:"flex flex-wrap justify-center gap-4",children:d.map(_=>l.jsx(Ge,{variant:"outline",size:"lg",className:"glass",asChild:!0,children:l.jsx(mt,{to:`/features/${_.slug}`,children:_.name})},_.slug))})})]})})}),l.jsx("section",{className:"py-24",children:l.jsx("div",{className:"container mx-auto px-4 text-center",children:l.jsxs(Tt,{duration:700,children:[l.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-foreground",children:["Ready to Try ",t,"?"]}),l.jsxs("p",{className:"text-xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:[t==="Master Volume"&&"Try it on your next quiet YouTube video",t==="Smooth Pro"&&"Test it on a noisy podcast",t==="Bass Cut"&&"Try it on dialogue-heavy content",t==="Bass Boost"&&"Hear the difference on your favorite track",t==="Muffler"&&"Perfect for late-night listening",t==="Visual EQ"&&"Start with a preset. Make it yours.",t==="Spatial Audio"&&"Put on headphones and try it",t==="Reverb"&&"Add some space to a dry recording",t==="Echo"&&"Add some echoes and hear the vibe",t==="Pitch Shift"&&"Match a song to your voice",t==="Tempo"&&"Slow down that fast part and finally learn it",t==="Recording"&&"Capture your next listen in pristine quality",t==="Share"&&"Create your first shareable preset",t==="Conjure"&&"Open the popup and ask Conjure for a vibe"]}),l.jsx(Ge,{size:"lg",variant:"premium",asChild:!0,children:l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",children:[l.jsx(Vr,{className:"w-5 h-5 mr-2 text-white"}),"Get It Now"]})})]})})})]})]})},KWe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Master Volume - Make Quiet Audio Listenable | RORA"}),l.jsx("meta",{name:"description",content:"Boost quiet videos, podcasts, and recordings up to 4x louder without distortion. Works with any audio in your browser."}),l.jsx("meta",{property:"og:title",content:"Master Volume - Audio Amplification | RORA"}),l.jsx("meta",{property:"og:description",content:"Boost quiet audio up to 4x louder without distortion or clipping."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/master-volume"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Master Volume - Audio Amplification | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Boost quiet audio up to 4x louder without distortion or clipping."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/master-volume"})]}),l.jsx(ss,{title:"Master Volume",tagline:"Make quiet audio listenable",icon:l.jsx(AN,{className:"w-12 h-12 text-white"}),category:"Amplification Control",overview:"Some videos are too quiet even at full volume. Old podcasts recorded with bad mics. Foreign films where the dialogue gets lost. Master Volume fixes that, boosting audio up to 4x louder without distortion.",detailedDescription:["Your device has a volume limit. Master Volume doesn't. It amplifies audio beyond what your computer normally allows, so quiet content becomes listenable without cranking up your speakers and blowing out your ears when the next video plays.","The filter controls bass, mids, and highs separately to prevent that harsh, clipped sound you get when you try to force regular volume controls past their limit. Quiet audio gets louder. Already-loud audio stays clean.","Works on anything playing in your browser: streaming services, video sites, podcasts, video calls, old recordings. No setup, no configuration. Just turn it up."],specs:[{label:"Maximum Boost",value:"4x (12dB gain)"},{label:"Frequency Coverage",value:"Full range (20Hz - 20kHz)"},{label:"Distortion Prevention",value:"Yes, adaptive limiting"},{label:"Delay",value:"Under 5ms (you won't notice)"},{label:"CPU Usage",value:"Low"},{label:"Works With",value:"Any browser audio source"}],useCases:[{title:"Quiet Foreign Films",description:"Dialogue in subtitled films is often mixed low. Boost it without waking the neighbors when action scenes hit."},{title:"Podcasts with Bad Audio",description:"Some podcasts are recorded too quietly or with inconsistent levels. Make them listenable without constantly adjusting volume."},{title:"Old Videos",description:"Videos from 2010 were often recorded with cheap microphones. Bring them up to modern volume levels."},{title:"Video Calls",description:"When someone on a call is too quiet, boost their audio without affecting your own microphone."}
6897],howItWorks:["Audio comes in and gets analyzed for current loudness levels.","Bass, mids, and treble are boosted separately so the sound stays balanced.","A limiter catches any peaks that would cause distortion or clipping.","Clean, amplified audio comes out, up to 4x louder than the original."],faqs:[{question:"Will this damage my speakers or headphones?",answer:"No. The built-in limiter prevents the audio from exceeding safe levels. It makes quiet things louder, not loud things dangerous."},{question:"Why not just use my computer's volume control?",answer:"Your computer's volume has a maximum. Master Volume goes beyond that, up to 4x louder, while keeping the sound clean."},{question:"Does it work with all websites?",answer:"Yes. Anything playing audio in your browser: streaming services, video sites, podcasts, video calls, web games, all of it."},{question:"Will it make distorted audio sound good?",answer:"It won't fix already-distorted audio, but it won't make it worse either. It's best for audio that's simply too quiet."},{question:"Can I use it with other RORA filters?",answer:"Yes. Try it with Smooth Pro to boost quiet audio while also cleaning up background noise."}],relatedFilters:[{name:"Smooth Pro",slug:"smooth-pro"},{name:"Bass Boost",slug:"bass-boost"},{name:"Visual EQ",slug:"visual-eq"}]})]}),QWe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Smooth Pro - Remove Backgroun
6897d Noise | RORA"}),l.jsx("meta",{name:"description",content:"Remove background hiss, hum, and room noise while keeping voices and music clear. Works in real-time with any audio in your browser."}),l.jsx("meta",{property:"og:title",content:"Smooth Pro - Noise Reduction | RORA"}),l.jsx("meta",{property:"og:description",content:"Remove distracting background noise. Keep what matters."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/smooth-pro"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Smooth Pro - Noise Reduction | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Remove distracting background noise. Keep what matters."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/smooth-pro"})]}),l.jsx(ss,{title:"Smooth Pro",tagline:"Less noise. More of what matters.",icon:l.jsx("img",{src:"/icons/ionicons/water.svg",className:"w-12 h-12 brightness-0 invert",alt:"Smooth Pro icon"}),category:"Audio Cleanup",overview:"Air conditioner hum in a podcast. Electrical buzz in an old recording. Fan noise in a video. Smooth Pro reduces this background noise while keeping voices and music sounding natural.",detailedDescription:['The filter learns what "silence" sounds like in your audio: the steady hum, hiss, or buzz that runs underneath everything. Then it separates that noise from the actual content and turns it down.','Unlike simple volume controls that affect everything equally, Smooth Pro works frequency by frequency. It asks: "Is this a voice, or is this noise?" Voices pass through. Noise gets reduced.',"At moderate settings, you won't notice it's working. The audio just sounds cleaner. At higher settings, it gets more aggressive, which helps with really noisy recordings but might affect audio quality on quiet passages."],specs:[{label:"What It Removes",value:"Hiss, hum, buzz, room noise"},{label:"What It Keeps",value:"Voices, music, foreground sounds"},{label:"Delay",value:"About 5ms (imperceptible)"},{label:"Intensity Range",value:"0-150% (100% = standard)"},{label:"CPU Usage",value:"Low to moderate"},{label:"Works With",value:"Any browser audio"}],useCases:[{title:"Noisy Podcasts",description:"Remove microphone hiss, room noise, and HVAC rumble from podcast audio. Makes home-recorded shows sound more polished."},{title:"Old Recordings",description:"Reduce tape hiss and electrical hum from digitized vinyl, cassettes, or old video transfers."},{title:"Streaming Video",description:"Clean up compressed audio from streaming services. Reduce background artifacts from low-quality source recordings."},{title:"Video Calls",description:"Reduce background noise while listening to other people on calls. Improves clarity in noisy environments."}],howItWorks:["Audio is analyzed to identify steady background sounds (the noise floor).","Each frequency is checked: Is this sound significantly louder than the noise floor?","Sounds that are mostly noise get reduced. Sounds that are mostly content pass through.","The result is smoother, cleaner audio without the distracting background noise."],faqs:[{question:"Will this make my audio sound processed or artificial?",answer:"At moderate settings (75-100%), no. The noise reduction is designed to sound natural. At maximum intensity (150%), you may notice some artifacts on very noisy sources."},{question:"Can it remove voices or music I don't want?",answer:"No. Smooth Pro removes steady background noise (hiss, hum), not foreground content. It can't isolate or remove specific voices or instruments."},{question:"Does it work on music, or just voice?",answer:"Both. It identifies and removes noise while preserving whatever the main audio content is, whether that's speech, music, or sound effects."},{question:"Why not just use EQ to cut the noise?",answer:"EQ affects everything at that frequency all the time. Smooth Pro analyzes moment by moment, only reducing noise when it's actually present."},{question:"What about the CPU impact?",answer:"Minimal. The processing runs efficie
6897ntly in a separate thread. Typical CPU usage is 2-5% on modern computers."}],relatedFilters:[{name:"Visual EQ",slug:"visual-eq"},{name:"Bass Cut",slug:"bass-cut"},{name:"Muffler",slug:"muffler"}],uiPreview:{icon:"icon ion-md-water",defaultValue:100,min:0,max:150,scaleLabels:["Off","Standard","Aggressive"]}})]}),ZWe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Bass Cut - Reduce Boomy Audio | RORA"}),l.jsx("meta",{name:"description",content:"Reduce bass and low rumble to make voices clearer. Perfect for podcasts, dialogue-heavy content, or fixing boomy speakers."}),l.jsx("meta",{property:"og:title",content:"Bass Cut - Voice Clarity | RORA"}),l.jsx("meta",{property:"og:description",content:"Reduce bass. Hear dialogue clearly."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/bass-cut"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Bass Cut - Voice Clarity | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Reduce bass. Hear dialogue clearly."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/bass-cut"})]}),l.jsx(ss,{title:"Bass Cut",tagline:"Less boom. More clarity.",icon:l.jsx("img",{src:"/icons/ionicons/trending-down.svg",className:"w-12 h-12 brightness-0 invert",alt:"Bass Cut icon"}),category:"Bass & Frequency Control",overview:"Some videos have background music that drowns out the speaker. Some rooms make everything sound boomy. Bass Cut reduces low frequencies so you can actually hear what people are saying.",detailedDescription:["Bass Cut uses two stages: one removes the deep rumble that makes audio muddy, the other gently reduces the upper bass region. Together, they clean up the low end without making things sound thin or hollow.","At low settings (30-50%), voices become clearer while music still sounds full. At higher settings (70%+), you get a more dramatic effect, think telephone or vintage radio, which some people actually prefer for podcasts.","Useful when your speakers or headphones have too much bass, or when you're listening at night and don't want the low frequencies bothering anyone."],specs:[{label:"What It Does",value:"Reduces bass frequencies"},{label:"Result",value:"Clearer dialogue, less muddiness"},{label:"Stages",value:"Two (deep bass removal + upper bass reduction)"},{label:"Delay",value:"Under 1ms"},{label:"Sound Character",value:"Natural at low settings, lo-fi at high settings"}],useCases:[{title:"Podcast Listening",description:"Remove low-frequency rumble from voice recordings. Makes dialogue clearer and easier to understand, especially with cheaper microphones."},{title:"Boomy Speakers",description:"If your speakers or room make everything sound bass-heavy, Bass Cut restores balance. Common fix for certain headphones with exaggerated low-end."},{title:"Late-Night Listening",description:"Reduce bass when watching videos late at night. Low frequencies travel through walls more than mid and high frequencies."},{title:"Small Speakers",description:"Laptop and phone speakers can't reproduce bass anyway. Cutting it removes wasted energy and can actually make small speakers sound clearer."}],howItWorks:["The first stage removes deep bass (subsonic rumble and room noise).","The second stage gently reduces the upper bass region.","The result is cleaner audio with improved voice clarity.","Higher intensity = more bass removed. Lower intensity = subtle cleanup."],faqs:[{question:"Will this make audio sound thin?",answer:"At moderate settings (30-60%), no. It maintains fullness while removing problem frequencies. At high settings (70%+), yes, that's the deliberate lo-fi effect."},{question:"Can I use this to fix muddy music?",answer:"Yes, but Visual EQ might be better for precise corrections. Bass Cut is good for broad bass reduction."},{question:"Why would anyone want to remove bass?",answer:"Common reasons: improving voice clarity, compensating for bass-heavy headphones, late-night listening, or simply personal preference."},{question:"Is this the opposite of Bass Boost?",answer:"Functionally yes, but they're designed differently. Each is optimized for its specific purpose."}],relatedFilters:[{name:"Bass Boost",slug:"bass-boost"},{name:"Visual EQ",slug:"visual-eq"},{name:"Smooth Pro",slug:"smooth-pro"}],uiPreview:{icon:"icon ion-md-remove-circle-outline",defaultValue:50,scaleLabels:["Gentle","Moderate","Strong"]}})]}),JWe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Bass Boost - Add Clean Low-End | RORA"}),l.jsx("meta",{name:"description",content:"Add bass to music, movies, and games without distortion. Works with any audio source in your browser."}),l.jsx("meta",{property:"og:title",content:"Bass Boost - Clean Bass Enhancement | RORA"}),l.jsx("meta",{property:"og:description",content:"More bass. No distortion."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/bass-boost"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Bass Boost - Clean Bass Enhancement | RORA"}),l.jsx("meta",{name:"twitter:description",content:"More bass. No distortion."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/bass-boost"})]}),l.jsx(ss,{title:"Bass Boost",tagline:"More bass. No distortion.",icon:l.jsx("img",{src:"/icons/ionicons/pulse.svg",className:"w-12 h-12 brightness-0 invert",alt:"Bass Boost icon"}),category:"Bass & Frequency Control",overview:"Laptop speakers that lack bass. Headphones that sound thin. Music that doesn't hit like it should. Bass Boost adds low-end punch without the muddy distortion you get from other bass boosters.",detailedDescription:["Bass Boost uses two stages: one enhances the overall bass range for warmth and depth, the other focuses on the deep frequencies you physically feel, the thump in your chest during a bass drop.","The boost is intentionally moderate (+6.5dB total) because extreme boosts cause distortion and poor sound quality. The result actually sounds more powerful because it's cleaner, no crackling or mud masking the impact.","Works on any audio in your browser: streaming music, movies, games, video sites. The effect is subtle enough to leave on all the time or dramatic enough for bass-heavy genres."],specs:[{label:"Maximum Boost",value:"+6.5dB (significant but clean)"},{label:"Bass Coverage",value:"Full low-end plus focused sub-bass"},{label:"Distortion",value:"None (within safe levels)"},{label:"Delay",value:"Under 1ms"},{label:"Safe for Equipment",value:"Yes"}],useCases:[{title:"Electronic Music & Hip-Hop",description:"Feel the sub-bass drops and 808s that some playback systems miss. Brings out the low-end energy in bass-heavy genres."},{title:"Movies & Gaming",description:"Add impact to explosions, rumbles, and sound effects. Makes action scenes more immersive without drowning out dialogue."},{title:"Thin Headphones",description:"Many earbuds and laptop speakers lack bass extension. Bass Boost adds perceived low-end even on small drivers."},{title:"Everyday Listening",description:"Some people just prefer more bass. The effect is clean enough to leave on permanently if that's your taste."}],howItWorks:["Stage one boosts the overall bass range, adding warmth and fullness.","Stage two focuses on the deep frequencies you feel physically.","Both stages are calibrated to stay clean. No distortion, oscillation, or artifacts.","The intensity slider scales both stages together for simple c
6897ontrol."],faqs:[{question:"Will this damage my speakers or headphones?",answer:"No. The boost levels are conservative (+6.5dB max) and safe for all equipment. If you're concerned, start at lower intensity."},{question:"Why only +6.5dB? Other bass boosters claim +25dB.",answer:"Extreme boosts cause distortion and poor sound quality. Our +6.5dB sounds more powerful because it's cleaner. No distortion masking the impact."},{question:"Will it work with small headphones or earbuds?",answer:"Yes. On small drivers that can't reproduce deep bass, the effect still creates the perception of enhanced low-end."},{question:"Will it make everything boomy and muddy?",answer:"No. The boost is focused on low frequencies without bleeding into the midrange. Vocals and instruments stay clear."}],relatedFilters:[{name:"Bass Cut",slug:"bass-cut"},{name:"Visual EQ",slug:"visual-eq"},{name:"Smooth Pro",slug:"smooth-pro"}],uiPreview:{icon:"icon ion-md-pulse",defaultValue:50,scaleLabels:["Subtle","Balanced","Maximum"]}})]}),eGe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Muffler - Soften Harsh Audio | RORA"}),l.jsx("meta",{name:"description",content:"Reduce harsh, piercing sounds for a warmer listening experience. Perfect for bright recordings, listening fatigue, or late-night use."}),l.jsx("meta",{property:"og:title",content:"Muffler - Warm Audio Effect | RORA"}),l.jsx("meta",{property:"og:description",content:"Soften harsh audio. Warmer sound."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/muffler"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Muffler - Warm Audio Effect | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Soften harsh audio. Warmer sound."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/muffler"})]}),l.jsx(ss,{title:"Muffler",tagline:"Soften harsh audio",icon:l.jsx("img",{src:"/icons/ionicons/volume-off.svg",className:"w-12 h-12 brightness-0 invert",alt:"Muffler icon"}),category:"Creative Effects",overview:"Some recordings are too bright: piercing highs, fatiguing harshness. Muffler reduces high frequencies to create a warmer, softer sound. At low settings it's subtle. At high settings it's like listening through a wall.",detailedDescription:["At low intensity (0-30%), Muffler acts as a gentle warmth enhancer. It rolls off harsh digital brightness while keeping clarity. Think vintage equipment or the natural softening that comes from good analog gear.","At medium intensity (30-70%), it creates lo-fi and retro effects: AM radio, cassette tape, old telephone. Some people actually prefer podcasts this way.","At high intensity (70-100%), the effect becomes dramatic. Distant voices, muffled sounds, underwater-style filtering. Useful for creative effects or when you just want something really soft."],specs:[{label:"What It Does",value:"Reduces high frequencies"},{label:"Result",value:"Warmer, softer sound"},{label:"Range",value:"Subtle warmth to dramatic muffling"},{label:"Delay",value:"Under 1ms"},{label:"Character",value:"Natural roll-off, no harshness"}],useCases:[{title:"Bright Recordings",description:"Tame harshness in overly bright mixes. Some streaming audio is aggressively compressed and benefits from softening."},{title:"Listening Fatigue",description:"Long listening sessions with harsh audio can be tiring. A touch of Muffler reduces ear strain."},{title:"Late-Night Listening",description:"High frequencies can feel more intrusive at night. Muffler creates a gentler sound for quiet hours."},{title:"Lo-Fi Aesthetics",description:"Create vintage, warm, nostalgic sounds. Medium to high settings give you that cassette-tape character."},{title:"Fatiguing Headphones",description:"Some headphones have harsh treble. Muffler at 10-30% can restore comfort without losing clarity."}],howItWorks:["Muffler progressively reduces high frequencies based on intensity.","At 0%, all frequencies pass through unchanged.","As intensity increases, more high frequencies are reduced.","The reduction is smooth and natural, no harsh cutoffs or ringing."],faqs:[{question:"Is this just a low-pass filter?",answer:"Technically yes, but the scaling is designed for musical results across the entire intensity range. Every adjustment sounds useful."},{question:"Will this reduce audio quality?",answer:"It removes high frequencies. That's the point. Quality is maintained (no distortion), but clarity is reduced by design."},{question:"Can I use this to fix harsh recordings?",answer:"Yes. 10-30% intensity can tame harshness while maintaining clarity. Visual EQ might be better for surgical corrections."},{question:"What's the difference between Muffler and Bass Boost?",answer:"Bass Boost adds low frequencies. Muffler removes high frequencies. Both can make audio sound bass-forward, but via different methods."}],relatedFilters:[{name:"Bass Boost",slug:"bass-boost"},{name:"Smooth Pro",slug:"smooth-pro"},{name:"Visual EQ",slug:"visual-eq"}],uiPreview:{icon:"icon ion-md-radio",defaultValue:50,scaleLabels:["Clear","Warm","Muffled"]}})]}),tGe=()=>{const t=E.useRef(null),e=E.useRef(),n=E.useRef({isAnimating:!1,startTime:0,duration:1e3,from:[],to:[]}),r=[32,64,125,250,500,1e3,2e3,4e3,8e3,16e3],i=E.useRef([0,0,0,0,0,0,0,0,0,0]),s={flat:[0,0,0,0,0,0,0,0,0,0],vocal:[0,-1,2,4,3,2,1,0,-1,-2],vShape:[4,3,1,-2,-3,-3,-2,1,3,4],edm:[6,5,2,-2,-3,-2,1,3,5,6],warm:[2,3,2,1,0,-1,-1,-2,-3,-4],presence:[-1,0,1,3,4,4,3,2,1,0]},o=["flat","vocal","vShape","edm","warm","presence"],a=E.useRef(0),c=f=>f<.5?4*f*f*f:1-Math.pow(-2*f+2,3)/2,u=f=>{const m=t.current;if(!m)return;const v=m.getContext("2d");if(!v)return;const p=window.devicePixelRatio||1,g=m.getBoundingClientRect();m.width=g.width*p,m.height=g.height*p,v.scale(p,p);const y=g.width,b=g.height,x=40,w=y-x*2,_=b-x*2;v.clearRect(0,0,y,b),v.globalAlpha=1;const S=v.createLinearGradient(x,0,y-x,0);S.addColorStop(0,"#41F4AE"),S.addColorStop(.5,"#6200EE"),S.addColorStop(1,"#E2628A");const T=f.map((A,C)=>{const R=x+C/(r.length-1)*w,j=x+_/2-A/12*(_/2);return{x:R,y:j}});v.beginPath(),v.moveTo(T[0].x,T[0].y);for(let A=0;A<T.length-1;A++){const C=T[Math.max(0,A-1)],R=T[A],j=T[A+1],k=T[Math.min(T.length-1,A+2)],P=30;for(let O=0;O<=P;O++){const L=O/P,F=L*L,D=F*L,I=.5*(2*R.x+(-C.x+j.x)*L+(2*C.x-5*R.x+4*j.x-k.x)*F+(-C.x+3*R.x-3*j.x+k.x)*D),N=.5*(2*R.y+(-C.y+j.y)*L+(2*C.y-5*R.y+4*j.y-k.y)*F+(-C.y+3*R.y-3*j.y+k.y)*D);v.lineTo(I,N)}}v.strokeStyle=S,v.lineWidth=3,v.lineCap="round",v.lineJoin="round",v.stroke(),v.lineTo(y-x,b-x),v.lineTo(x,b-x),v.closePath();const M=v.createLinearGradient(x,0,y-x,0);M.addColorStop(0,"rgba(65, 244, 174, 0.35)"),M.addColorStop(.5,"rgba(98, 0, 238, 0.35)"),M.addColorStop(1,"rgba(226, 98, 138, 0.35)"),v.fillStyle=M,v.fill(),T.forEach(A=>{v.beginPath(),v.arc(A.x,A.y,6,0,Math.PI*2),v.fillStyle="#ffffff",v.fill(),v.strokeStyle="hsl(var(--background))",v.lineWidth=2,v.stroke()}),v.fillStyle="hsl(var(--muted-foreground))",v.font="10px Inter, sans-serif",v.textAlign="center",r.forEach((A,C)=>{const R=x+C/(r.length-1)*w,j=A>=1e3?`${A/1e3}k`:A.toString();v.fillText(j,R,b-x+20)})},d=f=>{const m=n.current;if(!m.isAnimating)return;const v=f-m.startTime,p=Math.min(v/m.duration,1),g=c(p),y=m.from.map((b,x)=>{const w=m.to[x];return b+(w-b)*g});i.current=y,u(y),p<1?e.current=requestAnimationFrame(d):m.isAnimating=!1},h=f=>{const m=n.current;m.from=[...i.current],m.to=s[f],m.startTime=performance.now(),m.isAnimating=!0,e.current=requestAnimationFrame(d)};return E.useEffect(()=>{u(i.current);const f=setInterval(()=>{a.current=(a.current+1)%o.length;const m=o[a.current];h(m)},3e3);return()=>{clearInterval(f),e.current&&cancelAnimationFrame(e.current)}},[]),l.jsx("div",{className:"w-full relative",children:l.jsx("canvas",{ref:t,className:"w-full h-[200px] rounded-xl border border-border/50"})})},nGe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Visual EQ - 10-Band Equalizer | RORA"}),l.jsx("meta",{name:"description",content:"Adjust frequencies with a visual 10-band equal
6897izer. Drag and drop interface with 12 presets. No audio knowledge required."}),l.jsx("meta",{property:"og:title",content:"Visual EQ - Graphic Equalizer | RORA"}),l.jsx("meta",{property:"og:description",content:"Your sound. Your way. 10 bands, 12 presets."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/visual-eq"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Visual EQ - Graphic Equalizer | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Your sound. Your way. 10 bands, 12 presets."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/visual-eq"})]}),l.jsx(ss,{title:"Visual EQ",tagline:"Your sound. Your way.",icon:l.jsx("img",{src:"/icons/ionicons/analytics.svg",className:"w-12 h-12 brightness-0 invert",alt:"Visual EQ icon"}),category:"Frequency Control",overview:"You want more bass. Or clearer vocals. Or brighter guitars. Visual EQ is a 10-band equalizer with drag-and-drop controls. Start with a preset or create your own sound. No audio engineering knowledge required.",customPreview:l.jsx(tGe,{}),detailedDescription:["Each of the 10 frequency bands is a draggable control point. Click and drag to boost or cut. The curve updates in real-time so you can see exactly what you're changing.","The 10 bands cover the full range of human hearing, from deep bass at 32Hz to high treble at 16kHz. They're positioned at standard frequencies used in professional audio equipment.","12 presets are included: Flat, Bass+, Treble+, Vocal, V-Shape, EDM, Acoustic, Rock, Podcast, Movie, Warm, and Presence. Each is designed for its purpose. Or ignore them and make your own."],specs:[{label:"Bands",value:"10 (32Hz to 16kHz)"},{label:"Adjustment Range",value:"±12dB per band"},{label:"Presets",value:"12 built-in + custom save/load"},{label:"Interface",value:"Visual drag-and-drop"},{label:"Delay",value:"Under 1ms"},{label:"Changes",value:"Smooth, no clicks or pops"}],useCases:[{title:"Music Preference",description:"Like more bass in your hip-hop? Brighter guitars in your rock? Adjust to taste and save your settings."},{title:"Headphone Compensation",description:"Many headphones have frequency imbalances. Use Visual EQ to flatten the response or adjust to your preference."},{title:"Content Matching",description:"Different content benefits from different EQ. Use the Podcast preset for voice, EDM for electronic music, Movie for films."},{title:"Voice Clarity",description:"Boost the midrange frequencies where voices live. Makes dialogue easier to hear in movies and podcasts."}],howItWorks:["Audio passes through all 10 bands in sequence.","Each band boosts or cuts its frequency range based on your settings.","The combined effect shapes the overall sound.","Changes are applied smoothly to prevent clicks when adjusting."],faqs:[{question:"How is this different from Bass Boost or other filters?",answer:"Visual EQ offers precision: you control 10 specific frequencies. Bass Boost is simpler, optimized for overall bass enhancement. Use what fits your needs."},{question:"Can extreme settings damage my equipment?",answer:"Unlikely, but boosting all bands to maximum simultaneously creates a lot of gain. Moderate use (±6dB) is completely safe."},{question:"Why 10 bands?",answer:"It balances precision with usability. More bands means more complexity without much practical benefit. Professional mixing consoles often use 8-10 bands."},{question:"Can I save my own presets?",answer:"Yes. Adjust the bands to your preference, then click Save Custom. Your preset persists across browser sessions."},{question:"Will this introduce audio artifacts?",answer:"Minimal. At extreme settings (±12dB) you may hear slight coloration, but it's musically acceptable."}],relatedFilters:[{name:"Bass Boost",slug:"bass-boost"},{name:"Bass Cut",slug:"bass-cut"},{name:"Smooth Pro",slug:"smooth-pro"}]})]});/** 6898 * @license 6899 * Copyright 2010-2023 Three.js Authors 6900 * SPDX-License-Identifier: MIT 6901 */const q3="160",rGe=0,_z=1,iGe=2,ote=1,sGe=2,Ka=3,ru=0,ts=1,ol=2,Vc=0,nm=1,Sz=2,Ez=3,Tz=4,oGe=5,Qu=100,aGe=101,lGe=102,Az=103,Cz=104,cGe=200,uGe=201,dGe=202,hGe=203,pj=204,gj=205,fGe=206,mGe=207,pGe=208,gGe=209,vGe=210,yGe=211,xGe=212,bGe=213,wGe=214,_Ge=0,SGe=1,EGe=2,N_=3,TGe=4,AGe=5,CGe=6,MGe=7,Y3=0,RGe=1,PGe=2,Wc=0,jGe=1,NGe=2,kGe=3,OGe=4,IGe=5,LGe=6,ate=300,op=301,ap=302,vj=303,yj=304,H2=306,xj=1e3,Fo=1001,bj=1002,_i=1003,Mz=1004,vA=1005,Ys=1006,DGe=1007,h0=1008,Gc=1009,FGe=1010,UGe=1011,X3=1012,lte=1013,Ac=1014,Cc=1015,f0=1016,cte=1017,ute=1018,Od=1020,BGe=1021,Uo=1023,zGe=1024,$Ge=1025,Id=1026,lp=1027,HGe=1028,dte=1029,VGe=1030,hte=1031,fte=1033,yA=33776,xA=33777,bA=33778,wA=33779,Rz=35840,Pz=35841,jz=35842,Nz=35843,mte=36196,kz=37492,Oz=37496,Iz=37808,Lz=37809,Dz=37810,Fz=37811,Uz=37812,Bz=37813,zz=37814,$z=37815,Hz=37816,Vz=37817,Wz=37818,Gz=37819,qz=37820,Yz=37821,_A=36492,Xz=36494,Kz=36495,WGe=36283,Qz=36284,Zz=36285,Jz=36286,pte=3e3,Ld=3001,GGe=3200,qGe=3201,gte=0,YGe=1,Xs="",Dr="srgb",Nl="srgb-linear",K3="display-p3",V2="display-p3-linear",k_="linear",Sn="srgb",O_="rec709",I_="p3",zh=7680,e8=519,XGe=512,KGe=513,QGe=514,vte=515,ZGe=516,JGe=517,eqe=518,tqe=519,t8=35044,n8="300 es",wj=1035,fl=2e3,L_=2001;class Hp{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const r=this._listeners;r[e]===void 0&&(r[e]=[]),r[e].indexOf(n)===-1&&r[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const r=this._listeners;return r[e]!==void 0&&r[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const i=this._listeners[e];if(i!==void 0){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const r=this._listeners[e.type];if(r!==void 0){e.target=this;const i=r.slice(0);for(let s=0,o=i.length;s<o;s++)i[s].call(this,e);e.target=null}}}const Xr=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","5
69015","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let r8=1234567;const Dv=Math.PI/180,m0=180/Math.PI;function Vp(){const t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(Xr[t&255]+Xr[t>>8&255]+Xr[t>>16&255]+Xr[t>>24&255]+"-"+Xr[e&255]+Xr[e>>8&255]+"-"+Xr[e>>16&15|64]+Xr[e>>24&255]+"-"+Xr[n&63|128]+Xr[n>>8&255]+"-"+Xr[n>>16&255]+Xr[n>>24&255]+Xr[r&255]+Xr[r>>8&255]+Xr[r>>16&255]+Xr[r>>24&255]).toLowerCase()}function Si(t,e,n){return Math.max(e,Math.min(n,t))}function Q3(t,e){return(t%e+e)%e}function nqe(t,e,n,r,i){return r+(t-e)*(i-r)/(n-e)}function rqe(t,e,n){return t!==e?(n-t)/(e-t):0}function Fv(t,e,n){return(1-n)*t+n*e}function iqe(t,e,n,r){return Fv(t,e,1-Math.exp(-n*r))}function sqe(t,e=1){return e-Math.abs(Q3(t,e*2)-e)}function oqe(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function aqe(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function lqe(t,e){return t+Math.floor(Math.random()*(e-t+1))}function cqe(t,e){return t+Math.random()*(e-t)}function uqe(t){return t*(.5-Math.random())}function dqe(t){t!==void 0&&(r8=t);let e=r8+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function hqe(t){return t*Dv}function fqe(t){return t*m0}function _j(t){return(t&t-1)===0&&t!==0}function mqe(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function D_(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function pqe(t,e,n,r,i){const s=Math.cos,o=Math.sin,a=s(n/2),c=o(n/2),u=s((e+r)/2),d=o((e+r)/2),h=s((e-r)/2),f=o((e-r)/2),m=s((r-e)/2),v=o((r-e)/2);switch(i){case"XYX":t.set(a*d,c*h,c*f,a*u);break;case"YZY":t.set(c*f,a*d,c*h,a*u);break;case"ZXZ":t.set(c*h,c*f,a*d,a*u);break;case"XZX":t.set(a*d,c*v,c*m,a*u);break;case"YXY":t.set(c*m,a*d,c*v,a*u);break;case"ZYZ":t.set(c*v,c*m,a*d,a*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function lf(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function mi(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const gqe={DEG2RAD:Dv,RAD2DEG:m0,generateUUID:Vp,clamp:Si,euclideanModulo:Q3,mapLinear:nqe,inverseLerp:rqe,lerp:Fv,damp:iqe,pingpong:sqe,smoothstep:oqe,smootherstep:aqe,randInt:lqe,randFloat:cqe,randFloatSpread:uqe,seededRandom:dqe,degToRad:hqe,radToDeg:fqe,isPowerOfTwo:_j,ceilPowerOfTwo:mqe,floorPowerOfTwo:D_,setQuaternionFromProperEuler:pqe,normalize:mi,denormalize:lf};class Ht{constructor(e=0,n=0){Ht.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this}
vendor: 20,411 bytes, line 6901
6901sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const n=this.x,r=this.y,i=e.elements;return this.x=i[0]*n+i[3]*r+i[6],this.y=i[1]*n+i[4]*r+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const r=this.dot(e)/n;return Math.acos(Si(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y;return n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const r=Math.cos(n),i=Math.sin(n),s=this.x-e.x,o=this.y-e.y;return this.x=s*r-o*i+e.x,this.y=s*i+o*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Pt{constructor(e,n,r,i,s,o,a,c,u){Pt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,r,i,s,o,a,c,u)}set(e,n,r,i,s,o,a,c,u){const d=this.elements;return d[0]=e,d[1]=i,d[2]=a,d[3]=n,d[4]=s,d[5]=c,d[6]=r,d[7]=o,d[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],this}extractBasis(e,n,r){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,i=n.elements,s=this.elements,o=r[0],a=r[3],c=r[6],u=r[1],d=r[4],h=r[7],f=r[2],m=r[5],v=r[8],p=i[0],g=i[3],y=i[6],b=i[1],x=i[4],w=i[7],_=i[2],S=i[5],T=i[8];return s[0]=o*p+a*b+c*_,s[3]=o*g+a*x+c*S,s[6]=o*y+a*w+c*T,s[1]=u*p+d*b+h*_,s[4]=u*g+d*x+h*S,s[7]=u*y+d*w+h*T,s[2]=f*p+m*b+v*_,s[5]=f*g+m*x+v*S,s[8]=f*y+m*w+v*T,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],c=e[6],u=e[7],d=e[8];return n*o*d-n*a*u-r*s*d+r*a*c+i*s*u-i*o*c}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],c=e[6],u=e[7],d=e[8],h=d*o-a*u,f=a*c-d*s,m=u*s-o*c,v=n*h+r*f+i*m;if(v===0)return this.set(0,0,0,0,0,0,0,0,0);const p=1/v;return e[0]=h*p,e[1]=(i*u-d*r)*p,e[2]=(a*r-i*o)*p,e[3]=f*p,e[4]=(d*n-i*c)*p,e[5]=(i*s-a*n)*p,e[6]=m*p,e[7]=(r*c-u*n)*p,e[8]=(o*n-r*s)*p,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,r,i,s,o,a){const c=Math.cos(s),u=Math.sin(s);return this.set(r*c,r*u,-r*(c*o+u*a)+o+e,-i*u,i*c,-i*(-u*o+c*a)+a+n,0,0,1),this}scale(e,n){return this.premultiply(SA.makeScale(e,n)),this}rotate(e){return this.premultiply(SA.makeRotation(-e)),this}translate(e,n){return this.premultiply(SA.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,-r,0,r,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,r=e.elements;for(let i=0;i<9;i++)if(n[i]!==r[i])return!1;return!0}fromArray(e,n=0){for(let r=0;r<9;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const SA=new Pt;function yte(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function F_(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function vqe(){const t=F_("canvas");return t.style.display="block",t}const i8={};function Uv(t){t in i8||(i8[t]=!0,console.warn(t))}const s8=new Pt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),o8=new Pt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),mb={[Nl]:{transfer:k_,primaries:O_,toReference:t=>t,fromReference:t=>t},[Dr]:{transfer:Sn,primaries:O_,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[V2]:{transfer:k_,primaries:I_,toReference:t=>t.applyMatrix3(o8),fromReference:t=>t.applyMatrix3(s8)},[K3]:{transfer:Sn,primaries:I_,toReference:t=>t.convertSRGBToLinear().applyMatrix3(o8),fromReference:t=>t.applyMatrix3(s8).convertLinearToSRGB()}},yqe=new Set([Nl,V2]),un={enabled:!0,_workingColorSpace:Nl,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!yqe.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const r=mb[e].toReference,i=mb[n].fromReference;return i(r(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return mb[t].primaries},getTransfer:function(t){return t===Xs?k_:mb[t].transfer}};function rm(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function EA(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}let $h;class xte{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{$h===void 0&&($h=F_("canvas")),$h.width=e.width,$h.height=e.height;const r=$h.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),n=$h}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const n=F_("canvas");n.width=e.width,n.height=e.height;const r=n.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height),s=i.data;for(let o=0;o<s.length;o++)s[o]=rm(s[o]/255)*255;return r.putImageData(i,0,0),n}else if(e.data){const n=e.data.slice(0);for(let r=0;r<n.length;r++)n instanceof Uint8Array||n instanceof Uint8ClampedArray?n[r]=Math.floor(rm(n[r]/255)*255):n[r]=rm(n[r]);return{data:n,width:e.width,height:e.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let xqe=0;class bte{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:xqe++}),this.uuid=Vp(),this.data=e,this.version=0}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const r={uuid:this.uuid,url:""},i=this.data;if(i!==null){let s;if(Array.isArray(i)){s=[];for(let o=0,a=i.length;o<a;o++)i[o].isDataTexture?s.push(TA(i[o].image)):s.push(TA(i[o]))}else s=TA(i);r.url=s}return n||(e.images[this.uuid]=r),r}}function TA(t){return typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap?xte.getDataURL(t):t.data?{data:Array.from(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let bqe=0;class Ts extends Hp{constructor(e=Ts.DEFAULT_IMAGE,n=Ts.DEFAULT_MAPPING,r=Fo,i=Fo,s=Ys,o=h0,a=Uo,c=Gc,u=Ts.DEFAULT_ANISOTROPY,d=Xs){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:bqe++}),this.uuid=Vp(),this.name="",this.source=new bte(e),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=r,this.wrapT=i,this.magFilter=s,this.minFilter=o,this.anisotropy=u,this.format=a,this.internalFormat=null,this.type=c,this.offset=new Ht(0,0),this.repeat=new Ht(1,1),this.center=new Ht(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Pt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,typeof d=="string"?this.colorSpace=d:(Uv("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=d===Ld?Dr:Xs),this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const r={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(r.userData=this.userData),n||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==ate)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case xj:e.x=e.x-Math.floor(e.x);break;case Fo:e.x=e.x<0?0:1;break;case bj:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case xj:e.y=e.y-Math.floor(e.y);break;case Fo:e.y=e.y<0?0:1;break;case bj:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Uv("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===Dr?Ld:pte}set encoding(e){Uv("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Ld?Dr:Xs}}Ts.DEFAULT_IMAGE=null;Ts.DEFAULT_MAPPING=ate;Ts.DEFAULT_ANISOTROPY=1;class jn{constructor(e=0,n=0,r=0,i=1){jn.prototype.isVector4=!0,this.x=e,this.y=n,this.z=r,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,n,r,i){return this.x=e,this.y=n,this.z=r,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const n=this.x,r=this.y,i=this.z,s=this.w,o=e.elements;return this.x=o[0]*n+o[4]*r+o[8]*i+o[12]*s,this.y=o[1]*n+o[5]*r+o[9]*i+o[13]*s,this.z=o[2]*n+o[6]*r+o[10]*i+o[14]*s,this.w=o[3]*n+o[7]*r+o[11]*i+o[15]*s,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,r,i,s;const c=e.elements,u=c[0],d=c[4],h=c[8],f=c[1],m=c[5],v=c[9],p=c[2],g=c[6],y=c[10];if(Math.abs(d-f)<.01&&Math.abs(h-p)<.01&&Math.abs(v-g)<.01){if(Math.abs(d+f)<.1&&Math.abs(h+p)<.1&&Math.abs(v+g)<.1&&Math.abs(u+m+y-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const x=(u+1)/2,w=(m+1)/2,_=(y+1)/2,S=(d+f)/4,T=(h+p)/4,M=(v+g)/4;return x>w&&x>_?x<.01?(r=0,i=.707106781,s=.707106781):(r=Math.sqrt(x),i=S/r,s=T/r):w>_?w<.01?(r=.707106781,i=0,s=.707106781):(i=Math.sqrt(w),r=S/i,s=M/i):_<.01?(r=.707106781,i=.707106781,s=0):(s=Math.sqrt(_),r=T/s,i=M/s),this.set(r,i,s,n),this}let b=Math.sqrt((g-v)*(g-v)+(h-p)*(h-p)+(f-d)*(f-d));return Math.abs(b)<.001&&(b=1),this.x=(g-v)/b,this.y=(h-p)/b,this.z=(f-d)/b,this.w=Math.acos((u+m+y-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this.w=e.w+(n.w-e.w)*r,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class wqe extends Hp{constructor(e=1,n=1,r={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new jn(0,0,e,n),this.scissorTest=!1,this.viewport=new jn(0,0,e,n);const i={width:e,height:n,depth:1};r.encoding!==void 0&&(Uv("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),r.colorSpace=r.encoding===Ld?Dr:Xs),r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Ys,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},r),this.texture=new Ts(i,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=r.generateMipmaps,this.texture.internalFormat=r.internalFormat,this.depthBuffer=r.depthBuffer,this.stencilBuffer=r.stencilBuffer,this.depthTexture=r.depthTexture,this.samples=r.samples}setSize(e,n,r=1){(this.width!==e||this.height!==n||this.depth!==r)&&(this.width=e,this.height=n,this.depth=r,this.texture.image.width=e,this.texture.image.height=n,this.texture.image.depth=r,this.dispose()),this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const n=Object.assign({},e.texture.image);return this.texture.source=new bte(n),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class ah extends wqe{constructor(e=1,n=1,r={}
vendor: 6,220 bytes, line 6901
6901){super(e,n,r),this.isWebGLRenderTarget=!0}}class wte extends Ts{constructor(e=null,n=1,r=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:n,height:r,depth:i},this.magFilter=_i,this.minFilter=_i,this.wrapR=Fo,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class _qe extends Ts{constructor(e=null,n=1,r=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:n,height:r,depth:i},this.magFilter=_i,this.minFilter=_i,this.wrapR=Fo,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Z0{constructor(e=0,n=0,r=0,i=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=r,this._w=i}static slerpFlat(e,n,r,i,s,o,a){let c=r[i+0],u=r[i+1],d=r[i+2],h=r[i+3];const f=s[o+0],m=s[o+1],v=s[o+2],p=s[o+3];if(a===0){e[n+0]=c,e[n+1]=u,e[n+2]=d,e[n+3]=h;return}if(a===1){e[n+0]=f,e[n+1]=m,e[n+2]=v,e[n+3]=p;return}if(h!==p||c!==f||u!==m||d!==v){let g=1-a;const y=c*f+u*m+d*v+h*p,b=y>=0?1:-1,x=1-y*y;if(x>Number.EPSILON){const _=Math.sqrt(x),S=Math.atan2(_,y*b);g=Math.sin(g*S)/_,a=Math.sin(a*S)/_}const w=a*b;if(c=c*g+f*w,u=u*g+m*w,d=d*g+v*w,h=h*g+p*w,g===1-a){const _=1/Math.sqrt(c*c+u*u+d*d+h*h);c*=_,u*=_,d*=_,h*=_}}e[n]=c,e[n+1]=u,e[n+2]=d,e[n+3]=h}static multiplyQuaternionsFlat(e,n,r,i,s,o){const a=r[i],c=r[i+1],u=r[i+2],d=r[i+3],h=s[o],f=s[o+1],m=s[o+2],v=s[o+3];return e[n]=a*v+d*h+c*m-u*f,e[n+1]=c*v+d*f+u*h-a*m,e[n+2]=u*v+d*m+a*f-c*h,e[n+3]=d*v-a*h-c*f-u*m,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,n,r,i){return this._x=e,this._y=n,this._z=r,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,n=!0){const r=e._x,i=e._y,s=e._z,o=e._order,a=Math.cos,c=Math.sin,u=a(r/2),d=a(i/2),h=a(s/2),f=c(r/2),m=c(i/2),v=c(s/2);switch(o){case"XYZ":this._x=f*d*h+u*m*v,this._y=u*m*h-f*d*v,this._z=u*d*v+f*m*h,this._w=u*d*h-f*m*v;break;case"YXZ":this._x=f*d*h+u*m*v,this._y=u*m*h-f*d*v,this._z=u*d*v-f*m*h,this._w=u*d*h+f*m*v;break;case"ZXY":this._x=f*d*h-u*m*v,this._y=u*m*h+f*d*v,this._z=u*d*v+f*m*h,this._w=u*d*h-f*m*v;break;case"ZYX":this._x=f*d*h-u*m*v,this._y=u*m*h+f*d*v,this._z=u*d*v-f*m*h,this._w=u*d*h+f*m*v;break;case"YZX":this._x=f*d*h+u*m*v,this._y=u*m*h+f*d*v,this._z=u*d*v-f*m*h,this._w=u*d*h-f*m*v;break;case"XZY":this._x=f*d*h-u*m*v,this._y=u*m*h-f*d*v,this._z=u*d*v+f*m*h,this._w=u*d*h+f*m*v;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return n===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const r=n/2,i=Math.sin(r);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,r=n[0],i=n[4],s=n[8],o=n[1],a=n[5],c=n[9],u=n[2],d=n[6],h=n[10],f=r+a+h;if(f>0){const m=.5/Math.sqrt(f+1);this._w=.25/m,this._x=(d-c)*m,this._y=(s-u)*m,this._z=(o-i)*m}else if(r>a&&r>h){const m=2*Math.sqrt(1+r-a-h);this._w=(d-c)/m,this._x=.25*m,this._y=(i+o)/m,this._z=(s+u)/m}else if(a>h){const m=2*Math.sqrt(1+a-r-h);this._w=(s-u)/m,this._x=(i+o)/m,this._y=.25*m,this._z=(c+d)/m}else{const m=2*Math.sqrt(1+h-r-a);this._w=(o-i)/m,this._x=(s+u)/m,this._y=(c+d)/m,this._z=.25*m}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let r=e.dot(n)+1;return r<Number.EPSILON?(r=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=r):(this._x=0,this._y=-e.z,this._z=e.y,this._w=r)):(this._x=e.y*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Si(this.dot(e),-1,1)))}rotateTowards(e,n){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,n/r);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,n){const r=e._x,i=e._y,s=e._z,o=e._w,a=n._x,c=n._y,u=n._z,d=n._w;return this._x=r*d+o*a+i*u-s*c,this._y=i*d+o*c+s*a-r*u,this._z=s*d+o*u+r*c-i*a,this._w=o*d-r*a-i*c-s*u,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const r=this._x,i=this._y,s=this._z,o=this._w;let a=o*e._w+r*e._x+i*e._y+s*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=r,this._y=i,this._z=s,this;const c=1-a*a;if(c<=Number.EPSILON){const m=1-n;return this._w=m*o+n*this._w,this._x=m*r+n*this._x,this._y=m*i+n*this._y,this._z=m*s+n*this._z,this.normalize(),this}const u=Math.sqrt(c),d=Math.atan2(u,a),h=Math.sin((1-n)*d)/u,f=Math.sin(n*d)/u;return this._w=o*h+this._w*f,this._x=r*h+this._x*f,this._y=i*h+this._y*f,this._z=s*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,n,r){return this.copy(e).slerp(n,r)}random(){const e=Math.random(),n=Math.sqrt(1-e),r=Math.sqrt(e),i=2*Math.PI*Math.random(),s=2*Math.PI*Math.random();return this.set(n*Math.cos(i),r*Math.sin(s),r*Math.cos(s),n*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),this._onChangeCallback(),this}toJSON(){return this.toArray()}
vendor: 48,836 bytes, line 6901
6901_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class le{constructor(e=0,n=0,r=0){le.prototype.isVector3=!0,this.x=e,this.y=n,this.z=r}set(e,n,r){return r===void 0&&(r=this.z),this.x=e,this.y=n,this.z=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(a8.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(a8.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,r=this.y,i=this.z,s=e.elements;return this.x=s[0]*n+s[3]*r+s[6]*i,this.y=s[1]*n+s[4]*r+s[7]*i,this.z=s[2]*n+s[5]*r+s[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,r=this.y,i=this.z,s=e.elements,o=1/(s[3]*n+s[7]*r+s[11]*i+s[15]);return this.x=(s[0]*n+s[4]*r+s[8]*i+s[12])*o,this.y=(s[1]*n+s[5]*r+s[9]*i+s[13])*o,this.z=(s[2]*n+s[6]*r+s[10]*i+s[14])*o,this}applyQuaternion(e){const n=this.x,r=this.y,i=this.z,s=e.x,o=e.y,a=e.z,c=e.w,u=2*(o*i-a*r),d=2*(a*n-s*i),h=2*(s*r-o*n);return this.x=n+c*u+o*h-a*d,this.y=r+c*d+a*u-s*h,this.z=i+c*h+s*d-o*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,r=this.y,i=this.z,s=e.elements;return this.x=s[0]*n+s[4]*r+s[8]*i,this.y=s[1]*n+s[5]*r+s[9]*i,this.z=s[2]*n+s[6]*r+s[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const r=e.x,i=e.y,s=e.z,o=n.x,a=n.y,c=n.z;return this.x=i*c-s*a,this.y=s*o-r*c,this.z=r*a-i*o,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const r=e.dot(this)/n;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return AA.copy(this).projectOnVector(e),this.sub(AA)}reflect(e){return this.sub(AA.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const r=this.dot(e)/n;return Math.acos(Si(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return n*n+r*r+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,n,r){const i=Math.sin(n)*e;return this.x=i*Math.sin(r),this.y=Math.cos(n)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,r){return this.x=e*Math.sin(n),this.y=r,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=r,this.z=i,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,n=Math.random()*Math.PI*2,r=Math.sqrt(1-e**2);return this.x=r*Math.cos(n),this.y=r*Math.sin(n),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const AA=new le,a8=new Z0;class J0{constructor(e=new le(1/0,1/0,1/0),n=new le(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,r=e.length;n<r;n+=3)this.expandByPoint(wo.fromArray(e,n));return this}setFromBufferAttribute(e){this.makeEmpty();for(let n=0,r=e.count;n<r;n++)this.expandByPoint(wo.fromBufferAttribute(e,n));return this}setFromPoints(e){this.makeEmpty();for(let n=0,r=e.length;n<r;n++)this.expandByPoint(e[n]);return this}setFromCenterAndSize(e,n){const r=wo.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(r),this.max.copy(e).add(r),this}setFromObject(e,n=!1){return this.makeEmpty(),this.expandByObject(e,n)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,n=!1){e.updateWorldMatrix(!1,!1);const r=e.geometry;if(r!==void 0){const s=r.getAttribute("position");if(n===!0&&s!==void 0&&e.isInstancedMesh!==!0)for(let o=0,a=s.count;o<a;o++)e.isMesh===!0?e.getVertexPosition(o,wo):wo.fromBufferAttribute(s,o),wo.applyMatrix4(e.matrixWorld),this.expandByPoint(wo);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),pb.copy(e.boundingBox)):(r.boundingBox===null&&r.computeBoundingBox(),pb.copy(r.boundingBox)),pb.applyMatrix4(e.matrixWorld),this.union(pb)}const i=e.children;for(let s=0,o=i.length;s<o;s++)this.expandByObject(i[s],n);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,wo),wo.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,r;return e.normal.x>0?(n=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),n<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Cg),gb.subVectors(this.max,Cg),Hh.subVectors(e.a,Cg),Vh.subVectors(e.b,Cg),Wh.subVectors(e.c,Cg),Hl.subVectors(Vh,Hh),Vl.subVectors(Wh,Vh),ku.subVectors(Hh,Wh);let n=[0,-Hl.z,Hl.y,0,-Vl.z,Vl.y,0,-ku.z,ku.y,Hl.z,0,-Hl.x,Vl.z,0,-Vl.x,ku.z,0,-ku.x,-Hl.y,Hl.x,0,-Vl.y,Vl.x,0,-ku.y,ku.x,0];return!CA(n,Hh,Vh,Wh,gb)||(n=[1,0,0,0,1,0,0,0,1],!CA(n,Hh,Vh,Wh,gb))?!1:(vb.crossVectors(Hl,Vl),n=[vb.x,vb.y,vb.z],CA(n,Hh,Vh,Wh,gb))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,wo).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(wo).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:($a[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),$a[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),$a[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),$a[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),$a[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),$a[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),$a[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),$a[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints($a),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const $a=[new le,new le,new le,new le,new le,new le,new le,new le],wo=new le,pb=new J0,Hh=new le,Vh=new le,Wh=new le,Hl=new le,Vl=new le,ku=new le,Cg=new le,gb=new le,vb=new le,Ou=new le;function CA(t,e,n,r,i){for(let s=0,o=t.length-3;s<=o;s+=3){Ou.fromArray(t,s);const a=i.x*Math.abs(Ou.x)+i.y*Math.abs(Ou.y)+i.z*Math.abs(Ou.z),c=e.dot(Ou),u=n.dot(Ou),d=r.dot(Ou);if(Math.max(-Math.max(c,u,d),Math.min(c,u,d))>a)return!1}return!0}const Sqe=new J0,Mg=new le,MA=new le;class ex{constructor(e=new le,n=-1){this.isSphere=!0,this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const r=this.center;n!==void 0?r.copy(n):Sqe.setFromPoints(e).getCenter(r);let i=0;for(let s=0,o=e.length;s<o;s++)i=Math.max(i,r.distanceToSquared(e[s]));return this.radius=Math.sqrt(i),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const n=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=n*n}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,n){const r=this.center.distanceToSquared(e);return n.copy(e),r>this.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Mg.subVectors(e,this.center);const n=Mg.lengthSq();if(n>this.radius*this.radius){const r=Math.sqrt(n),i=(r-this.radius)*.5;this.center.addScaledVector(Mg,i/r),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(MA.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Mg.copy(e.center).add(MA)),this.expandByPoint(Mg.copy(e.center).sub(MA))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Ha=new le,RA=new le,yb=new le,Wl=new le,PA=new le,xb=new le,jA=new le;class Z3{constructor(e=new le,n=new le(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Ha)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const r=n.dot(this.direction);return r<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=Ha.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(Ha.copy(this.origin).addScaledVector(this.direction,n),Ha.distanceToSquared(e))}distanceSqToSegment(e,n,r,i){RA.copy(e).add(n).multiplyScalar(.5),yb.copy(n).sub(e).normalize(),Wl.copy(this.origin).sub(RA);const s=e.distanceTo(n)*.5,o=-this.direction.dot(yb),a=Wl.dot(this.direction),c=-Wl.dot(yb),u=Wl.lengthSq(),d=Math.abs(1-o*o);let h,f,m,v;if(d>0)if(h=o*c-a,f=o*a-c,v=s*d,h>=0)if(f>=-v)if(f<=v){const p=1/d;h*=p,f*=p,m=h*(h+o*f+2*a)+f*(o*h+f+2*c)+u}else f=s,h=Math.max(0,-(o*f+a)),m=-h*h+f*(f+2*c)+u;else f=-s,h=Math.max(0,-(o*f+a)),m=-h*h+f*(f+2*c)+u;else f<=-v?(h=Math.max(0,-(-o*s+a)),f=h>0?-s:Math.min(Math.max(-s,-c),s),m=-h*h+f*(f+2*c)+u):f<=v?(h=0,f=Math.min(Math.max(-s,-c),s),m=f*(f+2*c)+u):(h=Math.max(0,-(o*s+a)),f=h>0?s:Math.min(Math.max(-s,-c),s),m=-h*h+f*(f+2*c)+u);else f=o>0?-s:s,h=Math.max(0,-(o*f+a)),m=-h*h+f*(f+2*c)+u;return r&&r.copy(this.origin).addScaledVector(this.direction,h),i&&i.copy(RA).addScaledVector(yb,f),m}intersectSphere(e,n){Ha.subVectors(e.center,this.origin);const r=Ha.dot(this.direction),i=Ha.dot(Ha)-r*r,s=e.radius*e.radius;if(i>s)return null;const o=Math.sqrt(s-i),a=r-o,c=r+o;return c<0?null:a<0?this.at(c,n):this.at(a,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/n;return r>=0?r:null}intersectPlane(e,n){const r=this.distanceToPlane(e);return r===null?null:this.at(r,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let r,i,s,o,a,c;const u=1/this.direction.x,d=1/this.direction.y,h=1/this.direction.z,f=this.origin;return u>=0?(r=(e.min.x-f.x)*u,i=(e.max.x-f.x)*u):(r=(e.max.x-f.x)*u,i=(e.min.x-f.x)*u),d>=0?(s=(e.min.y-f.y)*d,o=(e.max.y-f.y)*d):(s=(e.max.y-f.y)*d,o=(e.min.y-f.y)*d),r>o||s>i||((s>r||isNaN(r))&&(r=s),(o<i||isNaN(i))&&(i=o),h>=0?(a=(e.min.z-f.z)*h,c=(e.max.z-f.z)*h):(a=(e.max.z-f.z)*h,c=(e.min.z-f.z)*h),r>c||a>i)||((a>r||r!==r)&&(r=a),(c<i||i!==i)&&(i=c),i<0)?null:this.at(r>=0?r:i,n)}intersectsBox(e){return this.intersectBox(e,Ha)!==null}intersectTriangle(e,n,r,i,s){PA.subVectors(n,e),xb.subVectors(r,e),jA.crossVectors(PA,xb);let o=this.direction.dot(jA),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Wl.subVectors(this.origin,e);const c=a*this.direction.dot(xb.crossVectors(Wl,xb));if(c<0)return null;const u=a*this.direction.dot(PA.cross(Wl));if(u<0||c+u>o)return null;const d=-a*Wl.dot(jA);return d<0?null:this.at(d/o,s)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class qn{constructor(e,n,r,i,s,o,a,c,u,d,h,f,m,v,p,g){qn.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,n,r,i,s,o,a,c,u,d,h,f,m,v,p,g)}set(e,n,r,i,s,o,a,c,u,d,h,f,m,v,p,g){const y=this.elements;return y[0]=e,y[4]=n,y[8]=r,y[12]=i,y[1]=s,y[5]=o,y[9]=a,y[13]=c,y[2]=u,y[6]=d,y[10]=h,y[14]=f,y[3]=m,y[7]=v,y[11]=p,y[15]=g,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new qn().fromArray(this.elements)}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],n[9]=r[9],n[10]=r[10],n[11]=r[11],n[12]=r[12],n[13]=r[13],n[14]=r[14],n[15]=r[15],this}copyPosition(e){const n=this.elements,r=e.elements;return n[12]=r[12],n[13]=r[13],n[14]=r[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,r){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,n,r){return this.set(e.x,n.x,r.x,0,e.y,n.y,r.y,0,e.z,n.z,r.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,r=e.elements,i=1/Gh.setFromMatrixColumn(e,0).length(),s=1/Gh.setFromMatrixColumn(e,1).length(),o=1/Gh.setFromMatrixColumn(e,2).length();return n[0]=r[0]*i,n[1]=r[1]*i,n[2]=r[2]*i,n[3]=0,n[4]=r[4]*s,n[5]=r[5]*s,n[6]=r[6]*s,n[7]=0,n[8]=r[8]*o,n[9]=r[9]*o,n[10]=r[10]*o,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,r=e.x,i=e.y,s=e.z,o=Math.cos(r),a=Math.sin(r),c=Math.cos(i),u=Math.sin(i),d=Math.cos(s),h=Math.sin(s);if(e.order==="XYZ"){const f=o*d,m=o*h,v=a*d,p=a*h;n[0]=c*d,n[4]=-c*h,n[8]=u,n[1]=m+v*u,n[5]=f-p*u,n[9]=-a*c,n[2]=p-f*u,n[6]=v+m*u,n[10]=o*c}else if(e.order==="YXZ"){const f=c*d,m=c*h,v=u*d,p=u*h;n[0]=f+p*a,n[4]=v*a-m,n[8]=o*u,n[1]=o*h,n[5]=o*d,n[9]=-a,n[2]=m*a-v,n[6]=p+f*a,n[10]=o*c}else if(e.order==="ZXY"){const f=c*d,m=c*h,v=u*d,p=u*h;n[0]=f-p*a,n[4]=-o*h,n[8]=v+m*a,n[1]=m+v*a,n[5]=o*d,n[9]=p-f*a,n[2]=-o*u,n[6]=a,n[10]=o*c}else if(e.order==="ZYX"){const f=o*d,m=o*h,v=a*d,p=a*h;n[0]=c*d,n[4]=v*u-m,n[8]=f*u+p,n[1]=c*h,n[5]=p*u+f,n[9]=m*u-v,n[2]=-u,n[6]=a*c,n[10]=o*c}else if(e.order==="YZX"){const f=o*c,m=o*u,v=a*c,p=a*u;n[0]=c*d,n[4]=p-f*h,n[8]=v*h+m,n[1]=h,n[5]=o*d,n[9]=-a*d,n[2]=-u*d,n[6]=m*h+v,n[10]=f-p*h}else if(e.order==="XZY"){const f=o*c,m=o*u,v=a*c,p=a*u;n[0]=c*d,n[4]=-h,n[8]=u*d,n[1]=f*h+p,n[5]=o*d,n[9]=m*h-v,n[2]=v*h-m,n[6]=a*d,n[10]=p*h+f}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Eqe,e,Tqe)}lookAt(e,n,r){const i=this.elements;return os.subVectors(e,n),os.lengthSq()===0&&(os.z=1),os.normalize(),Gl.crossVectors(r,os),Gl.lengthSq()===0&&(Math.abs(r.z)===1?os.x+=1e-4:os.z+=1e-4,os.normalize(),Gl.crossVectors(r,os)),Gl.normalize(),bb.crossVectors(os,Gl),i[0]=Gl.x,i[4]=bb.x,i[8]=os.x,i[1]=Gl.y,i[5]=bb.y,i[9]=os.y,i[2]=Gl.z,i[6]=bb.z,i[10]=os.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,i=n.elements,s=this.elements,o=r[0],a=r[4],c=r[8],u=r[12],d=r[1],h=r[5],f=r[9],m=r[13],v=r[2],p=r[6],g=r[10],y=r[14],b=r[3],x=r[7],w=r[11],_=r[15],S=i[0],T=i[4],M=i[8],A=i[12],C=i[1],R=i[5],j=i[9],k=i[13],P=i[2],O=i[6],L=i[10],F=i[14],D=i[3],I=i[7],N=i[11],G=i[15];return s[0]=o*S+a*C+c*P+u*D,s[4]=o*T+a*R+c*O+u*I,s[8]=o*M+a*j+c*L+u*N,s[12]=o*A+a*k+c*F+u*G,s[1]=d*S+h*C+f*P+m*D,s[5]=d*T+h*R+f*O+m*I,s[9]=d*M+h*j+f*L+m*N,s[13]=d*A+h*k+f*F+m*G,s[2]=v*S+p*C+g*P+y*D,s[6]=v*T+p*R+g*O+y*I,s[10]=v*M+p*j+g*L+y*N,s[14]=v*A+p*k+g*F+y*G,s[3]=b*S+x*C+w*P+_*D,s[7]=b*T+x*R+w*O+_*I,s[11]=b*M+x*j+w*L+_*N,s[15]=b*A+x*k+w*F+_*G,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],r=e[4],i=e[8],s=e[12],o=e[1],a=e[5],c=e[9],u=e[13],d=e[2],h=e[6],f=e[10],m=e[14],v=e[3],p=e[7],g=e[11],y=e[15];return v*(+s*c*h-i*u*h-s*a*f+r*u*f+i*a*m-r*c*m)+p*(+n*c*m-n*u*f+s*o*f-i*o*m+i*u*d-s*c*d)+g*(+n*u*h-n*a*m-s*o*h+r*o*m+s*a*d-r*u*d)+y*(-i*a*d-n*c*h+n*a*f+i*o*h-r*o*f+r*c*d)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,r){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=n,i[14]=r),this}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],c=e[6],u=e[7],d=e[8],h=e[9],f=e[10],m=e[11],v=e[12],p=e[13],g=e[14],y=e[15],b=h*g*u-p*f*u+p*c*m-a*g*m-h*c*y+a*f*y,x=v*f*u-d*g*u-v*c*m+o*g*m+d*c*y-o*f*y,w=d*p*u-v*h*u+v*a*m-o*p*m-d*a*y+o*h*y,_=v*h*c-d*p*c-v*a*f+o*p*f+d*a*g-o*h*g,S=n*b+r*x+i*w+s*_;if(S===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const T=1/S;return e[0]=b*T,e[1]=(p*f*s-h*g*s-p*i*m+r*g*m+h*i*y-r*f*y)*T,e[2]=(a*g*s-p*c*s+p*i*u-r*g*u-a*i*y+r*c*y)*T,e[3]=(h*c*s-a*f*s-h*i*u+r*f*u+a*i*m-r*c*m)*T,e[4]=x*T,e[5]=(d*g*s-v*f*s+v*i*m-n*g*m-d*i*y+n*f*y)*T,e[6]=(v*c*s-o*g*s-v*i*u+n*g*u+o*i*y-n*c*y)*T,e[7]=(o*f*s-d*c*s+d*i*u-n*f*u-o*i*m+n*c*m)*T,e[8]=w*T,e[9]=(v*h*s-d*p*s-v*r*m+n*p*m+d*r*y-n*h*y)*T,e[10]=(o*p*s-v*a*s+v*r*u-n*p*u-o*r*y+n*a*y)*T,e[11]=(d*a*s-o*h*s-d*r*u+n*h*u+o*r*m-n*a*m)*T,e[12]=_*T,e[13]=(d*p*i-v*h*i+v*r*f-n*p*f-d*r*g+n*h*g)*T,e[14]=(v*a*i-o*p*i-v*r*c+n*p*c+o*r*g-n*a*g)*T,e[15]=(o*h*i-d*a*i+d*r*c-n*h*c-o*r*f+n*a*f)*T,this}scale(e){const n=this.elements,r=e.x,i=e.y,s=e.z;return n[0]*=r,n[4]*=i,n[8]*=s,n[1]*=r,n[5]*=i,n[9]*=s,n[2]*=r,n[6]*=i,n[10]*=s,n[3]*=r,n[7]*=i,n[11]*=s,this}getMaxScaleOnAxis(){const e=this.elements,n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,r,i))}makeTranslation(e,n,r){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,n,0,0,1,r,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const r=Math.cos(n),i=Math.sin(n),s=1-r,o=e.x,a=e.y,c=e.z,u=s*o,d=s*a;return this.set(u*o+r,u*a-i*c,u*c+i*a,0,u*a+i*c,d*a+r,d*c-i*o,0,u*c-i*a,d*c+i*o,s*c*c+r,0,0,0,0,1),this}makeScale(e,n,r){return this.set(e,0,0,0,0,n,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,n,r,i,s,o){return this.set(1,r,s,0,e,1,o,0,n,i,1,0,0,0,0,1),this}compose(e,n,r){const i=this.elements,s=n._x,o=n._y,a=n._z,c=n._w,u=s+s,d=o+o,h=a+a,f=s*u,m=s*d,v=s*h,p=o*d,g=o*h,y=a*h,b=c*u,x=c*d,w=c*h,_=r.x,S=r.y,T=r.z;return i[0]=(1-(p+y))*_,i[1]=(m+w)*_,i[2]=(v-x)*_,i[3]=0,i[4]=(m-w)*S,i[5]=(1-(f+y))*S,i[6]=(g+b)*S,i[7]=0,i[8]=(v+x)*T,i[9]=(g-b)*T,i[10]=(1-(f+p))*T,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,n,r){const i=this.elements;let s=Gh.set(i[0],i[1],i[2]).length();const o=Gh.set(i[4],i[5],i[6]).length(),a=Gh.set(i[8],i[9],i[10]).length();this.determinant()<0&&(s=-s),e.x=i[12],e.y=i[13],e.z=i[14],_o.copy(this);const u=1/s,d=1/o,h=1/a;return _o.elements[0]*=u,_o.elements[1]*=u,_o.elements[2]*=u,_o.elements[4]*=d,_o.elements[5]*=d,_o.elements[6]*=d,_o.elements[8]*=h,_o.elements[9]*=h,_o.elements[10]*=h,n.setFromRotationMatrix(_o),r.x=s,r.y=o,r.z=a,this}makePerspective(e,n,r,i,s,o,a=fl){const c=this.elements,u=2*s/(n-e),d=2*s/(r-i),h=(n+e)/(n-e),f=(r+i)/(r-i);let m,v;if(a===fl)m=-(o+s)/(o-s),v=-2*o*s/(o-s);else if(a===L_)m=-o/(o-s),v=-o*s/(o-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=u,c[4]=0,c[8]=h,c[12]=0,c[1]=0,c[5]=d,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=m,c[14]=v,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,n,r,i,s,o,a=fl){const c=this.elements,u=1/(n-e),d=1/(r-i),h=1/(o-s),f=(n+e)*u,m=(r+i)*d;let v,p;if(a===fl)v=(o+s)*h,p=-2*h;else if(a===L_)v=s*h,p=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*u,c[4]=0,c[8]=0,c[12]=-f,c[1]=0,c[5]=2*d,c[9]=0,c[13]=-m,c[2]=0,c[6]=0,c[10]=p,c[14]=-v,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const n=this.elements,r=e.elements;for(let i=0;i<16;i++)if(n[i]!==r[i])return!1;return!0}fromArray(e,n=0){for(let r=0;r<16;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e[n+9]=r[9],e[n+10]=r[10],e[n+11]=r[11],e[n+12]=r[12],e[n+13]=r[13],e[n+14]=r[14],e[n+15]=r[15],e}}const Gh=new le,_o=new qn,Eqe=new le(0,0,0),Tqe=new le(1,1,1),Gl=new le,bb=new le,os=new le,l8=new qn,c8=new Z0;class W2{constructor(e=0,n=0,r=0,i=W2.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,n,r,i=this._order){return this._x=e,this._y=n,this._z=r,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,n=this._order,r=!0){const i=e.elements,s=i[0],o=i[4],a=i[8],c=i[1],u=i[5],d=i[9],h=i[2],f=i[6],m=i[10];switch(n){case"XYZ":this._y=Math.asin(Si(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-d,m),this._z=Math.atan2(-o,s)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Si(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(a,m),this._z=Math.atan2(c,u)):(this._y=Math.atan2(-h,s),this._z=0);break;case"ZXY":this._x=Math.asin(Si(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,m),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(c,s));break;case"ZYX":this._y=Math.asin(-Si(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,m),this._z=Math.atan2(c,s)):(this._x=0,this._z=Math.atan2(-o,u));break;case"YZX":this._z=Math.asin(Si(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-d,u),this._y=Math.atan2(-h,s)):(this._x=0,this._y=Math.atan2(a,m));break;case"XZY":this._z=Math.asin(-Si(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(a,s)):(this._x=Math.atan2(-d,m),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,r){return l8.makeRotationFromQuaternion(e),this.setFromRotationMatrix(l8,n,r)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return c8.setFromEuler(this),this.setFromQuaternion(c8,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}W2.DEFAULT_ORDER="XYZ";class _te{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let Aqe=0;const u8=new le,qh=new Z0,Va=new qn,wb=new le,Rg=new le,Cqe=new le,Mqe=new Z0,d8=new le(1,0,0),h8=new le(0,1,0),f8=new le(0,0,1),Rqe={type:"added"},Pqe={type:"removed"};class ci extends Hp{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:Aqe++}),this.uuid=Vp(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=ci.DEFAULT_UP.clone();const e=new le,n=new W2,r=new Z0,i=new le(1,1,1);function s(){r.setFromEuler(n,!1)}function o(){n.setFromQuaternion(r,void 0,!1)}n._onChange(s),r._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:r},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new qn},normalMatrix:{value:new Pt}}),this.matrix=new qn,this.matrixWorld=new qn,this.matrixAutoUpdate=ci.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=ci.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new _te,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,n){this.quaternion.setFromAxisAngle(e,n)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,n){return qh.setFromAxisAngle(e,n),this.quaternion.multiply(qh),this}rotateOnWorldAxis(e,n){return qh.setFromAxisAngle(e,n),this.quaternion.premultiply(qh),this}rotateX(e){return this.rotateOnAxis(d8,e)}rotateY(e){return this.rotateOnAxis(h8,e)}rotateZ(e){return this.rotateOnAxis(f8,e)}translateOnAxis(e,n){return u8.copy(e).applyQuaternion(this.quaternion),this.position.add(u8.multiplyScalar(n)),this}translateX(e){return this.translateOnAxis(d8,e)}translateY(e){return this.translateOnAxis(h8,e)}translateZ(e){return this.translateOnAxis(f8,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(Va.copy(this.matrixWorld).invert())}lookAt(e,n,r){e.isVector3?wb.copy(e):wb.set(e,n,r);const i=this.parent;this.updateWorldMatrix(!0,!1),Rg.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Va.lookAt(Rg,wb,this.up):Va.lookAt(wb,Rg,this.up),this.quaternion.setFromRotationMatrix(Va),i&&(Va.extractRotation(i.matrixWorld),qh.setFromRotationMatrix(Va),this.quaternion.premultiply(qh.invert()))}add(e){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.parent!==null&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(Rqe)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let r=0;r<arguments.length;r++)this.remove(arguments[r]);return this}const n=this.children.indexOf(e);return n!==-1&&(e.parent=null,this.children.splice(n,1),e.dispatchEvent(Pqe)),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),Va.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),Va.multiply(e.parent.matrixWorld)),e.applyMatrix4(Va),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,n){if(this[e]===n)return this;for(let r=0,i=this.children.length;r<i;r++){const o=this.children[r].getObjectByProperty(e,n);if(o!==void 0)return o}}getObjectsByProperty(e,n,r=[]){this[e]===n&&r.push(this);const i=this.children;for(let s=0,o=i.length;s<o;s++)i[s].getObjectsByProperty(e,n,r);return r}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Rg,e,Cqe),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Rg,Mqe,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const n=this.matrixWorld.elements;return e.set(n[8],n[9],n[10]).normalize()}raycast(){}traverse(e){e(this);const n=this.children;for(let r=0,i=n.length;r<i;r++)n[r].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const n=this.children;for(let r=0,i=n.length;r<i;r++)n[r].traverseVisible(e)}traverseAncestors(e){const n=this.parent;n!==null&&(e(n),n.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const n=this.children;for(let r=0,i=n.length;r<i;r++){const s=n[r];(s.matrixWorldAutoUpdate===!0||e===!0)&&s.updateMatrixWorld(e)}}updateWorldMatrix(e,n){const r=this.parent;if(e===!0&&r!==null&&r.matrixWorldAutoUpdate===!0&&r.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),n===!0){const i=this.children;for(let s=0,o=i.length;s<o;s++){const a=i[s];a.matrixWorldAutoUpdate===!0&&a.updateWorldMatrix(!1,!0)}}}toJSON(e){const n=e===void 0||typeof e=="string",r={};n&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},r.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const i={};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.castShadow===!0&&(i.castShadow=!0),this.receiveShadow===!0&&(i.receiveShadow=!0),this.visible===!1&&(i.visible=!1),this.frustumCulled===!1&&(i.frustumCulled=!1),this.renderOrder!==0&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function s(a,c){return a[c.uuid]===void 0&&(a[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=s(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const c=a.shapes;if(Array.isArray(c))for(let u=0,d=c.length;u<d;u++){const h=c[u];s(e.shapes,h)}else s(e.shapes,c)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(s(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const a=[];for(let c=0,u=this.material.length;c<u;c++)a.push(s(e.materials,this.material[c]));i.material=a}else i.material=s(e.materials,this.material);if(this.children.length>0){i.children=[];for(let a=0;a<this.children.length;a++)i.children.push(this.children[a].toJSON(e).object)}if(this.animations.length>0){i.animations=[];for(let a=0;a<this.animations.length;a++){const c=this.animations[a];i.animations.push(s(e.animations,c))}}if(n){const a=o(e.geometries),c=o(e.materials),u=o(e.textures),d=o(e.images),h=o(e.shapes),f=o(e.skeletons),m=o(e.animations),v=o(e.nodes);a.length>0&&(r.geometries=a),c.length>0&&(r.materials=c),u.length>0&&(r.textures=u),d.length>0&&(r.images=d),h.length>0&&(r.shapes=h),f.length>0&&(r.skeletons=f),m.length>0&&(r.animations=m),v.length>0&&(r.nodes=v)}return r.object=i,r;function o(a){const c=[];for(const u in a){const d=a[u];delete d.metadata,c.push(d)}return c}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),n===!0)for(let r=0;r<e.children.length;r++){const i=e.children[r];this.add(i.clone())}return this}}ci.DEFAULT_UP=new le(0,1,0);ci.DEFAULT_MATRIX_AUTO_UPDATE=!0;ci.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const So=new le,Wa=new le,NA=new le,Ga=new le,Yh=new le,Xh=new le,m8=new le,kA=new le,OA=new le,IA=new le;let _b=!1;class Lo{constructor(e=new le,n=new le,r=new le){this.a=e,this.b=n,this.c=r}static getNormal(e,n,r,i){i.subVectors(r,n),So.subVectors(e,n),i.cross(So);const s=i.lengthSq();return s>0?i.multiplyScalar(1/Math.sqrt(s)):i.set(0,0,0)}static getBarycoord(e,n,r,i,s){So.subVectors(i,n),Wa.subVectors(r,n),NA.subVectors(e,n);const o=So.dot(So),a=So.dot(Wa),c=So.dot(NA),u=Wa.dot(Wa),d=Wa.dot(NA),h=o*u-a*a;if(h===0)return s.set(0,0,0),null;const f=1/h,m=(u*c-a*d)*f,v=(o*d-a*c)*f;return s.set(1-m-v,v,m)}static containsPoint(e,n,r,i){return this.getBarycoord(e,n,r,i,Ga)===null?!1:Ga.x>=0&&Ga.y>=0&&Ga.x+Ga.y<=1}static getUV(e,n,r,i,s,o,a,c){return _b===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),_b=!0),this.getInterpolation(e,n,r,i,s,o,a,c)}static getInterpolation(e,n,r,i,s,o,a,c){return this.getBarycoord(e,n,r,i,Ga)===null?(c.x=0,c.y=0,"z"in c&&(c.z=0),"w"in c&&(c.w=0),null):(c.setScalar(0),c.addScaledVector(s,Ga.x),c.addScaledVector(o,Ga.y),c.addScaledVector(a,Ga.z),c)}static isFrontFacing(e,n,r,i){return So.subVectors(r,n),Wa.subVectors(e,n),So.cross(Wa).dot(i)<0}set(e,n,r){return this.a.copy(e),this.b.copy(n),this.c.copy(r),this}setFromPointsAndIndices(e,n,r,i){return this.a.copy(e[n]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,n,r,i){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,r),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return So.subVectors(this.c,this.b),Wa.subVectors(this.a,this.b),So.cross(Wa).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Lo.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return Lo.getBarycoord(e,this.a,this.b,this.c,n)}getUV(e,n,r,i,s){return _b===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),_b=!0),Lo.getInterpolation(e,this.a,this.b,this.c,n,r,i,s)}getInterpolation(e,n,r,i,s){return Lo.getInterpolation(e,this.a,this.b,this.c,n,r,i,s)}containsPoint(e){return Lo.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Lo.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const r=this.a,i=this.b,s=this.c;let o,a;Yh.subVectors(i,r),Xh.subVectors(s,r),kA.subVectors(e,r);const c=Yh.dot(kA),u=Xh.dot(kA);if(c<=0&&u<=0)return n.copy(r);OA.subVectors(e,i);const d=Yh.dot(OA),h=Xh.dot(OA);if(d>=0&&h<=d)return n.copy(i);const f=c*h-d*u;if(f<=0&&c>=0&&d<=0)return o=c/(c-d),n.copy(r).addScaledVector(Yh,o);IA.subVectors(e,s);const m=Yh.dot(IA),v=Xh.dot(IA);if(v>=0&&m<=v)return n.copy(s);const p=m*u-c*v;if(p<=0&&u>=0&&v<=0)return a=u/(u-v),n.copy(r).addScaledVector(Xh,a);const g=d*v-m*h;if(g<=0&&h-d>=0&&m-v>=0)return m8.subVectors(s,i),a=(h-d)/(h-d+(m-v)),n.copy(i).addScaledVector(m8,a);const y=1/(g+p+f);return o=p*y,a=f*y,n.copy(r).addScaledVector(Yh,o).addScaledVector(Xh,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const Ste={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ql={h:0,s:0,l:0},Sb={h:0,s:0,l:0};function LA(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}class kt{constructor(e,n,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,r)}set(e,n,r){if(n===void 0&&r===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,n,r);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=Dr){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,un.toWorkingColorSpace(this,n),this}setRGB(e,n,r,i=un.workingColorSpace){return this.r=e,this.g=n,this.b=r,un.toWorkingColorSpace(this,i),this}setHSL(e,n,r,i=un.workingColorSpace){if(e=Q3(e,1),n=Si(n,0,1),r=Si(r,0,1),n===0)this.r=this.g=this.b=r;else{const s=r<=.5?r*(1+n):r+n-r*n,o=2*r-s;this.r=LA(o,s,e+1/3),this.g=LA(o,s,e),this.b=LA(o,s,e-1/3)}return un.toWorkingColorSpace(this,i),this}setStyle(e,n=Dr){function r(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let s;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,n);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,n);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const s=i[1],o=s.length;if(o===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,n);if(o===6)return this.setHex(parseInt(s,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=Dr){const r=Ste[e.toLowerCase()];return r!==void 0?this.setHex(r,n):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=rm(e.r),this.g=rm(e.g),this.b=rm(e.b),this}copyLinearToSRGB(e){return this.r=EA(e.r),this.g=EA(e.g),this.b=EA(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Dr){return un.fromWorkingColorSpace(Kr.copy(this),e),Math.round(Si(Kr.r*255,0,255))*65536+Math.round(Si(Kr.g*255,0,255))*256+Math.round(Si(Kr.b*255,0,255))}getHexString(e=Dr){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=un.workingColorSpace){un.fromWorkingColorSpace(Kr.copy(this),n);
vendor: 12,523 bytes, line 6901
6901const r=Kr.r,i=Kr.g,s=Kr.b,o=Math.max(r,i,s),a=Math.min(r,i,s);let c,u;const d=(a+o)/2;if(a===o)c=0,u=0;else{const h=o-a;switch(u=d<=.5?h/(o+a):h/(2-o-a),o){case r:c=(i-s)/h+(i<s?6:0);break;case i:c=(s-r)/h+2;break;case s:c=(r-i)/h+4;break}c/=6}return e.h=c,e.s=u,e.l=d,e}getRGB(e,n=un.workingColorSpace){return un.fromWorkingColorSpace(Kr.copy(this),n),e.r=Kr.r,e.g=Kr.g,e.b=Kr.b,e}getStyle(e=Dr){un.fromWorkingColorSpace(Kr.copy(this),e);const n=Kr.r,r=Kr.g,i=Kr.b;return e!==Dr?`color(${e} ${n.toFixed(3)} ${r.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(n*255)},${Math.round(r*255)},${Math.round(i*255)})`}offsetHSL(e,n,r){return this.getHSL(ql),this.setHSL(ql.h+e,ql.s+n,ql.l+r)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,n){return this.r=e.r+n.r,this.g=e.g+n.g,this.b=e.b+n.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,n){return this.r+=(e.r-this.r)*n,this.g+=(e.g-this.g)*n,this.b+=(e.b-this.b)*n,this}lerpColors(e,n,r){return this.r=e.r+(n.r-e.r)*r,this.g=e.g+(n.g-e.g)*r,this.b=e.b+(n.b-e.b)*r,this}lerpHSL(e,n){this.getHSL(ql),e.getHSL(Sb);const r=Fv(ql.h,Sb.h,n),i=Fv(ql.s,Sb.s,n),s=Fv(ql.l,Sb.l,n);return this.setHSL(r,i,s),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const n=this.r,r=this.g,i=this.b,s=e.elements;return this.r=s[0]*n+s[3]*r+s[6]*i,this.g=s[1]*n+s[4]*r+s[7]*i,this.b=s[2]*n+s[5]*r+s[8]*i,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,n=0){return this.r=e[n],this.g=e[n+1],this.b=e[n+2],this}toArray(e=[],n=0){return e[n]=this.r,e[n+1]=this.g,e[n+2]=this.b,e}fromBufferAttribute(e,n){return this.r=e.getX(n),this.g=e.getY(n),this.b=e.getZ(n),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Kr=new kt;kt.NAMES=Ste;let jqe=0;class wh extends Hp{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:jqe++}),this.uuid=Vp(),this.name="",this.type="Material",this.blending=nm,this.side=ru,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=pj,this.blendDst=gj,this.blendEquation=Qu,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new kt(0,0,0),this.blendAlpha=0,this.depthFunc=N_,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=e8,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=zh,this.stencilZFail=zh,this.stencilZPass=zh,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const r=e[n];if(r===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const i=this[n];if(i===void 0){console.warn(`THREE.Material: '${n}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(r):i&&i.isVector3&&r&&r.isVector3?i.copy(r):this[n]=r}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(e={textures:{},images:{}});const r={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(r.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(r.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(r.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(r.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(r.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(r.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(r.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(r.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(e).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(e).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(e).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(e).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(e).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==nm&&(r.blending=this.blending),this.side!==ru&&(r.side=this.side),this.vertexColors===!0&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.transparent===!0&&(r.transparent=!0),this.blendSrc!==pj&&(r.blendSrc=this.blendSrc),this.blendDst!==gj&&(r.blendDst=this.blendDst),this.blendEquation!==Qu&&(r.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(r.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(r.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(r.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(r.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(r.blendAlpha=this.blendAlpha),this.depthFunc!==N_&&(r.depthFunc=this.depthFunc),this.depthTest===!1&&(r.depthTest=this.depthTest),this.depthWrite===!1&&(r.depthWrite=this.depthWrite),this.colorWrite===!1&&(r.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(r.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==e8&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==zh&&(r.stencilFail=this.stencilFail),this.stencilZFail!==zh&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==zh&&(r.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(r.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),this.alphaHash===!0&&(r.alphaHash=!0),this.alphaToCoverage===!0&&(r.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=!0),this.forceSinglePass===!0&&(r.forceSinglePass=!0),this.wireframe===!0&&(r.wireframe=!0),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=!0),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),this.fog===!1&&(r.fog=!1),Object.keys(this.userData).length>0&&(r.userData=this.userData);function i(s){const o=[];for(const a in s){const c=s[a];delete c.metadata,o.push(c)}return o}if(n){const s=i(e.textures),o=i(e.images);s.length>0&&(r.textures=s),o.length>0&&(r.images=o)}return r}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const n=e.clippingPlanes;let r=null;if(n!==null){const i=n.length;r=new Array(i);for(let s=0;s!==i;++s)r[s]=n[s].clone()}return this.clippingPlanes=r,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipSh
vendor: 8,000 bytes, line 6901
6901adows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class Ete extends wh{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new kt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Y3,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const nr=new le,Eb=new Ht;class As{constructor(e,n,r=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=n,this.count=e!==void 0?e.length/n:0,this.normalized=r,this.usage=t8,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Cc,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,n,r){e*=this.itemSize,r*=n.itemSize;for(let i=0,s=this.itemSize;i<s;i++)this.array[e+i]=n.array[r+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let n=0,r=this.count;n<r;n++)Eb.fromBufferAttribute(this,n),Eb.applyMatrix3(e),this.setXY(n,Eb.x,Eb.y);else if(this.itemSize===3)for(let n=0,r=this.count;n<r;n++)nr.fromBufferAttribute(this,n),nr.applyMatrix3(e),this.setXYZ(n,nr.x,nr.y,nr.z);return this}applyMatrix4(e){for(let n=0,r=this.count;n<r;n++)nr.fromBufferAttribute(this,n),nr.applyMatrix4(e),this.setXYZ(n,nr.x,nr.y,nr.z);return this}applyNormalMatrix(e){for(let n=0,r=this.count;n<r;n++)nr.fromBufferAttribute(this,n),nr.applyNormalMatrix(e),this.setXYZ(n,nr.x,nr.y,nr.z);return this}transformDirection(e){for(let n=0,r=this.count;n<r;n++)nr.fromBufferAttribute(this,n),nr.transformDirection(e),this.setXYZ(n,nr.x,nr.y,nr.z);return this}set(e,n=0){return this.array.set(e,n),this}getComponent(e,n){let r=this.array[e*this.itemSize+n];return this.normalized&&(r=lf(r,this.array)),r}setComponent(e,n,r){return this.normalized&&(r=mi(r,this.array)),this.array[e*this.itemSize+n]=r,this}getX(e){let n=this.array[e*this.itemSize];return this.normalized&&(n=lf(n,this.array)),n}setX(e,n){return this.normalized&&(n=mi(n,this.array)),this.array[e*this.itemSize]=n,this}getY(e){let n=this.array[e*this.itemSize+1];return this.normalized&&(n=lf(n,this.array)),n}setY(e,n){return this.normalized&&(n=mi(n,this.array)),this.array[e*this.itemSize+1]=n,this}getZ(e){let n=this.array[e*this.itemSize+2];return this.normalized&&(n=lf(n,this.array)),n}setZ(e,n){return this.normalized&&(n=mi(n,this.array)),this.array[e*this.itemSize+2]=n,this}getW(e){let n=this.array[e*this.itemSize+3];return this.normalized&&(n=lf(n,this.array)),n}setW(e,n){return this.normalized&&(n=mi(n,this.array)),this.array[e*this.itemSize+3]=n,this}setXY(e,n,r){return e*=this.itemSize,this.normalized&&(n=mi(n,this.array),r=mi(r,this.array)),this.array[e+0]=n,this.array[e+1]=r,this}setXYZ(e,n,r,i){return e*=this.itemSize,this.normalized&&(n=mi(n,this.array),r=mi(r,this.array),i=mi(i,this.array)),this.array[e+0]=n,this.array[e+1]=r,this.array[e+2]=i,this}setXYZW(e,n,r,i,s){return e*=this.itemSize,this.normalized&&(n=mi(n,this.array),r=mi(r,this.array),i=mi(i,this.array),s=mi(s,this.array)),this.array[e+0]=n,this.array[e+1]=r,this.array[e+2]=i,this.array[e+3]=s,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(e.name=this.name),this.usage!==t8&&(e.usage=this.usage),e}}class Tte extends As{constructor(e,n,r){super(new Uint16Array(e),n,r)}}class Ate extends As{constructor(e,n,r){super(new Uint32Array(e),n,r)}}class Yo extends As{constructor(e,n,r){super(new Float32Array(e),n,r)}}let Nqe=0;const Us=new qn,DA=new ci,Kh=new le,as=new J0,Pg=new J0,_r=new le;class po extends Hp{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Nqe++}),this.uuid=Vp(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(yte(e)?Ate:Tte)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,n){return this.attributes[e]=n,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,n,r=0){this.groups.push({start:e,count:n,materialIndex:r})}clearGroups(){this.groups=[]}setDrawRange(e,n){this.drawRange.start=e,this.drawRange.count=n}applyMatrix4(e){const n=this.attributes.position;n!==void 0&&(n.applyMatrix4(e),n.needsUpdate=!0);const r=this.attributes.normal;if(r!==void 0){const s=new Pt().getNormalMatrix(e);r.applyNormalMatrix(s),r.needsUpdate=!0}const i=this.attributes.tangent;return i!==void 0&&(i.transformDirection(e),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return Us.makeRotationFromQuaternion(e),this.applyMatrix4(Us),this}rotateX(e){return Us.makeRotationX(e),this.applyMatrix4(Us),this}rotateY(e){return Us.makeRotationY(e),this.applyMatrix4(Us),this}rotateZ(e){return Us.makeRotationZ(e),this.applyMatrix4(Us),this}translate(e,n,r){return Us.makeTranslation(e,n,r),this.applyMatrix4(Us),this}scale(e,n,r){return Us.makeScale(e,n,r),this.applyMatrix4(Us),this}lookAt(e){return DA.lookAt(e),DA.updateMatrix(),this.applyMatrix4(DA.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Kh).negate(),this.translate(Kh.x,Kh.y,Kh.z),this}setFromPoints(e){const n=[];for(let r=0,i=e.length;r<i;r++){const s=e[r];n.push(s.x,s.y,s.z||0)}return this.setAttribute("position",new Yo(n,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new J0);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "fal
6901se".',this),this.boundingBox.set(new le(-1/0,-1/0,-1/0),new le(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),n)for(let r=0,i=n.length;r<i;r++){const s=n[r];as.setFromBufferAttribute(s),this.morphTargetsRelative?(_r.addVectors(this.boundingBox.min,as.min),this.boundingBox.expandByPoint(_r),_r.addVectors(this.boundingBox.max,as.max),this.boundingBox.expandByPoint(_r)):(this.boundingBox.expandByPoint(as.min),this.boundingBox.expandByPoint(as.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new ex);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "fal
6901se".',this),this.boundingSphere.set(new le,1/0);return}if(e){const r=this.boundingSphere.center;if(as.setFromBufferAttribute(e),n)for(let s=0,o=n.length;s<o;s++){const a=n[s];Pg.setFromBufferAttribute(a),this.morphTargetsRelative?(_r.addVectors(as.min,Pg.min),as.expandByPoint(_r),_r.addVectors(as.max,Pg.max),as.expandByPoint(_r)):(as.expandByPoint(Pg.min),as.expandByPoint(Pg.max))}as.getCenter(r);let i=0;for(let s=0,o=e.count;s<o;s++)_r.fromBufferAttribute(e,s),i=Math.max(i,r.distanceToSquared(_r));if(n)for(let s=0,o=n.length;s<o;s++){const a=n[s],c=this.morphTargetsRelative;for(let u=0,d=a.count;u<d;u++)_r.fromBufferAttribute(a,u),c&&(Kh.fromBufferAttribute(e,u),_r.add(Kh)),i=Math.max(i,r.distanceToSquared(_r))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,n=this.attributes;if(e===null||n.position===void 0||n.normal===void 0||n.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const r=e.array,i=n.position.array,s=n.normal.array,o=n.uv.array,a=i.length/3;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new As(new Float32Array(4*a),4));const c=this.getAttribute("tangent").array,u=[],d=[];for(let C=0;C<a;C++)u[C]=new le,d[C]=new le;const h=new le,f=new le,m=new le,v=new Ht,p=new Ht,g=new Ht,y=new le,b=new le;function x(C,R,j){h.fromArray(i,C*3),f.fromArray(i,R*3),m.fromArray(i,j*3),v.fromArray(o,C*2),p.fromArray(o,R*2),g.fromArray(o,j*2),f.sub(h),m.sub(h),p.sub(v),g.sub(v);const k=1/(p.x*g.y-g.x*p.y);isFinite(k)&&(y.copy(f).multiplyScalar(g.y).addScaledVector(m,-p.y).multiplyScalar(k),b.copy(m).multiplyScalar(p.x).addScaledVector(f,-g.x).multiplyScalar(k),u[C].add(y),u[R].add(y),u[j].add(y),d[C].add(b),d[R].add(b),d[j].add(b))}let w=this.groups;w.length===0&&(w=[{start:0,count:r.length}]);for(let C=0,R=w.length;C<R;++C){const j=w[C],k=j.start,P=j.count;for(let O=k,L=k+P;O<L;O+=3)x(r[O+0],r[O+1],r[O+2])}const _=new le,S=new le,T=new le,M=new le;function A(C){T.fromArray(s,C*3),M.copy(T);const R=u[C];_.copy(R),_.sub(T.multiplyScalar(T.dot(R))).normalize(),S.crossVectors(M,R);const k=S.dot(d[C])<0?-1:1;c[C*4]=_.x,c[C*4+1]=_.y,c[C*4+2]=_.z,c[C*4+3]=k}for(let C=0,R=w.length;C<R;++C){const j=w[C],k=j.start,P=j.count;for(let O=k,L=k+P;O<L;O+=3)A(r[O+0]),A(r[O+1]),A(r[O+2])}}computeVertexNormals(){const e=this.index,n=this.getAttribute("position");if(n!==void 0){let r=this.getAttribute("normal");if(r===void 0)r=new As(new Float32Array(n.count*3),3),this.setAttribute("normal",r);else for(let f=0,m=r.count;f<m;f++)r.setXYZ(f,0,0,0);const i=new le,s=new le,o=new le,a=new le,c=new le,u=new le,d=new le,h=new le;if(e)for(let f=0,m=e.count;f<m;f+=3){const v=e.getX(f+0),p=e.getX(f+1),g=e.getX(f+2);i.fromBufferAttribute(n,v),s.fromBufferAttribute(n,p),o.fromBufferAttribute(n,g),d.subVectors(o,s),h.subVectors(i,s),d.cross(h),a.fromBufferAttribute(r,v),c.fromBufferAttribute(r,p),u.fromBufferAttribute(r,g),a.add(d),c.add(d),u.add(d),r.setXYZ(v,a.x,a.y,a.z),r.setXYZ(p,c.x,c.y,c.z),r.setXYZ(g,u.x,u.y,u.z)}else for(let f=0,m=n.count;f<m;f+=3)i.fromBufferAttribute(n,f+0),s.fromBufferAttribute(n,f+1),o.fromBufferAttribute(n,f+2),d.subVectors(o,s),h.subVectors(i,s),d.cross(h),r.setXYZ(f+0,d.x,d.y,d.z),r.setXYZ(f+1,d.x,d.y,d.z),r.setXYZ(f+2,d.x,d.y,d.z);this.normalizeNormals(),r.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let n=0,r=e.count;n<r;n++)_r.fromBufferAttribute(e,n),_r.normalize(),e.setXYZ(n,_r.x,_r.y,_r.z)}toNonIndexed(){function e(a,c){const u=a.array,d=a.itemSize,h=a.normalized,f=new u.constructor(c.length*d);let m=0,v=0;for(let p=0,g=c.length;p<g;p++){a.isInterleavedBufferAttribute?m=c[p]*a.data.stride+a.offset:m=c[p]*d;for(let y=0;y<d;
vendor: 26,925 bytes, lines 6901-6994
6901y++)f[v++]=u[m++]}return new As(f,d,h)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const n=new po,r=this.index.array,i=this.attributes;for(const a in i){const c=i[a],u=e(c,r);n.setAttribute(a,u)}const s=this.morphAttributes;for(const a in s){const c=[],u=s[a];for(let d=0,h=u.length;d<h;d++){const f=u[d],m=e(f,r);c.push(m)}n.morphAttributes[a]=c}n.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let a=0,c=o.length;a<c;a++){const u=o[a];n.addGroup(u.start,u.count,u.materialIndex)}return n}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const c=this.parameters;for(const u in c)c[u]!==void 0&&(e[u]=c[u]);return e}e.data={attributes:{}};const n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const r=this.attributes;for(const c in r){const u=r[c];e.data.attributes[c]=u.toJSON(e.data)}const i={};let s=!1;for(const c in this.morphAttributes){const u=this.morphAttributes[c],d=[];for(let h=0,f=u.length;h<f;h++){const m=u[h];d.push(m.toJSON(e.data))}d.length>0&&(i[c]=d,s=!0)}s&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const n={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(n));const i=e.attributes;for(const u in i){const d=i[u];this.setAttribute(u,d.clone(n))}const s=e.morphAttributes;for(const u in s){const d=[],h=s[u];for(let f=0,m=h.length;f<m;f++)d.push(h[f].clone(n));this.morphAttributes[u]=d}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let u=0,d=o.length;u<d;u++){const h=o[u];this.addGroup(h.start,h.count,h.materialIndex)}const a=e.boundingBox;a!==null&&(this.boundingBox=a.clone());const c=e.boundingSphere;return c!==null&&(this.boundingSphere=c.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const p8=new qn,Iu=new Z3,Tb=new ex,g8=new le,Qh=new le,Zh=new le,Jh=new le,FA=new le,Ab=new le,Cb=new Ht,Mb=new Ht,Rb=new Ht,v8=new le,y8=new le,x8=new le,Pb=new le,jb=new le;class Vo extends ci{constructor(e=new po,n=new Ete){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const n=this.geometry.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s<o;s++){const a=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=s}}}}getVertexPosition(e,n){const r=this.geometry,i=r.attributes.position,s=r.morphAttributes.position,o=r.morphTargetsRelative;n.fromBufferAttribute(i,e);const a=this.morphTargetInfluences;if(s&&a){Ab.set(0,0,0);for(let c=0,u=s.length;c<u;c++){const d=a[c],h=s[c];d!==0&&(FA.fromBufferAttribute(h,e),o?Ab.addScaledVector(FA,d):Ab.addScaledVector(FA.sub(n),d))}n.add(Ab)}return n}raycast(e,n){const r=this.geometry,i=this.material,s=this.matrixWorld;i!==void 0&&(r.boundingSphere===null&&r.computeBoundingSphere(),Tb.copy(r.boundingSphere),Tb.applyMatrix4(s),Iu.copy(e.ray).recast(e.near),!(Tb.containsPoint(Iu.origin)===!1&&(Iu.intersectSphere(Tb,g8)===null||Iu.origin.distanceToSquared(g8)>(e.far-e.near)**2))&&(p8.copy(s).invert(),Iu.copy(e.ray).applyMatrix4(p8),!(r.boundingBox!==null&&Iu.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,n,Iu)))}_computeIntersections(e,n,r){let i;const s=this.geometry,o=this.material,a=s.index,c=s.attributes.position,u=s.attributes.uv,d=s.attributes.uv1,h=s.attributes.normal,f=s.groups,m=s.drawRange;if(a!==null)if(Array.isArray(o))for(let v=0,p=f.length;v<p;v++){const g=f[v],y=o[g.materialIndex],b=Math.max(g.start,m.start),x=Math.min(a.count,Math.min(g.start+g.count,m.start+m.count));for(let w=b,_=x;w<_;w+=3){const S=a.getX(w),T=a.getX(w+1),M=a.getX(w+2);i=Nb(this,y,e,r,u,d,h,S,T,M),i&&(i.faceIndex=Math.floor(w/3),i.face.materialIndex=g.materialIndex,n.push(i))}}else{const v=Math.max(0,m.start),p=Math.min(a.count,m.start+m.count);for(let g=v,y=p;g<y;g+=3){const b=a.getX(g),x=a.getX(g+1),w=a.getX(g+2);i=Nb(this,o,e,r,u,d,h,b,x,w),i&&(i.faceIndex=Math.floor(g/3),n.push(i))}}else if(c!==void 0)if(Array.isArray(o))for(let v=0,p=f.length;v<p;v++){const g=f[v],y=o[g.materialIndex],b=Math.max(g.start,m.start),x=Math.min(c.count,Math.min(g.start+g.count,m.start+m.count));for(let w=b,_=x;w<_;w+=3){const S=w,T=w+1,M=w+2;i=Nb(this,y,e,r,u,d,h,S,T,M),i&&(i.faceIndex=Math.floor(w/3),i.face.materialIndex=g.materialIndex,n.push(i))}}else{const v=Math.max(0,m.start),p=Math.min(c.count,m.start+m.count);for(let g=v,y=p;g<y;g+=3){const b=g,x=g+1,w=g+2;i=Nb(this,o,e,r,u,d,h,b,x,w),i&&(i.faceIndex=Math.floor(g/3),n.push(i))}}}}function kqe(t,e,n,r,i,s,o,a){let c;if(e.side===ts?c=r.intersectTriangle(o,s,i,!0,a):c=r.intersectTriangle(i,s,o,e.side===ru,a),c===null)return null;jb.copy(a),jb.applyMatrix4(t.matrixWorld);const u=n.ray.origin.distanceTo(jb);return u<n.near||u>n.far?null:{distance:u,point:jb.clone(),object:t}}function Nb(t,e,n,r,i,s,o,a,c,u){t.getVertexPosition(a,Qh),t.getVertexPosition(c,Zh),t.getVertexPosition(u,Jh);const d=kqe(t,e,n,r,Qh,Zh,Jh,Pb);if(d){i&&(Cb.fromBufferAttribute(i,a),Mb.fromBufferAttribute(i,c),Rb.fromBufferAttribute(i,u),d.uv=Lo.getInterpolation(Pb,Qh,Zh,Jh,Cb,Mb,Rb,new Ht)),s&&(Cb.fromBufferAttribute(s,a),Mb.fromBufferAttribute(s,c),Rb.fromBufferAttribute(s,u),d.uv1=Lo.getInterpolation(Pb,Qh,Zh,Jh,Cb,Mb,Rb,new Ht),d.uv2=d.uv1),o&&(v8.fromBufferAttribute(o,a),y8.fromBufferAttribute(o,c),x8.fromBufferAttribute(o,u),d.normal=Lo.getInterpolation(Pb,Qh,Zh,Jh,v8,y8,x8,new le),d.normal.dot(r.direction)>0&&d.normal.multiplyScalar(-1));const h={a,b:c,c:u,normal:new le,materialIndex:0};Lo.getNormal(Qh,Zh,Jh,h.normal),d.face=h}return d}class tx extends po{constructor(e=1,n=1,r=1,i=1,s=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:r,widthSegments:i,heightSegments:s,depthSegments:o};const a=this;i=Math.floor(i),s=Math.floor(s),o=Math.floor(o);const c=[],u=[],d=[],h=[];let f=0,m=0;v("z","y","x",-1,-1,r,n,e,o,s,0),v("z","y","x",1,-1,r,n,-e,o,s,1),v("x","z","y",1,1,e,r,n,i,o,2),v("x","z","y",1,-1,e,r,-n,i,o,3),v("x","y","z",1,-1,e,n,r,i,s,4),v("x","y","z",-1,-1,e,n,-r,i,s,5),this.setIndex(c),this.setAttribute("position",new Yo(u,3)),this.setAttribute("normal",new Yo(d,3)),this.setAttribute("uv",new Yo(h,2));function v(p,g,y,b,x,w,_,S,T,M,A){const C=w/T,R=_/M,j=w/2,k=_/2,P=S/2,O=T+1,L=M+1;let F=0,D=0;const I=new le;for(let N=0;N<L;N++){const G=N*R-k;for(let q=0;q<O;q++){const W=q*C-j;I[p]=W*b,I[g]=G*x,I[y]=P,u.push(I.x,I.y,I.z),I[p]=0,I[g]=0,I[y]=S>0?1:-1,d.push(I.x,I.y,I.z),h.push(q/T),h.push(1-N/M),F+=1}}for(let N=0;N<M;N++)for(let G=0;G<T;G++){const q=f+G+O*N,W=f+G+O*(N+1),Y=f+(G+1)+O*(N+1),te=f+(G+1)+O*N;c.push(q,W,te),c.push(W,Y,te),D+=6}a.addGroup(m,D,A),m+=D,f+=F}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new tx(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function cp(t){const e={};for(const n in t){e[n]={};for(const r in t[n]){const i=t[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?i.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[n][r]=null):e[n][r]=i.clone():Array.isArray(i)?e[n][r]=i.slice():e[n][r]=i}}return e}function pi(t){const e={};for(let n=0;n<t.length;n++){const r=cp(t[n]);for(const i in r)e[i]=r[i]}return e}function Oqe(t){const e=[];for(let n=0;n<t.length;n++)e.push(t[n].clone());return e}function Cte(t){return t.getRenderTarget()===null?t.outputColorSpace:un.workingColorSpace}const Iqe={clone:cp,merge:pi};var Lqe=`void main() { 6902 gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); 6903}`,Dqe=`void main() { 6904 gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 ); 6905}`;class iu extends wh{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=Lqe,this.fragmentShader=Dqe,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1,clipCullDistance:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=cp(e.uniforms),this.uniformsGroups=Oqe(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const n=super.toJSON(e);n.glslVersion=this.glslVersion,n.uniforms={};for(const i in this.uniforms){const o=this.uniforms[i].value;o&&o.isTexture?n.uniforms[i]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?n.uniforms[i]={type:"c",value:o.getHex()}:o&&o.isVector2?n.uniforms[i]={type:"v2",value:o.toArray()}:o&&o.isVector3?n.uniforms[i]={type:"v3",value:o.toArray()}:o&&o.isVector4?n.uniforms[i]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?n.uniforms[i]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?n.uniforms[i]={type:"m4",value:o.toArray()}:n.uniforms[i]={value:o}}Object.keys(this.defines).length>0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(n.extensions=r),n}}class Mte extends ci{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new qn,this.projectionMatrix=new qn,this.projectionMatrixInverse=new qn,this.coordinateSystem=fl}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class gs extends Mte{constructor(e=50,n=1,r=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=r,this.far=i,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const n=.5*this.getFilmHeight()/e;this.fov=m0*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Dv*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return m0*2*Math.atan(Math.tan(Dv*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,n,r,i,s,o){this.aspect=e/n,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(Dv*.5*this.fov)/this.zoom,r=2*n,i=this.aspect*r,s=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const c=o.fullWidth,u=o.fullHeight;s+=o.offsetX*i/c,n-=o.offsetY*r/u,i*=o.width/c,r*=o.height/u}const a=this.filmOffset;a!==0&&(s+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+i,n,n-r,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const ef=-90,tf=1;class Fqe extends ci{constructor(e,n,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new gs(ef,tf,e,n);i.layers=this.layers,this.add(i);const s=new gs(ef,tf,e,n);s.layers=this.layers,this.add(s);const o=new gs(ef,tf,e,n);o.layers=this.layers,this.add(o);const a=new gs(ef,tf,e,n);a.layers=this.layers,this.add(a);const c=new gs(ef,tf,e,n);c.layers=this.layers,this.add(c);const u=new gs(ef,tf,e,n);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[r,i,s,o,a,c]=n;for(const u of n)this.remove(u);if(e===fl)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),s.up.set(0,0,-1),s.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),c.up.set(0,1,0),c.lookAt(0,0,-1);else if(e===L_)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),s.up.set(0,0,1),s.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),c.up.set(0,-1,0),c.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of n)this.add(u),u.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:r,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[s,o,a,c,u,d]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),m=e.getActiveMipmapLevel(),v=e.xr.enabled;e.xr.enabled=!1;const p=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0,i),e.render(n,s),e.setRenderTarget(r,1,i),e.render(n,o),e.setRenderTarget(r,2,i),e.render(n,a),e.setRenderTarget(r,3,i),e.render(n,c),e.setRenderTarget(r,4,i),e.render(n,u),r.texture.generateMipmaps=p,e.setRenderTarget(r,5,i),e.render(n,d),e.setRenderTarget(h,f,m),e.xr.enabled=v,r.texture.needsPMREMUpdate=!0}}class Rte extends Ts{constructor(e,n,r,i,s,o,a,c,u,d){e=e!==void 0?e:[],n=n!==void 0?n:op,super(e,n,r,i,s,o,a,c,u,d),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Uqe extends ah{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];n.encoding!==void 0&&(Uv("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),n.colorSpace=n.encoding===Ld?Dr:Xs),this.texture=new Rte(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:Ys}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:` 6906 6907 varying vec3 vWorldDirection; 6908 6909 vec3 transformDirection( in vec3 dir, in mat4 matrix ) { 6910 6911 return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); 6912 6913 } 6914 6915 void main() { 6916 6917 vWorldDirection = transformDirection( position, modelMatrix ); 6918 6919 #include <begin_vertex> 6920 #include <project_vertex> 6921 6922 } 6923 `,fragmentShader:` 6924 6925 uniform sampler2D tEquirect; 6926 6927 varying vec3 vWorldDirection; 6928 6929 #include <common> 6930 6931 void main() { 6932 6933 vec3 direction = normalize( vWorldDirection ); 6934 6935 vec2 sampleUV = equirectUv( direction ); 6936 6937 gl_FragColor = texture2D( tEquirect, sampleUV ); 6938 6939 } 6940 `},i=new tx(5,5,5),s=new iu({name:"CubemapFromEquirect",uniforms:cp(r.uniforms),vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,side:ts,blending:Vc});s.uniforms.tEquirect.value=n;const o=new Vo(i,s),a=n.minFilter;return n.minFilter===h0&&(n.minFilter=Ys),new Fqe(1,10,this).update(e,o),n.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,n,r,i){const s=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(n,r,i);e.setRenderTarget(s)}}const UA=new le,Bqe=new le,zqe=new Pt;class Yu{constructor(e=new le(1,0,0),n=0){this.isPlane=!0,this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,r,i){return this.normal.set(e,n,r),this.constant=i,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,r){const i=UA.subVectors(r,n).cross(Bqe.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,n){return n.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,n){const r=e.delta(UA),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const s=-(e.start.dot(this.normal)+this.constant)/i;return s<0||s>1?null:n.copy(e.start).addScaledVector(r,s)}intersectsLine(e){const n=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return n<0&&r>0||r<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const r=n||zqe.getNormalMatrix(e),i=this.coplanarPoint(UA).applyMatrix4(e),s=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(s),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Lu=new ex,kb=new le;class J3{constructor(e=new Yu,n=new Yu,r=new Yu,i=new Yu,s=new Yu,o=new Yu){this.planes=[e,n,r,i,s,o]}set(e,n,r,i,s,o){const a=this.planes;return a[0].copy(e),a[1].copy(n),a[2].copy(r),a[3].copy(i),a[4].copy(s),a[5].copy(o),this}copy(e){const n=this.planes;for(let r=0;r<6;r++)n[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e,n=fl){const r=this.planes,i=e.elements,s=i[0],o=i[1],a=i[2],c=i[3],u=i[4],d=i[5],h=i[6],f=i[7],m=i[8],v=i[9],p=i[10],g=i[11],y=i[12],b=i[13],x=i[14],w=i[15];if(r[0].setComponents(c-s,f-u,g-m,w-y).normalize(),r[1].setComponents(c+s,f+u,g+m,w+y).normalize(),r[2].setComponents(c+o,f+d,g+v,w+b).normalize(),r[3].setComponents(c-o,f-d,g-v,w-b).normalize(),r[4].setComponents(c-a,f-h,g-p,w-x).normalize(),n===fl)r[5].setComponents(c+a,f+h,g+p,w+x).normalize();else if(n===L_)r[5].setComponents(a,h,p,x).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Lu.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),Lu.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Lu)}intersectsSprite(e){return Lu.center.set(0,0,0),Lu.radius=.7071067811865476,Lu.applyMatrix4(e.matrixWorld),this.intersectsSphere(Lu)}intersectsSphere(e){const n=this.planes,r=e.center,i=-e.radius;for(let s=0;s<6;s++)if(n[s].distanceToPoint(r)<i)return!1;return!0}intersectsBox(e){const n=this.planes;for(let r=0;r<6;r++){const i=n[r];if(kb.x=i.normal.x>0?e.max.x:e.min.x,kb.y=i.normal.y>0?e.max.y:e.min.y,kb.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(kb)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let r=0;r<6;r++)if(n[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function Pte(){let t=null,e=!1,n=null,r=null;function i(s,o){n(s,o),r=t.requestAnimationFrame(i)}return{start:function(){e!==!0&&n!==null&&(r=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(s){n=s},setContext:function(s){t=s}}}function $qe(t,e){const n=e.isWebGL2,r=new WeakMap;function i(u,d){const h=u.array,f=u.usage,m=h.byteLength,v=t.createBuffer();t.bindBuffer(d,v),t.bufferData(d,h,f),u.onUploadCallback();let p;if(h instanceof Float32Array)p=t.FLOAT;else if(h instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(n)p=t.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else p=t.UNSIGNED_SHORT;else if(h instanceof Int16Array)p=t.SHORT;else if(h instanceof Uint32Array)p=t.UNSIGNED_INT;else if(h instanceof Int32Array)p=t.INT;else if(h instanceof Int8Array)p=t.BYTE;else if(h instanceof Uint8Array)p=t.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)p=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:v,type:p,bytesPerElement:h.BYTES_PER_ELEMENT,version:u.version,size:m}}function s(u,d,h){const f=d.array,m=d._updateRange,v=d.updateRanges;if(t.bindBuffer(h,u),m.count===-1&&v.length===0&&t.bufferSubData(h,0,f),v.length!==0){for(let p=0,g=v.length;p<g;p++){const y=v[p];n?t.bufferSubData(h,y.start*f.BYTES_PER_ELEMENT,f,y.start,y.count):t.bufferSubData(h,y.start*f.BYTES_PER_ELEMENT,f.subarray(y.start,y.start+y.count))}d.clearUpdateRanges()}m.count!==-1&&(n?t.bufferSubData(h,m.offset*f.BYTES_PER_ELEMENT,f,m.offset,m.count):t.bufferSubData(h,m.offset*f.BYTES_PER_ELEMENT,f.subarray(m.offset,m.offset+m.count)),m.count=-1),d.onUploadCallback()}function o(u){return u.isInterleavedBufferAttribute&&(u=u.data),r.get(u)}function a(u){u.isInterleavedBufferAttribute&&(u=u.data);const d=r.get(u);d&&(t.deleteBuffer(d.buffer),r.delete(u))}function c(u,d){if(u.isGLBufferAttribute){const f=r.get(u);(!f||f.version<u.version)&&r.set(u,{buffer:u.buffer,type:u.type,bytesPerElement:u.elementSize,version:u.version});return}u.isInterleavedBufferAttribute&&(u=u.data);const h=r.get(u);if(h===void 0)r.set(u,i(u,d));else if(h.version<u.version){if(h.size!==u.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");s(h.buffer,u,d),h.version=u.version}}return{get:o,remove:a,update:c}}class G2 extends po{constructor(e=1,n=1,r=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:n,widthSegments:r,heightSegments:i};const s=e/2,o=n/2,a=Math.floor(r),c=Math.floor(i),u=a+1,d=c+1,h=e/a,f=n/c,m=[],v=[],p=[],g=[];for(let y=0;y<d;y++){const b=y*f-o;for(let x=0;x<u;x++){const w=x*h-s;v.push(w,-b,0),p.push(0,0,1),g.push(x/a),g.push(1-y/c)}}for(let y=0;y<c;y++)for(let b=0;b<a;b++){const x=b+u*y,w=b+u*(y+1),_=b+1+u*(y+1),S=b+1+u*y;m.push(x,w,S),m.push(w,_,S)}this.setIndex(m),this.setAttribute("position",new Yo(v,3)),this.setAttribute("normal",new Yo(p,3)),this.setAttribute("uv",new Yo(g,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new G2(e.width,e.height,e.widthSegments,e.heightSegments)}}var Hqe=`#ifdef USE_ALPHAHASH 6941 if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard; 6942#endif`,Vqe=`#ifdef USE_ALPHAHASH 6943 const float ALPHA_HASH_SCALE = 0.05; 6944 float hash2D( vec2 value ) { 6945 return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) ); 6946 } 6947 float hash3D( vec3 value ) { 6948 return hash2D( vec2( hash2D( value.xy ), value.z ) ); 6949 } 6950 float getAlphaHashThreshold( vec3 position ) { 6951 float maxDeriv = max( 6952 length( dFdx( position.xyz ) ), 6953 length( dFdy( position.xyz ) ) 6954 ); 6955 float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv ); 6956 vec2 pixScales = vec2( 6957 exp2( floor( log2( pixScale ) ) ), 6958 exp2( ceil( log2( pixScale ) ) ) 6959 ); 6960 vec2 alpha = vec2( 6961 hash3D( floor( pixScales.x * position.xyz ) ), 6962 hash3D( floor( pixScales.y * position.xyz ) ) 6963 ); 6964 float lerpFactor = fract( log2( pixScale ) ); 6965 float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y; 6966 float a = min( lerpFactor, 1.0 - lerpFactor ); 6967 vec3 cases = vec3( 6968 x * x / ( 2.0 * a * ( 1.0 - a ) ), 6969 ( x - 0.5 * a ) / ( 1.0 - a ), 6970 1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) ) 6971 ); 6972 float threshold = ( x < ( 1.0 - a ) ) 6973 ? ( ( x < a ) ? cases.x : cases.y ) 6974 : cases.z; 6975 return clamp( threshold , 1.0e-6, 1.0 ); 6976 } 6977#endif`,Wqe=`#ifdef USE_ALPHAMAP 6978 diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g; 6979#endif`,Gqe=`#ifdef USE_ALPHAMAP 6980 uniform sampler2D alphaMap; 6981#endif`,qqe=`#ifdef USE_ALPHATEST 6982 if ( diffuseColor.a < alphaTest ) discard; 6983#endif`,Yqe=`#ifdef USE_ALPHATEST 6984 uniform float alphaTest; 6985#endif`,Xqe=`#ifdef USE_AOMAP 6986 float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0; 6987 reflectedLight.indirectDiffuse *= ambientOcclusion; 6988 #if defined( USE_CLEARCOAT ) 6989 clearcoatSpecularIndirect *= ambientOcclusion; 6990 #endif 6991 #if defined( USE_SHEEN ) 6992 sheenSpecularIndirect *= ambientOcclusion; 6993 #endif 6994 #if defined( USE_ENVMAP ) && defined( STANDARD )
6995 float dotNV = saturate( dot( geometryNormal, geometryViewDir ) ); 6996 reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness ); 6997 #endif 6998#endif`,Kqe=`#ifdef USE_AOMAP 6999 uniform sampler2D aoMap; 7000 uniform float aoMapIntensity; 7001#endif`,Qqe=`#ifdef USE_BATCHING 7002 attribute float batchId; 7003 uniform highp sampler2D batchingTexture; 7004 mat4 getBatchingMatrix( const in float i ) { 7005 int size = textureSize( batchingTexture, 0 ).x; 7006 int j = int( i ) * 4; 7007 int x = j % size; 7008 int y = j / size; 7009 vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 ); 7010 vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 ); 7011 vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 ); 7012 vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 ); 7013 return mat4( v1, v2, v3, v4 ); 7014 } 7015#endif`,Zqe=`#ifdef USE_BATCHING 7016 mat4 batchingMatrix = getBatchingMatrix( batchId ); 7017#endif`,Jqe=`vec3 transformed = vec3( position ); 7018#ifdef USE_ALPHAHASH 7019 vPosition = vec3( position ); 7020#endif`,eYe=`vec3 objectNormal = vec3( normal ); 7021#ifdef USE_TANGENT 7022 vec3 objectTangent = vec3( tangent.xyz ); 7023#endif`,tYe=`float G_BlinnPhong_Implicit( ) { 7024 return 0.25; 7025} 7026float D_BlinnPhong( const in float shininess, const in float dotNH ) { 7027 return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess ); 7028} 7029vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) { 7030 vec3 halfDir = normalize( lightDir + viewDir ); 7031 float dotNH = saturate( dot( normal, halfDir ) ); 7032 float dotVH = saturate( dot( viewDir, halfDir ) ); 7033 vec3 F = F_Schlick( specularColor, 1.0, dotVH ); 7034 float G = G_BlinnPhong_Implicit( ); 7035 float D = D_BlinnPhong( shininess, dotNH ); 7036 return F * ( G * D ); 7037} // validated`,nYe=`#ifdef USE_IRIDESCENCE 7038 const mat3 XYZ_TO_REC709 = mat3( 7039 3.2404542, -0.9692660, 0.0556434, 7040 -1.5371385, 1.8760108, -0.2040259, 7041 -0.4985314, 0.0415560, 1.0572252 7042 ); 7043 vec3 Fresnel0ToIor( vec3 fresnel0 ) { 7044 vec3 sqrtF0 = sqrt( fresnel0 ); 7045 return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 ); 7046 } 7047 vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) { 7048 return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) ); 7049 } 7050 float IorToFresnel0( float transmittedIor, float incidentIor ) { 7051 return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor )); 7052 } 7053 vec3 evalSensitivity( float OPD, vec3 shift ) { 7054 float phase = 2.0 * PI * OPD * 1.0e-9; 7055 vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 ); 7056 vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 ); 7057 vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 ); 7058 vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var ); 7059 xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) ); 7060 xyz /= 1.0685e-7; 7061 vec3 rgb = XYZ_TO_REC709 * xyz; 7062 return rgb; 7063 } 7064 vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) { 7065 vec3 I; 7066 float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) ); 7067 float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) ); 7068 float cosTheta2Sq = 1.0 - sinTheta2Sq; 7069 if ( cosTheta2Sq < 0.0 ) { 7070 return vec3( 1.0 ); 7071 } 7072 float cosTheta2 = sqrt( cosTheta2Sq ); 7073 float R0 = IorToFresnel0( iridescenceIOR, outsideIOR ); 7074 float R12 = F_Schlick( R0, 1.0, cosTheta1 );
7075 float T121 = 1.0 - R12; 7076 float phi12 = 0.0; 7077 if ( iridescenceIOR < outsideIOR ) phi12 = PI; 7078 float phi21 = PI - phi12; 7079 vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) ); vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR ); 7080 vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 ); 7081 vec3 phi23 = vec3( 0.0 ); 7082 if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI; 7083 if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI; 7084 if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI; 7085 float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2; 7086 vec3 phi = vec3( phi21 ) + phi23; 7087 vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 ); 7088 vec3 r123 = sqrt( R123 ); 7089 vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 ); 7090 vec3 C0 = R12 + Rs; 7091 I = C0; 7092 vec3 Cm = Rs - T121; 7093 for ( int m = 1; m <= 2; ++ m ) { 7094 Cm *= r123; 7095 vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi ); 7096 I += Cm * Sm; 7097 } 7098 return max( I, vec3( 0.0 ) ); 7099 } 7100#endif`,rYe=`#ifdef USE_BUMPMAP 7101 uniform sampler2D bumpMap; 7102 uniform float bumpScale; 7103 vec2 dHdxy_fwd() { 7104 vec2 dSTdx = dFdx( vBumpMapUv ); 7105 vec2 dSTdy = dFdy( vBumpMapUv ); 7106 float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x; 7107 float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll; 7108 float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll; 7109 return vec2( dBx, dBy ); 7110 } 7111 vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) { 7112 vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) ); 7113 vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) ); 7114 vec3 vN = surf_norm; 7115 vec3 R1 = cross( vSigmaY, vN ); 7116 vec3 R2 = cross( vN, vSigmaX ); 7117 float fDet = dot( vSigmaX, R1 ) * faceDirection; 7118 vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 ); 7119 return normalize( abs( fDet ) * surf_norm - vGrad ); 7120 } 7121#endif`,iYe=`#if NUM_CLIPPING_PLANES > 0 7122 vec4 plane; 7123 #pragma unroll_loop_start 7124 for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { 7125 plane = clippingPlanes[ i ]; 7126 if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; 7127 } 7128 #pragma unroll_loop_end 7129 #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES 7130 bool clipped = true; 7131 #pragma unroll_loop_start 7132 for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { 7133 plane = clippingPlanes[ i ]; 7134 clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; 7135 } 7136 #pragma unroll_loop_end 7137 if ( clipped ) discard; 7138 #endif 7139#endif`,sYe=`#if NUM_CLIPPING_PLANES > 0 7140 varying vec3 vClipPosition; 7141 uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; 7142#endif`,oYe=`#if NUM_CLIPPING_PLANES > 0 7143 varying vec3 vClipPosition; 7144#endif`,aYe=`#if NUM_CLIPPING_PLANES > 0 7145 vClipPosition = - mvPosition.xyz; 7146#endif`,lYe=`#if defined( USE_COLOR_ALPHA ) 7147 diffuseColor *= vColor; 7148#elif defined( USE_COLOR ) 7149 diffuseColor.rgb *= vColor; 7150#endif`,cYe=`#if defined( USE_COLOR_ALPHA ) 7151 varying vec4 vColor; 7152#elif defined( USE_COLOR ) 7153 varying vec3 vColor; 7154#endif`,uYe=`#if defined( USE_COLOR_ALPHA ) 7155 varying vec4 vColor; 7156#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) 7157 varying vec3 vColor; 7158#endif`,dYe=`#if defined( USE_COLOR_ALPHA ) 7159 vColor = vec4( 1.0 ); 7160#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) 7161 vColor = vec3( 1.0 ); 7162#endif 7163#ifdef USE_COLOR 7164 vColor *= color; 7165#endif 7166#ifdef USE_INSTANCING_COLOR 7167 vColor.xyz *= instanceColor.xyz; 7168#endif`,hYe=`#define PI 3.141592653589793 7169#define PI2 6.283185307179586 7170#define PI_HALF 1.5707963267948966 7171#define RECIPROCAL_PI 0.3183098861837907 7172#define RECIPROCAL_PI2 0.15915494309189535 7173#define EPSILON 1e-6 7174#ifndef saturate 7175#define saturate( a ) clamp( a, 0.0, 1.0 ) 7176#endif 7177#define whiteComplement( a ) ( 1.0 - saturate( a ) ) 7178float pow2( const in float x ) { return x*x; } 7179vec3 pow2( const in vec3 x ) { return x*x; } 7180float pow3( const in float x ) { return x*x*x; } 7181float pow4( const in float x ) { float x2 = x*x; return x2*x2; } 7182float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } 7183float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } 7184highp float rand( const in vec2 uv ) { 7185 const highp float a = 12.9898, b = 78.233, c = 43758.5453; 7186 highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); 7187 return fract( sin( sn ) * c ); 7188} 7189#ifdef HIGH_PRECISION 7190 float precisionSafeLength( vec3 v ) { return length( v ); } 7191#else 7192 float precisionSafeLength( vec3 v ) { 7193 float maxComponent = max3( abs( v ) ); 7194 return length( v / maxComponent ) * maxComponent; 7195 } 7196#endif 7197struct IncidentLight { 7198 vec3 color; 7199 vec3 direction; 7200 bool visible; 7201}; 7202struct ReflectedLight { 7203 vec3 directDiffuse; 7204 vec3 directSpecular; 7205 vec3 indirectDiffuse; 7206 vec3 indirectSpecular; 7207}; 7208#ifdef USE_ALPHAHASH 7209 varying vec3 vPosition; 7210#endif 7211vec3 transformDirection( in vec3 dir, in mat4 matrix ) { 7212 return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); 7213} 7214vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { 7215 return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); 7216} 7217mat3 transposeMat3( const in mat3 m ) { 7218 mat3 tmp; 7219 tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); 7220 tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); 7221 tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); 7222 return tmp; 7223} 7224float luminance( const in vec3 rgb ) { 7225 const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 ); 7226 return dot( weights, rgb ); 7227} 7228bool isPerspectiveMatrix( mat4 m ) { 7229 return m[ 2 ][ 3 ] == - 1.0; 7230} 7231vec2 equirectUv( in vec3 dir ) { 7232 float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; 7233 float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; 7234 return vec2( u, v ); 7235}
7236vec3 BRDF_Lambert( const in vec3 diffuseColor ) { 7237 return RECIPROCAL_PI * diffuseColor; 7238} 7239vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { 7240 float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); 7241 return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); 7242} 7243float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { 7244 float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); 7245 return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); 7246} // validated`,fYe=`#ifdef ENVMAP_TYPE_CUBE_UV 7247 #define cubeUV_minMipLevel 4.0 7248 #define cubeUV_minTileSize 16.0 7249 float getFace( vec3 direction ) { 7250 vec3 absDirection = abs( direction ); 7251 float face = - 1.0; 7252 if ( absDirection.x > absDirection.z ) { 7253 if ( absDirection.x > absDirection.y ) 7254 face = direction.x > 0.0 ? 0.0 : 3.0; 7255 else 7256 face = direction.y > 0.0 ? 1.0 : 4.0; 7257 } else { 7258 if ( absDirection.z > absDirection.y ) 7259 face = direction.z > 0.0 ? 2.0 : 5.0; 7260 else 7261 face = direction.y > 0.0 ? 1.0 : 4.0; 7262 } 7263 return face; 7264 } 7265 vec2 getUV( vec3 direction, float face ) { 7266 vec2 uv; 7267 if ( face == 0.0 ) { 7268 uv = vec2( direction.z, direction.y ) / abs( direction.x ); 7269 } else if ( face == 1.0 ) { 7270 uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); 7271 } else if ( face == 2.0 ) { 7272 uv = vec2( - direction.x, direction.y ) / abs( direction.z ); 7273 } else if ( face == 3.0 ) { 7274 uv = vec2( - direction.z, direction.y ) / abs( direction.x ); 7275 } else if ( face == 4.0 ) { 7276 uv = vec2( - direction.x, direction.z ) / abs( direction.y ); 7277 } else { 7278 uv = vec2( direction.x, direction.y ) / abs( direction.z ); 7279 } 7280 return 0.5 * ( uv + 1.0 ); 7281 } 7282 vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { 7283 float face = getFace( direction ); 7284 float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); 7285 mipInt = max( mipInt, cubeUV_minMipLevel ); 7286 float faceSize = exp2( mipInt ); 7287 highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; 7288 if ( face > 2.0 ) { 7289 uv.y += faceSize; 7290 face -= 3.0; 7291 } 7292 uv.x += face * faceSize; 7293 uv.x += filterInt * 3.0 * cubeUV_minTileSize; 7294 uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); 7295 uv.x *= CUBEUV_TEXEL_WIDTH; 7296 uv.y *= CUBEUV_TEXEL_HEIGHT; 7297 #ifdef texture2DGradEXT 7298 return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; 7299 #else 7300 return texture2D( envMap, uv ).rgb; 7301 #endif 7302 } 7303 #define cubeUV_r0 1.0 7304 #define cubeUV_m0 - 2.0 7305 #define cubeUV_r1 0.8 7306 #define cubeUV_m1 - 1.0 7307 #define cubeUV_r4 0.4 7308 #define cubeUV_m4 2.0 7309 #define cubeUV_r5 0.305 7310 #define cubeUV_m5 3.0 7311 #define cubeUV_r6 0.21 7312 #define cubeUV_m6 4.0 7313 float roughnessToMip( float roughness ) { 7314 float mip = 0.0; 7315 if ( roughness >= cubeUV_r1 ) { 7316 mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; 7317 } else if ( roughness >= cubeUV_r4 ) { 7318 mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; 7319 } else if ( roughness >= cubeUV_r5 ) { 7320 mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; 7321 } else if ( roughness >= cubeUV_r6 ) { 7322 mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; 7323 } else { 7324 mip = - 2.0 * log2( 1.16 * roughness ); } 7325 return mip; 7326 } 7327 vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { 7328 float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); 7329 float mipF = fract( mip ); 7330 float mipInt = floor( mip ); 7331 vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); 7332 if ( mipF == 0.0 ) { 7333 return vec4( color0, 1.0 ); 7334 } else { 7335 vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); 7336 return vec4( mix( color0, color1, mipF ), 1.0 ); 7337 } 7338 } 7339#endif`,mYe=`vec3 transformedNormal = objectNormal; 7340#ifdef USE_TANGENT 7341 vec3 transformedTangent = objectTangent; 7342#endif 7343#ifdef USE_BATCHING 7344 mat3 bm = mat3( batchingMatrix ); 7345 transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); 7346 transformedNormal = bm * transformedNormal; 7347 #ifdef USE_TANGENT 7348 transformedTangent = bm * transformedTangent; 7349 #endif 7350#endif 7351#ifdef USE_INSTANCING 7352 mat3 im = mat3( instanceMatrix ); 7353 transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); 7354 transformedNormal = im * transformedNormal; 7355 #ifdef USE_TANGENT 7356 transformedTangent = im * transformedTangent; 7357 #endif 7358#endif 7359transformedNormal = normalMatrix * transformedNormal; 7360#ifdef FLIP_SIDED 7361 transformedNormal = - transformedNormal; 7362#endif 7363#ifdef USE_TANGENT 7364 transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; 7365 #ifdef FLIP_SIDED 7366 transformedTangent = - transformedTangent; 7367 #endif 7368#endif`,pYe=`#ifdef USE_DISPLACEMENTMAP 7369 uniform sampler2D displacementMap; 7370 uniform float displacementScale; 7371 uniform float displacementBias; 7372#endif`,gYe=`#ifdef USE_DISPLACEMENTMAP 7373 transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + dis
7373placementBias ); 7374#endif`,vYe=`#ifdef USE_EMISSIVEMAP 7375 vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); 7376 totalEmissiveRadiance *= emissiveColor.rgb; 7377#endif`,yYe=`#ifdef USE_EMISSIVEMAP 7378 uniform sampler2D emissiveMap; 7379#endif`,xYe="gl_FragColor = linearToOutputTexel( gl_FragColor );",bYe=` 7380const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( 7381 vec3( 0.8224621, 0.177538, 0.0 ), 7382 vec3( 0.0331941, 0.9668058, 0.0 ), 7383 vec3( 0.0170827, 0.0723974, 0.9105199 ) 7384); 7385const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3( 7386 vec3( 1.2249401, - 0.2249404, 0.0 ), 7387 vec3( - 0.0420569, 1.0420571, 0.0 ), 7388 vec3( - 0.0196376, - 0.0786361, 1.0982735 ) 7389); 7390vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) { 7391 return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a ); 7392} 7393vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) { 7394 return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a ); 7395} 7396vec4 LinearTransferOETF( in vec4 value ) { 7397 return value; 7398} 7399vec4 sRGBTransferOETF( in vec4 value ) { 7400 return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); 7401} 7402vec4 LinearToLinear( in vec4 value ) { 7403 return value; 7404} 7405vec4 LinearTosRGB( in vec4 value ) { 7406 return sRGBTransferOETF( value ); 7407}`,wYe=`#ifdef USE_ENVMAP 7408 #ifdef ENV_WORLDPOS 7409 vec3 cameraToFrag; 7410 if ( isOrthographic ) { 7411 cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); 7412 } else { 7413 cameraToFrag = normalize( vWorldPosition - cameraPosition ); 7414 } 7415 vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); 7416 #ifdef ENVMAP_MODE_REFLECTION 7417 vec3 reflectVec = reflect( cameraToFrag, worldNormal ); 7418 #else 7419 vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); 7420 #endif 7421 #else 7422 vec3 reflectVec = vReflect; 7423 #endif 7424 #ifdef ENVMAP_TYPE_CUBE 7425 vec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); 7426 #else 7427 vec4 envColor = vec4( 0.0 ); 7428 #endif 7429 #ifdef ENVMAP_BLENDING_MULTIPLY 7430 outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); 7431 #elif defined( ENVMAP_BLENDING_MIX ) 7432 outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); 7433 #elif defined( ENVMAP_BLENDING_ADD ) 7434 outgoingLight += envColor.xyz * specularStrength * reflectivity; 7435 #endif 7436#endif`,_Ye=`#ifdef USE_ENVMAP 7437 uniform float envMapIntensity; 7438 uniform float flipEnvMap; 7439 #ifdef ENVMAP_TYPE_CUBE 7440 uniform samplerCube envMap; 7441 #else 7442 uniform sampler2D envMap; 7443 #endif 7444 7445#endif`,SYe=`#ifdef USE_ENVMAP 7446 uniform float reflectivity; 7447 #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) 7448 #define ENV_WORLDPOS 7449 #endif 7450 #ifdef ENV_WORLDPOS 7451 varying vec3 vWorldPosition; 7452 uniform float refractionRatio; 7453 #else 7454 varying vec3 vReflect; 7455 #endif 7456#endif`,EYe=`#ifdef USE_ENVMAP 7457 #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) 7458 #define ENV_WORLDPOS 7459 #endif 7460 #ifdef ENV_WORLDPOS 7461 7462 varying vec3 vWorldPosition; 7463 #else 7464 varying vec3 vReflect; 7465 uniform float refractionRatio; 7466 #endif 7467#endif`,TYe=`#ifdef USE_ENVMAP 7468 #ifdef ENV_WORLDPOS 7469 vWorldPosition = worldPosition.xyz; 7470 #else 7471 vec3 cameraToVertex; 7472 if ( isOrthographic ) { 7473 cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); 7474 } else {
7475 cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); 7476 } 7477 vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); 7478 #ifdef ENVMAP_MODE_REFLECTION 7479 vReflect = reflect( cameraToVertex, worldNormal ); 7480 #else 7481 vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); 7482 #endif 7483 #endif 7484#endif`,AYe=`#ifdef USE_FOG 7485 vFogDepth = - mvPosition.z; 7486#endif`,CYe=`#ifdef USE_FOG 7487 varying float vFogDepth; 7488#endif`,MYe=`#ifdef USE_FOG 7489 #ifdef FOG_EXP2 7490 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); 7491 #else 7492 float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); 7493 #endif 7494 gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); 7495#endif`,RYe=`#ifdef USE_FOG 7496 uniform vec3 fogColor; 7497 varying float vFogDepth; 7498 #ifdef FOG_EXP2 7499 uniform float fogDensity; 7500 #else 7501 uniform float fogNear; 7502 uniform float fogFar; 7503 #endif 7504#endif`,PYe=`#ifdef USE_GRADIENTMAP 7505 uniform sampler2D gradientMap; 7506#endif 7507vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { 7508 float dotNL = dot( normal, lightDirection ); 7509 vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); 7510 #ifdef USE_GRADIENTMAP 7511 return vec3( texture2D( gradientMap, coord ).r ); 7512 #else 7513 vec2 fw = fwidth( coord ) * 0.5; 7514 return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); 7515 #endif 7516}`,jYe=`#ifdef USE_LIGHTMAP 7517 vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); 7518 vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; 7519 reflectedLight.indirectDiffuse += lightMapIrradiance; 7520#endif`,NYe=`#ifdef USE_LIGHTMAP 7521 uniform sampler2D lightMap; 7522 uniform float lightMapIntensity; 7523#endif`,kYe=`LambertMaterial material; 7524material.diffuseColor = diffuseColor.rgb; 7525material.specularStrength = specularStrength;`,OYe=`varying vec3 vViewPosition; 7526struct LambertMaterial { 7527 vec3 diffuseColor; 7528 float specularStrength; 7529}; 7530void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { 7531 float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); 7532 vec3 irradiance = dotNL * directLight.color; 7533 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 7534} 7535void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { 7536 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 7537} 7538#define RE_Direct RE_Direct_Lambert 7539#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,IYe=`uniform bool receiveShadow; 7540uniform vec3 ambientLightColor; 7541#if defined( USE_LIGHT_PROBES ) 7542 uniform vec3 lightProbe[ 9 ]; 7543#endif 7544vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { 7545 float x = normal.x, y = normal.y, z = normal.z; 7546 vec3 result = shCoefficients[ 0 ] * 0.886227; 7547 result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; 7548 result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; 7549 result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; 7550 result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; 7551 result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; 7552 result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); 7553 result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; 7554 result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); 7555 return result; 7556} 7557vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { 7558 vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); 7559 vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); 7560 return irradiance; 7561} 7562vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { 7563 vec3 irradiance = ambientLightColor; 7564 return irradiance; 7565} 7566float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { 7567 #if defined ( LEGACY_LIGHTS ) 7568 if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) { 7569 return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent ); 7570 } 7571 return 1.0; 7572 #else 7573 float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); 7574 if ( cutoffDistance > 0.0 ) { 7575 distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); 7576 } 7577 return distanceFalloff; 7578 #endif 7579} 7580float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { 7581 return smoothstep( coneCosine, penumbraCosine, angleCosine ); 7582} 7583#if NUM_DIR_LIGHTS > 0 7584 struct DirectionalLight { 7585 vec3 direction; 7586 vec3 color; 7587 }; 7588 uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; 7589 void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { 7590 light.color = directionalLight.color; 7591 light.direction = directionalLight.direction; 7592 light.visible = true; 7593 } 7594#endif 7595#if NUM_POINT_LIGHTS > 0 7596 struct PointLight { 7597 vec3 position; 7598 vec3 color; 7599 float distance; 7600 float decay; 7601 }; 7602 uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; 7603 void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { 7604 vec3 lVector = pointLight.position - geometryPosition; 7605 light.direction = normalize( lVector ); 7606 float lightDistance = length( lVector ); 7607 light.color = pointLight.color; 7608 light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); 7609 light.visible = ( light.color != vec3( 0.0 ) ); 7610 } 7611#endif
7612#if NUM_SPOT_LIGHTS > 0 7613 struct SpotLight { 7614 vec3 position; 7615 vec3 direction; 7616 vec3 color; 7617 float distance; 7618 float decay; 7619 float coneCos; 7620 float penumbraCos; 7621 }; 7622 uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; 7623 void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { 7624 vec3 lVector = spotLight.position - geometryPosition; 7625 light.direction = normalize( lVector ); 7626 float angleCos = dot( light.direction, spotLight.direction ); 7627 float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); 7628 if ( spotAttenuation > 0.0 ) { 7629 float lightDistance = length( lVector ); 7630 light.color = spotLight.color * spotAttenuation; 7631 light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); 7632 light.visible = ( light.color != vec3( 0.0 ) ); 7633 } else { 7634 light.color = vec3( 0.0 ); 7635 light.visible = false; 7636 } 7637 } 7638#endif 7639#if NUM_RECT_AREA_LIGHTS > 0 7640 struct RectAreaLight { 7641 vec3 color; 7642 vec3 position; 7643 vec3 halfWidth; 7644 vec3 halfHeight; 7645 }; 7646 uniform sampler2D ltc_1; uniform sampler2D ltc_2; 7647 uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; 7648#endif 7649#if NUM_HEMI_LIGHTS > 0 7650 struct HemisphereLight { 7651 vec3 direction; 7652 vec3 skyColor; 7653 vec3 groundColor; 7654 }; 7655 uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; 7656 vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { 7657 float dotNL = dot( normal, hemiLight.direction ); 7658 float hemiDiffuseWeight = 0.5 * dotNL + 0.5; 7659 vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); 7660 return irradiance; 7661 } 7662#endif`,LYe=`#ifdef USE_ENVMAP 7663 vec3 getIBLIrradiance( const in vec3 normal ) { 7664 #ifdef ENVMAP_TYPE_CUBE_UV 7665 vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); 7666 vec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 ); 7667 return PI * envMapColor.rgb * envMapIntensity; 7668 #else 7669 return vec3( 0.0 ); 7670 #endif 7671 } 7672 vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { 7673 #ifdef ENVMAP_TYPE_CUBE_UV 7674 vec3 reflectVec = reflect( - viewDir, normal ); 7675 reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); 7676 reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); 7677 vec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness ); 7678 return envMapColor.rgb * envMapIntensity; 7679 #else 7680 return vec3( 0.0 ); 7681 #endif 7682 } 7683 #ifdef USE_ANISOTROPY 7684 vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { 7685 #ifdef ENVMAP_TYPE_CUBE_UV 7686 vec3 bentNormal = cross( bitangent, viewDir ); 7687 bentNormal = normalize( cross( bentNormal, bitangent ) ); 7688 bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); 7689 return getIBLRadiance( viewDir, bentNormal, roughness ); 7690 #else 7691 return vec3( 0.0 ); 7692 #endif 7693 } 7694 #endif 7695#endif`,DYe=`ToonMaterial material; 7696material.diffuseColor = diffuseColor.rgb;`,FYe=`varying vec3 vViewPosition; 7697struct ToonMaterial { 7698 vec3 diffuseColor; 7699}; 7700void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { 7701 vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; 7702 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 7703} 7704void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { 7705 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 7706} 7707#define RE_Direct RE_Direct_Toon 7708#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,UYe=`BlinnPhongMaterial material; 7709material.diffuseColor = diffuseColor.rgb; 7710material.specularColor = specular; 7711material.specularShininess = shininess; 7712material.specularStrength = specularStrength;`,BYe=`varying vec3 vViewPosition; 7713struct BlinnPhongMaterial { 7714 vec3 diffuseColor; 7715 vec3 specularColor; 7716 float specularShininess; 7717 float specularStrength; 7718}; 7719void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
7720 float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); 7721 vec3 irradiance = dotNL * directLight.color; 7722 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 7723 reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; 7724} 7725void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { 7726 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 7727} 7728#define RE_Direct RE_Direct_BlinnPhong 7729#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,zYe=`PhysicalMaterial material; 7730material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); 7731vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); 7732float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); 7733material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; 7734material.roughness = min( material.roughness, 1.0 ); 7735#ifdef IOR 7736 material.ior = ior; 7737 #ifdef USE_SPECULAR 7738 float specularIntensityFactor = specularIntensity; 7739 vec3 specularColorFactor = specularColor; 7740 #ifdef USE_SPECULAR_COLORMAP 7741 specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; 7742 #endif 7743 #ifdef USE_SPECULAR_INTENSITYMAP 7744 specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; 7745 #endif 7746 material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); 7747 #else 7748 float specularIntensityFactor = 1.0; 7749 vec3 specularColorFactor = vec3( 1.0 ); 7750 material.specularF90 = 1.0; 7751 #endif 7752 material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); 7753#else 7754 material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); 7755 material.specularF90 = 1.0; 7756#endif 7757#ifdef USE_CLEARCOAT 7758 material.clearcoat = clearcoat; 7759 material.clearcoatRoughness = clearcoatRoughness; 7760 material.clearcoatF0 = vec3( 0.04 ); 7761 material.clearcoatF90 = 1.0; 7762 #ifdef USE_CLEARCOATMAP 7763 material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; 7764 #endif 7765 #ifdef USE_CLEARCOAT_ROUGHNESSMAP 7766 material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; 7767 #endif 7768 material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); 7769 material.clearcoatRoughness += geometryRoughness; 7770 material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); 7771#endif 7772#ifdef USE_IRIDESCENCE 7773 material.iridescence = iridescence; 7774 material.iridescenceIOR = iridescenceIOR; 7775 #ifdef USE_IRIDESCENCEMAP 7776 material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; 7777 #endif 7778 #ifdef USE_IRIDESCENCE_THICKNESSMAP 7779 material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; 7780 #else 7781 material.iridescenceThickness = iridescenceThicknessMaximum; 7782 #endif 7783#endif 7784#ifdef USE_SHEEN 7785 material.sheenColor = sheenColor; 7786 #ifdef USE_SHEEN_COLORMAP 7787 material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; 7788 #endif 7789 material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); 7790 #ifdef USE_SHEEN_ROUGHNESSMAP 7791 material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; 7792 #endif 7793#endif 7794#ifdef USE_ANISOTROPY 7795 #ifdef USE_ANISOTROPYMAP 7796 mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); 7797 vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; 7798 vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; 7799 #else 7800 vec2 anisotropyV = anisotropyVector; 7801 #endif 7802 material.anisotropy = length( anisotropyV ); 7803 if( material.anisotropy == 0.0 ) { 7804 anisotropyV = vec2( 1.0, 0.0 ); 7805 } else { 7806 anisotropyV /= material.anisotropy; 7807 material.anisotropy = saturate( material.anisotropy ); 7808 } 7809 material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
7810 material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; 7811 material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; 7812#endif`,$Ye=`struct PhysicalMaterial { 7813 vec3 diffuseColor; 7814 float roughness; 7815 vec3 specularColor; 7816 float specularF90
vendor: 14,563 bytes, lines 7816-8112
7816; 7817 #ifdef USE_CLEARCOAT 7818 float clearcoat; 7819 float clearcoatRoughness; 7820 vec3 clearcoatF0; 7821 float clearcoatF90; 7822 #endif 7823 #ifdef USE_IRIDESCENCE 7824 float iridescence; 7825 float iridescenceIOR; 7826 float iridescenceThickness; 7827 vec3 iridescenceFresnel; 7828 vec3 iridescenceF0; 7829 #endif 7830 #ifdef USE_SHEEN 7831 vec3 sheenColor; 7832 float sheenRoughness; 7833 #endif 7834 #ifdef IOR 7835 float ior; 7836 #endif 7837 #ifdef USE_TRANSMISSION 7838 float transmission; 7839 float transmissionAlpha; 7840 float thickness; 7841 float attenuationDistance; 7842 vec3 attenuationColor; 7843 #endif 7844 #ifdef USE_ANISOTROPY 7845 float anisotropy; 7846 float alphaT; 7847 vec3 anisotropyT; 7848 vec3 anisotropyB; 7849 #endif 7850}; 7851vec3 clearcoatSpecularDirect = vec3( 0.0 ); 7852vec3 clearcoatSpecularIndirect = vec3( 0.0 ); 7853vec3 sheenSpecularDirect = vec3( 0.0 ); 7854vec3 sheenSpecularIndirect = vec3(0.0 ); 7855vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { 7856 float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); 7857 float x2 = x * x; 7858 float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); 7859 return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); 7860} 7861float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { 7862 float a2 = pow2( alpha ); 7863 float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); 7864 float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); 7865 return 0.5 / max( gv + gl, EPSILON ); 7866} 7867float D_GGX( const in float alpha, const in float dotNH ) { 7868 float a2 = pow2( alpha ); 7869 float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; 7870 return RECIPROCAL_PI * a2 / pow2( denom ); 7871} 7872#ifdef USE_ANISOTROPY 7873 float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { 7874 float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); 7875 float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); 7876 float v = 0.5 / ( gv + gl ); 7877 return saturate(v); 7878 } 7879 float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { 7880 float a2 = alphaT * alphaB; 7881 highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); 7882 highp float v2 = dot( v, v ); 7883 float w2 = a2 / v2; 7884 return RECIPROCAL_PI * a2 * pow2 ( w2 ); 7885 } 7886#endif 7887#ifdef USE_CLEARCOAT 7888 vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { 7889 vec3 f0 = material.clearcoatF0; 7890 float f90 = material.clearcoatF90; 7891 float roughness = material.clearcoatRoughness; 7892 float alpha = pow2( roughness ); 7893 vec3 halfDir = normalize( lightDir + viewDir ); 7894 float dotNL = saturate( dot( normal, lightDir ) ); 7895 float dotNV = saturate( dot( normal, viewDir ) ); 7896 float dotNH = saturate( dot( normal, halfDir ) ); 7897 float dotVH = saturate( dot( viewDir, halfDir ) ); 7898 vec3 F = F_Schlick( f0, f90, dotVH ); 7899 float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); 7900 float D = D_GGX( alpha, dotNH ); 7901 return F * ( V * D ); 7902 } 7903#endif 7904vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { 7905 vec3 f0 = material.specularColor; 7906 float f90 = material.specularF90; 7907 float roughness = material.roughness; 7908 float alpha = pow2( roughness ); 7909 vec3 halfDir = normalize( lightDir + viewDir ); 7910 float dotNL = saturate( dot( normal, lightDir ) ); 7911 float dotNV = saturate( dot( normal, viewDir ) ); 7912 float dotNH = saturate( dot( normal, halfDir ) ); 7913 float dotVH = saturate( dot( viewDir, halfDir ) ); 7914 vec3 F = F_Schlick( f0, f90, dotVH ); 7915 #ifdef USE_IRIDESCENCE 7916 F = mix( F, material.iridescenceFresnel, material.iridescence ); 7917 #endif 7918 #ifdef USE_ANISOTROPY 7919 float dotTL = dot( material.anisotropyT, lightDir ); 7920 float dotTV = dot( material.anisotropyT, viewDir ); 7921 float dotTH = dot( material.anisotropyT, halfDir ); 7922 float dotBL = dot( material.anisotropyB, lightDir ); 7923 float dotBV = dot( material.anisotropyB, viewDir ); 7924 float dotBH = dot( material.anisotropyB, halfDir ); 7925 float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); 7926 float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); 7927 #else 7928 float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); 7929 float D = D_GGX( alpha, dotNH ); 7930 #endif 7931 return F * ( V * D ); 7932} 7933vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { 7934 const float LUT_SIZE = 64.0; 7935 const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; 7936 const float LUT_BIAS = 0.5 / LUT_SIZE; 7937 float dotNV = saturate( dot( N, V ) ); 7938 vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); 7939 uv = uv * LUT_SCALE + LUT_BIAS; 7940 return uv; 7941} 7942float LTC_ClippedSphereFormFactor( const in vec3 f ) { 7943 float l = length( f ); 7944 return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); 7945} 7946vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { 7947 float x = dot( v1, v2 ); 7948 float y = abs( x ); 7949 float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; 7950 float b = 3.4175940 + ( 4.1616724 + y ) * y; 7951 float v = a / b; 7952 float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; 7953 return cross( v1, v2 ) * theta_sintheta; 7954} 7955vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { 7956 vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; 7957 vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; 7958 vec3 lightNormal = cross( v1, v2 ); 7959 if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); 7960 vec3 T1, T2; 7961 T1 = normalize( V - N * dot( V, N ) ); 7962 T2 = - cross( N, T1 ); 7963 mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); 7964 vec3 coords[ 4 ]; 7965 coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); 7966 coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); 7967 coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); 7968 coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); 7969 coords[ 0 ] = normalize( coords[ 0 ] ); 7970 coords[ 1 ] = normalize( coords[ 1 ] ); 7971 coords[ 2 ] = normalize( coords[ 2 ] ); 7972 coords[ 3 ] = normalize( coords[ 3 ] ); 7973 vec3 vectorFormFactor = vec3( 0.0 ); 7974 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); 7975 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); 7976 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); 7977 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); 7978 float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); 7979 return vec3( result ); 7980} 7981#if defined( USE_SHEEN ) 7982float D_Charlie( float roughness, float dotNH ) { 7983 float alpha = pow2( roughness ); 7984 float invAlpha = 1.0 / alpha; 7985 float cos2h = dotNH * dotNH; 7986 float sin2h = max( 1.0 - cos2h, 0.0078125 ); 7987 return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); 7988} 7989float V_Neubelt( float dotNV, float dotNL ) { 7990 return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); 7991} 7992vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { 7993 vec3 halfDir = normalize( lightDir + viewDir ); 7994 float dotNL = saturate( dot( normal, lightDir ) ); 7995 float dotNV = saturate( dot( normal, viewDir ) ); 7996 float dotNH = saturate( dot( normal, halfDir ) ); 7997 float D = D_Charlie( sheenRoughness, dotNH ); 7998 float V = V_Neubelt( dotNV, dotNL ); 7999 return sheenColor * ( D * V ); 8000} 8001#endif 8002float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { 8003 float dotNV = saturate( dot( normal, viewDir ) ); 8004 float r2 = roughness * roughness; 8005 float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; 8006 float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; 8007 float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); 8008 return saturate( DG * RECIPROCAL_PI ); 8009} 8010vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { 8011 float dotNV = saturate( dot( normal, viewDir ) ); 8012 const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); 8013 const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); 8014 vec4 r = roughness * c0 + c1; 8015 float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; 8016 vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; 8017 return fab; 8018} 8019vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { 8020 vec2 fab = DFGApprox( normal, viewDir, roughness ); 8021 return specularColor * fab.x + specularF90 * fab.y; 8022} 8023#ifdef USE_IRIDESCENCE 8024void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { 8025#else 8026void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { 8027#endif 8028 vec2 fab = DFGApprox( normal, viewDir, roughness ); 8029 #ifdef USE_IRIDESCENCE 8030 vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); 8031 #else 8032 vec3 Fr = specularColor; 8033 #endif 8034 vec3 FssEss = Fr * fab.x + specularF90 * fab.y; 8035 float Ess = fab.x + fab.y; 8036 float Ems = 1.0 - Ess; 8037 vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); 8038 singleScatter += FssEss; 8039 multiScatter += Fms * Ems; 8040} 8041#if NUM_RECT_AREA_LIGHTS > 0 8042 void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { 8043 vec3 normal = geometryNormal; 8044 vec3 viewDir = geometryViewDir; 8045 vec3 position = geometryPosition; 8046 vec3 lightPos = rectAreaLight.position; 8047 vec3 halfWidth = rectAreaLight.halfWidth; 8048 vec3 halfHeight = rectAreaLight.halfHeight; 8049 vec3 lightColor = rectAreaLight.color; 8050 float roughness = material.roughness; 8051 vec3 rectCoords[ 4 ]; 8052 rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; 8053 rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; 8054 rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; 8055 vec2 uv = LTC_Uv( normal, viewDir, roughness ); 8056 vec4 t1 = texture2D( ltc_1, uv ); 8057 vec4 t2 = texture2D( ltc_2, uv ); 8058 mat3 mInv = mat3( 8059 vec3( t1.x, 0, t1.y ), 8060 vec3( 0, 1, 0 ), 8061 vec3( t1.z, 0, t1.w ) 8062 ); 8063 vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); 8064 reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); 8065 reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); 8066 } 8067#endif 8068void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { 8069 float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); 8070 vec3 irradiance = dotNL * directLight.color; 8071 #ifdef USE_CLEARCOAT 8072 float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); 8073 vec3 ccIrradiance = dotNLcc * directLight.color; 8074 clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); 8075 #endif 8076 #ifdef USE_SHEEN 8077 sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); 8078 #endif 8079 reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); 8080 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 8081} 8082void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { 8083 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 8084} 8085void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { 8086 #ifdef USE_CLEARCOAT 8087 clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); 8088 #endif 8089 #ifdef USE_SHEEN 8090 sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); 8091 #endif 8092 vec3 singleScattering = vec3( 0.0 ); 8093 vec3 multiScattering = vec3( 0.0 ); 8094 vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; 8095 #ifdef USE_IRIDESCENCE 8096 computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); 8097 #else 8098 computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); 8099 #endif 8100 vec3 totalScattering = singleScattering + multiScattering; 8101 vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); 8102 reflectedLight.indirectSpecular += radiance * singleScattering; 8103 reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; 8104 reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; 8105} 8106#define RE_Direct RE_Direct_Physical 8107#define RE_Direct_RectArea RE_Direct_RectArea_Physical 8108#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical 8109#define RE_IndirectSpecular RE_IndirectSpecular_Physical 8110float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { 8111 return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); 8112}`,
8112HYe=` 8113vec3 geometryPosition = - vViewPosition; 8114vec3 geometryNormal = normal; 8115vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); 8116vec3 geometryClearcoatNormal = vec3( 0.0 ); 8117#ifdef USE_CLEARCOAT 8118 geometryClearcoatNormal = clearcoatNormal; 8119#endif 8120#ifdef USE_IRIDESCENCE 8121 float dotNVi = saturate( dot( normal, geometryViewDir ) ); 8122 if ( material.iridescenceThickness == 0.0 ) { 8123 material.iridescence = 0.0; 8124 } else { 8125 material.iridescence = saturate( material.iridescence ); 8126 } 8127 if ( material.iridescence > 0.0 ) { 8128 material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); 8129 material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); 8130 } 8131#endif 8132IncidentLight directLight; 8133#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) 8134 PointLight pointLight; 8135 #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 8136 PointLightShadow pointLightShadow; 8137 #endif 8138 #pragma unroll_loop_start 8139 for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { 8140 pointLight = pointLights[ i ]; 8141 getPointLightInfo( pointLight, geometryPosition, directLight ); 8142 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) 8143 pointLightShadow = pointLightShadows[ i ]; 8144 directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; 8145 #endif 8146 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 8147 } 8148 #pragma unroll_loop_end 8149#endif 8150#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) 8151 SpotLight spotLight; 8152 vec4 spotColor; 8153 vec3 spotLightCoord; 8154 bool inSpotLightMap; 8155 #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 8156 SpotLightShadow spotLightShadow; 8157 #endif 8158 #pragma unroll_loop_start 8159 for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { 8160 spotLight = spotLights[ i ]; 8161 getSpotLightInfo( spotLight, geometryPosition, directLight ); 8162 #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) 8163 #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX 8164 #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) 8165 #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS 8166 #else 8167 #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) 8168 #endif 8169 #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) 8170 spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; 8171 inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); 8172 spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); 8173 directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; 8174 #endif 8175 #undef SPOT_LIGHT_MAP_INDEX 8176 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) 8177 spotLightShadow = spotLightShadows[ i ]; 8178 directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; 8179 #endif 8180 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 8181 } 8182 #pragma unroll_loop_end 8183#endif 8184#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) 8185 DirectionalLight directionalLight; 8186 #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 8187 DirectionalLightShadow directionalLightShadow; 8188 #endif 8189 #pragma unroll_loop_start 8190 for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { 8191 directionalLight = directionalLights[ i ]; 8192 getDirectionalLightInfo( directionalLight, directLight ); 8193 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) 8194 directionalLightShadow = directionalLightShadows[ i ]; 8195 directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; 8196 #endif 8197 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 8198 } 8199 #pragma unroll_loop_end 8200#endif 8201#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) 8202 RectAreaLight rectAreaLight; 8203 #pragma unroll_loop_start 8204 for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { 8205 rectAreaLight = rectAreaLights[ i ]; 8206 RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 8207 } 8208 #pragma unroll_loop_end 8209#endif 8210#if defined( RE_IndirectDiffuse ) 8211 vec3 iblIrradiance = vec3( 0.0 ); 8212 vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); 8213 #if defined( USE_LIGHT_PROBES ) 8214 irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); 8215 #endif 8216 #if ( NUM_HEMI_LIGHTS > 0 ) 8217 #pragma unroll_loop_start 8218 for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { 8219 irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); 8220 } 8221 #pragma unroll_loop_end 8222 #endif 8223#endif 8224#if defined( RE_IndirectSpecular ) 8225 vec3 radiance = vec3( 0.0 ); 8226 vec3 clearcoatRadiance = vec3( 0.0 ); 8227#endif`,VYe=`#if defined( RE_IndirectDiffuse ) 8228 #ifdef USE_LIGHTMAP 8229 vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); 8230 vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; 8231 irradiance += lightMapIrradiance; 8232 #endif 8233 #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) 8234 iblIrradiance += getIBLIrradiance( geometryNormal ); 8235 #endif 8236#endif 8237#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) 8238 #ifdef USE_ANISOTROPY 8239 radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); 8240 #else 8241 radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); 8242 #endif 8243 #ifdef USE_CLEARCOAT 8244 clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); 8245 #endif 8246#endif`,WYe=`#if defined( RE_IndirectDiffuse ) 8247 RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 8248#endif 8249#if defined( RE_IndirectSpecular ) 8250 RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 8251#endif`,GYe=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) 8252 gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; 8253#endif`,qYe=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) 8254 uniform float logDepthBufFC; 8255 varying float vFragDepth; 8256 varying float vIsPerspective; 8257#endif`,YYe=`#ifdef USE_LOGDEPTHBUF 8258 #ifdef USE_LOGDEPTHBUF_EXT 8259 varying float vFragDepth; 8260 varying float vIsPerspective; 8261 #else 8262 uniform float logDepthBufFC; 8263 #endif 8264#endif`,XYe=`#ifdef USE_LOGDEPTHBUF 8265 #ifdef USE_LOGDEPTHBUF_EXT 8266 vFragDepth = 1.0 + gl_Position.w; 8267 vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); 8268 #else 8269 if ( isPerspectiveMatrix( projectionMatrix ) ) { 8270 gl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0; 8271 gl_Position.z *= gl_Position.w; 8272 } 8273 #endif 8274#endif`,KYe=`#ifdef USE_MAP 8275 vec4 sampledDiffuseColor = texture2D( map, vMapUv ); 8276 #ifdef DECODE_VIDEO_TEXTURE 8277 sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); 8278 8279 #endif 8280 diffuseColor *= sampledDiffuseColor; 8281#endif`,QYe=`#ifdef USE_MAP 8282 uniform sampler2D map; 8283#endif`,ZYe=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) 8284 #if defined( USE_POINTS_UV ) 8285 vec2 uv = vUv; 8286 #else 8287 vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; 8288 #endif 8289#endif 8290#ifdef USE_MAP 8291 diffuseColor *= texture2D( map, uv ); 8292#endif 8293#ifdef USE_ALPHAMAP 8294 diffuseColor.a *= texture2D( alphaMap, uv ).g; 8295#endif`,JYe=`#if defined( USE_POINTS_UV ) 8296 varying vec2 vUv; 8297#else 8298 #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) 8299 uniform mat3 uvTransform; 8300 #endif 8301#endif 8302#ifdef USE_MAP 8303 uniform sampler2D map; 8304#endif 8305#ifdef USE_ALPHAMAP 8306 uniform sampler2D alphaMap; 8307#endif`,eXe=`float metalnessFactor = metalness; 8308#ifdef USE_METALNESSMAP 8309 vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); 8310 metalnessFactor *= texelMetalness.b; 8311#endif`,tXe=`#ifdef USE_METALNESSMAP 8312 uniform sampler2D metalnessMap; 8313#endif`,nXe=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) 8314 vColor *= morphTargetBaseInfluence; 8315 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 8316 #if defined( USE_COLOR_ALPHA ) 8317 if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; 8318 #elif defined( USE_COLOR ) 8319 if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; 8320 #endif 8321 } 8322#endif`,rXe=`#ifdef USE_MORPHNORMALS 8323 objectNormal *= morphTargetBaseInfluence; 8324 #ifdef MORPHTARGETS_TEXTURE 8325 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 8326 if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; 8327 } 8328 #else 8329 objectNormal += morphNormal0 * morphTargetInfluences[ 0 ]; 8330 objectNormal += morphNormal1 * morphTargetInfluences[ 1 ]; 8331 objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; 8332 objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; 8333 #endif 8334#endif`,iXe=`#ifdef USE_MORPHTARGETS 8335 uniform float morphTargetBaseInfluence; 8336 #ifdef MORPHTARGETS_TEXTURE 8337 uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; 8338 uniform sampler2DArray morphTargetsTexture; 8339 uniform ivec2 morphTargetsTextureSize; 8340 vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { 8341 int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; 8342 int y = texelIndex / morphTargetsTextureSize.x; 8343 int x = texelIndex - y * morphTargetsTextureSize.x; 8344 ivec3 morphUV = ivec3( x, y, morphTargetIndex ); 8345 return texelFetch( morphTargetsTexture, morphUV, 0 ); 8346 } 8347 #else 8348 #ifndef USE_MORPHNORMALS 8349 uniform float morphTargetInfluences[ 8 ]; 8350 #else 8351 uniform float morphTargetInfluences[ 4 ]; 8352 #endif 8353 #endif 8354#endif`,sXe=`#ifdef USE_MORPHTARGETS 8355 transformed *= morphTargetBaseInfluence; 8356 #ifdef MORPHTARGETS_TEXTURE 8357 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 8358 if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; 8359 } 8360 #else 8361 transformed += morphTarget0 * morphTargetInfluences[ 0 ]; 8362 transformed += morphTarget1 * morphTargetInfluences[ 1 ]; 8363 transformed += morphTarget2 * morphTargetInfluences[ 2 ]; 8364 transformed += morphTarget3 * morphTargetInfluences[ 3 ]; 8365 #ifndef USE_MORPHNORMALS 8366 transformed += morphTarget4 * morphTargetInfluences[ 4 ]; 8367 transformed += morphTarget5 * morphTargetInfluences[ 5 ]; 8368 transformed += morphTarget6 * morphTargetInfluences[ 6 ]; 8369 transformed += morphTarget7 * morphTargetInfluences[ 7 ]; 8370 #endif 8371 #endif 8372#endif`,oXe=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; 8373#ifdef FLAT_SHADED 8374 vec3 fdx = dFdx( vViewPosition ); 8375 vec3 fdy = dFdy( vViewPosition ); 8376 vec3 normal = normalize( cross( fdx, fdy ) ); 8377#else 8378 vec3 normal = normalize( vNormal ); 8379 #ifdef DOUBLE_SIDED 8380 normal *= faceDirection; 8381 #endif 8382#endif 8383#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) 8384 #ifdef USE_TANGENT 8385 mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); 8386 #else 8387 mat3 tbn = getTangentFrame( - vViewPosition, normal, 8388 #if defined( USE_NORMALMAP ) 8389 vNormalMapUv 8390 #elif defined( USE_CLEARCOAT_NORMALMAP ) 8391 vClearcoatNormalMapUv 8392 #else 8393 vUv 8394 #endif 8395 ); 8396 #endif 8397 #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) 8398 tbn[0] *= faceDirection; 8399 tbn[1] *= faceDirection; 8400 #endif 8401#endif 8402#ifdef USE_CLEARCOAT_NORMALMAP 8403 #ifdef USE_TANGENT 8404 mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); 8405 #else 8406 mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); 8407 #endif 8408 #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) 8409 tbn2[0] *= faceDirection; 8410 tbn2[1] *= faceDirection; 8411 #endif 8412#endif 8413vec3 nonPerturbedNormal = normal;`,aXe=`#ifdef USE_NORMALMAP_OBJECTSPACE 8414 normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; 8415 #ifdef FLIP_SIDED 8416 normal = - normal; 8417 #endif 8418 #ifdef DOUBLE_SIDED 8419 normal = normal * faceDirection; 8420 #endif 8421 normal = normalize( normalMatrix * normal ); 8422#elif defined( USE_NORMALMAP_TANGENTSPACE ) 8423 vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; 8424 mapN.xy *= normalScale; 8425 normal = normalize( tbn * mapN ); 8426#elif defined( USE_BUMPMAP )
8427 normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); 8428#endif`,lXe=`#ifndef FLAT_SHADED 8429 varying vec3 vNormal; 8430 #ifdef USE_TANGENT 8431 varying vec3 vTangent; 8432 varying vec3 vBitangent; 8433 #endif 8434#endif`,cXe=`#ifndef FLAT_SHADED 8435 varying vec3 vNormal; 8436 #ifdef USE_TANGENT 8437 varying vec3 vTangent; 8438 varying vec3 vBitangent; 8439 #endif 8440#endif`,uXe=`#ifndef FLAT_SHADED 8441 vNormal = normalize( transformedNormal ); 8442 #ifdef USE_TANGENT 8443 vTangent = normalize( transformedTangent ); 8444 vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); 8445 #endif 8446#endif`,dXe=`#ifdef USE_NORMALMAP 8447 uniform sampler2D normalMap; 8448 uniform vec2 normalScale; 8449#endif 8450#ifdef USE_NORMALMAP_OBJECTSPACE 8451 uniform mat3 normalMatrix; 8452#endif 8453#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) 8454 mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { 8455 vec3 q0 = dFdx( eye_pos.xyz ); 8456 vec3 q1 = dFdy( eye_pos.xyz ); 8457 vec2 st0 = dFdx( uv.st ); 8458 vec2 st1 = dFdy( uv.st ); 8459 vec3 N = surf_norm; 8460 vec3 q1perp = cross( q1, N ); 8461 vec3 q0perp = cross( N, q0 ); 8462 vec3 T = q1perp * st0.x + q0perp * st1.x; 8463 vec3 B = q1perp * st0.y + q0perp * st1.y; 8464 float det = max( dot( T, T ), dot( B, B ) ); 8465 float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); 8466 return mat3( T * scale, B * scale, N ); 8467 } 8468#endif`,hXe=`#ifdef USE_CLEARCOAT 8469 vec3 clearcoatNormal = nonPerturbedNormal; 8470#endif`,fXe=`#ifdef USE_CLEARCOAT_NORMALMAP 8471 vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; 8472 clearcoatMapN.xy *= clearcoatNormalScale; 8473 clearcoatNormal = normalize( tbn2 * clearcoatMapN ); 8474#endif`,mXe=`#ifdef USE_CLEARCOATMAP 8475 uniform sampler2D clearcoatMap; 8476#endif 8477#ifdef USE_CLEARCOAT_NORMALMAP 8478 uniform sampler2D clearcoatNormalMap; 8479 uniform vec2 clearcoatNormalScale; 8480#endif 8481#ifdef USE_CLEARCOAT_ROUGHNESSMAP 8482 uniform sampler2D clearcoatRoughnessMap; 8483#endif`,pXe=`#ifdef USE_IRIDESCENCEMAP 8484 uniform sampler2D iridescenceMap; 8485#endif 8486#ifdef USE_IRIDESCENCE_THICKNESSMAP 8487 uniform sampler2D iridescenceThicknessMap; 8488#endif`,gXe=`#ifdef OPAQUE 8489diffuseColor.a = 1.0; 8490#endif 8491#ifdef USE_TRANSMISSION 8492diffuseColor.a *= material.transmissionAlpha; 8493#endif 8494gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,vXe=`vec3 packNormalToRGB( const in vec3 normal ) { 8495 return normalize( normal ) * 0.5 + 0.5; 8496} 8497vec3 unpackRGBToNormal( const in vec3 rgb ) { 8498 return 2.0 * rgb.xyz - 1.0; 8499} 8500const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.; 8501const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. ); 8502const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. ); 8503const float ShiftRight8 = 1. / 256.; 8504vec4 packDepthToRGBA( const in float v ) { 8505 vec4 r = vec4( fract( v * PackFactors ), v ); 8506 r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale; 8507} 8508float unpackRGBAToDepth( const in vec4 v ) { 8509 return dot( v, UnpackFactors ); 8510} 8511vec2 packDepthToRG( in highp float v ) { 8512 return packDepthToRGBA( v ).yx; 8513} 8514float unpackRGToDepth( const in highp vec2 v ) { 8515 return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) ); 8516} 8517vec4 pack2HalfToRGBA( vec2 v ) { 8518 vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); 8519 return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); 8520} 8521vec2 unpackRGBATo2Half( vec4 v ) { 8522 return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); 8523} 8524float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { 8525 return ( viewZ + near ) / ( near - far ); 8526} 8527float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { 8528 return depth * ( near - far ) - near; 8529} 8530float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { 8531 return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); 8532} 8533float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { 8534 return ( near * far ) / ( ( far - near ) * depth - far ); 8535}`,yXe=`#ifdef PREMULTIPLIED_ALPHA 8536 gl_FragColor.rgb *= gl_FragColor.a; 8537#endif`,xXe=`vec4 mvPosition = vec4( transformed, 1.0 ); 8538#ifdef USE_BATCHING 8539 mvPosition = batchingMatrix * mvPosition; 8540#endif 8541#ifdef USE_INSTANCING 8542 mvPosition = instanceMatrix * mvPosition; 8543#endif 8544mvPosition = modelViewMatrix * mvPosition; 8545gl_Position = projectionMatrix * mvPosition;`,bXe=`#ifdef DITHERING 8546 gl_FragColor.rgb = dithering( gl_FragColor.rgb ); 8547#endif`,wXe=`#ifdef DITHERING 8548 vec3 dithering( vec3 color ) { 8549 float grid_position = rand( gl_FragCoord.xy ); 8550 vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); 8551 dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); 8552 return color + dither_shift_RGB; 8553 } 8554#endif`,_Xe=`float roughnessFactor = roughness; 8555#ifdef USE_ROUGHNESSMAP 8556 vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); 8557 roughnessFactor *= texelRoughness.g; 8558#endif`,SXe=`#ifdef USE_ROUGHNESSMAP 8559 uniform sampler2D roughnessMap;
8560#endif`,EXe=`#if NUM_SPOT_LIGHT_COORDS > 0 8561 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; 8562#endif 8563#if NUM_SPOT_LIGHT_MAPS > 0 8564 uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; 8565#endif 8566#ifdef USE_SHADOWMAP 8567 #if NUM_DIR_LIGHT_SHADOWS > 0 8568 uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; 8569 varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; 8570 struct DirectionalLightShadow { 8571 float shadowBias; 8572 float shadowNormalBias; 8573 float shadowRadius; 8574 vec2 shadowMapSize; 8575 }; 8576 uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; 8577 #endif 8578 #if NUM_SPOT_LIGHT_SHADOWS > 0 8579 uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; 8580 struct SpotLightShadow { 8581 float shadowBias; 8582 float shadowNormalBias; 8583 float shadowRadius; 8584 vec2 shadowMapSize; 8585 }; 8586 uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; 8587 #endif 8588 #if NUM_POINT_LIGHT_SHADOWS > 0 8589 uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; 8590 varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; 8591 struct PointLightShadow { 8592 float shadowBias; 8593 float shadowNormalBias; 8594 float shadowRadius; 8595 vec2 shadowMapSize; 8596 float shadowCameraNear; 8597 float shadowCameraFar; 8598 }; 8599 uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; 8600 #endif 8601 float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { 8602 return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); 8603 } 8604 vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { 8605 return unpackRGBATo2Half( texture2D( shadow, uv ) ); 8606 } 8607 float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ 8608 float occlusion = 1.0; 8609 vec2 distribution = texture2DDistribution( shadow, uv ); 8610 float hard_shadow = step( compare , distribution.x ); 8611 if (hard_shadow != 1.0 ) { 8612 float distance = compare - distribution.x ; 8613 float variance = max( 0.00000, distribution.y * distribution.y ); 8614 float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); 8615 } 8616 return occlusion; 8617 } 8618 float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) { 8619 float shadow = 1.0; 8620 shadowCoord.xyz /= shadowCoord.w; 8621 shadowCoord.z += shadowBias; 8622 bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; 8623 bool frustumTest = inFrustum && shadowCoord.z <= 1.0; 8624 if ( frustumTest ) { 8625 #if defined( SHADOWMAP_TYPE_PCF ) 8626 vec2 texelSize = vec2( 1.0 ) / shadowMapSize; 8627 float dx0 = - texelSize.x * shadowRadius; 8628 float dy0 = - texelSize.y * shadowRadius; 8629 float dx1 = + texelSize.x * shadowRadius; 8630 float dy1 = + texelSize.y * shadowRadius; 8631 float dx2 = dx0 / 2.0; 8632 float dy2 = dy0 / 2.0; 8633 float dx3 = dx1 / 2.0; 8634 float dy3 = dy1 / 2.0; 8635 shadow = ( 8636 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + 8637 texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + 8638 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + 8639 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + 8640 texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + 8641 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + 8642 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + 8643 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + 8644 texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + 8645 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + 8646 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + 8647 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + 8648 texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + 8649 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + 8650 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + 8651 texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + 8652 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) 8653 ) * ( 1.0 / 17.0 ); 8654 #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) 8655 vec2 texelSize = vec2( 1.0 ) / shadowMapSize; 8656 float dx = texelSize.x; 8657 float dy = texelSize.y; 8658 vec2 uv = shadowCoord.xy;
8659 vec2 f = fract( uv * shadowMapSize + 0.5 ); 8660 uv -= f * texelSize; 8661 shadow = ( 8662 texture2DCompare( shadowMap, uv, shadowCoord.z ) + 8663 texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + 8664 texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + 8665 texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + 8666 mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), 8667 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), 8668 f.x ) + 8669 mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), 8670 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), 8671 f.x ) + 8672 mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), 8673 texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), 8674 f.y ) + 8675 mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), 8676 texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), 8677 f.y ) + 8678 mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), 8679 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), 8680 f.x ), 8681 mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), 8682 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), 8683 f.x ), 8684 f.y ) 8685 ) * ( 1.0 / 9.0 ); 8686 #elif defined( SHADOWMAP_TYPE_VSM ) 8687 shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); 8688 #else 8689 shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); 8690 #endif 8691 } 8692 return shadow; 8693 } 8694 vec2 cubeToUV( vec3 v, float texelSizeY ) { 8695 vec3 absV = abs( v ); 8696 float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); 8697 absV *= scaleToCube; 8698 v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); 8699 vec2 planar = v.xy; 8700 float almostATexel = 1.5 * texelSizeY; 8701 float almostOne = 1.0 - almostATexel; 8702 if ( absV.z >= almostOne ) { 8703 if ( v.z > 0.0 ) 8704 planar.x = 4.0 - v.x; 8705 } else if ( absV.x >= almostOne ) { 8706 float signX = sign( v.x ); 8707 planar.x = v.z * signX + 2.0 * signX; 8708 } else if ( absV.y >= almostOne ) { 8709 float signY = sign( v.y ); 8710 planar.x = v.x + 2.0 * signY + 2.0; 8711 planar.y = v.z * signY - 2.0; 8712 } 8713 return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); 8714 } 8715 float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { 8716 vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); 8717 vec3 lightToPosition = shadowCoord.xyz; 8718 float dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; 8719 vec3 bd3D = normalize( lightToPosition ); 8720 #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) 8721 vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; 8722 return ( 8723 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + 8724 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + 8725 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + 8726 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + 8727 texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + 8728 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + 8729 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + 8730 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + 8731 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) 8732 ) * ( 1.0 / 9.0 ); 8733 #else 8734 return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); 8735 #endif 8736 } 8737#endif`,TXe=`#if NUM_SPOT_LIGHT_COORDS > 0 8738 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; 8739 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; 8740#endif 8741#ifdef USE_SHADOWMAP 8742 #if NUM_DIR_LIGHT_SHADOWS > 0 8743 uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; 8744 varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; 8745 struct DirectionalLightShadow { 8746 float shadowBias; 8747 float shadowNormalBias; 8748 float shadowRadius; 8749 vec2 shadowMapSize; 8750 }; 8751 uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; 8752 #endif
8753 #if NUM_SPOT_LIGHT_SHADOWS > 0 8754 struct SpotLightShadow { 8755 float shadowBias; 8756 float shadowNormalBias; 8757 float shadowRadius; 8758 vec2 shadowMapSize; 8759 }; 8760 uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; 8761 #endif 8762 #if NUM_POINT_LIGHT_SHADOWS > 0 8763 uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; 8764 varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; 8765 struct PointLightShadow { 8766 float shadowBias; 8767 float shadowNormalBias; 8768 float shadowRadius; 8769 vec2 shadowMapSize; 8770 float shadowCameraNear; 8771 float shadowCameraFar; 8772 }; 8773 uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; 8774 #endif 8775#endif`,AXe=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) 8776 vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); 8777 vec4 shadowWorldPosition; 8778#endif 8779#if defined( USE_SHADOWMAP ) 8780 #if NUM_DIR_LIGHT_SHADOWS > 0 8781 #pragma unroll_loop_start 8782 for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { 8783 shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); 8784 vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; 8785 } 8786 #pragma unroll_loop_end 8787 #endif 8788 #if NUM_POINT_LIGHT_SHADOWS > 0 8789 #pragma unroll_loop_start 8790 for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { 8791 shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); 8792 vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; 8793 } 8794 #pragma unroll_loop_end 8795 #endif 8796#endif 8797#if NUM_SPOT_LIGHT_COORDS > 0 8798 #pragma unroll_loop_start 8799 for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { 8800 shadowWorldPosition = worldPosition; 8801 #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) 8802 shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; 8803 #endif 8804 vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; 8805 } 8806 #pragma unroll_loop_end 8807#endif`,CXe=`float getShadowMask() { 8808 float shadow = 1.0; 8809 #ifdef USE_SHADOWMAP 8810 #if NUM_DIR_LIGHT_SHADOWS > 0 8811 DirectionalLightShadow directionalLight; 8812 #pragma unroll_loop_start 8813 for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { 8814 directionalLight = directionalLightShadows[ i ]; 8815 shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; 8816 } 8817 #pragma unroll_loop_end 8818 #endif 8819 #if NUM_SPOT_LIGHT_SHADOWS > 0 8820 SpotLightShadow spotLight; 8821 #pragma unroll_loop_start 8822 for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { 8823 spotLight = spotLightShadows[ i ]; 8824 shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; 8825 } 8826 #pragma unroll_loop_end 8827 #endif 8828 #if NUM_POINT_LIGHT_SHADOWS > 0 8829 PointLightShadow pointLight; 8830 #pragma unroll_loop_start 8831 for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { 8832 pointLight = pointLightShadows[ i ]; 8833 shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; 8834 } 8835 #pragma unroll_loop_end 8836 #endif 8837 #endif 8838 return shadow; 8839}`,MXe=`#ifdef USE_SKINNING 8840 mat4 boneMatX = getBoneMatrix( skinIndex.x ); 8841 mat4 boneMatY = getBoneMatrix( skinIndex.y ); 8842 mat4 boneMatZ = getBoneMatrix( skinIndex.z ); 8843 mat4 boneMatW = getBoneMatrix( skinIndex.w ); 8844#endif`,RXe=`#ifdef USE_SKINNING 8845 uniform mat4 bindMatrix; 8846 uniform mat4 bindMatrixInverse; 8847 uniform highp sampler2D boneTexture; 8848 mat4 getBoneMatrix( const in float i ) { 8849 int size = textureSize( boneTexture, 0 ).x; 8850 int j = int( i ) * 4; 8851 int x = j % size; 8852 int y = j / size; 8853 vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); 8854 vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); 8855 vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); 8856 vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); 8857 return mat4( v1, v2, v3, v4 ); 8858 } 8859#endif`,PXe=`#ifdef USE_SKINNING 8860 vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); 8861 vec4 skinned = vec4( 0.0 ); 8862 skinned += boneMatX * skinVertex * skinWeight.x; 8863 skinned += boneMatY * skinVertex * skinWeight.y; 8864 skinned += boneMatZ * skinVertex * skinWeight.z; 8865 skinned += boneMatW * skinVertex * skinWeight.w; 8866 transformed = ( bindMatrixInverse * skinned ).xyz; 8867#endif`,jXe=`#ifdef USE_SKINNING 8868 mat4 skinMatrix = mat4( 0.0 ); 8869 skinMatrix += skinWeight.x * boneMatX; 8870 skinMatrix += skinWeight.y * boneMatY; 8871 skinMatrix += skinWeight.z * boneMatZ; 8872 skinMatrix += skinWeight.w * boneMatW; 8873 skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; 8874 objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; 8875 #ifdef USE_TANGENT 8876 objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; 8877 #endif 8878#endif`,NXe=`float specularStrength; 8879#ifdef USE_SPECULARMAP 8880 vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); 8881 specularStrength = texelSpecular.r; 8882#else 8883 specularStrength = 1.0; 8884#endif`,kXe=`#ifdef USE_SPECULARMAP 8885 uniform sampler2D specularMap; 8886#endif`,OXe=`#if defined( TONE_MAPPING ) 8887 gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); 8888#endif`,IXe=`#ifndef saturate 8889#define saturate( a ) clamp( a, 0.0, 1.0 ) 8890#endif 8891uniform float toneMappingExposure; 8892vec3 LinearToneMapping( vec3 color ) { 8893 return saturate( toneMappingExposure * color ); 8894} 8895vec3 ReinhardToneMapping( vec3 color ) { 8896 color *= toneMappingExposure; 8897 return saturate( color / ( vec3( 1.0 ) + color ) ); 8898} 8899vec3 OptimizedCineonToneMapping( vec3 color ) { 8900 color *= toneMappingExposure; 8901 color = max( vec3( 0.0 ), color - 0.004 ); 8902 return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); 8903} 8904vec3 RRTAndODTFit( vec3 v ) { 8905 vec3 a = v * ( v + 0.0245786 ) - 0.000090537; 8906 vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; 8907 return a / b; 8908} 8909vec3 ACESFilmicToneMapping( vec3 color ) { 8910 const mat3 ACESInputMat = mat3( 8911 vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), 8912 vec3( 0.04823, 0.01566, 0.83777 ) 8913 ); 8914 const mat3 ACESOutputMat = mat3( 8915 vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), 8916 vec3( -0.07367, -0.00605, 1.07602 ) 8917 ); 8918 color *= toneMappingExposure / 0.6; 8919 color = ACESInputMat * color; 8920 color = RRTAndODTFit( color ); 8921 color = ACESOutputMat * color; 8922 return saturate( color ); 8923} 8924const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( 8925 vec3( 1.6605, - 0.1246, - 0.0182 ), 8926 vec3( - 0.5876, 1.1329, - 0.1006 ), 8927 vec3( - 0.0728, - 0.0083, 1.1187 ) 8928); 8929const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( 8930 vec3( 0.6274, 0.0691, 0.0164 ), 8931 vec3( 0.3293, 0.9195, 0.0880 ), 8932 vec3( 0.0433, 0.0113, 0.8956 ) 8933); 8934vec3 agxDefaultContrastApprox( vec3 x ) { 8935 vec3 x2 = x * x; 8936 vec3 x4 = x2 * x2; 8937 return + 15.5 * x4 * x2 8938 - 40.14 * x4 * x 8939 + 31.96 * x4 8940 - 6.868 * x2 * x 8941 + 0.4298 * x2 8942 + 0.1191 * x 8943 - 0.00232; 8944} 8945vec3 AgXToneMapping( vec3 color ) { 8946 const mat3 AgXInsetMatrix = mat3( 8947 vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), 8948 vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), 8949 vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) 8950 );
8951 const mat3 AgXOutsetMatrix = mat3( 8952 vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), 8953 vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), 8954 vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) 8955 ); 8956 const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; 8957 color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; 8958 color *= toneMappingExposure; 8959 color = AgXInsetMatrix * color; 8960 color = max( color, 1e-10 ); color = log2( color ); 8961 color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); 8962 color = clamp( color, 0.0, 1.0 ); 8963 color = agxDefaultContrastApprox( color ); 8964 color = AgXOutsetMatrix * color; 8965 color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); 8966 color = LINEAR_REC2020_TO_LINEAR_SRGB * color; 8967 return color; 8968} 8969vec3 CustomToneMapping( vec3 color ) { return color; }`,LXe=`#ifdef USE_TRANSMISSION 8970 material.transmission = transmission; 8971 material.transmissionAlpha = 1.0; 8972 material.thickness = thickness; 8973 material.attenuationDistance = attenuationDistance; 8974 material.attenuationColor = attenuationColor; 8975 #ifdef USE_TRANSMISSIONMAP 8976 material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; 8977 #endif 8978 #ifdef USE_THICKNESSMAP 8979 material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; 8980 #endif 8981 vec3 pos = vWorldPosition; 8982 vec3 v = normalize( cameraPosition - pos ); 8983 vec3 n = inverseTransformDirection( normal, viewMatrix ); 8984 vec4 transmitted = getIBLVolumeRefraction( 8985 n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, 8986 pos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness, 8987 material.attenuationColor, material.attenuationDistance ); 8988 material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); 8989 totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); 8990#endif`,DXe=`#ifdef USE_TRANSMISSION 8991 uniform float transmission; 8992 uniform float thickness; 8993 uniform float attenuationDistance; 8994 uniform vec3 attenuationColor; 8995 #ifdef USE_TRANSMISSIONMAP 8996 uniform sampler2D transmissionMap; 8997 #endif 8998 #ifdef USE_THICKNESSMAP 8999 uniform sampler2D thicknessMap; 9000 #endif 9001 uniform vec2 transmissionSamplerSize; 9002 uniform sampler2D transmissionSamplerMap; 9003 uniform mat4 modelMatrix; 9004 uniform mat4 projectionMatrix; 9005 varying vec3 vWorldPosition; 9006 float w0( float a ) { 9007 return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); 9008 } 9009 float w1( float a ) { 9010 return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); 9011 } 9012 float w2( float a ){ 9013 return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); 9014 } 9015 float w3( float a ) { 9016 return ( 1.0 / 6.0 ) * ( a * a * a ); 9017 } 9018 float g0( float a ) { 9019 return w0( a ) + w1( a ); 9020 } 9021 float g1( float a ) { 9022 return w2( a ) + w3( a ); 9023 } 9024 float h0( float a ) { 9025 return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); 9026 } 9027 float h1( float a ) { 9028 return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); 9029 } 9030 vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { 9031 uv = uv * texelSize.zw + 0.5; 9032 vec2 iuv = floor( uv ); 9033 vec2 fuv = fract( uv ); 9034 float g0x = g0( fuv.x ); 9035 float g1x = g1( fuv.x ); 9036 float h0x = h0( fuv.x ); 9037 float h1x = h1( fuv.x ); 9038 float h0y = h0( fuv.y ); 9039 float h1y = h1( fuv.y ); 9040 vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; 9041 vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; 9042 vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; 9043 vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; 9044 return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + 9045 g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); 9046 } 9047 vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { 9048 vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); 9049 vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); 9050 vec2 fLodSizeInv = 1.0 / fLodSize; 9051 vec2 cLodSizeInv = 1.0 / cLodSize; 9052 vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); 9053 vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); 9054 return mix( fSample, cSample, fract( lod ) ); 9055 } 9056 vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { 9057 vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); 9058 vec3 modelScale; 9059 modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); 9060 modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); 9061 modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); 9062 return normalize( refractionVector ) * thickness * modelScale; 9063 } 9064 float applyIorToRoughness( const in float roughness, const in float ior ) { 9065 return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); 9066 } 9067 vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { 9068 float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); 9069 return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); 9070 } 9071 vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { 9072 if ( isinf( attenuationDistance ) ) { 9073 return vec3( 1.0 ); 9074 } else { 9075 vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; 9076 vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; 9077 } 9078 } 9079 vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, 9080 const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, 9081 const in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness, 9082 const in vec3 attenuationColor, const in float attenuationDistance ) { 9083 vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); 9084 vec3 refractedRayExit = position + transmissionRay; 9085 vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); 9086 vec2 refractionCoords = ndcPos.xy / ndcPos.w; 9087 refractionCoords += 1.0; 9088 refractionCoords /= 2.0; 9089 vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); 9090 vec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); 9091 vec3 attenuatedColor = transmittance * transmittedLight.rgb; 9092 vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); 9093 float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; 9094 return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); 9095 } 9096#endif`,FXe=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) 9097 varying vec2 vUv; 9098#endif 9099#ifdef USE_MAP 9100 varying vec2 vMapUv; 9101#endif 9102#ifdef USE_ALPHAMAP
9103 varying vec2 vAlphaMapUv; 9104#endif 9105#ifdef USE_LIGHTMAP 9106 varying vec2 vLightMapUv; 9107#endif 9108#ifdef USE_AOMAP 9109 varying vec2 vAoMapUv; 9110#endif 9111#ifdef USE_BUMPMAP 9112 varying vec2 vBumpMapUv; 9113#endif 9114#ifdef USE_NORMALMAP 9115 varying vec2 vNormalMapUv; 9116#endif 9117#ifdef USE_EMISSIVEMAP 9118 varying vec2 vEmissiveMapUv; 9119#endif 9120#ifdef USE_METALNESSMAP 9121 varying vec2 vMetalnessMapUv; 9122#endif 9123#ifdef USE_ROUGHNESSMAP 9124 varying vec2 vRoughnessMapUv; 9125#endif 9126#ifdef USE_ANISOTROPYMAP 9127 varying vec2 vAnisotropyMapUv; 9128#endif 9129#ifdef USE_CLEARCOATMAP 9130 varying vec2 vClearcoatMapUv; 9131#endif 9132#ifdef USE_CLEARCOAT_NORMALMAP 9133 varying vec2 vClearcoatNormalMapUv; 9134#endif 9135#ifdef USE_CLEARCOAT_ROUGHNESSMAP 9136 varying vec2 vClearcoatRoughnessMapUv; 9137#endif 9138#ifdef USE_IRIDESCENCEMAP 9139 varying vec2 vIridescenceMapUv; 9140#endif 9141#ifdef USE_IRIDESCENCE_THICKNESSMAP 9142 varying vec2 vIridescenceThicknessMapUv; 9143#endif 9144#ifdef USE_SHEEN_COLORMAP 9145 varying vec2 vSheenColorMapUv; 9146#endif 9147#ifdef USE_SHEEN_ROUGHNESSMAP 9148 varying vec2 vSheenRoughnessMapUv; 9149#endif 9150#ifdef USE_SPECULARMAP 9151 varying vec2 vSpecularMapUv; 9152#endif 9153#ifdef USE_SPECULAR_COLORMAP 9154 varying vec2 vSpecularColorMapUv; 9155#endif 9156#ifdef USE_SPECULAR_INTENSITYMAP 9157 varying vec2 vSpecularIntensityMapUv; 9158#endif 9159#ifdef USE_TRANSMISSIONMAP 9160 uniform mat3 transmissionMapTransform; 9161 varying vec2 vTransmissionMapUv; 9162#endif 9163#ifdef USE_THICKNESSMAP 9164 uniform mat3 thicknessMapTransform; 9165 varying vec2 vThicknessMapUv; 9166#endif`,UXe=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) 9167 varying vec2 vUv; 9168#endif 9169#ifdef USE_MAP 9170 uniform mat3 mapTransform; 9171 varying vec2 vMapUv; 9172#endif 9173#ifdef USE_ALPHAMAP 9174 uniform mat3 alphaMapTransform; 9175 varying vec2 vAlphaMapUv; 9176#endif 9177#ifdef USE_LIGHTMAP 9178 uniform mat3 lightMapTransform; 9179 varying vec2 vLightMapUv; 9180#endif 9181#ifdef USE_AOMAP 9182 uniform mat3 aoMapTransform; 9183 varying vec2 vAoMapUv; 9184#endif 9185#ifdef USE_BUMPMAP 9186 uniform mat3 bumpMapTransform; 9187 varying vec2 vBumpMapUv; 9188#endif 9189#ifdef USE_NORMALMAP 9190 uniform mat3 normalMapTransform; 9191 varying vec2 vNormalMapUv; 9192#endif 9193#ifdef USE_DISPLACEMENTMAP 9194 uniform mat3 displacementMapTransform; 9195 varying vec2 vDisplacementMapUv; 9196#endif 9197#ifdef USE_EMISSIVEMAP 9198 uniform mat3 emissiveMapTransform; 9199 varying vec2 vEmissiveMapUv; 9200#endif 9201#ifdef USE_METALNESSMAP 9202 uniform mat3 metalnessMapTransform; 9203 varying vec2 vMetalnessMapUv; 9204#endif 9205#ifdef USE_ROUGHNESSMAP 9206 uniform mat3 roughnessMapTransform; 9207 varying vec2 vRoughnessMapUv; 9208#endif 9209#ifdef USE_ANISOTROPYMAP 9210 uniform mat3 anisotropyMapTransform; 9211 varying vec2 vAnisotropyMapUv; 9212#endif 9213#ifdef USE_CLEARCOATMAP 9214 uniform mat3 clearcoatMapTransform; 9215 varying vec2 vClearcoatMapUv; 9216#endif 9217#ifdef USE_CLEARCOAT_NORMALMAP 9218 uniform mat3 clearcoatNormalMapTransform; 9219 varying vec2 vClearcoatNormalMapUv; 9220#endif 9221#ifdef USE_CLEARCOAT_ROUGHNESSMAP 9222 uniform mat3 clearcoatRoughnessMapTransform; 9223 varying vec2 vClearcoatRoughnessMapUv; 9224#endif 9225#ifdef USE_SHEEN_COLORMAP 9226 uniform mat3 sheenColorMapTransform; 9227 varying vec2 vSheenColorMapUv; 9228#endif 9229#ifdef USE_SHEEN_ROUGHNESSMAP 9230 uniform mat3 sheenRoughnessMapTransform; 9231 varying vec2 vSheenRoughnessMapUv; 9232#endif 9233#ifdef USE_IRIDESCENCEMAP 9234 uniform mat3 iridescenceMapTransform; 9235 varying vec2 vIridescenceMapUv; 9236#endif 9237#ifdef USE_IRIDESCENCE_THICKNESSMAP 9238 uniform mat3 iridescenceThicknessMapTransform; 9239 varying vec2 vIridescenceThicknessMapUv; 9240#endif 9241#ifdef USE_SPECULARMAP 9242 uniform mat3 specularMapTransform; 9243 varying vec2 vSpecularMapUv; 9244#endif 9245#ifdef USE_SPECULAR_COLORMAP 9246 uniform mat3 specularColorMapTransform; 9247 varying vec2 vSpecularColorMapUv; 9248#endif 9249#ifdef USE_SPECULAR_INTENSITYMAP 9250 uniform mat3 specularIntensityMapTransform; 9251 varying vec2 vSpecularIntensityMapUv; 9252#endif 9253#ifdef USE_TRANSMISSIONMAP 9254 uniform mat3 transmissionMapTransform; 9255 varying vec2 vTransmissionMapUv; 9256#endif 9257#ifdef USE_THICKNESSMAP 9258 uniform mat3 thicknessMapTransform; 9259 varying vec2 vThicknessMapUv; 9260#endif`,BXe=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) 9261 vUv = vec3( uv, 1 ).xy; 9262#endif 9263#ifdef USE_MAP 9264 vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; 9265#endif 9266#ifdef USE_ALPHAMAP 9267 vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; 9268#endif 9269#ifdef USE_LIGHTMAP 9270 vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; 9271#endif 9272#ifdef USE_AOMAP 9273 vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; 9274#endif 9275#ifdef USE_BUMPMAP 9276 vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; 9277#endif 9278#ifdef USE_NORMALMAP 9279 vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; 9280#endif 9281#ifdef USE_DISPLACEMENTMAP 9282 vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; 9283#endif 9284#ifdef USE_EMISSIVEMAP 9285 vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; 9286#endif 9287#ifdef USE_METALNESSMAP 9288 vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; 9289#endif 9290#ifdef USE_ROUGHNESSMAP 9291 vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; 9292#endif 9293#ifdef USE_ANISOTROPYMAP 9294 vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; 9295#endif 9296#ifdef USE_CLEARCOATMAP 9297 vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; 9298#endif 9299#ifdef USE_CLEARCOAT_NORMALMAP 9300 vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; 9301#endif 9302#ifdef USE_CLEARCOAT_ROUGHNESSMAP 9303 vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; 9304#endif
9305#ifdef USE_IRIDESCENCEMAP 9306 vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; 9307#endif 9308#ifdef USE_IRIDESCENCE_THICKNESSMAP 9309 vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; 9310#endif 9311#ifdef USE_SHEEN_COLORMAP 9312 vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; 9313#endif 9314#ifdef USE_SHEEN_ROUGHNESSMAP 9315 vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; 9316#endif 9317#ifdef USE_SPECULARMAP 9318 vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; 9319#endif 9320#ifdef USE_SPECULAR_COLORMAP 9321 vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; 9322#endif 9323#ifdef USE_SPECULAR_INTENSITYMAP 9324 vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; 9325#endif 9326#ifdef USE_TRANSMISSIONMAP 9327 vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; 9328#endif 9329#ifdef USE_THICKNESSMAP 9330 vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; 9331#endif`,zXe=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 9332 vec4 worldPosition = vec4( transformed, 1.0 ); 9333 #ifdef USE_BATCHING 9334 worldPosition = batchingMatrix * worldPosition; 9335 #endif 9336 #ifdef USE_INSTANCING 9337 worldPosition = instanceMatrix * worldPosition; 9338 #endif 9339 worldPosition = modelMatrix * worldPosition; 9340#endif`;const $Xe=`varying vec2 vUv; 9341uniform mat3 uvTransform; 9342void main() { 9343 vUv = ( uvTransform * vec3( uv, 1 ) ).xy; 9344 gl_Position = vec4( position.xy, 1.0, 1.0 ); 9345}`,HXe=`uniform sampler2D t2D; 9346uniform float backgroundIntensity; 9347varying vec2 vUv; 9348void main() { 9349 vec4 texColor = texture2D( t2D, vUv ); 9350 #ifdef DECODE_VIDEO_TEXTURE 9351 texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); 9352 #endif 9353 texColor.rgb *= backgroundIntensity; 9354 gl_FragColor = texColor; 9355 #include <tonemapping_fragment> 9356 #include <colorspace_fragment> 9357}`,VXe=`varying vec3 vWorldDirection; 9358#include <common> 9359void main() { 9360 vWorldDirection = transformDirection( position, modelMatrix ); 9361 #include <begin_vertex> 9362 #include <project_vertex> 9363 gl_Position.z = gl_Position.w; 9364}`,WXe=`#ifdef ENVMAP_TYPE_CUBE 9365 uniform samplerCube envMap; 9366#elif defined( ENVMAP_TYPE_CUBE_UV ) 9367 uniform sampler2D envMap; 9368#endif 9369uniform float flipEnvMap; 9370uniform float backgroundBlurriness; 9371uniform float backgroundIntensity; 9372varying vec3 vWorldDirection; 9373#include <cube_uv_reflection_fragment> 9374void main() { 9375 #ifdef ENVMAP_TYPE_CUBE 9376 vec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); 9377 #elif defined( ENVMAP_TYPE_CUBE_UV ) 9378 vec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness ); 9379 #else 9380 vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); 9381 #endif 9382 texColor.rgb *= backgroundIntensity; 9383 gl_FragColor = texColor; 9384 #include <tonemapping_fragment> 9385 #include <colorspace_fragment> 9386}`,GXe=`varying vec3 vWorldDirection; 9387#include <common> 9388void main() { 9389 vWorldDirection = transformDirection( position, modelMatrix ); 9390 #include <begin_vertex> 9391 #include <project_vertex> 9392 gl_Position.z = gl_Position.w; 9393}`,qXe=`uniform samplerCube tCube; 9394uniform float tFlip; 9395uniform float opacity; 9396varying vec3 vWorldDirection; 9397void main() { 9398 vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); 9399 gl_FragColor = texColor; 9400 gl_FragColor.a *= opacity; 9401 #include <tonemapping_fragment> 9402 #include <colorspace_fragment> 9403}`,YXe=`#include <common> 9404#include <batching_pars_vertex> 9405#include <uv_pars_vertex> 9406#include <displacementmap_pars_vertex> 9407#include <morphtarget_pars_vertex> 9408#include <skinning_pars_vertex> 9409#include <logdepthbuf_pars_vertex> 9410#include <clipping_planes_pars_vertex> 9411varying vec2 vHighPrecisionZW; 9412void main() { 9413 #include <uv_vertex> 9414 #include <batching_vertex> 9415 #include <skinbase_vertex> 9416 #ifdef USE_DISPLACEMENTMAP 9417 #include <beginnormal_vertex> 9418 #include <morphnormal_vertex> 9419 #include <skinnormal_vertex> 9420 #endif 9421 #include <begin_vertex> 9422 #include <morphtarget_vertex> 9423 #include <skinning_vertex> 9424 #include <displacementmap_vertex> 9425 #include <project_vertex> 9426 #include <logdepthbuf_vertex> 9427 #include <clipping_planes_vertex> 9428 vHighPrecisionZW = gl_Position.zw; 9429}`,XXe=`#if DEPTH_PACKING == 3200 9430 uniform float opacity; 9431#endif 9432#include <common> 9433#include <packing> 9434#include <uv_pars_fragment> 9435#include <map_pars_fragment> 9436#include <alphamap_pars_fragment> 9437#include <alphatest_pars_fragment> 9438#include <alphahash_pars_fragment> 9439#include <logdepthbuf_pars_fragment> 9440#include <clipping_planes_pars_fragment> 9441varying vec2 vHighPrecisionZW; 9442void main() { 9443 #include <clipping_planes_fragment> 9444 vec4 diffuseColor = vec4( 1.0 ); 9445 #if DEPTH_PACKING == 3200 9446 diffuseColor.a = opacity; 9447 #endif 9448 #include <map_fragment> 9449 #include <alphamap_fragment> 9450 #include <alphatest_fragment> 9451 #include <alphahash_fragment> 9452 #include <logdepthbuf_fragment> 9453 float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; 9454 #if DEPTH_PACKING == 3200 9455 gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); 9456 #elif DEPTH_PACKING == 3201 9457 gl_FragColor = packDepthToRGBA( fragCoordZ ); 9458 #endif 9459}`,KXe=`#define DISTANCE 9460varying vec3 vWorldPosition; 9461#include <common> 9462#include <batching_pars_vertex> 9463#include <uv_pars_vertex> 9464#include <displacementmap_pars_vertex> 9465#include <morphtarget_pars_vertex> 9466#include <skinning_pars_vertex> 9467#include <clipping_planes_pars_vertex> 9468void main() { 9469 #include <uv_vertex> 9470 #include <batching_vertex> 9471 #include <skinbase_vertex> 9472 #ifdef USE_DISPLACEMENTMAP 9473 #include <beginnormal_vertex> 9474 #include <morphnormal_vertex> 9475 #include <skinnormal_vertex> 9476 #endif 9477 #include <begin_vertex> 9478 #include <morphtarget_vertex> 9479 #include <skinning_vertex> 9480 #include <displacementmap_vertex> 9481 #include <project_vertex> 9482 #include <worldpos_vertex> 9483 #include <clipping_planes_vertex> 9484 vWorldPosition = worldPosition.xyz; 9485}`,QXe=`#define DISTANCE 9486uniform vec3 referencePosition; 9487uniform float nearDistance; 9488uniform float farDistance; 9489varying vec3 vWorldPosition; 9490#include <common> 9491#include <packing> 9492#include <uv_pars_fragment> 9493#include <map_pars_fragment> 9494#include <alphamap_pars_fragment> 9495#include <alphatest_pars_fragment> 9496#include <alphahash_pars_fragment> 9497#include <clipping_planes_pars_fragment> 9498void main () { 9499 #include <clipping_planes_fragment> 9500 vec4 diffuseColor = vec4( 1.0 ); 9501 #include <map_fragment> 9502 #include <alphamap_fragment> 9503 #include <alphatest_fragment> 9504 #include <alphahash_fragment> 9505 float dist = length( vWorldPosition - referencePosition ); 9506 dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); 9507 dist = saturate( dist ); 9508 gl_FragColor = packDepthToRGBA( dist ); 9509}`,ZXe=`varying vec3 vWorldDirection; 9510#include <common> 9511void main() { 9512 vWorldDirection = transformDirection( position, modelMatrix ); 9513 #include <begin_vertex> 9514 #include <project_vertex> 9515}`,JXe=`uniform sampler2D tEquirect; 9516varying vec3 vWorldDirection; 9517#include <common> 9518void main() { 9519 vec3 direction = normalize( vWorldDirection ); 9520 vec2 sampleUV = equirectUv( direction ); 9521 gl_FragColor = texture2D( tEquirect, sampleUV ); 9522 #include <tonemapping_fragment> 9523 #include <colorspace_fragment> 9524}`,eKe=`uniform float scale; 9525attribute float lineDistance; 9526varying float vLineDistance; 9527#include <common> 9528#include <uv_pars_vertex> 9529#include <color_pars_vertex> 9530#include <fog_pars_vertex> 9531#include <morphtarget_pars_vertex> 9532#include <logdepthbuf_pars_vertex> 9533#include <clipping_planes_pars_vertex> 9534void main() { 9535 vLineDistance = scale * lineDistance; 9536 #include <uv_vertex> 9537 #include <color_vertex> 9538 #include <morphcolor_vertex> 9539 #include <begin_vertex> 9540 #include <morphtarget_vertex> 9541 #include <project_vertex> 9542 #include <logdepthbuf_vertex> 9543 #include <clipping_planes_vertex> 9544 #include <fog_vertex> 9545}`,tKe=`uniform vec3 diffuse; 9546uniform float opacity; 9547uniform float dashSize; 9548uniform float totalSize; 9549varying float vLineDistance; 9550#include <common> 9551#include <color_pars_fragment> 9552#include <uv_pars_fragment> 9553#include <map_pars_fragment> 9554#include <fog_pars_fragment> 9555#include <logdepthbuf_pars_fragment> 9556#include <clipping_planes_pars_fragment> 9557void main() { 9558 #include <clipping_planes_fragment> 9559 if ( mod( vLineDistance, totalSize ) > dashSize ) { 9560 discard; 9561 } 9562 vec3 outgoingLight = vec3( 0.0 ); 9563 vec4 diffuseColor = vec4( diffuse, opacity ); 9564 #include <logdepthbuf_fragment> 9565 #include <map_fragment> 9566 #include <color_fragment> 9567 outgoingLight = diffuseColor.rgb; 9568 #include <opaque_fragment> 9569 #include <tonemapping_fragment> 9570 #include <colorspace_fragment> 9571 #include <fog_fragment> 9572 #include <premultiplied_alpha_fragment> 9573}`,nKe=`#include <common> 9574#include <batching_pars_vertex> 9575#include <uv_pars_vertex> 9576#include <envmap_pars_vertex> 9577#include <color_pars_vertex> 9578#include <fog_pars_vertex> 9579#include <morphtarget_pars_vertex> 9580#include <skinning_pars_vertex> 9581#include <logdepthbuf_pars_vertex> 9582#include <clipping_planes_pars_vertex> 9583void main() { 9584 #include <uv_vertex> 9585 #include <color_vertex> 9586 #include <morphcolor_vertex> 9587 #include <batching_vertex> 9588 #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) 9589 #include <beginnormal_vertex> 9590 #include <morphnormal_vertex> 9591 #include <skinbase_vertex> 9592 #include <skinnormal_vertex> 9593 #include <defaultnormal_vertex> 9594 #endif 9595 #include <begin_vertex> 9596 #include <morphtarget_vertex> 9597 #include <skinning_vertex> 9598 #include <project_vertex> 9599 #include <logdepthbuf_vertex> 9600 #include <clipping_planes_vertex> 9601 #include <worldpos_vertex> 9602 #include <envmap_vertex> 9603 #include <fog_vertex> 9604}`,rKe=`uniform vec3 diffuse; 9605uniform float opacity; 9606#ifndef FLAT_SHADED 9607 varying vec3 vNormal; 9608#endif 9609#include <common> 9610#include <dithering_pars_fragment> 9611#include <color_pars_fragment> 9612#include <uv_pars_fragment> 9613#include <map_pars_fragment> 9614#include <alphamap_pars_fragment> 9615#include <alphatest_pars_fragment> 9616#include <alphahash_pars_fragment> 9617#include <aomap_pars_fragment> 9618#include <lightmap_pars_fragment> 9619#include <envmap_common_pars_fragment> 9620#include <envmap_pars_fragment> 9621#include <fog_pars_fragment> 9622#include <specularmap_pars_fragment> 9623#include <logdepthbuf_pars_fragment> 9624#include <clipping_planes_pars_fragment> 9625void main() { 9626 #include <clipping_planes_fragment> 9627 vec4 diffuseColor = vec4( diffuse, opacity ); 9628 #include <logdepthbuf_fragment> 9629 #include <map_fragment> 9630 #include <color_fragment> 9631 #include <alphamap_fragment> 9632 #include <alphatest_fragment> 9633 #include <alphahash_fragment> 9634 #include <specularmap_fragment> 9635 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 9636 #ifdef USE_LIGHTMAP 9637 vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); 9638 reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; 9639 #else 9640 reflectedLight.indirectDiffuse += vec3( 1.0 ); 9641 #endif 9642 #include <aomap_fragment> 9643 reflectedLight.indirectDiffuse *= diffuseColor.rgb; 9644 vec3 outgoingLight = reflectedLight.indirectDiffuse; 9645 #include <envmap_fragment> 9646 #include <opaque_fragment> 9647 #include <tonemapping_fragment> 9648 #include <colorspace_fragment> 9649 #include <fog_fragment> 9650 #include <premultiplied_alpha_fragment> 9651 #include <dithering_fragment> 9652}`,iKe=`#define LAMBERT 9653varying vec3 vViewPosition; 9654#include <common> 9655#include <batching_pars_vertex> 9656#include <uv_pars_vertex> 9657#include <displacementmap_pars_vertex> 9658#include <envmap_pars_vertex> 9659#include <color_pars_vertex> 9660#include <fog_pars_vertex> 9661#include <normal_pars_vertex> 9662#include <morphtarget_pars_vertex> 9663#include <skinning_pars_vertex> 9664#include <shadowmap_pars_vertex> 9665#include <logdepthbuf_pars_vertex> 9666#include <clipping_planes_pars_vertex> 9667void main() { 9668 #include <uv_vertex> 9669 #include <color_vertex> 9670 #include <morphcolor_vertex> 9671 #include <batching_vertex> 9672 #include <beginnormal_vertex> 9673 #include <morphnormal_vertex> 9674 #include <skinbase_vertex> 9675 #include <skinnormal_vertex> 9676 #include <defaultnormal_vertex> 9677 #include <normal_vertex> 9678 #include <begin_vertex> 9679 #include <morphtarget_vertex> 9680 #include <skinning_vertex> 9681 #include <displacementmap_vertex> 9682 #include <project_vertex> 9683 #include <logdepthbuf_vertex> 9684 #include <clipping_planes_vertex> 9685 vViewPosition = - mvPosition.xyz; 9686 #include <worldpos_vertex> 9687 #include <envmap_vertex> 9688 #include <shadowmap_vertex> 9689 #include <fog_vertex> 9690}`,sKe=`#define LAMBERT 9691uniform vec3 diffuse; 9692uniform vec3 emissive; 9693uniform float opacity; 9694#include <common> 9695#include <packing> 9696#include <dithering_pars_fragment> 9697#include <color_pars_fragment> 9698#include <uv_pars_fragment> 9699#include <map_pars_fragment> 9700#include <alphamap_pars_fragment> 9701#include <alphatest_pars_fragment> 9702#include <alphahash_pars_fragment> 9703#include <aomap_pars_fragment> 9704#include <lightmap_pars_fragment> 9705#include <emissivemap_pars_fragment> 9706#include <envmap_common_pars_fragment> 9707#include <envmap_pars_fragment> 9708#include <fog_pars_fragment> 9709#include <bsdfs> 9710#include <lights_pars_begin> 9711#include <normal_pars_fragment> 9712#include <lights_lambert_pars_fragment> 9713#include <shadowmap_pars_fragment> 9714#include <bumpmap_pars_fragment> 9715#include <normalmap_pars_fragment> 9716#include <specularmap_pars_fragment> 9717#include <logdepthbuf_pars_fragment> 9718#include <clipping_planes_pars_fragment> 9719void main() { 9720 #include <clipping_planes_fragment> 9721 vec4 diffuseColor = vec4( diffuse, opacity ); 9722 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 9723 vec3 totalEmissiveRadiance = emissive; 9724 #include <logdepthbuf_fragment> 9725 #include <map_fragment> 9726 #include <color_fragment> 9727 #include <alphamap_fragment> 9728 #include <alphatest_fragment> 9729 #include <alphahash_fragment> 9730 #include <specularmap_fragment> 9731 #include <normal_fragment_begin> 9732 #include <normal_fragment_maps> 9733 #include <emissivemap_fragment> 9734 #include <lights_lambert_fragment> 9735 #include <lights_fragment_begin> 9736 #include <lights_fragment_maps> 9737 #include <lights_fragment_end> 9738 #include <aomap_fragment> 9739 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; 9740 #include <envmap_fragment> 9741 #include <opaque_fragment> 9742 #include <tonemapping_fragment> 9743 #include <colorspace_fragment> 9744 #include <fog_fragment> 9745 #include <premultiplied_alpha_fragment> 9746 #include <dithering_fragment> 9747}`,oKe=`#define MATCAP 9748varying vec3 vViewPosition; 9749#include <common> 9750#include <batching_pars_vertex> 9751#include <uv_pars_vertex> 9752#include <color_pars_vertex> 9753#include <displacementmap_pars_vertex> 9754#include <fog_pars_vertex> 9755#include <normal_pars_vertex> 9756#include <morphtarget_pars_vertex> 9757#include <skinning_pars_vertex> 9758#include <logdepthbuf_pars_vertex> 9759#include <clipping_planes_pars_vertex> 9760void main() { 9761 #include <uv_vertex> 9762 #include <color_vertex> 9763 #include <morphcolor_vertex> 9764 #include <batching_vertex> 9765 #include <beginnormal_vertex> 9766 #include <morphnormal_vertex> 9767 #include <skinbase_vertex> 9768 #include <skinnormal_vertex> 9769 #include <defaultnormal_vertex> 9770 #include <normal_vertex> 9771 #include <begin_vertex> 9772 #include <morphtarget_vertex> 9773 #include <skinning_vertex> 9774 #include <displacementmap_vertex> 9775 #include <project_vertex> 9776 #include <logdepthbuf_vertex> 9777 #include <clipping_planes_vertex> 9778 #include <fog_vertex> 9779 vViewPosition = - mvPosition.xyz; 9780}`,aKe=`#define MATCAP 9781uniform vec3 diffuse; 9782uniform float opacity; 9783uniform sampler2D matcap; 9784varying vec3 vViewPosition; 9785#include <common> 9786#include <dithering_pars_fragment> 9787#include <color_pars_fragment> 9788#include <uv_pars_fragment> 9789#include <map_pars_fragment> 9790#include <alphamap_pars_fragment> 9791#include <alphatest_pars_fragment> 9792#include <alphahash_pars_fragment> 9793#include <fog_pars_fragment> 9794#include <normal_pars_fragment> 9795#include <bumpmap_pars_fragment> 9796#include <normalmap_pars_fragment> 9797#include <logdepthbuf_pars_fragment> 9798#include <clipping_planes_pars_fragment> 9799void main() { 9800 #include <clipping_planes_fragment> 9801 vec4 diffuseColor = vec4( diffuse, opacity ); 9802 #include <logdepthbuf_fragment> 9803 #include <map_fragment> 9804 #include <color_fragment> 9805 #include <alphamap_fragment> 9806 #include <alphatest_fragment> 9807 #include <alphahash_fragment> 9808 #include <normal_fragment_begin> 9809 #include <normal_fragment_maps> 9810 vec3 viewDir = normalize( vViewPosition ); 9811 vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); 9812 vec3
9812 y = cross( viewDir, x ); 9813 vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; 9814 #ifdef USE_MATCAP 9815 vec4 matcapColor = texture2D( matcap, uv ); 9816 #else 9817 vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); 9818 #endif 9819 vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; 9820 #include <opaque_fragment> 9821 #include <tonemapping_fragment> 9822 #include <colorspace_fragment> 9823 #include <fog_fragment> 9824 #include <premultiplied_alpha_fragment> 9825 #include <dithering_fragment> 9826}`,lKe=`#define NORMAL 9827#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) 9828 varying vec3 vViewPosition; 9829#endif 9830#include <common> 9831#include <batching_pars_vertex> 9832#include <uv_pars_vertex> 9833#include <displacementmap_pars_vertex> 9834#include <normal_pars_vertex> 9835#include <morphtarget_pars_vertex> 9836#include <skinning_pars_vertex> 9837#include <logdepthbuf_pars_vertex> 9838#include <clipping_planes_pars_vertex> 9839void main() { 9840 #include <uv_vertex> 9841 #include <batching_vertex> 9842 #include <beginnormal_vertex> 9843 #include <morphnormal_vertex> 9844 #include <skinbase_vertex> 9845 #include <skinnormal_vertex> 9846 #include <defaultnormal_vertex> 9847 #include <normal_vertex> 9848 #include <begin_vertex> 9849 #include <morphtarget_vertex> 9850 #include <skinning_vertex> 9851 #include <displacementmap_vertex> 9852 #include <project_vertex> 9853 #include <logdepthbuf_vertex> 9854 #include <clipping_planes_vertex> 9855#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) 9856 vViewPosition = - mvPosition.xyz; 9857#endif 9858}`,cKe=`#define NORMAL 9859uniform float opacity; 9860#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) 9861 varying vec3 vViewPosition; 9862#endif 9863#include <packing> 9864#include <uv_pars_fragment> 9865#include <normal_pars_fragment> 9866#include <bumpmap_pars_fragment> 9867#include <normalmap_pars_fragment> 9868#include <logdepthbuf_pars_fragment> 9869#include <clipping_planes_pars_fragment> 9870void main() { 9871 #include <clipping_planes_fragment> 9872 #include <logdepthbuf_fragment> 9873 #include <normal_fragment_begin> 9874 #include <normal_fragment_maps> 9875 gl_FragColor = vec4( packNormalToRGB( normal ), opacity ); 9876 #ifdef OPAQUE 9877 gl_FragColor.a = 1.0; 9878 #endif 9879}`,uKe=`#define PHONG 9880varying vec3 vViewPosition; 9881#include <common> 9882#include <batching_pars_vertex> 9883#include <uv_pars_vertex> 9884#include <displacementmap_pars_vertex> 9885#include <envmap_pars_vertex> 9886#include <color_pars_vertex> 9887#include <fog_pars_vertex> 9888#include <normal_pars_vertex> 9889#include <morphtarget_pars_vertex> 9890#include <skinning_pars_vertex> 9891#include <shadowmap_pars_vertex> 9892#include <logdepthbuf_pars_vertex> 9893#include <clipping_planes_pars_vertex> 9894void main() { 9895 #include <uv_vertex> 9896 #include <color_vertex> 9897 #include <morphcolor_vertex> 9898 #include <batching_vertex> 9899 #include <beginnormal_vertex> 9900 #include <morphnormal_vertex> 9901 #include <skinbase_vertex> 9902 #include <skinnormal_vertex> 9903 #include <defaultnormal_vertex> 9904 #include <normal_vertex> 9905 #include <begin_vertex> 9906 #include <morphtarget_vertex> 9907 #include <skinning_vertex> 9908 #include <displacementmap_vertex> 9909 #include <project_vertex> 9910 #include <logdepthbuf_vertex> 9911 #include <clipping_planes_vertex> 9912 vViewPosition = - mvPosition.xyz; 9913 #include <worldpos_vertex> 9914 #include <envmap_vertex> 9915 #include <shadowmap_vertex> 9916 #include <fog_vertex> 9917}`,dKe=`#define PHONG 9918uniform vec3 diffuse; 9919uniform vec3 emissive; 9920uniform vec3 specular; 9921uniform float shininess; 9922uniform float opacity; 9923#include <common> 9924#include <packing> 9925#include <dithering_pars_fragment> 9926#include <color_pars_fragment> 9927#include <uv_pars_fragment> 9928#include <map_pars_fragment> 9929#include <alphamap_pars_fragment> 9930#include <alphatest_pars_fragment> 9931#include <alphahash_pars_fragment> 9932#include <aomap_pars_fragment> 9933#include <lightmap_pars_fragment> 9934#include <emissivemap_pars_fragment> 9935#include <envmap_common_pars_fragment> 9936#include <envmap_pars_fragment> 9937#include <fog_pars_fragment> 9938#include <bsdfs> 9939#include <lights_pars_begin> 9940#include <normal_pars_fragment> 9941#include <lights_phong_pars_fragment> 9942#include <shadowmap_pars_fragment> 9943#include <bumpmap_pars_fragment> 9944#include <normalmap_pars_fragment> 9945#include <specularmap_pars_fragment> 9946#include <logdepthbuf_pars_fragment> 9947#include <clipping_planes_pars_fragment> 9948void main() { 9949 #include <clipping_planes_fragment> 9950 vec4 diffuseColor = vec4( diffuse, opacity ); 9951 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 9952 vec3 totalEmissiveRadiance = emissive; 9953 #include <logdepthbuf_fragment> 9954 #include <map_fragment> 9955 #include <color_fragment> 9956 #include <alphamap_fragment> 9957 #include <alphatest_fragment> 9958 #include <alphahash_fragment> 9959 #include <specularmap_fragment> 9960 #include <normal_fragment_begin> 9961 #include <normal_fragment_maps> 9962 #include <emissivemap_fragment> 9963 #include <lights_phong_fragment> 9964 #include <lights_fragment_begin> 9965 #include <lights_fragment_maps> 9966 #include <lights_fragment_end> 9967 #include <aomap_fragment> 9968 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; 9969 #include <envmap_fragment> 9970 #include <opaque_fragment> 9971 #include <tonemapping_fragment> 9972 #include <colorspace_fragment> 9973 #include <fog_fragment> 9974 #include <premultiplied_alpha_fragment> 9975 #include <dithering_fragment> 9976}`,hKe=`#define STANDARD 9977varying vec3 vViewPosition; 9978#ifdef USE_TRANSMISSION 9979 varying vec3 vWorldPosition; 9980#endif 9981#include <common> 9982#include <batching_pars_vertex> 9983#include <uv_pars_vertex> 9984#include <displacementmap_pars_vertex> 9985#include <color_pars_vertex> 9986#include <fog_pars_vertex> 9987#include <normal_pars_vertex> 9988#include <morphtarget_pars_vertex> 9989#include <skinning_pars_vertex> 9990#include <shadowmap_pars_vertex> 9991#include <logdepthbuf_pars_vertex> 9992#include <clipping_planes_pars_vertex> 9993void main() { 9994 #include <uv_vertex> 9995 #include <color_vertex> 9996 #include <morphcolor_vertex> 9997 #include <batching_vertex> 9998 #include <beginnormal_vertex> 9999 #include <morphnormal_vertex> 10000 #include <skinbase_vertex> 10001 #include <skinnormal_vertex> 10002 #include <defaultnormal_vertex> 10003 #include <normal_vertex> 10004 #include <begin_vertex> 10005 #include <morphtarget_vertex> 10006 #include <skinning_vertex> 10007 #include <displacementmap_vertex> 10008 #include <project_vertex> 10009 #include <logdepthbuf_vertex> 10010 #include <clipping_planes_vertex> 10011 vViewPosition = - mvPosition.xyz; 10012 #include <worldpos_vertex> 10013 #include <shadowmap_vertex> 10014 #include <fog_vertex> 10015#ifdef USE_TRANSMISSION 10016 vWorldPosition = worldPosition.xyz; 10017#endif 10018}`,fKe=`#define STANDARD 10019#ifdef PHYSICAL 10020 #define IOR 10021 #define USE_SPECULAR 10022#endif 10023uniform vec3 diffuse; 10024uniform vec3 emissive; 10025uniform float roughness; 10026uniform float metalness; 10027uniform float opacity; 10028#ifdef IOR 10029 uniform float ior; 10030#endif 10031#ifdef USE_SPECULAR 10032 uniform float specularIntensity; 10033 uniform vec3 specularColor; 10034 #ifdef USE_SPECULAR_COLORMAP 10035 uniform sampler2D specularColorMap; 10036 #endif 10037 #ifdef USE_SPECULAR_INTENSITYMAP 10038 uniform sampler2D specularIntensityMap; 10039 #endif 10040#endif 10041#ifdef USE_CLEARCOAT 10042 uniform float clearcoat; 10043 uniform float clearcoatRoughness; 10044#endif
10045#ifdef USE_IRIDESCENCE 10046 uniform float iridescence; 10047 uniform float iridescenceIOR; 10048 uniform float iridescenceThicknessMinimum; 10049 uniform float iridescenceThicknessMaximum; 10050#endif 10051#ifdef USE_SHEEN 10052 uniform vec3 sheenColor; 10053 uniform float sheenRoughness; 10054 #ifdef USE_SHEEN_COLORMAP 10055 uniform sampler2D sheenColorMap; 10056 #endif 10057 #ifdef USE_SHEEN_ROUGHNESSMAP 10058 uniform sampler2D sheenRoughnessMap; 10059 #endif 10060#endif 10061#ifdef USE_ANISOTROPY 10062 uniform vec2 anisotropyVector; 10063 #ifdef USE_ANISOTROPYMAP 10064 uniform sampler2D anisotropyMap; 10065 #endif 10066#endif 10067varying vec3 vViewPosition; 10068#include <common> 10069#include <packing> 10070#include <dithering_pars_fragment> 10071#include <color_pars_fragment> 10072#include <uv_pars_fragment> 10073#include <map_pars_fragment> 10074#include <alphamap_pars_fragment> 10075#include <alphatest_pars_fragment> 10076#include <alphahash_pars_fragment> 10077#include <aomap_pars_fragment> 10078#include <lightmap_pars_fragment> 10079#include <emissivemap_pars_fragment> 10080#include <iridescence_fragment> 10081#include <cube_uv_reflection_fragment> 10082#include <envmap_common_pars_fragment> 10083#include <envmap_physical_pars_fragment> 10084#include <fog_pars_fragment> 10085#include <lights_pars_begin> 10086#include <normal_pars_fragment> 10087#include <lights_physical_pars_fragment> 10088#include <transmission_pars_fragment> 10089#include <shadowmap_pars_fragment> 10090#include <bumpmap_pars_fragment> 10091#include <normalmap_pars_fragment> 10092#include <clearcoat_pars_fragment> 10093#include <iridescence_pars_fragment> 10094#include <roughnessmap_pars_fragment> 10095#include <metalnessmap_pars_fragment> 10096#include <logdepthbuf_pars_fragment> 10097#include <clipping_planes_pars_fragment> 10098void main() { 10099 #include <clipping_planes_fragment> 10100 vec4 diffuseColor = vec4( diffuse, opacity ); 10101 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 10102 vec3 totalEmissiveRadiance = emissive; 10103 #include <logdepthbuf_fragment> 10104 #include <map_fragment> 10105 #include <color_fragment> 10106 #include <alphamap_fragment> 10107 #include <alphatest_fragment> 10108 #include <alphahash_fragment> 10109 #include <roughnessmap_fragment> 10110 #include <metalnessmap_fragment> 10111 #include <normal_fragment_begin> 10112 #include <normal_fragment_maps> 10113 #include <clearcoat_normal_fragment_begin> 10114 #include <clearcoat_normal_fragment_maps> 10115 #include <emissivemap_fragment> 10116 #include <lights_physical_fragment> 10117 #include <lights_fragment_begin> 10118 #include <lights_fragment_maps> 10119 #include <lights_fragment_end> 10120 #include <aomap_fragment> 10121 vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; 10122 vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; 10123 #include <transmission_fragment> 10124 vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; 10125 #ifdef USE_SHEEN 10126 float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); 10127 outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; 10128 #endif 10129 #ifdef USE_CLEARCOAT 10130 float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); 10131 vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); 10132 outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; 10133 #endif 10134 #include <opaque_fragment> 10135 #include <tonemapping_fragment> 10136 #include <colorspace_fragment> 10137 #include <fog_fragment> 10138 #include <premultiplied_alpha_fragment> 10139 #include <dithering_fragment> 10140}`,mKe=`#define TOON 10141varying vec3 vViewPosition; 10142#include <common> 10143#include <batching_pars_vertex> 10144#include <uv_pars_vertex> 10145#include <displacementmap_pars_vertex> 10146#include <color_pars_vertex> 10147#include <fog_pars_vertex> 10148#include <normal_pars_vertex> 10149#include <morphtarget_pars_vertex> 10150#include <skinning_pars_vertex> 10151#include <shadowmap_pars_vertex> 10152#include <logdepthbuf_pars_vertex> 10153#include <clipping_planes_pars_vertex> 10154void main() { 10155 #include <uv_vertex> 10156 #include <color_vertex> 10157 #include <morphcolor_vertex> 10158 #include <batching_vertex> 10159 #include <beginnormal_vertex> 10160 #include <morphnormal_vertex> 10161 #include <skinbase_vertex> 10162 #include <skinnormal_vertex> 10163 #include <defaultnormal_vertex> 10164 #include <normal_vertex> 10165 #include <begin_vertex> 10166 #include <morphtarget_vertex> 10167 #include <skinning_vertex> 10168 #include <displacementmap_vertex> 10169 #include <project_vertex> 10170 #include <logdepthbuf_vertex> 10171 #include <clipping_planes_vertex> 10172 vViewPosition = - mvPosition.xyz; 10173 #include <worldpos_vertex> 10174 #include <shadowmap_vertex> 10175 #include <fog_vertex> 10176}`,pKe=`#define TOON 10177uniform vec3 diffuse; 10178uniform vec3 emissive; 10179uniform float opacity; 10180#include <common> 10181#include <packing> 10182#include <dithering_pars_fragment> 10183#include <color_pars_fragment> 10184#include <uv_pars_fragment> 10185#include <map_pars_fragment> 10186#include <alphamap_pars_fragment> 10187#include <alphatest_pars_fragment> 10188#include <alphahash_pars_fragment> 10189#include <aomap_pars_fragment> 10190#include <lightmap_pars_fragment> 10191#include <emissivemap_pars_fragment> 10192#include <gradientmap_pars_fragment> 10193#include <fog_pars_fragment> 10194#include <bsdfs> 10195#include <lights_pars_begin> 10196#include <normal_pars_fragment> 10197#include <lights_toon_pars_fragment> 10198#include <shadowmap_pars_fragment> 10199#include <bumpmap_pars_fragment> 10200#include <normalmap_pars_fragment> 10201#include <logdepthbuf_pars_fragment> 10202#include <clipping_planes_pars_fragment> 10203void main() { 10204 #include <clipping_planes_fragment> 10205 vec4 diffuseColor = vec4( diffuse, opacity ); 10206 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 10207 vec3 totalEmissiveRadiance = emissive; 10208 #include <logdepthbuf_fragment> 10209 #include <map_fragment> 10210 #include <color_fragment> 10211 #include <alphamap_fragment> 10212 #include <alphatest_fragment> 10213 #include <alphahash_fragment> 10214 #include <normal_fragment_begin> 10215 #include <normal_fragment_maps> 10216 #include <emissivemap_fragment> 10217 #include <lights_toon_fragment> 10218 #include <lights_fragment_begin> 10219 #include <lights_fragment_maps> 10220 #include <lights_fragment_end> 10221 #include <aomap_fragment> 10222 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; 10223 #include <opaque_fragment> 10224 #include <tonemapping_fragment> 10225 #include <colorspace_fragment> 10226 #include <fog_fragment> 10227 #include <premultiplied_alpha_fragment> 10228 #include <dithering_fragment> 10229}`,gKe=`uniform float size; 10230uniform float scale; 10231#include <common> 10232#include <color_pars_vertex> 10233#include <fog_pars_vertex> 10234#include <morphtarget_pars_vertex> 10235#include <logdepthbuf_pars_vertex> 10236#include <clipping_planes_pars_vertex> 10237#ifdef USE_POINTS_UV 10238 varying vec2 vUv; 10239 uniform mat3 uvTransform; 10240#endif 10241void main() { 10242 #ifdef USE_POINTS_UV 10243 vUv = ( uvTransform * vec3( uv, 1 ) ).xy; 10244 #endif 10245 #include <color_vertex> 10246 #include <morphcolor_vertex> 10247 #include <begin_vertex> 10248 #include <morphtarget_vertex> 10249 #include <project_vertex> 10250 gl_PointSize = size; 10251 #ifdef USE_SIZEATTENUATION 10252 bool isPerspective = isPerspectiveMatrix( projectionMatrix ); 10253 if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); 10254 #endif 10255 #include <logdepthbuf_vertex> 10256 #include <clipping_planes_vertex> 10257 #include <worldpos_vertex> 10258 #include <fog_vertex> 10259}`,vKe=`uniform vec3 diffuse; 10260uniform float opacity; 10261#include <common> 10262#include <color_pars_fragment> 10263#include <map_particle_pars_fragment> 10264#include <alphatest_pars_fragment> 10265#include <alphahash_pars_fragment> 10266#include <fog_pars_fragment> 10267#include <logdepthbuf_pars_fragment> 10268#include <clipping_planes_pars_fragment> 10269void main() { 10270 #include <clipping_planes_fragment> 10271 vec3 outgoingLight = vec3( 0.0 ); 10272 vec4 diffuseColor = vec4( diffuse, opacity ); 10273 #include <logdepthbuf_fragment> 10274 #include <map_particle_fragment> 10275 #include <color_fragment> 10276 #include <alphatest_fragment> 10277 #include <alphahash_fragment> 10278 outgoingLight = diffuseColor.rgb; 10279 #include <opaque_fragment> 10280 #include <tonemapping_fragment> 10281 #include <colorspace_fragment> 10282 #include <fog_fragment> 10283 #include <premultiplied_alpha_fragment> 10284}`,yKe=`#include <common> 10285#include <batching_pars_vertex> 10286#include <fog_pars_vertex> 10287#include <morphtarget_pars_vertex> 10288#include <skinning_pars_vertex> 10289#include <logdepthbuf_pars_vertex> 10290#include <shadowmap_pars_vertex> 10291void main() { 10292 #include <batching_vertex> 10293 #include <beginnormal_vertex> 10294 #include <morphnormal_vertex> 10295 #include <skinbase_vertex> 10296 #include <skinnormal_vertex> 10297 #include <defaultnormal_vertex> 10298 #include <begin_vertex> 10299 #include <morphtarget_vertex> 10300 #include <skinning_vertex> 10301 #include <project_vertex> 10302 #include <logdepthbuf_vertex> 10303 #include <worldpos_vertex> 10304 #include <shadowmap_vertex> 10305 #include <fog_vertex> 10306}`,xKe=`uniform vec3 color; 10307uniform float opacity; 10308#include <common> 10309#include <packing> 10310#include <fog_pars_fragment> 10311#include <bsdfs> 10312#include <lights_pars_begin> 10313#include <logdepthbuf_pars_fragment> 10314#include <shadowmap_pars_fragment> 10315#include <shadowmask_pars_fragment> 10316void main() { 10317 #include <logdepthbuf_fragment> 10318 gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); 10319 #include <tonemapping_fragment> 10320 #include <colorspace_fragment> 10321 #include <fog_fragment> 10322}`,bKe=`uniform float rotation; 10323uniform vec2 center; 10324#include <common> 10325#include <uv_pars_vertex> 10326#include <fog_pars_vertex> 10327#include <logdepthbuf_pars_vertex> 10328#include <clipping_planes_pars_vertex> 10329void main() { 10330 #include <uv_vertex> 10331 vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); 10332 vec2 scale; 10333 scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); 10334 scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); 10335 #ifndef USE_SIZEATTENUATION 10336 bool isPerspective = isPerspectiveMatrix( projectionMatrix ); 10337 if ( isPerspective ) scale *= - mvPosition.z; 10338 #endif 10339 vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; 10340 vec2 rotatedPosition; 10341 rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; 10342 rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; 10343 mvPosition.xy += rotatedPosition; 10344 gl_Position = projectionMatrix * mvPosition; 10345 #include <logdepthbuf_vertex> 10346 #include <clipping_planes_vertex> 10347 #include <fog_vertex> 10348}`,wKe=`uniform vec3 diffuse; 10349uniform float opacity; 10350#include <common> 10351#include <uv_pars_fragment> 10352#include <map_pars_fragment> 10353#include <alphamap_pars_fragment> 10354#include <alphatest_pars_fragment> 10355#include <alphahash_pars_fragment> 10356#include <fog_pars_fragment> 10357#include <logdepthbuf_pars_fragment> 10358#include <clipping_planes_pars_fragment> 10359void main() { 10360 #include <clipping_planes_fragment> 10361 vec3 outgoingLight = vec3( 0.0 ); 10362 vec4 diffuseColor = vec4( diffuse, opacity ); 10363 #include <logdepthbuf_fragment> 10364 #include <map_fragment> 10365 #include <alphamap_fragment> 10366 #include <alphatest_fragment> 10367 #include <alphahash_fragment> 10368 outgoingLight = diffuseColor.rgb; 10369 #include <opaque_fragment> 10370 #include <tonemapping_fragment> 10371 #include <colorspace_fragment> 10372 #include <fog_fragment> 10373}`,Ct={alphahash_fragment:Hqe,alphahash_pars_fragment:Vqe,alphamap_fragment:Wqe,alphamap_pars_fragment:Gqe,alphatest_fragment:qqe,alphatest_pars_fragment:Yqe,aomap_fragment:Xqe,aomap_pars_fragment:Kqe,batching_pars_vertex:Qqe,batching_vertex:Zqe,begin_vertex:Jqe,beginnormal_vertex:eYe,bsdfs:tYe,iridescence_fragment:nYe,bumpmap_pars_fragment:rYe,clipping_planes_fragment:iYe,clipping_planes_pars_fragment:sYe,clipping_planes_pars_vertex:oYe,clipping_planes_vertex:aYe,color_fragment:lYe,color_pars_fragment:cYe,color_pars_vertex:uYe,color_vertex:dYe,common:hYe,cube_uv_reflection_fragment:fYe,defaultnormal_vertex:mYe,displacementmap_pars_vertex:pYe,displacementmap_vertex:gYe,emissivemap_fragment:vYe,emissivemap_pars_fragment:yYe,colorspace_fragment:xYe,colorspace_pars_fragment:bYe,envmap_fragment:wYe,envmap_common_pars_fragment:_Ye,envmap_pars_fragment:SYe,envmap_pars_vertex:EYe,envmap_physical_pars_fragment:LYe,envmap_vertex:TYe,fog_vertex:AYe,fog_pars_vertex:CYe,fog_fragment:MYe,fog_pars_fragment:RYe,gradientmap_pars_fragment:PYe,lightmap_fragment:jYe,lightmap_pars_fragment:NYe,lights_lambert_fragment:kYe,lights_lambert_pars_fragment:OYe,lights_pars_begin:IYe,lights_toon_fragment:DYe,lights_toon_pars_fragment:FYe,lights_phong_fragment:UYe,lights_phong_pars_fragment:BYe,lights_physical_fragment:zYe,lights_physical_pars_fragment:$Ye,lights_fragment_begin:HYe,lights_fragment_maps:VYe,lights_fragment_end:WYe,logdepthbuf_fragment:GYe,logdepthbuf_pars_fragment:qYe,logdepthbuf_pars_vertex:YYe,logdepthbuf_vertex:XYe,map_fragment:KYe,map_pars_fragment:QYe,map_particle_fragment:ZYe,map_particle_pars_fragment:JYe,metalnessmap_fragment:eXe,metalnessmap_pars_fragment:tXe,morphcolor_vertex:nXe,morphnormal_vertex:rXe,morphtarget_pars_vertex:iXe,morphtarget_vertex:sXe,normal_fragment_begin:oXe,normal_fragment_maps:aXe,normal_pars_fragment:lXe,normal_pars_vertex:cXe,normal_vertex:uXe,normalmap_pars_fragment:dXe,clearcoat_normal_fragment_begin:hXe,clearcoat_normal_fragment_maps:fXe,clearcoat_pars_fragment:mXe,iridescence_pars_fragment:pXe,opaque_fragment:gXe,packing:vXe,premultiplied_alpha_fragment:yXe,project_vertex:xXe,dithering_fragment:bXe,dithering_pars_fragment:wXe,roughnessmap_fragment:_Xe,roughnessmap_pars_fragment:SXe,shadowmap_pars_fragment:EXe,shadowmap_pars_vertex:TXe,shadowmap_vertex:AXe,shadowmask_pars_fragment:CXe,skinbase_vertex:MXe,skinning_pars_vertex:RXe,skinning_vertex:PXe,skinnormal_vertex:jXe,specularmap_fragment:NXe,specularmap_pars_fragment:kXe,tonemapping_fragment:OXe,tonemapping_pars_fragment:IXe,transmission_fragment:LXe,transmission_pars_fragment:DXe,uv_pars_fragment:FXe,uv_pars_vertex:UXe,uv_vertex:BXe,worldpos_vertex:zXe,background_vert:$Xe,background_frag:HXe,backgroundCube_vert:VXe,backgroundCube_frag:WXe,cube_vert:GXe,cube_frag:qXe,depth_vert:YXe,depth_frag:XXe,distanceRGBA_vert:KXe,distanceRGBA_frag:QXe,equirect_vert:ZXe,equirect_frag:JXe,linedashed_vert:eKe,linedashed_frag:tKe,meshbasic_vert:nKe,meshbasic_frag:rKe,meshlambert_vert:iKe,meshlambert_frag:sKe,meshmatcap_vert:oKe,meshmatcap_frag:aKe,meshnormal_vert:lKe,meshnormal_frag:cKe,meshphong_vert:uKe,meshphong_frag:dKe,meshphysical_vert:hKe,meshphysical_frag:fKe,meshtoon_vert:mKe,meshtoon_frag:pKe,points_vert:gKe,points_frag:vKe,shadow_vert:yKe,shadow_frag:xKe,sprite_vert:bKe,sprite_frag:wKe},ze={common:{diffuse:{value:new kt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Pt},alphaMap:{value:null},alphaMapTransform:{value:new Pt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Pt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Pt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Pt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Pt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Pt},normalScale:{value:new Ht(1,1)}}
vendor: 7,220 bytes, line 10373
10373,displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Pt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Pt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Pt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Pt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new kt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new kt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Pt},alphaTest:{value:0},uvTransform:{value:new Pt}},sprite:{diffuse:{value:new kt(16777215)},opacity:{value:1},center:{value:new Ht(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Pt},alphaMap:{value:null},alphaMapTransform:{value:new Pt},alphaTest:{value:0}}},da={basic:{uniforms:pi([ze.common,ze.specularmap,ze.envmap,ze.aomap,ze.lightmap,ze.fog]),vertexShader:Ct.meshbasic_vert,fragmentShader:Ct.meshbasic_frag},lambert:{uniforms:pi([ze.common,ze.specularmap,ze.envmap,ze.aomap,ze.lightmap,ze.emissivemap,ze.bumpmap,ze.normalmap,ze.displacementmap,ze.fog,ze.lights,{emissive:{value:new kt(0)}}]),vertexShader:Ct.meshlambert_vert,fragmentShader:Ct.meshlambert_frag},phong:{uniforms:pi([ze.common,ze.specularmap,ze.envmap,ze.aomap,ze.lightmap,ze.emissivemap,ze.bumpmap,ze.normalmap,ze.displacementmap,ze.fog,ze.lights,{emissive:{value:new kt(0)},specular:{value:new kt(1118481)},shininess:{value:30}}]),vertexShader:Ct.meshphong_vert,fragmentShader:Ct.meshphong_frag},standard:{uniforms:pi([ze.common,ze.envmap,ze.aomap,ze.lightmap,ze.emissivemap,ze.bumpmap,ze.normalmap,ze.displacementmap,ze.roughnessmap,ze.metalnessmap,ze.fog,ze.lights,{emissive:{value:new kt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Ct.meshphysical_vert,fragmentShader:Ct.meshphysical_frag},toon:{uniforms:pi([ze.common,ze.aomap,ze.lightmap,ze.emissivemap,ze.bumpmap,ze.normalmap,ze.displacementmap,ze.gradientmap,ze.fog,ze.lights,{emissive:{value:new kt(0)}}]),vertexShader:Ct.meshtoon_vert,fragmentShader:Ct.meshtoon_frag},matcap:{uniforms:pi([ze.common,ze.bumpmap,ze.normalmap,ze.displacementmap,ze.fog,{matcap:{value:null}}]),vertexShader:Ct.meshmatcap_vert,fragmentShader:Ct.meshmatcap_frag},points:{uniforms:pi([ze.points,ze.fog]),vertexShader:Ct.points_vert,fragmentShader:Ct.points_frag},dashed:{uniforms:pi([ze.common,ze.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ct.linedashed_vert,fragmentShader:Ct.linedashed_frag},depth:{uniforms:pi([ze.common,ze.displacementmap]),vertexShader:Ct.depth_vert,fragmentShader:Ct.depth_frag},normal:{uniforms:pi([ze.common,ze.bumpmap,ze.normalmap,ze.displacementmap,{opacity:{value:1}}]),vertexShader:Ct.meshnormal_vert,fragmentShader:Ct.meshnormal_frag},sprite:{uniforms:pi([ze.sprite,ze.fog]),vertexShader:Ct.sprite_vert,fragmentShader:Ct.sprite_frag},background:{uniforms:{uvTransform:{value:new Pt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Ct.background_vert,fragmentShader:Ct.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Ct.backgroundCube_vert,fragmentShader:Ct.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Ct.cube_vert,fragmentShader:Ct.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ct.equirect_vert,fragmentShader:Ct.equirect_frag},distanceRGBA:{uniforms:pi([ze.common,ze.displacementmap,{referencePosition:{value:new le},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ct.distanceRGBA_vert,fragmentShader:Ct.distanceRGBA_frag},shadow:{uniforms:pi([ze.lights,ze.fog,{color:{value:new kt(0)},opacity:{value:1}}]),vertexShader:Ct.shadow_vert,fragmentShader:Ct.shadow_frag}};da.physical={uniforms:pi([da.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Pt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Pt},clearcoatNormalScale:{value:new Ht(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Pt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Pt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Pt},sheen:{value:0},sheenColor:{value:new kt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Pt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Pt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Pt},transmissionSamplerSize:{value:new Ht},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Pt},attenuationDistance:{value:0},attenuationColor:{value:new kt(0)},specularColor:{value:new kt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Pt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Pt},anisotropyVector:{value:new Ht},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Pt}}]),vertexShader:Ct.meshphysical_vert,fragmentShader:Ct.meshphysical_frag};const Ob={r:0,b:0,g:0};function _Ke(t,e,n,r,i,s,o){const a=new kt(0);let c=s===!0?0:1,u,d,h=null,f=0,m=null;function v(g,y){let b=!1,x=y.isScene===!0?y.background:null;x&&x.isTexture&&(x=(y.backgroundBlurriness>0?n:e).get(x)),x===null?p(a,c):x&&x.isColor&&(p(x,1),b=!0);const w=t.xr.getEnvironmentBlendMode();w==="additive"?r.buffers.color.setClear(0,0,0,1,o):w==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,o),(t.autoClear||b)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),x&&(x.isCubeTexture||x.mapping===H2)?(d===void 0&&(d=new Vo(new tx(1,1,1),new iu({name:"Backgroun
10373dCubeMaterial",uniforms:cp(da.backgroundCube.uniforms),vertexShader:da.backgroundCube.vertexShader,fragmentShader:da.backgroundCube.fragmentShader,side:ts,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),d.geometry.deleteAttribute("uv"),d.onBeforeRender=function(_,S,T){this.matrixWorld.copyPosition(T.matrixWorld)},Object.defineProperty(d.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(d)),d.material.uniforms.envMap.value=x,d.material.uniforms.flipEnvMap.value=x.isCubeTexture&&x.isRenderTargetTexture===!1?-1:1,d.material.uniforms.backgroundBlurriness.value=y.backgroundBlurriness,d.material.uniforms.backgroundIntensity.value=y.backgroundIntensity,d.material.toneMapped=un.getTransfer(x.colorSpace)!==Sn,(h!==x||f!==x.version||m!==t.toneMapping)&&(d.material.needsUpdate=!0,h=x,f=x.version,m=t.toneMapping),d.layers.enableAll(),g.unshift(d,d.geometry,d.material,0,0,null)):x&&x.isTexture&&(u===void 0&&(u=new Vo(new G2(2,2),new iu({name:"BackgroundMaterial",uniforms:cp(da.background.uniforms),vertexShader:da.background.vertexShader,fragmentShader:da.background.fragmentShader,side:ru,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(u)),u.material.uniforms.t2D.value=x,u.material.uniforms.backgroundIntensity.value=y.backgroundIntensity,u.material.toneMapped=un.getTransfer(x.colorSpace)!==Sn,x.matrixAutoUpdate===!0&&x.updateMatrix(),u.material.uniforms.uvTransform.value.copy(x.matrix),(h!==x||f!==x.version||m!==t.toneMapping)&&(u.material.needsUpdate=!0,h=x,f=x.version,m=t.toneMapping),u.layers.enableAll(),g.unshift(u,u.geometry,u.material,0,0,null))}function p(g,y){g.getRGB(Ob,Cte(t)),r.buffers.color.setClear(Ob.r,Ob.g,Ob.b,y,o)}return{getClearColor:function(){return a},setClearColor:function(g,y=1){a.set(g),c=y,p(a,c)},getClearAlpha:function(){return c},setClearAlpha:function(g){c=g,p(a,c)},render:v}}function SKe(t,e,n,r){const i=t.getParameter(t.MAX_VERTEX_ATTRIBS),s=r.isWebGL2?null:e.get("OES_vertex_array_object"),o=r.isWebGL2||s!==null,a={},c=g(null);let u=c,d=!1;function h(P,O,L,F,D){let I=!1;if(o){const N=p(F,L,O);u!==N&&(u=N,m(u.object)),I=y(P,F,L,D),I&&b(P,F,L,D)}else{const N=O.wireframe===!0;(u.geometry!==F.id||u.program!==L.id||u.wireframe!==N)&&(u.geometry=F.id,u.program=L.id,u.wireframe=N,I=!0)}D!==null&&n.update(D,t.ELEMENT_ARRAY_BUFFER),(I||d)&&(d=!1,M(P,O,L,F),D!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,n.get(D).buffer))}function f(){return r.isWebGL2?t.createVertexArray():s.createVertexArrayOES()}function m(P){return r.isWebGL2?t.bindVertexArray(P):s.bindVertexArrayOES(P)}function v(P){return r.isWebGL2?t.deleteVertexArray(P):s.deleteVertexArrayOES(P)}function p(P,O,L){const F=L.wireframe===!0;let D=a[P.id];D===void 0&&(D={},a[P.id]=D);let I=D[O.id];I===void 0&&(I={},D[O.id]=I);let N=I[F];return N===void 0&&(N=g(f()),I[F]=N),N}function g(P){const O=[],L=[],F=[];for(let D=0;D<i;D++)O[D]=0,L[D]=0,F[D]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:O,enabledAttributes:L,attributeDivisors:F,object:P,attributes:{},index:null}}function y(P,O,L,F){const D=u.attributes,I=O.attributes;let N=0;const G=L.getAttributes();for(const q in G)if(G[q].location>=0){const Y=D[q];let te=I[q];if(te===void 0&&(q==="instanceMatrix"&&P.instanceMatrix&&(te=P.instanceMatrix),q==="instanceColor"&&P.instanceColor&&(te=P.instanceColor)),Y===void 0||Y.attribute!==te||te&&Y.data!==te.data)return!0;N++}return u.attributesNum!==N||u.index!==F}function b(P,O,L,F){const D={},I=O.attributes;let N=0;const G=L.getAttributes();for(const q in G)if(G[q].location>=0){let Y=I[q];Y===void 0&&(q==="instanceMatrix"&&P.instanceMatrix&&(Y=P.instanceMatrix),q==="instanceColor"&&P.instanceColor&&(Y=P.instanceColor));const te={};te.attribute=Y,Y&&Y.data&&(te.data=Y.data),D[q]=te,N++}u.attributes=D,u.attributesNum=N,u.index=F}function x(){const P=u.newAttributes;for(let O=0,L=P.length;O<L;O++)P[O]=0}function w(P){_(P,0)}function _(P,O){const L=u.newAttributes,F=u.enabledAttributes,D=u.attributeDivisors;L[P]=1,F[P]===0&&(t.enableVertexAttribArray(P),F[P]=1),D[P]!==O&&((r.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[r.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](P,O),D[P]=O)}
vendor: 17,064 bytes, lines 10373-10448
10373function S(){const P=u.newAttributes,O=u.enabledAttributes;for(let L=0,F=O.length;L<F;L++)O[L]!==P[L]&&(t.disableVertexAttribArray(L),O[L]=0)}function T(P,O,L,F,D,I,N){N===!0?t.vertexAttribIPointer(P,O,L,D,I):t.vertexAttribPointer(P,O,L,F,D,I)}function M(P,O,L,F){if(r.isWebGL2===!1&&(P.isInstancedMesh||F.isInstancedBufferGeometry)&&e.get("ANGLE_instanced_arrays")===null)return;x();const D=F.attributes,I=L.getAttributes(),N=O.defaultAttributeValues;for(const G in I){const q=I[G];if(q.location>=0){let W=D[G];if(W===void 0&&(G==="instanceMatrix"&&P.instanceMatrix&&(W=P.instanceMatrix),G==="instanceColor"&&P.instanceColor&&(W=P.instanceColor)),W!==void 0){const Y=W.normalized,te=W.itemSize,Q=n.get(W);if(Q===void 0)continue;const X=Q.buffer,ae=Q.type,J=Q.bytesPerElement,ue=r.isWebGL2===!0&&(ae===t.INT||ae===t.UNSIGNED_INT||W.gpuType===lte);if(W.isInterleavedBufferAttribute){const de=W.data,H=de.stride,_e=W.offset;if(de.isInstancedInterleavedBuffer){for(let he=0;he<q.locationSize;he++)_(q.location+he,de.meshPerAttribute);P.isInstancedMesh!==!0&&F._maxInstanceCount===void 0&&(F._maxInstanceCount=de.meshPerAttribute*de.count)}else for(let he=0;he<q.locationSize;he++)w(q.location+he);t.bindBuffer(t.ARRAY_BUFFER,X);for(let he=0;he<q.locationSize;he++)T(q.location+he,te/q.locationSize,ae,Y,H*J,(_e+te/q.locationSize*he)*J,ue)}else{if(W.isInstancedBufferAttribute){for(let de=0;de<q.locationSize;de++)_(q.location+de,W.meshPerAttribute);P.isInstancedMesh!==!0&&F._maxInstanceCount===void 0&&(F._maxInstanceCount=W.meshPerAttribute*W.count)}else for(let de=0;de<q.locationSize;de++)w(q.location+de);t.bindBuffer(t.ARRAY_BUFFER,X);for(let de=0;de<q.locationSize;de++)T(q.location+de,te/q.locationSize,ae,Y,te*J,te/q.locationSize*de*J,ue)}}else if(N!==void 0){const Y=N[G];if(Y!==void 0)switch(Y.length){case 2:t.vertexAttrib2fv(q.location,Y);break;case 3:t.vertexAttrib3fv(q.location,Y);break;case 4:t.vertexAttrib4fv(q.location,Y);break;default:t.vertexAttrib1fv(q.location,Y)}}}}S()}function A(){j();for(const P in a){const O=a[P];for(const L in O){const F=O[L];for(const D in F)v(F[D].object),delete F[D];delete O[L]}delete a[P]}}function C(P){if(a[P.id]===void 0)return;const O=a[P.id];for(const L in O){const F=O[L];for(const D in F)v(F[D].object),delete F[D];delete O[L]}delete a[P.id]}function R(P){for(const O in a){const L=a[O];if(L[P.id]===void 0)continue;const F=L[P.id];for(const D in F)v(F[D].object),delete F[D];delete L[P.id]}}function j(){k(),d=!0,u!==c&&(u=c,m(u.object))}function k(){c.geometry=null,c.program=null,c.wireframe=!1}return{setup:h,reset:j,resetDefaultState:k,dispose:A,releaseStatesOfGeometry:C,releaseStatesOfProgram:R,initAttributes:x,enableAttribute:w,disableUnusedAttributes:S}}function EKe(t,e,n,r){const i=r.isWebGL2;let s;function o(d){s=d}function a(d,h){t.drawArrays(s,d,h),n.update(h,s,1)}function c(d,h,f){if(f===0)return;let m,v;if(i)m=t,v="drawArraysInstanced";else if(m=e.get("ANGLE_instanced_arrays"),v="drawArraysInstancedANGLE",m===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}m[v](s,d,h,f),n.update(h,s,f)}function u(d,h,f){if(f===0)return;const m=e.get("WEBGL_multi_draw");if(m===null)for(let v=0;v<f;v++)this.render(d[v],h[v]);else{m.multiDrawArraysWEBGL(s,d,0,h,0,f);let v=0;for(let p=0;p<f;p++)v+=h[p];n.update(v,s,1)}}this.setMode=o,this.render=a,this.renderInstances=c,this.renderMultiDraw=u}function TKe(t,e,n){let r;function i(){if(r!==void 0)return r;if(e.has("EXT_texture_filter_anisotropic")===!0){const T=e.get("EXT_texture_filter_anisotropic");r=t.getParameter(T.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r}function s(T){if(T==="highp"){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";T="mediump"}return T==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&t.constructor.name==="WebGL2RenderingContext";let a=n.precision!==void 0?n.precision:"highp";const c=s(a);c!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",c,"instead."),a=c);const u=o||e.has("WEBGL_draw_buffers"),d=n.logarithmicDepthBuffer===!0,h=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),f=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),m=t.getParameter(t.MAX_TEXTURE_SIZE),v=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),p=t.getParameter(t.MAX_VERTEX_ATTRIBS),g=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),y=t.getParameter(t.MAX_VARYING_VECTORS),b=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),x=f>0,w=o||e.has("OES_texture_float"),_=x&&w,S=o?t.getParameter(t.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:u,getMaxAnisotropy:i,getMaxPrecision:s,precision:a,logarithmicDepthBuffer:d,maxTextures:h,maxVertexTextures:f,maxTextureSize:m,maxCubemapSize:v,maxAttributes:p,maxVertexUniforms:g,maxVaryings:y,maxFragmentUniforms:b,vertexTextures:x,floatFragmentTextures:w,floatVertexTextures:_,maxSamples:S}}function AKe(t){const e=this;let n=null,r=0,i=!1,s=!1;const o=new Yu,a=new Pt,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(h,f){const m=h.length!==0||f||r!==0||i;return i=f,r=h.length,m},this.beginShadows=function(){s=!0,d(null)},this.endShadows=function(){s=!1},this.setGlobalState=function(h,f){n=d(h,f,0)},this.setState=function(h,f,m){const v=h.clippingPlanes,p=h.clipIntersection,g=h.clipShadows,y=t.get(h);if(!i||v===null||v.length===0||s&&!g)s?d(null):u();else{const b=s?0:r,x=b*4;let w=y.clippingState||null;c.value=w,w=d(v,f,x,m);for(let _=0;_!==x;++_)w[_]=n[_];y.clippingState=w,this.numIntersection=p?this.numPlanes:0,this.numPlanes+=b}};function u(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function d(h,f,m,v){const p=h!==null?h.length:0;let g=null;if(p!==0){if(g=c.value,v!==!0||g===null){const y=m+p*4,b=f.matrixWorldInverse;a.getNormalMatrix(b),(g===null||g.length<y)&&(g=new Float32Array(y));for(let x=0,w=m;x!==p;++x,w+=4)o.copy(h[x]).applyMatrix4(b,a),o.normal.toArray(g,w),g[w+3]=o.constant}c.value=g,c.needsUpdate=!0}return e.numPlanes=p,e.numIntersection=0,g}}function CKe(t){let e=new WeakMap;function n(o,a){return a===vj?o.mapping=op:a===yj&&(o.mapping=ap),o}function r(o){if(o&&o.isTexture){const a=o.mapping;if(a===vj||a===yj)if(e.has(o)){const c=e.get(o).texture;return n(c,o.mapping)}else{const c=o.image;if(c&&c.height>0){const u=new Uqe(c.height/2);return u.fromEquirectangularTexture(t,o),e.set(o,u),o.addEventListener("dispose",i),n(u.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const c=e.get(a);c!==void 0&&(e.delete(a),c.dispose())}function s(){e=new WeakMap}return{get:r,dispose:s}}class jte extends Mte{constructor(e=-1,n=1,r=1,i=-1,s=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=r,this.bottom=i,this.near=s,this.far=o,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,r,i,s,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let s=r-e,o=r+e,a=i+n,c=i-n;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,d=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=u*this.view.offsetX,o=s+u*this.view.width,a-=d*this.view.offsetY,c=a-d*this.view.height}this.projectionMatrix.makeOrthographic(s,o,a,c,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const kf=4,b8=[.125,.215,.35,.446,.526,.582],Zu=20,BA=new jte,w8=new kt;let zA=null,$A=0,HA=0;const Xu=(1+Math.sqrt(5))/2,nf=1/Xu,_8=[new le(1,1,1),new le(-1,1,1),new le(1,1,-1),new le(-1,1,-1),new le(0,Xu,nf),new le(0,Xu,-nf),new le(nf,0,Xu),new le(-nf,0,Xu),new le(Xu,nf,0),new le(-Xu,nf,0)];class S8{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,n=0,r=.1,i=100){zA=this._renderer.getRenderTarget(),$A=this._renderer.getActiveCubeFace(),HA=this._renderer.getActiveMipmapLevel(),this._setSize(256);const s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,r,i,s),n>0&&this._blur(s,0,0,n),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=A8(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=T8(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(zA,$A,HA),e.scissorTest=!1,Ib(e,0,0,e.width,e.height)}_fromTexture(e,n){e.mapping===op||e.mapping===ap?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),zA=this._renderer.getRenderTarget(),$A=this._renderer.getActiveCubeFace(),HA=this._renderer.getActiveMipmapLevel();const r=n||this._allocateTargets();return this._textureToCubeUV(e,r),this._applyPMREM(r),this._cleanup(r),r}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),n=4*this._cubeSize,r={magFilter:Ys,minFilter:Ys,generateMipmaps:!1,type:f0,format:Uo,colorSpace:Nl,depthBuffer:!1},i=E8(e,n,r);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==n){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=E8(e,n,r);const{_lodMax:s}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=MKe(s)),this._blurMaterial=RKe(s,e,n)}return i}_compileMaterial(e){const n=new Vo(this._lodPlanes[0],e);this._renderer.compile(n,BA)}_sceneToCubeUV(e,n,r,i){const a=new gs(90,1,n,r),c=[1,-1,1,1,1,1],u=[1,1,1,-1,-1,-1],d=this._renderer,h=d.autoClear,f=d.toneMapping;d.getClearColor(w8),d.toneMapping=Wc,d.autoClear=!1;const m=new Ete({name:"PMREM.Background",side:ts,depthWrite:!1,depthTest:!1}),v=new Vo(new tx,m);let p=!1;const g=e.background;g?g.isColor&&(m.color.copy(g),e.background=null,p=!0):(m.color.copy(w8),p=!0);for(let y=0;y<6;y++){const b=y%3;b===0?(a.up.set(0,c[y],0),a.lookAt(u[y],0,0)):b===1?(a.up.set(0,0,c[y]),a.lookAt(0,u[y],0)):(a.up.set(0,c[y],0),a.lookAt(0,0,u[y]));const x=this._cubeSize;Ib(i,b*x,y>2?x:0,x,x),d.setRenderTarget(i),p&&d.render(v,a),d.render(e,a)}v.geometry.dispose(),v.material.dispose(),d.toneMapping=f,d.autoClear=h,e.background=g}_textureToCubeUV(e,n){const r=this._renderer,i=e.mapping===op||e.mapping===ap;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=A8()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=T8());const s=i?this._cubemapMaterial:this._equirectMaterial,o=new Vo(this._lodPlanes[0],s),a=s.uniforms;a.envMap.value=e;const c=this._cubeSize;Ib(n,0,0,3*c,2*c),r.setRenderTarget(n),r.render(o,BA)}_applyPMREM(e){const n=this._renderer,r=n.autoClear;n.autoClear=!1;for(let i=1;i<this._lodPlanes.length;i++){const s=Math.sqrt(this._sigmas[i]*this._sigmas[i]-this._sigmas[i-1]*this._sigmas[i-1]),o=_8[(i-1)%_8.length];this._blur(e,i-1,i,s,o)}n.autoClear=r}_blur(e,n,r,i,s){const o=this._pingPongRenderTarget;this._halfBlur(e,o,n,r,i,"latitudinal",s),this._halfBlur(o,e,r,r,i,"longitudinal",s)}_halfBlur(e,n,r,i,s,o,a){const c=this._renderer,u=this._blurMaterial;o!=="latitudinal"&&o!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const d=3,h=new Vo(this._lodPlanes[i],u),f=u.uniforms,m=this._sizeLods[r]-1,v=isFinite(s)?Math.PI/(2*m):2*Math.PI/(2*Zu-1),p=s/v,g=isFinite(s)?1+Math.floor(d*p):Zu;g>Zu&&console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${g} samples when the maximum is set to ${Zu}`);const y=[];let b=0;for(let T=0;T<Zu;++T){const M=T/p,A=Math.exp(-M*M/2);y.push(A),T===0?b+=A:T<g&&(b+=2*A)}for(let T=0;T<y.length;T++)y[T]=y[T]/b;f.envMap.value=e.texture,f.samples.value=g,f.weights.value=y,f.latitudinal.value=o==="latitudinal",a&&(f.poleAxis.value=a);const{_lodMax:x}=this;f.dTheta.value=v,f.mipInt.value=x-r;const w=this._sizeLods[i],_=3*w*(i>x-kf?i-x+kf:0),S=4*(this._cubeSize-w);Ib(n,_,S,3*w,2*w),c.setRenderTarget(n),c.render(h,BA)}}function MKe(t){const e=[],n=[],r=[];let i=t;const s=t-kf+1+b8.length;for(let o=0;o<s;o++){const a=Math.pow(2,i);n.push(a);let c=1/a;o>t-kf?c=b8[o-t+kf-1]:o===0&&(c=0),r.push(c);const u=1/(a-2),d=-u,h=1+u,f=[d,d,h,d,h,h,d,d,h,h,d,h],m=6,v=6,p=3,g=2,y=1,b=new Float32Array(p*v*m),x=new Float32Array(g*v*m),w=new Float32Array(y*v*m);for(let S=0;S<m;S++){const T=S%3*2/3-1,M=S>2?0:-1,A=[T,M,0,T+2/3,M,0,T+2/3,M+1,0,T,M,0,T+2/3,M+1,0,T,M+1,0];b.set(A,p*v*S),x.set(f,g*v*S);const C=[S,S,S,S,S,S];w.set(C,y*v*S)}const _=new po;_.setAttribute("position",new As(b,p)),_.setAttribute("uv",new As(x,g)),_.setAttribute("faceIndex",new As(w,y)),e.push(_),i>kf&&i--}return{lodPlanes:e,sizeLods:n,sigmas:r}}function E8(t,e,n){const r=new ah(t,e,n);return r.texture.mapping=H2,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Ib(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function RKe(t,e,n){const r=new Float32Array(Zu),i=new le(0,1,0);return new iu({name:"SphericalGaussianBlur",defines:{n:Zu,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:eI(),fragmentShader:` 10374 10375 precision mediump float; 10376 precision mediump int; 10377 10378 varying vec3 vOutputDirection; 10379 10380 uniform sampler2D envMap; 10381 uniform int samples; 10382 uniform float weights[ n ]; 10383 uniform bool latitudinal; 10384 uniform float dTheta; 10385 uniform float mipInt; 10386 uniform vec3 poleAxis; 10387 10388 #define ENVMAP_TYPE_CUBE_UV 10389 #include <cube_uv_reflection_fragment> 10390 10391 vec3 getSample( float theta, vec3 axis ) { 10392 10393 float cosTheta = cos( theta ); 10394 // Rodrigues' axis-angle rotation 10395 vec3 sampleDirection = vOutputDirection * cosTheta 10396 + cross( axis, vOutputDirection ) * sin( theta ) 10397 + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); 10398 10399 return bilinearCubeUV( envMap, sampleDirection, mipInt ); 10400 10401 } 10402 10403 void main() { 10404 10405 vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); 10406 10407 if ( all( equal( axis, vec3( 0.0 ) ) ) ) { 10408 10409 axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); 10410 10411 } 10412 10413 axis = normalize( axis ); 10414 10415 gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); 10416 gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); 10417 10418 for ( int i = 1; i < n; i++ ) { 10419 10420 if ( i >= samples ) { 10421 10422 break; 10423 10424 } 10425 10426 float theta = dTheta * float( i ); 10427 gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); 10428 gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); 10429 10430 } 10431 10432 } 10433 `,blending:Vc,depthTest:!1,depthWrite:!1})}function T8(){return new iu({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:eI(),fragmentShader:` 10434 10435 precision mediump float; 10436 precision mediump int; 10437 10438 varying vec3 vOutputDirection; 10439 10440 uniform sampler2D envMap; 10441 10442 #include <common> 10443 10444 void main() { 10445 10446 vec3 outputDirection = normalize( vOutputDirection ); 10447 vec2 uv = equirectUv( outputDirection ); 10448
10449 gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); 10450 10451 } 10452 `,blending:Vc,depthTest:!1,depthWrite:!1})}function A8(){return new iu({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:eI(),fragmentShader:` 10453 10454 precision mediump float; 10455 precision mediump int; 10456 10457 uniform float flipEnvMap; 10458 10459 varying vec3 vOutputDirection; 10460 10461 uniform samplerCube envMap; 10462 10463 void main() { 10464 10465 gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); 10466 10467 } 10468 `,blending:Vc,depthTest:!1,depthWrite:!1})}function eI(){return` 10469 10470 precision mediump float; 10471 precision mediump int; 10472 10473 attribute float faceIndex; 10474 10475 varying vec3 vOutputDirection; 10476 10477 // RH coordinate system; PMREM face-indexing convention 10478 vec3 getDirection( vec2 uv, float face ) { 10479 10480 uv = 2.0 * uv - 1.0; 10481 10482 vec3 direction = vec3( uv, 1.0 ); 10483 10484 if ( face == 0.0 ) { 10485 10486 direction = direction.zyx; // ( 1, v, u ) pos x 10487 10488 } else if ( face == 1.0 ) { 10489 10490 direction = direction.xzy; 10491 direction.xz *= -1.0; // ( -u, 1, -v ) pos y 10492 10493 } else if ( face == 2.0 ) { 10494 10495 direction.x *= -1.0; // ( -u, v, 1 ) pos z 10496 10497 } else if ( face == 3.0 ) { 10498 10499 direction = direction.zyx; 10500 direction.xz *= -1.0; // ( -1, v, -u ) neg x 10501 10502 } else if ( face == 4.0 ) { 10503 10504 direction = direction.xzy; 10505 direction.xy *= -1.0; // ( -u, -1, v ) neg y 10506 10507 } else if ( face == 5.0 ) { 10508 10509 direction.z *= -1.0; // ( u, v, -1 ) neg z 10510 10511 } 10512 10513 return direction; 10514 10515 } 10516 10517 void main() { 10518 10519 vOutputDirection = getDirection( uv, faceIndex ); 10520 gl_Position = vec4( position, 1.0 ); 10521 10522 } 10523 `}function PKe(t){let e=new WeakMap,n=null;function r(a){if(a&&a.isTexture){const c=a.mapping,u=c===vj||c===yj,d=c===op||c===ap;if(u||d)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let h=e.get(a);return n===null&&(n=new S8(t)),h=u?n.fromEquirectangular(a,h):n.fromCubemap(a,h),e.set(a,h),h.texture}else{if(e.has(a))return e.get(a).texture;{const h=a.image;if(u&&h&&h.height>0||d&&h&&i(h)){n===null&&(n=new S8(t));const f=u?n.fromEquirectangular(a):n.fromCubemap(a);return e.set(a,f),a.addEventListener("dispose",s),f.texture}else return null}}}return a}function i(a){let c=0;const u=6;for(let d=0;d<u;d++)a[d]!==void 0&&c++;return c===u}function s(a){const c=a.target;c.removeEventListener("dispose",s);const u=e.get(c);u!==void 0&&(e.delete(c),u.dispose())}function o(){e=new WeakMap,n!==null&&(n.dispose(),n=null)}return{get:r,dispose:o}}function jKe(t){const e={};function n(r){if(e[r]!==void 0)return e[r];let i;switch(r){case"WEBGL_depth_texture":i=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=t.getExtension(r)}return e[r]=i,i}return{has:function(r){return n(r)!==null},init:function(r){r.isWebGL2?(n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance")):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(r){const i=n(r);return i===null&&console.warn("THREE.WebGLRenderer: "+r+" extension not supported."),i}}}function NKe(t,e,n,r){const i={},s=new WeakMap;function o(h){const f=h.target;f.index!==null&&e.remove(f.index);for(const v in f.attributes)e.remove(f.attributes[v]);for(const v in f.morphAttributes){const p=f.morphAttributes[v];for(let g=0,y=p.length;g<y;g++)e.remove(p[g])}f.removeEventListener("dispose",o),delete i[f.id];const m=s.get(f);m&&(e.remove(m),s.delete(f)),r.releaseStatesOfGeometry(f),f.isInstancedBufferGeometry===!0&&delete f._maxInstanceCount,n.memory.geometries--}function a(h,f){return i[f.id]===!0||(f.addEventListener("dispose",o),i[f.id]=!0,n.memory.geometries++),f}function c(h){const f=h.attributes;for(const v in f)e.update(f[v],t.ARRAY_BUFFER);const m=h.morphAttributes;for(const v in m){const p=m[v];for(let g=0,y=p.length;g<y;g++)e.update(p[g],t.ARRAY_BUFFER)}}function u(h){const f=[],m=h.index,v=h.attributes.position;let p=0;if(m!==null){const b=m.array;p=m.version;for(let x=0,w=b.length;x<w;x+=3){const _=b[x+0],S=b[x+1],T=b[x+2];f.push(_,S,S,T,T,_)}}else if(v!==void 0){const b=v.array;p=v.version;for(let x=0,w=b.length/3-1;x<w;
vendor: 4,819 bytes, line 10523
10523x+=3){const _=x+0,S=x+1,T=x+2;f.push(_,S,S,T,T,_)}}else return;const g=new(yte(f)?Ate:Tte)(f,1);g.version=p;const y=s.get(h);y&&e.remove(y),s.set(h,g)}function d(h){const f=s.get(h);if(f){const m=h.index;m!==null&&f.version<m.version&&u(h)}else u(h);return s.get(h)}return{get:a,update:c,getWireframeAttribute:d}}function kKe(t,e,n,r){const i=r.isWebGL2;let s;function o(m){s=m}let a,c;function u(m){a=m.type,c=m.bytesPerElement}function d(m,v){t.drawElements(s,v,a,m*c),n.update(v,s,1)}function h(m,v,p){if(p===0)return;let g,y;if(i)g=t,y="drawElementsInstanced";else if(g=e.get("ANGLE_instanced_arrays"),y="drawElementsInstancedANGLE",g===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}g[y](s,v,a,m*c,p),n.update(v,s,p)}function f(m,v,p){if(p===0)return;const g=e.get("WEBGL_multi_draw");if(g===null)for(let y=0;y<p;y++)this.render(m[y]/c,v[y]);else{g.multiDrawElementsWEBGL(s,v,0,a,m,0,p);let y=0;for(let b=0;b<p;b++)y+=v[b];n.update(y,s,1)}}this.setMode=o,this.setIndex=u,this.render=d,this.renderInstances=h,this.renderMultiDraw=f}function OKe(t){const e={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function r(s,o,a){switch(n.calls++,o){case t.TRIANGLES:n.triangles+=a*(s/3);break;case t.LINES:n.lines+=a*(s/2);break;case t.LINE_STRIP:n.lines+=a*(s-1);break;case t.LINE_LOOP:n.lines+=a*s;break;case t.POINTS:n.points+=a*s;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",o);break}}function i(){n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:e,render:n,programs:null,autoReset:!0,reset:i,update:r}}function IKe(t,e){return t[0]-e[0]}function LKe(t,e){return Math.abs(e[1])-Math.abs(t[1])}function DKe(t,e,n){const r={},i=new Float32Array(8),s=new WeakMap,o=new jn,a=[];for(let u=0;u<8;u++)a[u]=[u,0];function c(u,d,h){const f=u.morphTargetInfluences;if(e.isWebGL2===!0){const m=d.morphAttributes.position||d.morphAttributes.normal||d.morphAttributes.color,v=m!==void 0?m.length:0;let p=s.get(d);if(p===void 0||p.count!==v){let P=function(){j.dispose(),s.delete(d),d.removeEventListener("dispose",P)};p!==void 0&&p.texture.dispose();const b=d.morphAttributes.position!==void 0,x=d.morphAttributes.normal!==void 0,w=d.morphAttributes.color!==void 0,_=d.morphAttributes.position||[],S=d.morphAttributes.normal||[],T=d.morphAttributes.color||[];let M=0;b===!0&&(M=1),x===!0&&(M=2),w===!0&&(M=3);let A=d.attributes.position.count*M,C=1;A>e.maxTextureSize&&(C=Math.ceil(A/e.maxTextureSize),A=e.maxTextureSize);const R=new Float32Array(A*C*4*v),j=new wte(R,A,C,v);j.type=Cc,j.needsUpdate=!0;const k=M*4;for(let O=0;O<v;O++){const L=_[O],F=S[O],D=T[O],I=A*C*4*O;for(let N=0;N<L.count;N++){const G=N*k;b===!0&&(o.fromBufferAttribute(L,N),R[I+G+0]=o.x,R[I+G+1]=o.y,R[I+G+2]=o.z,R[I+G+3]=0),x===!0&&(o.fromBufferAttribute(F,N),R[I+G+4]=o.x,R[I+G+5]=o.y,R[I+G+6]=o.z,R[I+G+7]=0),w===!0&&(o.fromBufferAttribute(D,N),R[I+G+8]=o.x,R[I+G+9]=o.y,R[I+G+10]=o.z,R[I+G+11]=D.itemSize===4?o.w:1)}}p={count:v,texture:j,size:new Ht(A,C)},s.set(d,p),d.addEventListener("dispose",P)}let g=0;for(let b=0;b<f.length;b++)g+=f[b];const y=d.morphTargetsRelative?1:1-g;h.getUniforms().setValue(t,"morphTargetBaseInfluence",y),h.getUniforms().setValue(t,"morphTargetInfluences",f),h.getUniforms().setValue(t,"morphTargetsTexture",p.texture,n),h.getUniforms().setValue(t,"morphTargetsTextureSize",p.size)}else{const m=f===void 0?0:f.length;let v=r[d.id];if(v===void 0||v.length!==m){v=[];for(let x=0;x<m;x++)v[x]=[x,0];r[d.id]=v}for(let x=0;x<m;x++){const w=v[x];w[0]=x,w[1]=f[x]}v.sort(LKe);for(let x=0;x<8;x++)x<m&&v[x][1]?(a[x][0]=v[x][0],a[x][1]=v[x][1]):(a[x][0]=Number.MAX_SAFE_INTEGER,a[x][1]=0);a.sort(IKe);const p=d.morphAttributes.position,g=d.morphAttributes.normal;let y=0;for(let x=0;x<8;x++){const w=a[x],_=w[0],S=w[1];_!==Number.MAX_SAFE_INTEGER&&S?(p&&d.getAttribute("morphTarget"+x)!==p[_]&&d.setAttribute("morphTarget"+x,p[_]),g&&d.getAttribute("morphNormal"+x)!==g[_]&&d.setAttribute("morphNormal"+x,g[_]),i[x]=S,y+=S):(p&&d.hasAttribute("morphTarget"+x)===!0&&d.deleteAttribute("morphTarget"+x),g&&d.hasAttribute("morphNormal"+x)===!0&&d.deleteAttribute("morphNormal"+x),i[x]=0)}const b=d.morphTargetsRelative?1:1-y;h.getUniforms().setValue(t,"morphTargetBaseInfluence",b),h.getUniforms().setValue(t,"morphTargetInfluences",i)}}return{update:c}}function FKe(t,e,n,r){let i=new WeakMap;function s(c){const u=r.render.frame,d=c.geometry,h=e.get(c,d);if(i.get(h)!==u&&(e.update(h),i.set(h,u)),c.isInstancedMesh&&(c.hasEventListener("dispose",a)===!1&&c.addEventListener("dispose",a),i.get(c)!==u&&(n.update(c.instanceMatrix,t.ARRAY_BUFFER),c.instanceColor!==null&&n.update(c.instanceColor,t.ARRAY_BUFFER),i.set(c,u))),c.isSkinnedMesh){const f=c.skeleton;
vendor: 14,525 bytes, lines 10523-10536
10523i.get(f)!==u&&(f.update(),i.set(f,u))}return h}function o(){i=new WeakMap}function a(c){const u=c.target;u.removeEventListener("dispose",a),n.remove(u.instanceMatrix),u.instanceColor!==null&&n.remove(u.instanceColor)}return{update:s,dispose:o}}class Nte extends Ts{constructor(e,n,r,i,s,o,a,c,u,d){if(d=d!==void 0?d:Id,d!==Id&&d!==lp)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");r===void 0&&d===Id&&(r=Ac),r===void 0&&d===lp&&(r=Od),super(null,i,s,o,a,c,d,r,u),this.isDepthTexture=!0,this.image={width:e,height:n},this.magFilter=a!==void 0?a:_i,this.minFilter=c!==void 0?c:_i,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const n=super.toJSON(e);return this.compareFunction!==null&&(n.compareFunction=this.compareFunction),n}}const kte=new Ts,Ote=new Nte(1,1);Ote.compareFunction=vte;const Ite=new wte,Lte=new _qe,Dte=new Rte,C8=[],M8=[],R8=new Float32Array(16),P8=new Float32Array(9),j8=new Float32Array(4);function Wp(t,e,n){const r=t[0];if(r<=0||r>0)return t;const i=e*n;let s=C8[i];if(s===void 0&&(s=new Float32Array(i),C8[i]=s),e!==0){r.toArray(s,0);for(let o=1,a=0;o!==e;++o)a+=n,t[o].toArray(s,a)}return s}function yr(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function xr(t,e){for(let n=0,r=e.length;n<r;n++)t[n]=e[n]}function q2(t,e){let n=M8[e];n===void 0&&(n=new Int32Array(e),M8[e]=n);for(let r=0;r!==e;++r)n[r]=t.allocateTextureUnit();return n}function UKe(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function BKe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(yr(n,e))return;t.uniform2fv(this.addr,e),xr(n,e)}}function zKe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(e.r!==void 0)(n[0]!==e.r||n[1]!==e.g||n[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(yr(n,e))return;t.uniform3fv(this.addr,e),xr(n,e)}}function $Ke(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(yr(n,e))return;t.uniform4fv(this.addr,e),xr(n,e)}}function HKe(t,e){const n=this.cache,r=e.elements;if(r===void 0){if(yr(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),xr(n,e)}else{if(yr(n,r))return;j8.set(r),t.uniformMatrix2fv(this.addr,!1,j8),xr(n,r)}}function VKe(t,e){const n=this.cache,r=e.elements;if(r===void 0){if(yr(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),xr(n,e)}else{if(yr(n,r))return;P8.set(r),t.uniformMatrix3fv(this.addr,!1,P8),xr(n,r)}}function WKe(t,e){const n=this.cache,r=e.elements;if(r===void 0){if(yr(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),xr(n,e)}else{if(yr(n,r))return;R8.set(r),t.uniformMatrix4fv(this.addr,!1,R8),xr(n,r)}}function GKe(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function qKe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2i(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(yr(n,e))return;t.uniform2iv(this.addr,e),xr(n,e)}}function YKe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3i(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(yr(n,e))return;t.uniform3iv(this.addr,e),xr(n,e)}}function XKe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4i(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(yr(n,e))return;t.uniform4iv(this.addr,e),xr(n,e)}}function KKe(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function QKe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2ui(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(yr(n,e))return;t.uniform2uiv(this.addr,e),xr(n,e)}}function ZKe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3ui(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(yr(n,e))return;t.uniform3uiv(this.addr,e),xr(n,e)}}function JKe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4ui(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(yr(n,e))return;t.uniform4uiv(this.addr,e),xr(n,e)}}function eQe(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i);const s=this.type===t.SAMPLER_2D_SHADOW?Ote:kte;n.setTexture2D(e||s,i)}function tQe(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(e||Lte,i)}function nQe(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTextureCube(e||Dte,i)}function rQe(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(e||Ite,i)}function iQe(t){switch(t){case 5126:return UKe;case 35664:return BKe;case 35665:return zKe;case 35666:return $Ke;case 35674:return HKe;case 35675:return VKe;case 35676:return WKe;case 5124:case 35670:return GKe;case 35667:case 35671:return qKe;case 35668:case 35672:return YKe;case 35669:case 35673:return XKe;case 5125:return KKe;case 36294:return QKe;case 36295:return ZKe;case 36296:return JKe;case 35678:case 36198:case 36298:case 36306:case 35682:return eQe;case 35679:case 36299:case 36307:return tQe;case 35680:case 36300:case 36308:case 36293:return nQe;case 36289:case 36303:case 36311:case 36292:return rQe}}function sQe(t,e){t.uniform1fv(this.addr,e)}function oQe(t,e){const n=Wp(e,this.size,2);t.uniform2fv(this.addr,n)}function aQe(t,e){const n=Wp(e,this.size,3);t.uniform3fv(this.addr,n)}function lQe(t,e){const n=Wp(e,this.size,4);t.uniform4fv(this.addr,n)}function cQe(t,e){const n=Wp(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function uQe(t,e){const n=Wp(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function dQe(t,e){const n=Wp(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function hQe(t,e){t.uniform1iv(this.addr,e)}function fQe(t,e){t.uniform2iv(this.addr,e)}function mQe(t,e){t.uniform3iv(this.addr,e)}function pQe(t,e){t.uniform4iv(this.addr,e)}function gQe(t,e){t.uniform1uiv(this.addr,e)}function vQe(t,e){t.uniform2uiv(this.addr,e)}function yQe(t,e){t.uniform3uiv(this.addr,e)}function xQe(t,e){t.uniform4uiv(this.addr,e)}function bQe(t,e,n){const r=this.cache,i=e.length,s=q2(n,i);yr(r,s)||(t.uniform1iv(this.addr,s),xr(r,s));for(let o=0;o!==i;++o)n.setTexture2D(e[o]||kte,s[o])}function wQe(t,e,n){const r=this.cache,i=e.length,s=q2(n,i);yr(r,s)||(t.uniform1iv(this.addr,s),xr(r,s));for(let o=0;o!==i;++o)n.setTexture3D(e[o]||Lte,s[o])}function _Qe(t,e,n){const r=this.cache,i=e.length,s=q2(n,i);yr(r,s)||(t.uniform1iv(this.addr,s),xr(r,s));for(let o=0;o!==i;++o)n.setTextureCube(e[o]||Dte,s[o])}function SQe(t,e,n){const r=this.cache,i=e.length,s=q2(n,i);yr(r,s)||(t.uniform1iv(this.addr,s),xr(r,s));for(let o=0;o!==i;++o)n.setTexture2DArray(e[o]||Ite,s[o])}function EQe(t){switch(t){case 5126:return sQe;case 35664:return oQe;case 35665:return aQe;case 35666:return lQe;case 35674:return cQe;case 35675:return uQe;case 35676:return dQe;case 5124:case 35670:return hQe;case 35667:case 35671:return fQe;case 35668:case 35672:return mQe;case 35669:case 35673:return pQe;case 5125:return gQe;case 36294:return vQe;case 36295:return yQe;case 36296:return xQe;case 35678:case 36198:case 36298:case 36306:case 35682:return bQe;case 35679:case 36299:case 36307:return wQe;case 35680:case 36300:case 36308:case 36293:return _Qe;case 36289:case 36303:case 36311:case 36292:return SQe}}class TQe{constructor(e,n,r){this.id=e,this.addr=r,this.cache=[],this.type=n.type,this.setValue=iQe(n.type)}}class AQe{constructor(e,n,r){this.id=e,this.addr=r,this.cache=[],this.type=n.type,this.size=n.size,this.setValue=EQe(n.type)}}class CQe{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,n,r){const i=this.seq;for(let s=0,o=i.length;s!==o;++s){const a=i[s];a.setValue(e,n[a.id],r)}}}const VA=/(\w+)(\])?(\[|\.)?/g;function N8(t,e){t.seq.push(e),t.map[e.id]=e}function MQe(t,e,n){const r=t.name,i=r.length;for(VA.lastIndex=0;;){const s=VA.exec(r),o=VA.lastIndex;let a=s[1];const c=s[2]==="]",u=s[3];if(c&&(a=a|0),u===void 0||u==="["&&o+2===i){N8(n,u===void 0?new TQe(a,t,e):new AQe(a,t,e));break}else{let h=n.map[a];h===void 0&&(h=new CQe(a),N8(n,h)),n=h}}}class _w{constructor(e,n){this.seq=[],this.map={};const r=e.getProgramParameter(n,e.ACTIVE_UNIFORMS);for(let i=0;i<r;++i){const s=e.getActiveUniform(n,i),o=e.getUniformLocation(n,s.name);MQe(s,o,this)}}setValue(e,n,r,i){const s=this.map[n];s!==void 0&&s.setValue(e,r,i)}setOptional(e,n,r){const i=n[r];i!==void 0&&this.setValue(e,r,i)}static upload(e,n,r,i){for(let s=0,o=n.length;s!==o;++s){const a=n[s],c=r[a.id];c.needsUpdate!==!1&&a.setValue(e,c.value,i)}}static seqWithValue(e,n){const r=[];for(let i=0,s=e.length;i!==s;++i){const o=e[i];o.id in n&&r.push(o)}return r}}function k8(t,e,n){const r=t.createShader(e);return t.shaderSource(r,n),t.compileShader(r),r}const RQe=37297;let PQe=0;function jQe(t,e){const n=t.split(` 10524`),r=[],i=Math.max(e-6,0),s=Math.min(e+6,n.length);for(let o=i;o<s;o++){const a=o+1;r.push(`${a===e?">":" "} ${a}: ${n[o]}`)}return r.join(` 10525`)}function NQe(t){const e=un.getPrimaries(un.workingColorSpace),n=un.getPrimaries(t);let r;switch(e===n?r="":e===I_&&n===O_?r="LinearDisplayP3ToLinearSRGB":e===O_&&n===I_&&(r="LinearSRGBToLinearDisplayP3"),t){case Nl:case V2:return[r,"LinearTransferOETF"];case Dr:case K3:return[r,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),[r,"LinearTransferOETF"]}}function O8(t,e,n){const r=t.getShaderParameter(e,t.COMPILE_STATUS),i=t.getShaderInfoLog(e).trim();if(r&&i==="")return"";const s=/ERROR: 0:(\d+)/.exec(i);if(s){const o=parseInt(s[1]);return n.toUpperCase()+` 10526 10527`+i+` 10528 10529`+jQe(t.getShaderSource(e),o)}else return i}function kQe(t,e){const n=NQe(e);return`vec4 ${t}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function OQe(t,e){let n;switch(e){case jGe:n="Linear";break;case NGe:n="Reinhard";break;case kGe:n="OptimizedCineon";break;case OGe:n="ACESFilmic";break;case LGe:n="AgX";break;case IGe:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function IQe(t){return[t.extensionDerivatives||t.envMapCubeUVHeight||t.bumpMap||t.normalMapTangentSpace||t.clearcoatNormalMap||t.flatShading||t.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Of).join(` 10530`)}function LQe(t){return[t.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":""].filter(Of).join(` 10531`)}function DQe(t){const e=[];for(const n in t){const r=t[n];r!==!1&&e.push("#define "+n+" "+r)}return e.join(` 10532`)}function FQe(t,e){const n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let i=0;i<r;i++){const s=t.getActiveAttrib(e,i),o=s.name;let a=1;s.type===t.FLOAT_MAT2&&(a=2),s.type===t.FLOAT_MAT3&&(a=3),s.type===t.FLOAT_MAT4&&(a=4),n[o]={type:s.type,location:t.getAttribLocation(e,o),locationSize:a}}return n}function Of(t){return t!==""}function I8(t,e){const n=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function L8(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const UQe=/^[ \t]*#include +<([\w\d./]+)>/gm;function Sj(t){return t.replace(UQe,zQe)}const BQe=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function zQe(t,e){let n=Ct[e];if(n===void 0){const r=BQe.get(e);if(r!==void 0)n=Ct[r],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,r);else throw new Error("Can not resolve #include <"+e+">")}return Sj(n)}const $Qe=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function D8(t){return t.replace($Qe,HQe)}function HQe(t,e,n,r){let i="";for(let s=parseInt(e);s<parseInt(n);s++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+s+" ]").replace(/UNROLLED_LOOP_INDEX/g,s);return i}function F8(t){let e="precision "+t.precision+` float; 10533precision `+t.precision+" int;";return t.precision==="highp"?e+=` 10534#define HIGH_PRECISION`:t.precision==="mediump"?e+=` 10535#define MEDIUM_PRECISION`:t.precision==="lowp"&&(e+=` 10536#define LOW_PRECISION`),e}function VQe(t){let e="SHADOWMAP_TYPE_BASIC";return t.shadowMapType===ote?e="SHADOWMAP_TYPE_PCF":t.shadowMapType===sGe?e="SHADOWMAP_TYPE_PCF_SOFT":t.shadowMapType===Ka&&(e="SHADOWMAP_TYPE_VSM"),e}function WQe(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case op:case ap:e="ENVMAP_TYPE_CUBE";break;case H2:e="ENVMAP_TYPE_CUBE_UV";break}return e}function GQe(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case ap:e="ENVMAP_MODE_REFRACTION";break}return e}function qQe(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case Y3:e="ENVMAP_BLENDING_MULTIPLY";break;case RGe:e="ENVMAP_BLENDING_MIX";break;case PGe:e="ENVMAP_BLENDING_ADD";break}return e}function YQe(t){const e=t.envMapCubeUVHeight;if(e===null)return null;const n=Math.log2(e)-2,r=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,n),7*16)),texelHeight:r,max
vendor: 6,887 bytes, lines 10536-10543
10536Mip:n}}function XQe(t,e,n,r){const i=t.getContext(),s=n.defines;let o=n.vertexShader,a=n.fragmentShader;const c=VQe(n),u=WQe(n),d=GQe(n),h=qQe(n),f=YQe(n),m=n.isWebGL2?"":IQe(n),v=LQe(n),p=DQe(s),g=i.createProgram();let y,b,x=n.glslVersion?"#version "+n.glslVersion+` 10537`:"";n.isRawShaderMaterial?(y=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,p].filter(Of).join(` 10538`),y.length>0&&(y+=` 10539`),b=[m,"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,p].filter(Of).join(` 10540`),b.length>0&&(b+=` 10541`)):(y=[F8(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,p,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` 10542`].filter(Of).join(` 10543`),b=[m,F8(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,p,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",n.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.max
vendor: 26,161 bytes, lines 10543-10560
10543Mip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Wc?"#define TONE_MAPPING":"",n.toneMapping!==Wc?Ct.tonemapping_pars_fragment:"",n.toneMapping!==Wc?OQe("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Ct.colorspace_pars_fragment,kQe("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",` 10544`].filter(Of).join(` 10545`)),o=Sj(o),o=I8(o,n),o=L8(o,n),a=Sj(a),a=I8(a,n),a=L8(a,n),o=D8(o),a=D8(a),n.isWebGL2&&n.isRawShaderMaterial!==!0&&(x=`#version 300 es 10546`,y=[v,"precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(` 10547`)+` 10548`+y,b=["precision mediump sampler2DArray;","#define varying in",n.glslVersion===n8?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===n8?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` 10549`)+` 10550`+b);const w=x+y+o,_=x+b+a,S=k8(i,i.VERTEX_SHADER,w),T=k8(i,i.FRAGMENT_SHADER,_);i.attachShader(g,S),i.attachShader(g,T),n.index0AttributeName!==void 0?i.bindAttribLocation(g,0,n.index0AttributeName):n.morphTargets===!0&&i.bindAttribLocation(g,0,"position"),i.linkProgram(g);function M(j){if(t.debug.checkShaderErrors){const k=i.getProgramInfoLog(g).trim(),P=i.getShaderInfoLog(S).trim(),O=i.getShaderInfoLog(T).trim();let L=!0,F=!0;if(i.getProgramParameter(g,i.LINK_STATUS)===!1)if(L=!1,typeof t.debug.onShaderError=="function")t.debug.onShaderError(i,g,S,T);else{const D=O8(i,S,"vertex"),I=O8(i,T,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(g,i.VALIDATE_STATUS)+` 10551 10552Program Info Log: `+k+` 10553`+D+` 10554`+I)}else k!==""?console.warn("THREE.WebGLProgram: Program Info Log:",k):(P===""||O==="")&&(F=!1);F&&(j.diagnostics={runnable:L,programLog:k,vertexShader:{log:P,prefix:y},fragmentShader:{log:O,prefix:b}})}i.deleteShader(S),i.deleteShader(T),A=new _w(i,g),C=FQe(i,g)}let A;this.getUniforms=function(){return A===void 0&&M(this),A};let C;this.getAttributes=function(){return C===void 0&&M(this),C};let R=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return R===!1&&(R=i.getProgramParameter(g,RQe)),R},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(g),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=PQe++,this.cacheKey=e,this.usedTimes=1,this.program=g,this.vertexShader=S,this.fragmentShader=T,this}let KQe=0;class QQe{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(n),s=this._getShaderStage(r),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(s)===!1&&(o.add(s),s.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const r of n)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let r=n.get(e);return r===void 0&&(r=new Set,n.set(e,r)),r}_getShaderStage(e){const n=this.shaderCache;let r=n.get(e);return r===void 0&&(r=new ZQe(e),n.set(e,r)),r}}class ZQe{constructor(e){this.id=KQe++,this.code=e,this.usedTimes=0}}function JQe(t,e,n,r,i,s,o){const a=new _te,c=new QQe,u=[],d=i.isWebGL2,h=i.logarithmicDepthBuffer,f=i.vertexTextures;let m=i.precision;const v={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function p(A){return A===0?"uv":`uv${A}`}function g(A,C,R,j,k){const P=j.fog,O=k.geometry,L=A.isMeshStandardMaterial?j.environment:null,F=(A.isMeshStandardMaterial?n:e).get(A.envMap||L),D=F&&F.mapping===H2?F.image.height:null,I=v[A.type];A.precision!==null&&(m=i.getMaxPrecision(A.precision),m!==A.precision&&console.warn("THREE.WebGLProgram.getParameters:",A.precision,"not supported, using",m,"instead."));const N=O.morphAttributes.position||O.morphAttributes.normal||O.morphAttributes.color,G=N!==void 0?N.length:0;let q=0;O.morphAttributes.position!==void 0&&(q=1),O.morphAttributes.normal!==void 0&&(q=2),O.morphAttributes.color!==void 0&&(q=3);let W,Y,te,Q;if(I){const Fe=da[I];W=Fe.vertexShader,Y=Fe.fragmentShader}else W=A.vertexShader,Y=A.fragmentShader,c.update(A),te=c.getVertexShaderID(A),Q=c.getFragmentShaderID(A);const X=t.getRenderTarget(),ae=k.isInstancedMesh===!0,J=k.isBatchedMesh===!0,ue=!!A.map,de=!!A.matcap,H=!!F,_e=!!A.aoMap,he=!!A.lightMap,xe=!!A.bumpMap,we=!!A.normalMap,ne=!!A.displacementMap,Pe=!!A.emissiveMap,$=!!A.metalnessMap,B=!!A.roughnessMap,re=A.anisotropy>0,pe=A.clearcoat>0,ge=A.iridescence>0,ye=A.sheen>0,je=A.transmission>0,be=re&&!!A.anisotropyMap,Ae=pe&&!!A.clearcoatMap,Qe=pe&&!!A.clearcoatNormalMap,at=pe&&!!A.clearcoatRoughnessMap,oe=ge&&!!A.iridescenceMap,rt=ge&&!!A.iridescenceThicknessMap,qe=ye&&!!A.sheenColorMap,We=ye&&!!A.sheenRoughnessMap,ke=!!A.specularMap,Oe=!!A.specularColorMap,it=!!A.specularIntensityMap,vt=je&&!!A.transmissionMap,Dt=je&&!!A.thicknessMap,Ie=!!A.gradientMap,Ce=!!A.alphaMap,K=A.alphaTest>0,Re=!!A.alphaHash,Ee=!!A.extensions,lt=!!O.attributes.uv1,Se=!!O.attributes.uv2,Ne=!!O.attributes.uv3;let st=Wc;return A.toneMapped&&(X===null||X.isXRRenderTarget===!0)&&(st=t.toneMapping),{isWebGL2:d,shaderID:I,shaderType:A.type,shaderName:A.name,vertexShader:W,fragmentShader:Y,defines:A.defines,customVertexShaderID:te,customFragmentShaderID:Q,isRawShaderMaterial:A.isRawShaderMaterial===!0,glslVersion:A.glslVersion,precision:m,batching:J,instancing:ae,instancingColor:ae&&k.instanceColor!==null,supportsVertexTextures:f,outputColorSpace:X===null?t.outputColorSpace:X.isXRRenderTarget===!0?X.texture.colorSpace:Nl,map:ue,matcap:de,envMap:H,envMapMode:H&&F.mapping,envMapCubeUVHeight:D,aoMap:_e,lightMap:he,bumpMap:xe,normalMap:we,displacementMap:f&&ne,emissiveMap:Pe,normalMapObjectSpace:we&&A.normalMapType===YGe,normalMapTangentSpace:we&&A.normalMapType===gte,metalnessMap:$,roughnessMap:B,anisotropy:re,anisotropyMap:be,clearcoat:pe,clearcoatMap:Ae,clearcoatNormalMap:Qe,clearcoatRoughnessMap:at,iridescence:ge,iridescenceMap:oe,iridescenceThicknessMap:rt,sheen:ye,sheenColorMap:qe,sheenRoughnessMap:We,specularMap:ke,specularColorMap:Oe,specularIntensityMap:it,transmission:je,transmissionMap:vt,thicknessMap:Dt,gradientMap:Ie,opaque:A.transparent===!1&&A.blending===nm,alphaMap:Ce,alphaTest:K,alphaHash:Re,combine:A.combine,mapUv:ue&&p(A.map.channel),aoMapUv:_e&&p(A.aoMap.channel),lightMapUv:he&&p(A.lightMap.channel),bumpMapUv:xe&&p(A.bumpMap.channel),normalMapUv:we&&p(A.normalMap.channel),displacementMapUv:ne&&p(A.displacementMap.channel),emissiveMapUv:Pe&&p(A.emissiveMap.channel),metalnessMapUv:$&&p(A.metalnessMap.channel),roughnessMapUv:B&&p(A.roughnessMap.channel),anisotropyMapUv:be&&p(A.anisotropyMap.channel),clearcoatMapUv:Ae&&p(A.clearcoatMap.channel),clearcoatNormalMapUv:Qe&&p(A.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:at&&p(A.clearcoatRoughnessMap.channel),iridescenceMapUv:oe&&p(A.iridescenceMap.channel),iridescenceThicknessMapUv:rt&&p(A.iridescenceThicknessMap.channel),sheenColorMapUv:qe&&p(A.sheenColorMap.channel),sheenRoughnessMapUv:We&&p(A.sheenRoughnessMap.channel),specularMapUv:ke&&p(A.specularMap.channel),specularColorMapUv:Oe&&p(A.specularColorMap.channel),specularIntensityMapUv:it&&p(A.specularIntensityMap.channel),transmissionMapUv:vt&&p(A.transmissionMap.channel),thicknessMapUv:Dt&&p(A.thicknessMap.channel),alphaMapUv:Ce&&p(A.alphaMap.channel),vertexTangents:!!O.attributes.tangent&&(we||re),vertexColors:A.vertexColors,vertexAlphas:A.vertexColors===!0&&!!O.attributes.color&&O.attributes.color.itemSize===4,vertexUv1s:lt,vertexUv2s:Se,vertexUv3s:Ne,pointsUvs:k.isPoints===!0&&!!O.attributes.uv&&(ue||Ce),fog:!!P,useFog:A.fog===!0,fogExp2:P&&P.isFogExp2,flatShading:A.flatShading===!0,sizeAttenuation:A.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:k.isSkinnedMesh===!0,morphTargets:O.morphAttributes.position!==void 0,morphNormals:O.morphAttributes.normal!==void 0,morphColors:O.morphAttributes.color!==void 0,morphTargetsCount:G,morphTextureStride:q,numDirLights:C.directional.length,numPointLights:C.point.length,numSpotLights:C.spot.length,numSpotLightMaps:C.spotLightMap.length,numRectAreaLights:C.rectArea.length,numHemiLights:C.hemi.length,numDirLightShadows:C.directionalShadowMap.length,numPointLightShadows:C.pointShadowMap.length,numSpotLightShadows:C.spotShadowMap.length,numSpotLightShadowsWithMaps:C.numSpotLightShadowsWithMaps,numLightProbes:C.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:A.dithering,shadowMapEnabled:t.shadowMap.enabled&&R.length>0,shadowMapType:t.shadowMap.type,toneMapping:st,useLegacyLights:t._useLegacyLights,decodeVideoTexture:ue&&A.map.isVideoTexture===!0&&un.getTransfer(A.map.colorSpace)===Sn,premultipliedAlpha:A.premultipliedAlpha,doubleSided:A.side===ol,flipSided:A.side===ts,useDepthPacking:A.depthPacking>=0,depthPacking:A.depthPacking||0,index0AttributeName:A.index0AttributeName,extensionDerivatives:Ee&&A.extensions.derivatives===!0,extensionFragDepth:Ee&&A.extensions.fragDepth===!0,extensionDrawBuffers:Ee&&A.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ee&&A.extensions.shaderTextureLOD===!0,extensionClipCullDistance:Ee&&A.extensions.clipCullDistance&&r.has("WEBGL_clip_cull_distance"),rendererExtensionFragDepth:d||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:A.customProgramCacheKey()}}function y(A){const C=[];if(A.shaderID?C.push(A.shaderID):(C.push(A.customVertexShaderID),C.push(A.customFragmentShaderID)),A.defines!==void 0)for(const R in A.defines)C.push(R),C.push(A.defines[R]);return A.isRawShaderMaterial===!1&&(b(C,A),x(C,A),C.push(t.outputColorSpace)),C.push(A.customProgramCacheKey),C.join()}function b(A,C){A.push(C.precision),A.push(C.outputColorSpace),A.push(C.envMapMode),A.push(C.envMapCubeUVHeight),A.push(C.mapUv),A.push(C.alphaMapUv),A.push(C.lightMapUv),A.push(C.aoMapUv),A.push(C.bumpMapUv),A.push(C.normalMapUv),A.push(C.displacementMapUv),A.push(C.emissiveMapUv),A.push(C.metalnessMapUv),A.push(C.roughnessMapUv),A.push(C.anisotropyMapUv),A.push(C.clearcoatMapUv),A.push(C.clearcoatNormalMapUv),A.push(C.clearcoatRoughnessMapUv),A.push(C.iridescenceMapUv),A.push(C.iridescenceThicknessMapUv),A.push(C.sheenColorMapUv),A.push(C.sheenRoughnessMapUv),A.push(C.specularMapUv),A.push(C.specularColorMapUv),A.push(C.specularIntensityMapUv),A.push(C.transmissionMapUv),A.push(C.thicknessMapUv),A.push(C.combine),A.push(C.fogExp2),A.push(C.sizeAttenuation),A.push(C.morphTargetsCount),A.push(C.morphAttributeCount),A.push(C.numDirLights),A.push(C.numPointLights),A.push(C.numSpotLights),A.push(C.numSpotLightMaps),A.push(C.numHemiLights),A.push(C.numRectAreaLights),A.push(C.numDirLightShadows),A.push(C.numPointLightShadows),A.push(C.numSpotLightShadows),A.push(C.numSpotLightShadowsWithMaps),A.push(C.numLightProbes),A.push(C.shadowMapType),A.push(C.toneMapping),A.push(C.numClippingPlanes),A.push(C.numClipIntersection),A.push(C.depthPacking)}function x(A,C){a.disableAll(),C.isWebGL2&&a.enable(0),C.supportsVertexTextures&&a.enable(1),C.instancing&&a.enable(2),C.instancingColor&&a.enable(3),C.matcap&&a.enable(4),C.envMap&&a.enable(5),C.normalMapObjectSpace&&a.enable(6),C.normalMapTangentSpace&&a.enable(7),C.clearcoat&&a.enable(8),C.iridescence&&a.enable(9),C.alphaTest&&a.enable(10),C.vertexColors&&a.enable(11),C.vertexAlphas&&a.enable(12),C.vertexUv1s&&a.enable(13),C.vertexUv2s&&a.enable(14),C.vertexUv3s&&a.enable(15),C.vertexTangents&&a.enable(16),C.anisotropy&&a.enable(17),C.alphaHash&&a.enable(18),C.batching&&a.enable(19),A.push(a.mask),a.disableAll(),C.fog&&a.enable(0),C.useFog&&a.enable(1),C.flatShading&&a.enable(2),C.logarithmicDepthBuffer&&a.enable(3),C.skinning&&a.enable(4),C.morphTargets&&a.enable(5),C.morphNormals&&a.enable(6),C.morphColors&&a.enable(7),C.premultipliedAlpha&&a.enable(8),C.shadowMapEnabled&&a.enable(9),C.useLegacyLights&&a.enable(10),C.doubleSided&&a.enable(11),C.flipSided&&a.enable(12),C.useDepthPacking&&a.enable(13),C.dithering&&a.enable(14),C.transmission&&a.enable(15),C.sheen&&a.enable(16),C.opaque&&a.enable(17),C.pointsUvs&&a.enable(18),C.decodeVideoTexture&&a.enable(19),A.push(a.mask)}function w(A){const C=v[A.type];let R;if(C){const j=da[C];R=Iqe.clone(j.uniforms)}else R=A.uniforms;return R}function _(A,C){let R;for(let j=0,k=u.length;j<k;j++){const P=u[j];if(P.cacheKey===C){R=P,++R.usedTimes;break}}return R===void 0&&(R=new XQe(t,C,A,s),u.push(R)),R}function S(A){if(--A.usedTimes===0){const C=u.indexOf(A);u[C]=u[u.length-1],u.pop(),A.destroy()}}function T(A){c.remove(A)}function M(){c.dispose()}return{getParameters:g,getProgramCacheKey:y,getUniforms:w,acquireProgram:_,releaseProgram:S,releaseShaderCache:T,programs:u,dispose:M}}function eZe(){let t=new WeakMap;function e(s){let o=t.get(s);return o===void 0&&(o={},t.set(s,o)),o}function n(s){t.delete(s)}function r(s,o,a){t.get(s)[o]=a}function i(){t=new WeakMap}return{get:e,remove:n,update:r,dispose:i}}function tZe(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function U8(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function B8(){const t=[];let e=0;const n=[],r=[],i=[];function s(){e=0,n.length=0,r.length=0,i.length=0}function o(h,f,m,v,p,g){let y=t[e];return y===void 0?(y={id:h.id,object:h,geometry:f,material:m,groupOrder:v,renderOrder:h.renderOrder,z:p,group:g},t[e]=y):(y.id=h.id,y.object=h,y.geometry=f,y.material=m,y.groupOrder=v,y.renderOrder=h.renderOrder,y.z=p,y.group=g),e++,y}function a(h,f,m,v,p,g){const y=o(h,f,m,v,p,g);m.transmission>0?r.push(y):m.transparent===!0?i.push(y):n.push(y)}function c(h,f,m,v,p,g){const y=o(h,f,m,v,p,g);m.transmission>0?r.unshift(y):m.transparent===!0?i.unshift(y):n.unshift(y)}function u(h,f){n.length>1&&n.sort(h||tZe),r.length>1&&r.sort(f||U8),i.length>1&&i.sort(f||U8)}function d(){for(let h=e,f=t.length;h<f;h++){const m=t[h];if(m.id===null)break;m.id=null,m.object=null,m.geometry=null,m.material=null,m.group=null}}return{opaque:n,transmissive:r,transparent:i,init:s,push:a,unshift:c,finish:d,sort:u}}function nZe(){let t=new WeakMap;function e(r,i){const s=t.get(r);let o;return s===void 0?(o=new B8,t.set(r,[o])):i>=s.length?(o=new B8,s.push(o)):o=s[i],o}function n(){t=new WeakMap}return{get:e,dispose:n}}function rZe(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new le,color:new kt};break;case"SpotLight":n={position:new le,direction:new le,color:new kt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new le,color:new kt,distance:0,decay:0};break;case"HemisphereLight":n={direction:new le,skyColor:new kt,groundColor:new kt};break;case"RectAreaLight":n={color:new kt,position:new le,halfWidth:new le,halfHeight:new le};break}return t[e.id]=n,n}}}function iZe(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ht};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ht};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ht,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let sZe=0;function oZe(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function aZe(t,e){const n=new rZe,r=iZe(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let d=0;d<9;d++)i.probe.push(new le);const s=new le,o=new qn,a=new qn;function c(d,h){let f=0,m=0,v=0;for(let j=0;j<9;j++)i.probe[j].set(0,0,0);let p=0,g=0,y=0,b=0,x=0,w=0,_=0,S=0,T=0,M=0,A=0;d.sort(oZe);const C=h===!0?Math.PI:1;for(let j=0,k=d.length;j<k;j++){const P=d[j],O=P.color,L=P.intensity,F=P.distance,D=P.shadow&&P.shadow.map?P.shadow.map.texture:null;if(P.isAmbientLight)f+=O.r*L*C,m+=O.g*L*C,v+=O.b*L*C;else if(P.isLightProbe){for(let I=0;I<9;I++)i.probe[I].addScaledVector(P.sh.coefficients[I],L);A++}else if(P.isDirectionalLight){const I=n.get(P);if(I.color.copy(P.color).multiplyScalar(P.intensity*C),P.castShadow){const N=P.shadow,G=r.get(P);G.shadowBias=N.bias,G.shadowNormalBias=N.normalBias,G.shadowRadius=N.radius,G.shadowMapSize=N.mapSize,i.directionalShadow[p]=G,i.directionalShadowMap[p]=D,i.directionalShadowMatrix[p]=P.shadow.matrix,w++}i.directional[p]=I,p++}else if(P.isSpotLight){const I=n.get(P);I.position.setFromMatrixPosition(P.matrixWorld),I.color.copy(O).multiplyScalar(L*C),I.distance=F,I.coneCos=Math.cos(P.angle),I.penumbraCos=Math.cos(P.angle*(1-P.penumbra)),I.decay=P.decay,i.spot[y]=I;const N=P.shadow;if(P.map&&(i.spotLightMap[T]=P.map,T++,N.updateMatrices(P),P.castShadow&&M++),i.spotLightMatrix[y]=N.matrix,P.castShadow){const G=r.get(P);G.shadowBias=N.bias,G.shadowNormalBias=N.normalBias,G.shadowRadius=N.radius,G.shadowMapSize=N.mapSize,i.spotShadow[y]=G,i.spotShadowMap[y]=D,S++}y++}else if(P.isRectAreaLight){const I=n.get(P);I.color.copy(O).multiplyScalar(L),I.halfWidth.set(P.width*.5,0,0),I.halfHeight.set(0,P.height*.5,0),i.rectArea[b]=I,b++}else if(P.isPointLight){const I=n.get(P);if(I.color.copy(P.color).multiplyScalar(P.intensity*C),I.distance=P.distance,I.decay=P.decay,P.castShadow){const N=P.shadow,G=r.get(P);G.shadowBias=N.bias,G.shadowNormalBias=N.normalBias,G.shadowRadius=N.radius,G.shadowMapSize=N.mapSize,G.shadowCameraNear=N.camera.near,G.shadowCameraFar=N.camera.far,i.pointShadow[g]=G,i.pointShadowMap[g]=D,i.pointShadowMatrix[g]=P.shadow.matrix,_++}i.point[g]=I,g++}else if(P.isHemisphereLight){const I=n.get(P);I.skyColor.copy(P.color).multiplyScalar(L*C),I.groundColor.copy(P.groundColor).multiplyScalar(L*C),i.hemi[x]=I,x++}}b>0&&(e.isWebGL2?t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=ze.LTC_FLOAT_1,i.rectAreaLTC2=ze.LTC_FLOAT_2):(i.rectAreaLTC1=ze.LTC_HALF_1,i.rectAreaLTC2=ze.LTC_HALF_2):t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=ze.LTC_FLOAT_1,i.rectAreaLTC2=ze.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(i.rectAreaLTC1=ze.LTC_HALF_1,i.rectAreaLTC2=ze.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=f,i.ambient[1]=m,i.ambient[2]=v;const R=i.hash;(R.directionalLength!==p||R.pointLength!==g||R.spotLength!==y||R.rectAreaLength!==b||R.hemiLength!==x||R.numDirectionalShadows!==w||R.numPointShadows!==_||R.numSpotShadows!==S||R.numSpotMaps!==T||R.numLightProbes!==A)&&(i.directional.length=p,i.spot.length=y,i.rectArea.length=b,i.point.length=g,i.hemi.length=x,i.directionalShadow.length=w,i.directionalShadowMap.length=w,i.pointShadow.length=_,i.pointShadowMap.length=_,i.spotShadow.length=S,i.spotShadowMap.length=S,i.directionalShadowMatrix.length=w,i.pointShadowMatrix.length=_,i.spotLightMatrix.length=S+T-M,i.spotLightMap.length=T,i.numSpotLightShadowsWithMaps=M,i.numLightProbes=A,R.directionalLength=p,R.pointLength=g,R.spotLength=y,R.rectAreaLength=b,R.hemiLength=x,R.numDirectionalShadows=w,R.numPointShadows=_,R.numSpotShadows=S,R.numSpotMaps=T,R.numLightProbes=A,i.version=sZe++)}function u(d,h){let f=0,m=0,v=0,p=0,g=0;const y=h.matrixWorldInverse;for(let b=0,x=d.length;b<x;b++){const w=d[b];if(w.isDirectionalLight){const _=i.directional[f];_.direction.setFromMatrixPosition(w.matrixWorld),s.setFromMatrixPosition(w.target.matrixWorld),_.direction.sub(s),_.direction.transformDirection(y),f++}else if(w.isSpotLight){const _=i.spot[v];_.position.setFromMatrixPosition(w.matrixWorld),_.position.applyMatrix4(y),_.direction.setFromMatrixPosition(w.matrixWorld),s.setFromMatrixPosition(w.target.matrixWorld),_.direction.sub(s),_.direction.transformDirection(y),v++}else if(w.isRectAreaLight){const _=i.rectArea[p];_.position.setFromMatrixPosition(w.matrixWorld),_.position.applyMatrix4(y),a.identity(),o.copy(w.matrixWorld),o.premultiply(y),a.extractRotation(o),_.halfWidth.set(w.width*.5,0,0),_.halfHeight.set(0,w.height*.5,0),_.halfWidth.applyMatrix4(a),_.halfHeight.applyMatrix4(a),p++}else if(w.isPointLight){const _=i.point[m];_.position.setFromMatrixPosition(w.matrixWorld),_.position.applyMatrix4(y),m++}else if(w.isHemisphereLight){const _=i.hemi[g];_.direction.setFromMatrixPosition(w.matrixWorld),_.direction.transformDirection(y),g++}}}return{setup:c,setupView:u,state:i}}function z8(t,e){const n=new aZe(t,e),r=[],i=[];function s(){r.length=0,i.length=0}function o(h){r.push(h)}function a(h){i.push(h)}function c(h){n.setup(r,h)}function u(h){n.setupView(r,h)}return{init:s,state:{lightsArray:r,shadowsArray:i,lights:n},setupLights:c,setupLightsView:u,pushLight:o,pushShadow:a}}function lZe(t,e){let n=new WeakMap;function r(s,o=0){const a=n.get(s);let c;return a===void 0?(c=new z8(t,e),n.set(s,[c])):o>=a.length?(c=new z8(t,e),a.push(c)):c=a[o],c}function i(){n=new WeakMap}return{get:r,dispose:i}}class cZe extends wh{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=GGe,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class uZe extends wh{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const dZe=`void main() { 10555 gl_Position = vec4( position, 1.0 ); 10556}`,hZe=`uniform sampler2D shadow_pass; 10557uniform vec2 resolution; 10558uniform float radius; 10559#include <packing> 10560void main() {
10561 const float samples = float( VSM_SAMPLES ); 10562 float mean = 0.0; 10563 float squared_mean = 0.0; 10564 float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); 10565 float uvStart = samples <= 1.0 ? 0.0 : - 1.0; 10566 for ( float i = 0.0; i < samples; i ++ ) { 10567 float uvOffset = uvStart + i * uvStride; 10568 #ifdef HORIZONTAL_PASS 10569 vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); 10570 mean += distribution.x; 10571 squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; 10572 #else 10573 float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); 10574 mean += depth; 10575 squared_mean += depth * depth; 10576 #endif 10577 } 10578 mean = mean / samples; 10579 squared_mean = squared_mean / samples; 10580 float std_dev = sqrt( squared_mean - mean * mean ); 10581 gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); 10582}`;function fZe(t,e,n){let r=new J3;const i=new Ht,s=new Ht,o=new jn,a=new cZe({depthPacking:qGe}),c=new uZe,u={},d=n.maxTextureSize,h={[ru]:ts,[ts]:ru,[ol]:ol},f=new iu({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Ht},radius:{value:4}},vertexShader:dZe,fragmentShader:hZe}),m=f.clone();m.defines.HORIZONTAL_PASS=1;const v=new po;v.setAttribute("position",new As(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const p=new Vo(v,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=ote;let y=this.type;this.render=function(S,T,M){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||S.length===0)return;const A=t.getRenderTarget(),C=t.getActiveCubeFace(),R=t.getActiveMipmapLevel(),j=t.state;j.setBlending(Vc),j.buffers.color.setClear(1,1,1,1),j.buffers.depth.setTest(!0),j.setScissorTest(!1);const k=y!==Ka&&this.type===Ka,P=y===Ka&&this.type!==Ka;for(let O=0,L=S.length;O<L;O++){const F=S[O],D=F.shadow;if(D===void 0){console.warn("THREE.WebGLShadowMap:",F,"has no shadow.");continue}if(D.autoUpdate===!1&&D.needsUpdate===!1)continue;i.copy(D.mapSize);const I=D.getFrameExtents();if(i.multiply(I),s.copy(D.mapSize),(i.x>d||i.y>d)&&(i.x>d&&(s.x=Math.floor(d/I.x),i.x=s.x*I.x,D.mapSize.x=s.x),i.y>d&&(s.y=Math.floor(d/I.y),i.y=s.y*I.y,D.mapSize.y=s.y)),D.map===null||k===!0||P===!0){const G=this.type!==Ka?{minFilter:_i,magFilter:_i}:{};D.map!==null&&D.map.dispose(),D.map=new ah(i.x,i.y,G),D.map.texture.name=F.name+".shadowMap",D.camera.updateProjectionMatrix()}
vendor: 6,306 bytes, line 10582
10582t.setRenderTarget(D.map),t.clear();const N=D.getViewportCount();for(let G=0;G<N;G++){const q=D.getViewport(G);o.set(s.x*q.x,s.y*q.y,s.x*q.z,s.y*q.w),j.viewport(o),D.updateMatrices(F,G),r=D.getFrustum(),w(T,M,D.camera,F,this.type)}D.isPointLightShadow!==!0&&this.type===Ka&&b(D,M),D.needsUpdate=!1}y=this.type,g.needsUpdate=!1,t.setRenderTarget(A,C,R)};function b(S,T){const M=e.update(p);f.defines.VSM_SAMPLES!==S.blurSamples&&(f.defines.VSM_SAMPLES=S.blurSamples,m.defines.VSM_SAMPLES=S.blurSamples,f.needsUpdate=!0,m.needsUpdate=!0),S.mapPass===null&&(S.mapPass=new ah(i.x,i.y)),f.uniforms.shadow_pass.value=S.map.texture,f.uniforms.resolution.value=S.mapSize,f.uniforms.radius.value=S.radius,t.setRenderTarget(S.mapPass),t.clear(),t.renderBufferDirect(T,null,M,f,p,null),m.uniforms.shadow_pass.value=S.mapPass.texture,m.uniforms.resolution.value=S.mapSize,m.uniforms.radius.value=S.radius,t.setRenderTarget(S.map),t.clear(),t.renderBufferDirect(T,null,M,m,p,null)}function x(S,T,M,A){let C=null;const R=M.isPointLight===!0?S.customDistanceMaterial:S.customDepthMaterial;if(R!==void 0)C=R;else if(C=M.isPointLight===!0?c:a,t.localClippingEnabled&&T.clipShadows===!0&&Array.isArray(T.clippingPlanes)&&T.clippingPlanes.length!==0||T.displacementMap&&T.displacementScale!==0||T.alphaMap&&T.alphaTest>0||T.map&&T.alphaTest>0){const j=C.uuid,k=T.uuid;let P=u[j];P===void 0&&(P={},u[j]=P);let O=P[k];O===void 0&&(O=C.clone(),P[k]=O,T.addEventListener("dispose",_)),C=O}if(C.visible=T.visible,C.wireframe=T.wireframe,A===Ka?C.side=T.shadowSide!==null?T.shadowSide:T.side:C.side=T.shadowSide!==null?T.shadowSide:h[T.side],C.alphaMap=T.alphaMap,C.alphaTest=T.alphaTest,C.map=T.map,C.clipShadows=T.clipShadows,C.clippingPlanes=T.clippingPlanes,C.clipIntersection=T.clipIntersection,C.displacementMap=T.displacementMap,C.displacementScale=T.displacementScale,C.displacementBias=T.displacementBias,C.wireframeLinewidth=T.wireframeLinewidth,C.linewidth=T.linewidth,M.isPointLight===!0&&C.isMeshDistanceMaterial===!0){const j=t.properties.get(C);j.light=M}return C}function w(S,T,M,A,C){if(S.visible===!1)return;if(S.layers.test(T.layers)&&(S.isMesh||S.isLine||S.isPoints)&&(S.castShadow||S.receiveShadow&&C===Ka)&&(!S.frustumCulled||r.intersectsObject(S))){S.modelViewMatrix.multiplyMatrices(M.matrixWorldInverse,S.matrixWorld);const k=e.update(S),P=S.material;if(Array.isArray(P)){const O=k.groups;for(let L=0,F=O.length;L<F;L++){const D=O[L],I=P[D.materialIndex];if(I&&I.visible){const N=x(S,I,A,C);S.onBeforeShadow(t,S,T,M,k,N,D),t.renderBufferDirect(M,null,k,N,S,D),S.onAfterShadow(t,S,T,M,k,N,D)}}}else if(P.visible){const O=x(S,P,A,C);S.onBeforeShadow(t,S,T,M,k,O,null),t.renderBufferDirect(M,null,k,O,S,null),S.onAfterShadow(t,S,T,M,k,O,null)}}const j=S.children;for(let k=0,P=j.length;k<P;k++)w(j[k],T,M,A,C)}function _(S){S.target.removeEventListener("dispose",_);for(const M in u){const A=u[M],C=S.target.uuid;C in A&&(A[C].dispose(),delete A[C])}}}function mZe(t,e,n){const r=n.isWebGL2;function i(){let K=!1;const Re=new jn;let Ee=null;const lt=new jn(0,0,0,0);return{setMask:function(Se){Ee!==Se&&!K&&(t.colorMask(Se,Se,Se,Se),Ee=Se)},setLocked:function(Se){K=Se},setClear:function(Se,Ne,st,Ve,Fe){Fe===!0&&(Se*=Ve,Ne*=Ve,st*=Ve),Re.set(Se,Ne,st,Ve),lt.equals(Re)===!1&&(t.clearColor(Se,Ne,st,Ve),lt.copy(Re))},reset:function(){K=!1,Ee=null,lt.set(-1,0,0,0)}}}function s(){let K=!1,Re=null,Ee=null,lt=null;return{setTest:function(Se){Se?J(t.DEPTH_TEST):ue(t.DEPTH_TEST)},setMask:function(Se){Re!==Se&&!K&&(t.depthMask(Se),Re=Se)},setFunc:function(Se){if(Ee!==Se){switch(Se){case _Ge:t.depthFunc(t.NEVER);break;case SGe:t.depthFunc(t.ALWAYS);break;case EGe:t.depthFunc(t.LESS);break;case N_:t.depthFunc(t.LEQUAL);break;case TGe:t.depthFunc(t.EQUAL);break;case AGe:t.depthFunc(t.GEQUAL);break;case CGe:t.depthFunc(t.GREATER);break;case MGe:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}Ee=Se}},setLocked:function(Se){K=Se},setClear:function(Se){lt!==Se&&(t.clearDepth(Se),lt=Se)},reset:function(){K=!1,Re=null,Ee=null,lt=null}}}function o(){let K=!1,Re=null,Ee=null,lt=null,Se=null,Ne=null,st=null,Ve=null,Fe=null;return{setTest:function(Ye){K||(Ye?J(t.STENCIL_TEST):ue(t.STENCIL_TEST))},setMask:function(Ye){Re!==Ye&&!K&&(t.stencilMask(Ye),Re=Ye)},setFunc:function(Ye,Te,Xe){(Ee!==Ye||lt!==Te||Se!==Xe)&&(t.stencilFunc(Ye,Te,Xe),Ee=Ye,lt=Te,Se=Xe)},setOp:function(Ye,Te,Xe){(Ne!==Ye||st!==Te||Ve!==Xe)&&(t.stencilOp(Ye,Te,Xe),Ne=Ye,st=Te,Ve=Xe)},setLocked:function(Ye){K=Ye},setClear:function(Ye){Fe!==Ye&&(t.clearStencil(Ye),Fe=Ye)},reset:function(){K=!1,Re=null,Ee=null,lt=null,Se=null,Ne=null,st=null,Ve=null,Fe=null}}}const a=new i,c=new s,u=new o,d=new WeakMap,h=new WeakMap;let f={},m={},v=new WeakMap,p=[],g=null,y=!1,b=null,x=null,w=null,_=null,S=null,T=null,M=null,A=new kt(0,0,0),C=0,R=!1,j=null,k=null,P=null,O=null,L=null;const F=t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let D=!1,I=0;const N=t.getParameter(t.VERSION);N.indexOf("WebGL")!==-1?(I=parseFloat(/^WebGL (\d)/.exec(N)[1]),D=I>=1):N.indexOf("OpenGL ES")!==-1&&(I=parseFloat(/^OpenGL ES (\d)/.exec(N)[1]),D=I>=2);let G=null,q={};const W=t.getParameter(t.SCISSOR_BOX),Y=t.getParameter(t.VIEWPORT),te=new jn().fromArray(W),Q=new jn().fromArray(Y);function X(K,Re,Ee,lt){const Se=new Uint8Array(4),Ne=t.createTexture();t.bindTexture(K,Ne),t.texParameteri(K,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(K,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let st=0;st<Ee;st++)r&&(K===t.TEXTURE_3D||K===t.TEXTURE_2D_ARRAY)?t.texImage3D(Re,0,t.RGBA,1,1,lt,0,t.RGBA,t.UNSIGNED_BYTE,Se):t.texImage2D(Re+st,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,Se);return Ne}const ae={};ae[t.TEXTURE_2D]=X(t.TEXTURE_2D,t.TEXTURE_2D,1),ae[t.TEXTURE_CUBE_MAP]=X(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),r&&(ae[t.TEXTURE_2D_ARRAY]=X(t.TEXTURE_2D_ARRAY,t.TEXTURE_2D_ARRAY,1,1),ae[t.TEXTURE_3D]=X(t.TEXTURE_3D,t.TEXTURE_3D,1,1)),a.setClear(0,0,0,1),c.setClear(1),u.setClear(0),J(t.DEPTH_TEST),c.setFunc(N_),Pe(!1),$(_z),J(t.CULL_FACE),we(Vc);function J(K){f[K]!==!0&&(t.enable(K),f[K]=!0)}function ue(K){f[K]!==!1&&(t.disable(K),f[K]=!1)}function de(K,Re){return m[K]!==Re?(t.bindFramebuffer(K,Re),m[K]=Re,r&&(K===t.DRAW_FRAMEBUFFER&&(m[t.FRAMEBUFFER]=Re),K===t.FRAMEBUFFER&&(m[t.DRAW_FRAMEBUFFER]=Re)),!0):!1}function H(K,Re){let Ee=p,lt=!1;
vendor: 5,719 bytes, line 10582
10582if(K)if(Ee=v.get(Re),Ee===void 0&&(Ee=[],v.set(Re,Ee)),K.isWebGLMultipleRenderTargets){const Se=K.texture;if(Ee.length!==Se.length||Ee[0]!==t.COLOR_ATTACHMENT0){for(let Ne=0,st=Se.length;Ne<st;Ne++)Ee[Ne]=t.COLOR_ATTACHMENT0+Ne;Ee.length=Se.length,lt=!0}}else Ee[0]!==t.COLOR_ATTACHMENT0&&(Ee[0]=t.COLOR_ATTACHMENT0,lt=!0);else Ee[0]!==t.BACK&&(Ee[0]=t.BACK,lt=!0);lt&&(n.isWebGL2?t.drawBuffers(Ee):e.get("WEBGL_draw_buffers").drawBuffersWEBGL(Ee))}function _e(K){return g!==K?(t.useProgram(K),g=K,!0):!1}const he={[Qu]:t.FUNC_ADD,[aGe]:t.FUNC_SUBTRACT,[lGe]:t.FUNC_REVERSE_SUBTRACT};if(r)he[Az]=t.MIN,he[Cz]=t.MAX;else{const K=e.get("EXT_blend_minmax");K!==null&&(he[Az]=K.MIN_EXT,he[Cz]=K.MAX_EXT)}const xe={[cGe]:t.ZERO,[uGe]:t.ONE,[dGe]:t.SRC_COLOR,[pj]:t.SRC_ALPHA,[vGe]:t.SRC_ALPHA_SATURATE,[pGe]:t.DST_COLOR,[fGe]:t.DST_ALPHA,[hGe]:t.ONE_MINUS_SRC_COLOR,[gj]:t.ONE_MINUS_SRC_ALPHA,[gGe]:t.ONE_MINUS_DST_COLOR,[mGe]:t.ONE_MINUS_DST_ALPHA,[yGe]:t.CONSTANT_COLOR,[xGe]:t.ONE_MINUS_CONSTANT_COLOR,[bGe]:t.CONSTANT_ALPHA,[wGe]:t.ONE_MINUS_CONSTANT_ALPHA};function we(K,Re,Ee,lt,Se,Ne,st,Ve,Fe,Ye){if(K===Vc){y===!0&&(ue(t.BLEND),y=!1);return}if(y===!1&&(J(t.BLEND),y=!0),K!==oGe){if(K!==b||Ye!==R){if((x!==Qu||S!==Qu)&&(t.blendEquation(t.FUNC_ADD),x=Qu,S=Qu),Ye)switch(K){case nm:t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case Sz:t.blendFunc(t.ONE,t.ONE);break;case Ez:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case Tz:t.blendFuncSeparate(t.ZERO,t.SRC_COLOR,t.ZERO,t.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",K);break}else switch(K){case nm:t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case Sz:t.blendFunc(t.SRC_ALPHA,t.ONE);break;case Ez:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case Tz:t.blendFunc(t.ZERO,t.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",K);break}w=null,_=null,T=null,M=null,A.set(0,0,0),C=0,b=K,R=Ye}return}Se=Se||Re,Ne=Ne||Ee,st=st||lt,(Re!==x||Se!==S)&&(t.blendEquationSeparate(he[Re],he[Se]),x=Re,S=Se),(Ee!==w||lt!==_||Ne!==T||st!==M)&&(t.blendFuncSeparate(xe[Ee],xe[lt],xe[Ne],xe[st]),w=Ee,_=lt,T=Ne,M=st),(Ve.equals(A)===!1||Fe!==C)&&(t.blendColor(Ve.r,Ve.g,Ve.b,Fe),A.copy(Ve),C=Fe),b=K,R=!1}function ne(K,Re){K.side===ol?ue(t.CULL_FACE):J(t.CULL_FACE);let Ee=K.side===ts;Re&&(Ee=!Ee),Pe(Ee),K.blending===nm&&K.transparent===!1?we(Vc):we(K.blending,K.blendEquation,K.blendSrc,K.blendDst,K.blendEquationAlpha,K.blendSrcAlpha,K.blendDstAlpha,K.blendColor,K.blendAlpha,K.premultipliedAlpha),c.setFunc(K.depthFunc),c.setTest(K.depthTest),c.setMask(K.depthWrite),a.setMask(K.colorWrite);const lt=K.stencilWrite;u.setTest(lt),lt&&(u.setMask(K.stencilWriteMask),u.setFunc(K.stencilFunc,K.stencilRef,K.stencilFuncMask),u.setOp(K.stencilFail,K.stencilZFail,K.stencilZPass)),re(K.polygonOffset,K.polygonOffsetFactor,K.polygonOffsetUnits),K.alphaToCoverage===!0?J(t.SAMPLE_ALPHA_TO_COVERAGE):ue(t.SAMPLE_ALPHA_TO_COVERAGE)}function Pe(K){j!==K&&(K?t.frontFace(t.CW):t.frontFace(t.CCW),j=K)}function $(K){K!==rGe?(J(t.CULL_FACE),K!==k&&(K===_z?t.cullFace(t.BACK):K===iGe?t.cullFace(t.FRONT):t.cullFace(t.FRONT_AND_BACK))):ue(t.CULL_FACE),k=K}function B(K){K!==P&&(D&&t.lineWidth(K),P=K)}function re(K,Re,Ee){K?(J(t.POLYGON_OFFSET_FILL),(O!==Re||L!==Ee)&&(t.polygonOffset(Re,Ee),O=Re,L=Ee)):ue(t.POLYGON_OFFSET_FILL)}function pe(K){K?J(t.SCISSOR_TEST):ue(t.SCISSOR_TEST)}function ge(K){K===void 0&&(K=t.TEXTURE0+F-1),G!==K&&(t.activeTexture(K),G=K)}function ye(K,Re,Ee){Ee===void 0&&(G===null?Ee=t.TEXTURE0+F-1:Ee=G);let lt=q[Ee];lt===void 0&&(lt={type:void 0,texture:void 0},q[Ee]=lt),(lt.type!==K||lt.texture!==Re)&&(G!==Ee&&(t.activeTexture(Ee),G=Ee),t.bindTexture(K,Re||ae[K]),lt.type=K,lt.texture=Re)}function je(){const K=q[G];K!==void 0&&K.type!==void 0&&(t.bindTexture(K.type,null),K.type=void 0,K.texture=void 0)}function be(){try{t.compressedTexImage2D.apply(t,arguments)}catch(K){console.error("THREE.WebGLState:",K)}}function Ae(){try{t.compressedTexImage3D.apply(t,arguments)}catch(K){console.error("THREE.WebGLState:",K)}}function Qe(){try{t.texSubImage2D.apply(t,arguments)}catch(K){console.error("THREE.WebGLState:",K)}}function at(){try{t.texSubImage3D.apply(t,arguments)}catch(K){console.error("THREE.WebGLState:",K)}}function oe(){try{t.compressedTexSubImage2D.apply(t,arguments)}catch(K){console.error("THREE.WebGLState:",K)}}function rt(){try{t.compressedTexSubImage3D.apply(t,arguments)}catch(K){console.error("THREE.WebGLState:",K)}}function qe(){try{t.texStorage2D.apply(t,arguments)}catch(K){console.error("THREE.WebGLState:",K)}}function We(){try{t.texStorage3D.apply(t,arguments)}catch(K){console.error("THREE.WebGLState:",K)}}function ke(){try{t.texImage2D.apply(t,arguments)}catch(K){console.error("THREE.WebGLState:",K)}}function Oe(){try{t.texImage3D.apply(t,arguments)}catch(K){console.error("THREE.WebGLState:",K)}}function it(K){te.equals(K)===!1&&(t.scissor(K.x,K.y,K.z,K.w),te.copy(K))}function vt(K){Q.equals(K)===!1&&(t.viewport(K.x,K.y,K.z,K.w),Q.copy(K))}function Dt(K,Re){let Ee=h.get(Re);Ee===void 0&&(Ee=new WeakMap,h.set(Re,Ee));let lt=Ee.get(K);lt===void 0&&(lt=t.getUniformBlockIndex(Re,K.name),Ee.set(K,lt))}function Ie(K,Re){const lt=h.get(Re).get(K);d.get(Re)!==lt&&(t.uniformBlockBinding(Re,lt,K.__bindingPointIndex),d.set(Re,lt))}function Ce(){t.disable(t.BLEND),t.disable(t.CULL_FACE),t.disable(t.DEPTH_TEST),t.disable(t.POLYGON_OFFSET_FILL),t.disable(t.SCISSOR_TEST),t.disable(t.STENCIL_TEST),t.disable(t.SAMPLE_ALPHA_TO_COVERAGE),t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ZERO),t.blendFuncSeparate(t.ONE,t.ZERO,t.ONE,t.ZERO),t.blendColor
10582(0,0,0,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(t.LESS),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(t.ALWAYS,0,4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP),t.clearStencil(0),t.cullFace(t.BACK),t.frontFace(t.CCW),t.polygonOffset(0,0),t.activeTexture(t.TEXTURE0),t.bindFramebuffer(t.FRAMEBUFFER,null),r===!0&&(t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),t.bindFramebuffer(t.READ_FRAMEBUFFER,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),f={},G=null,q={},m={},v=new WeakMap,p=[],g=null,y=!1,b=null,x=null,w=null,_=null,S=null,T=null,M=null,A=new kt(0,0,0),C=0,R=!1,j=null,k=null,P=null,O=null,L=null,te.set(0,0,t.canvas.width,t.canvas.height),Q.set(0,0,t.canvas.width,t.canvas.height),a.reset(),c.reset(),u.reset()}return{buffers:{color:a,depth:c,stencil:u},enable:J,disable:ue,bindFramebuffer:de,drawBuffers:H,useProgram:_e,setBlending:we,setMaterial:ne,setFlipSided:Pe,setCullFace:$,setLineWidth:B,setPolygonOffset:re,setScissorTest:pe,activeTexture:ge,bindTexture:ye,unbindTexture:je,compressedTexImage2D:be,compressedTexImage3D:Ae,texImage2D:ke,texImage3D:Oe,updateUBOMapping:Dt,uniformBlockBinding:Ie,texStorage2D:qe,texStorage3D:We,texSubImage2D:Qe,texSubImage3D:at,compressedTexSubImage2D:oe,compressedTexSubImage3D:rt,scissor:it,viewport:vt,reset:Ce}}function pZe(t,e,n,r,i,s,o){const a=i.isWebGL2,c=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,u=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),d=new WeakMap;let h;const f=new WeakMap;let m=!1;try{m=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function v($,B){return m?new OffscreenCanvas($,B):F_("canvas")}function p($,B,re,pe){let ge=1;if(($.width>pe||$.height>pe)&&(ge=pe/Math.max($.width,$.height)),ge<1||B===!0)if(typeof HTMLImageElement<"u"&&$ instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&$ instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&$ instanceof ImageBitmap){const ye=B?D_:Math.floor,je=ye(ge*$.width),be=ye(ge*$.height);h===void 0&&(h=v(je,be));const Ae=re?v(je,be):h;return Ae.width=je,Ae.height=be,Ae.getContext("2d").drawImage($,0,0,je,be),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+$.width+"x"+$.height+") to ("+je+"x"+be+")."),Ae}else return"data"in $&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+$.width+"x"+$.height+")."),$;return $}function g($){return _j($.width)&&_j($.height)}function y($){return a?!1:$.wrapS!==Fo||$.wrapT!==Fo||$.minFilter!==_i&&$.minFilter!==Ys}function b($,B){return $.generateMipmaps&&B&&$.minFilter!==_i&&$.minFilter!==Ys}function x($){t.generateMipmap($)}function w($,B,re,pe,ge=!1){if(a===!1)return B;if($!==null){if(t[$]!==void 0)return t[$];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+$+"'")}let ye=B;if(B===t.RED&&(re===t.FLOAT&&(ye=t.R32F),re===t.HALF_FLOAT&&(ye=t.R16F),re===t.UNSIGNED_BYTE&&(ye=t.R8)),B===t.RED_INTEGER&&(re===t.UNSIGNED_BYTE&&(ye=t.R8UI),re===t.UNSIGNED_SHORT&&(ye=t.R16UI),re===t.UNSIGNED_INT&&(ye=t.R32UI),re===t.BYTE&&(ye=t.R8I),re===t.SHORT&&(ye=t.R16I),re===t.INT&&(ye=t.R32I)),B===t.RG&&(re===t.FLOAT&&(ye=t.RG32F),re===t.HALF_FLOAT&&(ye=t.RG16F),re===t.UNSIGNED_BYTE&&(ye=t.RG8)),B===t.RGBA){const je=ge?k_:un.getTransfer(pe);re===t.FLOAT&&(ye=t.RGBA32F),re===t.HALF_FLOAT&&(ye=t.RGBA16F),re===t.UNSIGNED_BYTE&&(ye=je===Sn?t.SRGB8_ALPHA8:t.RGBA8),re===t.UNSIGNED_SHORT_4_4_4_4&&(ye=t.RGBA4),re===t.UNSIGNED_SHORT_5_5_5_1&&(ye=t.RGB5_A1)}return(ye===t.R16F||ye===t.R32F||ye===t.RG16F||ye===t.RG32F||ye===t.RGBA16F||ye===t.RGBA32F)&&e.get("EXT_color_buffer_float"),ye}function _($,B,re){return b($,re)===!0||$.isFramebufferTexture&&$.minFilter!==_i&&$.minFilter!==Ys?Math.log2(Math.max(B.width,B.height))+1:$.mipmaps!==void 0&&$.mipmaps.length>0?$.mipmaps.length:$.isCompressedTexture&&Array.isArray($.image)?B.mipmaps.length:1}function S($){return $===_i||$===Mz||$===vA?t.NEAREST:t.LINEAR}function T($){const B=$.target;B.removeEventListener("dispose",T),A(B),B.isVideoTexture&&d.delete(B)}function M($){const B=$.target;B.removeEventListener("dispose",M),R(B)}function A($){const B=r.get($);if(B.__webglInit===void 0)return;const re=$.source,pe=f.get(re);if(pe){const ge=pe[B.__cacheKey];ge.usedTimes--,ge.usedTimes===0&&C($),Object.keys(pe).length===0&&f.delete(re)}r.remove($)}function C($){const B=r.get($);t.deleteTexture(B.__webglTexture);const re=$.source,pe=f.get(re);delete pe[B.__cacheKey],o.memory.textures--}function R($){const B=$.texture,re=r.get($),pe=r.get(B);if(pe.__webglTexture!==void 0&&(t.deleteTexture(pe.__webglTexture),o.memory.textures--),$.depthTexture&&$.depthTexture.dispose(),$.isWebGLCubeRen
vendor: 5,277 bytes, line 10582
10582derTarget)for(let ge=0;ge<6;ge++){if(Array.isArray(re.__webglFramebuffer[ge]))for(let ye=0;ye<re.__webglFramebuffer[ge].length;ye++)t.deleteFramebuffer(re.__webglFramebuffer[ge][ye]);else t.deleteFramebuffer(re.__webglFramebuffer[ge]);re.__webglDepthbuffer&&t.deleteRenderbuffer(re.__webglDepthbuffer[ge])}else{if(Array.isArray(re.__webglFramebuffer))for(let ge=0;ge<re.__webglFramebuffer.length;ge++)t.deleteFramebuffer(re.__webglFramebuffer[ge]);else t.deleteFramebuffer(re.__webglFramebuffer);if(re.__webglDepthbuffer&&t.deleteRenderbuffer(re.__webglDepthbuffer),re.__webglMultisampledFramebuffer&&t.deleteFramebuffer(re.__webglMultisampledFramebuffer),re.__webglColorRenderbuffer)for(let ge=0;ge<re.__webglColorRenderbuffer.length;ge++)re.__webglColorRenderbuffer[ge]&&t.deleteRenderbuffer(re.__webglColorRenderbuffer[ge]);re.__webglDepthRenderbuffer&&t.deleteRenderbuffer(re.__webglDepthRenderbuffer)}if($.isWebGLMultipleRenderTargets)for(let ge=0,ye=B.length;ge<ye;ge++){const je=r.get(B[ge]);je.__webglTexture&&(t.deleteTexture(je.__webglTexture),o.memory.textures--),r.remove(B[ge])}r.remove(B),r.remove($)}let j=0;function k(){j=0}function P(){const $=j;return $>=i.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+$+" texture units while this GPU supports only "+i.maxTextures),j+=1,$}function O($){const B=[];return B.push($.wrapS),B.push($.wrapT),B.push($.wrapR||0),B.push($.magFilter),B.push($.minFilter),B.push($.anisotropy),B.push($.internalFormat),B.push($.format),B.push($.type),B.push($.generateMipmaps),B.push($.premultiplyAlpha),B.push($.flipY),B.push($.unpackAlignment),B.push($.colorSpace),B.join()}function L($,B){const re=r.get($);if($.isVideoTexture&&ne($),$.isRenderTargetTexture===!1&&$.version>0&&re.__version!==$.version){const pe=$.image;if(pe===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(pe.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{te(re,$,B);return}}n.bindTexture(t.TEXTURE_2D,re.__webglTexture,t.TEXTURE0+B)}function F($,B){const re=r.get($);if($.version>0&&re.__version!==$.version){te(re,$,B);return}n.bindTexture(t.TEXTURE_2D_ARRAY,re.__webglTexture,t.TEXTURE0+B)}function D($,B){const re=r.get($);if($.version>0&&re.__version!==$.version){te(re,$,B);return}n.bindTexture(t.TEXTURE_3D,re.__webglTexture,t.TEXTURE0+B)}function I($,B){const re=r.get($);if($.version>0&&re.__version!==$.version){Q(re,$,B);return}n.bindTexture(t.TEXTURE_CUBE_MAP,re.__webglTexture,t.TEXTURE0+B)}const N={[xj]:t.REPEAT,[Fo]:t.CLAMP_TO_EDGE,[bj]:t.MIRRORED_REPEAT},G={[_i]:t.NEAREST,[Mz]:t.NEAREST_MIPMAP_NEAREST,[vA]:t.NEAREST_MIPMAP_LINEAR,[Ys]:t.LINEAR,[DGe]:t.LINEAR_MIPMAP_NEAREST,[h0]:t.LINEAR_MIPMAP_LINEAR},q={[XGe]:t.NEVER,[tqe]:t.ALWAYS,[KGe]:t.LESS,[vte]:t.LEQUAL,[QGe]:t.EQUAL,[eqe]:t.GEQUAL,[ZGe]:t.GREATER,[JGe]:t.NOTEQUAL};function W($,B,re){if(re?(t.texParameteri($,t.TEXTURE_WRAP_S,N[B.wrapS]),t.texParameteri($,t.TEXTURE_WRAP_T,N[B.wrapT]),($===t.TEXTURE_3D||$===t.TEXTURE_2D_ARRAY)&&t.texParameteri($,t.TEXTURE_WRAP_R,N[B.wrapR]),t.texParameteri($,t.TEXTURE_MAG_FILTER,G[B.magFilter]),t.texParameteri($,t.TEXTURE_MIN_FILTER,G[B.minFilter])):(t.texParameteri($,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri($,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),($===t.TEXTURE_3D||$===t.TEXTURE_2D_ARRAY)&&t.texParameteri($,t.TEXTURE_WRAP_R,t.CLAMP_TO_EDGE),(B.wrapS!==Fo||B.wrapT!==Fo)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri($,t.TEXTURE_MAG_FILTER,S(B.magFilter)),t.texParameteri($,t.TEXTURE_MIN_FILTER,S(B.minFilter)),B.minFilter!==_i&&B.minFilter!==Ys&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),B.compareFunction&&(t.texParameteri($,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri($,t.TEXTURE_COMPARE_FUNC,q[B.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const pe=e.get("EXT_texture_filter_anisotropic");if(B.magFilter===_i||B.minFilter!==vA&&B.minFilter!==h0||B.type===Cc&&e.has("OES_texture_float_linear")===!1||a===!1&&B.type===f0&&e.has("OES_texture_half_float_linear")===!1)return;(B.anisotropy>1||r.get(B).__currentAnisotropy)&&(t.texParameterf($,pe.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(B.anisotropy,i.getMaxAnisotropy())),r.get(B).__currentAnisotropy=B.anisotropy)}}function Y($,B){let re=!1;$.__webglInit===void 0&&($.__webglInit=!0,B.addEventListener("dispose",T));const pe=B.source;let ge=f.get(pe);ge===void 0&&(ge={},f.set(pe,ge));const ye=O(B);if(ye!==$.__cacheKey){ge[ye]===void 0&&(ge[ye]={texture:t.createTexture(),usedTimes:0},o.memory.textures++,re=!0),ge[ye].usedTimes++;const je=ge[$.__cacheKey];je!==void 0&&(ge[$.__cacheKey].usedTimes--,je.usedTimes===0&&C(B)),$.__cacheKey=ye,$.__webglTexture=ge[ye].texture}return re}function te($,B,re){let pe=t.TEXTURE_2D;(B.isDataArrayTexture||B.isCompressedArrayTexture)&&(pe=t.TEXTURE_2D_ARRAY),B.isData3DTexture&&(pe=t.TEXTURE_3D);const ge=Y($,B),ye=B.source;n.bindTexture(pe,$.__webglTexture,t.TEXTURE0+re);const je=r.get(ye);if(ye.version!==je.__version||ge===!0){n.activeTexture(t.TEXTURE0+re);
10582const be=un.getPrimaries(un.workingColorSpace),Ae=B.colorSpace===Xs?null:un.getPrimaries(B.colorSpace),Qe=B.colorSpace===Xs||be===Ae?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,B.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,B.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,B.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,Qe);const at=y(B)&&g(B.image)===!1;let oe=p(B.image,at,!1,i.maxTextureSize);oe=Pe(B,oe);const rt=g(oe)||a,qe=s.convert(B.format,B.colorSpace);let We=s.convert(B.type),ke=w(B.internalFormat,qe,We,B.colorSpace,B.isVideoTexture);W(pe,B,rt);let Oe;const it=B.mipmaps,vt=a&&B.isVideoTexture!==!0&&ke!==mte,Dt=je.__version===void 0||ge===!0,Ie=_(B,oe,rt);if(B.isDepthTexture)ke=t.DEPTH_COMPONENT,a?B.type===Cc?ke=t.DEPTH_COMPONENT32F:B.type===Ac?ke=t.DEPTH_COMPONENT24:B.type===Od?ke=t.DEPTH24_STENCIL8:ke=t.DEPTH_COMPONENT16:B.type===Cc&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),B.format===Id&&ke===t.DEPTH_COMPONENT&&B.type!==X3&&B.type!==Ac&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),B.type=Ac,We=s.convert(B.type)),B.format===lp&&ke===t.DEPTH_COMPONENT&&(ke=t.DEPTH_STENCIL,B.type!==Od&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),B.type=Od,We=s.convert(B.type))),Dt&&(vt?n.texStorage2D(t.TEXTURE_2D,1,ke,oe.width,oe.height):n.texImage2D(t.TEXTURE_2D,0,ke,oe.width,oe.height,0,qe,We,null));else if(B.isDataTexture)if(it.length>0&&rt){vt&&Dt&&n.texStorage2D(t.TEXTURE_2D,Ie,ke,it[0].width,it[0].height);for(let Ce=0,K=it.length;Ce<K;Ce++)Oe=it[Ce],vt?n.texSubImage2D(t.TEXTURE_2D,Ce,0,0,Oe.width,Oe.height,qe,We,Oe.data):n.texImage2D(t.TEXTURE_2D,Ce,ke,Oe.width,Oe.height,0,qe,We,Oe.data);B.generateMipmaps=!1}else vt?(Dt&&n.texStorage2D(t.TEXTURE_2D,Ie,ke,oe.width,oe.height),n.texSubImage2D(t.TEXTURE_2D,0,0,0,oe.width,oe.height,qe,We,oe.data)):n.texImage2D(t.TEXTURE_2D,0,ke,oe.width,oe.height,0,qe,We,oe.data);else if(B.isCompressedTexture)if(B.isCompressedArrayTexture){vt&&Dt&&n.texStorage3D(t.TEXTURE_2D_ARRAY,Ie,ke,it[0].width,it[0].height,oe.depth);for(let Ce=0,K=it.length;Ce<K;Ce++)Oe=it[Ce],B.format!==Uo?qe!==null?vt?n.compressedTexSubImage3D(t.TEXTURE_2D_ARRAY,Ce,0,0,0,Oe.width,Oe.height,oe.depth,qe,Oe.data,0,0):n.compressedTexImage3D(t.TEXTURE_2D_ARRAY,Ce,ke,Oe.width,Oe.height,oe.depth,0,Oe.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):vt?n.texSubImage3D(t.TEXTURE_2D_ARRAY,Ce,0,0,0,Oe.width,Oe.height,oe.depth,qe,We,Oe.data):n.texImage3D(t.TEXTURE_2D_ARRAY,Ce,ke,Oe.width,Oe.height,oe.depth,0,qe,We,Oe.data)}else{vt&&Dt&&n.texStorage2D(t.TEXTURE_2D,Ie,ke,it[0].width,it[0].height);for(let Ce=0,K=it.length;Ce<K;Ce++)Oe=it[Ce],B.format!==Uo?qe!==null?vt?n.compressedTexSubImage2D(t.TEXTURE_2D,Ce,0,0,Oe.width,Oe.height,qe,Oe.data):n.compressedTexImage2D(t.TEXTURE_2D,Ce,ke,Oe.width,Oe.height,0,Oe.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):vt?n.texSubImage2D(t.TEXTURE_2D,Ce,0,0,Oe.width,Oe.height,qe,We,Oe.data):n.texImage2D(t.TEXTURE_2D,Ce,ke,Oe.width,Oe.height,0,qe,We,Oe.data)}else if(B.isDataArrayTexture)vt?(Dt&&n.texStorage3D(t.TEXTURE_2D_ARRAY,Ie,ke,oe.width,oe.height,oe.depth),n.texSubImage3D(t.TEXTURE_2D_ARRAY,0,0,0,0,oe.width,oe.height,oe.depth,qe,We,oe.data)):n.texImage3D(t.TEXTURE_2D_ARRAY,0,ke,oe.width,oe.height,oe.depth,0,qe,We,oe.data);else if(B.isData3DTexture)vt?(Dt&&n.texStorage3D(t.TEXTURE_3D,Ie,ke,oe.width,oe.height,oe.depth),n.texSubImage3D(t.TEXTURE_3D,0,0,0,0,oe.width,oe.height,oe.depth,qe,We,oe.data)):n.texImage3D(t.TEXTURE_3D,0,ke,oe.width,oe.height,oe.depth,0,qe,We,oe.data);else if(B.isFramebufferTexture){if(Dt)if(vt)n.texStorage2D(t.TEXTURE_2D,Ie,ke,oe.width,oe.height);else{let Ce=oe.width,K=oe.height;for(let Re=0;Re<Ie;Re++)n.texImage2D(t.TEXTURE_2D,Re,ke,Ce,K,0,qe,We,null),Ce>>=1,K>>=1}}else if(it.length>0&&rt){vt&&Dt&&n.texStorage2D(t.TEXTURE_2D,Ie,ke,it[0].width,it[0].height);for(let Ce=0,K=it.length;Ce<K;Ce++)Oe=it[Ce],vt?n.texSubImage2D(t.TEXTURE_2D,Ce,0,0,qe,We,Oe):n.texImage2D(t.TEXTURE_2D,Ce,ke,qe,We,Oe);B.generateMipmaps=!1}else vt?(Dt&&n.texStorage2D(t.TEXTURE_2D,Ie,ke,oe.width,oe.height),n.texSubImage2D(t.TEXTURE_2D,0,0,0,qe,We,oe)):n.texImage2D(t.TEXTURE_2D,0,ke,qe,We,oe);b(B,rt)&&x(pe),je.__version=ye.version,B.onUpdate&&B.onUpdate(B)}$.__version=B.version}function Q($,B,re){if(B.image.length!==6)return;const pe=Y($,B),ge=B.source;n.bindTexture(t.TEXTURE_CUBE_MAP,$.__webglTexture,t.TEXTURE0+re);const ye=r.get(ge);if(ge.version!==ye.__version||pe===!0){n.activeTexture(t.TEXTURE0+re);
10582const je=un.getPrimaries(un.workingColorSpace),be=B.colorSpace===Xs?null:un.getPrimaries(B.colorSpace),Ae=B.colorSpace===Xs||je===be?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,B.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,B.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,B.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,Ae);const Qe=B.isCompressedTexture||B.image[0].isCompressedTexture,at=B.image[0]&&B.image[0].isDataTexture,oe=[];for(let Ce=0;Ce<6;Ce++)!Qe&&!at?oe[Ce]=p(B.image[Ce],!1,!0,i.maxCubemapSize):oe[Ce]=at?B.image[Ce].image:B.image[Ce],oe[Ce]=Pe(B,oe[Ce]);const rt=oe[0],qe=g(rt)||a,We=s.convert(B.format,B.colorSpace),ke=s.convert(B.type),Oe=w(B.internalFormat,We,ke,B.colorSpace),it=a&&B.isVideoTexture!==!0,vt=ye.__version===void 0||pe===!0;let Dt=_(B,rt,qe);W(t.TEXTURE_CUBE_MAP,B,qe);let Ie;if(Qe){it&&vt&&n.texStorage2D(t.TEXTURE_CUBE_MAP,Dt,Oe,rt.width,rt.height);for(let Ce=0;Ce<6;Ce++){Ie=oe[Ce].mipmaps;for(let K=0;K<Ie.length;K++){const Re=Ie[K];B.format!==Uo?We!==null?it?n.compressedTexSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,K,0,0,Re.width,Re.height,We,Re.data):n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,K,Oe,Re.width,Re.height,0,Re.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):it?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,K,0,0,Re.width,Re.height,We,ke,Re.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,K,Oe,Re.width,Re.height,0,We,ke,Re.data)}}}else{Ie=B.mipmaps,it&&vt&&(Ie.length>0&&Dt++,n.texStorage2D(t.TEXTURE_CUBE_MAP,Dt,Oe,oe[0].width,oe[0].height));for(let Ce=0;Ce<6;Ce++)if(at){it?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,0,0,0,oe[Ce].width,oe[Ce].height,We,ke,oe[Ce].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,0,Oe,oe[Ce].width,oe[Ce].height,0,We,ke,oe[Ce].data);for(let K=0;K<Ie.length;K++){const Ee=Ie[K].image[Ce].image;it?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,K+1,0,0,Ee.width,Ee.height,We,ke,Ee.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,K+1,Oe,Ee.width,Ee.height,0,We,ke,Ee.data)}}else{it?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,0,0,0,We,ke,oe[Ce]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,0,Oe,We,ke,oe[Ce]);for(let K=0;K<Ie.length;K++){const Re=Ie[K];it?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,K+1,0,0,We,ke,Re.image[Ce]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,K+1,Oe,We,ke,Re.image[Ce])}}}b(B,qe)&&x(t.TEXTURE_CUBE_MAP),ye.__version=ge.version,B.onUpdate&&B.onUpdate(B)}$.__version=B.version}function X($,B,re,pe,ge,ye){const je=s.convert(re.format,re.colorSpace),be=s.convert(re.type),Ae=w(re.internalFormat,je,be,re.colorSpace);if(!r.get(B).__hasExternalTextures){const at=Math.max(1,B.width>>ye),oe=Math.max(1,B.height>>ye);ge===t.TEXTURE_3D||ge===t.TEXTURE_2D_ARRAY?n.texImage3D(ge,ye,Ae,at,oe,B.depth,0,je,be,null):n.texImage2D(ge,ye,Ae,at,oe,0,je,be,null)}n.bindFramebuffer(t.FRAMEBUFFER,$),we(B)?c.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,pe,ge,r.get(re).__webglTexture,0,xe(B)):(ge===t.TEXTURE_2D||ge>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&ge<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,pe,ge,r.get(re).__webglTexture,ye),n.bindFramebuffer(t.FRAMEBUFFER,null)}function ae($,B,re){if(t.bindRenderbuffer(t.RENDERBUFFER,$),B.depthBuffer&&!B.stencilBuffer){let pe=a===!0?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT16;if(re||we(B)){const ge=B.depthTexture;ge&&ge.isDepthTexture&&(ge.type===Cc?pe=t.DEPTH_COMPONENT32F:ge.type===Ac&&(pe=t.DEPTH_COMPONENT24));const ye=xe(B);we(B)?c.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ye,pe,B.width,B.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,ye,pe,B.width,B.height)}else t.renderbufferStorage(t.RENDERBUFFER,pe,B.width,B.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,$)}else if(B.depthBuffer&&B.stencilBuffer){const pe=xe(B);re&&we(B)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,pe,t.DEPTH24_STENCIL8,B.width,B.height):we(B)?c.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,pe,t.DEPTH24_STENCIL8,B.width,B.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,B.width,B.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,$)}else{const pe=B.isWebGLMultipleRenderTargets===!0?B.texture:[B.texture];for(let ge=0;ge<pe.length;ge++){const ye=pe[ge],je=s.convert(ye.format,ye.colorSpace),be=s.convert(ye.type),Ae=w(ye.internalFormat,je,be,ye.colorSpace),Qe=xe(B);re&&we(B)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,Qe,Ae,B.width,B.height):we(B)?c.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Qe,Ae,B.width,B.height):t.renderbufferStorage(t.RENDERBUFFER,Ae,B.width,B.height)}}t.bindRenderbuffer(t.RENDERBUFFER,null)}
10582function J($,B){if(B&&B.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(t.FRAMEBUFFER,$),!(B.depthTexture&&B.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");(!r.get(B.depthTexture).__webglTexture||B.depthTexture.image.width!==B.width||B.depthTexture.image.height!==B.height)&&(B.depthTexture.image.width=B.width,B.depthTexture.image.height=B.height,B.depthTexture.needsUpdate=!0),L(B.depthTexture,0);const pe=r.get(B.depthTexture).__webglTexture,ge=xe(B);if(B.depthTexture.format===Id)we(B)?c.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,pe,0,ge):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,pe,0);else if(B.depthTexture.format===lp)we(B)?c.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,pe,0,ge):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,pe,0);else throw new Error("Unknown depthTexture format")}function ue($){const B=r.get($),re=$.isWebGLCubeRenderTarget===!0;if($.depthTexture&&!B.__autoAllocateDepthBuffer){if(re)throw new Error("target.depthTexture not supported in Cube render targets");J(B.__webglFramebuffer,$)}else if(re){B.__webglDepthbuffer=[];for(let pe=0;pe<6;pe++)n.bindFramebuffer(t.FRAMEBUFFER,B.__webglFramebuffer[pe]),B.__webglDepthbuffer[pe]=t.createRenderbuffer(),ae(B.__webglDepthbuffer[pe],$,!1)}else n.bindFramebuffer(t.FRAMEBUFFER,B.__webglFramebuffer),B.__webglDepthbuffer=t.createRenderbuffer(),ae(B.__webglDepthbuffer,$,!1);n.bindFramebuffer(t.FRAMEBUFFER,null)}function de($,B,re){const pe=r.get($);B!==void 0&&X(pe.__webglFramebuffer,$,$.texture,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,0),re!==void 0&&ue($)}function H($){const B=$.texture,re=r.get($),pe=r.get(B);$.addEventListener("dispose",M),$.isWebGLMultipleRenderTargets!==!0&&(pe.__webglTexture===void 0&&(pe.__webglTexture=t.createTexture()),pe.__version=B.version,o.memory.textures++);const ge=$.isWebGLCubeRenderTarget===!0,ye=$.isWebGLMultipleRenderTargets===!0,je=g($)||a;if(ge){re.__webglFramebuffer=[];for(let be=0;be<6;be++)if(a&&B.mipmaps&&B.mipmaps.length>0){re.__webglFramebuffer[be]=[];for(let Ae=0;Ae<B.mipmaps.length;Ae++)re.__webglFramebuffer[be][Ae]=t.createFramebuffer()}else re.__webglFramebuffer[be]=t.createFramebuffer()}else{if(a&&B.mipmaps&&B.mipmaps.length>0){re.__webglFramebuffer=[];for(let be=0;be<B.mipmaps.length;be++)re.__webglFramebuffer[be]=t.createFramebuffer()}else re.__webglFramebuffer=t.createFramebuffer();if(ye)if(i.drawBuffers){const be=$.texture;for(let Ae=0,Qe=be.length;Ae<Qe;Ae++){const at=r.get(be[Ae]);at.__webglTexture===void 0&&(at.__webglTexture=t.createTexture(),o.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(a&&$.samples>0&&we($)===!1){const be=ye?B:[B];re.__webglMultisampledFramebuffer=t.createFramebuffer(),re.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,re.__webglMultisampledFramebuffer);for(let Ae=0;Ae<be.length;Ae++){const Qe=be[Ae];re.__webglColorRenderbuffer[Ae]=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,re.__webglColorRenderbuffer[Ae]);const at=s.convert(Qe.format,Qe.colorSpace),oe=s.convert(Qe.type),rt=w(Qe.internalFormat,at,oe,Qe.colorSpace,$.isXRRenderTarget===!0),qe=xe($);t.renderbufferStorageMultisample(t.RENDERBUFFER,qe,rt,$.width,$.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ae,t.RENDERBUFFER,re.__webglColorRenderbuffer[Ae])}t.bindRenderbuffer(t.RENDERBUFFER,null),$.depthBuffer&&(re.__webglDepthRenderbuffer=t.createRenderbuffer(),ae(re.__webglDepthRenderbuffer,$,!0)),n.bindFramebuffer(t.FRAMEBUFFER,null)}}if(ge){n.bindTexture(t.TEXTURE_CUBE_MAP,pe.__webglTexture),W(t.TEXTURE_CUBE_MAP,B,je);for(let be=0;be<6;be++)if(a&&B.mipmaps&&B.mipmaps.length>0)for(let Ae=0;Ae<B.mipmaps.length;Ae++)X(re.__webglFramebuffer[be][Ae],$,B,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+be,Ae);else X(re.__webglFramebuffer[be],$,B,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+be,0);b(B,je)&&x(t.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(ye){const be=$.texture;for(let Ae=0,Qe=be.length;Ae<Qe;Ae++){const at=be[Ae],oe=r.get(at);n.bindTexture(t.TEXTURE_2D,oe.__webglTexture),W(t.TEXTURE_2D,at,je),X(re.__webglFramebuffer,$,at,t.COLOR_ATTACHMENT0+Ae,t.TEXTURE_2D,0),b(at,je)&&x(t.TEXTURE_2D)}n.unbindTexture()}else{let be=t.TEXTURE_2D;if(($.isWebGL3DRenderTarget||$.isWebGLArrayRenderTarget)&&(a?be=$.isWebGL3DRenderTarget?t.TEXTURE_3D:t.TEXTURE_2D_ARRAY:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),n.bindTexture(be,pe.__webglTexture),W(be,B,je),a&&B.mipmaps&&B.mipmaps.length>0)for(let Ae=0;Ae<B.mipmaps.length;Ae++)X(re.__webglFramebuffer[Ae],$,B,t.COLOR_ATTACHMENT0,be,Ae);else X(re.__webglFramebuffer,$,B,t.COLOR_ATTACHMENT0,be,0);b(B,je)&&x(be),n.unbindTexture()}$.depthBuffer&&ue($)}function _e($){const B=g($)||a,re=$.isWebGLMultipleRenderTargets===!0?$.texture:[$.texture];for(let pe=0,ge=re.length;pe<ge;pe++){const ye=re[pe];
10582if(b(ye,B)){const je=$.isWebGLCubeRenderTarget?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,be=r.get(ye).__webglTexture;n.bindTexture(je,be),x(je),n.unbindTexture()}}}function he($){if(a&&$.samples>0&&we($)===!1){const B=$.isWebGLMultipleRenderTargets?$.texture:[$.texture],re=$.width,pe=$.height;let ge=t.COLOR_BUFFER_BIT;const ye=[],je=$.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,be=r.get($),Ae=$.isWebGLMultipleRenderTargets===!0;if(Ae)for(let Qe=0;Qe<B.length;Qe++)n.bindFramebuffer(t.FRAMEBUFFER,be.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Qe,t.RENDERBUFFER,null),n.bindFramebuffer(t.FRAMEBUFFER,be.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Qe,t.TEXTURE_2D,null,0);n.bindFramebuffer(t.READ_FRAMEBUFFER,be.__webglMultisampledFramebuffer),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,be.__webglFramebuffer);for(let Qe=0;Qe<B.length;Qe++){ye.push(t.COLOR_ATTACHMENT0+Qe),$.depthBuffer&&ye.push(je);const at=be.__ignoreDepthValues!==void 0?be.__ignoreDepthValues:!1;if(at===!1&&($.depthBuffer&&(ge|=t.DEPTH_BUFFER_BIT),$.stencilBuffer&&(ge|=t.STENCIL_BUFFER_BIT)),Ae&&t.framebufferRenderbuffer(t.READ_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,be.__webglColorRenderbuffer[Qe]),at===!0&&(t.invalidateFramebuffer(t.READ_FRAMEBUFFER,[je]),t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,[je])),Ae){const oe=r.get(B[Qe]).__webglTexture;t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,oe,0)}t.blitFramebuffer(0,0,re,pe,0,0,re,pe,ge,t.NEAREST),u&&t.invalidateFramebuffer(t.READ_FRAMEBUFFER,ye)}if(n.bindFramebuffer(t.READ_FRAMEBUFFER,null),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),Ae)for(let Qe=0;Qe<B.length;Qe++){n.bindFramebuffer(t.FRAMEBUFFER,be.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Qe,t.RENDERBUFFER,be.__webglColorRenderbuffer[Qe]);const at=r.get(B[Qe]).__webglTexture;n.bindFramebuffer(t.FRAMEBUFFER,be.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Qe,t.TEXTURE_2D,at,0)}n.bindFramebuffer(t.DRAW_FRAMEBUFFER,be.__webglMultisampledFramebuffer)}}function xe($){return Math.min(i.maxSamples,$.samples)}function we($){const B=r.get($);return a&&$.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&B.__useRenderToTexture!==!1}function ne($){const B=o.render.frame;d.get($)!==B&&(d.set($,B),$.update())}function Pe($,B){const re=$.colorSpace,pe=$.format,ge=$.type;return $.isCompressedTexture===!0||$.isVideoTexture===!0||$.format===wj||re!==Nl&&re!==Xs&&(un.getTransfer(re)===Sn?a===!1?e.has("EXT_sRGB")===!0&&pe===Uo?($.format=wj,$.minFilter=Ys,$.generateMipmaps=!1):B=xte.sRGBToLinear(B):(pe!==Uo||ge!==Gc)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",re)),B}this.allocateTextureUnit=P,this.resetTextureUnits=k,this.setTexture2D=L,this.setTexture2DArray=F,this.setTexture3D=D,this.setTextureCube=I,this.rebindTextures=de,this.setupRenderTarget=H,this.updateRenderTargetMipmap=_e,this.updateMultisampleRenderTarget=he,this.setupDepthRenderbuffer=ue,this.setupFrameBufferTexture=X,this.useMultisampledRTT=we}function gZe(t,e,n){const r=n.isWebGL2;function i(s,o=Xs){let a;const c=un.getTransfer(o);if(s===Gc)return t.UNSIGNED_BYTE;if(s===cte)return t.UNSIGNED_SHORT_4_4_4_4;if(s===ute)return t.UNSIGNED_SHORT_5_5_5_1;if(s===FGe)return t.BYTE;if(s===UGe)return t.SHORT;if(s===X3)return t.UNSIGNED_SHORT;if(s===lte)return t.INT;if(s===Ac)return t.UNSIGNED_INT;if(s===Cc)return t.FLOAT;if(s===f0)return r?t.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(s===BGe)return t.ALPHA;if(s===Uo)return t.RGBA;if(s===zGe)return t.LUMINANCE;if(s===$Ge)return t.LUMINANCE_ALPHA;if(s===Id)return t.DEPTH_COMPONENT;if(s===lp)return t.DEPTH_STENCIL;if(s===wj)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(s===HGe)return t.RED;if(s===dte)return t.RED_INTEGER;if(s===VGe)return t.RG;if(s===hte)return t.RG_INTEGER;if(s===fte)return t.RGBA_INTEGER;if(s===yA||s===xA||s===bA||s===wA)if(c===Sn)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(s===yA)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(s===xA)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(s===bA)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(s===wA)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(s===yA)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(s===xA)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(s===bA)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(s===wA)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(s===Rz||s===Pz||s===jz||s===Nz)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(s===Rz)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(s===Pz)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(s===jz)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(s===Nz)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(s===mte)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(s===kz||s===Oz)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(s===kz)return c===Sn?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(s===Oz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(s===Iz||s===Lz||s===Dz||s===Fz||s===Uz||s===Bz||s===zz||s===$z||s===Hz||s===Vz||s===Wz||s===Gz||s===qz||s===Yz)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(s===Iz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(s===Lz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(s===Dz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(s===Fz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(s===Uz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(s===Bz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(s===zz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(s===$z)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(s===Hz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(s===Vz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(s===Wz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(s===Gz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(s===qz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(s===Yz)return c===Sn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(s===_A||s===Xz||s===Kz)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(s===_A)return c===Sn?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(s===Xz)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(s===Kz)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(s===WGe||s===Qz||s===Zz||s===Jz)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(s===_A)return a.COMPRESSED_RED_RGT
vendor: 22,740 bytes, line 10582
10582C1_EXT;if(s===Qz)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(s===Zz)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(s===Jz)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return s===Od?r?t.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):t[s]!==void 0?t[s]:null}return{convert:i}}class vZe extends gs{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Lb extends ci{constructor(){super(),this.isGroup=!0,this.type="Group"}}const yZe={type:"move"};class WA{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Lb,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Lb,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new le,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new le),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Lb,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new le,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new le),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const n=this._hand;if(n)for(const r of e.hand.values())this._getHandJoint(n,r)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,n,r){let i=null,s=null,o=null;const a=this._targetRay,c=this._grip,u=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(u&&e.hand){o=!0;for(const p of e.hand.values()){const g=n.getJointPose(p,r),y=this._getHandJoint(u,p);g!==null&&(y.matrix.fromArray(g.transform.matrix),y.matrix.decompose(y.position,y.rotation,y.scale),y.matrixWorldNeedsUpdate=!0,y.jointRadius=g.radius),y.visible=g!==null}const d=u.joints["index-finger-tip"],h=u.joints["thumb-tip"],f=d.position.distanceTo(h.position),m=.02,v=.005;u.inputState.pinching&&f>m+v?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&f<=m-v&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(s=n.getPose(e.gripSpace,r),s!==null&&(c.matrix.fromArray(s.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,s.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(s.linearVelocity)):c.hasLinearVelocity=!1,s.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(s.angularVelocity)):c.hasAngularVelocity=!1));a!==null&&(i=n.getPose(e.targetRaySpace,r),i===null&&s!==null&&(i=s),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(yZe)))}return a!==null&&(a.visible=i!==null),c!==null&&(c.visible=s!==null),u!==null&&(u.visible=o!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const r=new Lb;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[n.jointName]=r,e.add(r)}return e.joints[n.jointName]}}class xZe extends Hp{constructor(e,n){super();const r=this;let i=null,s=1,o=null,a="local-floor",c=1,u=null,d=null,h=null,f=null,m=null,v=null;const p=n.getContextAttributes();let g=null,y=null;const b=[],x=[],w=new Ht;let _=null;const S=new gs;S.layers.enable(1),S.viewport=new jn;const T=new gs;T.layers.enable(2),T.viewport=new jn;const M=[S,T],A=new vZe;A.layers.enable(1),A.layers.enable(2);let C=null,R=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(W){let Y=b[W];return Y===void 0&&(Y=new WA,b[W]=Y),Y.getTargetRaySpace()},this.getControllerGrip=function(W){let Y=b[W];return Y===void 0&&(Y=new WA,b[W]=Y),Y.getGripSpace()},this.getHand=function(W){let Y=b[W];return Y===void 0&&(Y=new WA,b[W]=Y),Y.getHandSpace()};function j(W){const Y=x.indexOf(W.inputSource);if(Y===-1)return;const te=b[Y];te!==void 0&&(te.update(W.inputSource,W.frame,u||o),te.dispatchEvent({type:W.type,data:W.inputSource}))}function k(){i.removeEventListener("select",j),i.removeEventListener("selectstart",j),i.removeEventListener("selectend",j),i.removeEventListener("squeeze",j),i.removeEventListener("squeezestart",j),i.removeEventListener("squeezeend",j),i.removeEventListener("end",k),i.removeEventListener("inputsourceschange",P);for(let W=0;W<b.length;W++){const Y=x[W];Y!==null&&(x[W]=null,b[W].disconnect(Y))}C=null,R=null,e.setRenderTarget(g),m=null,f=null,h=null,i=null,y=null,q.stop(),r.isPresenting=!1,e.setPixelRatio(_),e.setSize(w.width,w.height,!1),r.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(W){s=W,r.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(W){a=W,r.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return u||o},this.setReferenceSpace=function(W){u=W},this.getBaseLayer=function(){return f!==null?f:m},this.getBinding=function(){return h},this.getFrame=function(){return v},this.getSession=function(){return i},this.setSession=async function(W){if(i=W,i!==null){if(g=e.getRenderTarget(),i.addEventListener("select",j),i.addEventListener("selectstart",j),i.addEventListener("selectend",j),i.addEventListener("squeeze",j),i.addEventListener("squeezestart",j),i.addEventListener("squeezeend",j),i.addEventListener("end",k),i.addEventListener("inputsourceschange",P),p.xrCompatible!==!0&&await n.makeXRCompatible(),_=e.getPixelRatio(),e.getSize(w),i.renderState.layers===void 0||e.capabilities.isWebGL2===!1){const Y={antialias:i.renderState.layers===void 0?p.antialias:!0,alpha:!0,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:s};m=new XRWebGLLayer(i,n,Y),i.updateRenderState({baseLayer:m}),e.setPixelRatio(1),e.setSize(m.framebufferWidth,m.framebufferHeight,!1),y=new ah(m.framebufferWidth,m.framebufferHeight,{format:Uo,type:Gc,colorSpace:e.outputColorSpace,stencilBuffer:p.stencil})}else{let Y=null,te=null,Q=null;p.depth&&(Q=p.stencil?n.DEPTH24_STENCIL8:n.DEPTH_COMPONENT24,Y=p.stencil?lp:Id,te=p.stencil?Od:Ac);const X={colorFormat:n.RGBA8,depthFormat:Q,scaleFactor:s};h=new XRWebGLBinding(i,n),f=h.createProjectionLayer(X),i.updateRenderState({layers:[f]}),e.setPixelRatio(1),e.setSize(f.textureWidth,f.textureHeight,!1),y=new ah(f.textureWidth,f.textureHeight,{format:Uo,type:Gc,depthTexture:new Nte(f.textureWidth,f.textureHeight,te,void 0,void 0,void 0,void 0,void 0,void 0,Y),stencilBuffer:p.stencil,colorSpace:e.outputColorSpace,samples:p.antialias?4:0});const ae=e.properties.get(y);ae.__ignoreDepthValues=f.ignoreDepthValues}y.isXRRenderTarget=!0,this.setFoveation(c),u=null,o=await i.requestReferenceSpace(a),q.setContext(i),q.start(),r.isPresenting=!0,r.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(i!==null)return i.environmentBlendMode};function P(W){for(let Y=0;Y<W.removed.length;Y++){const te=W.removed[Y],Q=x.indexOf(te);Q>=0&&(x[Q]=null,b[Q].disconnect(te))}for(let Y=0;Y<W.added.length;Y++){const te=W.added[Y];let Q=x.indexOf(te);if(Q===-1){for(let ae=0;ae<b.length;ae++)if(ae>=x.length){x.push(te),Q=ae;break}else if(x[ae]===null){x[ae]=te,Q=ae;break}if(Q===-1)break}const X=b[Q];X&&X.connect(te)}}const O=new le,L=new le;function F(W,Y,te){O.setFromMatrixPosition(Y.matrixWorld),L.setFromMatrixPosition(te.matrixWorld);const Q=O.distanceTo(L),X=Y.projectionMatrix.elements,ae=te.projectionMatrix.elements,J=X[14]/(X[10]-1),ue=X[14]/(X[10]+1),de=(X[9]+1)/X[5],H=(X[9]-1)/X[5],_e=(X[8]-1)/X[0],he=(ae[8]+1)/ae[0],xe=J*_e,we=J*he,ne=Q/(-_e+he),Pe=ne*-_e;Y.matrixWorld.decompose(W.position,W.quaternion,W.scale),W.translateX(Pe),W.translateZ(ne),W.matrixWorld.compose(W.position,W.quaternion,W.scale),W.matrixWorldInverse.copy(W.matrixWorld).invert();const $=J+ne,B=ue+ne,re=xe-Pe,pe=we+(Q-Pe),ge=de*ue/B*$,ye=H*ue/B*$;W.projectionMatrix.makePerspective(re,pe,ge,ye,$,B),W.projectionMatrixInverse.copy(W.projectionMatrix).invert()}function D(W,Y){Y===null?W.matrixWorld.copy(W.matrix):W.matrixWorld.multiplyMatrices(Y.matrixWorld,W.matrix),W.matrixWorldInverse.copy(W.matrixWorld).invert()}this.updateCamera=function(W){if(i===null)return;A.near=T.near=S.near=W.near,A.far=T.far=S.far=W.far,(C!==A.near||R!==A.far)&&(i.updateRenderState({depthNear:A.near,depthFar:A.far}),C=A.near,R=A.far);const Y=W.parent,te=A.cameras;D(A,Y);for(let Q=0;Q<te.length;Q++)D(te[Q],Y);te.length===2?F(A,S,T):A.projectionMatrix.copy(S.projectionMatrix),I(W,A,Y)};function I(W,Y,te){te===null?W.matrix.copy(Y.matrixWorld):(W.matrix.copy(te.matrixWorld),W.matrix.invert(),W.matrix.multiply(Y.matrixWorld)),W.matrix.decompose(W.position,W.quaternion,W.scale),W.updateMatrixWorld(!0),W.projectionMatrix.copy(Y.projectionMatrix),W.projectionMatrixInverse.copy(Y.projectionMatrixInverse),W.isPerspectiveCamera&&(W.fov=m0*2*Math.atan(1/W.projectionMatrix.elements[5]),W.zoom=1)}this.getCamera=function(){return A},this.getFoveation=function(){if(!(f===null&&m===null))return c},this.setFoveation=function(W){c=W,f!==null&&(f.fixedFoveation=W),m!==null&&m.fixedFoveation!==void 0&&(m.fixedFoveation=W)};let N=null;function G(W,Y){if(d=Y.getViewerPose(u||o),v=Y,d!==null){const te=d.views;m!==null&&(e.setRenderTargetFramebuffer(y,m.framebuffer),e.setRenderTarget(y));let Q=!1;te.length!==A.cameras.length&&(A.cameras.length=0,Q=!0);for(let X=0;X<te.length;X++){const ae=te[X];let J=null;if(m!==null)J=m.getViewport(ae);else{const de=h.getViewSubImage(f,ae);J=de.viewport,X===0&&(e.setRenderTargetTextures(y,de.colorTexture,f.ignoreDepthValues?void 0:de.depthStencilTexture),e.setRenderTarget(y))}let ue=M[X];ue===void 0&&(ue=new gs,ue.layers.enable(X),ue.viewport=new jn,M[X]=ue),ue.matrix.fromArray(ae.transform.matrix),ue.matrix.decompose(ue.position,ue.quaternion,ue.scale),ue.projectionMatrix.fromArray(ae.projectionMatrix),ue.projectionMatrixInverse.copy(ue.projectionMatrix).invert(),ue.viewport.set(J.x,J.y,J.width,J.height),X===0&&(A.matrix.copy(ue.matrix),A.matrix.decompose(A.position,A.quaternion,A.scale)),Q===!0&&A.cameras.push(ue)}}for(let te=0;te<b.length;te++){const Q=x[te],X=b[te];Q!==null&&X!==void 0&&X.update(Q,Y,u||o)}N&&N(W,Y),Y.detectedPlanes&&r.dispatchEvent({type:"planesdetected",data:Y}),v=null}const q=new Pte;q.setAnimationLoop(G),this.setAnimationLoop=function(W){N=W},this.dispose=function(){}}}function bZe(t,e){function n(g,y){g.matrixAutoUpdate===!0&&g.updateMatrix(),y.value.copy(g.matrix)}function r(g,y){y.color.getRGB(g.fogColor.value,Cte(t)),y.isFog?(g.fogNear.value=y.near,g.fogFar.value=y.far):y.isFogExp2&&(g.fogDensity.value=y.density)}function i(g,y,b,x,w){y.isMeshBasicMaterial||y.isMeshLambertMaterial?s(g,y):y.isMeshToonMaterial?(s(g,y),h(g,y)):y.isMeshPhongMaterial?(s(g,y),d(g,y)):y.isMeshStandardMaterial?(s(g,y),f(g,y),y.isMeshPhysicalMaterial&&m(g,y,w)):y.isMeshMatcapMaterial?(s(g,y),v(g,y)):y.isMeshDepthMaterial?s(g,y):y.isMeshDistanceMaterial?(s(g,y),p(g,y)):y.isMeshNormalMaterial?s(g,y):y.isLineBasicMaterial?(o(g,y),y.isLineDashedMaterial&&a(g,y)):y.isPointsMaterial?c(g,y,b,x):y.isSpriteMaterial?u(g,y):y.isShadowMaterial?(g.color.value.copy(y.color),g.opacity.value=y.opacity):y.isShaderMaterial&&(y.uniformsNeedUpdate=!1)}function s(g,y){g.opacity.value=y.opacity,y.color&&g.diffuse.value.copy(y.color),y.emissive&&g.emissive.value.copy(y.emissive).multiplyScalar(y.emissiveIntensity),y.map&&(g.map.value=y.map,n(y.map,g.mapTransform)),y.alphaMap&&(g.alphaMap.value=y.alphaMap,n(y.alphaMap,g.alphaMapTransform)),y.bumpMap&&(g.bumpMap.value=y.bumpMap,n(y.bumpMap,g.bumpMapTransform),g.bumpScale.value=y.bumpScale,y.side===ts&&(g.bumpScale.value*=-1)),y.normalMap&&(g.normalMap.value=y.normalMap,n(y.normalMap,g.normalMapTransform),g.normalScale.value.copy(y.normalScale),y.side===ts&&g.normalScale.value.negate()),y.displacementMap&&(g.displacementMap.value=y.displacementMap,n(y.displacementMap,g.displacementMapTransform),g.displacementScale.value=y.displacementScale,g.displacementBias.value=y.displacementBias),y.emissiveMap&&(g.emissiveMap.value=y.emissiveMap,n(y.emissiveMap,g.emissiveMapTransform)),y.specularMap&&(g.specularMap.value=y.specularMap,n(y.specularMap,g.specularMapTransform)),y.alphaTest>0&&(g.alphaTest.value=y.alphaTest);const b=e.get(y).envMap;if(b&&(g.envMap.value=b,g.flipEnvMap.value=b.isCubeTexture&&b.isRenderTargetTexture===!1?-1:1,g.reflectivity.value=y.reflectivity,g.ior.value=y.ior,g.refractionRatio.value=y.refractionRatio),y.lightMap){g.lightMap.value=y.lightMap;const x=t._useLegacyLights===!0?Math.PI:1;g.lightMapIntensity.value=y.lightMapIntensity*x,n(y.lightMap,g.lightMapTransform)}y.aoMap&&(g.aoMap.value=y.aoMap,g.aoMapIntensity.value=y.aoMapIntensity,n(y.aoMap,g.aoMapTransform))}function o(g,y){g.diffuse.value.copy(y.color),g.opacity.value=y.opacity,y.map&&(g.map.value=y.map,n(y.map,g.mapTransform))}function a(g,y){g.dashSize.value=y.dashSize,g.totalSize.value=y.dashSize+y.gapSize,g.scale.value=y.scale}function c(g,y,b,x){g.diffuse.value.copy(y.color),g.opacity.value=y.opacity,g.size.value=y.size*b,g.scale.value=x*.5,y.map&&(g.map.value=y.map,n(y.map,g.uvTransform)),y.alphaMap&&(g.alphaMap.value=y.alphaMap,n(y.alphaMap,g.alphaMapTransform)),y.alphaTest>0&&(g.alphaTest.value=y.alphaTest)}function u(g,y){g.diffuse.value.copy(y.color),g.opacity.value=y.opacity,g.rotation.value=y.rotation,y.map&&(g.map.value=y.map,n(y.map,g.mapTransform)),y.alphaMap&&(g.alphaMap.value=y.alphaMap,n(y.alphaMap,g.alphaMapTransform)),y.alphaTest>0&&(g.alphaTest.value=y.alphaTest)}function d(g,y){g.specular.value.copy(y.specular),g.shininess.value=Math.max(y.shininess,1e-4)}function h(g,y){y.gradientMap&&(g.gradientMap.value=y.gradientMap)}function f(g,y){g.metalness.value=y.metalness,y.metalnessMap&&(g.metalnessMap.value=y.metalnessMap,n(y.metalnessMap,g.metalnessMapTransform)),g.roughness.value=y.roughness,y.roughnessMap&&(g.roughnessMap.value=y.roughnessMap,n(y.roughnessMap,g.roughnessMapTransform)),e.get(y).envMap&&(g.envMapIntensity.value=y.envMapIntensity)}function m(g,y,b){g.ior.value=y.ior,y.sheen>0&&(g.sheenColor.value.copy(y.sheenColor).multiplyScalar(y.sheen),g.sheenRoughness.value=y.sheenRoughness,y.sheenColorMap&&(g.sheenColorMap.value=y.sheenColorMap,n(y.sheenColorMap,g.sheenColorMapTransform)),y.sheenRoughnessMap&&(g.sheenRoughnessMap.value=y.sheenRoughnessMap,n(y.sheenRoughnessMap,g.sheenRoughnessMapTransform))),y.clearcoat>0&&(g.clearcoat.value=y.clearcoat,g.clearcoatRoughness.value=y.clearcoatRoughness,y.clearcoatMap&&(g.clearcoatMap.value=y.clearcoatMap,n(y.clearcoatMap,g.clearcoatMapTransform)),y.clearcoatRoughnessMap&&(g.clearcoatRoughnessMap.value=y.clearcoatRoughnessMap,n(y.clearcoatRoughnessMap,g.clearcoatRoughnessMapTransform)),y.clearcoatNormalMap&&(g.clearcoatNormalMap.value=y.clearcoatNormalMap,n(y.clearcoatNormalMap,g.clearcoatNormalMapTransform),g.clearcoatNormalScale.value.copy(y.clearcoatNormalScale),y.side===ts&&g.clearcoatNormalScale.value.negate())),y.iridescence>0&&(g.iridescence.value=y.iridescence,g.iridescenceIOR.value=y.iridescenceIOR,g.iridescenceThicknessMinimum.value=y.iridescenceThicknessRange[0],g.iridescenceThicknessMaximum.value=y.iridescenceThicknessRange[1],y.iridescenceMap&&(g.iridescenceMap.value=y.iridescenceMap,n(y.iridescenceMap,g.iridescenceMapTransform)),y.iridescenceThicknessMap&&(g.iridescenceThicknessMap.value=y.iridescenceThicknessMap,n(y.iridescenceThicknessMap,g.iridescenceThicknessMapTransform))),y.transmission>0&&(g.transmission.value=y.transmission,g.transmissionSamplerMap.value=b.texture,g.transmissionSamplerSize.value.set(b.width,b.height),y.transmissionMap&&(g.transmissionMap.value=y.transmissionMap,n(y.transmissionMap,g.transmissionMapTransform)),g.thickness.value=y.thickness,y.thicknessMap&&(g.thicknessMap.value=y.thicknessMap,n(y.thicknessMap,g.thicknessMapTransform)),g.attenuationDistance.value=y.attenuationDistance,g.attenuationColor.value.copy(y.attenuationColor)),y.anisotropy>0&&(g.anisotropyVector.value.set(y.anisotropy*Math.cos(y.anisotropyRotation),y.anisotropy*Math.sin(y.anisotropyRotation)),y.anisotropyMap&&(g.anisotropyMap.value=y.anisotropyMap,n(y.anisotropyMap,g.anisotropyMapTransform))),g.specularIntensity.value=y.specularIntensity,g.specularColor.value.copy(y.specularColor),y.specularColorMap&&(g.specularColorMap.value=y.specularColorMap,n(y.specularColorMap,g.specularColorMapTransform)),y.specularIntensityMap&&(g.specularIntensityMap.value=y.specularIntensityMap,n(y.specularIntensityMap,g.specularIntensityMapTransform))}function v(g,y){y.matcap&&(g.matcap.value=y.matcap)}function p(g,y){const b=e.get(y).light;g.referencePosition.value.setFromMatrixPosition(b.matrixWorld),g.nearDistance.value=b.shadow.camera.near,g.farDistance.value=b.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function wZe(t,e,n,r){let i={},s={},o=[];const a=n.isWebGL2?t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS):0;function c(b,x){const w=x.program;r.uniformBlockBinding(b,w)}function u(b,x){let w=i[b.id];w===void 0&&(v(b),w=d(b),i[b.id]=w,b.addEventListener("dispose",g));const _=x.program;r.updateUBOMapping(b,_);const S=e.render.frame;s[b.id]!==S&&(f(b),s[b.id]=S)}function d(b){const x=h();b.__bindingPointIndex=x;const w=t.createBuffer(),_=b.__size,S=b.usage;return t.bindBuffer(t.UNIFORM_BUFFER,w),t.bufferData(t.UNIFORM_BUFFER,_,S),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,x,w),w}function h(){for(let b=0;b<a;b++)if(o.indexOf(b)===-1)return o.push(b),b;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function f(b){const x=i[b.id],w=b.uniforms,_=b.__cache;t.bindBuffer(t.UNIFORM_BUFFER,x);for(let S=0,T=w.length;S<T;S++){const M=Array.isArray(w[S])?w[S]:[w[S]];for(let A=0,C=M.length;A<C;A++){const R=M[A];if(m(R,S,A,_)===!0){const j=R.__offset,k=Array.isArray(R.value)?R.value:[R.value];let P=0;for(let O=0;O<k.length;O++){const L=k[O],F=p(L);typeof L=="number"||typeof L=="boolean"?(R.__data[0]=L,t.bufferSubData(t.UNIFORM_BUFFER,j+P,R.__data)):L.isMatrix3?(R.__data[0]=L.elements[0],R.__data[1]=L.elements[1],R.__data[2]=L.elements[2],R.__data[3]=0,R.__data[4]=L.elements[3],R.__data[5]=L.elements[4],R.__data[6]=L.elements[5],R.__data[7]=0,R.__data[8]=L.elements[6],R.__data[9]=L.elements[7],R.__data[10]=L.elements[8],R.__data[11]=0):(L.toArray(R.__data,P),P+=F.storage/Float32Array.BYTES_PER_ELEMENT)}t.bufferSubData(t.UNIFORM_BUFFER,j,R.__data)}}}t.bindBuffer(t.UNIFORM_BUFFER,null)}function m(b,x,w,_){const S=b.value,T=x+"_"+w;if(_[T]===void 0)return typeof S=="number"||typeof S=="boolean"?_[T]=S:_[T]=S.clone(),!0;{const M=_[T];if(typeof S=="number"||typeof S=="boolean"){if(M!==S)return _[T]=S,!0}else if(M.equals(S)===!1)return M.copy(S),!0}return!1}function v(b){const x=b.uniforms;let w=0;const _=16;for(let T=0,M=x.length;T<M;T++){const A=Array.isArray(x[T])?x[T]:[x[T]];for(let C=0,R=A.length;C<R;C++){const j=A[C],k=Array.isArray(j.value)?j.value:[j.value];for(let P=0,O=k.length;P<O;P++){const L=k[P],F=p(L),D=w%_;D!==0&&_-D<F.boundary&&(w+=_-D),j.__data=new Float32Array(F.storage/Float32Array.BYTES_PER_ELEMENT),j.__offset=w,w+=F.storage}}}const S=w%_;return S>0&&(w+=_-S),b.__size=w,b.__cache={},this}function p(b){const x={boundary:0,storage:0};return typeof b=="number"||typeof b=="boolean"?(x.boundary=4,x.storage=4):b.isVector2?(x.boundary=8,x.storage=8):b.isVector3||b.isColor?(x.boundary=16,x.storage=12):b.isVector4?(x.boundary=16,x.storage=16):b.isMatrix3?(x.boundary=48,x.storage=48):b.isMatrix4?(x.boundary=64,x.storage=64):b.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",b),x}function g(b){const x=b.target;x.removeEventListener("dispose",g);const w=o.indexOf(x.__bindingPointIndex);o.splice(w,1),t.deleteBuffer(i[x.id]),delete i[x.id],delete s[x.id]}function y(){for(const b in i)t.deleteBuffer(i[b]);o=[],i={},s={}}return{bind:c,update:u,dispose:y}}class tI{constructor(e={}){const{canvas:n=vqe(),context:r=null,depth:i=!0,stencil:s=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:c=!0,preserveDrawingBuffer:u=!1,powerPreference:d="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let f;r!==null?f=r.getContextAttributes().alpha:f=o;const m=new Uint32Array(4),v=new Int32Array(4);let p=null,g=null;const y=[],b=[];this.domElement=n,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Dr,this._useLegacyLights=!1,this.toneMapping=Wc,this.toneMappingExposure=1;const x=this;let w=!1,_=0,S=0,T=null,M=-1,A=null;const C=new jn,R=new jn;let j=null;const k=new kt(0);let P=0,O=n.width,L=n.height,F=1,D=null,I=null;const N=new jn(0,0,O,L),G=new jn(0,0,O,L);let q=!1;const W=new J3;let Y=!1,te=!1,Q=null;const X=new qn,ae=new Ht,J=new le,ue={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function de(){return T===null?F:1}let H=r;function _e(z,ie){for(let ce=0;ce<z.length;ce++){const Z=z[ce],U=n.getContext(Z,ie);if(U!==null)return U}return null}try{const z={alpha:!0,depth:i,stencil:s,antialias:a,premultipliedAlpha:c,preserveDrawingBuffer:u,powerPreference:d,failIfMajorPerformanceCaveat:h};if("setAttribute"in n&&n.setAttribute("data-engine",`three.js r${q3}`),n.addEventListener("webglcontextlost",Ce,!1),n.addEventListener("webglcontextrestored",K,!1),n.addEventListener("webglcontextcreationerror",Re,!1),H===null){const ie=["webgl2","webgl","experimental-webgl"];if(x.isWebGL1Renderer===!0&&ie.shift(),H=_e(ie,z),H===null)throw _e(ie)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}typeof WebGLRenderingContext<"u"&&H instanceof WebGLRenderingContext&&console.warn("THREE.WebGLRenderer: WebGL 1 support was deprecated
10582in r153 and will be removed in r163."),H.getShaderPrecisionFormat===void 0&&(H.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(z){throw console.error("THREE.WebGLRenderer: "+z.message),z}let he,xe,we,ne,Pe,$,B,re,pe,ge,ye,je,be,Ae,Qe,at,oe,rt,qe,We,ke,Oe,it,vt;function Dt(){he=new jKe(H),xe=new TKe(H,he,e),he.init(xe),Oe=new gZe(H,he,xe),we=new mZe(H,he,xe),ne=new OKe(H),Pe=new eZe,$=new pZe(H,he,we,Pe,xe,Oe,ne),B=new CKe(x),re=new PKe(x),pe=new $qe(H,xe),it=new SKe(H,he,pe,xe),ge=new NKe(H,pe,ne,it),ye=new FKe(H,ge,pe,ne),qe=new DKe(H,xe,$),at=new AKe(Pe),je=new JQe(x,B,re,he,xe,it,at),be=new bZe(x,Pe),Ae=new nZe,Qe=new lZe(he,xe),rt=new _Ke(x,B,re,we,ye,f,c),oe=new fZe(x,ye,xe),vt=new wZe(H,ne,xe,we),We=new EKe(H,he,ne,xe),ke=new kKe(H,he,ne,xe),ne.programs=je.programs,x.capabilities=xe,x.extensions=he,x.properties=Pe,x.renderLists=Ae,x.shadowMap=oe,x.state=we,x.info=ne}Dt();const Ie=new xZe(x,H);this.xr=Ie,this.getContext=function(){return H},this.getContextAttributes=function(){return H.getContextAttributes()},this.forceContextLoss=function(){const z=he.get("WEBGL_lose_context");z&&z.loseContext()},this.forceContextRestore=function(){const z=he.get("WEBGL_lose_context");z&&z.restoreContext()},this.getPixelRatio=function(){return F},this.setPixelRatio=function(z){z!==void 0&&(F=z,this.setSize(O,L,!1))},this.getSize=function(z){return z.set(O,L)},this.setSize=function(z,ie,ce=!0){if(Ie.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}O=z,L=ie,n.width=Math.floor(z*F),n.height=Math.floor(ie*F),ce===!0&&(n.style.width=z+"px",n.style.height=ie+"px"),this.setViewport(0,0,z,ie)},this.getDrawingBufferSize=function(z){return z.set(O*F,L*F).floor()},this.setDrawingBufferSize=function(z,ie,ce){O=z,L=ie,F=ce,n.width=Math.floor(z*ce),n.height=Math.floor(ie*ce),this.setViewport(0,0,z,ie)},this.getCurrentViewport=function(z){return z.copy(C)},this.getViewport=function(z){return z.copy(N)},this.setViewport=function(z,ie,ce,Z){z.isVector4?N.set(z.x,z.y,z.z,z.w):N.set(z,ie,ce,Z),we.viewport(C.copy(N).multiplyScalar(F).floor())},this.getScissor=function(z){return z.copy(G)},this.setScissor=function(z,ie,ce,Z){z.isVector4?G.set(z.x,z.y,z.z,z.w):G.set(z,ie,ce,Z),we.scissor(R.copy(G).multiplyScalar(F).floor())},this.getScissorTest=function(){return q},this.setScissorTest=function(z){we.setScissorTest(q=z)},this.setOpaqueSort=function(z){D=z},this.setTransparentSort=function(z){I=z},this.getClearColor=function(z){return z.copy(rt.getClearColor())},this.setClearColor=function(){rt.setClearColor.apply(rt,arguments)},this.getClearAlpha=function(){return rt.getClearAlpha()},this.setClearAlpha=function(){rt.setClearAlpha.apply(rt,arguments)},this.clear=function(z=!0,ie=!0,ce=!0){let Z=0;if(z){let U=!1;if(T!==null){const se=T.texture.format;U=se===fte||se===hte||se===dte}if(U){const se=T.texture.type,fe=se===Gc||se===Ac||se===X3||se===Od||se===cte||se===ute,$e=rt.getClearColor(),Be=rt.getClearAlpha(),Ue=$e.r,Ke=$e.g,ut=$e.b;fe?(m[0]=Ue,m[1]=Ke,m[2]=ut,m[3]=Be,H.clearBufferuiv(H.COLOR,0,m)):(v[0]=Ue,v[1]=Ke,v[2]=ut,v[3]=Be,H.clearBufferiv(H.COLOR,0,v))}else Z|=H.COLOR_BUFFER_BIT}ie&&(Z|=H.DEPTH_BUFFER_BIT),ce&&(Z|=H.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),H.clear(Z)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){n.removeEventListener("webglcontextlost",Ce,!1),n.removeEventListener("webglcontextrestored",K,!1),n.removeEventListener("webglcontextcreationerror",Re,!1),Ae.dispose(),Qe.dispose(),Pe.dispose(),B.dispose(),re.dispose(),ye.dispose(),it.dispose(),vt.dispose(),je.dispose(),Ie.dispose(),Ie.removeEventListener("sessionstart",Fe),Ie.removeEventListener("sessionend",Ye),Q&&(Q.dispose(),Q=null),Te.stop()};function Ce(z){z.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),w=!0}function K(){console.log("THREE.WebGLRenderer: Context Restored."),w=!1;const z=ne.autoReset,ie=oe.enabled,ce=oe.autoUpdate,Z=oe.needsUpdate,U=oe.type;Dt(),ne.autoReset=z,oe.enabled=ie,oe.autoUpdate=ce,oe.needsUpdate=Z,oe.type=U}function Re(z){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",z.statusMessage)}function Ee(z){const ie=z.target;ie.removeEventListener("dispose",Ee),lt(ie)}function lt(z){Se(z),Pe.remove(z)}function Se(z){const ie=Pe.get(z).programs;ie!==void 0&&(ie.forEach(function(ce){je.releaseProgram(ce)}),z.isShaderMaterial&&je.releaseShaderCache(z))}this.renderBufferDirect=function(z,ie,ce,Z,U,se){ie===null&&(ie=ue);
vendor: 32,408 bytes, line 10582
10582const fe=U.isMesh&&U.matrixWorld.determinant()<0,$e=Ft(z,ie,ce,Z,U);we.setMaterial(Z,fe);let Be=ce.index,Ue=1;if(Z.wireframe===!0){if(Be=ge.getWireframeAttribute(ce),Be===void 0)return;Ue=2}const Ke=ce.drawRange,ut=ce.attributes.position;let Qt=Ke.start*Ue,On=(Ke.start+Ke.count)*Ue;se!==null&&(Qt=Math.max(Qt,se.start*Ue),On=Math.min(On,(se.start+se.count)*Ue)),Be!==null?(Qt=Math.max(Qt,0),On=Math.min(On,Be.count)):ut!=null&&(Qt=Math.max(Qt,0),On=Math.min(On,ut.count));const yt=On-Qt;if(yt<0||yt===1/0)return;it.setup(U,Z,$e,ce,Be);let wr,Zt=We;if(Be!==null&&(wr=pe.get(Be),Zt=ke,Zt.setIndex(wr)),U.isMesh)Z.wireframe===!0?(we.setLineWidth(Z.wireframeLinewidth*de()),Zt.setMode(H.LINES)):Zt.setMode(H.TRIANGLES);else if(U.isLine){let xt=Z.linewidth;xt===void 0&&(xt=1),we.setLineWidth(xt*de()),U.isLineSegments?Zt.setMode(H.LINES):U.isLineLoop?Zt.setMode(H.LINE_LOOP):Zt.setMode(H.LINE_STRIP)}else U.isPoints?Zt.setMode(H.POINTS):U.isSprite&&Zt.setMode(H.TRIANGLES);if(U.isBatchedMesh)Zt.renderMultiDraw(U._multiDrawStarts,U._multiDrawCounts,U._multiDrawCount);else if(U.isInstancedMesh)Zt.renderInstances(Qt,yt,U.count);else if(ce.isInstancedBufferGeometry){const xt=ce._maxInstanceCount!==void 0?ce._maxInstanceCount:1/0,Y2=Math.min(ce.instanceCount,xt);Zt.renderInstances(Qt,yt,Y2)}else Zt.render(Qt,yt)};function Ne(z,ie,ce){z.transparent===!0&&z.side===ol&&z.forceSinglePass===!1?(z.side=ts,z.needsUpdate=!0,on(z,ie,ce),z.side=ru,z.needsUpdate=!0,on(z,ie,ce),z.side=ol):on(z,ie,ce)}this.compile=function(z,ie,ce=null){ce===null&&(ce=z),g=Qe.get(ce),g.init(),b.push(g),ce.traverseVisible(function(U){U.isLight&&U.layers.test(ie.layers)&&(g.pushLight(U),U.castShadow&&g.pushShadow(U))}),z!==ce&&z.traverseVisible(function(U){U.isLight&&U.layers.test(ie.layers)&&(g.pushLight(U),U.castShadow&&g.pushShadow(U))}),g.setupLights(x._useLegacyLights);const Z=new Set;return z.traverse(function(U){const se=U.material;if(se)if(Array.isArray(se))for(let fe=0;fe<se.length;fe++){const $e=se[fe];Ne($e,ce,U),Z.add($e)}else Ne(se,ce,U),Z.add(se)}),b.pop(),g=null,Z},this.compileAsync=function(z,ie,ce=null){const Z=this.compile(z,ie,ce);return new Promise(U=>{function se(){if(Z.forEach(function(fe){Pe.get(fe).currentProgram.isReady()&&Z.delete(fe)}),Z.size===0){U(z);return}setTimeout(se,10)}he.get("KHR_parallel_shader_compile")!==null?se():setTimeout(se,10)})};let st=null;function Ve(z){st&&st(z)}function Fe(){Te.stop()}function Ye(){Te.start()}const Te=new Pte;Te.setAnimationLoop(Ve),typeof self<"u"&&Te.setContext(self),this.setAnimationLoop=function(z){st=z,Ie.setAnimationLoop(z),z===null?Te.stop():Te.start()},Ie.addEventListener("sessionstart",Fe),Ie.addEventListener("sessionend",Ye),this.render=function(z,ie){if(ie!==void 0&&ie.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(w===!0)return;z.matrixWorldAutoUpdate===!0&&z.updateMatrixWorld(),ie.parent===null&&ie.matrixWorldAutoUpdate===!0&&ie.updateMatrixWorld(),Ie.enabled===!0&&Ie.isPresenting===!0&&(Ie.cameraAutoUpdate===!0&&Ie.updateCamera(ie),ie=Ie.getCamera()),z.isScene===!0&&z.onBeforeRender(x,z,ie,T),g=Qe.get(z,b.length),g.init(),b.push(g),X.multiplyMatrices(ie.projectionMatrix,ie.matrixWorldInverse),W.setFromProjectionMatrix(X),te=this.localClippingEnabled,Y=at.init(this.clippingPlanes,te),p=Ae.get(z,y.length),p.init(),y.push(p),Xe(z,ie,0,x.sortObjects),p.finish(),x.sortObjects===!0&&p.sort(D,I),this.info.render.frame++,Y===!0&&at.beginShadows();const ce=g.state.shadowsArray;if(oe.render(ce,z,ie),Y===!0&&at.endShadows(),this.info.autoReset===!0&&this.info.reset(),rt.render(p,z),g.setupLights(x._useLegacyLights),ie.isArrayCamera){const Z=ie.cameras;for(let U=0,se=Z.length;U<se;U++){const fe=Z[U];Ze(p,z,fe,fe.viewport)}}else Ze(p,z,ie);T!==null&&($.updateMultisampleRenderTarget(T),$.updateRenderTargetMipmap(T)),z.isScene===!0&&z.onAfterRender(x,z,ie),it.resetDefaultState(),M=-1,A=null,b.pop(),b.length>0?g=b[b.length-1]:g=null,y.pop(),y.length>0?p=y[y.length-1]:p=null};function Xe(z,ie,ce,Z){if(z.visible===!1)return;if(z.layers.test(ie.layers)){if(z.isGroup)ce=z.renderOrder;else if(z.isLOD)z.autoUpdate===!0&&z.update(ie);else if(z.isLight)g.pushLight(z),z.castShadow&&g.pushShadow(z);else if(z.isSprite){if(!z.frustumCulled||W.intersectsSprite(z)){Z&&J.setFromMatrixPosition(z.matrixWorld).applyMatrix4(X);const fe=ye.update(z),$e=z.material;$e.visible&&p.push(z,fe,$e,ce,J.z,null)}}else if((z.isMesh||z.isLine||z.isPoints)&&(!z.frustumCulled||W.intersectsObject(z))){const fe=ye.update(z),$e=z.material;if(Z&&(z.boundingSphere!==void 0?(z.boundingSphere===null&&z.computeBoundingSphere(),J.copy(z.boundingSphere.center)):(fe.boundingSphere===null&&fe.computeBoundingSphere(),J.copy(fe.boundingSphere.center)),J.applyMatrix4(z.matrixWorld).applyMatrix4(X)),Array.isArray($e)){const Be=fe.groups;for(let Ue=0,Ke=Be.length;Ue<Ke;Ue++){const ut=Be[Ue],Qt=$e[ut.materialIndex];Qt&&Qt.visible&&p.push(z,fe,Qt,ce,J.z,ut)}}else $e.visible&&p.push(z,fe,$e,ce,J.z,null)}}const se=z.children;for(let fe=0,$e=se.length;fe<$e;fe++)Xe(se[fe],ie,ce,Z)}function Ze(z,ie,ce,Z){const U=z.opaque,se=z.transmissive,fe=z.transparent;g.setupLightsView(ce),Y===!0&&at.setGlobalState(x.clippingPlanes,ce),se.length>0&&ct(U,se,ie,ce),Z&&we.viewport(C.copy(Z)),U.length>0&&Kt(U,ie,ce),se.length>0&&Kt(se,ie,ce),fe.length>0&&Kt(fe,ie,ce),we.buffers.depth.setTest(!0),we.buffers.depth.setMask(!0),we.buffers.color.setMask(!0),we.setPolygonOffset(!1)}function ct(z,ie,ce,Z){if((ce.isScene===!0?ce.overrideMaterial:null)!==null)return;const se=xe.isWebGL2;Q===null&&(Q=new ah(1,1,{generateMipmaps:!0,type:he.has("EXT_color_buffer_half_float")?f0:Gc,minFilter:h0,samples:se?4:0})),x.getDrawingBufferSize(ae),se?Q.setSize(ae.x,ae.y):Q.setSize(D_(ae.x),D_(ae.y));const fe=x.getRenderTarget();x.setRenderTarget(Q),x.getClearColor(k),P=x.getClearAlpha(),P<1&&x.setClearColor(16777215,.5),x.clear();const $e=x.toneMapping;x.toneMapping=Wc,Kt(z,ce,Z),$.updateMultisampleRenderTarget(Q),$.updateRenderTargetMipmap(Q);let Be=!1;for(let Ue=0,Ke=ie.length;Ue<Ke;Ue++){const ut=ie[Ue],Qt=ut.object,On=ut.geometry,yt=ut.material,wr=ut.group;if(yt.side===ol&&Qt.layers.test(Z.layers)){const Zt=yt.side;yt.side=ts,yt.needsUpdate=!0,St(Qt,ce,Z,On,yt,wr),yt.side=Zt,yt.needsUpdate=!0,Be=!0}}Be===!0&&($.updateMultisampleRenderTarget(Q),$.updateRenderTargetMipmap(Q)),x.setRenderTarget(fe),x.setClearColor(k,P),x.toneMapping=$e}function Kt(z,ie,ce){const Z=ie.isScene===!0?ie.overrideMaterial:null;for(let U=0,se=z.length;U<se;U++){const fe=z[U],$e=fe.object,Be=fe.geometry,Ue=Z===null?fe.material:Z,Ke=fe.group;$e.layers.test(ce.layers)&&St($e,ie,ce,Be,Ue,Ke)}}function St(z,ie,ce,Z,U,se){z.onBeforeRender(x,ie,ce,Z,U,se),z.modelViewMatrix.multiplyMatrices(ce.matrixWorldInverse,z.matrixWorld),z.normalMatrix.getNormalMatrix(z.modelViewMatrix),U.onBeforeRender(x,ie,ce,Z,z,se),U.transparent===!0&&U.side===ol&&U.forceSinglePass===!1?(U.side=ts,U.needsUpdate=!0,x.renderBufferDirect(ce,ie,Z,U,z,se),U.side=ru,U.needsUpdate=!0,x.renderBufferDirect(ce,ie,Z,U,z,se),U.side=ol):x.renderBufferDirect(ce,ie,Z,U,z,se),z.onAfterRender(x,ie,ce,Z,U,se)}function on(z,ie,ce){ie.isScene!==!0&&(ie=ue);const Z=Pe.get(z),U=g.state.lights,se=g.state.shadowsArray,fe=U.state.version,$e=je.getParameters(z,U.state,se,ie,ce),Be=je.getProgramCacheKey($e);let Ue=Z.programs;Z.environment=z.isMeshStandardMaterial?ie.environment:null,Z.fog=ie.fog,Z.envMap=(z.isMeshStandardMaterial?re:B).get(z.envMap||Z.environment),Ue===void 0&&(z.addEventListener("dispose",Ee),Ue=new Map,Z.programs=Ue);let Ke=Ue.get(Be);if(Ke!==void 0){if(Z.currentProgram===Ke&&Z.lightsStateVersion===fe)return cn(z,$e),Ke}else $e.uniforms=je.getUniforms(z),z.onBuild(ce,$e,x),z.onBeforeCompile($e,x),Ke=je.acquireProgram($e,Be),Ue.set(Be,Ke),Z.uniforms=$e.uniforms;const ut=Z.uniforms;return(!z.isShaderMaterial&&!z.isRawShaderMaterial||z.clipping===!0)&&(ut.clippingPlanes=at.uniform),cn(z,$e),Z.needsLights=Wr(z),Z.lightsStateVersion=fe,Z.needsLights&&(ut.ambientLightColor.value=U.state.ambient,ut.lightProbe.value=U.state.probe,ut.directionalLights.value=U.state.directional,ut.directionalLightShadows.value=U.state.directionalShadow,ut.spotLights.value=U.state.spot,ut.spotLightShadows.value=U.state.spotShadow,ut.rectAreaLights.value=U.state.rectArea,ut.ltc_1.value=U.state.rectAreaLTC1,ut.ltc_2.value=U.state.rectAreaLTC2,ut.pointLights.value=U.state.point,ut.pointLightShadows.value=U.state.pointShadow,ut.hemisphereLights.value=U.state.hemi,ut.directionalShadowMap.value=U.state.directionalShadowMap,ut.directionalShadowMatrix.value=U.state.directionalShadowMatrix,ut.spotShadowMap.value=U.state.spotShadowMap,ut.spotLightMatrix.value=U.state.spotLightMatrix,ut.spotLightMap.value=U.state.spotLightMap,ut.pointShadowMap.value=U.state.pointShadowMap,ut.pointShadowMatrix.value=U.state.pointShadowMatrix),Z.currentProgram=Ke,Z.uniformsList=null,Ke}function kn(z){if(z.uniformsList===null){const ie=z.currentProgram.getUniforms();z.uniformsList=_w.seqWithValue(ie.seq,z.uniforms)}return z.uniformsList}function cn(z,ie){const ce=Pe.get(z);ce.outputColorSpace=ie.outputColorSpace,ce.batching=ie.batching,ce.instancing=ie.instancing,ce.instancingColor=ie.instancingColor,ce.skinning=ie.skinning,ce.morphTargets=ie.morphTargets,ce.morphNormals=ie.morphNormals,ce.morphColors=ie.morphColors,ce.morphTargetsCount=ie.morphTargetsCount,ce.numClippingPlanes=ie.numClippingPlanes,ce.numIntersection=ie.numClipIntersection,ce.vertexAlphas=ie.vertexAlphas,ce.vertexTangents=ie.vertexTangents,ce.toneMapping=ie.toneMapping}function Ft(z,ie,ce,Z,U){ie.isScene!==!0&&(ie=ue),$.resetTextureUnits();const se=ie.fog,fe=Z.isMeshStandardMaterial?ie.environment:null,$e=T===null?x.outputColorSpace:T.isXRRenderTarget===!0?T.texture.colorSpace:Nl,Be=(Z.isMeshStandardMaterial?re:B).get(Z.envMap||fe),Ue=Z.vertexColors===!0&&!!ce.attributes.color&&ce.attributes.color.itemSize===4,Ke=!!ce.attributes.tangent&&(!!Z.normalMap||Z.anisotropy>0),ut=!!ce.morphAttributes.position,Qt=!!ce.morphAttributes.normal,On=!!ce.morphAttributes.color;let yt=Wc;Z.toneMapped&&(T===null||T.isXRRenderTarget===!0)&&(yt=x.toneMapping);const wr=ce.morphAttributes.position||ce.morphAttributes.normal||ce.morphAttributes.color,Zt=wr!==void 0?wr.length:0,xt=Pe.get(Z),Y2=g.state.lights;if(Y===!0&&(te===!0||z!==A)){const Os=z===A&&Z.id===M;at.setState(Z,z,Os)}let zn=!1;Z.version===xt.__version?(xt.needsLights&&xt.lightsStateVersion!==Y2.state.version||xt.outputColorSpace!==$e||U.isBatchedMesh&&xt.batching===!1||!U.isBatchedMesh&&xt.batching===!0||U.isInstancedMesh&&xt.instancing===!1||!U.isInstancedMesh&&xt.instancing===!0||U.isSkinnedMesh&&xt.skinning===!1||!U.isSkinnedMesh&&xt.skinning===!0||U.isInstancedMesh&&xt.instancingColor===!0&&U.instanceColor===null||U.isInstancedMesh&&xt.instancingColor===!1&&U.instanceColor!==null||xt.envMap!==Be||Z.fog===!0&&xt.fog!==se||xt.numClippingPlanes!==void 0&&(xt.numClippingPlanes!==at.numPlanes||xt.numIntersection!==at.numIntersection)||xt.vertexAlphas!==Ue||xt.vertexTangents!==Ke||xt.morphTargets!==ut||xt.morphNormals!==Qt||xt.morphColors!==On||xt.toneMapping!==yt||xe.isWebGL2===!0&&xt.morphTargetsCount!==Zt)&&(zn=!0):(zn=!0,xt.__version=Z.version);let _u=xt.currentProgram;zn===!0&&(_u=on(Z,ie,U));let nI=!1,Gp=!1,X2=!1;const Gr=_u.getUniforms(),Su=xt.uniforms;if(we.useProgram(_u.program)&&(nI=!0,Gp=!0,X2=!0),Z.id!==M&&(M=Z.id,Gp=!0),nI||A!==z){Gr.setValue(H,"projectionMatrix",z.projectionMatrix),Gr.setValue(H,"viewMatrix",z.matrixWorldInverse);const Os=Gr.map.cameraPosition;Os!==void 0&&Os.setValue(H,J.setFromMatrixPosition(z.matrixWorld)),xe.logarithmicDepthBuffer&&Gr.setValue(H,"logDepthBufFC",2/(Math.log(z.far+1)/Math.LN2)),(Z.isMeshPhongMaterial||Z.isMeshToonMaterial||Z.isMeshLambertMaterial||Z.isMeshBasicMaterial||Z.isMeshStandardMaterial||Z.isShaderMaterial)&&Gr.setValue(H,"isOrthographic",z.isOrthographicCamera===!0),A!==z&&(A=z,Gp=!0,X2=!0)}if(U.isSkinnedMesh){Gr.setOptional(H,U,"bindMatrix"),Gr.setOptional(H,U,"bindMatrixInverse");const Os=U.skeleton;Os&&(xe.floatVertexTextures?(Os.boneTexture===null&&Os.computeBoneTexture(),Gr.setValue(H,"boneTexture",Os.boneTexture,$)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}U.isBatchedMesh&&(Gr.setOptional(H,U,"batchingTexture"),Gr.setValue(H,"batchingTexture",U._matricesTexture,$));const K2=ce.morphAttributes;if((K2.position!==void 0||K2.normal!==void 0||K2.color!==void 0&&xe.isWebGL2===!0)&&qe.update(U,ce,_u),(Gp||xt.receiveShadow!==U.receiveShadow)&&(xt.receiveShadow=U.receiveShadow,Gr.setValue(H,"receiveShadow",U.receiveShadow)),Z.isMeshGouraudMaterial&&Z.envMap!==null&&(Su.envMap.value=Be,Su.flipEnvMap.value=Be.isCubeTexture&&Be.isRenderTargetTexture===!1?-1:1),Gp&&(Gr.setValue(H,"toneMappingExposure",x.toneMappingExposure),xt.needsLights&&qt(Su,X2),se&&Z.fog===!0&&be.refreshFogUniforms(Su,se),be.refreshMaterialUniforms(Su,Z,F,L,Q),_w.upload(H,kn(xt),Su,$)),Z.isShaderMaterial&&Z.uniformsNeedUpdate===!0&&(_w.upload(H,kn(xt),Su,$),Z.uniformsNeedUpdate=!1),Z.isSpriteMaterial&&Gr.setValue(H,"center",U.center),Gr.setValue(H,"modelViewMatrix",U.modelViewMatrix),Gr.setValue(H,"normalMatrix",U.normalMatrix),Gr.setValue(H,"modelMatrix",U.matrixWorld),Z.isShaderMaterial||Z.isRawShaderMaterial){const Os=Z.uniformsGroups;for(let Q2=0,Hte=Os.length;Q2<Hte;Q2++)if(xe.isWebGL2){const rI=Os[Q2];vt.update(rI,_u),vt.bind(rI,_u)}else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.")}return _u}function qt(z,ie){z.ambientLightColor.needsUpdate=ie,z.lightProbe.needsUpdate=ie,z.directionalLights.needsUpdate=ie,z.directionalLightShadows.needsUpdate=ie,z.pointLights.needsUpdate=ie,z.pointLightShadows.needsUpdate=ie,z.spotLights.needsUpdate=ie,z.spotLightShadows.needsUpdate=ie,z.rectAreaLights.needsUpdate=ie,z.hemisphereLights.needsUpdate=ie}function Wr(z){return z.isMeshLambertMaterial||z.isMeshToonMaterial||z.isMeshPhongMaterial||z.isMeshStandardMaterial||z.isShadowMaterial||z.isShaderMaterial&&z.lights===!0}this.getActiveCubeFace=function(){return _},this.getActiveMipmapLevel=function(){return S},this.getRenderTarget=function(){return T},this.setRenderTargetTextures=function(z,ie,ce){Pe.get(z.texture).__webglTexture=ie,Pe.get(z.depthTexture).__webglTexture=ce;const Z=Pe.get(z);Z.__hasExternalTextures=!0,Z.__hasExternalTextures&&(Z.__autoAllocateDepthBuffer=ce===void 0,Z.__autoAllocateDepthBuffer||he.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),Z.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(z,ie){const ce=Pe.get(z);ce.__webglFramebuffer=ie,ce.__useDefaultFramebuffer=ie===void 0},this.setRenderTarget=function(z,ie=0,ce=0){T=z,_=ie,S=ce;let Z=!0,U=null,se=!1,fe=!1;if(z){const Be=Pe.get(z);Be.__useDefaultFramebuffer!==void 0?(we.bindFramebuffer(H.FRAMEBUFFER,null),Z=!1):Be.__webglFramebuffer===void 0?$.setupRenderTarget(z):Be.__hasExternalTextures&&$.rebindTextures(z,Pe.get(z.texture).__webglTexture,Pe.get(z.depthTexture).__webglTexture);const Ue=z.texture;(Ue.isData3DTexture||Ue.isDataArrayTexture||Ue.isCompressedArrayTexture)&&(fe=!0);const Ke=Pe.get(z).__webglFramebuffer;z.isWebGLCubeRenderTarget?(Array.isArray(Ke[ie])?U=Ke[ie][ce]:U=Ke[ie],se=!0):xe.isWebGL2&&z.samples>0&&$.useMultisampledRTT(z)===!1?U=Pe.get(z).__webglMultisampledFramebuffer:Array.isArray(Ke)?U=Ke[ce]:U=Ke,C.copy(z.viewport),R.copy(z.scissor),j=z.scissorTest}else C.copy(N).multiplyScalar(F).floor(),R.copy(G).multiplyScalar(F).floor(),j=q;if(we.bindFramebuffer(H.FRAMEBUFFER,U)&&xe.drawBuffers&&Z&&we.drawBuffers(z,U),we.viewport(C),we.scissor(R),we.setScissorTest(j),se){const Be=Pe.get(z.texture);H.framebufferTexture2D(H.FRAMEBUFFER,H.COLOR_ATTACHMENT0,H.TEXTURE_CUBE_MAP_POSITIVE_X+ie,Be.__webglTexture,ce)}else if(fe){const Be=Pe.get(z.texture),Ue=ie||0;H.framebufferTextureLayer(H.FRAMEBUFFER,H.COLOR_ATTACHMENT0,Be.__webglTexture,ce||0,Ue)}M=-1},this.readRenderTargetPixels=function(z,ie,ce,Z,U,se,fe){if(!(z&&z.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let $e=Pe.get(z).__webglFramebuffer;if(z.isWebGLCubeRenderTarget&&fe!==void 0&&($e=$e[fe]),$e){we.bindFramebuffer(H.FRAMEBUFFER,$e);try{const Be=z.texture,Ue=Be.format,Ke=Be.type;if(Ue!==Uo&&Oe.convert(Ue)!==H.getParameter(H.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const ut=Ke===f0&&(he.has("EXT_color_buffer_half_float")||xe.isWebGL2&&he.has("EXT_color_buffer_float"));if(Ke!==Gc&&Oe.convert(Ke)!==H.getParameter(H.IMPLEMENTATION_COLOR_READ_TYPE)&&!(Ke===Cc&&(xe.isWebGL2||he.has("OES_texture_float")||he.has("WEBGL_color_buffer_float")))&&!ut){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}ie>=0&&ie<=z.width-Z&&ce>=0&&ce<=z.height-U&&H.readPixels(ie,ce,Z,U,Oe.convert(Ue),Oe.convert(Ke),se)}finally{const Be=T!==null?Pe.get(T).__webglFramebuffer:null;we.bindFramebuffer(H.FRAMEBUFFER,Be)}}},this.copyFramebufferToTexture=function(z,ie,ce=0){const Z=Math.pow(2,-ce),U=Math.floor(ie.image.width*Z),se=Math.floor(ie.image.height*Z);$.setTexture2D(ie,0),H.copyTexSubImage2D(H.TEXTURE_2D,ce,0,0,z.x,z.y,U,se),we.unbindTexture()},this.copyTextureToTexture=function(z,ie,ce,Z=0){const U=ie.image.width,se=ie.image.height,fe=Oe.convert(ce.format),$e=Oe.convert(ce.type);$.setTexture2D(ce,0),H.pixelStorei(H.UNPACK_FLIP_Y_WEBGL,ce.flipY),H.pixelStorei(H.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ce.premultiplyAlpha),H.pixelStorei(H.UNPACK_ALIGNMENT,ce.unpackAlignment),ie.isDataTexture?H.texSubImage2D(H.TEXTURE_2D,Z,z.x,z.y,U,se,fe,$e,ie.image.data):ie.isCompressedTexture?H.compressedTexSubImage2D(H.TEXTURE_2D,Z,z.x,z.y,ie.mipmaps[0].width,ie.mipmaps[0].height,fe,ie.mipmaps[0].data):H.texSubImage2D(H.TEXTURE_2D,Z,z.x,z.y,fe,$e,ie.image),Z===0&&ce.generateMipmaps&&H.generateMipmap(H.TEXTURE_2D),we.unbindTexture()},this.copyTextureToTexture3D=function(z,ie,ce,Z,U=0){if(x.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const se=z.max.x-z.min.x+1,fe=z.max.y-z.min.y+1,$e=z.max.z-z.min.z+1,Be=Oe.convert(Z.format),Ue=Oe.convert(Z.type);let Ke;if(Z.isData3DTexture)$.setTexture3D(Z,0),Ke=H.TEXTURE_3D;else if(Z.isDataArrayTexture||Z.isCompressedArrayTexture)$.setTexture2DArray(Z,0),Ke=H.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}H.pixelStorei(H.UNPACK_FLIP_Y_WEBGL,Z.flipY),H.pixelStorei(H.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Z.premultiplyAlpha),H.pixelStorei(H.UNPACK_ALIGNMENT,Z.unpackAlignment);const ut=H.getParameter(H.UNPACK_ROW_LENGTH),Qt=H.getParameter(H.UNPACK_IMAGE_HEIGHT),On=H.getParameter(H.UNPACK_SKIP_PIXELS),yt=H.getParameter(H.UNPACK_SKIP_ROWS),wr=H.getParameter(H.UNPACK_SKIP_IMAGES),Zt=ce.isCompressedTexture?ce.mipmaps[U]:ce.image;H.pixelStorei(H.UNPACK_ROW_LENGTH,Zt.width),H.pixelStorei(H.UNPACK_IMAGE_HEIGHT,Zt.height),H.pixelStorei(H.UNPACK_SKIP_PIXELS,z.min.x),H.pixelStorei(H.UNPACK_SKIP_ROWS,z.min.y),H.pixelStorei(H.UNPACK_SKIP_IMAGES,z.min.z),ce.isDataTexture||ce.isData3DTexture?H.texSubImage3D(Ke,U,ie.x,ie.y,ie.z,se,fe,$e,Be,Ue,Zt.data):ce.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),H.compressedTexSubImage3D(Ke,U,ie.x,ie.y,ie.z,se,fe,$e,Be,Zt.data)):H.texSubImage3D(Ke,U,ie.x,ie.y,ie.z,se,fe,$e,Be,Ue,Zt),H.pixelStorei(H.UNPACK_ROW_LENGTH,ut),H.pixelStorei(H.UNPACK_IMAGE_HEIGHT,Qt),H.pixelStorei(H.UNPACK_SKIP_PIXELS,On),H.pixelStorei(H.UNPACK_SKIP_ROWS,yt),H.pixelStorei(H.UNPACK_SKIP_IMAGES,wr),U===0&&Z.generateMipmaps&&H.generateMipmap(Ke),we.unbindTexture()},this.initTexture=function(z){z.isCubeTexture?$.setTextureCube(z,0):z.isData3DTexture?$.setTexture3D(z,0):z.isDataArrayTexture||z.isCompressedArrayTexture?$.setTexture2DArray(z,0):$.setTexture2D(z,0),we.unbindTexture()},this.resetState=function(){_=0,S=0,T=null,we.reset(),it.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return fl}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===K3?"display-p3":"srgb",n.unpackColorSpace=un.workingColorSpace===V2?"display-p3":"srgb"}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===Dr?Ld:pte}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===Ld?Dr:Nl}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class _Ze extends tI{}_Ze.prototype.isWebGL1Renderer=!0;class Fte extends ci{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n}}class Ute extends wh{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new kt(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const $8=new le,H8=new le,V8=new qn,GA=new Z3,Db=new ex;class SZe extends ci{constructor(e=new po,n=new Ute){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const n=e.attributes.position,r=[0];for(let i=1,s=n.count;i<s;i++)$8.fromBufferAttribute(n,i-1),H8.fromBufferAttribute(n,i),r[i]=r[i-1],r[i]+=$8.distanceTo(H8);e.setAttribute("lineDistance",new Yo(r,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,n){const r=this.geometry,i=this.matrixWorld,s=e.params.Line.threshold,o=r.drawRange;if(r.boundingSphere===null&&r.computeBoundingSphere(),Db.copy(r.boundingSphere),Db.applyMatrix4(i),Db.radius+=s,e.ray.intersectsSphere(Db)===!1)return;V8.copy(i).invert(),GA.copy(e.ray).applyMatrix4(V8);const a=s/((this.scale.x+this.scale.y+this.scale.z)/3),c=a*a,u=new le,d=new le,h=new le,f=new le,m=this.isLineSegments?2:1,v=r.index,g=r.attributes.position;if(v!==null){const y=Math.max(0,o.start),b=Math.min(v.count,o.start+o.count);for(let x=y,w=b-1;x<w;x+=m){const _=v.getX(x),S=v.getX(x+1);if(u.fromBufferAttribute(g,_),d.fromBufferAttribute(g,S),GA.distanceSqToSegment(u,d,f,h)>c)continue;f.applyMatrix4(this.matrixWorld);const M=e.ray.origin.distanceTo(f);M<e.near||M>e.far||n.push({distance:M,point:h.clone().applyMatrix4(this.matrixWorld),index:x,face:null,faceIndex:null,object:this})}}else{const y=Math.max(0,o.start),b=Math.min(g.count,o.start+o.count);for(let x=y,w=b-1;x<w;x+=m){if(u.fromBufferAttribute(g,x),d.fromBufferAttribute(g,x+1),GA.distanceSqToSegment(u,d,f,h)>c)continue;f.applyMatrix4(this.matrixWorld);const S=e.ray.origin.distanceTo(f);S<e.near||S>e.far||n.push({distance:S,point:h.clone().applyMatrix4(this.matrixWorld),index:x,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const n=this.geometry.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s<o;s++){const a=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=s}}}}}class Bte extends wh{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new kt(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const W8=new qn,Ej=new Z3,Fb=new ex,Ub=new le;class EZe extends ci{constructor(e=new po,n=new Bte){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}raycast(e,n){const r=this.geometry,i=this.matrixWorld,s=e.params.Points.threshold,o=r.drawRange;if(r.boundingSphere===null&&r.computeBoundingSphere(),Fb.copy(r.boundingSphere),Fb.applyMatrix4(i),Fb.radius+=s,e.ray.intersectsSphere(Fb)===!1)return;W8.copy(i).invert(),Ej.copy(e.ray).applyMatrix4(W8);const a=s/((this.scale.x+this.scale.y+this.scale.z)/3),c=a*a,u=r.index,h=r.attributes.position;if(u!==null){const f=Math.max(0,o.start),m=Math.min(u.count,o.start+o.count);for(let v=f,p=m;v<p;v++){const g=u.getX(v);Ub.fromBufferAttribute(h,g),G8(Ub,g,c,i,e,n,this)}}else{const f=Math.max(0,o.start),m=Math.min(h.count,o.start+o.count);for(let v=f,p=m;v<p;v++)Ub.fromBufferAttribute(h,v),G8(Ub,v,c,i,e,n,this)}}updateMorphTargets(){const n=this.geometry.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s<o;s++){const a=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=s}}}}}function G8(t,e,n,r,i,s,o){const a=Ej.distanceSqToPoint(t);if(a<n){const c=new le;Ej.closestPointToPoint(t,c),c.applyMatrix4(r);const u=i.ray.origin.distanceTo(c);if(u<i.near||u>i.far)return;s.push({distance:u,distanceToRay:Math.sqrt(a),point:c,index:e,face:null,object:o})}}class U_ extends po{constructor(e=1,n=32,r=16,i=0,s=Math.PI*2,o=0,a=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:n,heightSegments:r,phiStart:i,phiLength:s,thetaStart:o,thetaLength:a},n=Math.max(3,Math.floor(n)),r=Math.max(2,Math.floor(r));const c=Math.min(o+a,Math.PI);let u=0;const d=[],h=new le,f=new le,m=[],v=[],p=[],g=[];for(let y=0;y<=r;y++){const b=[],x=y/r;let w=0;y===0&&o===0?w=.5/n:y===r&&c===Math.PI&&(w=-.5/n);for(let _=0;_<=n;_++){const S=_/n;h.x=-e*Math.cos(i+S*s)*Math.sin(o+x*a),h.y=e*Math.cos(o+x*a),h.z=e*Math.sin(i+S*s)*Math.sin(o+x*a),v.push(h.x,h.y,h.z),f.copy(h).normalize(),p.push(f.x,f.y,f.z),g.push(S+w,1-x),b.push(u++)}d.push(b)}for(let y=0;y<r;y++)for(let b=0;b<n;b++){const x=d[y][b+1],w=d[y][b],_=d[y+1][b],S=d[y+1][b+1];(y!==0||o>0)&&m.push(x,w,S),(y!==r-1||c<Math.PI)&&m.push(w,_,S)}this.setIndex(m),this.setAttribute("position",new Yo(v,3)),this.setAttribute("normal",new Yo(p,3)),this.setAttribute("uv",new Yo(g,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new U_(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}class q8 extends wh{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new kt(16777215),this.specular=new kt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new kt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=gte,this.normalScale=new Ht(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Y3,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class zte extends ci{constructor(e,n=1){super(),this.isLight=!0,this.type="Light",this.color=new kt(e),this.intensity=n}dispose(){}copy(e,n){return super.copy(e,n),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const n=super.toJSON(e);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,this.groundColor!==void 0&&(n.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(n.object.distance=this.distance),this.angle!==void 0&&(n.object.angle=this.angle),this.decay!==void 0&&(n.object.decay=this.decay),this.penumbra!==void 0&&(n.object.penumbra=this.penumbra),this.shadow!==void 0&&(n.object.shadow=this.shadow.toJSON()),n}}const qA=new qn,Y8=new le,X8=new le;class TZe{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Ht(512,512),this.map=null,this.mapPass=null,this.matrix=new qn,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new J3,this._frameExtents=new Ht(1,1),this._viewportCount=1,this._viewports=[new jn(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const n=this.camera,r=this.matrix;Y8.setFromMatrixPosition(e.matrixWorld),n.position.copy(Y8),X8.setFromMatrixPosition(e.target.matrixWorld),n.lookAt(X8),n.updateMatrixWorld(),qA.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(qA),r.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),r.multiply(qA)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radiu
10582s=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}const K8=new qn,jg=new le,YA=new le;class AZe extends TZe{constructor(){super(new gs(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Ht(4,2),this._viewportCount=6,this._viewports=[new jn(2,1,1,1),new jn(0,1,1,1),new jn(3,1,1,1),new jn(1,1,1,1),new jn(3,0,1,1),new jn(1,0,1,1)],this._cubeDirections=[new le(1,0,0),new le(-1,0,0),new le(0,0,1),new le(0,0,-1),new le(0,1,0),new le(0,-1,0)],this._cubeUps=[new le(0,1,0),new le(0,1,0),new le(0,1,0),new le(0,1,0),new le(0,0,1),new le(0,0,-1)]}updateMatrices(e,n=0){const r=this.camera,i=this.matrix,s=e.distance||r.far;s!==r.far&&(r.far=s,r.updateProjectionMatrix()),jg.setFromMatrixPosition(e.matrixWorld),r.position.copy(jg),YA.copy(r.position),YA.add(this._cubeDirections[n]),r.up.copy(this._cubeUps[n]),r.lookAt(YA),r.updateMatrixWorld(),i.makeTranslation(-jg.x,-jg.y,-jg.z),K8.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),this._frustum.setFromProjectionMatrix(K8)}}class XA extends zte{constructor(e,n,r=0,i=2){super(e,n),this.isPointLight=!0,this.type="PointLight",this.distance=r,this.decay=i,this.shadow=new AZe}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class CZe extends zte{constructor(e,n){super(e,n),this.isAmbientLight=!0,this.type="AmbientLight"}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:q3}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=q3);const MZe=()=>{const t=E.useRef(null),e=E.useRef({});return E.useEffect(()=>{if(!t.current)return;const n=new Fte;n.background=null;const r=new gs(50,t.current.clientWidth/t.current.clientHeight,.1,200);r.position.set(22.5,15.75,22.5),r.lookAt(0,0,0);const i=new tI({antialias:!0,alpha:!0});i.setSize(t.current.clientWidth,t.current.clientHeight),i.setPixelRatio(Math.min(window.devicePixelRatio,2)),i.setClearColor(0,0),t.current.appendChild(i.domElement);const s=new CZe(2763322,.3);n.add(s);const o=new XA(16751052,1.2,0,2);o.position.set(8,10,6),n.add(o);const a=new XA(10185653,.8,0,2);a.position.set(-5,3,-5),n.add(a);const c=new XA(7068927,.5,0,2);c.position.set(0,-8,8),n.add(c);const u=new U_(.75,64,64),d=new q8({color:14836362,emissive:14836362,emissiveIntensity:.9,shininess:200,specular:16777215}),h=new Vo(u,d);n.add(h);const f=new U_(.175,48,48),m=new q8({color:10185653,emissive:10185653,emissiveIntensity:.85,shininess:220,specular:16777215}),v=new Vo(f,m);n.add(v);const p=800,g=new po,y=new Float32Array(p*3);for(let Q=0;Q<p;Q++){const X=gqe.randFloat(18,45),ae=Math.random()*Math.PI*2,J=Math.random()*Math.PI;y[Q*3]=X*Math.sin(J)*Math.cos(ae),y[Q*3+1]=X*Math.cos(J),y[Q*3+2]=X*Math.sin(J)*Math.sin(ae)}g.setAttribute("position",new As(y,3));const b=new Bte({color:16777215,size:.12,transparent:!0,opacity:.9,sizeAttenuation:!0}),x=new EZe(g,b);n.add(x);const w=150,_=[],S=new po,T=new Float32Array(w*3),M=new Float32Array(w*3);S.setAttribute("position",new As(T,3)),S.setAttribute("color",new As(M,3));const A=new Ute({vertexColors:!0,transparent:!0,opacity:.7,linewidth:2}),C=new SZe(S,A);n.add(C);let R=0,j=0,k=0;const P=12.5,O=5,L=new kt(10185653),F=new kt(15658734);let D=!1,I={x:0,y:0};const N=Q=>{D=!0,I={x:Q.clientX,y:Q.clientY}},G=Q=>{if(D){const X={x:Q.clientX-I.x,y:Q.clientY-I.y};r.position.x+=X.x*.02,r.position.y-=X.y*.02,r.lookAt(0,0,0)}I={x:Q.clientX,y:Q.clientY}},q=()=>{D=!1},W=Q=>{Q.preventDefault();const X=.1,ae=r.position.clone().normalize(),J=r.position.length(),ue=Math.max(3,Math.min(80,J+Q.deltaY*X));r.position.copy(ae.multiplyScalar(ue))};i.domElement.addEventListener("mousedown",N),i.domElement.addEventListener("mousemove",G),i.domElement.addEventListener("mouseup",q),i.domElement.addEventListener("wheel",W);const Y=()=>{requestAnimationFrame(Y);const Q=performance.now(),X=j?(Q-j)/1e3:.016;j=Q;const ae=Math.min(X,.1),ue=O/P*ae*2;R+=ue,R>Math.PI*2&&(R-=Math.PI*2);const de=1,H=2,_e=Math.PI/2,he=P*Math.sin(de*R),xe=P*.9*Math.sin(H*R+_e),we=-P*Math.cos(de*R);if(v.position.set(he,xe,we),k++,k%2===0){_.push({x:he,y:xe,z:we}),_.length>w&&_.shift();const B=C.geometry.attributes.position.array,re=C.geometry.attributes.color.array;for(let pe=0;pe<_.length;pe++){const ge=_[pe],ye=pe*3;B[ye]=ge.x,B[ye+1]=ge.y,B[ye+2]=ge.z;const je=pe/Math.max(1,_.length-1),be=L.clone().lerp(F,je);re[ye]=be.r,re[ye+1]=be.g,re[ye+2]=be.b}C.geometry.attributes.position.needsUpdate=!0,C.geometry.attributes.color.needsUpdate=!0,C.geometry.setDrawRange(0,_.length)}const ne=(Math.sin(performance.now()/800)+1)*.5*.4,Pe=1+ne*3;h.scale.set(Pe,Pe,Pe);const $=1+ne*4;v.scale.set($,$,$),h.rotation.y+=.3*ae,h.rotation.x+=.1*ae,i.render(n,r)};Y();const te=()=>{if(!t.current)return;const Q=t.current.clientWidth,X=t.current.clientHeight;r.aspect=Q/X,r.updateProjectionMatrix(),i.setSize(Q,X)};return window.addEventListener("resize",te),e.current={scene:n,camera:r,renderer:i,satellite:v,listener:h,trailLine:C,animate:Y},()=>{window.removeEventListener("resize",te),i.domElement.removeEventListener("mousedown",N),i.domElement.removeEventListener("mousemove",G),i.domElement.removeEventListener("mouseup",q),i.domElement.removeEventListener("wheel",W),t.current&&i.domElement&&t.current.removeChild(i.domElement),i.dispose(),S.dispose(),A.dispose(),u.dispose(),d.dispose(),f.dispose(),m.dispose(),g.dispose(),b.dispose()}},[]),l.jsx("div",{ref:t,className:"relative w-full aspect-square max-w-[600px] mx-auto rounded-2xl overflow-hidden border border-border/50 z-10",style:{cursor:"grab"}})},RZe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Spatial Audio - 3D S
10582ound with Headphones | RORA"}),l.jsx("meta",{name:"description",content:"Make sound move around your head in 3D space. Creates the '8D audio' effect. Headphones required."}),l.jsx("meta",{property:"og:title",content:"Spatial Audio - 3D Audio Effect | RORA"}),l.jsx("meta",{property:"og:description",content:"Sound that moves around you. Headphones required."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/spatial-audio"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Spatial Audio - 3D Audio Effect | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Sound that moves around you. Headphones required."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/spatial-audio"})]}),l.jsx(ss,{title:"Spatial Audio",tagline:"Sound that moves around you",icon:l.jsx("img",{src:"/icons/ionicons/headset.svg",className:"w-12 h-12 brightness-0 invert",alt:"Spatial Audio icon"}),category:"3D Effects (Headphones Required)",overview:"Put on headphones and hear sound move around your head: in front of you, behind you, circling above. This is the '8D audio' effect you may have heard online. It only works with headphones. Speakers can't create this effect.",detailedDescription:["Spatial Audio positions sound in 3D space around your head. The technology mimics how your ears naturally locate sounds, using tiny differences in timing and tone between your left and right ear.","You can control how far away the sound seems (close to your head or across the room), how fast it moves, and whether it circles horizontally or in a more complex 3D pattern.","Note: This genuinely requires headphones or earbuds. Speakers play both channels into the room where they mix together, destroying the positioning effect. Any headphones work, nothing special required."],specs:[{label:"Effect",value:"3D sound positioning"},{label:"Patterns",value:"Circular (horizontal) or Orbital (3D)"},{label:"Distance",value:"Adjustable (close to far)"},{label:"Speed",value:"Adjustable (still to fast)"},{label:"Headphones",value:"Required (any type works)"},{label:"Speakers",value:"Will not work"}],useCases:[{title:"Music Experience",description:"Add movement and dimension to music. Electronic, ambient, and soundtrack genres work especially well."},{title:"8D Audio Effect",description:"Recreate the popular 8D audio effect. Medium distance, medium speed, circular pattern is the classic setup."},{title:"Relaxation & Focus",description:"Some people find subtle spatial movement helpful for concentration or relaxation. Slow, gentle movement creates ambient interest."},{title:"Creative Experimentation",description:"Explore how different music sounds in 3D space. Fast orbital patterns create dramatic, experimental effects."}],howItWorks:["Audio is positioned at a point in 3D space around your head.","The position moves over time based on speed and pattern settings.","Your headphones receive different signals for left and right ears.","Your brain interprets these differences as sound coming from that position in space."],faqs:[{question:"Why doesn't this work with my speakers?",answer:"Speakers play both channels into the room where they mix. Headphones deliver separate signals to each ear, which is required for the 3D positioning effect."},{question:"Why does it sound different from '8D audio' videos online?",answer:"Many online videos use simple left-right panning. RORA's implementation uses actual 3D positioning, including sounds that appear behind or above you."},{question:"Can I make the sound stay in one position?",answer:"Yes. Set Speed to 0% and the sound stays fixed at whatever Distance you choose."},{question:"What's the difference between Circular and Orbital?",answer:"Circular moves horizontally at ear level. Orbital moves up, down, and around in a more complex 3D pattern."},{question:"Do I need special headphones?",answer:"No. Any headphones or earbuds work: gaming headsets, earbuds, wired or wireless, anything."}],relatedFilters:[{name:"Reverb",slug:"reverb"},{name:"Echo",slug:"echo"},{name:"Visual EQ",slug:"visual-eq"}],customPreview:l.jsx(MZe,{}),customPreviewFullWidth:!1})]}),$te=V.memo(function({mainCircleSize:e=210,mainCircleOpacity:n=.35,numCircles:r=8,className:i,...s}){return l.jsx("div",{className:He("pointer-events-none absolute inset-0 select-none",i),...s,children:Array.from({length:r},(o,a)=>{const c=e+a*70,u=n-a*.03,d=`${a*.06}s`,h="solid",f=a/(r-1),m=(1-f)*100,v=f*100,p=`radial-gradient(circle, rgba(226, 98, 138, ${u*.8}) 0%, rgba(98, 0, 238, ${u*.8}) 100%)`,g=`color-mix(in srgb, #E2628A ${m}%, #6200EE ${v}%)`;return l.jsx("div",{className:"animate-ripple absolute rounded-full border-2 shadow-2xl",style:{"--i":a,width:`${c}px`,height:`${c}px`,opacity:u,animationDelay:d,borderStyle:h,background:p,borderColor:g,top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)"}},a)})})});$te.displayName="Ripple";const PZe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Reverb - Add Room Ambience | RORA"}),l.jsx("meta",{name:"description",content:"Add natural room ambience to dry recordings. Like listening in a living room instead of a recording booth."}),l.jsx("meta",{property:"og:title",content:"Reverb - Room Ambience | RORA"}),l.jsx("meta",{property:"og:description",content:"Add the room to the recording."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/reverb"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Reverb - Room Ambience | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Add the room to the recording."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/reverb"})]}),l.jsx(ss,{title:"Reverb",tagline:"Add the room to the recording",icon:l.jsx("img",{src:"/icons/ionicons/cube.svg",className:"w-12 h-12 brightness-0 invert",alt:"Reverb icon"}),category:"Spatial Effects",overview:"Some recordings sound dry and close, like the microphone was right against someone's mouth. Reverb adds room ambience, making audio sound like it was recorded in a real space instead of a booth.",detailedDescription:["At low intensity, Reverb adds subtle warmth and presence. Dry podcasts s
10582ound less clinical. Studio recordings feel more natural. The effect is barely noticeable but makes a difference.","At higher intensity, the effect becomes more obvious: concert hall atmosphere, spacious ambience, dramatic depth. Good for music and creative effects, less practical for voice content.","The effect always keeps your original audio clear. Even at maximum intensity, significant dry signal remains so you can still understand speech and hear musical details."],specs:[{label:"What It Adds",value:"Room ambience and reflections"},{label:"Decay Time",value:"2.5 seconds"},{label:"Dry Signal",value:"Always preserved (never fully wet)"},{label:"Delay",value:"Minimal"},{label:"Character",value:"Natural, not metallic or artificial"}],useCases:[{title:"Dry Podcasts",description:"Add a touch of warmth to clinical-sounding voice recordings. Makes home-recorded audio sound more polished."},{title:"Music Enhancement",description:"Add depth and dimension to studio recordings. Makes flat mixes feel live."},{title:"Concert Feel",description:"Add hall ambience to classical, jazz, or acoustic recordings. Recreates the experience of live performance."},{title:"Voice Presence",description:"A subtle amount (10-20%) adds polish to voice content without making it sound obviously processed."}],howItWorks:["Your audio is split into two paths: one stays unchanged (dry), one gets reverb applied (wet).","The wet path simulates how sound bounces in a physical space: early reflections followed by gradual decay.","Both paths are combined, with the intensity slider controlling how much reverb is mixed in.","The result sounds like your audio playing in an actual room."],faqs:[{question:"Will this make everything sound like a bathroom?",answer:"No. Bathroom reverb is short and bright. This reverb is longer (2.5 seconds) and warmer, more like a living room or concert hall."},{question:"Why can't I make it fully wet?",answer:"100% reverb sounds distant and unclear. Keeping some dry signal preserves clarity and intelligibility. This is standard practice in audio production."},{question:"Can I use this on voice calls?",answer:"Yes, but use it subtly (10-30%). Heavy reverb on real-time communication can be fatiguing."},{question:"Does it work on music and voice?",answer:"Both. Reverb enhances any audio content. Try different intensities to find what works for each type."}],relatedFilters:[{name:"Echo",slug:"echo"},{name:"Spatial Audio",slug:"spatial-audio"},{name:"Muffler",slug:"muffler"}],uiPreview:{icon:"icon ion-md-cube",defaultValue:30,scaleLabels:["Dry","Room","Hall"]},customPreview:l.jsx("div",{className:"relative flex h-[416px] w-[416px] mx-auto flex-col items-center justify-center overflow-hidden rounded-full bg-background/50 backdrop-blur-sm -z-10",children:l.jsx($te,{mainCircleSize:84,numCircles:10})}),circularTextWrap:!0})]}),jZe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Echo - Repeating Delay Effect | RORA"}),l.jsx("meta",{name:"description",content:"Add repeating echoes to audio. Creates depth and atmosphere with rhythmic repeats that fade naturally."}),l.jsx("meta",{property:"og:title",content:"Echo - Delay Effect | RORA"}),l.jsx("meta",{property:"og:description",content:"Repeating echoes. Added depth."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/echo"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Echo - Delay Effect | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Repeating echoes. Added depth."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/echo"})]}),l.jsx(ss,{title:"Echo",tagline:"Repeating echoes. Added depth.",icon:l.jsx("img",{src:"/icons/ionicons/barcode-outline.svg",className:"w-12 h-12 brightness-0 invert",alt:"Echo icon"}),category:"Spatial Effects",overview:"Sound bouncing back. Like a canyon. Like an empty stadium. Echo creates repeating copies of your audio that fade away naturally, adding depth and atmosphere.",detailedDescription:["Echo is different from reverb. Reverb creates smooth, continuous ambience (thousands of reflections blended together). Echo creates distinct, rhythmic repetitions you can hear individually.","Each repeat is slightly darker than the last. The high frequencies fade faster, just like real echoes in physical spaces. This prevents harsh buildup and keeps the effect musical.","At low intensity, you get one or tw
10582o subtle repeats. At high intensity, echoes keep going longer, creating cascading waves of sound."],specs:[{label:"Delay Time",value:"300ms (fixed)"},{label:"Repeats",value:"Multiple, fading naturally"},{label:"Character",value:"Each repeat gets progressively warmer"},{label:"Mix",value:"Original audio always preserved"},{label:"Runaway Prevention",value:"Yes (can't create infinite feedback)"}],useCases:[{title:"Atmospheric Effects",description:"Add space and dimension to music. Especially effective on vocals, guitars, synths, and drums."},{title:"Electronic Music",description:"Create delay throws, buildups, and rhythmic textures. Essential effect for dub, electronic, and experimental genres."},{title:"Adding Space",description:"Make audio feel larger without the wash of reverb. Echo adds depth while keeping things distinct."},{title:"Creative Sound Design",description:"High feedback creates evolving delay clouds and experimental textures."}],howItWorks:["Audio is delayed by 300ms, creating the first echo.","That echo is fed back through the delay, creating another echo.","Each pass through the feedback loop is slightly quieter and warmer.","The process repeats until the echoes fade below hearing."],faqs:[{question:"Can I change the delay time?",answer:"Currently fixed at 300ms. This works for a wide range of content. Future updates may add adjustable timing."},{question:"Will high settings damage my speakers?",answer:"No. Feedback is capped to prevent runaway oscillation. The filter stays safe at all settings."},{question:"What's the difference between Echo and Reverb?",answer:"Reverb creates smooth, continuous ambience. Echo creates distinct, rhythmic repetitions. Both add space, but differently."},{question:"Why do the echoes get darker?",answer:"High frequencies fade faster in real-world echoes. This mimics natural acoustics and prevents harsh buildup."},{question:"Can I combine this with other filters?",answer:"Yes. Try Echo + Reverb for maximum space, or Echo + Muffler for lo-fi delay effects."}],relatedFilters:[{name:"Reverb",slug:"reverb"},{name:"Spatial Audio",slug:"spatial-audio"},{name:"Muffler",slug:"muffler"}],uiPreview:{icon:"icon ion-md-repeat",defaultValue:25,scaleLabels:["Subtle","Medium","Dramatic"]}})]}),NZe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Pitch Shift - Change the Key | RORA"}),l.jsx("meta",{name:"description",content:"Change the pitch of any audio up or down without affecting speed. Match songs to your vocal range or transpose for your instrument."}),l.jsx("meta",{property:"og:title",content:"Pitch Shift - Key Transposition | RORA"}),l.jsx("meta",{property:"og:description",content:"Shift the key. Keep the tempo."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/pitch-shifter"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Pitch Shift - Key Transposition | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Shift the key. Keep the tempo."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/pitch-shifter"})]}),l.jsx(ss,{title:"Pitch Shift",tagline:"Shift the key. Keep the tempo.",icon:l.jsx("img",{src:"/icons/ionicons/musical-note.svg",className:"w-12 h-12 brightness-0 invert",alt:"Pitch Shift icon"}),category:"Music Tools",overview:"A song is too high for your voice. A guitar part is in a different key. Pitch Shift changes the musical key up or down (up to 6 semitones either way) without changing the tempo. No chipmunk voices.",detailedDescription:["Normal pitch shifting just speeds up or slows down the audio. Higher pitch equals faster playback. Pitch Shift decouples pitch from speed so you get natural-sounding key changes at the original tempo.","The range is plus or minus 6 semitones (half an octave). Within this range, the audio quality stays high. Beyond that, artifacts become noticeable, so the range is limited to keep things sounding good.","Works in real-time. Adjust the pitch while listening and hear the change immediately. No waiting for processing."],specs:[{label:"Range",value:"±6 semitones (half octave)"},{label:"Tempo",value:"Unchanged"},{label:"Quality",value:"High within the ±6 range"},{label:"Control",value:"Real-time adjustment"},{label:"Delay",value:"About 20-40ms"}],useCases:[{title:"Karaoke & Singing",description:"A song is too high or too low for your voice? Shift it into your comfortable range and sing along at the original tempo."},{title:"Instrument Practice",description:"Match songs to your instrument's tuning or preferred key. Transpose without re-recording."},{title:"Learning Music",description:"Shift complex passages into easier-to-hear ranges. Lower a fast guitar solo to analyze it, or raise a bass line to hear it clearly."}
10582,{title:"Harmonies",description:"Shift a melody to hear what it sounds like in a different key. Useful for learning vocal harmonies."}],howItWorks:["Audio comes in and gets analyzed for pitch content.","The pitch is shifted up or down based on your setting.","Time is stretched or compressed to maintain the original tempo.","The result plays at the new pitch with unchanged speed."],faqs:[{question:"Will voices sound like chipmunks?",answer:"No. The tempo stays the same, so voices sound natural at the new pitch. Like a different singer, not sped-up audio."},{question:"Why limit to ±6 semitones?",answer:"Quality degrades rapidly beyond this range. We cap it where results still sound good. For extreme shifts, use specialized software."},{question:"Can I adjust pitch while audio is playing?",answer:"Yes. Changes happen immediately and smoothly."},{question:"Does this work with all audio types?",answer:"Yes. Music, speech, anything. Simple content (single voice or instrument) sounds most natural. Complex music may show slight artifacts at extreme settings."},{question:"Can I use this with Tempo Control?",answer:"Yes. Both work independently. You can shift pitch AND change tempo at the same time."}],relatedFilters:[{name:"Tempo Control",slug:"tempo-control"},{name:"Reverb",slug:"reverb"},{name:"Smooth Pro",slug:"smooth-pro"}],uiPreview:{icon:"icon ion-md-musical-note",defaultValue:0,min:-100,max:100,scaleLabels:["-6st","0","+6st"],valueFormatter:t=>{const e=t/100*6;return`${e>0?"+":""}${e.toFixed(1)}st`}}})]}),kZe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Tempo - Slow Down Without Pitch Change | RORA"}),l.jsx("meta",{name:"description",content:"Slow audio to half speed without changing pitch. Learn fast guitar solos, transcribe interviews, or study complex passages."}),l.jsx("meta",{property:"og:title",content:"Tempo - Speed Control | RORA"}),l.jsx("meta",{property:"og:description",content:"Slow it down. Learn it faster."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/tempo-control"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Tempo - Speed Control | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Slow it down. Learn it faster."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/tempo-control"})]}),l.jsx(ss,{title:"Tempo",tagline:"Slow it down. Learn it faster.",icon:l.jsx("img",{src:"/icons/ionicons/speedometer.svg",className:"w-12 h-12 brightness-0 invert",alt:"Tempo icon"}),category:"Music Tools",overview:"A fast guitar solo you can't follow. Rapid speech you need to transcribe. Complex harmonie
10582s you want to pick apart. Tempo slows audio down to half speed without changing the pitch. The music stays in key, just slower.",detailedDescription:["Normal slow-motion makes audio deeper (lower pitch). Tempo Control keeps the pitch unchanged while stretching the time. A guitar solo at half speed is still in the same key, just slow enough to learn.","The range is 0.5x to 1.0x speed. Most practical use cases involve slowing down, not speeding up. For faster playback, most media players already have that built in.","Works in real-time. Adjust the speed while listening and hear the change immediately."],specs:[{label:"Range",value:"0.5x to 1.0x (half speed to normal)"},{label:"Pitch",value:"Unchanged at all speeds"},{label:"Steps",value:"5% increments"},{label:"Quality",value:"High at moderate slowdowns (0.7x+)"},{label:"Delay",value:"About 20-40ms"}],useCases:[{title:"Learning Fast Passages",description:"Slow down complex solos, rapid runs, or difficult sections. Practice at a comfortable speed, then gradually increase as you improve."},{title:"Transcription",description:"Slow down interviews, lectures, or music for accurate transcription. Hear every word and note clearly."},{title:"Language Learning",description:"Slow down native speakers to catch pronunciation and phrasing. Helpful for accents or rapid speech."},{title:"Music Analysis",description:"Hear details you miss at full speed. Pick out harmonies, analyze production techniques, or study arrangements."}],howItWorks:["Audio comes in and gets analyzed for structure and transients.","The audio is stretched in time based on your speed setting.","Pitch is preserved. Notes stay at their original frequencies.","The result plays slower while staying in the original key."],faqs:[{question:"Will slowed audio sound robotic?",answer:"At 0.7x and above, results are very natural. At 0.5x (maximum slowdown), complex music may show slight artifacts, but it remains clear."},{question:"Why can't I speed up beyond 1.0x?",answer:"Most use cases involve slowing down. For faster playback, your browser's built-in speed controls work fine."},{question:"Does this work better on certain audio?",answer:"Simpler content (solo voice, single instrument) handles slowdown best. Complex music works well at moderate settings (0.7x-1.0x)."},{question:"Can I use this with Pitch Shift?",answer:"Yes. Both work independently. Slow down AND change pitch at the same time if you need to."},{question:"Why 5% steps instead of smoother adjustment?",answer:"5% steps provide meaningful differences while keeping the control simple. 1% steps would be imperceptibly small."}],relatedFilters:[{name:"Pitch Shift",slug:"pitch-shifter"},{name:"Smooth Pro",slug:"smooth-pro"},{name:"Reverb",slug:"reverb"}],uiPreview:{icon:"icon ion-md-speedometer",defaultValue:100,min:50,max:100,step:5,scaleLabels:["0.5x","0.75x","1.0x"],valueFormatter:t=>`${(t/100).toFixed(2)}x`}})]}),OZe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Recording - Lossless .wav Audio Capture | RORA"}),l.jsx("meta",{name:"description",content:"Record any audio playing in your browser as a lossless .wav file. Bit-accurate, uncompressed capture with one click. Perfect for archiving, podcasts, and music."}),l.jsx("meta",{property:"og:title",content:"Recording - Lossless .wav Capture | RORA"}),l.jsx("meta",{property:"og:description",content:"One-click lossless .wav recording for any browser audio."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/recording"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Recording - Lossless .wav Capture | RORA"}),l.jsx("meta",{name:"twitter:description",content:"One-click lossless .wav recording for any browser audio."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/recording"})]}),l.jsx(ss,{title:"Recording",tagline:"Press record. Keep the original.",icon:l.jsx("img",{src:"/icons/ionicons/mic.svg",className:"w-12 h-12 brightness-0 invert",alt:"Recording icon"}),category:"Capture & Export",overview:"Recording captures any audio playing in your browser and saves it as a lossless .wav file. No re-encoding, no compression, no quality lossâjust a clean, bit-accurate copy of what you're hearing.",detailedDescription:["Hit record, play your audio, and stop when you're done. RORA writes the stream to a .wav file at full CD quality (16-bit, 44.1 kHz stereo) so nothing about the original is thrown away.","Because .wav is uncompressed, the file is identical in quality to the source. No MP3 mush, no AAC artifacts, no generation loss if you edit it later. It's the same format professional studios use for masters.","Useful when you want to keep something that might disappear later, archive a livestream, grab a clean copy of a podcast for offline listening, or capture audio you've shaped with RORA's filters exactly as you hear it."],specs:[{label:"What It Does",value:"Records browser audio to file"},{label:"Format",value:"Lossless .wav (PCM)"},{label:"Bit Depth",value:"16-bit"},{label:"Sample Rate",value:"44.1 kHz"},{label:"Channels",value:"Stereo"},{label:"Compression",value:"None"}],useCases:[{title:"Archive Livestreams",description:"Capture concerts, talks, or radio streams in their original qual
10582ity before they disappear. A lossless copy means you can revisit it years later with no degradation."},{title:"Podcast Offline Listening",description:"Save episodes as clean .wav files for offline playback, editing, or feeding into your own audio tools. No DRM headaches, no quality loss."},{title:"Capture Shaped Audio",description:"Recording captures the audio after RORA's filters have processed it. Print your perfect EQ, bass boost, or spatial mix to a permanent file."},{title:"Sampling & Editing",description:"Pull clean source material into your DAW, video editor, or sampler. Lossless .wav is the format every audio tool understands and respects."}],howItWorks:["Click record. RORA starts capturing the audio stream from the current tab.","The audio is written sample-by-sample to a .wav buffer with no compression in between.","Stop the recording and the file is saved straight to your Downloads folder.","What you hear is exactly what gets savedâfilters and all."],faqs:[{question:"Why .wav instead of MP3?",answer:".wav is losslessâevery sample is preserved exactly. MP3 throws data away to make files smaller, which can't be undone. If you might edit, re-process, or archive the file, .wav is the safer choice."},{question:"How big are the files?",answer:"Roughly 10 MB per minute of stereo audio at CD quality. Larger than MP3, but every byte represents the original sound."},{question:"Does it record the filters I've applied?",answer:"Yes. Recording happens after RORA's processing, so your bass boost, EQ, spatial audio, and any other filter settings are baked into the file."},{question:"Can I record any website?",answer:"Recording works on most sites that play audio in the browser. Some platforms with strict DRM may be excluded for legal reasons."}],relatedFilters:[{name:"Share",slug:"share"},{name:"Visual EQ",slug:"visual-eq"},{name:"Smooth Pro",slug:"smooth-pro"}]})]}),IZe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Share - Send Your Settings via Link | RORA"}),l.jsx("meta",{name:"description",content:"Share your RORA audio settings with friends. One link, instant preset loading. They hear audio exactly the way you set it up."}),l.jsx("meta",{property:"og:title",content:"Share - Preset Sharing | RORA"}),l.jsx("meta",{property:"og:description",content:"Share your setup with a link."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/share"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Share - Preset Sharing | RORA"}),l.jsx("meta",{name:"twitter:description",content:"Share your setup with a link."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/share"})]}),l.jsx(ss,{title:"Share",tagline:"Share your setup with a link",icon:l.jsx("img",{src:"/icons/ionicons/share-social.svg",className:"w-12 h-12 brightness-0 invert",alt:"Share icon"}),category:"Collaboration",overview:"You found perfect settings for a podcast. Or dialed in bass boost just right for a song. Share creates a link. Your friend clicks it and gets your exact setup, every filter and setting, applied instantly.",detailedDescription:["When you hit Share, your current RORA settings get encoded into a URL. Send that link to anyone: text, email, social media, wherever. No files to download, no complicated setup.","Your friend clicks the link and sees what you're sharing. If they have RORA, your preset loads automatically. If they don't, they'll see how to get it.","You can also include a link to specific content, like a song, podcast, or video. Your friend gets both your audio settings AND the content you want them to experience with those settings."],specs:[{label:"What's Shared",value:"All filter settings + EQ curves"},{label:"Format",value:"Simple URL link"},{label:"Loading",value:"One click to apply"},{label:"Media Links",value:"Optional, include content URLs"},{label:"Privacy",value:"Only people with your link can access"}],useCases:[{title:"Music Recommendations",description:`Don't just share a song, share how to listen to it. "Here's the track with the bass boost settings that make it hit right."`},{title:"Podcast Settings",description:"Found settings that make a specific podcast clearer? Share with other listeners of the same show."},{title:"Gaming Audio",description:"Share your competitive audio profile with teammates. Everyone hears footsteps and callouts the same way."},{title:"Community Presets",description:"Post your presets in forums or community servers. Let others try your settings for specific genres or content types."}],howItWorks:["Set up your audio exactly how you like it, any combination of filters and settings.","Click Share in RORA. Your settings become a unique URL.","Send the link to friends however you want.","They click the link and see your preset. One more click applies it to their RORA."],faqs:[{question:"What if my friend doesn't have RORA?",answer:"The link shows them what you're sharing and how to get RORA. Once they have it, they can come back and load your preset."},{question:"Can I include a song or video with my preset?",answer:"Yes. When sharing, you can optionally include a media URL. Your friend sees both your settings and the specific content to use them with."}
10582,{question:"Is my shared link private?",answer:"Yes. Only people you share the link with can access it. There's no public directory."},{question:"Will loading a preset replace my friend's settings?",answer:"Temporarily. They can always switch back to their own settings or modify your preset without affecting your original."},{question:"What data is in the shared link?",answer:"Filter settings, EQ curves, and optional track metadata. No personal data or account information."}],relatedFilters:[{name:"Visual EQ",slug:"visual-eq"},{name:"Bass Boost",slug:"bass-boost"},{name:"Spatial Audio",slug:"spatial-audio"}],uiPreview:{icon:"icon ion-md-share",defaultValue:100,scaleLabels:["Copy","Share","Send"]}})]}),LZe=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Conjure AI - Describe a Vibe, Hear It Happen | RORA"}),l.jsx("meta",{name:"description",content:"Conjure turns plain-language vibes into custom RORA filter presets. On-device AI via Chrome's Prompt API. Private, free, and instant in RORA v2.0."}),l.jsx("meta",{property:"og:title",content:"Conjure AI | RORA v2.0"}),l.jsx("meta",{property:"og:description",content:"Describe a vibe. Hear it happen. On-device AI audio presets in plain language."}),l.jsx("meta",{property:"og:type",content:"product"}),l.jsx("meta",{property:"og:url",content:"https://rora.one/features/conjure"}),l.jsx("meta",{property:"og:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("meta",{property:"og:locale",content:"en_US"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:title",content:"Conjure AI | RORA v2.0"}),l.jsx("meta",{name:"twitter:description",content:"Describe a vibe. Hear it happen."}),l.jsx("meta",{name:"twitter:image",content:"https://rora.one/images/rora-logo-full.png"}),l.jsx("link",{rel:"canonical",href:"https://rora.one/features/conjure"})]}),l.jsx(ss,{title:"Conjure",tagline:"Describe a vibe. Hear it happen.",icon:l.jsx(ho,{className:"w-12 h-12 text-[#ff4d9b]","aria-hidden":!0}),category:"AI Features",overview:"You know the feeling you want. Warm and dusty. Dreamy and far away. Front row at a show. Clean enough to follow every word in a podcast. Conjure turns that feeling into a real audio preset, in plain language.",detailedDescription:["Type a short description in the RORA popup and Conjure builds a custom filter stack for you. No sliders to guess at. No preset hunting. Just words, then sound.","Conjure runs on Chrome's built-in on-device AI. Your prompts are processed locally on your computer. They are not sent to RORA's servers, and nothing about your listening leaves your device. The feature is free to use.","Unlike a chatbot that only talks about music, Conjure speaks RORA's language: reverb, muffler warmth, vinyl crackle, spatial width, EQ curves, noise cleanup, and more. It picks only the filters that fit your vibe, sets their levels, and applies them to whatever you are playing.","Each new prompt starts fresh on the creative filters Conjure controls, so you always get a vibe built for that request, not leftovers from the last one. When it is done, Conjure leaves a short friendly note under the prompt so you know what changed. You can still tweak any slider by hand afterward."],specs:[{label:"How it works",value:"Natural-language prompt â structured filter preset â applied to the live audio chain"},{label:"AI processing",value:"Fully on-device via Chrome's Prompt API"},{label:"Privacy",value:"Prompts stay on your device; no cloud inference by RORA"},{label:"Prompt limit",value:"Up to 300 characters"},{label:"Typical response time",value:"A few seconds after the model is ready"},{label:"First-time setup",value:"Chrome may download the on-device model once (stored by Chrome, not inside the extension)"},{label:"Availability",value:"Shown only when Chrome reports on-device AI is available on your device"},{label:"Cost",value:"Free"},{label:"Filters Conjure can set",value:"Reverb, Muffler, Vinyl, Visual EQ, Smooth Pro, Echo, Bass Boost/Cut, Pitch Shift, Spatial Audio, and slowed playback when you explicitly ask for it"},{label:"Filters Conjure does not touch",value:"Master volume (hearing safety), mono/stereo, balance"},{label:"Tier behavior",value:"Conjure respects your RORA plan; filters locked on the free tier are skipped even if the vibe calls for them"}
10582],useCases:[{title:"Lo-Fi and Study Sessions",description:'"Warm lo-fi for studying" or "dusty and cozy" â muffler warmth, gentle reverb, vinyl texture, and EQ shaping that softens the edges without killing detail.'},{title:"Mood and Atmosphere",description:'"Sad and moody", "dreamy and far away", or "underwater" â muffler, reverb, pitch shading, and EQ curves that push the sound back or lower in the mix.'},{title:"Live and Concert Feel",description:'"Concert vibes" or "front row" â bigger reverb, spatial width, echo, and bass lift so the room feels larger and closer to a live show.'},{title:"Vintage and Jazz Textures",description:'"Rainy jazz bar" or "sounds like an old record" â vinyl crackle, warm muffler, room reverb, and optional noise cleanup for a smoky, nostalgic tone.'},{title:"Podcast Clarity",description:'"Clean this podcast up" â Smooth Pro noise reduction plus EQ adjustments aimed at speech clarity.'},{title:"Slowed and Dreamy Edits",description:'When you explicitly ask for slowed playback (for example "slowed and reverb"), Conjure can combine filter changes with slower video playback on supported pages. It will not slow audio just because you said "warm" or "muffled."'}],howItWorks:[],examplePrompts:["Give me something low and chill","I'd love some concert vibes","I want some moody vibes","Make it sound like vinyl in a rainy jazz bar","Clean this podcast up for me","Dreamy and far away, like a memory"],faqs:[{question:"Does Conjure send my prompts to the cloud?",answer:"No. Conjure uses Chrome's on-device AI. Inference runs locally. RORA does not receive your prompts for processing."},{question:"Is Conjure free?",answer:"Yes. Conjure itself is free. Some filters it may recommend (such as Spatial Audio, Smooth Pro, Echo, or Bass Boost) require RORA Max or an active trial on the free tier. Conjure still applies everything you have access to and skips locked filters."},{question:"Why don't I see Conjure in my popup?",answer:"The Conjure panel appears only when Chrome's on-device Prompt API is available on your device. If Chrome reports the model as unavailable, the UI stays hidden. Updating Chrome and ensuring on-device AI is enabled for your browser can help."},{question:"Why did Chrome ask to download something the first time?",answer:"The on-device model is managed by Chrome as a shared browser component, not bundled inside RORA. The first run may show a one-time download progress message. After that, the model stays on your device for future prompts. Chrome may remove it later under disk pressure, which can trigger a re-download."},{question:"Can I edit Conjure's result?",answer:"Absolutely. Conjure is a starting point. Every filter it enables can be adjusted manually, saved as a custom aura, or cleared like any other preset."},{question:"Will it replace my volume or balance settings?",answer:"No. Conjure deliberately does not change master volume, mono/stereo mode, or left/right balance. Those stay under your control for safety and consistency."},{question:"What happens when I send a new vibe?",answer:"Conjure resets the creative filters it controls, then applies the new preset. That way each prompt reflects the new mood instead of stacking on the old one."},{question:"Can it slow down any audio?",answer:"Only when your words clearly ask for slowed playback, and only through supported video playback controls on compatible pages. It does not use the tempo filter for slowed vibes, and it will not slow tracks just because you asked for a warm or lo-fi sound."},{question:"What if Conjure doesn't understand my prompt?",answer:'Try different words: a place ("empty cathedral"), a texture ("telep
10582hone"), an activity ("late-night drive"), or a reference mood ("moody and soft"). Very vague one-word prompts may not map cleanly to filters.'},{question:"Does it work on local files?",answer:"Yes. Conjure applies to audio playing through RORA, including files loaded in the local file player."}],relatedFilters:[{name:"Reverb",slug:"reverb"},{name:"Muffler",slug:"muffler"},{name:"Spatial Audio",slug:"spatial-audio"}],customPreview:l.jsx(MO,{}),customPreviewFullWidth:!0,customPreviewTitle:!1,tryNowDescription:"Available in RORA v2.0 for Chrome when on-device AI is supported on your system. Works with browser audio and local files."})]}),DZe=[{value:"accident",label:"Uninstalled by accident"},{value:"no_longer_needed",label:"No longer need it"},{value:"not_working",label:"Didn't work as expected"},{value:"browser_issues",label:"Caused browser issues"},{value:"alternative",label:"Found a better alternative"},{value:"missing_features",label:"Missing features I need"},{value:"too_expensive",label:"Too expensive"},{value:"other",label:"Other"}],FZe=()=>{const[t,e]=E.useState(null),[n,r]=E.useState(""),[i,s]=E.useState(!1),[o,a]=E.useState(!1),[c,u]=E.useState(""),{trackEvent:d}=O2(),h=async()=>{if(t){s(!0),u("");try{const{error:v}=await Yt.from("uninstall_feedback").insert({reason:t,additional_feedback:n.trim().slice(0,500)||null,browser_info:navigator.userAgent,referrer:document.referrer||null});if(v){console.error("Feedback submission error:",v),u("Something went wrong. Please try again."),s(!1);return}d("uninstall_feedback_submit",{reason:t}),a(!0)}catch(v){console.error("Unexpected error:",v),u("Something went wrong. Please try again.")}s(!1)}},f=()=>{d("goodbye_support_click")},m=()=>{d("goodbye_reinstall_click")};return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Goodbye | RORA"}),l.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),l.jsx("div",{className:"min-h-[calc(100vh-200px)] flex items-center justify-center p-4 py-12",children:l.jsxs("div",{className:"w-full max-w-[540px] space-y-6",children:[l.jsxs("div",{className:"text-center space-y-3",children:[l.jsx("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold text-white text-center",children:"We're Saving Your Spot For When You Return."}),l.jsx("p",{className:"text-white/70 text-base sm:text-lg",children:"Thank you for using RORA."})]}),l.jsx("div",{className:"text-center py-2",children:l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",onClick:m,className:"stateful-btn inline-flex items-center justify-center h-auto py-3.5 sm:py-4 px-8 sm:px-12 text-base sm:text-lg font-semibold text-white rounded-full",children:[l.jsx(Vr,{className:"w-5 h-5 mr-2.5 text-white flex-shrink-0"}),l.jsx("span",{className:"whitespace-nowrap",children:"Reinstall"})]})}),l.jsx("div",{className:"bg-white/5 border border-white/10 rounded-2xl p-5 sm:p-6 backdrop-blur-sm space-y-5",children:o?l.jsxs("div",{className:"text-center py-4",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-r from-[#4ade80] to-[#22c55e] flex items-center justify-center mx-auto mb-4",children:l.jsx(Sm,{className:"w-6 h-6 text-white"})}),l.jsx("p",{className:"text-white font-medium text-lg",children:"Thank you!"}),l.jsx("p",{className:"text-white/60 text-sm mt-1",children:"Your feedback helps us improve."})]}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"space-y-3",children:[l.jsxs(Pr,{className:"text-white font-medium",children:["What made you uninstall? ",l.jsx("span",{className:"text-white/50 font-normal",children:"(optional)"})]}),l.jsx("div",{className:"flex flex-col gap-2",children:DZe.map(v=>l.jsxs("label",{className:`inline-flex items-center gap-3 px-4 py-2.5 rounded-full border cursor-pointer transition-all w-full ${t===v.value?"bg-[#E2628A]/10 border-[#E2628A]":"bg-white/5 border-white/10 hover:border-white/20"}`,children:[l.jsx("input",{type:"radio",name:"uninstall_reason",value:v.value,checked:t===v.value,onChange:p=>e(p.target.value),className:"sr-only"}),l.jsx("div",{className:`w-3.5 h-3.5 rounded-full border-2 flex items-center justify-center flex-shrink-0 ${t===v.value?"border-[#
10582E2628A]":"border-white/40"}`,children:t===v.value&&l.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[#E2628A]"})}),l.jsx("span",{className:"text-white/90 text-sm",children:v.label})]},v.value))})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Pr,{className:"text-white/70 text-sm",children:"Anything else you'd like to share?"}),l.jsx(Py,{placeholder:"Your feedback helps us improve...",value:n,onChange:v=>r(v.target.value.slice(0,500)),className:"bg-white/5 border-white/10 text-white placeholder:text-white/40 rounded-xl min-h-[80px] resize-none",maxLength:500}),l.jsxs("p",{className:"text-white/40 text-xs text-right",children:[n.length,"/500"]})]}),c&&l.jsx("p",{className:"text-[#ff6b6b] text-sm",children:c}),l.jsx(Ge,{onClick:h,disabled:!t||i,className:"w-full h-11 bg-gradient-to-r from-[#E2628A] to-[#7f86ff] hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed",children:i?"Sending...":"Send Feedback"})]})}),l.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-xl p-4 sm:p-5",children:[l.jsxs("p",{className:"text-white/90 text-sm sm:text-base",children:[l.jsx("span",{className:"font-medium",children:"Having issues?"})," ",l.jsx("span",{className:"text-white/70",children:"Sometimes a quick fix is all it takes."})]}),l.jsxs("a",{href:"mailto:[email protected]",onClick:f,className:"inline-flex items-center gap-2 text-[#E2628A] hover:text-[#ff7aa8] transition-colors mt-2 text-sm sm:text-base",children:[l.jsx(sS,{className:"w-4 h-4"}),"Contact Support"]}),l.jsx("p",{className:"text-white/50 text-xs mt-1",children:"We typically respond within 24 hours."})]})]})})]})},UZe="https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",BZe=()=>{const[t,e]=E.useState(!1),[n,r]=E.useState(!1);E.useEffect(()=>{const s=()=>{window.scrollY>300&&!n?e(!0):window.scrollY<=300&&e(!1)};return window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)},[n]);const i=()=>{r(!0),e(!1)};return l.jsx(Ca,{children:t&&l.jsx(ve.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",damping:25,stiffness:300},className:"fixed bottom-0 left-0 right-0 z-50 md:hidden",children:l.jsx("div",{className:"bg-gradient-to-r from-primary/95 to-accent/95 backdrop-blur-xl border-t border-white/20 shadow-lg px-4 py-3",children:l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsxs("div",{className:"flex-1",children:[l.jsx("p",{className:"text-white font-semibold text-sm",children:"RORA is live!"}),l.jsx("p",{className:"text-white/80 text-xs",children:"Download now on Chrome"})]}),l.jsx(Ge,{asChild:!0,size:"sm",className:"bg-white text-primary hover:bg-white/90 font-semibold shrink-0",children:l.jsxs("a",{href:UZe,target:"_blank",rel:"noopener noreferrer",children:[l.jsx(Vr,{className:"w-4 h-4 mr-1"}),"Get It Now"]})}),l.jsx("button",{onClick:i,className:"text-white/60 hover:text-white transition-colors p-1 shrink-0","aria-label":"Dismiss",children:l.jsx(gp,{className:"w-5 h-5"})})]})})})})},zZe=` 10583void main() { 10584 gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); 10585} 10586`,$Ze=` 10587precision highp float; 10588uniform float uTime, uAttenuation, uLineThickness; 10589uniform float uBaseRadius, uRadiusStep, uScaleRate; 10590uniform float uOpacity, uNoiseAmount, uRotation, uRingGap; 10591uniform float uFadeIn, uFadeOut; 10592uniform float uMouseInfluence, uHoverAmount, uHoverScale, uParallax, uBurst; 10593uniform vec2 uResolution, uMouse; 10594uniform vec3 uColor, uColorTwo; 10595uniform int uRingCount; 10596const float HP = 1.5707963; 10597const float CYCLE = 3.45; 10598float fade(float t) { 10599 return t < uFadeIn ? smoothstep(0.0, uFadeIn, t) : 1.0 - smoothstep(uFadeOut, CYCLE - 0.2, t); 10600} 10601float ring(vec2 p, float ri, float cut, float t0, float px) { 10602 float t = mod(uTime + t0, CYCLE); 10603 float r = ri + t / CYCLE * uScaleRate; 10604 float d = abs(length(p) - r); 10605 float a = atan(abs(p.y), abs(p.x)) / HP; 10606 float th = max(1.0 - a, 0.5) * px * uLineThickness; 10607 float h = (1.0 - smoothstep(th, th * 1.5, d)) + 1.0; 10608 d += pow(cut * a, 3.0) * r; 10609 return h * exp(-uAttenuation * d) * fade(t); 10610} 10611void main() { 10612 float px = 1.0 / min(uResolution.x, uResolution.y); 10613 vec2 p = (gl_FragCoord.xy - 0.5 * uResolution.xy) * px; 10614 float cr = cos(uRotation), sr = sin(uRotation); 10615 p = mat2(cr, -sr, sr, cr) * p; 10616 p -= uMouse * uMouseInfluence; 10617 float sc = mix(1.0, uHoverScale, uHoverAmount) + uBurst * 0.3; 10618 p /= sc; 10619 vec3 c = vec3(0.0); 10620 float rcf = max(float(uRingCount) - 1.0, 1.0); 10621 for (int i = 0; i < 10; i++) { 10622 if (i >= uRingCount) break; 10623 float fi = float(i); 10624 vec2 pr = p - fi * uParallax * uMouse; 10625 vec3 rc = mix(uColor, uColorTwo, fi / rcf); 10626 c = mix(c, rc, vec3(ring(pr, uBaseRadius + fi * uRadiusStep, pow(uRingGap, fi), i == 0 ? 0.0 : 2.95 * fi, px))); 10627 } 10628 c *= 1.0 + uBurst * 2.0; 10629 float n = fract(sin(dot(gl_FragCoord.xy + uTime * 100.0, vec2(12.9898, 78.233))) * 43758.5453); 10630 c += (n - 0.5) * uNoiseAmount; 10631 gl_FragColor = vec4(c, max(c.r, max(c.g, c.b)) * uOpacity); 10632} 10633`;function HZe({color:t="#E2628A",colorTwo:e="#40FFAA",speed:n=1,ringCount:r=6,attenuation:i=10,lineThickness:s=2,baseRadius:o=.35,radiusStep:a=.1,scaleRate:c=.1,opacity:u=1,blur:d=0,noiseAmount:h=.1,rotation:f=0,r
10633ingGap:m=1.5,fadeIn:v=.7,fadeOut:p=.5,followMouse:g=!1,mouseInfluence:y=.2,hoverScale:b=1.2,parallax:x=.05,clickBurst:w=!1}){const _=E.useRef(null),S=E.useRef(null),T=E.useRef([0,0]),M=E.useRef([0,0]),A=E.useRef(0),C=E.useRef(!1),R=E.useRef(0);return S.current={color:t,colorTwo:e,speed:n,ringCount:r,attenuation:i,lineThickness:s,baseRadius:o,radiusStep:a,scaleRate:c,opacity:u,noiseAmount:h,rotation:f,ringGap:m,fadeIn:v,fadeOut:p,followMouse:g,mouseInfluence:y,hoverScale:b,parallax:x,clickBurst:w},E.useEffect(()=>{const j=_.current;if(!j)return;let k;try{k=new tI({alpha:!0,antialias:!0})}catch{return}if(!k.capabilities.isWebGL2){k.dispose();return}k.setClearColor(0,0),j.appendChild(k.domElement);const P=new Fte,O=new jte(-.5,.5,.5,-.5,.1,10);O.position.z=1;const L={uTime:{value:0},uAttenuation:{value:0},uResolution:{value:new Ht},uColor:{value:new kt},uColorTwo:{value:new kt},uLineThickness:{value:0},uBaseRadius:{value:0},uRadiusStep:{value:0},uScaleRate:{value:0},uRingCount:{value:0},uOpacity:{value:1},uNoiseAmount:{value:0},uRotation:{value:0},uRingGap:{value:1.6},uFadeIn:{value:.5},uFadeOut:{value:.75},uMouse:{value:new Ht},uMouseInfluence:{value:0},uHoverAmount:{value:0},uHoverScale:{value:1},uParallax:{value:0},uBurst:{value:0}},F=new iu({vertexShader:zZe,fragmentShader:$Ze,uniforms:L,transparent:!0}),D=new Vo(new G2(1,1),F);P.add(D);const I=()=>{const X=j.clientWidth,ae=j.clientHeight,J=Math.min(window.devicePixelRatio,2);k.setSize(X,ae),k.setPixelRatio(J),L.uResolution.value.set(X*J,ae*J)};I(),window.addEventListener("resize",I);const N=new ResizeObserver(I);N.observe(j);const G=X=>{const ae=j.getBoundingClientRect();T.current[0]=(X.clientX-ae.left)/ae.width-.5,T.current[1]=-((X.clientY-ae.top)/ae.height-.5)},q=()=>{C.current=!0},W=()=>{C.current=!1,T.current=[0,0]},Y=()=>{R.current=1};j.addEventListener("mousemove",G),j.addEventListener("mouseenter",q),j.addEventListener("mouseleave",W),j.addEventListener("click",Y);let te=0;const Q=X=>{te=requestAnimationFrame(Q);const ae=S.current;ae&&(M.current[0]+=(T.current[0]-M.current[0])*.08,M.current[1]+=(T.current[1]-M.current[1])*.08,A.current+=((C.current?1:0)-A.current)*.08,R.current*=.95,R.current<.001&&(R.current=0),L.uTime.value=X*.001*(ae.speed??1),L.uAttenuation.value=ae.attenuation??10,L.uColor.value.set(ae.color??"#E2628A"),L.uColorTwo.value.set(ae.colorTwo??"#40FFAA"),L.uLineThickness.value=ae.lineThickness??2,L.uBaseRadius.value=ae.baseRadius??.35,L.uRadiusStep.value=ae.radiu
10633sStep??.1,L.uScaleRate.value=ae.scaleRate??.1,L.uRingCount.value=ae.ringCount??6,L.uOpacity.value=ae.opacity??1,L.uNoiseAmount.value=ae.noiseAmount??.1,L.uRotation.value=(ae.rotation??0)*Math.PI/180,L.uRingGap.value=ae.ringGap??1.5,L.uFadeIn.value=ae.fadeIn??.7,L.uFadeOut.value=ae.fadeOut??.5,L.uMouse.value.set(M.current[0],M.current[1]),L.uMouseInfluence.value=ae.followMouse?ae.mouseInfluence??.2:0,L.uHoverAmount.value=A.current,L.uHoverScale.value=ae.hoverScale??1.2,L.uParallax.value=ae.parallax??.05,L.uBurst.value=ae.clickBurst?R.current:0,k.render(P,O))};return te=requestAnimationFrame(Q),()=>{cancelAnimationFrame(te),window.removeEventListener("resize",I),N.disconnect(),j.removeEventListener("mousemove",G),j.removeEventListener("mouseenter",q),j.removeEventListener("mouseleave",W),j.removeEventListener("click",Y),k.domElement.parentNode===j&&j.removeChild(k.domElement),k.dispose(),F.dispose(),D.geometry.dispose()}},[]),l.jsx("div",{ref:_,className:"magic-rings-container",style:d>0?{filter:`blur(${d}px)`}:void 0,"aria-hidden":"true"})}const VZe=()=>{const[t,e]=E.useState(!1),n=[{name:"Smooth Pro",icon:"/icons/ionicons/water.svg"},{name:"Bass Boost",icon:"/icons/ionicons/pulse.svg"},{name:"Spatial Audio",icon:"/icons/ionicons/headset.svg"},{name:"Pitch Shifter",icon:"/icons/ionicons/musical-note.svg"},{name:"Bass Cut",icon:"/icons/ionicons/trending-down.svg"},{name:"Muffler",icon:"/icons/ionicons/volume-off.svg"},{name:"Visual EQ",icon:"/icons/ionicons/analytics.svg"},{name:"Reverb",icon:"/icons/ionicons/cube.svg"},{name:"Echo",icon:"/icons/ionicons/volume-high.svg"},{name:"Tempo Control",icon:"/icons/ionicons/speedometer.svg"}];return l.jsxs(l.Fragment,{children:[l.jsxs(Vt,{children:[l.jsx("title",{children:"Home Test Rings | RORA Audio"}),l.jsx("meta",{name:"description",content:"Test version of the RORA homepage hero with stationary MagicRings surrounding the RORA logo."}),l.jsx("link",{rel:"canonical",href:"https://rora.one/home2"}),l.jsx("meta",{property:"og:title",content:"Home Test Rings | RORA Audio"}),l.jsx("meta",{property:"og:description",content:"Test version of the RORA homepage hero with stationary MagicRings surrounding the RORA logo."}),l.jsx("meta",{property:"og:url",content:"https://rora.one/home2"}),l.jsx("meta",{property:"og:type",content:"website"})]}),l.jsxs("div",{className:"min-h-screen relative overflow-x-hidden",children:[l.jsxs("div",{className:"relative z-10",children:[l.jsxs("section",{className:"relative py-16 sm:py-20 px-4 sm:px-6 text-center pt-[90px] pb-[50px] md:py-[95px] overflow-hidden",children:[l.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[l.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background to-background/95"}),l.jsx("div",{className:"absolute left-1/2 top-0 h-[34rem] w-[34rem] -translate-x-1/2 rounded-full bg-rora-purple/10 blur-3xl"})]}),l.jsxs("div",{className:"max-w-5xl mx-auto space-y-6 sm:space-y-8 relative z-10",children:[l.jsxs("div",{className:"space-y-6 sm:space-y-8",children:[l.jsxs("div",{className:"relative mx-auto flex h-[280px] w-full max-w-[700px] items-center justify-center sm:h-[340px] md:h-[400px] lg:h-[460px]",children:[l.jsx("div",{className:"absolute inset-0 pointer-events-none",children:l.jsx(HZe,{color:"#fc42ff",colorTwo:"#42fcff",ringCount:6,speed:1,attenuation:10,lineThickness:2,baseRadius:.35,radiusStep:.1,scaleRate:.1,opacity:1,blur:0,noiseAmount:.1,rotation:0,ringGap:1.5,fadeIn:.7,fadeOut:.5,followMouse:!1,mouseInfluence:.2,hoverScale:1.2,parallax:.05,clickBurst:!1})}),l.jsx("img",{src:"/favicon.jpg",alt:"RORA",className:"relative z-10 h-[72px] w-[72px] sm:h-[100px] sm:w-[100px] md:h-[130px] md:w-[130px] lg:h-[160px] lg:w-[160px] rounded-full object-cover shadow-[0_0_40px_rgba(252,66,255,0.3)]"})]}),l.jsx("div",{className:"soft-separator max-w-lg mx-auto mb-8"}),l.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[l.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-bold text-foreground leading-tight tracking-tight px-4",children:"Let Every Song Be Yours"}),l.jsx("p",{className:"text-base sm:text-lg md:text-xl lg:text-2xl text-muted-foreground max-w-3xl mx-auto leading-relaxed px-4",children:"Bend, Twist and Personalize Your Browser Audio"})]})]}),l.jsx("div",{className:"py-4 sm:py-6",children:l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center h-auto py-3.5 sm:py-4 px-10 sm:px-14 text-lg sm:text-xl md:text-2xl font-semibold text-white rounded-full",children:[l.jsx(Vr,{className:"w-5 h-5 sm:w-6 sm:h-6 mr-3 text-white flex-shrink-0"}),l.jsx("span",{className:"whitespace-nowrap",children:"Get It Now for Chrome"})]})}),l.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 sm:gap-6 text-left max-w-4xl mx-auto px-4",children:[l.jsxs("div",{className:"flex flex-col items-start gap-2 group hover:scale-105 transition-transform",children:[l.jsx(AN,{style:{stroke:"url
10633(#icon-gradient-home2)"},className:"w-5 h-5 sm:w-6 sm:h-6 flex-shrink-0 bg-black/[0.01]"}),l.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground group-hover:text-white transition-colors",children:"Works with all browser audio"})]}),l.jsxs("div",{className:"flex flex-col items-start gap-2 group hover:scale-105 transition-transform",children:[l.jsx(ho,{style:{stroke:"url(#icon-gradient-home2)"},className:"w-5 h-5 sm:w-6 sm:h-6 flex-shrink-0 bg-black/[0.01]"}),l.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground group-hover:text-white transition-colors",children:"Ten audio filters"})]}),l.jsxs("div",{className:"flex flex-col items-start gap-2 group hover:scale-105 transition-transform",children:[l.jsx(nH,{style:{stroke:"url(#icon-gradient-home2)"},className:"w-5 h-5 sm:w-6 sm:h-6 flex-shrink-0 bg-black/[0.02]"}),l.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground group-hover:text-white transition-colors",children:"One-Click Installation"})]}),l.jsxs("div",{className:"flex flex-col items-start gap-2 group hover:scale-105 transition-transform",children:[l.jsx(C0,{style:{stroke:"url(#icon-gradient-home2)"},className:"w-5 h-5 sm:w-6 sm:h-6 flex-shrink-0 bg-black/[0.01]"}),l.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground group-hover:text-white transition-colors",children:"Privacy first - local processing"})]})]}),l.jsx("div",{className:"space-y-4 sm:space-y-6",children:l.jsxs("div",{className:"space-y-4",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Sign in and create your free account now"}),l.jsxs("div",{className:"flex flex-row items-center justify-center gap-3",children:[l.jsx(Ge,{variant:"outline",className:"h-12 px-4 sm:px-6 bg-card hover:bg-secondary border-border text-foreground hover:text-foreground font-medium rounded-full shadow-sm",asChild:!0,children:l.jsxs(mt,{to:"/auth?provider=google",className:"flex items-center justify-center gap-2 sm:gap-3",children:[l.jsxs("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 24 24",children:[l.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),l.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),l.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),l.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),l.jsx("span",{className:"whitespace-nowrap text-sm sm:text-base",children:"Google"})]})}),l.jsx(Ge,{variant:"outline",className:"h-12 px-4 sm:px-6 bg-secondary hover:bg-secondary/80 border-border text-foreground font-medium rounded-full",asChild:!0,children:l.jsxs(mt,{to:"/auth?provider=apple",className:"flex items-center justify-center gap-2 sm:gap-3",children:[l.jsx("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 24 24",fill:"white",children:l.jsx("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"})}),l.jsx("span",{className:"whitespace-nowrap text-sm sm:text-base",children:"Apple"})]})}),l.jsx(Ge,{variant:"outline",className:"h-12 px-4 sm:px-6 bg-primary hover:bg-primary/90 border-primary text-primary-foreground font-medium rounded-full",asChild:!0,children:l.jsxs(mt,{to:"/auth?provider=discord",className:"flex items-center justify-center gap-2 sm:gap-3",children:[l.jsx("svg",{className:"w-5 h-5 flex-shrink-0",viewBox:"0 0 71 55",fill:"white",children:l.jsx("path",{d:"M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.
106331968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z"})}),l.jsx("span",{className:"whitespace-nowrap text-sm sm:text-base",children:"Discord"})]})})]})]})}),l.jsx("svg",{width:"0",height:"0",style:{position:"absolute"},children:l.jsx("defs",{children:l.jsxs("linearGradient",{id:"icon-gradient-home2",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[l.jsx("stop",{offset:"0%",style:{stopColor:"#E2628A",stopOpacity:1}}),l.jsx("stop",{offset:"100%",style:{stopColor:"#6200EE",stopOpacity:1}})]})})})]})]}),l.jsx(ma,{animation:"fade-blur",duration:1e3,threshold:.2,children:l.jsx(pY,{className:"py-[30px] pb-[50px] pt-[5px]"})}),l.jsx(ma,{animation:"fade-blur",duration:800,threshold:.15,children:l.jsx(UX,{})}),l.jsx(ma,{animation:"slide-up",duration:900,threshold:.15,distance:60,children:l.jsx("section",{className:"px-6 bg-background py-[40px]",children:l.jsxs("div",{className:"max-w-6xl mx-auto py-0",children:[l.jsxs("div",{className:"text-center mb-16 space-y-4",children:[l.jsx(Hi,{animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03,containerClassName:"text-4xl md:text-5xl text-foreground font-bold bg-transparent",children:"10 Different Ways to Twist Your Sound."}),l.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Audio filters for any listening situation"})]}),l.jsxs("div",{style:{padding:"3rem 1rem"},className:"relative mb-12 overflow-visible px-0 py-0",children:[l.jsx(Ed,{pauseOnHover:!0,className:"[--duration:30s]",children:n.slice(0,5).map((r,i)=>l.jsxs("div",{className:"panel-2025 p-3 sm:p-4 space-y-2 sm:space-y-3 text-center group w-40 sm:w-48 mx-1 hover:scale-105 transition-transform",children:[l.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 mx-auto flex items-center justify-center",children:l.jsx("img",{src:r.icon,alt:r.name,className:"w-full h-full brightness-0 invert"})}),l.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-white transition-colors",children:r.name})]},i))}),l.jsx(Ed,{reverse:!0,pauseOnHover:!0,className:"[--duration:30s]",children:n.slice(5,10).map((r,i)=>l.jsxs("div",{className:"panel-2025 p-3 sm:p-4 space-y-2 sm:space-y-3 text-center group w-40 sm:w-48 mx-1 hover:scale-105 transition-transform",children:[l.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 mx-auto flex items-center justify-center",children:l.jsx("img",{src:r.icon,alt:r.name,className:"w-full h-full brightness-0 invert"})}),l.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-white transition-colors",children:r.name})]},i))}),l.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r from-background"}),l.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l from-background"})]}),l.jsx("div",{className:"text-center",children:l.jsx(Ge,{variant:"premium",size:"lg",asChild:!0,className:"group min-h-[44px]",children:l.jsxs(mt,{to:"/features",className:"flex items-center gap-2",children:["Explore All Filters",l.jsx(Xc,{className:"w-4 h-4 sm:w-5 sm:h-5 group-hover:translate-x-1 transition-transform"})]})})})]})})}),l.jsx(ma,{animation:"scale",duration:900,threshold:.2,children:l.jsxs("section",{className:"py-16 sm:py-20 bg-neutral-900/30 pb-[5px] md:py-0",children:[l.jsxs("div",{className:"text-center mb-4 sm:mb-6 space-y-3 sm:space-y-4 px-4 sm:px-6 py-[20px]",children:[l.jsx("h2",{className:"text-3xl sm:text-4xl text-foreground font-bold bg-neutral-900/0 md:text-5xl",children:"Hear the Difference"}),l.jsx("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto px-4",children:"Experience how RORA transforms audio in real-time. Toggle between the original and enhanced version."})]}),l.jsx(mY,{})]})}),l.jsx(BX,{}),l.jsx(ma,{animation:"fade-blur",duration:1e3,threshold:.25,children:l.jsx("section",{className:"py-16 sm:py-20 px-4 sm:px-6 bg-neutral-900/30 md:py-[70px]",children:l.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-8 sm:space-y-12",children:[l.jsxs("div",{className:"space-y-4 sm:sp
10633ace-y-6",children:[l.jsx("div",{className:"max-w-5xl mx-auto w-full",children:l.jsx(v1,{})}),l.jsx("p",{className:"text-base sm:text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed px-4",children:"Shape your sound in your browser. No drivers, no cloud processing, everything runs locally."})]}),l.jsx("div",{className:"space-y-6 sm:space-y-8",children:l.jsxs("a",{href:"https://chromewebstore.google.com/detail/rora-let-every-song-be-yo/ffceljdacbcfpajkaceodijbiodkokmj",target:"_blank",rel:"noopener noreferrer",className:"stateful-btn inline-flex items-center justify-center h-auto py-5 sm:py-6 px-10 sm:px-14 text-lg sm:text-xl md:text-2xl font-semibold text-white rounded-full",children:[l.jsx(Vr,{className:"w-5 h-5 sm:w-6 sm:h-6 mr-3 text-white flex-shrink-0"}),l.jsx("span",{className:"whitespace-nowrap",children:"Download Now"})]})})]})})})]}),l.jsx(H0,{open:t,onOpenChange:e}),l.jsx(BZe,{})]})]})};function Q8({children:t}){const[e]=fV();return e.get("dev")!=="1"?l.jsx(gue,{to:"/",replace:!0}):t}const WZe=new JH,GZe=()=>l.jsx(nV,{client:WZe,children:l.jsxs(HH,{children:[l.jsx(fH,{}),l.jsx(aae,{}),l.jsx(UV,{children:l.jsxs(Aue,{children:[l.jsx(Swe,{}),l.jsx(_we,{children:l.jsxs(yue,{children:[l.jsx($t,{path:"/",element:l.jsx(ySe,{})}),l.jsx($t,{path:"/features",element:l.jsx(AHe,{})}),l.jsx($t,{path:"/features/conjure",element:l.jsx(LZe,{})}),l.jsx($t,{path:"/features/master-volume",element:l.jsx(KWe,{})}),l.jsx($t,{path:"/features/smooth-pro",element:l.jsx(QWe,{})}),l.jsx($t,{path:"/features/bass-cut",element:l.jsx(ZWe,{})}),l.jsx($t,{path:"/features/bass-boost",element:l.jsx(JWe,{})}),l.jsx($t,{path:"/features/muffler",element:l.jsx(eGe,{})}),l.jsx($t,{path:"/features/visual-eq",element:l.jsx(nGe,{})}),l.jsx($t,{path:"/features/spatial-audio",element:l.jsx(RZe,{})}),l.jsx($t,{path:"/features/reverb",element:l.jsx(PZe,{})}),l.jsx($t,{path:"/features/echo",element:l.jsx(jZe,{})}),l.jsx($t,{path:"/features/pitch-shifter",element:l.jsx(NZe,{})}),l.jsx($t,{path:"/features/tempo-control",element:l.jsx(kZe,{})}),l.jsx($t,{path:"/features/recording",element:l.jsx(OZe,{})}),l.jsx($t,{path:"/features/share",element:l.jsx(IZe,{})}),l.jsx($t,{path:"/about",element:l.jsx(PHe,{})}),l.jsx($t,{path:"/pricing",element:l.jsx(dHe,{})}),l.jsx($t,{path:"/dashboard",element:l.jsx(sHe,{})}),l.jsx($t,{path:"/auth",element:l.jsx(gHe,{})}),l.jsx($t,{path:"/reset-password",element:l.jsx(yHe,{})}),l.jsx($t,{path:"/aura",element:l.jsx(dWe,{})}),l.jsx($t,{path:"/legal",element:l.jsx(hWe,{})}),l.jsx($t,{path:"/support",element:l.jsx(jWe,{})}),l.jsx($t,{path:"/press",element:l.jsx(NWe,{})}),l.jsx($t,{path:"/community",element:l.jsx(kWe,{})}),l.jsx($t,{path:"/guide",element:l.jsx(DWe,{})}),l.jsx($t,{path:"/news",element:l.jsx(BWe,{})}),l.jsx($t,{path:"/news/:slug",element:l.jsx(GWe,{})}),l.jsx($t,{path:"/test",element:l.jsx(Q8,{children:l.jsx(DVe,{})})}),l.jsx($t,{path:"/goodbye",element:l.jsx(FZe,{})}),l.jsx($t,{path:"/home2",element:l.jsx(Q8,{children:l.jsx(VZe,{})})}),l.jsx($t,{path:"*",element:l.jsx(kHe,{})})]})})]})})]})}),qZe=new JH;b9(document.getElementById("root")).render(l.jsx(nV,{client:qZe,children:l.jsx(UV,{children:l.jsxs(xSe,{children:[l.jsx(GZe,{}),l.jsx(fH,{})]})})}));export{kt as C,Vo as M,jte as O,G2 as P,Fte as S,Ht as V,tI as W,iu as a,le as b,l as j,E as r};
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.