vendor: 6,888 bytes, line 1
1function Z4(n,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(n,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function t(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=t(s);fetch(s.href,a)}})();function ub(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Av={exports:{}},Sf={};var UM;function Q4(){if(UM)return Sf;UM=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,s,a){var l=null;if(a!==void 0&&(l=""+a),s.key!==void 0&&(l=""+s.key),"key"in s){a={};for(var c in s)c!=="key"&&(a[c]=s[c])}else a=s;return s=a.ref,{$$typeof:n,type:i,key:l,ref:s!==void 0?s:null,props:a}}return Sf.Fragment=e,Sf.jsx=t,Sf.jsxs=t,Sf}var IM;function J4(){return IM||(IM=1,Av.exports=Q4()),Av.exports}var m=J4(),Cv={exports:{}},ht={};var BM;function eU(){if(BM)return ht;BM=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function x(G){return G===null||typeof G!="object"?null:(G=v&&G[v]||G["@@iterator"],typeof G=="function"?G:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function S(G,ee,me){this.props=G,this.context=ee,this.refs=w,this.updater=me||b}S.prototype.isReactComponent={},S.prototype.setState=function(G,ee){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,ee,"setState")},S.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function T(){}T.prototype=S.prototype;function M(G,ee,me){this.props=G,this.context=ee,this.refs=w,this.updater=me||b}var C=M.prototype=new T;C.constructor=M,_(C,S.prototype),C.isPureReactComponent=!0;var N=Array.isArray;function U(){}var P={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function R(G,ee,me){var ve=me.ref;return{$$typeof:n,type:G,key:ee,ref:ve!==void 0?ve:null,props:me}}function L(G,ee){return R(G.type,ee,G.props)}function z(G){return typeof G=="object"&&G!==null&&G.$$typeof===n}function H(G){var ee={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(me){return ee[me]})}var Y=/\/+/g;function K(G,ee){return typeof G=="object"&&G!==null&&G.key!=null?H(""+G.key):ee.toString(36)}function q(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(U,U):(G.status="pending",G.then(function(ee){G.status==="pending"&&(G.status="fulfilled",G.value=ee)},function(ee){G.status==="pending"&&(G.status="rejected",G.reason=ee)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function B(G,ee,me,ve,ge){var ie=typeof G;(ie==="undefined"||ie==="boolean")&&(G=null);var Z=!1;if(G===null)Z=!0;else switch(ie){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(G.$$typeof){case n:case e:Z=!0;break;case h:return Z=G._init,B(Z(G._payload),ee,me,ve,ge)}}if(Z)return ge=ge(G),Z=ve===""?"."+K(G,0):ve,N(ge)?(me="",Z!=null&&(me=Z.replace(Y,"$&/")+"/"),B(ge,ee,me,"",function(Ae){return Ae})):ge!=null&&(z(ge)&&(ge=L(ge,me+(ge.key==null||G&&G.key===ge.key?"":(""+ge.key).replace(Y,"$&/")+"/")+Z)),ee.push(ge)),1;Z=0;var xe=ve===""?".":ve+":";if(N(G))for(var Me=0;Me<G.length;Me++)ve=G[Me],ie=xe+K(ve,Me),Z+=B(ve,ee,me,ie,ge);else if(Me=x(G),typeof Me=="function")for(G=Me.call(G),Me=0;!(ve=G.next()).done;)ve=ve.value,ie=xe+K(ve,Me++),Z+=B(ve,ee,me,ie,ge);else if(ie==="object"){if(typeof G.then=="function")return B(q(G),ee,me,ve,ge);throw ee=String(G),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return Z}function W(G,ee,me){if(G==null)return G;var ve=[],ge=0;return B(G,ve,"","",function(ie){return ee.call(me,ie,ge++)}),ve}function j(G){if(G._status===-1){var ee=G._result;ee=ee(),ee.then(function(me){(G._status===0||G._status===-1)&&(G._status=1,G._result=me)},function(me){(G._status===0||G._status===-1)&&(G._status=2,G._result=me)}),G._status===-1&&(G._status=0,G._result=ee)}if(G._status===1)return G._result.default;throw G._result}var ae=typeof reportError=="function"?reportError:function(G){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof G=="object"&&G!==null&&typeof G.message=="string"?String(G.message):String(G),error:G});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",G);return}console.error(G)},fe={map:W,forEach:function(G,ee,me){W(G,function(){ee.apply(this,arguments)},me)},count:function(G){var ee=0;return W(G,function(){ee++}),ee},toArray:function(G){return W(G,function(ee){return ee})||[]},only:function(G){if(!z(G))throw Error("React.Children.only expected to receive a single React element child.");return G}};return ht.Activity=g,ht.Children=fe,ht.Component=S,ht.Fragment=t,ht.Profiler=s,ht.PureComponent=M,ht.StrictMode=i,ht.Suspense=f,ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ht.__COMPILER_RUNTIME={__proto__:null,c:function(G){return P.H.useMemoCache(G)}},ht.cache=function(G){return function(){return G.apply(null,arguments)}},ht.cacheSignal=function(){return null},ht.cloneElement=function(G,ee,me){if(G==null)throw Error("The argument must be a React element, but you passed "+G+".");var ve=_({},G.props),ge=G.key;if(ee!=null)for(ie in ee.key!==void 0&&(ge=""+ee.key),ee)!O.call(ee,ie)||ie==="
1key"||ie==="__self"||ie==="__source"||ie==="ref"&&ee.ref===void 0||(ve[ie]=ee[ie]);var ie=arguments.length-2;if(ie===1)ve.children=me;else if(1<ie){for(var Z=Array(ie),xe=0;xe<ie;xe++)Z[xe]=arguments[xe+2];ve.children=Z}return R(G.type,ge,ve)},ht.createContext=function(G){return G={$$typeof:l,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null},G.Provider=G,G.Consumer={$$typeof:a,_context:G},G},ht.createElement=function(G,ee,me){var ve,ge={},ie=null;if(ee!=null)for(ve in ee.key!==void 0&&(ie=""+ee.key),ee)O.call(ee,ve)&&ve!=="key"&&ve!=="__self"&&ve!=="__source"&&(ge[ve]=ee[ve]);var Z=arguments.length-2;if(Z===1)ge.children=me;else if(1<Z){for(var xe=Array(Z),Me=0;Me<Z;Me++)xe[Me]=arguments[Me+2];ge.children=xe}if(G&&G.defaultProps)for(ve in Z=G.defaultProps,Z)ge[ve]===void 0&&(ge[ve]=Z[ve]);return R(G,ie,ge)},ht.createRef=function(){return{current:null}},ht.forwardRef=function(G){return{$$typeof:c,render:G}},ht.isValidElement=z,ht.lazy=function(G){return{$$typeof:h,_payload:{_status:-1,_result:G},_init:j}},ht.memo=function(G,ee){return{$$typeof:d,type:G,compare:ee===void 0?null:ee}},ht.startTransition=function(G){var ee=P.T,me={};P.T=me;try{var ve=G(),ge=P.S;ge!==null&&ge(me,ve),typeof ve=="object"&&ve!==null&&typeof ve.then=="function"&&ve.then(U,ae)}catch(ie){ae(ie)}finally{ee!==null&&me.types!==null&&(ee.types=me.types),P.T=ee}},ht.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ht.use=function(G){return P.H.use(G)},ht.useActionState=function(G,ee,me){return P.H.useActionState(G,ee,me)},ht.useCallback=function(G,ee){return P.H.useCallback(G,ee)},ht.useContext=function(G){return P.H.useContext(G)},ht.useDebugValue=function(){},ht.useDeferredValue=function(G,ee){return P.H.useDeferredValue(G,ee)},ht.useEffect=function(G,ee){return P.H.useEffect(G,ee)},ht.useEffectEvent=function(G){return P.H.useEffectEvent(G)},ht.useId=function(){return P.H.useId()},ht.useImperativeHandle=function(G,ee,me){return P.H.useImperativeHandle(G,ee,me)},ht.useInsertionEffect=function(G,ee){return P.H.useInsertionEffect(G,ee)},ht.useLayoutEffect=function(G,ee){return P.H.useLayoutEffect(G,ee)},ht.useMemo=function(G,ee){return P.H.useMemo(G,ee)},ht.useOptimistic=function(G,ee){return P.H.useOptimistic(G,ee)},ht.useReducer=function(G,ee,me){return P.H.useReducer(G,ee,me)},ht.useRef=function(G){return P.H.useRef(G)},ht.useState=function(G){return P.H.useState(G)},ht.useSyncExternalStore=function(G,ee,me){return P.H.useSyncExternalStore(G,ee,me)},ht.useTransition=function(){return P.H.useTransition()},ht.version="19.2.0",ht}var FM;function pu(){return FM||(FM=1,Cv.exports=eU()),Cv.exports}var A=pu();const Di=ub(A),fb=Z4({__proto__:null,default:Di},[A]);var Rv={exports:{}},wf={},Nv={exports:{}},Dv={};var zM;function tU(){return zM||(zM=1,(function(n){function e(B,W){var j=B.length;B.push(W);e:for(;0<j;){var ae=j-1>>>1,fe=B[ae];if(0<s(fe,W))B[ae]=W,B[j]=fe,j=ae;else break e}}function t(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var W=B[0],j=B.pop();if(j!==W){B[0]=j;e:for(var ae=0,fe=B.length,G=fe>>>1;ae<G;){var ee=2*(ae+1)-1,me=B[ee],ve=ee+1,ge=B[ve];if(0>s(me,j))ve<fe&&0>s(ge,me)?(B[ae]=ge,B[ve]=j,ae=ve):(B[ae]=me,B[ee]=j,ae=ee);else if(ve<fe&&0>s(ge,j))B[ae]=ge,B[ve]=j,ae=ve;else break e}}return W}function s(B,W){var j=B.sortIndex-W.sortIndex;return j!==0?j:B.id-W.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;n.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();n.unstable_now=function(){return l.now()-c}}var f=[],d=[],h=1,g=null,v=3,x=!1,b=!1,_=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function C(B){for(var W=t(d);W!==null;){if(W.callback===null)i(d);else if(W.startTime<=B)i(d),W.sortIndex=W.expirationTime,e(f,W);else break;W=t(d)}}function N(B){if(_=!1,C(B),!b)if(t(f)!==null)b=!0,U||(U=!0,H());else{var W=t(d);W!==null&&q(N,W.startTime-B)}}var U=!1,P=-1,O=5,R=-1;function L(){return w?!0:!(n.unstable_now()-R<O)}function z(){if(w=!1,U){var B=n.unstable_now();R=B;var W=!0;try{e:{b=!1,_&&(_=!1,T(P),P=-1),x=!0;var j=v;try{t:{for(C(B),g=t(f);g!==null&&!(g.expirationTime>B&&L());){var ae=g.callback;if(typeof ae=="function"){g.callback=null,v=g.priorityLevel;var fe=ae(g.expirationTime<=B);if(B=n.unstable_now(),typeof fe=="function"){g.callback=fe,C(B),W=!0;break t}g===t(f)&&i(f),C(B)}else i(f);g=t(f)}if(g!==null)W=!0;else{var G=t(d);G!==null&&q(N,G.startTime-B),W=!1}}break e}finally{g=null,v=j,x=!1}W=void 0}}finally{W?H():U=!1}}}var H;if(typeof M=="function")H=function(){M(z)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,K=Y.port2;Y.port1.onmessage=z,H=function(){K.postMessage(null)}}else H=function(){S(z,0)};function q(B,W){P=S(function(){B(n.unstable_now())},W)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.
vendor: 9,912 bytes, lines 1-3
1callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(B){switch(v){case 1:case 2:case 3:var W=3;break;default:W=v}var j=v;v=W;try{return B()}finally{v=j}},n.unstable_requestPaint=function(){w=!0},n.unstable_runWithPriority=function(B,W){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var j=v;v=B;try{return W()}finally{v=j}},n.unstable_scheduleCallback=function(B,W,j){var ae=n.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?ae+j:ae):j=ae,B){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=j+fe,B={id:h++,callback:W,priorityLevel:B,startTime:j,expirationTime:fe,sortIndex:-1},j>ae?(B.sortIndex=j,e(d,B),t(f)===null&&B===t(d)&&(_?(T(P),P=-1):_=!0,q(N,j-ae))):(B.sortIndex=fe,e(f,B),b||x||(b=!0,U||(U=!0,H()))),B},n.unstable_shouldYield=L,n.unstable_wrapCallback=function(B){var W=v;return function(){var j=v;v=W;try{return B.apply(this,arguments)}finally{v=j}}}})(Dv)),Dv}var jM;function nU(){return jM||(jM=1,Nv.exports=tU()),Nv.exports}var Pv={exports:{}},fi={};var kM;function iU(){if(kM)return fi;kM=1;var n=pu();function e(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)d+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var i={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},s=Symbol.for("react.portal");function a(f,d,h){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:f,containerInfo:d,implementation:h}}var l=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return fi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,fi.createPortal=function(f,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(e(299));return a(f,d,null,h)},fi.flushSync=function(f){var d=l.T,h=i.p;try{if(l.T=null,i.p=2,f)return f()}finally{l.T=d,i.p=h,i.d.f()}},fi.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(f,d))},fi.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},fi.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var h=d.as,g=c(h,d.crossOrigin),v=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?i.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:x}):h==="script"&&i.d.X(f,{crossOrigin:g,integrity:v,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},fi.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var h=c(d.as,d.crossOrigin);i.d.M(f,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(f)},fi.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var h=d.as,g=c(h,d.crossOrigin);i.d.L(f,h,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},fi.preloadModule=function(f,d){if(typeof f=="string")if(d){var h=c(d.as,d.crossOrigin);i.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(f)},fi.requestFormReset=function(f){i.d.r(f)},fi.unstable_batchedUpdates=function(f,d){return f(d)},fi.useFormState=function(f,d,h){return l.H.useFormState(f,d,h)},fi.useFormStatus=function(){return l.H.useHostTransitionStatus()},fi.version="19.2.0",fi}var VM;function HC(){if(VM)return Pv.exports;VM=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),Pv.exports=iU(),Pv.exports}var HM;function sU(){if(HM)return wf;HM=1;var n=nU(),e=pu(),t=HC();function i(r){var o="https://react.dev/errors/"+r;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function a(r){var o=r,u=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(u=o.return),r=o.return;while(r)}return o.tag===3?u:null}function l(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function c(r){if(r.tag===31){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function f(r){if(a(r)!==r)throw Error(i(188))}function d(r){var o=r.alternate;if(!o){if(o=a(r),o===null)throw Error(i(188));return o!==r?null:r}for(var u=r,p=o;;){var y=u.return;if(y===null)break;var E=y.alternate;if(E===null){if(p=y.return,p!==null){u=p;continue}break}if(y.child===E.child){for(E=y.child;E;){if(E===u)return f(y),r;if(E===p)return f(y),o;E=E.sibling}throw Error(i(188))}if(u.return!==p.return)u=y,p=E;else{for(var D=!1,F=y.child;F;){if(F===u){D=!0,u=y,p=E;break}if(F===p){D=!0,p=y,u=E;break}F=F.sibling}if(!D){for(F=E.child;F;){if(F===u){D=!0,u=E,p=y;break}if(F===p){D=!0,p=E,u=y;break}F=F.sibling}if(!D)throw Error(i(189))}}if(u.alternate!==p)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?r:o}function h(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r;for(r=r.child;r!==null;){if(o=h(r),o!==null)return o;r=r.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),M=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function H(r){return r===null||typeof r!="object"?null:(r=z&&r[z]||r["@@iterator"],typeof r=="function"?r:null)}var Y=Symbol.for("react.client.reference");function K(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Y?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case _:return"Fragment";case S:return"Profiler";case w:return"StrictMode";case N:return"Suspense";case U:return"SuspenseList";case R:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case b:return"Portal";case M:return r.displayName||"Context";case T:return(r._context.displayName||"Context")+".Consumer";case C:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case P:return o=r.displayName||null,o!==null?o:K(r.type)||"Memo";case O:o=r._payload,r=r._init;try{return K(r(o))}catch{}}return null}var q=Array.isArray,B=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},ae=[],fe=-1;function G(r){return{current:r}}function ee(r){0>fe||(r.current=ae[fe],ae[fe]=null,fe--)}function me(r,o){fe++,ae[fe]=r.current,r.current=o}var ve=G(null),ge=G(null),ie=G(null),Z=G(null);function xe(r,o){switch(me(ie,o),me(ge,r),me(ve,null),o.nodeType){case 9:case 11:r=(r=o.documentElement)&&(r=r.namespaceURI)?sM(r):0;break;default:if(r=o.tagName,o=o.namespaceURI)o=sM(o),r=rM(o,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}ee(ve),me(ve,r)}function Me(){ee(ve),ee(ge),ee(ie)}function Ae(r){r.memoizedState!==null&&me(Z,r);var o=ve.current,u=rM(o,r.type);o!==u&&(me(ge,r),me(ve,u))}function Be(r){ge.current===r&&(ee(ve),ee(ge)),Z.current===r&&(ee(Z),xf._currentValue=j)}var Xe,X;function He(r){if(Xe===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);Xe=o&&o[1]||"",X=-1<u.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+Xe+r+X}var qe=!1;function Le(r,o){if(!r||qe)return"";qe=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(o){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(he){var ce=he}Reflect.construct(r,[],we)}else{try{we.call()}catch(he){ce=he}r.call(we.prototype)}}else{try{throw Error()}catch(he){ce=he}(we=r())&&typeof we.catch=="function"&&we.catch(function(){})}}
vendor: 9,326 bytes, lines 3-8
3catch(he){if(he&&ce&&typeof he.stack=="string")return[he.stack,ce.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=p.DetermineComponentFrameRoot(),D=E[0],F=E[1];if(D&&F){var $=D.split(` 4`),le=F.split(` 5`);for(y=p=0;p<$.length&&!$[p].includes("DetermineComponentFrameRoot");)p++;for(;y<le.length&&!le[y].includes("DetermineComponentFrameRoot");)y++;if(p===$.length||y===le.length)for(p=$.length-1,y=le.length-1;1<=p&&0<=y&&$[p]!==le[y];)y--;for(;1<=p&&0<=y;p--,y--)if($[p]!==le[y]){if(p!==1||y!==1)do if(p--,y--,0>y||$[p]!==le[y]){var _e=` 6`+$[p].replace(" at new "," at ");return r.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",r.displayName)),_e}while(1<=p&&0<=y);break}}}finally{qe=!1,Error.prepareStackTrace=u}return(u=r?r.displayName||r.name:"")?He(u):""}function Pe(r,o){switch(r.tag){case 26:case 27:case 5:return He(r.type);case 16:return He("Lazy");case 13:return r.child!==o&&o!==null?He("Suspense Fallback"):He("Suspense");case 19:return He("SuspenseList");case 0:case 15:return Le(r.type,!1);case 11:return Le(r.type.render,!1);case 1:return Le(r.type,!0);case 31:return He("Activity");default:return""}}function _t(r){try{var o="",u=null;do o+=Pe(r,u),u=r,r=r.return;while(r);return o}catch(p){return` 7Error generating stack: `+p.message+` 8`+p.stack}}var Fe=Object.prototype.hasOwnProperty,lt=n.unstable_scheduleCallback,tn=n.unstable_cancelCallback,ln=n.unstable_shouldYield,V=n.unstable_requestPaint,I=n.unstable_now,re=n.unstable_getCurrentPriorityLevel,be=n.unstable_ImmediatePriority,Ce=n.unstable_UserBlockingPriority,ye=n.unstable_NormalPriority,it=n.unstable_LowPriority,Oe=n.unstable_IdlePriority,tt=n.log,nt=n.unstable_setDisableYieldValue,Ne=null,Ue=null;function st(r){if(typeof tt=="function"&&nt(r),Ue&&typeof Ue.setStrictMode=="function")try{Ue.setStrictMode(Ne,r)}catch{}}var Ge=Math.clz32?Math.clz32:J,ze=Math.log,pt=Math.LN2;function J(r){return r>>>=0,r===0?32:31-(ze(r)/pt|0)|0}var De=256,Ie=262144,We=4194304;function Re(r){var o=r&42;if(o!==0)return o;switch(r&-r){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Ee(r,o,u){var p=r.pendingLanes;if(p===0)return 0;var y=0,E=r.suspendedLanes,D=r.pingedLanes;r=r.warmLanes;var F=p&134217727;return F!==0?(p=F&~E,p!==0?y=Re(p):(D&=F,D!==0?y=Re(D):u||(u=F&~r,u!==0&&(y=Re(u))))):(F=p&~E,F!==0?y=Re(F):D!==0?y=Re(D):u||(u=p&~r,u!==0&&(y=Re(u)))),y===0?0:o!==0&&o!==y&&(o&E)===0&&(E=y&-y,u=o&-o,E>=u||E===32&&(u&4194048)!==0)?o:y}function Ye(r,o){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&o)===0}function dt(r,o){switch(r){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32: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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Yt(){var r=We;return We<<=1,(We&62914560)===0&&(We=4194304),r}function Ot(r){for(var o=[],u=0;31>u;u++)o.push(r);return o}function vi(r,o){r.pendingLanes|=o,o!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function us(r,o,u,p,y,E){var D=r.pendingLanes;r.pendingLanes=u,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=u,r.entangledLanes&=u,r.errorRecoveryDisabledLanes&=u,r.shellSuspendCounter=0;var F=r.entanglements,$=r.expirationTimes,le=r.hiddenUpdates;for(u=D&~u;0<u;){var _e=31-Ge(u),we=1<<_e;F[_e]=0,$[_e]=-1;var ce=le[_e];if(ce!==null)for(le[_e]=null,_e=0;_e<ce.length;_e++){var he=ce[_e];he!==null&&(he.lane&=-536870913)}u&=~we}p!==0&&Du(r,p,0),E!==0&&y===0&&r.tag!==0&&(r.suspendedLanes|=E&~(D&~o))}function Du(r,o,u){r.pendingLanes|=o,r.suspendedLanes&=~o;var p=31-Ge(o);r.entangledLanes|=o,r.entanglements[p]=r.entanglements[p]|1073741824|u&261930}function er(r,o){var u=r.entangledLanes|=o;for(r=r.entanglements;u;){var p=31-Ge(u),y=1<<p;y&o|r[p]&o&&(r[p]|=o),u&=~y}}function Ml(r,o){var u=o&-o;return u=(u&42)!==0?1:Tl(u),(u&(r.suspendedLanes|o))!==0?0:u}function Tl(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Al(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function _o(){var r=W.p;return r!==0?r:(r=window.event,r===void 0?32:CM(r.type))}function Pu(r,o){var u=W.p;try{return W.p=r,o()}finally{W.p=u}}var ki=Math.random().toString(36).slice(2),Dn="__reactFiber$"+ki,ti="__reactProps$"+ki,da="__reactContainer$"+ki,Lu="__reactEvents$"+ki,bg="__reactListeners$"+ki,Sg="__reactHandles$"+ki,Xd="__reactResources$"+ki,bo="__reactMarker$"+ki;function k(r){delete r[Dn],delete r[ti],delete r[Lu],delete r[bg],delete r[Sg]}function te(r){var o=r[Dn];if(o)return o;for(var u=r.parentNode;u;){if(o=u[da]||u[Dn]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(r=dM(r);r!==null;){if(u=r[Dn])return u;r=dM(r)}return o}r=u,u=r.parentNode}return null}function ue(r){if(r=r[Dn]||r[da]){var o=r.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return r}return null}function de(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r.stateNode;throw Error(i(33))}function se(r){var o=r[Xd];return o||(o=r[Xd]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Te(r){r[bo]=!0}var je=new Set,Ke={};function Ve(r,o){rt(r,o),rt(r+"Capture",o)}function rt(r,o){for(Ke[r]=o,r=0;r<o.length;r++)je.add(o[r])}var ut=RegExp("^[: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]*$"),at={},bt={};function Gt(r){return Fe.call(bt,r)?!0:Fe.call(at,r)?!1:ut.test(r)?bt[r]=!0:(at[r]=!0,!1)}function nn(r,o,u){if(Gt(o))if(u===null)r.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":r.removeAttribute(o);return;case"boolean":var p=o.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){r.removeAttribute(o);return}}r.setAttribute(o,""+u)}}function Wt(r,o,u){if(u===null)r.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttribute(o,""+u)}}function Et(r,o,u,p){if(p===null)r.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(u);return}r.setAttributeNS(o,u,""+p)}}function Ze(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function cn(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ut(r,o,u){var p=Object.getOwnPropertyDescriptor(r.constructor.prototype,o);if(!r.hasOwnProperty(o)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var y=p.get,E=p.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return y.call(this)},set:function(D){u=""+D,E.call(this,D)}}),Object.defineProperty(r,o,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(D){u=""+D},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function ni(r){if(!r._valueTracker){var o=cn(r)?"checked":"value";r._valueTracker=Ut(r,o,""+r[o])}}function Ar(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var u=o.getValue(),p="";return r&&(p=cn(r)?r.checked?"true":"false":r.value),r=p,r!==u?(o.setValue(r),!0):!1}function Yn(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var So=/[\n"\\]/g;function At(r){return r.replace(So,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function ui(r,o,u,p,y,E,D,F){r.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?r.type=D:r.removeAttribute("type"),o!=null?D==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+Ze(o)):r.value!==""+Ze(o)&&(r.value=""+Ze(o)):D!=="submit"&&D!=="reset"||r.removeAttribute("value"),o!=null?jn(r,D,Ze(o)):u!=null?jn(r,D,Ze(u)):p!=null&&r.removeAttribute("value"),y==null&&E!=null&&(r.defaultChecked=!!E),y!=null&&(r.checked=y&&t
vendor: 5,690 bytes, line 8
8ypeof y!="function"&&typeof y!="symbol"),F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?r.name=""+Ze(F):r.removeAttribute("name")}function xi(r,o,u,p,y,E,D,F){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(r.type=E),o!=null||u!=null){if(!(E!=="submit"&&E!=="reset"||o!=null)){ni(r);return}u=u!=null?""+Ze(u):"",o=o!=null?""+Ze(o):u,F||o===r.value||(r.value=o),r.defaultValue=o}p=p??y,p=typeof p!="function"&&typeof p!="symbol"&&!!p,r.checked=F?r.checked:!!p,r.defaultChecked=!!p,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(r.name=D),ni(r)}function jn(r,o,u){o==="number"&&Yn(r.ownerDocument)===r||r.defaultValue===""+u||(r.defaultValue=""+u)}function En(r,o,u,p){if(r=r.options,o){o={};for(var y=0;y<u.length;y++)o["$"+u[y]]=!0;for(u=0;u<r.length;u++)y=o.hasOwnProperty("$"+r[u].value),r[u].selected!==y&&(r[u].selected=y),y&&p&&(r[u].defaultSelected=!0)}else{for(u=""+Ze(u),o=null,y=0;y<r.length;y++){if(r[y].value===u){r[y].selected=!0,p&&(r[y].defaultSelected=!0);return}o!==null||r[y].disabled||(o=r[y])}o!==null&&(o.selected=!0)}}function Cl(r,o,u){if(o!=null&&(o=""+Ze(o),o!==r.value&&(r.value=o),u==null)){r.defaultValue!==o&&(r.defaultValue=o);return}r.defaultValue=u!=null?""+Ze(u):""}function tr(r,o,u,p){if(o==null){if(p!=null){if(u!=null)throw Error(i(92));if(q(p)){if(1<p.length)throw Error(i(93));p=p[0]}u=p}u==null&&(u=""),o=u}u=Ze(o),r.defaultValue=u,p=r.textContent,p===u&&p!==""&&p!==null&&(r.value=p),ni(r)}function Rl(r,o){if(o){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=o;return}}r.textContent=o}var XL=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tS(r,o,u){var p=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?r.setProperty(o,""):o==="float"?r.cssFloat="":r[o]="":p?r.setProperty(o,u):typeof u!="number"||u===0||XL.has(o)?o==="float"?r.cssFloat=u:r[o]=(""+u).trim():r[o]=u+"px"}function nS(r,o,u){if(o!=null&&typeof o!="object")throw Error(i(62));if(r=r.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||o!=null&&o.hasOwnProperty(p)||(p.indexOf("--")===0?r.setProperty(p,""):p==="float"?r.cssFloat="":r[p]="");for(var y in o)p=o[y],o.hasOwnProperty(y)&&u[y]!==p&&tS(r,y,p)}else for(var E in o)o.hasOwnProperty(E)&&tS(r,E,o[E])}function wg(r){if(r.indexOf("-")===-1)return!1;switch(r){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 qL=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
8-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),YL=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function qd(r){return YL.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Cr(){}var Eg=null;function Mg(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Nl=null,Dl=null;function iS(r){var o=ue(r);if(o&&(r=o.stateNode)){var u=r[ti]||null;e:switch(r=o.stateNode,o.type){case"input":if(ui(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=r;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+At(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var p=u[o];if(p!==r&&p.form===r.form){var y=p[ti]||null;if(!y)throw Error(i(90));ui(p,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(o=0;o<u.length;o++)p=u[o],p.form===r.form&&Ar(p)}break e;case"textarea":Cl(r,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&En(r,!!u.multiple,o,!1)}}}var Tg=!1;function sS(r,o,u){if(Tg)return r(o,u);Tg=!0;try{var p=r(o);return p}finally{if(Tg=!1,(Nl!==null||Dl!==null)&&(Oh(),Nl&&(o=Nl,r=Dl,Dl=Nl=null,iS(o),r)))for(o=0;o<r.length;o++)iS(r[o])}}function Ou(r,o){var u=r.stateNode;if(u===null)return null;var p=u[ti]||null;if(p===null)return null;u=p[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(r=r.type,p=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!p;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error(i(231,o,typeof u));return u}var Rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ag=!1;if(Rr)try{var Uu={};Object.defineProperty(Uu,"passive",{get:function(){Ag=!0}}),window.addEventListener("test",Uu,Uu),window.removeEventListener("test",Uu,Uu)}catch{Ag=!1}var ha=null,Cg=null,Yd=null;function rS(){if(Yd)return Yd;var r,o=Cg,u=o.length,p,y="value"in ha?ha.value:ha.textContent,E=y.length;for(r=0;r<u&&o[r]===y[r];r++);var D=u-r;for(p=1;p<=D&&o[u-p]===y[E-p];p++);return Yd=y.slice(r,1<p?1-p:void 0)}function $d(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function Kd(){return!0}function aS(){return!1}function Ei(r){function o(u,p,y,E,D){this._reactName=u,this._targetInst=y,this.type=p,this.nativeEvent=E,this.target=D,this.currentTarget=null;for(var F in r)r.hasOwnProperty(F)&&(u=r[F],this[F]=u?u(E):E[F]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Kd:aS,this.isPropagationStopped=aS,this}return g(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Kd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Kd)},persist:function(){},isPersistent:Kd}),o}var wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zd=Ei(wo),Iu=g({},wo,{view:0,detail:0}),$L=Ei(Iu),Rg,Ng,Bu,Qd=g({},Iu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pg,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Bu&&(Bu&&r.type==="mousemove"?(Rg=r.screenX-Bu.screenX,Ng=r.screenY-Bu.screenY):Ng=Rg=0,Bu
vendor: 4,827 bytes, line 8
8=r),Rg)},movementY:function(r){return"movementY"in r?r.movementY:Ng}}),oS=Ei(Qd),KL=g({},Qd,{dataTransfer:0}),ZL=Ei(KL),QL=g({},Iu,{relatedTarget:0}),Dg=Ei(QL),JL=g({},wo,{animationName:0,elapsedTime:0,pseudoElement:0}),eO=Ei(JL),tO=g({},wo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),nO=Ei(tO),iO=g({},wo,{data:0}),lS=Ei(iO),sO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rO={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"},aO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oO(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=aO[r])?!!o[r]:!1}function Pg(){return oO}var lO=g({},Iu,{key:function(r){if(r.key){var o=sO[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=$d(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?rO[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pg,charCode:function(r){return r.type==="keypress"?$d(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?$d(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),cO=Ei(lO),uO=g({},Qd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cS=Ei(uO),fO=g({},Iu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pg}),dO=Ei(fO),hO=g({},wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),pO=Ei(hO),mO=g({},Qd,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),gO=Ei(mO),vO=g({},wo,{newState:0,oldState:0}),xO=Ei(vO),yO=[9,13,27,32],Lg=Rr&&"CompositionEvent"in window,Fu=null;Rr&&"documentMode"in document&&(Fu=document.documentMode);var _O=Rr&&"TextEvent"in window&&!Fu,uS=Rr&&(!Lg||Fu&&8<Fu&&11>=Fu),fS=" ",dS=!1;function hS(r,o){switch(r){case"keyup":return yO.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pS(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Pl=!1;function bO(r,o){switch(r){case"compositionend":return pS(o);case"keypress":return o.which!==32?null:(dS=!0,fS);case"textInput":return r=o.data,r===fS&&dS?null:r;default:return null}}function SO(r,o){if(Pl)return r==="compositionend"||!Lg&&hS(r,o)?(r=rS(),Yd=Cg=ha=null,Pl=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return uS&&o.locale!=="ko"?null:o.data;default:return null}}var wO={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 mS(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!wO[r.type]:o==="textarea"}function gS(r,o,u,p){Nl?Dl?Dl.push(p):Dl=[p]:Nl=p,o=kh(o,"onChange"),0<o.length&&(u=new Zd("onChange","change",null,u,p),r.push({event:u,listeners:o}))}var zu=null,ju=null;function EO(r){QE(r,0)}function Jd(r){var o=de(r);if(Ar(o))return r}function vS(r,o){if(r==="change")return o}var xS=!1;if(Rr){var Og;if(Rr){var Ug="oninput"in document;if(!Ug){var yS=document.createElement("div");yS.setAttribute("oninput","return;"),Ug=typeof yS.oninput=="function"}Og=Ug}else Og=!1;xS=Og&&(!document.documentMode||9<document.documentMode)}function _S(){zu&&(zu.detachEvent("onpropertychange",bS),ju=zu=null)}function bS(r){if(r.propertyName==="value"&&Jd(ju)){var o=[];gS(o,ju,r,Mg(r)),sS(EO,o)}}function MO(r,o,u){r==="focusin"?(_S(),zu=o,ju=u,zu.attachEvent("onpropertychange",bS)):r==="focusout"&&_S()}function TO(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Jd(ju)}function AO(r,o){if(r==="click")return Jd(o)}function CO(r,o){if(r==="input"||r==="change")return Jd(o)}function RO(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Vi=typeof Object.is=="function"?Object.is:RO;function ku(r,o){if(Vi(r,o))return!0;
vendor: 20,352 bytes, line 8
8if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var u=Object.keys(r),p=Object.keys(o);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var y=u[p];if(!Fe.call(o,y)||!Vi(r[y],o[y]))return!1}return!0}function SS(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function wS(r,o){var u=SS(r);r=0;for(var p;u;){if(u.nodeType===3){if(p=r+u.textContent.length,r<=o&&p>=o)return{node:u,offset:o-r};r=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=SS(u)}}function ES(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?ES(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function MS(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var o=Yn(r.document);o instanceof r.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)r=o.contentWindow;else break;o=Yn(r.document)}return o}function Ig(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}var NO=Rr&&"documentMode"in document&&11>=document.documentMode,Ll=null,Bg=null,Vu=null,Fg=!1;function TS(r,o,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Fg||Ll==null||Ll!==Yn(p)||(p=Ll,"selectionStart"in p&&Ig(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Vu&&ku(Vu,p)||(Vu=p,p=kh(Bg,"onSelect"),0<p.length&&(o=new Zd("onSelect","select",null,o,u),r.push({event:o,listeners:p}),o.target=Ll)))}function Eo(r,o){var u={};return u[r.toLowerCase()]=o.toLowerCase(),u["Webkit"+r]="webkit"+o,u["Moz"+r]="moz"+o,u}var Ol={animationend:Eo("Animation","AnimationEnd"),animationiteration:Eo("Animation","AnimationIteration"),animationstart:Eo("Animation","AnimationStart"),transitionrun:Eo("Transition","TransitionRun"),transitionstart:Eo("Transition","TransitionStart"),transitioncancel:Eo("Transition","TransitionCancel"),transitionend:Eo("Transition","TransitionEnd")},zg={},AS={};Rr&&(AS=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Mo(r){if(zg[r])return zg[r];if(!Ol[r])return r;var o=Ol[r],u;for(u in o)if(o.hasOwnProperty(u)&&u in AS)return zg[r]=o[u];return r}var CS=Mo("animationend"),RS=Mo("animationiteration"),NS=Mo("animationstart"),DO=Mo("transitionrun"),PO=Mo("transitionstart"),LO=Mo("transitioncancel"),DS=Mo("transitionend"),PS=new Map,jg="abort auxClick beforeToggle 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(" ");jg.push("scrollEnd");function Os(r,o){PS.set(r,o),Ve(o,[r])}var eh=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},fs=[],Ul=0,kg=0;function th(){for(var r=Ul,o=kg=Ul=0;o<r;){var u=fs[o];fs[o++]=null;var p=fs[o];fs[o++]=null;var y=fs[o];fs[o++]=null;var E=fs[o];if(fs[o++]=null,p!==null&&y!==null){var D=p.pending;D===null?y.next=y:(y.next=D.next,D.next=y),p.pending=y}E!==0&&LS(u,y,E)}}function nh(r,o,u,p){fs[Ul++]=r,fs[Ul++]=o,fs[Ul++]=u,fs[Ul++]=p,kg|=p,r.lanes|=p,r=r.alternate,r!==null&&(r.lanes|=p)}function Vg(r,o,u,p){return nh(r,o,u,p),ih(r)}function To(r,o){return nh(r,null,null,o),ih(r)}function LS(r,o,u){r.lanes|=u;var p=r.alternate;p!==null&&(p.lanes|=u);for(var y=!1,E=r.return;E!==null;)E.childLanes|=u,p=E.alternate,p!==null&&(p.childLanes|=u),E.tag===22&&(r=E.stateNode,r===null||r._visibility&1||(y=!0)),r=E,E=E.return;return r.tag===3?(E=r.stateNode,y&&o!==null&&(y=31-Ge(u),r=E.hiddenUpdates,p=r[y],p===null?r[y]=[o]:p.push(o),o.lane=u|536870912),E):null}function ih(r){if(50<ff)throw ff=0,Z0=null,Error(i(185));for(var o=r.return;o!==null;)r=o,o=r.return;return r.tag===3?r.stateNode:null}var Il={};function OO(r,o,u,p){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hi(r,o,u,p){return new OO(r,o,u,p)}function Hg(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Nr(r,o){var u=r.alternate;return u===null?(u=Hi(r.tag,o,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u.alternate=r,r.alternate=u):(u.pendingProps=o,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=r.flags&65011712,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,o=r.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u.refCleanup=r.refCleanup,u}function OS(r,o){r.flags&=65011714;var u=r.alternate;return u===null?(r.childLanes=0,r.lanes=o,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,o=u.dependencies,r.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),r}function sh(r,o,u,p,y,E){var D=0;if(p=r,typeof r=="function")Hg(r)&&(D=1);else if(typeof r=="string")D=z4(r,u,ve.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case R:return r=Hi(31,u,o,y),r.elementType=R,r.lanes=E,r;case _:return Ao(u.children,y,E,o);case w:D=8,y|=24;break;case S:return r=Hi(12,u,o,y|2),r.elementType=S,r.lanes=E,r;case N:return r=Hi(13,u,o,y),r.elementType=N,r.lanes=E,r;case U:return r=Hi(19,u,o,y),r.elementType=U,r.lanes=E,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case M:D=10;break e;case T:D=9;break e;case C:D=11;break e;case P:D=14;break e;case O:D=16,p=null;break e}D=29,u=Error(i(130,r===null?"null":typeof r,"")),p=null}return o=Hi(D,u,o,y),o.elementType=r,o.type=p,o.lanes=E,o}function Ao(r,o,u,p){return r=Hi(7,r,p,o),r.lanes=u,r}function Gg(r,o,u){return r=Hi(6,r,null,o),r.lanes=u,r}function US(r){var o=Hi(18,null,null,0);return o.stateNode=r,o}function Wg(r,o,u){return o=Hi(4,r.children!==null?r.children:[],r.key,o),o.lanes=u,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}var IS=new WeakMap;function ds(r,o){if(typeof r=="object"&&r!==null){var u=IS.get(r);return u!==void 0?u:(o={value:r,source:o,stack:_t(o)},IS.set(r,o),o)}return{value:r,source:o,stack:_t(o)}}var Bl=[],Fl=0,rh=null,Hu=0,hs=[],ps=0,pa=null,nr=1,ir="";function Dr(r,o){Bl[Fl++]=Hu,Bl[Fl++]=rh,rh=r,Hu=o}function BS(r,o,u){hs[ps++]=nr,hs[ps++]=ir,hs[ps++]=pa,pa=r;var p=nr;r=ir;var y=32-Ge(p)-1;p&=~(1<<y),u+=1;var E=32-Ge(o)+y;if(30<E){var D=y-y%5;E=(p&(1<<D)-1).toString(32),p>>=D,y-=D,nr=1<<32-Ge(o)+y|u<<y|p,ir=E+r}else nr=1<<E|u<<y|p,ir=r}function Xg(r){r.return!==null&&(Dr(r,1),BS(r,1,0))}function qg(r){for(;r===rh;)rh=Bl[--Fl],Bl[Fl]=null,Hu=Bl[--Fl],Bl[Fl]=null;for(;r===pa;)pa=hs[--ps],hs[ps]=null,ir=hs[--ps],hs[ps]=null,nr=hs[--ps],hs[ps]=null}function FS(r,o){hs[ps++]=nr,hs[ps++]=ir,hs[ps++]=pa,nr=o.id,ir=o.overflow,pa=r}var ii=null,fn=null,Nt=!1,ma=null,ms=!1,Yg=Error(i(519));function ga(r){var o=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gu(ds(o,r)),Yg}function zS(r){var o=r.stateNode,u=r.type,p=r.memoizedProps;switch(o[Dn]=r,o[ti]=p,u){case"dialog":Tt("cancel",o),Tt("close",o);break;case"iframe":case"object":case"embed":Tt("load",o);break;case"video":case"audio":for(u=0;u<hf.length;u++)Tt(hf[u],o);break;case"source":Tt("error",o);break;case"img":case"image":case"link":Tt("error",o),Tt("load",o);break;case"details":Tt("toggle",o);break;case"input":Tt("invalid",o),xi(o,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":Tt("invalid",o);break;case"textarea":Tt("invalid",o),tr(o,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||p.suppressHydrationWarning===!0||nM(o.textContent,u)?(p.popover!=null&&(Tt("beforetoggle",o),Tt("toggle",o)),p.onScroll!=null&&Tt("scroll",o),p.onScrollEnd!=null&&Tt("scrollend",o),p.onClick!=null&&(o.onclick=Cr),o=!0):o=!1,o||ga(r,!0)}function jS(r){for(ii=r.return;ii;)switch(ii.tag){case 5:case 31:case 13:ms=!1;return;case 27:case 3:ms=!0;return;default:ii=ii.return}}function zl(r){if(r!==ii)return!1;if(!Nt)return jS(r),Nt=!0,!1;var o=r.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=r.type,u=!(u!=="form"&&u!=="button")||dv(r.type,r.memoizedProps)),u=!u),u&&fn&&ga(r),jS(r),o===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));fn=fM(r)}else if(o===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));fn=fM(r)}else o===27?(o=fn,Na(r.type)?(r=vv,vv=null,fn=r):fn=o):fn=ii?vs(r.stateNode.nextSibling):null;return!0}function Co(){fn=ii=null,Nt=!1}function $g(){var r=ma;return r!==null&&(Ci===null?Ci=r:Ci.push.apply(Ci,r),ma=null),r}function Gu(r){ma===null?ma=[r]:ma.push(r)}var Kg=G(null),Ro=null,Pr=null;function va(r,o,u){me(Kg,o._currentValue),o._currentValue=u}function Lr(r){r._currentValue=Kg.current,ee(Kg)}function Zg(r,o,u){for(;r!==null;){var p=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,p!==null&&(p.childLanes|=o)):p!==null&&(p.childLanes&o)!==o&&(p.childLanes|=o),r===u)break;r=r.return}}function Qg(r,o,u,p){var y=r.child;for(y!==null&&(y.return=r);y!==null;){var E=y.dependencies;if(E!==null){var D=y.child;E=E.firstContext;e:for(;E!==null;){var F=E;E=y;for(var $=0;$<o.length;$++)if(F.context===o[$]){E.lanes|=u,F=E.alternate,F!==null&&(F.lanes|=u),Zg(E.return,u,r),p||(D=null);break e}E=F.next}}else if(y.tag===18){if(D=y.return,D===null)throw Error(i(341));D.lanes|=u,E=D.alternate,E!==null&&(E.lanes|=u),Zg(D,u,r),D=null}else D=y.child;if(D!==null)D.return=y;else for(D=y;D!==null;){if(D===r){D=null;break}if(y=D.sibling,y!==null){y.return=D.return,D=y;break}D=D.return}y=D}}function jl(r,o,u,p){r=null;for(var y=o,E=!1;y!==null;){if(!E){if((y.flags&524288)!==0)E=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var D=y.alternate;if(D===null)throw Error(i(387));if(D=D.memoizedProps,D!==null){var F=y.type;Vi(y.pendingProps.value,D.value)||(r!==null?r.push(F):r=[F])}}else if(y===Z.current){if(D=y.alternate,D===null)throw Error(i(387));D.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(r!==null?r.push(xf):r=[xf])}y=y.return}r!==null&&Qg(o,r,u,p),o.flags|=262144}function ah(r){for(r=r.firstContext;r!==null;){if(!Vi(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function No(r){Ro=r,Pr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function si(r){return kS(Ro,r)}function oh(r,o){return Ro===null&&No(r),kS(r,o)}function kS(r,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},Pr===null){if(r===null)throw Error(i(308));Pr=o,r.dependencies={lanes:0,firstContext:o},r.flags|=524288}else Pr=Pr.next=o;return u}var UO=typeof AbortController<"u"?AbortController:function(){var r=[],o=this.signal={aborted:!1,addEventListener:function(u,p){r.push(p)}};this.abort=function(){o.aborted=!0,r.forEach(function(u){return u()})}},IO=n.unstable_scheduleCallback,BO=n.unstable_NormalPriority,Pn={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jg(){return{controller:new UO,data:new Map,refCount:0}}function Wu(r){r.refCount--,r.refCount===0&&IO(BO,function(){r.controller.abort()})}var Xu=null,e0=0,kl=0,Vl=null;function FO(r,o){if(Xu===null){var u=Xu=[];e0=0,kl=iv(),Vl={status:"pending",value:void 0,then:function(p){u.push(p)}}}return e0++,o.then(VS,VS),o}function VS(){if(--e0===0&&Xu!==null){Vl!==null&&(Vl.status="fulfilled");var r=Xu;Xu=null,kl=0,Vl=null;for(var o=0;o<r.length;o++)(0,r[o])()}}function zO(r,o){var u=[],p={status:"pending",value:null,reason:null,then:function(y){u.push(y)}};return r.then(function(){p.status="fulfilled",p.value=o;for(var y=0;y<u.length;y++)(0,u[y])(o)},function(y){for(p.status="rejected",p.reason=y,y=0;y<u.length;y++)(0,u[y])(void 0)}),p}var HS=B.S;B.S=function(r,o){TE=I(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&FO(r,o),HS!==null&&HS(r,o)};var Do=G(null);function t0(){var r=Do.current;return r!==null?r:sn.pooledCache}function lh(r,o){o===null?me(Do,Do.current):me(Do,o.pool)}function GS(){var r=t0();return r===null?null:{parent:Pn._currentValue,pool:r}}var Hl=Error(i(460)),n0=Error(i(474)),ch=Error(i(542)),uh={then:function(){}};function WS(r){return r=r.status,r==="fulfilled"||r==="rejected"}function XS(r,o,u){switch(u=r[u],u===void 0?r.push(o):u!==o&&(o.then(Cr,Cr),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,YS(r),r;default:if(typeof o.status=="string")o.then(Cr,Cr);else{if(r=sn,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=o,r.status="pending",r.then(function(p){if(o.status==="pending"){var y=o;y.status="fulfilled",y.value=p}},function(p){if(o.status==="pending"){var y=o;y.status="rejected",y.reason=p}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,YS(r),r}throw Lo=o,Hl}}function Po(r){try{var o=r._init;return o(r._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Lo=u,Hl):u}}var Lo=null;function qS(){if(Lo===null)throw Error(i(459));var r=Lo;return Lo=null,r}function YS(r){if(r===Hl||r===ch)throw Error(i(483))}var Gl=null,qu=0;function fh(r){var o=qu;return qu+=1,Gl===null&&(Gl=[]),XS(Gl,r,o)}function Yu(r,o){o=o.props.ref,r.ref=o!==void 0?o:null}function dh(r,o){throw o.$$typeof===v?Error(i(525)):(r=Object.prototype.toString.call(o),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r)))}function $S(r){function o(ne,Q){if(r){var oe=ne.deletions;oe===null?(ne.deletions=[Q],ne.flags|=16):oe.push(Q)}}function u(ne,Q){if(!r)return null;for(;Q!==null;)o(ne,Q),Q=Q.sibling;return null}function p(ne){for(var Q=new Map;ne!==null;)ne.key!==null?Q.set(ne.key,ne):Q.set(ne.index,ne),ne=ne.sibling;return Q}function y(ne,Q){return ne=Nr(ne,Q),ne.index=0,ne.sibling=null,ne}function E(ne,Q,oe){return ne.index=oe,r?(oe=ne.alternate,oe!==null?(oe=oe.index,oe<Q?(ne.flags|=67108866,Q):oe):(ne.flags|=67108866,Q)):(ne.flags|=1048576,Q)}function D(ne){return r&&ne.alternate===null&&(ne.flags|=67108866),ne}function F(ne,Q,oe,Se){return Q===null||Q.tag!==6?(Q=Gg(oe,ne.mode,Se),Q.return=ne,Q):(Q=y(Q,oe),Q.return=ne,Q)}function $(ne,Q,oe,Se){var ot=oe.type;return ot===_?_e(ne,Q,oe.props.children,Se,oe.key):Q!==null&&(Q.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===O&&Po(ot)===Q.type)?(Q=y(Q,oe.props),Yu(Q,oe),Q.return=ne,Q):(Q=sh(oe.type,oe.key,oe.props,null,ne.mode,Se),Yu(Q,oe),Q.return=ne,Q)}function le(ne,Q,oe,Se){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==oe.containerInfo||Q.stateNode.implementation!==oe.implementation?(Q=Wg(oe,ne.mode,Se),Q.return=ne,Q):(Q=y(Q,oe.children||[]),Q.return=ne,Q)}function _e(ne,Q,oe,Se,ot){return Q===null||Q.tag!==7?(Q=Ao(oe,ne.mode,Se,ot),Q.return=ne,Q):(Q=y(Q,oe),Q.return=ne,Q)}function we(ne,Q,oe){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=Gg(""+Q,ne.mode,oe),Q.return=ne,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case x:return oe=sh(Q.type,Q.key,Q.props,null,ne.mode,oe),Yu(oe,Q),oe.return=ne,oe;case b:return Q=Wg(Q,ne.mode,oe),Q.return=ne,Q;case O:return Q=Po(Q),we(ne,Q,oe)}if(q(Q)||H(Q))return Q=Ao(Q,ne.mode,oe,null),Q.return=ne,Q;if(typeof Q.then=="function")return we(ne,fh(Q),oe);if(Q.$$typeof===M)return we(ne,oh(ne,Q),oe);dh(ne,Q)}return null}function ce(ne,Q,oe,Se){var ot=Q!==null?Q.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return ot!==null?null:F(ne,Q,""+oe,Se);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case x:return oe.key===ot?$(ne,Q,oe,Se):null;case b:return oe.key===ot?le(ne,Q,oe,Se):null;case O:return oe=Po(oe),ce(ne,Q,oe,Se)}if(q(oe)||H(oe))return ot!==null?null:_e(ne,Q,oe,Se,null);if(typeof oe.then=="function")return ce(ne,Q,fh(oe),Se);if(oe.$$typeof===M)return ce(ne,Q,oh(ne,oe),Se);dh(ne,oe)}return null}function he(ne,Q,oe,Se,ot){if(typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint")return ne=ne.get(oe)||null,F(Q,ne,""+Se,ot);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case x:return ne=ne.get(Se.key===null?oe:Se.key)||null,$(Q,ne,Se,ot);case b:return ne=ne.get(Se.key===null?oe:Se.key)||null,le(Q,ne,Se,ot);case O:return Se=Po(Se),he(ne,Q,oe,Se,ot)}if(q(Se)||H(Se))return ne=ne.get(oe)||null,_e(Q,ne,Se,ot,null);if(typeof Se.then=="function")return he(ne,Q,oe,fh(Se),ot);if(Se.$$typeof===M)return he(ne,Q,oe,oh(Q,Se),ot);dh(Q,Se)}return null}function $e(ne,Q,oe,Se){for(var ot=null,Bt=null,et=Q,vt=Q=0,Rt=null;et!==null&&vt<oe.length;vt++){et.index>vt?(Rt=et,et=null):Rt=et.sibling;var Ft=ce(ne,et,oe[vt],Se);if(Ft===null){et===null&&(et=Rt);break}r&&et&&Ft.alternate===null&&o(ne,et),Q=E(Ft,Q,vt),Bt===null?ot=Ft:Bt.sibling=Ft,Bt=Ft,et=Rt}if(vt===oe.length)return u(ne,et),Nt&&Dr(ne,vt),ot;if(et===null){for(;vt<oe.length;vt++)et=we(ne,oe[vt],Se),et!==null&&(Q=E(et,Q,vt),Bt===null?ot=et:Bt.sibling=et,Bt=et);return Nt&&Dr(ne,vt),ot}for(et=p(et);vt<oe.length;vt++)Rt=he(et,ne,vt,oe[vt],Se),Rt!==null&&(r&&Rt.alternate!==null&&et.delete(Rt.key===null?vt:Rt.key),Q=E(Rt,Q,vt),Bt===null?ot=Rt:Bt.sibling=Rt,Bt=Rt);return r&&et.forEach(function(Ua){return o(ne,Ua)}),Nt&&Dr(ne,vt),ot}function ct(ne,Q,oe,Se){if(oe==null)throw Error(i(151));for(var ot=null,Bt=null,et=Q,vt=Q=0,Rt=null,Ft=oe.next();et!==null&&!Ft.done;vt++,Ft=oe.next()){et.index>vt?(Rt=et,et=null):Rt=et.sibling;var Ua=ce(ne,et,Ft.value,Se);if(Ua===null){et===null&&(et=Rt);break}r&&et&&Ua.alternate===null&&o(ne,et),Q=E(Ua,Q,vt),Bt===null?ot=Ua:Bt.sibling=Ua,Bt=Ua,et=Rt}if(Ft.done)return u(ne,et),Nt&&Dr(ne,vt),ot;if(et===null){for(;!Ft.done;vt++,Ft=oe.next())Ft=we(ne,Ft.value,Se),Ft!==null&&(Q=E(Ft,Q,vt),Bt===null?ot=Ft:Bt.sibling=Ft,Bt=Ft);return Nt&&Dr(ne,vt),ot}for(et=p(et);!Ft.done;vt++,Ft=oe.next())Ft=he(et,ne,vt,Ft.value,Se),Ft!==null&&(r&&Ft.alternate!==null&&et.delete(Ft.key===null?vt:Ft.key),Q=E(Ft,Q,vt),Bt===null?ot=Ft:Bt.sibling=Ft,Bt=Ft);return r&&et.forEach(function(K4){return o(ne,K4)}),Nt&&Dr(ne,vt),ot}function Jt(ne,Q,oe,Se){if(typeof oe=="object"&&oe!==null&&oe.type===_&&oe.key===null&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case x:e:{for(var ot=oe.key;Q!==null;){if(Q.key===ot){if(ot=oe.type,ot===_){if(Q.tag===7){u(ne,Q.sibling),Se=y(Q,oe.props.children),Se.return=ne,ne=Se;break e}}else if(Q.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===O&&Po(ot)===Q.type){u(ne,Q.sibling),Se=y(Q,oe.props),Yu(Se,oe),Se.return=ne,ne=Se;break e}u(ne,Q);break}else o(ne,Q);Q=Q.sibling}oe.type===_?(Se=Ao(oe.props.children,ne.mode,Se,oe.key),Se.return=ne,ne=Se):(Se=sh(oe.type,oe.key,oe.props,null,
vendor: 7,346 bytes, line 8
8ne.mode,Se),Yu(Se,oe),Se.return=ne,ne=Se)}return D(ne);case b:e:{for(ot=oe.key;Q!==null;){if(Q.key===ot)if(Q.tag===4&&Q.stateNode.containerInfo===oe.containerInfo&&Q.stateNode.implementation===oe.implementation){u(ne,Q.sibling),Se=y(Q,oe.children||[]),Se.return=ne,ne=Se;break e}else{u(ne,Q);break}else o(ne,Q);Q=Q.sibling}Se=Wg(oe,ne.mode,Se),Se.return=ne,ne=Se}return D(ne);case O:return oe=Po(oe),Jt(ne,Q,oe,Se)}if(q(oe))return $e(ne,Q,oe,Se);if(H(oe)){if(ot=H(oe),typeof ot!="function")throw Error(i(150));return oe=ot.call(oe),ct(ne,Q,oe,Se)}if(typeof oe.then=="function")return Jt(ne,Q,fh(oe),Se);if(oe.$$typeof===M)return Jt(ne,Q,oh(ne,oe),Se);dh(ne,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint"?(oe=""+oe,Q!==null&&Q.tag===6?(u(ne,Q.sibling),Se=y(Q,oe),Se.return=ne,ne=Se):(u(ne,Q),Se=Gg(oe,ne.mode,Se),Se.return=ne,ne=Se),D(ne)):u(ne,Q)}return function(ne,Q,oe,Se){try{qu=0;var ot=Jt(ne,Q,oe,Se);return Gl=null,ot}catch(et){if(et===Hl||et===ch)throw et;var Bt=Hi(29,et,null,ne.mode);return Bt.lanes=Se,Bt.return=ne,Bt}}}var Oo=$S(!0),KS=$S(!1),xa=!1;function i0(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function s0(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ya(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function _a(r,o,u){var p=r.updateQueue;if(p===null)return null;if(p=p.shared,(Vt&2)!==0){var y=p.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),p.pending=o,o=ih(r),LS(r,null,u),o}return nh(r,p,o,u),ih(r)}function $u(r,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var p=o.lanes;p&=r.pendingLanes,u|=p,o.lanes=u,er(r,u)}}function r0(r,o){var u=r.updateQueue,p=r.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var y=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var D={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};E===null?y=E=D:E=E.next=D,u=u.next}while(u!==null);E===null?y=E=o:E=E.next=o}else y=E=o;u={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:E,shared:p.shared,callbacks:p.callbacks},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=o:r.next=o,u.lastBaseUpdate=o}var a0=!1;function Ku(){if(a0){var r=Vl;if(r!==null)throw r}}function Zu(r,o,u,p){a0=!1;var y=r.updateQueue;xa=!1;var E=y.firstBaseUpdate,D=y.lastBaseUpdate,F=y.shared.pending;if(F!==null){y.shared.pending=null;var $=F,le=$.next;$.next=null,D===null?E=le:D.next=le,D=$;var _e=r.alternate;_e!==null&&(_e=_e.updateQueue,F=_e.lastBaseUpdate,F!==D&&(F===null?_e.firstBaseUpdate=le:F.next=le,_e.lastBaseUpdate=$))}if(E!==null){var we=y.baseState;D=0,_e=le=$=null,F=E;do{var ce=F.lane&-536870913,he=ce!==F.lane;if(he?(Ct&ce)===ce:(p&ce)===ce){ce!==0&&ce===kl&&(a0=!0),_e!==null&&(_e=_e.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var $e=r,ct=F;ce=o;var Jt=u;switch(ct.tag){case 1:if($e=ct.payload,typeof $e=="function"){we=$e.call(Jt,we,ce);break e}we=$e;break e;case 3:$e.flags=$e.flags&-65537|128;case 0:if($e=ct.payload,ce=typeof $e=="function"?$e.call(Jt,we,ce):$e,ce==null)break e;we=g({},we,ce);break e;case 2:xa=!0}}ce=F.callback,ce!==null&&(r.flags|=64,he&&(r.flags|=8192),he=y.callbacks,he===null?y.callbacks=[ce]:he.push(ce))}else he={lane:ce,tag:F.tag,payload:F.payload,callback:F.callback,next:null},_e===null?(le=_e=he,$=we):_e=_e.next=he,D|=ce;if(F=F.next,F===null){if(F=y.shared.pending,F===null)break;he=F,F=he.next,he.next=null,y.lastBaseUpdate=he,y.shared.pending=null}}while(!0);_e===null&&($=we),y.baseState=$,y.firstBaseUpdate=le,y.lastBaseUpdate=_e,E===null&&(y.shared.lanes=0),Ma|=D,r.lanes=D,r.memoizedState=we}}function ZS(r,o){if(typeof r!="function")throw Error(i(191,r));r.call(o)}function QS(r,o){var u=r.callbacks;if(u!==null)for(r.callbacks=null,r=0;r<u.length;r++)ZS(u[r],o)}var Wl=G(null),hh=G(0);function JS(r,o){r=Vr,me(hh,r),me(Wl,o),Vr=r|o.baseLanes}function o0(){me(hh,Vr),me(Wl,Wl.current)}function l0(){Vr=hh.current,ee(Wl),ee(hh)}var Gi=G(null),gs=null;function ba(r){var o=r.alternate;me(Mn,Mn.current&1),me(Gi,r),gs===null&&(o===null||Wl.current!==null||o.memoizedState!==null)&&(gs=r)}function c0(r){me(Mn,Mn.current),me(Gi,r),gs===null&&(gs=r)}function ew(r){r.tag===22?(me(Mn,Mn.current),me(Gi,r),gs===null&&(gs=r)):Sa()}function Sa(){me(Mn,Mn.current),me(Gi,Gi.current)}function Wi(r){ee(Gi),gs===r&&(gs=null),ee(Mn)}var Mn=G(0);function ph(r){for(var o=r;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||mv(u)||gv(u)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Or=0,gt=null,Zt=null,Ln=null,mh=!1,Xl=!1,Uo=!1,gh=0,Qu=0,ql=null,jO=0;function _n(){throw Error(i(321))}function u0(r,o){if(o===null)return!1;for(var u=0;u<o.length&&u<r.length;u++)if(!Vi(r[u],o[u]))return!1;return!0}function f0(r,o,u,p,y,E){return Or=E,gt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,B.H=r===null||r.memoizedState===null?Bw:T0,Uo=!1,E=u(p,y),Uo=!1,Xl&&(E=nw(o,u,p,y)),tw(r),E}function tw(r){B.H=tf;var o=Zt!==null&&Zt.next!==null;if(Or=0,Ln=Zt=gt=null,mh=!1,Qu=0,ql=null,o)throw Error(i(300));r===null||On||(r=r.dependencies,r!==null&&ah(r)&&(On=!0))}function nw(r,o,u,p){gt=r;var y=0;do{if(Xl&&(ql=null),Qu=0,Xl=!1,25<=y)throw Error(i(301));if(y+=1,Ln=Zt=null,r.updateQueue!=null){var E=r.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}B.H=Fw,E=o(u,p)}while(Xl);return E}function kO(){var r=B.H,o=r.useState()[0];return o=typeof o.then=="function"?Ju(o):o,r=r.useState()[0],(Zt!==null?Zt.memoizedState:null)!==r&&(gt.flags|=1024),o}function d0(){var r=gh!==0;return gh=0,r}function h0(r,o,u){o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~u}function p0(r){if(mh){for(r=r.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}mh=!1}Or=0,Ln=Zt=gt=null,Xl=!1,Qu=gh=0,ql=null}function yi(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ln===null?gt.memoizedState=Ln=r:Ln=Ln.next=r,Ln}function Tn(){if(Zt===null){var r=gt.alternate;r=r!==null?r.memoizedState:null}else r=Zt.next;var o=Ln===null?gt.memoizedState:Ln.next;if(o!==null)Ln=o,Zt=r;else{if(r===null)throw gt.alternate===null?Error(i(467)):Error(i(310));Zt=r,r={memoizedState:Zt.memoizedState,baseState:Zt.baseState,baseQueue:Zt.baseQueue,queue:Zt.queue,next:null},Ln===null?gt.memoizedState=Ln=r:Ln=Ln.next=r}return Ln}function vh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ju(r){var o=Qu;return Qu+=1,ql===null&&(ql=[]),r=XS(ql,r,o),o=gt,(Ln===null?o.memoizedState:Ln.next)===null&&(o=o.alternate,B.H=o===null||o.memoizedState===null?Bw:T0),r}function xh(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Ju(r);if(r.$$typeof===M)return si(r)}
vendor: 8,997 bytes, line 8
8throw Error(i(438,String(r)))}function m0(r){var o=null,u=gt.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var p=gt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(o={data:p.data.map(function(y){return y.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=vh(),gt.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(r),p=0;p<r;p++)u[p]=L;return o.index++,u}function Ur(r,o){return typeof o=="function"?o(r):o}function yh(r){var o=Tn();return g0(o,Zt,r)}function g0(r,o,u){var p=r.queue;if(p===null)throw Error(i(311));p.lastRenderedReducer=u;var y=r.baseQueue,E=p.pending;if(E!==null){if(y!==null){var D=y.next;y.next=E.next,E.next=D}o.baseQueue=y=E,p.pending=null}if(E=r.baseState,y===null)r.memoizedState=E;else{o=y.next;var F=D=null,$=null,le=o,_e=!1;do{var we=le.lane&-536870913;if(we!==le.lane?(Ct&we)===we:(Or&we)===we){var ce=le.revertLane;if(ce===0)$!==null&&($=$.next={lane:0,revertLane:0,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),we===kl&&(_e=!0);else if((Or&ce)===ce){le=le.next,ce===kl&&(_e=!0);continue}else we={lane:0,revertLane:le.revertLane,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},$===null?(F=$=we,D=E):$=$.next=we,gt.lanes|=ce,Ma|=ce;we=le.action,Uo&&u(E,we),E=le.hasEagerState?le.eagerState:u(E,we)}else ce={lane:we,revertLane:le.revertLane,gesture:le.gesture,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},$===null?(F=$=ce,D=E):$=$.next=ce,gt.lanes|=we,Ma|=we;le=le.next}while(le!==null&&le!==o);if($===null?D=E:$.next=F,!Vi(E,r.memoizedState)&&(On=!0,_e&&(u=Vl,u!==null)))throw u;r.memoizedState=E,r.baseState=D,r.baseQueue=$,p.lastRenderedState=E}return y===null&&(p.lanes=0),[r.memoizedState,p.dispatch]}function v0(r){var o=Tn(),u=o.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=r;var p=u.dispatch,y=u.pending,E=o.memoizedState;if(y!==null){u.pending=null;var D=y=y.next;do E=r(E,D.action),D=D.next;while(D!==y);Vi(E,o.memoizedState)||(On=!0),o.memoizedState=E,o.baseQueue===null&&(o.baseState=E),u.lastRenderedState=E}return[E,p]}function iw(r,o,u){var p=gt,y=Tn(),E=Nt;if(E){if(u===void 0)throw Error(i(407));u=u()}else u=o();var D=!Vi((Zt||y).memoizedState,u);if(D&&(y.memoizedState=u,On=!0),y=y.queue,_0(aw.bind(null,p,y,r),[r]),y.getSnapshot!==o||D||Ln!==null&&Ln.memoizedState.tag&1){if(p.flags|=2048,Yl(9,{destroy:void 0},rw.bind(null,p,y,u,o),null),sn===null)throw Error(i(349));E||(Or&127)!==0||sw(p,o,u)}return u}function sw(r,o,u){r.flags|=16384,r={getSnapshot:o,value:u},o=gt.updateQueue,o===null?(o=vh(),gt.updateQueue=o,o.stores=[r]):(u=o.stores,u===null?o.stores=[r]:u.push(r))}function rw(r,o,u,p){o.value=u,o.getSnapshot=p,ow(o)&&lw(r)}function aw(r,o,u){return u(function(){ow(o)&&lw(r)})}function ow(r){var o=r.getSnapshot;r=r.value;try{var u=o();return!Vi(r,u)}catch{return!0}}function lw(r){var o=To(r,2);o!==null&&Ri(o,r,2)}function x0(r){var o=yi();if(typeof r=="function"){var u=r;if(r=u(),Uo){st(!0);try{u()}finally{st(!1)}}}return o.memoizedState=o.baseState=r,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ur,lastRenderedState:r},o}function cw(r,o,u,p){return r.baseState=u,g0(r,Zt,typeof p=="function"?p:Ur)}function VO(r,o,u,p,y){if(Sh(r))throw Error(i(485));if(r=o.action,r!==null){var E={payload:y,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){E.listeners.push(D)}};B.T!==null?u(!0):E.isTransition=!1,p(E),u=o.pending,u===null?(E.next=o.pending=E,uw(o,E)):(E.next=u.next,o.pending=u.next=E)}}function uw(r,o){var u=o.action,p=o.payload,y=r.state;if(o.isTransition){var E=B.T,D={};B.T=D;try{var F=u(y,p),$=B.S;$!==null&&$(D,F),fw(r,o,F)}catch(le){y0(r,o,le)}finally{E!==null&&D.types!==null&&(E.types=D.types),B.T=E}}else try{E=u(y,p),fw(r,o,E)}catch(le){y0(r,o,le)}}function fw(r,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){dw(r,o,p)},function(p){return y0(r,o,p)}):dw(r,o,u)}function dw(r,o,u){o.status="fulfilled",o.value=u,hw(o),r.state=u,o=r.pending,o!==null&&(u=o.next,u===o?r.pending=null:(u=u.next,o.next=u,uw(r,u)))}function y0(r,o,u){var p=r.pending;if(r.pending=null,p!==null){p=p.next;do o.status="rejected",o.reason=u,hw(o),o=o.next;while(o!==p)}r.action=null}function hw(r){r=r.listeners;for(var o=0;o<r.length;o++)(0,r[o])()}function pw(r,o){return o}function mw(r,o){if(Nt){var u=sn.formState;if(u!==null){e:{var p=gt;if(Nt){if(fn){t:{for(var y=fn,E=ms;y.nodeType!==8;){if(!E){y=null;break t}if(y=vs(y.nextSibling),y===null){y=null;break t}}E=y.data,y=E==="F!"||E==="F"?y:null}if(y){fn=vs(y.nextSibling),p=y.data==="F!";break e}}ga(p)}p=!1}p&&(o=u[0])}}return u=yi(),u.memoizedState=u.baseState=o,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pw,lastRenderedState:o},u.queue=p,u=Ow.bind(null,gt,p),p.dispatch=u,p=x0(!1),E=M0.bind(null,gt,!1,p.queue),p=yi(),y={state:o,dispatch:null,action:r,pending:null},p.queue=y,u=VO.bind(null,gt,y,E,u),y.dispatch=u,p.memoizedState=r,[o,u,!1]}function gw(r){var o=Tn();return vw(o,Zt,r)}function vw(r,o,u){if(o=g0(r,o,pw)[0],r=yh(Ur)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var p=Ju(o)}catch(D){throw D===Hl?ch:D}else p=o;o=Tn();var y=o.queue,E=y.dispatch;return u!==o.memoizedState&&(gt.flags|=2048,Yl(9,{destroy:void 0},HO.bind(null,y,u),null)),[p,E,r]}function HO(r,o){r.action=o}function xw(r){var o=Tn(),u=Zt;if(u!==null)return vw(o,u,r);Tn(),o=o.memoizedState,u=Tn();var p=u.queue.dispatch;return u.memoizedState=r,[o,p,!1]}function Yl(r,o,u,p){return r={tag:r,create:u,deps:p,inst:o,next:null},o=gt.updateQueue,o===null&&(o=vh(),gt.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=r.next=r:(p=u.next,u.next=r,r.next=p,o.lastEffect=r),r}function yw(){return Tn().memoizedState}function _h(r,o,u,p){var y=yi();gt.flags|=r,y.memoizedState=Yl(1|o,{destroy:void 0},u,p===void 0?null:p)}function bh(r,o,u,p){var y=Tn();p=p===void 0?null:p;var E=y.memoizedState.inst;Zt!==null&&p!==null&&u0(p,Zt.memoizedState.deps)?y.memoizedState=Yl(o,E,u,p):(gt.flags|=r,y.memoizedState=Yl(1|o,E,u,p))}function _w(r,o){_h(8390656,8,r,o)}function _0(r,o){bh(2048,8,r,o)}function GO(r){gt.flags|=4;var o=gt.updateQueue;if(o===null)o=vh(),gt.updateQueue=o,o.events=[r];else{var u=o.events;u===null?o.events=[r]:u.push(r)}}function bw(r){var o=Tn().memoizedState;return GO({ref:o,nextImpl:r}),function(){if((Vt&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}function Sw(r,o){return bh(4,2,r,o)}function ww(r,o){return bh(4,4,r,o)}function Ew(r,o){if(typeof o=="function"){r=r();var u=o(r);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function Mw(r,o,u){u=u!=null?u.concat([r]):null,bh(4,4,Ew.bind(null,o,r),u)}function b0(){}function Tw(r,o){var u=Tn();o=o===void 0?null:o;var p=u.memoizedState;return o!==null&&u0(o,p[1])?p[0]:(u.memoizedState=[r,o],r)}function Aw(r,o){var u=Tn();o=o===void 0?null:o;var p=u.memoizedState;if(o!==null&&u0(o,p[1]))return p[0];if(p=r(),Uo){st(!0);try{r()}finally{st(!1)}}return u.memoizedState=[p,o],p}function S0(r,o,u){return u===void 0||(Or&1073741824)!==0&&(Ct&261930)===0?r.memoizedState=o:(r.memoizedState=u,r=CE(),gt.lanes|=r,Ma|=r,u)}function Cw(r,o,u,p){return Vi(u,o)?u:Wl.current!==null?(r=S0(r,u,p),Vi(r,o)||(On=!0),r):(Or&42)===0||(Or&1073741824)!==0&&(Ct&261930)===0?(On=!0,r.memoizedState=u):(r=CE(),gt.lanes|=r,Ma|=r,o)}function Rw(r,o,u,p,y){var E=W.p;W.p=E!==0&&8>E?E:8;var D=B.T,F={};B.T=F,M0(r,!1,o,u);try{var $=y(),le=B.S;if(le!==null&&le(F,$),$!==null&&typeof $=="object"&&typeof $.then=="function"){var _e=zO($,p);ef(r,o,_e,Yi(r))}else ef(r,o,p,Yi(r))}catch(we){ef(r,o,{then:function(){},status:"rejected",reason:we},Yi())}finally{W.p=E,D!==null&&F.types!==null&&(D.types=F.types),B.T=D}}function WO(){}function w0(r,o,u,p){if(r.tag!==5)throw Error(i(476));var y=Nw(r).queue;Rw(r,y,o,j,u===null?WO:function(){return Dw(r),u(p)})}function Nw(r){var o=r.memoizedState;if(o!==null)return o;o={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ur,lastRenderedState:j},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ur,lastRenderedState:u},next:null},r.memoizedState=o,r=r.alternate,r!==null&&(r.memoizedState=o),o}function Dw(r){var o=Nw(r);o.next===null&&(o=r.alternate.memoizedState),ef(r,o.next.queue,{},Yi())}function E0(){return si(xf)}function Pw(){return Tn().memoizedState}function Lw(){return Tn().memoizedState}function XO(r){for(var o=r.return;o!==null;){switch(o.tag){case 24:case 3:var u=Yi();r=ya(u);var p=_a(o,r,u);p!==null&&(Ri(p,o,u),$u(p,o,u)),o={cache:Jg()},r.payload=o;return}o=o.return}}function qO(r,o,u){var p=Yi();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null}
vendor: 1,147 bytes, line 8
8,Sh(r)?Uw(o,u):(u=Vg(r,o,u,p),u!==null&&(Ri(u,r,p),Iw(u,o,p)))}function Ow(r,o,u){var p=Yi();ef(r,o,u,p)}function ef(r,o,u,p){var y={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Sh(r))Uw(o,y);else{var E=r.alternate;if(r.lanes===0&&(E===null||E.lanes===0)&&(E=o.lastRenderedReducer,E!==null))try{var D=o.lastRenderedState,F=E(D,u);if(y.hasEagerState=!0,y.eagerState=F,Vi(F,D))return nh(r,o,y,0),sn===null&&th(),!1}catch{}if(u=Vg(r,o,y,p),u!==null)return Ri(u,r,p),Iw(u,o,p),!0}return!1}function M0(r,o,u,p){if(p={lane:2,revertLane:iv(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Sh(r)){if(o)throw Error(i(479))}else o=Vg(r,u,p,2),o!==null&&Ri(o,r,2)}function Sh(r){var o=r.alternate;return r===gt||o!==null&&o===gt}function Uw(r,o){Xl=mh=!0;var u=r.pending;u===null?o.next=o:(o.next=u.next,u.next=o),r.pending=o}function Iw(r,o,u){if((u&4194048)!==0){var p=o.lanes;p&=r.pendingLanes,u|=p,o.lanes=u,er(r,u)}}var tf={readContext:si,use:xh,useCallback:_n,useContext:_n,useEffect:_n,useImperativeHandle:_n,useLayoutEffect:_n,useInsertionEffect:_n,useMemo:_n,useReducer:_n,useRef:_n,use
vendor: 5,112 bytes, line 8
8State:_n,useDebugValue:_n,useDeferredValue:_n,useTransition:_n,useSyncExternalStore:_n,useId:_n,useHostTransitionStatus:_n,useFormState:_n,useActionState:_n,useOptimistic:_n,useMemoCache:_n,useCacheRefresh:_n};tf.useEffectEvent=_n;var Bw={readContext:si,use:xh,useCallback:function(r,o){return yi().memoizedState=[r,o===void 0?null:o],r},useContext:si,useEffect:_w,useImperativeHandle:function(r,o,u){u=u!=null?u.concat([r]):null,_h(4194308,4,Ew.bind(null,o,r),u)},useLayoutEffect:function(r,o){return _h(4194308,4,r,o)},useInsertionEffect:function(r,o){_h(4,2,r,o)},useMemo:function(r,o){var u=yi();o=o===void 0?null:o;var p=r();if(Uo){st(!0);try{r()}finally{st(!1)}}return u.memoizedState=[p,o],p},useReducer:function(r,o,u){var p=yi();if(u!==void 0){var y=u(o);if(Uo){st(!0);try{u(o)}finally{st(!1)}}}else y=o;return p.memoizedState=p.baseState=y,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:y},p.queue=r,r=r.dispatch=qO.bind(null,gt,r),[p.memoizedState,r]},useRef:function(r){var o=yi();return r={current:r},o.memoizedState=r},useState:function(r){r=x0(r);var o=r.queue,u=Ow.bind(null,gt,o);return o.dispatch=u,[r.memoizedState,u]},useDebugValue:b0,useDeferredValue:function(r,o){var u=yi();return S0(u,r,o)},useTransition:function(){var r=x0(!1);return r=Rw.bind(null,gt,r.queue,!0,!1),yi().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,o,u){var p=gt,y=yi();if(Nt){if(u===void 0)throw Error(i(407));u=u()}else{if(u=o(),sn===null)throw Error(i(349));(Ct&127)!==0||sw(p,o,u)}y.memoizedState=u;var E={value:u,getSnapshot:o};return y.queue=E,_w(aw.bind(null,p,E,r),[r]),p.flags|=2048,Yl(9,{destroy:void 0},rw.bind(null,p,E,u,o),null),u},useId:function(){var r=yi(),o=sn.identifierPrefix;if(Nt){var u=ir,p=nr;u=(p&~(1<<32-Ge(p)-1)).toString(32)+u,o="_"+o+"R_"+u,u=gh++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=jO++,o="_"+o+"r_"+u.toString(32)+"_";return r.memoizedState=o},useHostTransitionStatus:E0,useFormState:mw,useActionState:mw,useOptimistic:function(r){var o=yi();o.memoizedState=o.baseState=r;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=M0.bind(null,gt,!0,u),u.dispatch=o,[r,o]},useMemoCache:m0,useCacheRefresh:function(){return yi().memoizedState=XO.bind(null,gt)},useEffectEvent:function(r){var o=yi(),u={impl:r};return o.memoizedState=u,function(){if((Vt&2)!==0)throw Error(i(440));return u.impl.apply(void 0,arguments)}}},T0={readContext:si,use:xh,useCallback:Tw,useContext:si,useEffect:_0,useImperativeHandle:Mw,useInsertionEffect:Sw,useLayoutEffect:ww,useMemo:Aw,useReducer:yh,useRef:yw,useState:function(){return yh(Ur)},useDebugValue:b0,useDeferredValue:function(r,o){var u=Tn();return Cw(u,Zt.memoizedState,r,o)},useTransition:function(){var r=yh(Ur)[0],o=Tn().memoizedState;return[typeof r=="boolean"?r:Ju(r),o]},useSyncExternalStore:iw,useId:Pw,useHostTransitionStatus:E0,useFormState:gw,useActionState:gw,useOptimistic:function(r,o){var u=Tn();return cw(u,Zt,r,o)},useMemoCache:m0,useCacheRefresh:Lw};T0.useEffectEvent=bw;var Fw={readContext:si,use:xh,useCallback:Tw,useContext:si,useEffect:_0,useImperativeHandle:Mw,useInsertionEffect:Sw,useLayoutEffect:ww,useMemo:Aw,useReducer:v0,useRef:yw,useState:function(){return v0(Ur)},useDebugValue:b0,useDeferredValue:function(r,o){var u=Tn();return Zt===null?S0(u,r,o):Cw(u,Zt.memoizedState,r,o)},useTransition:function(){var r=v0(Ur)[0],o=Tn().memoizedState;return[typeof r=="boolean"?r:Ju(r),o]},useSyncExternalStore:iw,useId:Pw,useHostTransitionStatus:E0,useFormState:xw,useActionState:xw,useOptimistic:function(r,o){var u=Tn();return Zt!==null?cw(u,Zt,r,o):(u.baseState=r,[r,u.queue.dispatch])},useMemoCache:m0,useCacheRefresh:Lw};Fw.useEffectEvent=bw;function A0(r,o,u,p){o=r.memoizedState,u=u(p,o),u=u==null?o:g({},o,u),r.memoizedState=u,r.lanes===0&&(r.updateQueue.baseState=u)}var C0={enqueueSetState:function(r,o,u){r=r._reactInternals;var p=Yi(),y=ya(p);y.payload=o,u!=null&&(y.callback=u),o=_a(r,y,p),o!==null&&(Ri(o,r,p),$u(o,r,p))},enqueueReplaceState:function(r,o,u){r=r._reactInternals;var p=Yi(),y=ya(p);y.tag=1,y.payload=o,u!=null&&(y.callback=u),o=_a(r,y,p),o!==null&&(Ri(o,r,p),$u(o,r,p))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var u=Yi(),p=ya(u);p.tag=2,o!=null&&(p.callback=o),o=_a(r,p,u),o!==null&&(Ri(o,r,u),$u(o,r,u))}};function zw(r,o,u,p,y,E,D){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(p,E,D):o.prototype&&o.prototype.isPureReactComponent?!ku(u,p)||!ku(y,E):!0}function jw(r,o,u,p){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,p),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,p),o.state!==r&&C0.enqueueReplaceState(o,o.state,null)}function Io(r,o){var u=o;if("ref"in o){u={};for(var p in o)p!=="ref"&&(u[p]=o[p])}if(r=r.defaultProps){u===o&&(u=g({},u));for(var y in r)u[y]===void 0&&(u[y]=r[y])}return u}function kw(r){eh(r)}function Vw(r){console.error(r)}function Hw(r){eh(r)}function wh(r,o){try{var u=r.onUncaughtError;u(o.value,{componentStack:o.stack})}
vendor: 15,574 bytes, line 8
8catch(p){setTimeout(function(){throw p})}}function Gw(r,o,u){try{var p=r.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function R0(r,o,u){return u=ya(u),u.tag=3,u.payload={element:null},u.callback=function(){wh(r,o)},u}function Ww(r){return r=ya(r),r.tag=3,r}function Xw(r,o,u,p){var y=u.type.getDerivedStateFromError;if(typeof y=="function"){var E=p.value;r.payload=function(){return y(E)},r.callback=function(){Gw(o,u,p)}}var D=u.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(r.callback=function(){Gw(o,u,p),typeof y!="function"&&(Ta===null?Ta=new Set([this]):Ta.add(this));var F=p.stack;this.componentDidCatch(p.value,{componentStack:F!==null?F:""})})}function YO(r,o,u,p,y){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(o=u.alternate,o!==null&&jl(o,u,y,!0),u=Gi.current,u!==null){switch(u.tag){case 31:case 13:return gs===null?Uh():u.alternate===null&&bn===0&&(bn=3),u.flags&=-257,u.flags|=65536,u.lanes=y,p===uh?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([p]):o.add(p),ev(r,p,y)),!1;case 22:return u.flags|=65536,p===uh?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([p]):u.add(p)),ev(r,p,y)),!1}throw Error(i(435,u.tag))}return ev(r,p,y),Uh(),!1}if(Nt)return o=Gi.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=y,p!==Yg&&(r=Error(i(422),{cause:p}),Gu(ds(r,u)))):(p!==Yg&&(o=Error(i(423),{cause:p}),Gu(ds(o,u))),r=r.current.alternate,r.flags|=65536,y&=-y,r.lanes|=y,p=ds(p,u),y=R0(r.stateNode,p,y),r0(r,y),bn!==4&&(bn=2)),!1;var E=Error(i(520),{cause:p});if(E=ds(E,u),uf===null?uf=[E]:uf.push(E),bn!==4&&(bn=2),o===null)return!0;p=ds(p,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,r=y&-y,u.lanes|=r,r=R0(u.stateNode,p,r),r0(u,r),!1;case 1:if(o=u.type,E=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Ta===null||!Ta.has(E))))return u.flags|=65536,y&=-y,u.lanes|=y,y=Ww(y),Xw(y,r,u,p),r0(u,y),!1}u=u.return}while(u!==null);return!1}var N0=Error(i(461)),On=!1;function ri(r,o,u,p){o.child=r===null?KS(o,null,u,p):Oo(o,r.child,u,p)}function qw(r,o,u,p,y){u=u.render;var E=o.ref;if("ref"in p){var D={};for(var F in p)F!=="ref"&&(D[F]=p[F])}else D=p;return No(o),p=f0(r,o,u,D,E,y),F=d0(),r!==null&&!On?(h0(r,o,y),Ir(r,o,y)):(Nt&&F&&Xg(o),o.flags|=1,ri(r,o,p,y),o.child)}function Yw(r,o,u,p,y){if(r===null){var E=u.type;return typeof E=="function"&&!Hg(E)&&E.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=E,$w(r,o,E,p,y)):(r=sh(u.type,null,p,o,o.mode,y),r.ref=o.ref,r.return=o,o.child=r)}if(E=r.child,!F0(r,y)){var D=E.memoizedProps;if(u=u.compare,u=u!==null?u:ku,u(D,p)&&r.ref===o.ref)return Ir(r,o,y)}return o.flags|=1,r=Nr(E,p),r.ref=o.ref,r.return=o,o.child=r}function $w(r,o,u,p,y){if(r!==null){var E=r.memoizedProps;if(ku(E,p)&&r.ref===o.ref)if(On=!1,o.pendingProps=p=E,F0(r,y))(r.flags&131072)!==0&&(On=!0);else return o.lanes=r.lanes,Ir(r,o,y)}return D0(r,o,u,p,y)}function Kw(r,o,u,p){var y=p.children,E=r!==null?r.memoizedState:null;if(r===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((o.flags&128)!==0){if(E=E!==null?E.baseLanes|u:u,r!==null){for(p=o.child=r.child,y=0;p!==null;)y=y|p.lanes|p.childLanes,p=p.sibling;p=y&~E}else p=0,o.child=null;return Zw(r,o,E,u,p)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},r!==null&&lh(o,E!==null?E.cachePool:null),E!==null?JS(o,E):o0(),ew(o);else return p=o.lanes=536870912,Zw(r,o,E!==null?E.baseLanes|u:u,u,p)}else E!==null?(lh(o,E.cachePool),JS(o,E),Sa(),o.memoizedState=null):(r!==null&&lh(o,null),o0(),Sa());return ri(r,o,y,u),o.child}function nf(r,o){return r!==null&&r.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function Zw(r,o,u,p,y){var E=t0();return E=E===null?null:{parent:Pn._currentValue,pool:E},o.memoizedState={baseLanes:u,cachePool:E},r!==null&&lh(o,null),o0(),ew(o),r!==null&&jl(r,o,p,!0),o.childLanes=y,null}function Eh(r,o){return o=Th({mode:o.mode,children:o.children},r.mode),o.ref=r.ref,r.child=o,o.return=r,o}function Qw(r,o,u){return Oo(o,r.child,null,u),r=Eh(o,o.pendingProps),r.flags|=2,Wi(o),o.memoizedState=null,r}function $O(r,o,u){var p=o.pendingProps,y=(o.flags&128)!==0;if(o.flags&=-129,r===null){if(Nt){if(p.mode==="hidden")return r=Eh(o,p),o.lanes=536870912,nf(null,r);if(c0(o),(r=fn)?(r=uM(r,ms),r=r!==null&&r.data==="&"?r:null,r!==null&&(o.memoizedState={dehydrated:r,treeContext:pa!==null?{id:nr,overflow:ir}:null,retryLane:536870912,hydrationErrors:null},u=US(r),u.return=o,o.child=u,ii=o,fn=null)):r=null,r===null)throw ga(o);return o.lanes=536870912,null}return Eh(o,p)}var E=r.memoizedState;if(E!==null){var D=E.dehydrated;if(c0(o),y)if(o.flags&256)o.flags&=-257,o=Qw(r,o,u);else if(o.memoizedState!==null)o.child=r.child,o.flags|=128,o=null;else throw Error(i(558));else if(On||jl(r,o,u,!1),y=(u&r.childLanes)!==0,On||y){if(p=sn,p!==null&&(D=Ml(p,u),D!==0&&D!==E.retryLane))throw E.retryLane=D,To(r,D),Ri(p,r,D),N0;Uh(),o=Qw(r,o,u)}else r=E.treeContext,fn=vs(D.nextSibling),ii=o,Nt=!0,ma=null,ms=!1,r!==null&&FS(o,r),o=Eh(o,p),o.flags|=4096;return o}return r=Nr(r.child,{mode:p.mode,children:p.children}),r.ref=o.ref,o.child=r,r.return=o,r}function Mh(r,o){var u=o.ref;if(u===null)r!==null&&r.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(r===null||r.ref!==u)&&(o.flags|=4194816)}}function D0(r,o,u,p,y){return No(o),u=f0(r,o,u,p,void 0,y),p=d0(),r!==null&&!On?(h0(r,o,y),Ir(r,o,y)):(Nt&&p&&Xg(o),o.flags|=1,ri(r,o,u,y),o.child)}function Jw(r,o,u,p,y,E){return No(o),o.updateQueue=null,u=nw(o,p,u,y),tw(r),p=d0(),r!==null&&!On?(h0(r,o,E),Ir(r,o,E)):(Nt&&p&&Xg(o),o.flags|=1,ri(r,o,u,E),o.child)}function eE(r,o,u,p,y){if(No(o),o.stateNode===null){var E=Il,D=u.contextType;typeof D=="object"&&D!==null&&(E=si(D)),E=new u(p,E),o.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=C0,o.stateNode=E,E._reactInternals=o,E=o.stateNode,E.props=p,E.state=o.memoizedState,E.refs={},i0(o),D=u.contextType,E.context=typeof D=="object"&&D!==null?si(D):Il,E.state=o.memoizedState,D=u.getDerivedStateFromProps,typeof D=="function"&&(A0(o,u,D,p),E.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(D=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),D!==E.state&&C0.enqueueReplaceState(E,E.state,null),Zu(o,p,E,y),Ku(),E.state=o.memoizedState),typeof E.componentDidMount=="function"&&(o.flags|=4194308),p=!0}else if(r===null){E=o.stateNode;var F=o.memoizedProps,$=Io(u,F);E.props=$;var le=E.context,_e=u.contextType;D=Il,typeof _e=="object"&&_e!==null&&(D=si(_e));var we=u.getDerivedStateFromProps;_e=typeof we=="function"||typeof E.getSnapshotBeforeUpdate=="function",F=o.pendingProps!==F,_e||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(F||le!==D)&&jw(o,E,p,D),xa=!1;var ce=o.memoizedState;E.state=ce,Zu(o,p,E,y),Ku(),le=o.memoizedState,F||ce!==le||xa?(typeof we=="function"&&(A0(o,u,we,p),le=o.memoizedState),($=xa||zw(o,u,$,p,ce,le,D))?(_e||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(o.flags|=4194308)):(typeof E.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=p,o.memoizedState=le),E.props=p,E.state=le,E.context=D,p=$):(typeof E.componentDidMount=="function"&&(o.flags|=4194308),p=!1)}else{E=o.stateNode,s0(r,o),D=o.memoizedProps,_e=Io(u,D),E.props=_e,we=o.pendingProps,ce=E.context,le=u.contextType,$=Il,typeof le=="object"&&le!==null&&($=si(le)),F=u.getDerivedStateFromProps,(le=typeof F=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(D!==we||ce!==$)&&jw(o,E,p,$),xa=!1,ce=o.memoizedState,E.state=ce,Zu(o,p,E,y),Ku();var he=o.memoizedState;D!==we||ce!==he||xa||r!==null&&r.dependencies!==null&&ah(r.dependencies)?(typeof F=="function"&&(A0(o,u,F,p),he=o.memoizedState),(_e=xa||zw(o,u,_e,p,ce,he,$)||r!==null&&r.dependencies!==null&&ah(r.dependencies))?(le||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(p,he,$),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(p,he,$)),typeof E.componentDidUpdate=="function"&&(o.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof E.componentDidUpdate!="function"||D===r.memoizedProps&&ce===r.memoizedState||(o.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&ce===r.memoizedState||(o.flags|=1024),o.memoizedProps=p,o.memoizedState=he),E.props=p,E.state=he,E.context=$,p=_e):(typeof E.componentDidUpdate!="function"||D===r.memoizedProps&&ce===r.memoizedState||(o.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&ce===r.memoizedState||(o.flags|=1024),p=!1)}return E=p,Mh(r,o),p=(o.flags&128)!==0,E||p?(E=o.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:E.render(),o.flags|=1,r!==null&&p?(o.child=Oo(o,r.child,null,y),o.child=Oo(o,null,u,y)):ri(r,o,u,y),o.memoizedState=E.state,r=o.child):r=Ir(r,o,y),r}function tE(r,o,u,p){return Co(),o.flags|=256,ri(r,o,u,p),o.child}var P0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function L0(r){return{baseLanes:r,cachePool:GS()}}function O0(r,o,u){return r=r!==null?r.childLanes&~u:0,o&&(r|=qi),r}function nE(r,o,u){var p=o.pendingProps,y=!1,E=(o.flags&128)!==0,D;if((D=E)||(D=r!==null&&r.memoizedState===null?!1:(Mn.current&2)!==0),D&&(y=!0,o.flags&=-129),D=(o.flags&32)!==0,o.flags&=-33,r===null){if(Nt){if(y?ba(o):Sa(),(r=fn)?(r=uM(r,ms),r=r!==null&&r.data!=="&"?r:null,r!==null&&(o.memoizedState={dehydrated:r,treeContext:pa!==null?{id:nr,overflow:ir}:null,retryLane:536870912,hydrationErrors:null},u=US(r),u.return=o,o.child=u,ii=o,fn=null)):r=null,r===null)throw ga(o);return gv(r)?o.lanes=32:o.lanes=536870912,null}var F=p.children;return p=p.fallback,y?(Sa(),y=o.mode,F=Th({mode:"hidden",children:F},y),p=Ao(p,y,u,null),F.return=o,p.return=o,F.sibling=p,o.child=F,p=o.child,p.memoizedState=L0(u),p.childLanes=O0(r,D,u),o.memoizedState=P0,nf(null,p)):(ba(o),U0(o,F))}var $=r.memoizedState;if($!==null&&(F=$.dehydrated,F!==null)){if(E)o.flags&256?(ba(o),o.flags&=-257,o=I0(r,o,u)):o.memoizedState!==null?(Sa(),o.child=r.child,o.flags|=128,o=null):(Sa(),F=p.fallback,y=o.mode,p=Th({mode:"visible",children:p.children},y),F=Ao(F,y,u,null),F.flags|=2,p.return=o,F.return=o,p.sibling=F,o.child=p,Oo(o,r.child,null,u),p=o.child,p.memoizedState=L0(u),p.childLanes=O0(r,D,u),o.memoizedState=P0,o=nf(null,p));else if(ba(o),gv(F)){if(D=F.nextSibling&&F.nextSibling.dataset,D)var le=D.dgst;D=le,p=Error(i(419)),p.stack="",p.digest=D,Gu({value:p,source:null,stack:null}),o=I0(r,o,u)}else if(On||jl(r,o,u,!1),D=(u&r.childLanes)!==0,On||D){if(D=sn,D!==null&&(p=Ml(D,u),p!==0&&p!==$.retryLane))throw $.retryLane=p,To(r,p),Ri(D,r,p),N0;mv(F)||Uh(),o=I0(r,o,u)}else mv(F)?(o.flags|=192,o.child=r.child,o=null):(r=$.treeContext,fn=vs(F.nextSibling),ii=o,Nt=!0,ma=null,ms=!1,r!==null&&FS(o,r),o=U0(o,p.children),o.flags|=4096);return o}return y?(Sa(),F=p.fallback,y=o.mode,$=r.child,le=$.sibling,p=Nr($,{mode:"hidden",children:p.children}),p.subtreeFlags=$.subtreeFlags&65011712,le!==null?F=Nr(le,F):(F=Ao(F,y,u,null),F.flags|=2),F.return=o,p.return=o,p.sibling=F,o.child=p,nf(null,p),p=o.child,F=r.child.memoizedState,F===null?F=L0(u):(y=F.cachePool,y!==null?($=Pn._currentValue,y=y.parent!==$?{parent:$,pool:$}:y):y=GS(),F={baseLanes:F.baseLanes|u,cachePool:y}),p.memoizedState=F,p.childLanes=O0(r,D,u),o.memoizedState=P0,nf(r.child,p)):(ba(o),u=r.child,r=u.sibling,u=Nr(u,{mode:"visible",children:p.children}),u.return=o,u.sibling=null,r!==null&&(D=o.deletions,D===null?(o.deletions=[r],o.flags|=16):D.push(r)),o.child=u,o.memoizedState=null,u)}function U0(r,o){return o=Th({mode:"visible",children:o},r.mode),o.return=r,r.child=o}function Th(r,o){return r=Hi(22,r,null,o),r.lanes=0,r}function I0(r,o,u){return Oo(o,r.child,null,u),r=U0(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function iE(r,o,u){r.lanes|=o;var p=r.alternate;p!==null&&(p.lanes|=o),Zg(r.return,o,u)}function B0(r,o,u,p,y,E){var D=r.memoizedState;D===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:y,treeForkCount:E}:(D.isBackwards=o,D.rendering=null,D.renderingStartTime=0,D.last=p,D.tail=u,D.tailMode=y,D.treeForkCount=E)}function sE(r,o,u){var p=o.pendingProps,y=p.revealOrder,E=p.tail;p=p.children;var D=Mn.current,F=(D&2)!==0;if(F?(D=D&1|2,o.flags|=128):D&=1,me(Mn,D),ri(r,o,p,u),p=Nt?Hu:0,!F&&r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&iE(r,u,o);else if(r.tag===19)iE(r,u,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(y){case"forwards":for(u=o.child,y=null;u!==null;)r=u.alternate,r!==null&&ph(r)===null&&(y=u),u=u.sibling;u=y,u===null?(y=o.child,o.child=null):(y=u.sibling,u.sibling=null),B0(o,!1,y,u,E,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,y=o.child,o.child=null;y!==null;){if(r=y.alternate,r!==null&&ph(r)===null){o.child=y;break}r=y.sibling,y.sibling=u,u=y,y=r}B0(o,!0,u,null,E,p);break;case"together":B0(o,!1,null,null,void 0,p);break;default:o.memoizedState=null}return o.child}function Ir(r,o,u){if(r!==null&&(o.dependencies=r.dependencies),Ma|=o.lanes,(u&o.childLanes)===0)if(r!==null){if(jl(r,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(r!==null&&o.child!==r.child)throw Error(i(153));if(o.child!==null){for(r=o.child,u=Nr(r,r.pendingProps),o.child=u,u.return=o;r.sibling!==null;)r=r.sibling,u=u.sibling=Nr(r,r.pendingProps),u.return=o;u.sibling=null}return o.child}function F0(r,o){return(r.lanes&o)!==0?!0:(r=r.dependencies,!!(r!==null&&ah(r)))}function KO(r,o,u){switch(o.tag){case 3:xe(o,o.stateNode.containerInfo),va(o,Pn,r.memoizedState.cache),Co();break;case 27:case 5:Ae(o);break;case 4:xe(o,o.stateNode.containerInfo);break;case 10:va(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,c0(o),null;break;case 13:var p=o.memoizedState;if(p!==null)return p.dehydrated!==null?(ba(o),o.flags|=128,null):(u&o.child.childLanes)!==0?nE(r,o,u):(ba(o),r=Ir(r,o,u),r!==null?r.sibling:null);ba(o);break;case 19:var y=(r.flags&128)!==0;if(p=(u&o.childLanes)!==0,p||(jl(r,o,u,!1),p=(u&o.childLanes)!==0),y){if(p)return sE(r,o,u);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),me(Mn,Mn.current),p)break;return null;case 22:return o.lanes=0,Kw(r,o,u,o.pendingProps);case 24:va(o,Pn,r.memoizedState.cache)}return Ir(r,o,u)}
vendor: 4,446 bytes, line 8
8function rE(r,o,u){if(r!==null)if(r.memoizedProps!==o.pendingProps)On=!0;else{if(!F0(r,u)&&(o.flags&128)===0)return On=!1,KO(r,o,u);On=(r.flags&131072)!==0}else On=!1,Nt&&(o.flags&1048576)!==0&&BS(o,Hu,o.index);switch(o.lanes=0,o.tag){case 16:e:{var p=o.pendingProps;if(r=Po(o.elementType),o.type=r,typeof r=="function")Hg(r)?(p=Io(r,p),o.tag=1,o=eE(null,o,r,p,u)):(o.tag=0,o=D0(null,o,r,p,u));else{if(r!=null){var y=r.$$typeof;if(y===C){o.tag=11,o=qw(null,o,r,p,u);break e}else if(y===P){o.tag=14,o=Yw(null,o,r,p,u);break e}}throw o=K(r)||r,Error(i(306,o,""))}}return o;case 0:return D0(r,o,o.type,o.pendingProps,u);case 1:return p=o.type,y=Io(p,o.pendingProps),eE(r,o,p,y,u);case 3:e:{if(xe(o,o.stateNode.containerInfo),r===null)throw Error(i(387));p=o.pendingProps;var E=o.memoizedState;y=E.element,s0(r,o),Zu(o,p,null,u);var D=o.memoizedState;if(p=D.cache,va(o,Pn,p),p!==E.cache&&Qg(o,[Pn],u,!0),Ku(),p=D.element,E.isDehydrated)if(E={element:p,isDehydrated:!1,cache:D.cache},o.updateQueue.baseState=E,o.memoizedState=E,o.flags&256){o=tE(r,o,p,u);break e}else if(p!==y){y=ds(Error(i(424)),o),Gu(y),o=tE(r,o,p,u);break e}else for(r=o.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,fn=vs(r.firstChild),ii=o,Nt=!0,ma=null,ms=!0,u=KS(o,null,p,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Co(),p===y){o=Ir(r,o,u);break e}ri(r,o,p,u)}o=o.child}return o;case 26:return Mh(r,o),r===null?(u=gM(o.type,null,o.pendingProps,null))?o.memoizedState=u:Nt||(u=o.type,r=o.pendingProps,p=Vh(ie.current).createElement(u),p[Dn]=o,p[ti]=r,ai(p,u,r),Te(p),o.stateNode=p):o.memoizedState=gM(o.type,r.memoizedProps,o.pendingProps,r.memoizedState),null;case 27:return Ae(o),r===null&&Nt&&(p=o.stateNode=hM(o.type,o.pendingProps,ie.current),ii=o,ms=!0,y=fn,Na(o.type)?(vv=y,fn=vs(p.firstChild)):fn=y),ri(r,o,o.pendingProps.children,u),Mh(r,o),r===null&&(o.flags|=4194304),o.child;case 5:return r===null&&Nt&&((y=p=fn)&&(p=T4(p,o.type,o.pendingProps,ms),p!==null?(o.stateNode=p,ii=o,fn=vs(p.firstChild),ms=!1,y=!0):y=!1),y||ga(o)),Ae(o),y=o.type,E=o.pendingProps,D=r!==null?r.memoizedProps:null,p=E.children,dv(y,E)?p=null:D!==null&&dv(y,D)&&(o.flags|=32),o.memoizedState!==null&&(y=f0(r,o,kO,null,null,u),xf._currentValue=y),Mh(r,o),ri(r,o,p,u),o.child;case 6:return r===null&&Nt&&((r=u=fn)&&(u=A4(u,o.pendingProps,ms),u!==null?(o.stateNode=u,ii=o,fn=null,r=!0):r=!1),r||ga(o)),null;case 13:return nE(r,o,u);case 4:return xe(o,o.stateNode.containerInfo),p=o.pendingProps,r===null?o.child=Oo(o,null,p,u):ri(r,o,p,u),o.child;case 11:return qw(r,o,o.type,o.pendingProps,u);case 7:return ri(r,o,o.pendingProps,u),o.child;case 8:return ri(r,o,o.pendingProps.children,u),o.child;case 12:return ri(r,o,o.pendingProps.children,u),o.child;case 10:return p=o.pendingProps,va(o,o.type,p.value),ri(r,o,p.children,u),o.child;case 9:return y=o.type._context,p=o.pendingProps.children,No(o),y=si(y),p=p(y),o.flags|=1,ri(r,o,p,u),o.child;case 14:return Yw(r,o,o.type,o.pendingProps,u);case 15:return $w(r,o,o.type,o.pendingProps,u);case 19:return sE(r,o,u);case 31:return $O(r,o,u);case 22:return Kw(r,o,u,o.pendingProps);case 24:return No(o),p=si(Pn),r===null?(y=t0(),y===null&&(y=sn,E=Jg(),y.pooledCache=E,E.refCount++,E!==null&&(y.pooledCacheLanes|=u),y=E),o.memoizedState={parent:p,cache:y},i0(o),va(o,Pn,y)):((r.lanes&u)!==0&&(s0(r,o),Zu(o,null,null,u),Ku()),y=r.memoizedState,E=o.memoizedState,y.parent!==p?(y={parent:p,cache:p},o.memoizedState=y,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=y),va(o,Pn,p)):(p=E.cache,va(o,Pn,p),p!==y.cache&&Qg(o,[Pn],u,!0))),ri(r,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(i(156,o.tag))}function Br(r){r.flags|=4}function z0(r,o,u,p,y){if((o=(r.mode&32)!==0)&&(o=!1),o){if(r.flags|=16777216,(y&335544128)===y)if(r.stateNode.complete)r.flags|=8192;else if(PE())r.flags|=8192;else throw Lo=uh,n0}else r.flags&=-16777217}function aE(r,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!bM(o))if(PE())r.flags|=8192;else throw Lo=uh,n0}function Ah(r,o){o!==null&&(r.flags|=4),r.flags&16384&&(o=r.tag!==22?Yt():536870912,r.lanes|=o,Ql|=o)}function sf(r,o){if(!Nt)switch(r.tailMode){case"hidden":o=r.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;
vendor: 5,929 bytes, line 8
8p===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:p.sibling=null}}function dn(r){var o=r.alternate!==null&&r.alternate.child===r.child,u=0,p=0;if(o)for(var y=r.child;y!==null;)u|=y.lanes|y.childLanes,p|=y.subtreeFlags&65011712,p|=y.flags&65011712,y.return=r,y=y.sibling;else for(y=r.child;y!==null;)u|=y.lanes|y.childLanes,p|=y.subtreeFlags,p|=y.flags,y.return=r,y=y.sibling;return r.subtreeFlags|=p,r.childLanes=u,o}function ZO(r,o,u){var p=o.pendingProps;switch(qg(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dn(o),null;case 1:return dn(o),null;case 3:return u=o.stateNode,p=null,r!==null&&(p=r.memoizedState.cache),o.memoizedState.cache!==p&&(o.flags|=2048),Lr(Pn),Me(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(zl(o)?Br(o):r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,$g())),dn(o),null;case 26:var y=o.type,E=o.memoizedState;return r===null?(Br(o),E!==null?(dn(o),aE(o,E)):(dn(o),z0(o,y,null,p,u))):E?E!==r.memoizedState?(Br(o),dn(o),aE(o,E)):(dn(o),o.flags&=-16777217):(r=r.memoizedProps,r!==p&&Br(o),dn(o),z0(o,y,r,p,u)),null;case 27:if(Be(o),u=ie.current,y=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==p&&Br(o);else{if(!p){if(o.stateNode===null)throw Error(i(166));return dn(o),null}r=ve.current,zl(o)?zS(o):(r=hM(y,p,u),o.stateNode=r,Br(o))}return dn(o),null;case 5:if(Be(o),y=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==p&&Br(o);else{if(!p){if(o.stateNode===null)throw Error(i(166));return dn(o),null}if(E=ve.current,zl(o))zS(o);else{var D=Vh(ie.current);switch(E){case 1:E=D.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:E=D.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":E=D.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":E=D.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":E=D.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof p.is=="string"?D.createElement("select",{is:p.is}):D.createElement("select"),p.multiple?E.multiple=!0:p.size&&(E.size=p.size);break;default:E=typeof p.is=="string"?D.createElement(y,{is:p.is}):D.createElement(y)}}E[Dn]=o,E[ti]=p;e:for(D=o.child;D!==null;){if(D.tag===5||D.tag===6)E.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===o)break e;for(;D.sibling===null;){if(D.return===null||D.return===o)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}o.stateNode=E;e:switch(ai(E,y,p),y){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Br(o)}}return dn(o),z0(o,o.type,r===null?null:r.memoizedProps,o.pendingProps,u),null;case 6:if(r&&o.stateNode!=null)r.memoizedProps!==p&&Br(o);else{if(typeof p!="string"&&o.stateNode===null)throw Error(i(166));if(r=ie.current,zl(o)){if(r=o.stateNode,u=o.memoizedProps,p=null,y=ii,y!==null)switch(y.tag){case 27:case 5:p=y.memoizedProps}r[Dn]=o,r=!!(r.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||nM(r.nodeValue,u)),r||ga(o,!0)}else r=Vh(r).createTextNode(p),r[Dn]=o,o.stateNode=r}return dn(o),null;case 31:if(u=o.memoizedState,r===null||r.memoizedState!==null){if(p=zl(o),u!==null){if(r===null){if(!p)throw Error(i(318));if(r=o.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Dn]=o}else Co(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;dn(o),r=!1}else u=$g(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=u),r=!0;if(!r)return o.flags&256?(Wi(o),o):(Wi(o),null);if((o.flags&128)!==0)throw Error(i(558))}return dn(o),null;case 13:if(p=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(y=zl(o),p!==null&&p.dehydrated!==null){if(r===null){if(!y)throw Error(i(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(i(317));y[Dn]=o}else Co(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;dn(o),y=!1}else y=$g(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=y),y=!0;if(!y)return o.flags&256?(Wi(o),o):(Wi(o),null)}return Wi(o),(o.flags&128)!==0?(o.lanes=u,o):(u=p!==null,r=r!==null&&r.memoizedState!==null,u&&(p=o.child,y=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(y=p.alternate.memoizedState.cachePool.pool),E=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(E=p.memoizedState.cachePool.pool),E!==y&&(p.flags|=2048)),u!==r&&u&&(o.child.flags|=8192),Ah(o,o.updateQueue),dn(o),null);case 4:return Me(),r===null&&ov(o.stateNode.containerInfo),dn(o),null;case 10:return Lr(o.type),dn(o),null;case 19:if(ee(Mn),p=o.memoizedState,p===null)return dn(o),null;if(y=(o.flags&128)!==0,E=p.rendering,E===null)if(y)sf(p,!1);else{if(bn!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(E=ph(r),E!==null){for(o.flags|=128,sf(p,!1),r=E.updateQueue,o.updateQueue=r,Ah(o,r),o.subtreeFlags=0,r=u,u=o.child;u!==null;)OS(u,r),u=u.sibling;return me(Mn,Mn.current&1|2),Nt&&Dr(o,p.treeForkCount),o.child}r=r.sibling}p.tail!==null&&I()>Ph&&(o.flags|=128,y=!0,sf(p,!1),o.lanes=4194304)}else{if(!y)if(r=ph(E),r!==null){if(o.flags|=128,y=!0,r=r.updateQueue,o.updateQueue=r,Ah(o,r),sf(p,!0),p.tail===null&&p.tailMode==="hidden"&&!E.alternate&&!Nt)return dn(o),null}else 2*I()-p.renderingStartTime>Ph&&u!==536870912&&(o.flags|=128,y=!0,sf(p,!1),o.lanes=4194304);p.isBackwards?(E.sibling=o.child,o.child=E):(r=p.last,r!==null?r.sibling=E:o.child=E,p.last=E)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=I(),r.sibling=null,u=Mn.current,me(Mn,y?u&1|2:u&1),Nt&&Dr(o,p.treeForkCount),r):(dn(o),null);case 22:case 23:return Wi(o),l0(),p=o.memoizedState!==null,r!==null?r.memoizedState!==null!==p&&(o.flags|=8192):p&&(o.flags|=8192),p?(u&536870912)!==0&&(o.flags&128)===0&&(
vendor: 13,444 bytes, line 8
8dn(o),o.subtreeFlags&6&&(o.flags|=8192)):dn(o),u=o.updateQueue,u!==null&&Ah(o,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==u&&(o.flags|=2048),r!==null&&ee(Do),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),Lr(Pn),dn(o),null;case 25:return null;case 30:return null}throw Error(i(156,o.tag))}function QO(r,o){switch(qg(o),o.tag){case 1:return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Lr(Pn),Me(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 26:case 27:case 5:return Be(o),null;case 31:if(o.memoizedState!==null){if(Wi(o),o.alternate===null)throw Error(i(340));Co()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 13:if(Wi(o),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Co()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return ee(Mn),null;case 4:return Me(),null;case 10:return Lr(o.type),null;case 22:case 23:return Wi(o),l0(),r!==null&&ee(Do),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 24:return Lr(Pn),null;case 25:return null;default:return null}}function oE(r,o){switch(qg(o),o.tag){case 3:Lr(Pn),Me();break;case 26:case 27:case 5:Be(o);break;case 4:Me();break;case 31:o.memoizedState!==null&&Wi(o);break;case 13:Wi(o);break;case 19:ee(Mn);break;case 10:Lr(o.type);break;case 22:case 23:Wi(o),l0(),r!==null&&ee(Do);break;case 24:Lr(Pn)}}function rf(r,o){try{var u=o.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var y=p.next;u=y;do{if((u.tag&r)===r){p=void 0;var E=u.create,D=u.inst;p=E(),D.destroy=p}u=u.next}while(u!==y)}}catch(F){Kt(o,o.return,F)}}function wa(r,o,u){try{var p=o.updateQueue,y=p!==null?p.lastEffect:null;if(y!==null){var E=y.next;p=E;do{if((p.tag&r)===r){var D=p.inst,F=D.destroy;if(F!==void 0){D.destroy=void 0,y=o;var $=u,le=F;try{le()}catch(_e){Kt(y,$,_e)}}}p=p.next}while(p!==E)}}catch(_e){Kt(o,o.return,_e)}}function lE(r){var o=r.updateQueue;if(o!==null){var u=r.stateNode;try{QS(o,u)}catch(p){Kt(r,r.return,p)}}}function cE(r,o,u){u.props=Io(r.type,r.memoizedProps),u.state=r.memoizedState;try{u.componentWillUnmount()}catch(p){Kt(r,o,p)}}function af(r,o){try{var u=r.ref;if(u!==null){switch(r.tag){case 26:case 27:case 5:var p=r.stateNode;break;case 30:p=r.stateNode;break;default:p=r.stateNode}typeof u=="function"?r.refCleanup=u(p):u.current=p}}catch(y){Kt(r,o,y)}}function sr(r,o){var u=r.ref,p=r.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(y){Kt(r,o,y)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(y){Kt(r,o,y)}else u.current=null}function uE(r){var o=r.type,u=r.memoizedProps,p=r.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(y){Kt(r,r.return,y)}}function j0(r,o,u){try{var p=r.stateNode;_4(p,r.type,u,o),p[ti]=o}catch(y){Kt(r,r.return,y)}}function fE(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Na(r.type)||r.tag===4}function k0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||fE(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Na(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function V0(r,o,u){var p=r.tag;if(p===5||p===6)r=r.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(r),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=Cr));else if(p!==4&&(p===27&&Na(r.type)&&(u=r.stateNode,o=null),r=r.child,r!==null))for(V0(r,o,u),r=r.sibling;r!==null;)V0(r,o,u),r=r.sibling}function Ch(r,o,u){var p=r.tag;if(p===5||p===6)r=r.stateNode,o?u.insertBefore(r,o):u.appendChild(r);else if(p!==4&&(p===27&&Na(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(Ch(r,o,u),r=r.sibling;r!==null;)Ch(r,o,u),r=r.sibling}function dE(r){var o=r.stateNode,u=r.memoizedProps;try{for(var p=r.type,y=o.attributes;y.length;)o.removeAttributeNode(y[0]);ai(o,p,u),o[Dn]=r,o[ti]=u}catch(E){Kt(r,r.return,E)}}var Fr=!1,Un=!1,H0=!1,hE=typeof WeakSet=="function"?WeakSet:Set,$n=null;function JO(r,o){if(r=r.containerInfo,uv=$h,r=MS(r),Ig(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var y=p.anchorOffset,E=p.focusNode;p=p.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var D=0,F=-1,$=-1,le=0,_e=0,we=r,ce=null;t:for(;;){for(var he;we!==u||y!==0&&we.nodeType!==3||(F=D+y),we!==E||p!==0&&we.nodeType!==3||($=D+p),we.nodeType===3&&(D+=we.nodeValue.length),(he=we.firstChild)!==null;)ce=we,we=he;for(;;){if(we===r)break t;if(ce===u&&++le===y&&(F=D),ce===E&&++_e===p&&($=D),(he=we.nextSibling)!==null)break;we=ce,ce=we.parentNode}we=he}u=F===-1||$===-1?null:{start:F,end:$}}else u=null}u=u||{start:0,end:0}}else u=null;for(fv={focusedElem:r,selectionRange:u},$h=!1,$n=o;$n!==null;)if(o=$n,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,$n=r;else for(;$n!==null;){switch(o=$n,E=o.alternate,r=o.flags,o.tag){case 0:if((r&4)!==0&&(r=o.updateQueue,r=r!==null?r.events:null,r!==null))for(u=0;u<r.length;u++)y=r[u],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&E!==null){r=void 0,u=o,y=E.memoizedProps,E=E.memoizedState,p=u.stateNode;try{var $e=Io(u.type,y);r=p.getSnapshotBeforeUpdate($e,E),p.__reactInternalSnapshotBeforeUpdate=r}catch(ct){Kt(u,u.return,ct)}}break;case 3:if((r&1024)!==0){if(r=o.stateNode.containerInfo,u=r.nodeType,u===9)pv(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":pv(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=o.sibling,r!==null){r.return=o.return,$n=r;break}$n=o.return}}function pE(r,o,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:jr(r,u),p&4&&rf(5,u);break;case 1:if(jr(r,u),p&4)if(r=u.stateNode,o===null)try{r.componentDidMount()}catch(D){Kt(u,u.return,D)}else{var y=Io(u.type,o.memoizedProps);o=o.memoizedState;try{r.componentDidUpdate(y,o,r.__reactInternalSnapshotBeforeUpdate)}catch(D){Kt(u,u.return,D)}}p&64&&lE(u),p&512&&af(u,u.return);break;case 3:if(jr(r,u),p&64&&(r=u.updateQueue,r!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{QS(r,o)}catch(D){Kt(u,u.return,D)}}break;case 27:o===null&&p&4&&dE(u);case 26:case 5:jr(r,u),o===null&&p&4&&uE(u),p&512&&af(u,u.return);break;case 12:jr(r,u);break;case 31:jr(r,u),p&4&&vE(r,u);break;case 13:jr(r,u),p&4&&xE(r,u),p&64&&(r=u.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(u=l4.bind(null,u),C4(r,u))));break;case 22:if(p=u.memoizedState!==null||Fr,!p){o=o!==null&&o.memoizedState!==null||Un,y=Fr;var E=Un;Fr=p,(Un=o)&&!E?kr(r,u,(u.subtreeFlags&8772)!==0):jr(r,u),Fr=y,Un=E}break;case 30:break;default:jr(r,u)}}function mE(r){var o=r.alternate;o!==null&&(r.alternate=null,mE(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&k(o)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var hn=null,Mi=!1;function zr(r,o,u){for(u=u.child;u!==null;)gE(r,o,u),u=u.sibling}function gE(r,o,u){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(Ne,u)}catch{}switch(u.tag){case 26:Un||sr(u,o),zr(r,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Un||sr(u,o);var p=hn,y=Mi;Na(u.type)&&(hn=u.stateNode,Mi=!1),zr(r,o,u),mf(u.stateNode),hn=p,Mi=y;break;case 5:Un||sr(u,o);case 6:if(p=hn,y=Mi,hn=null,zr(r,o,u),hn=p,Mi=y,hn!==null)if(Mi)try{(hn.nodeType===9?hn.body:hn.nodeName==="HTML"?hn.ownerDocument.body:hn).removeChild(u.stateNode)}catch(E){Kt(u,o,E)}else try{hn.removeChild(u.stateNode)}catch(E){Kt(u,o,E)}break;case 18:hn!==null&&(Mi?(r=hn,lM(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),ac(r)):lM(hn,u.stateNode));break;case 4:p=hn,y=Mi,hn=u.stateNode.containerInfo,Mi=!0,zr(r,o,u),hn=p,Mi=y;break;case 0:case 11:case 14:case 15:wa(2,u,o),Un||wa(4,u,o),zr(r,o,u);break;case 1:Un||(sr(u,o),p=u.stateNode,typeof p.componentWillUnmount=="function"&&cE(u,o,p)),zr(r,o,u);break;case 21:zr(r,o,u);break;case 22:Un=(p=Un)||u.memoizedState!==null,zr(r,o,u),Un=p;break;default:zr(r,o,u)}}function vE(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{ac(r)}catch(u){Kt(o,o.return,u)}}}function xE(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{ac(r)}catch(u){Kt(o,o.return,u)}}function e4(r){switch(r.tag){case 31:case 13:case 19:var o=r.stateNode;return o===null&&(o=r.stateNode=new hE),o;case 22:return r=r.stateNode,o=r._retryCache,o===null&&(o=r._retryCache=new hE),o;default:throw Error(i(435,r.tag))}}function Rh(r,o){var u=e4(r);o.forEach(function(p){if(!u.has(p)){u.add(p);var y=c4.bind(null,r,p);p.then(y,y)}})}function Ti(r,o){var u=o.deletions;if(u!==null)for(var p=0;p<u.length;p++){var y=u[p],E=r,D=o,F=D;e:for(;F!==null;){switch(F.tag){case 27:if(Na(F.type)){hn=F.stateNode,Mi=!1;break e}break;case 5:hn=F.stateNode,Mi=!1;break e;case 3:case 4:hn=F.stateNode.containerInfo,Mi=!0;break e}F=F.return}if(hn===null)throw Error(i(160));gE(E,D,y),hn=null,Mi=!1,E=y.alternate,E!==null&&(E.return=null),y.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)yE(o,r),o=o.sibling}var Us=null;function yE(r,o){var u=r.alternate,p=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Ti(o,r),Ai(r),p&4&&(wa(3,r,r.return),rf(3,r),wa(5,r,r.return));break;case 1:Ti(o,r),Ai(r),p&512&&(Un||u===null||sr(u,u.return)),p&64&&Fr&&(r=r.updateQueue,r!==null&&(p=r.callbacks,p!==null&&(u=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var y=Us;if(Ti(o,r),Ai(r),p&512&&(Un||u===null||sr(u,u.return)),p&4){var E=u!==null?u.memoizedState:null;if(p=r.memoizedState,u===null)if(p===null)if(r.stateNode===null){e:{p=r.type,u=r.memoizedProps,y=y.ownerDocument||y;t:switch(p){case"title":E=y.getElementsByTagName("title")[0],(!E||E[bo]||E[Dn]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=y.createElement(p),y.head.insertBefore(E,y.querySelector("head > title"))),ai(E,p,u),E[Dn]=r,Te(E),p=E;break e;case"link":var D=yM("link","href",y).get(p+(u.href||""));if(D){for(var F=0;F<D.length;F++)if(E=D[F],E.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&E.getAttribute("rel")===(u.rel==null?null:u.rel)&&E.getAttribute("title")===(u.title==null?null:u.title)&&E.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){D.splice(F,1);break t}}E=y.createElement(p),ai(E,p,u),y.head.appendChild(E);break;case"meta":if(D=yM("meta","content",y).get(p+(u.content||""))){for(F=0;F<D.length;F++)if(E=D[F],E.getAttribute("content")===(u.content==null?null:""+u.content)&&E.getAttribute("name")===(u.name==null?null:u.name)&&E.getAttribute("property")===(u.property==null?null:u.property)&&E.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&E.getAttribute("charset")===(u.charSet==null?null:u.charSet)){D.splice(F,1);break t}}E=y.createElement(p),ai(E,p,u),y.head.appendChild(E);break;default:throw Error(i(468,p))}E[Dn]=r,Te(E),p=E}r.stateNode=p}else _M(y,r.type,r.stateNode);else r.stateNode=xM(y,p,r.memoizedProps);else E!==p?(E===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):E.count--,p===null?_M(y,r.type,r.stateNode):xM(y,p,r.memoizedProps)):p===null&&r.stateNode!==null&&j0(r,r.memoizedProps,u.memoizedProps)}break;case 27:Ti(o,r),Ai(r),p&512&&(Un||u===null||sr(u,u.return)),u!==null&&p&4&&j0(r,r.memoizedProps,u.memoizedProps);break;case 5:if(Ti(o,r),Ai(r),p&512&&(Un||u===null||sr(u,u.return)),r.flags&32){y=r.stateNode;try{Rl(y,"")}catch($e){Kt(r,r.return,$e)}}p&4&&r.stateNode!=null&&(y=r.memoizedProps,j0(r,y,u!==null?u.memoizedProps:y)),p&1024&&(H0=!0);break;case 6:if(Ti(o,r),Ai(r),p&4){if(r.stateNode===null)throw Error(i(162));p=r.memoizedProps,u=r.stateNode;try{u.nodeValue=p}catch($e){Kt(r,r.return,$e)}}break;case 3:if(Wh=null,y=Us,Us=Hh(o.containerInfo),Ti(o,r),Us=y,Ai(r),p&4&&u!==null&&u.memoizedState.isDehydrated)try{ac(o.containerInfo)}catch($e){Kt(r,r.return,$e)}H0&&(H0=!1,_E(r));break;case 4:p=Us,Us=Hh(r.stateNode.containerInfo),Ti(o,r),Ai(r),Us=p;break;case 12:Ti(o,r),Ai(r);break;case 31:Ti(o,r),Ai(r),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,Rh(r,p)));break;case 13:Ti(o,r),Ai(r),r.child.flags&8192&&r.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Dh=I()),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,Rh(r,p)));break;case 22:y=r.memoizedState!==null;var $=u!==null&&u.memoizedState!==null,le=Fr,_e=Un;if(Fr=le||y,Un=_e||$,Ti(o,r),Un=_e,Fr=le,Ai(r),p&8192)e:for(o=r.stateNode,o._visibility=y?o._visibility&-2:o._visibility|1,y&&(u===null||$||Fr||Un||Bo(r)),u=null,o=r;;
vendor: 10,031 bytes, line 8
8){if(o.tag===5||o.tag===26){if(u===null){$=u=o;try{if(E=$.stateNode,y)D=E.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{F=$.stateNode;var we=$.memoizedProps.style,ce=we!=null&&we.hasOwnProperty("display")?we.display:null;F.style.display=ce==null||typeof ce=="boolean"?"":(""+ce).trim()}}catch($e){Kt($,$.return,$e)}}}else if(o.tag===6){if(u===null){$=o;try{$.stateNode.nodeValue=y?"":$.memoizedProps}catch($e){Kt($,$.return,$e)}}}else if(o.tag===18){if(u===null){$=o;try{var he=$.stateNode;y?cM(he,!0):cM($.stateNode,!1)}catch($e){Kt($,$.return,$e)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===r)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break e;for(;o.sibling===null;){if(o.return===null||o.return===r)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}p&4&&(p=r.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,Rh(r,u))));break;case 19:Ti(o,r),Ai(r),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,Rh(r,p)));break;case 30:break;case 21:break;default:Ti(o,r),Ai(r)}}function Ai(r){var o=r.flags;if(o&2){try{for(var u,p=r.return;p!==null;){if(fE(p)){u=p;break}p=p.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var y=u.stateNode,E=k0(r);Ch(r,E,y);break;case 5:var D=u.stateNode;u.flags&32&&(Rl(D,""),u.flags&=-33);var F=k0(r);Ch(r,F,D);break;case 3:case 4:var $=u.stateNode.containerInfo,le=k0(r);V0(r,le,$);break;default:throw Error(i(161))}}catch(_e){Kt(r,r.return,_e)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function _E(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var o=r;_E(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),r=r.sibling}}function jr(r,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)pE(r,o.alternate,o),o=o.sibling}function Bo(r){for(r=r.child;r!==null;){var o=r;switch(o.tag){case 0:case 11:case 14:case 15:wa(4,o,o.return),Bo(o);break;case 1:sr(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&cE(o,o.return,u),Bo(o);break;case 27:mf(o.stateNode);case 26:case 5:sr(o,o.return),Bo(o);break;case 22:o.memoizedState===null&&Bo(o);break;case 30:Bo(o);break;default:Bo(o)}r=r.sibling}}function kr(r,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var p=o.alternate,y=r,E=o,D=E.flags;switch(E.tag){case 0:case 11:case 15:kr(y,E,u),rf(4,E);break;case 1:if(kr(y,E,u),p=E,y=p.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(le){Kt(p,p.return,le)}if(p=E,y=p.updateQueue,y!==null){var F=p.stateNode;try{var $=y.shared.hiddenCallbacks;if($!==null)for(y.shared.hiddenCallbacks=null,y=0;y<$.length;y++)ZS($[y],F)}catch(le){Kt(p,p.return,le)}}u&&D&64&&lE(E),af(E,E.return);break;case 27:dE(E);case 26:case 5:kr(y,E,u),u&&p===null&&D&4&&uE(E),af(E,E.return);break;case 12:kr(y,E,u);break;case 31:kr(y,E,u),u&&D&4&&vE(y,E);break;case 13:kr(y,E,u),u&&D&4&&xE(y,E);break;case 22:E.memoizedState===null&&kr(y,E,u),af(E,E.return);break;case 30:break;default:kr(y,E,u)}o=o.sibling}}function G0(r,o){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==u&&(r!=null&&r.refCount++,u!=null&&Wu(u))}function W0(r,o){r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&Wu(r))}function Is(r,o,u,p){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)bE(r,o,u,p),o=o.sibling}function bE(r,o,u,p){var y=o.flags;switch(o.tag){case 0:case 11:case 15:Is(r,o,u,p),y&2048&&rf(9,o);break;case 1:Is(r,o,u,p);break;case 3:Is(r,o,u,p),y&2048&&(r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&Wu(r)));break;case 12:if(y&2048){Is(r,o,u,p),r=o.stateNode;try{var E=o.memoizedProps,D=E.id,F=E.onPostCommit;typeof F=="function"&&F(D,o.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch($){Kt(o,o.return,$)}}else Is(r,o,u,p);break;case 31:Is(r,o,u,p);break;case 13:Is(r,o,u,p);break;case 23:break;case 22:E=o.stateNode,D=o.alternate,o.memoizedState!==null?E._visibility&2?Is(r,o,u,p):of(r,o):E._visibility&2?Is(r,o,u,p):(E._visibility|=2,$l(r,o,u,p,(o.subtreeFlags&10256)!==0||!1)),y&2048&&G0(D,o);break;case 24:Is(r,o,u,p),y&2048&&W0(o.alternate,o);break;default:Is(r,o,u,p)}}function $l(r,o,u,p,y){for(y=y&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var E=r,D=o,F=u,$=p,le=D.flags;switch(D.tag){case 0:case 11:case 15:$l(E,D,F,$,y),rf(8,D);break;case 23:break;case 22:var _e=D.stateNode;D.memoizedState!==null?_e._visibility&2?$l(E,D,F,$,y):of(E,D):(_e._visibility|=2,$l(E,D,F,$,y)),y&&le&2048&&G0(D.alternate,D);break;case 24:$l(E,D,F,$,y),y&&le&2048&&W0(D.alternate,D);break;default:$l(E,D,F,$,y)}o=o.sibling}}function of(r,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=r,p=o,y=p.flags;switch(p.tag){case 22:of(u,p),y&2048&&G0(p.alternate,p);break;case 24:of(u,p),y&2048&&W0(p.alternate,p);break;default:of(u,p)}o=o.sibling}}var lf=8192;function Kl(r,o,u){if(r.subtreeFlags&lf)for(r=r.child;r!==null;)SE(r,o,u),r=r.sibling}function SE(r,o,u){switch(r.tag){case 26:Kl(r,o,u),r.flags&lf&&r.memoizedState!==null&&j4(u,Us,r.memoizedState,r.memoizedProps);break;case 5:Kl(r,o,u);break;case 3:case 4:var p=Us;Us=Hh(r.stateNode.containerInfo),Kl(r,o,u),Us=p;break;case 22:r.memoizedState===null&&(p=r.alternate,p!==null&&p.memoizedState!==null?(p=lf,lf=16777216,Kl(r,o,u),lf=p):Kl(r,o,u));break;default:Kl(r,o,u)}}function wE(r){var o=r.alternate;if(o!==null&&(r=o.child,r!==null)){o.child=null;do o=r.sibling,r.sibling=null,r=o;while(r!==null)}}function cf(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var p=o[u];$n=p,ME(p,r)}wE(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)EE(r),r=r.sibling}function EE(r){switch(r.tag){case 0:case 11:case 15:cf(r),r.flags&2048&&wa(9,r,r.return);break;case 3:cf(r);break;case 12:cf(r);break;case 22:var o=r.stateNode;r.memoizedState!==null&&o._visibility&2&&(r.return===null||r.return.tag!==13)?(o._visibility&=-3,Nh(r)):cf(r);break;default:cf(r)}}function Nh(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var p=o[u];$n=p,ME(p,r)}wE(r)}for(r=r.child;r!==null;){switch(o=r,o.tag){case 0:case 11:case 15:wa(8,o,o.return),Nh(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,Nh(o));break;default:Nh(o)}r=r.sibling}}function ME(r,o){for(;$n!==null;){var u=$n;switch(u.tag){case 0:case 11:case 15:wa(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Wu(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,$n=p;else e:for(u=r;$n!==null;){p=$n;var y=p.sibling,E=p.return;if(mE(p),p===u){$n=null;break e}if(y!==null){y.return=E,$n=y;break e}$n=E}}}var t4={getCacheForType:function(r){var o=si(Pn),u=o.data.get(r);return u===void 0&&(u=r(),o.data.set(r,u)),u},cacheSignal:function(){return si(Pn).controller.signal}},n4=typeof WeakMap=="function"?WeakMap:Map,Vt=0,sn=null,Mt=null,Ct=0,$t=0,Xi=null,Ea=!1,Zl=!1,X0=!1,Vr=0,bn=0,Ma=0,Fo=0,q0=0,qi=0,Ql=0,uf=null,Ci=null,Y0=!1,Dh=0,TE=0,Ph=1/0,Lh=null,Ta=null,kn=0,Aa=null,Jl=null,Hr=0,$0=0,K0=null,AE=null,ff=0,Z0=null;function Yi(){return(Vt&2)!==0&&Ct!==0?Ct&-Ct:B.T!==null?iv():_o()}function CE(){if(qi===0)if((Ct&536870912)===0||Nt){var r=Ie;Ie<<=1,(Ie&3932160)===0&&(Ie=262144),qi=r}else qi=536870912;return r=Gi.current,r!==null&&(r.flags|=32),qi}function Ri(r,o,u){(r===sn&&($t===2||$t===9)||r.cancelPendingCommit!==null)&&(ec(r,0),Ca(r,Ct,qi,!1)),vi(r,u),((Vt&2)===0||r!==sn)&&(r===sn&&((Vt&2)===0&&(Fo|=u),bn===4&&Ca(r,Ct,qi,!1)),rr(r))}function RE(r,o,u){if((Vt&6)!==0)throw Error(i(327));var p=!u&&(o&127)===0&&(o&r.expiredLanes)===0||Ye(r,o),y=p?r4(r,o):J0(r,o,!0),E=p;do{if(y===0){Zl&&!p&&Ca(r,o,0,!1);break}else{if(u=r.current.alternate,E&&!i4(u)){y=J0(r,o,!1),E=!1;continue}if(y===2){if(E=o,r.errorRecoveryDisabledLanes&E)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){o=D;e:{var F=r;y=uf;var $=F.current.memoizedState.isDehydrated;if($&&(ec(F,D).flags|=256),D=J0(F,D,!1),D!==2){if(X0&&!$){F.errorRecoveryDisabledLanes|=E,Fo|=E,y=4;break e}E=Ci,Ci=y,E!==null&&(Ci===null?Ci=E:Ci.push.apply(Ci,E))}y=D}if(E=!1,y!==2)continue}}if(y===1){ec(r,0),Ca(r,o,0,!0);break}e:{switch(p=r,E=y,E){case 0:case 1:throw Error(i(345));case 4:if((o&4194048)!==o)break;case 6:Ca(p,o,qi,!Ea);break e;case 2:Ci=null;break;case 3:case 5:break;default:throw Error(i(329))}if((o&62914560)===o&&(y=Dh+300-I(),10<y)){if(Ca(p,o,qi,!Ea),Ee(p,0,!0)!==0)break e;Hr=o,p.timeoutHandle=aM(NE.bind(null,p,u,Ci,Lh,Y0,o,qi,Fo,Ql,Ea,E,"Throttled",-0,0),y);break e}NE(p,u,Ci,Lh,Y0,o,qi,Fo,Ql,Ea,E,null,-0,0)}}break}while(!0);rr(r)}function NE(r,o,u,p,y,E,D,F,$,le,_e,we,ce,he){if(r.timeoutHandle=-1,we=o.subtreeFlags,we&8192||(we&16785408)===16785408){we={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cr},SE(o,E,we);var $e=(E&62914560)===E?Dh-I():(E&4194048)===E?TE-I():0;if($e=k4(we,$e),$e!==null){Hr=E,r.cancelPendingCommit=$e(FE.bind(null,r,o,E,u,p,y,D,F,$,_e,we,null,ce,he)),Ca(r,E,D,!le);return}}FE(r,o,E,u,p,y,D,F,$)}function i4(r){for(var o=r;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var y=u[p],E=y.getSnapshot;y=y.value;try{if(!Vi(E(),y))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Ca(r,o,u,p){o&=~q0,o&=~Fo,r.suspendedLanes|=o,r.pingedLanes&=~o,p&&(r.warmLanes|=o),p=r.expirationTimes;for(var y=o;0<y;){var E=31-Ge(y),D=1<<E;p[E]=-1,y&=~D}u!==0&&Du(r,u,o)}function Oh(){return(Vt&6)===0?(df(0),!1):!0}
vendor: 5,386 bytes, line 8
8function Q0(){if(Mt!==null){if($t===0)var r=Mt.return;else r=Mt,Pr=Ro=null,p0(r),Gl=null,qu=0,r=Mt;for(;r!==null;)oE(r.alternate,r),r=r.return;Mt=null}}function ec(r,o){var u=r.timeoutHandle;u!==-1&&(r.timeoutHandle=-1,w4(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),Hr=0,Q0(),sn=r,Mt=u=Nr(r.current,null),Ct=o,$t=0,Xi=null,Ea=!1,Zl=Ye(r,o),X0=!1,Ql=qi=q0=Fo=Ma=bn=0,Ci=uf=null,Y0=!1,(o&8)!==0&&(o|=o&32);var p=r.entangledLanes;if(p!==0)for(r=r.entanglements,p&=o;0<p;){var y=31-Ge(p),E=1<<y;o|=r[y],p&=~E}return Vr=o,th(),u}function DE(r,o){gt=null,B.H=tf,o===Hl||o===ch?(o=qS(),$t=3):o===n0?(o=qS(),$t=4):$t=o===N0?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Xi=o,Mt===null&&(bn=1,wh(r,ds(o,r.current)))}function PE(){var r=Gi.current;return r===null?!0:(Ct&4194048)===Ct?gs===null:(Ct&62914560)===Ct||(Ct&536870912)!==0?r===gs:!1}function LE(){var r=B.H;return B.H=tf,r===null?tf:r}function OE(){var r=B.A;return B.A=t4,r}function Uh(){bn=4,Ea||(Ct&4194048)!==Ct&&Gi.current!==null||(Zl=!0),(Ma&134217727)===0&&(Fo&134217727)===0||sn===null||Ca(sn,Ct,qi,!1)}function J0(r,o,u){var p=Vt;Vt|=2;var y=LE(),E=OE();(sn!==r||Ct!==o)&&(Lh=null,ec(r,o)),o=!1;var D=bn;e:do try{if($t!==0&&Mt!==null){var F=Mt,$=Xi;switch($t){case 8:Q0(),D=6;break e;case 3:case 2:case 9:case 6:Gi.current===null&&(o=!0);var le=$t;if($t=0,Xi=null,tc(r,F,$,le),u&&Zl){D=0;break e}break;default:le=$t,$t=0,Xi=null,tc(r,F,$,le)}}s4(),D=bn;break}catch(_e){DE(r,_e)}while(!0);return o&&r.shellSuspendCounter++,Pr=Ro=null,Vt=p,B.H=y,B.A=E,Mt===null&&(sn=null,Ct=0,th()),D}function s4(){for(;Mt!==null;)UE(Mt)}function r4(r,o){var u=Vt;Vt|=2;var p=LE(),y=OE();sn!==r||Ct!==o?(Lh=null,Ph=I()+500,ec(r,o)):Zl=Ye(r,o);e:do try{if($t!==0&&Mt!==null){o=Mt;var E=Xi;t:switch($t){case 1:$t=0,Xi=null,tc(r,o,E,1);break;case 2:case 9:if(WS(E)){$t=0,Xi=null,IE(o);break}o=function(){$t!==2&&$t!==9||sn!==r||($t=7),rr(r)},E.then(o,o);break e;case 3:$t=7;break e;case 4:$t=5;break e;case 7:WS(E)?($t=0,Xi=null,IE(o)):($t=0,Xi=null,tc(r,o,E,7));break;case 5:var D=null;switch(Mt.tag){case 26:D=Mt.memoizedState;case 5:case 27:var F=Mt;if(D?bM(D):F.stateNode.complete){$t=0,Xi=null;var $=F.sibling;if($!==null)Mt=$;else{var le=F.return;le!==null?(Mt=le,Ih(le)):Mt=null}break t}}$t=0,Xi=null,tc(r,o,E,5);break;case 6:$t=0,Xi=null,tc(r,o,E,6);break;case 8:Q0(),bn=6;break e;default:throw Error(i(462))}}a4();break}catch(_e){DE(r,_e)}while(!0);return Pr=Ro=null,B.H=p,B.A=y,Vt=u,Mt!==null?0:(sn=null,Ct=0,th(),bn)}function a4(){for(;Mt!==null&&!ln();)UE(Mt)}function UE(r){var o=rE(r.alternate,r,Vr);r.memoizedProps=r.pendingProps,o===null?Ih(r):Mt=o}function IE(r){var o=r,u=o.alternate;switch(o.tag){case 15:case 0:o=Jw(u,o,o.pendingProps,o.type,void 0,Ct);break;case 11:o=Jw(u,o,o.pendingProps,o.type.render,o.ref,Ct);break;case 5:p0(o);default:oE(u,o),o=Mt=OS(o,Vr),o=rE(u,o,Vr)}r.memoizedProps=r.pendingProps,o===null?Ih(r):Mt=o}function tc(r,o,u,p){Pr=Ro=null,p0(o),Gl=null,qu=0;var y=o.return;try{if(YO(r,y,o,u,Ct)){bn=1,wh(r,ds(u,r.current)),Mt=null;return}}catch(E){if(y!==null)throw Mt=y,E;bn=1,wh(r,ds(u,r.current)),Mt=null;return}o.flags&32768?(Nt||p===1?r=!0:Zl||(Ct&536870912)!==0?r=!1:(Ea=r=!0,(p===2||p===9||p===3||p===6)&&(p=Gi.current,p!==null&&p.tag===13&&(p.flags|=16384))),BE(o,r)):Ih(o)}function Ih(r){var o=r;do{if((o.flags&32768)!==0){BE(o,Ea);return}r=o.return;var u=ZO(o.alternate,o,Vr);if(u!==null){Mt=u;return}if(o=o.sibling,o!==null){Mt=o;return}Mt=o=r}while(o!==null);bn===0&&(bn=5)}function BE(r,o){do{var u=QO(r.alternate,r);if(u!==null){u.flags&=32767,Mt=u;return}if(u=r.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(r=r.sibling,r!==null)){Mt=r;return}Mt=r=u}while(r!==null);bn=6,Mt=null}function FE(r,o,u,p,y,E,D,F,$){r.cancelPendingCommit=null;do Bh();while(kn!==0);if((Vt&6)!==0)throw Error(i(327));if(o!==null){if(o===r.current)throw Error(i(177));if(E=o.lanes|o.childLanes,E|=kg,us(r,u,E,D,F,$),r===sn&&(Mt=sn=null,Ct=0),Jl=o,Aa=r,Hr=u,$0=E,K0=y,AE=p,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,u4(ye,function(){return HE(),null})):(r.callbackNode=null,r.callbackPriority=0),p=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||p){p=B.T,B.T=null,y=W.p,W.p=2,D=Vt,Vt|=4;try{JO(r,o,u)}finally{Vt=D,W.p=y,B.T=p}}kn=1,zE(),jE(),kE()}}function zE(){if(kn===1){kn=0;var r=Aa,o=Jl,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=B.T,B.T=null;var p=W.p;W.p=2;var y=Vt;Vt|=4;try{yE(o,r);var E=fv,D=MS(r.containerInfo),F=E.focusedElem,$=E.selectionRange;if(D!==F&&F&&F.ownerDocument&&ES(F.ownerDocument.documentElement,F)){if($!==null&&Ig(F)){var le=$.start,_e=$.end;if(_e===void 0&&(_e=le),"selectionStart"in F)F.selectionStart=le,F.selectionEnd=Math.min(_e,F.value.length);else{var we=F.ownerDocument||document,ce=we&&we.defaultView||window;if(ce.getSelection){var he=ce.getSelection(),$e=F.textContent.length,ct=Math.min($.start,$e),Jt=$.end===void 0?ct:Math.min($.end,$e);!he.extend&&ct>Jt&&(D=Jt,Jt=ct,ct=D);var ne=wS(F,ct),Q=wS(F,Jt);if(ne&&Q&&(he.rangeCount!==1||he.anchorNode!==ne.node||he.anchorOffset!==ne.offset||he.focusNode!==Q.node||he.focusOffset!==Q.offset)){var oe=we.createRange();oe.setStart(ne.node,ne.offset),he.removeAllRanges(),ct>Jt?(he.addRange(oe),he.extend(Q.node,Q.offset)):(oe.setEnd(Q.node,Q.offset),he.addRange(oe))}}}}for(we=[],he=F;he=he.parentNode;
vendor: 13,066 bytes, line 8
8)he.nodeType===1&&we.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof F.focus=="function"&&F.focus(),F=0;F<we.length;F++){var Se=we[F];Se.element.scrollLeft=Se.left,Se.element.scrollTop=Se.top}}$h=!!uv,fv=uv=null}finally{Vt=y,W.p=p,B.T=u}}r.current=o,kn=2}}function jE(){if(kn===2){kn=0;var r=Aa,o=Jl,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=B.T,B.T=null;var p=W.p;W.p=2;var y=Vt;Vt|=4;try{pE(r,o.alternate,o)}finally{Vt=y,W.p=p,B.T=u}}kn=3}}function kE(){if(kn===4||kn===3){kn=0,V();var r=Aa,o=Jl,u=Hr,p=AE;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?kn=5:(kn=0,Jl=Aa=null,VE(r,r.pendingLanes));var y=r.pendingLanes;if(y===0&&(Ta=null),Al(u),o=o.stateNode,Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(Ne,o,void 0,(o.current.flags&128)===128)}catch{}if(p!==null){o=B.T,y=W.p,W.p=2,B.T=null;try{for(var E=r.onRecoverableError,D=0;D<p.length;D++){var F=p[D];E(F.value,{componentStack:F.stack})}}finally{B.T=o,W.p=y}}(Hr&3)!==0&&Bh(),rr(r),y=r.pendingLanes,(u&261930)!==0&&(y&42)!==0?r===Z0?ff++:(ff=0,Z0=r):ff=0,df(0)}}function VE(r,o){(r.pooledCacheLanes&=o)===0&&(o=r.pooledCache,o!=null&&(r.pooledCache=null,Wu(o)))}function Bh(){return zE(),jE(),kE(),HE()}function HE(){if(kn!==5)return!1;var r=Aa,o=$0;$0=0;var u=Al(Hr),p=B.T,y=W.p;try{W.p=32>u?32:u,B.T=null,u=K0,K0=null;var E=Aa,D=Hr;if(kn=0,Jl=Aa=null,Hr=0,(Vt&6)!==0)throw Error(i(331));var F=Vt;if(Vt|=4,EE(E.current),bE(E,E.current,D,u),Vt=F,df(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(Ne,E)}catch{}return!0}finally{W.p=y,B.T=p,VE(r,o)}}function GE(r,o,u){o=ds(u,o),o=R0(r.stateNode,o,2),r=_a(r,o,2),r!==null&&(vi(r,2),rr(r))}function Kt(r,o,u){if(r.tag===3)GE(r,r,u);else for(;o!==null;){if(o.tag===3){GE(o,r,u);break}else if(o.tag===1){var p=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Ta===null||!Ta.has(p))){r=ds(u,r),u=Ww(2),p=_a(o,u,2),p!==null&&(Xw(u,p,o,r),vi(p,2),rr(p));break}}o=o.return}}function ev(r,o,u){var p=r.pingCache;if(p===null){p=r.pingCache=new n4;var y=new Set;p.set(o,y)}else y=p.get(o),y===void 0&&(y=new Set,p.set(o,y));y.has(u)||(X0=!0,y.add(u),r=o4.bind(null,r,o,u),o.then(r,r))}function o4(r,o,u){var p=r.pingCache;p!==null&&p.delete(o),r.pingedLanes|=r.suspendedLanes&u,r.warmLanes&=~u,sn===r&&(Ct&u)===u&&(bn===4||bn===3&&(Ct&62914560)===Ct&&300>I()-Dh?(Vt&2)===0&&ec(r,0):q0|=u,Ql===Ct&&(Ql=0)),rr(r)}function WE(r,o){o===0&&(o=Yt()),r=To(r,o),r!==null&&(vi(r,o),rr(r))}function l4(r){var o=r.memoizedState,u=0;o!==null&&(u=o.retryLane),WE(r,u)}function c4(r,o){var u=0;switch(r.tag){case 31:case 13:var p=r.stateNode,y=r.memoizedState;y!==null&&(u=y.retryLane);break;case 19:p=r.stateNode;break;case 22:p=r.stateNode._retryCache;break;default:throw Error(i(314))}p!==null&&p.delete(o),WE(r,u)}function u4(r,o){return lt(r,o)}var Fh=null,nc=null,tv=!1,zh=!1,nv=!1,Ra=0;function rr(r){r!==nc&&r.next===null&&(nc===null?Fh=nc=r:nc=nc.next=r),zh=!0,tv||(tv=!0,d4())}function df(r,o){if(!nv&&zh){nv=!0;do for(var u=!1,p=Fh;p!==null;){if(r!==0){var y=p.pendingLanes;if(y===0)var E=0;else{var D=p.suspendedLanes,F=p.pingedLanes;E=(1<<31-Ge(42|r)+1)-1,E&=y&~(D&~F),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,$E(p,E))}else E=Ct,E=Ee(p,p===sn?E:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(E&3)===0||Ye(p,E)||(u=!0,$E(p,E));p=p.next}while(u);nv=!1}}function f4(){XE()}function XE(){zh=tv=!1;var r=0;Ra!==0&&S4()&&(r=Ra);for(var o=I(),u=null,p=Fh;p!==null;){var y=p.next,E=qE(p,o);E===0?(p.next=null,u===null?Fh=y:u.next=y,y===null&&(nc=u)):(u=p,(r!==0||(E&3)!==0)&&(zh=!0)),p=y}kn!==0&&kn!==5||df(r),Ra!==0&&(Ra=0)}function qE(r,o){for(var u=r.suspendedLanes,p=r.pingedLanes,y=r.expirationTimes,E=r.pendingLanes&-62914561;0<E;){var D=31-Ge(E),F=1<<D,$=y[D];$===-1?((F&u)===0||(F&p)!==0)&&(y[D]=dt(F,o)):$<=o&&(r.expiredLanes|=F),E&=~F}if(o=sn,u=Ct,u=Ee(r,r===o?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),p=r.callbackNode,u===0||r===o&&($t===2||$t===9)||r.cancelPendingCommit!==null)return p!==null&&p!==null&&tn(p),r.callbackNode=null,r.callbackPriority=0;if((u&3)===0||Ye(r,u)){if(o=u&-u,o===r.callbackPriority)return o;switch(p!==null&&tn(p),Al(u)){case 2:case 8:u=Ce;break;case 32:u=ye;break;case 268435456:u=Oe;break;default:u=ye}return p=YE.bind(null,r),u=lt(u,p),r.callbackPriority=o,r.callbackNode=u,o}return p!==null&&p!==null&&tn(p),r.callbackPriority=2,r.callbackNode=null,2}function YE(r,o){if(kn!==0&&kn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var u=r.callbackNode;if(Bh()&&r.callbackNode!==u)return null;var p=Ct;return p=Ee(r,r===sn?p:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),p===0?null:(RE(r,p,o),qE(r,I()),r.callbackNode!=null&&r.callbackNode===u?YE.bind(null,r):null)}function $E(r,o){if(Bh())return null;RE(r,o,!0)}function d4(){E4(function(){(Vt&6)!==0?lt(be,f4):XE()})}function iv(){if(Ra===0){var r=kl;r===0&&(r=De,De<<=1,(De&261888)===0&&(De=256)),Ra=r}return Ra}function KE(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:qd(""+r)}function ZE(r,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,r.id&&u.setAttribute("form",r.id),o.parentNode.insertBefore(u,o),r=new FormData(r),u.parentNode.removeChild(u),r}function h4(r,o,u,p,y){if(o==="submit"&&u&&u.stateNode===y){var E=KE((y[ti]||null).action),D=p.submitter;D&&(o=(o=D[ti]||null)?KE(o.formAction):D.getAttribute("formAction"),o!==null&&(E=o,D=null));var F=new Zd("action","action",null,p,y);r.push({event:F,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Ra!==0){var $=D?ZE(y,D):new FormData(y);w0(u,{pending:!0,data:$,method:y.method,action:E},null,$)}}else typeof E=="function"&&(F.preventDefault(),$=D?ZE(y,D):new FormData(y),w0(u,{pending:!0,data:$,method:y.method,action:E},E,$))},currentTarget:y}]})}}for(var sv=0;sv<jg.length;sv++){var rv=jg[sv],p4=rv.toLowerCase(),m4=rv[0].toUpperCase()+rv.slice(1);Os(p4,"on"+m4)}Os(CS,"onAnimationEnd"),Os(RS,"onAnimationIteration"),Os(NS,"onAnimationStart"),Os("dblclick","onDoubleClick"),Os("focusin","onFocus"),Os("focusout","onBlur"),Os(DO,"onTransitionRun"),Os(PO,"onTransitionStart"),Os(LO,"onTransitionCancel"),Os(DS,"onTransitionEnd"),rt("onMouseEnter",["mouseout","mouseover"]),rt("onMouseLeave",["mouseout","mouseover"]),rt("onPointerEnter",["pointerout","pointerover"]),rt("onPointerLeave",["pointerout","pointerover"]),Ve("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ve("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ve("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ve("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ve("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ve("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hf="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(" "),g4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hf));function QE(r,o){o=(o&4)!==0;for(var u=0;u<r.length;u++){var p=r[u],y=p.event;p=p.listeners;e:{var E=void 0;if(o)for(var D=p.length-1;0<=D;D--){var F=p[D],$=F.instance,le=F.currentTarget;if(F=F.listener,$!==E&&y.isPropagationStopped())break e;E=F,y.currentTarget=le;try{E(y)}catch(_e){eh(_e)}y.currentTarget=null,E=$}else for(D=0;D<p.length;D++){if(F=p[D],$=F.instance,le=F.currentTarget,F=F.listener,$!==E&&y.isPropagationStopped())break e;E=F,y.currentTarget=le;try{E(y)}catch(_e){eh(_e)}y.currentTarget=null,E=$}}}}function Tt(r,o){var u=o[Lu];u===void 0&&(u=o[Lu]=new Set);var p=r+"__bubble";u.has(p)||(JE(o,r,2,!1),u.add(p))}function av(r,o,u){var p=0;o&&(p|=4),JE(u,r,p,o)}var jh="_reactListening"+Math.random().toString(36).slice(2);function ov(r){if(!r[jh]){r[jh]=!0,je.forEach(function(u){u!=="selectionchange"&&(g4.has(u)||av(u,!1,r),av(u,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[jh]||(o[jh]=!0,av("selectionchange",!1,o))}}function JE(r,o,u,p){switch(CM(o)){case 2:var y=G4;break;case 8:y=W4;break;default:y=Sv}u=y.bind(null,o,u,r),y=void 0,!Ag||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),p?y!==void 0?r.addEventListener(o,u,{capture:!0,passive:y}):r.addEventListener(o,u,!0):y!==void 0?r.addEventListener(o,u,{passive:y}):r.addEventListener(o,u,!1)}function lv(r,o,u,p,y){var E=p;if((o&1)===0&&(o&2)===0&&p!==null)e:for(;;){if(p===null)return;var D=p.tag;if(D===3||D===4){var F=p.stateNode.containerInfo;if(F===y)break;if(D===4)for(D=p.return;D!==null;){var $=D.tag;if(($===3||$===4)&&D.stateNode.containerInfo===y)return;D=D.return}for(;F!==null;){if(D=te(F),D===null)return;if($=D.tag,$===5||$===6||$===26||$===27){p=E=D;continue e}F=F.parentNode}}p=p.return}sS(function(){var le=E,_e=Mg(u),we=[];e:{var ce=PS.get(r);if(ce!==void 0){var he=Zd,$e=r;switch(r){case"keypress":if($d(u)===0)break e;case"keydown":case"keyup":he=cO;break;case"focusin":$e="focus",he=Dg;break;case"focusout":$e="blur",he=Dg;break;case"beforeblur":case"afterblur":he=Dg;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=oS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=ZL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=dO;break;case CS:case RS:case NS:he=eO;break;case DS:he=pO;break;case"scroll":case"scrollend":he=$L;break;case"wheel":he=gO;break;case"copy":case"cut":case"paste":he=nO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=cS;break;case"toggle":case"beforetoggle":he=xO}var ct=(o&4)!==0,Jt=!ct&&(r==="scroll"||r==="scrollend"),ne=ct?ce!==null?ce+"Capture":null:ce;ct=[];for(var Q=le,oe;Q!==null;){var Se=Q;if(oe=Se.stateNode,Se=Se.tag,Se!==5&&Se!==26&&Se!==27||oe===null||ne===null||(Se=Ou(Q,ne),Se!=null&&ct.push(pf(Q,Se,oe))),Jt)break;Q=Q.return}0<ct.length&&(ce=new he(ce,$e,null,u,_e),we.push({event:ce,listeners:ct}))}}if((o&7)===0){e:{if(ce=r==="mouseover"||r==="pointerover",he=r==="mouseout"||r==="pointerout",ce&&u!==Eg&&($e=u.relatedTarget||u.fromElement)&&(te($e)||$e[da]))break e;if((he||ce)&&(ce=_e.window===_e?_e:(ce=_e.ownerDocument)?ce.defaultView||ce.parentWindow:window,he?($e=u.relatedTarget||u.toElement,he=le,$e=$e?te($e):null,$e!==null&&(Jt=a($e),ct=$e.tag,$e!==Jt||ct!==5&&ct!==27&&ct!==6)&&($e=null)):(he=null,$e=le),he!==$e)){if(ct=oS,Se="onMouseLeave",ne="onMouseEnter",Q="mouse",(r==="pointerout"||r==="pointerover")&&(ct=cS,Se="onPointerLeave",ne="onPointerEnter",Q="pointer"),Jt=he==null?ce:de(he),oe=$e==null?ce:de($e),ce=new ct(Se,Q+"leave",he,u,_e),ce.target=Jt,ce.relatedTarget=oe,Se=null,te(_e)===le&&(ct=new ct(ne,Q+"enter",$e,u,_e),ct.target=oe,ct.relatedTarget=Jt,Se=ct),Jt=Se,he&&$e)t:{for(ct=v4,ne=he,Q=$e,oe=0,Se=ne;Se;Se=ct(Se))oe++;Se=0;for(var ot=Q;ot;ot=ct(ot))Se++;for(;0<oe-Se;)ne=ct(ne),oe--;for(;0<Se-oe;)Q=ct(Q),Se--;for(;oe--;){if(ne===Q||Q!==null&&ne===Q.alternate){ct=ne;break t}ne=ct(ne),Q=ct(Q)}ct=null}else ct=null;he!==null&&eM(we,ce,he,ct,!1),$e!==null&&Jt!==null&&eM(we,Jt,$e,ct,!0)}}e:{if(ce=le?de(le):window,he=ce.nodeName&&ce.nodeName.toLowerCase(),he==="select"||he==="input"&&ce.type==="file")var Bt=vS;else if(mS(ce))if(xS)Bt=CO;else{Bt=TO;var et=MO}else he=ce.nodeName,!he||he.toLowerCase()!=="input"||ce.type!=="checkbox"&&ce.type!=="radio"?le&&wg(le.elementType)&&(Bt=vS):Bt=AO;if(Bt&&(Bt=Bt(r,le))){gS(we,Bt,u,_e);break e}et&&et(r,ce,le),r==="focusout"&&le&&ce.type==="number"&&le.memoizedProps.value!=null&&jn(ce,"number",ce.value)}switch(et=le?de(le):window,r){case"focusin":(mS(et)||et.contentEditable==="true")&&(Ll=et,Bg=le,Vu=null);break;case"focusout":Vu=Bg=Ll=null;break;case"mousedown":Fg=!0;break;case"contextmenu":case"mouseup":case"dragend":Fg=!1,TS(we,u,_e);break;case"selectionchange":if(NO)break;case"keydown":case"keyup":TS(we,u,_e)}var vt;if(Lg)e:{switch(r){case"compositionstart":var Rt="onCompositionStart";break e;case"compositionend":Rt="onCompositionEnd";break e;case"compositionupdate":Rt="onCompositionUpdate";break e}Rt=void 0}else Pl?hS(r,u)&&(Rt="onCompositionEnd"):r==="keydown"&&u.keyCode===229&&(Rt="onCompositionStart");Rt&&(uS&&u.locale!=="ko"&&(Pl||Rt!=="onCompositionStart"?Rt==="onCompositionEnd"&&Pl&&(vt=rS()):(ha=_e,Cg="value"in ha?ha.value:ha.textContent,Pl=!0)),et=kh(le,Rt),0<et.length&&(Rt=new lS(Rt,r,null,u,_e),we.push({event:Rt,listeners:et}),vt?Rt.data=vt:(vt=pS(u),vt!==null&&(Rt.data=vt)))),(vt=_O?bO(r,u):SO(r,u))&&(Rt=kh(le,"onBeforeInput"),0<Rt.length&&(et=new lS("onBeforeInput","beforeinput",null,u,_e),we.pu
vendor: 7,278 bytes, lines 8-9
8sh({event:et,listeners:Rt}),et.data=vt)),h4(we,r,le,u,_e)}QE(we,o)})}function pf(r,o,u){return{instance:r,listener:o,currentTarget:u}}function kh(r,o){for(var u=o+"Capture",p=[];r!==null;){var y=r,E=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||E===null||(y=Ou(r,u),y!=null&&p.unshift(pf(r,y,E)),y=Ou(r,o),y!=null&&p.push(pf(r,y,E))),r.tag===3)return p;r=r.return}return[]}function v4(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function eM(r,o,u,p,y){for(var E=o._reactName,D=[];u!==null&&u!==p;){var F=u,$=F.alternate,le=F.stateNode;if(F=F.tag,$!==null&&$===p)break;F!==5&&F!==26&&F!==27||le===null||($=le,y?(le=Ou(u,E),le!=null&&D.unshift(pf(u,le,$))):y||(le=Ou(u,E),le!=null&&D.push(pf(u,le,$)))),u=u.return}D.length!==0&&r.push({event:o,listeners:D})}var x4=/\r\n?/g,y4=/\u0000|\uFFFD/g;function tM(r){return(typeof r=="string"?r:""+r).replace(x4,` 9`).replace(y4,"")}function nM(r,o){return o=tM(o),tM(r)===o}function Qt(r,o,u,p,y,E){switch(u){case"children":typeof p=="string"?o==="body"||o==="textarea"&&p===""||Rl(r,p):(typeof p=="number"||typeof p=="bigint")&&o!=="body"&&Rl(r,""+p);break;case"className":Wt(r,"class",p);break;case"tabIndex":Wt(r,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Wt(r,u,p);break;case"style":nS(r,p,E);break;case"data":if(o!=="object"){Wt(r,"data",p);break}case"src":case"href":if(p===""&&(o!=="a"||u!=="href")){r.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){r.removeAttribute(u);break}p=qd(""+p),r.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){r.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(u==="formAction"?(o!=="input"&&Qt(r,o,"name",y.name,y,null),Qt(r,o,"formEncType",y.formEncType,y,null),Qt(r,o,"formMethod",y.formMethod,y,null),Qt(r,o,"formTarget",y.formTarget,y,null)):(Qt(r,o,"encType",y.encType,y,null),Qt(r,o,"method",y.method,y,null),Qt(r,o,"target",y.target,y,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){r.removeAttribute(u);break}p=qd(""+p),r.setAttribute(u,p);break;case"onClick":p!=null&&(r.onclick=Cr);break;case"onScroll":p!=null&&Tt("scroll",r);break;case"onScrollEnd":p!=null&&Tt("scrollend",r);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(i(61));if(u=p.__html,u!=null){if(y.children!=null)throw Error(i(60));r.innerHTML=u}}break;case"multiple":r.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":r.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){r.removeAttribute("xlink:href");break}u=qd(""+p),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?r.setAttribute(u,""+p):r.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?r.setAttribute(u,""):r.removeAttribute(u);break;case"capture":case"download":p===!0?r.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?r.setAttribute(u,p):r.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?r.setAttribute(u,p):r.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?r.removeAttribute(u):r.setAttribute(u,p);break;case"popover":Tt("beforetoggle",r),Tt("toggle",r),nn(r,"popover",p);break;case"xlinkActuate":Et(r,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Et(r,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Et(r,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Et(r,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Et(r,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Et(r,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Et(r,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Et(r,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Et(r,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":nn(r,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=qL.get(u)||u,nn(r,u,p))}}function cv(r,o,u,p,y,E){switch(u){case"style":nS(r,p,E);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(i(61));if(u=p.__html,u!=null){if(y.children!=null)throw Error(i(60));r.innerHTML=u}}break;case"children":typeof p=="string"?Rl(r,p):(typeof p=="number"||typeof p=="bigint")&&Rl(r,""+p);break;case"onScroll":p!=null&&Tt("scroll",r);break;case"onScrollEnd":p!=null&&Tt("scrollend",r);break;case"onClick":p!=null&&(r.onclick=Cr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ke.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(y=u.endsWith("Capture"),o=u.slice(2,y?u.length-7:void 0),E=r[ti]||null,E=E!=null?E[u]:null,typeof E=="function"&&r.removeEventListener(o,E,y),typeof p=="function")){typeof E!="function"&&E!==null&&(u in r?r[u]=null:r.hasAttribute(u)&&r.removeAttribute(u)),r.addEventListener(o,p,y);break e}u in r?r[u]=p:p===!0?r.setAttribute(u,""):nn(r,u,p)}}}function ai(r,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Tt("error",r),Tt("load",r);var p=!1,y=!1,E;for(E in u)if(u.hasOwnProperty(E)){var D=u[E];if(D!=null)switch(E){case"src":p=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:Qt(r,o,E,D,u,null)}}y&&Qt(r,o,"srcSet",u.srcSet,u,null),p&&Qt(r,o,"src",u.src,u,null);return;case"input":Tt("invalid",r);var F=E=D=y=null,$=null,le=null;for(p in u)if(u.hasOwnProperty(p)){var _e=u[p];if(_e!=null)switch(p){case"name":y=_e;break;case"type":D=_e;break;case"checked":$=_e;break;case"defaultChecked":le=_e;break;case"value":E=_e;break;case"defaultValue":F=_e;break;case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(i(137,o));break;default:Qt(r,o,p,_e,u,null)}}xi(r,E,F,$,le,D,y,!1);return;case"select":Tt("invalid",r),p=D=E=null;
vendor: 4,537 bytes, line 9
9for(y in u)if(u.hasOwnProperty(y)&&(F=u[y],F!=null))switch(y){case"value":E=F;break;case"defaultValue":D=F;break;case"multiple":p=F;default:Qt(r,o,y,F,u,null)}o=E,u=D,r.multiple=!!p,o!=null?En(r,!!p,o,!1):u!=null&&En(r,!!p,u,!0);return;case"textarea":Tt("invalid",r),E=y=p=null;for(D in u)if(u.hasOwnProperty(D)&&(F=u[D],F!=null))switch(D){case"value":p=F;break;case"defaultValue":y=F;break;case"children":E=F;break;case"dangerouslySetInnerHTML":if(F!=null)throw Error(i(91));break;default:Qt(r,o,D,F,u,null)}tr(r,p,y,E);return;case"option":for($ in u)u.hasOwnProperty($)&&(p=u[$],p!=null)&&($==="selected"?r.selected=p&&typeof p!="function"&&typeof p!="symbol":Qt(r,o,$,p,u,null));return;case"dialog":Tt("beforetoggle",r),Tt("toggle",r),Tt("cancel",r),Tt("close",r);break;case"iframe":case"object":Tt("load",r);break;case"video":case"audio":for(p=0;p<hf.length;p++)Tt(hf[p],r);break;case"image":Tt("error",r),Tt("load",r);break;case"details":Tt("toggle",r);break;case"embed":case"source":case"link":Tt("error",r),Tt("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in u)if(u.hasOwnProperty(le)&&(p=u[le],p!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:Qt(r,o,le,p,u,null)}return;default:if(wg(o)){for(_e in u)u.hasOwnProperty(_e)&&(p=u[_e],p!==void 0&&cv(r,o,_e,p,u,void 0));return}}for(F in u)u.hasOwnProperty(F)&&(p=u[F],p!=null&&Qt(r,o,F,p,u,null))}function _4(r,o,u,p){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,E=null,D=null,F=null,$=null,le=null,_e=null;for(he in u){var we=u[he];if(u.hasOwnProperty(he)&&we!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":$=we;default:p.hasOwnProperty(he)||Qt(r,o,he,null,p,we)}}for(var ce in p){var he=p[ce];if(we=u[ce],p.hasOwnProperty(ce)&&(he!=null||we!=null))switch(ce){case"type":E=he;break;case"name":y=he;break;case"checked":le=he;break;case"defaultChecked":_e=he;break;case"value":D=he;break;case"defaultValue":F=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(i(137,o));break;default:he!==we&&Qt(r,o,ce,he,p,we)}}ui(r,D,F,$,le,_e,E,y);return;case"select":he=D=F=ce=null;for(E in u)if($=u[E],u.hasOwnProperty(E)&&$!=null)switch(E){case"value":break;case"multiple":he=$;default:p.hasOwnProperty(E)||Qt(r,o,E,null,p,$)}for(y in p)if(E=p[y],$=u[y],p.hasOwnProperty(y)&&(E!=null||$!=null))switch(y){case"value":ce=E;break;case"defaultValue":F=E;break;case"multiple":D=E;default:E!==$&&Qt(r,o,y,E,p,$)}o=F,u=D,p=he,ce!=null?En(r,!!u,ce,!1):!!p!=!!u&&(o!=null?En(r,!!u,o,!0):En(r,!!u,u?[]:"",!1));return;case"textarea":he=ce=null;for(F in u)if(y=u[F],u.hasOwnProperty(F)&&y!=null&&!p.hasOwnProperty(F))switch(F){case"value":break;case"children":break;default:Qt(r,o,F,null,p,y)}for(D in p)if(y=p[D],E=u[D],p.hasOwnProperty(D)&&(y!=null||E!=null))switch(D){case"value":ce=y;break;case"defaultValue":he=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(i(91));break;default:y!==E&&Qt(r,o,D,y,p,E)}Cl(r,ce,he);return;case"option":for(var $e in u)ce=u[$e],u.hasOwnProperty($e)&&ce!=null&&!p.hasOwnProperty($e)&&($e==="selected"?r.selected=!1:Qt(r,o,$e,null,p,ce));for($ in p)ce=p[$],he=u[$],p.hasOwnProperty($)&&ce!==he&&(ce!=null||he!=null)&&($==="selected"?r.selected=ce&&typeof ce!="function"&&typeof ce!="symbol":Qt(r,o,$,ce,p,he));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ct in u)ce=u[ct],u.hasOwnProperty(ct)&&ce!=null&&!p.hasOwnProperty(ct)&&Qt(r,o,ct,null,p,ce);for(le in p)if(ce=p[le],he=u[le],p.hasOwnProperty(le)&&ce!==he&&(ce!=null||he!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(i(137,o));break;default:Qt(r,o,le,ce,p,he)}return;default:if(wg(o)){for(var Jt in u)ce=u[Jt],u.hasOwnProperty(Jt)&&ce!==void 0&&!p.hasOwnProperty(Jt)&&cv(r,o,Jt,void 0,p,ce);for(_e in p)ce=p[_e],he=u[_e],!p.hasOwnProperty(_e)||ce===he||ce===void 0&&he===void 0||cv(r,o,_e,ce,p,he);return}}for(var ne in u)ce=u[ne],u.hasOwnProperty(ne)&&ce!=null&&!p.hasOwnProperty(ne)&&Qt(r,o,ne,null,p,ce);for(we in p)ce=p[we],he=u[we],!p.hasOwnProperty(we)||ce===he||ce==null&&he==null||Qt(r,o,we,ce,p,he)}function iM(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}
vendor: 8,749 bytes, line 9
9function b4(){if(typeof performance.getEntriesByType=="function"){for(var r=0,o=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var y=u[p],E=y.transferSize,D=y.initiatorType,F=y.duration;if(E&&F&&iM(D)){for(D=0,F=y.responseEnd,p+=1;p<u.length;p++){var $=u[p],le=$.startTime;if(le>F)break;var _e=$.transferSize,we=$.initiatorType;_e&&iM(we)&&($=$.responseEnd,D+=_e*($<F?1:(F-le)/($-le)))}if(--p,o+=8*(E+D)/(y.duration/1e3),r++,10<r)break}}if(0<r)return o/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var uv=null,fv=null;function Vh(r){return r.nodeType===9?r:r.ownerDocument}function sM(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rM(r,o){if(r===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&o==="foreignObject"?0:r}function dv(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var hv=null;function S4(){var r=window.event;return r&&r.type==="popstate"?r===hv?!1:(hv=r,!0):(hv=null,!1)}var aM=typeof setTimeout=="function"?setTimeout:void 0,w4=typeof clearTimeout=="function"?clearTimeout:void 0,oM=typeof Promise=="function"?Promise:void 0,E4=typeof queueMicrotask=="function"?queueMicrotask:typeof oM<"u"?function(r){return oM.resolve(null).then(r).catch(M4)}:aM;function M4(r){setTimeout(function(){throw r})}function Na(r){return r==="head"}function lM(r,o){var u=o,p=0;do{var y=u.nextSibling;if(r.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"||u==="/&"){if(p===0){r.removeChild(y),ac(o);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")mf(r.ownerDocument.documentElement);else if(u==="head"){u=r.ownerDocument.head,mf(u);for(var E=u.firstChild;E;){var D=E.nextSibling,F=E.nodeName;E[bo]||F==="SCRIPT"||F==="STYLE"||F==="LINK"&&E.rel.toLowerCase()==="stylesheet"||u.removeChild(E),E=D}}else u==="body"&&mf(r.ownerDocument.body);u=y}while(u);ac(o)}function cM(r,o){var u=r;r=0;do{var p=u.nextSibling;if(u.nodeType===1?o?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(o?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(r===0)break;r--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||r++;u=p}while(u)}function pv(r){var o=r.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":pv(u),k(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}r.removeChild(u)}}function T4(r,o,u,p){for(;r.nodeType===1;){var y=u;if(r.nodeName.toLowerCase()!==o.toLowerCase()){if(!p&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(p){if(!r[bo])switch(o){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(E=r.getAttribute("rel"),E==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(E!==y.rel||r.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||r.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||r.getAttribute("title")!==(y.title==null?null:y.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(E=r.getAttribute("src"),(E!==(y.src==null?null:y.src)||r.getAttribute("type")!==(y.type==null?null:y.type)||r.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&E&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(o==="input"&&r.type==="hidden"){var E=y.name==null?null:""+y.name;if(y.type==="hidden"&&r.getAttribute("name")===E)return r}else return r;if(r=vs(r.nextSibling),r===null)break}return null}function A4(r,o,u){if(o==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!u||(r=vs(r.nextSibling),r===null))return null;return r}function uM(r,o){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=vs(r.nextSibling),r===null))return null;return r}function mv(r){return r.data==="$?"||r.data==="$~"}function gv(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function C4(r,o){var u=r.ownerDocument;if(r.data==="$~")r._reactRetry=o;else if(r.data!=="$?"||u.readyState!=="loading")o();else{var p=function(){o(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),r._reactRetry=p}}function vs(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return r}var vv=null;function fM(r){r=r.nextSibling;for(var o=0;r;){if(r.nodeType===8){var u=r.data;if(u==="/$"||u==="/&"){if(o===0)return vs(r.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}r=r.nextSibling}return null}function dM(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var u=r.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(o===0)return r;o--}else u!=="/$"&&u!=="/&"||o++}r=r.previousSibling}return null}function hM(r,o,u){switch(o=Vh(u),r){case"html":if(r=o.documentElement,!r)throw Error(i(452));return r;case"head":if(r=o.head,!r)throw Error(i(453));return r;case"body":if(r=o.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function mf(r){for(var o=r.attributes;o.length;)r.removeAttributeNode(o[0]);k(r)}var xs=new Map,pM=new Set;function Hh(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Gr=W.d;W.d={f:R4,r:N4,D:D4,C:P4,L:L4,m:O4,X:I4,S:U4,M:B4};function R4(){var r=Gr.f(),o=Oh();return r||o}function N4(r){var o=ue(r);o!==null&&o.tag===5&&o.type==="form"?Dw(o):Gr.r(r)}var ic=typeof document>"u"?null:document;function mM(r,o,u){var p=ic;if(p&&typeof o=="string"&&o){var y=At(o);y='link[rel="'+r+'"][href="'+y+'"]',typeof u=="string"&&(y+='[crossorigin="'+u+'"]'),pM.has(y)||(pM.add(y),r={rel:r,crossOrigin:u,href:o},p.querySelector(y)===null&&(o=p.createElement("link"),ai(o,"link",r),Te(o),p.head.appendChild(o)))}}function D4(r){Gr.D(r),mM("dns-prefetch",r,null)}function P4(r,o){Gr.C(r,o),mM("preconnect",r,o)}function L4(r,o,u){Gr.L(r,o,u);var p=ic;if(p&&r&&o){var y='link[rel="preload"][as="'+At(o)+'"]';o==="image"&&u&&u.imageSrcSet?(y+='[imagesrcset="'+At(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(y+='[imagesizes="'+At(u.imageSizes)+'"]')):y+='[href="'+At(r)+'"]';var E=y;switch(o){case"style":E=sc(r);break;case"script":E=rc(r)}xs.has(E)||(r=g({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:r,as:o},u),xs.set(E,r),p.querySelector(y)!==null||o==="style"&&p.querySelector(gf(E))||o==="script"&&p.querySelector(vf(E))||(o=p.createElement("link"),ai(o,"link",r),Te(o),p.head.appendChild(o)))}}function O4(r,o){Gr.m(r,o);var u=ic;if(u&&r){var p=o&&typeof o.as=="string"?o.as:"script",y='link[rel="modulepreload"][as="'+At(p)+'"][href="'+At(r)+'"]',E=y;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=rc(r)}if(!xs.has(E)&&(r=g({rel:"modulepreload",href:r},o),xs.set(E,r),u.querySelector(y)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(vf(E)))return}p=u.createElement("link"),ai(p,"link",r),Te(p),u.head.appendChild(p)}}}function U4(r,o,u){Gr.S(r,o,u);var p=ic;if(p&&r){var y=se(p).hoistableStyles,E=sc(r);o=o||"default";var D=y.get(E);if(!D){var F={loading:0,preload:null};if(D=p.querySelector(gf(E)))F.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":o},u),(u=xs.get(E))&&xv(r,u);var $=D=p.createElement("link");Te($),ai($,"link",r),$._p=new Promise(function(le,_e){$.onload=le,$.onerror=_e}),$.addEventListener("load",function(){F.loading|=1}),$.addEventListener("error",function(){F.loading|=2}),F.loading|=4,Gh(D,o,p)}D={type:"stylesheet",instance:D,count:1,state:F},y.set(E,D)}}}function I4(r,o){Gr.X(r,o);var u=ic;if(u&&r){var p=se(u).hoistableScripts,y=rc(r),E=p.get(y);E||(E=u.querySelector(vf(y)),E||(r=g({src:r,async:!0},o),(o=xs.get(y))&&yv(r,o),E=u.createElement("script"),Te(E),ai(E,"link",r),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},p.set(y,E))}}function B4(r,o){Gr.M(r,o);var u=ic;if(u&&r){var p=se(u).hoistableScripts,y=rc(r),E=p.get(y);E||(E=u.querySelector(vf(y)),E||(r=g({src:r,async:!0,type:"module"}
vendor: 4,981 bytes, line 9
9,o),(o=xs.get(y))&&yv(r,o),E=u.createElement("script"),Te(E),ai(E,"link",r),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},p.set(y,E))}}function gM(r,o,u,p){var y=(y=ie.current)?Hh(y):null;if(!y)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=sc(u.href),u=se(y).hoistableStyles,p=u.get(o),p||(p={type:"style",instance:null,count:0,state:null},u.set(o,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){r=sc(u.href);var E=se(y).hoistableStyles,D=E.get(r);if(D||(y=y.ownerDocument||y,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(r,D),(E=y.querySelector(gf(r)))&&!E._p&&(D.instance=E,D.state.loading=5),xs.has(r)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},xs.set(r,u),E||F4(y,r,u,D.state))),o&&p===null)throw Error(i(528,""));return D}if(o&&p!==null)throw Error(i(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=rc(u),u=se(y).hoistableScripts,p=u.get(o),p||(p={type:"script",instance:null,count:0,state:null},u.set(o,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function sc(r){return'href="'+At(r)+'"'}function gf(r){return'link[rel="stylesheet"]['+r+"]"}function vM(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function F4(r,o,u,p){r.querySelector('link[rel="preload"][as="style"]['+o+"]")?p.loading=1:(o=r.createElement("link"),p.preload=o,o.addEventListener("load",function(){return p.loading|=1}),o.addEventListener("error",function(){return p.loading|=2}),ai(o,"link",u),Te(o),r.head.appendChild(o))}function rc(r){return'[src="'+At(r)+'"]'}function vf(r){return"script[async]"+r}function xM(r,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var p=r.querySelector('style[data-href~="'+At(u.href)+'"]');if(p)return o.instance=p,Te(p),p;var y=g({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(r.ownerDocument||r).createElement("style"),Te(p),ai(p,"style",y),Gh(p,u.precedence,r),o.instance=p;case"stylesheet":y=sc(u.href);var E=r.querySelector(gf(y));if(E)return o.state.loading|=4,o.instance=E,Te(E),E;p=vM(u),(y=xs.get(y))&&xv(p,y),E=(r.ownerDocument||r).createElement("link"),Te(E);var D=E;return D._p=new Promise(function(F,$){D.onload=F,D.onerror=$}),ai(E,"link",p),o.state.loading|=4,Gh(E,u.precedence,r),o.instance=E;case"script":return E=rc(u.src),(y=r.querySelector(vf(E)))?(o.instance=y,Te(y),y):(p=u,(y=xs.get(E))&&(p=g({},u),yv(p,y)),r=r.ownerDocument||r,y=r.createElement("script"),Te(y),ai(y,"link",p),r.head.appendChild(y),o.instance=y);case"void":return null;default:throw Error(i(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(p=o.instance,o.state.loading|=4,Gh(p,u.precedence,r));return o.instance}function Gh(r,o,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=p.length?p[p.length-1]:null,E=y,D=0;D<p.length;D++){var F=p[D];if(F.dataset.precedence===o)E=F;else if(E!==y)break}E?E.parentNode.insertBefore(r,E.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(r,o.firstChild))}function xv(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.title==null&&(r.title=o.title)}function yv(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.integrity==null&&(r.integrity=o.integrity)}var Wh=null;function yM(r,o,u){if(Wh===null){var p=new Map,y=Wh=new Map;y.set(u,p)}else y=Wh,p=y.get(u),p||(p=new Map,y.set(u,p));if(p.has(r))return p;for(p.set(r,null),u=u.getElementsByTagName(r),y=0;y<u.length;y++){var E=u[y];if(!(E[bo]||E[Dn]||r==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var D=E.getAttribute(o)||"";D=r+D;var F=p.get(D);F?F.push(E):p.set(D,[E])}}return p}function _M(r,o,u){r=r.ownerDocument||r,r.head.insertBefore(u,o==="title"?r.querySelector("head > title"):null)}function z4(r,o,u){if(u===1||o.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(r=o.disabled,typeof o.precedence=="string"&&r==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function bM(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function j4(r,o,u,p){if(u.type==="stylesheet"&&(typeof p.media!="str
9ing"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var y=sc(p.href),E=o.querySelector(gf(y));if(E){o=E._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(r.count++,r=Xh.bind(r),o.then(r,r)),u.state.loading|=4,u.instance=E,Te(E);return}E=o.ownerDocument||o,p=vM(p),(y=xs.get(y))&&xv(p,y),E=E.createElement("link"),Te(E);var D=E;D._p=new Promise(function(F,$){D.onload=F,D.onerror=$}),ai(E,"link",p),u.instance=E}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(r.count++,u=Xh.bind(r),o.addEventListener("load",u),o.addEventListener("error",u))}}var _v=0;function k4(r,o){return r.stylesheets&&r.count===0&&Yh(r,r.stylesheets),0<r.count||0<r.imgCount?function(u){var p=setTimeout(function(){if(r.stylesheets&&Yh(r,r.stylesheets),r.unsuspend){var E=r.unsuspend;r.unsuspend=null,E()}},6e4+o);0<r.imgBytes&&_v===0&&(_v=62500*b4());var y=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Yh(r,r.stylesheets),r.unsuspend)){var E=r.unsuspend;r.unsuspend=null,E()}},(r.imgBytes>_v?50:800)+o);return r.unsuspend=u,function(){r.unsuspend=null,clearTimeout(p),clearTimeout(y)}}:null}function Xh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yh(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var qh=null;function Yh(r,o){r.stylesheets=null,r.unsuspend!==null&&(r.count++,qh=new Map,o.forEach(V4,r),qh=null,Xh.call(r))}function V4(r,o){if(!(o.state.loading&4)){var u=qh.get(r);if(u)var p=u.get(null);else{u=new Map,qh.set(r,u);for(var y=r.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<y.length;E++){var D=y[E];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(u.set(D.dataset.precedence,D),p=D)}p&&u.set(null,p)}y=o.instance,D=y.getAttribute("data-precedence"),E=u.get(D)||p,E===p&&u.set(null,y),u.set(D,y),this.count++,p=Xh.bind(this),y.addEventListener("load",p),y.addEventListener("error",p),E?E.parentNode.insertBefore(y,E.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(y,r.firstChild)),o.state.loading|=4}}var xf={$$typeof:M,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function H4(r,o,u,p,y,E,D,F,$){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ot(0),this.hiddenUpdates=Ot(null),this.identifierPrefix=p,this.onUncaughtError=y,this.onCaughtError=E,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=$,this.incompleteTransitions=new Map}function SM(r,o,u,p,y,E,D,F,$,le,_e,we){return r=new H4(r,o,u,D,$,le,_e,we,F),o=1,E===!0&&(o|=24),E=Hi(3,null,null,o),r.current=E,E.stateNode=r,o=Jg(),o.refCount++,r.pooledCache=o,o.refCount++,E.memoizedState={element:p,isDehydrated:u,cac
vendor: 5,731 bytes, line 9
9he:o},i0(E),r}function wM(r){return r?(r=Il,r):Il}function EM(r,o,u,p,y,E){y=wM(y),p.context===null?p.context=y:p.pendingContext=y,p=ya(o),p.payload={element:u},E=E===void 0?null:E,E!==null&&(p.callback=E),u=_a(r,p,o),u!==null&&(Ri(u,r,o),$u(u,r,o))}function MM(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<o?u:o}}function bv(r,o){MM(r,o),(r=r.alternate)&&MM(r,o)}function TM(r){if(r.tag===13||r.tag===31){var o=To(r,67108864);o!==null&&Ri(o,r,67108864),bv(r,67108864)}}function AM(r){if(r.tag===13||r.tag===31){var o=Yi();o=Tl(o);var u=To(r,o);u!==null&&Ri(u,r,o),bv(r,o)}}var $h=!0;function G4(r,o,u,p){var y=B.T;B.T=null;var E=W.p;try{W.p=2,Sv(r,o,u,p)}finally{W.p=E,B.T=y}}function W4(r,o,u,p){var y=B.T;B.T=null;var E=W.p;try{W.p=8,Sv(r,o,u,p)}finally{W.p=E,B.T=y}}function Sv(r,o,u,p){if($h){var y=wv(p);if(y===null)lv(r,o,p,Kh,u),RM(r,p);else if(q4(y,r,o,u,p))p.stopPropagation();else if(RM(r,p),o&4&&-1<X4.indexOf(r)){for(;y!==null;){var E=ue(y);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var D=Re(E.pendingLanes);if(D!==0){var F=E;for(F.pendingLanes|=2,F.entangledLanes|=2;D;){var $=1<<31-Ge(D);F.entanglements[1]|=$,D&=~$}rr(E),(Vt&6)===0&&(Ph=I()+500,df(0))}}break;case 31:case 13:F=To(E,2),F!==null&&Ri(F,E,2),Oh(),bv(E,2)}if(E=wv(p),E===null&&lv(r,o,p,Kh,u),E===y)break;y=E}y!==null&&p.stopPropagation()}else lv(r,o,p,null,u)}}function wv(r){return r=Mg(r),Ev(r)}var Kh=null;function Ev(r){if(Kh=null,r=te(r),r!==null){var o=a(r);if(o===null)r=null;else{var u=o.tag;if(u===13){if(r=l(o),r!==null)return r;r=null}else if(u===31){if(r=c(o),r!==null)return r;r=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null)}}return Kh=r,null}function CM(r){switch(r){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(re()){case be:return 2;case Ce:return 8;case ye:case it:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var Mv=!1,Da=null,Pa=null,La=null,yf=new Map,_f=new Map,Oa=[],X4="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".split(" ");function RM(r,o){switch(r){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":La=null;break;case"pointerover":case"pointerout":yf.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":_f.delete(o.pointerId)}}function bf(r,o,u,p,y,E){return r===null||r.nativeEvent!==E?(r={blockedOn:o,domEventName:u,eventSystemFlags:p,nativeEvent:E,targetContainers:[y]},o!==null&&(o=ue(o),o!==null&&TM(o)),r):(r.eventSystemFlags|=p,o=r.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),r)}function q4(r,o,u,p,y){switch(o){case"focusin":return Da=bf(Da,r,o,u,p,y),!0;case"dragenter":return Pa=bf(Pa,r,o,u,p,y),!0;case"mouseover":return La=bf(La,r,o,u,p,y),!0;case"pointerover":var E=y.pointerId;return yf.set(E,bf(yf.get(E)||null,r,o,u,p,y)),!0;case"gotpointercapture":return E=y.pointerId,_f.set(E,bf(_f.get(E)||null,r,o,u,p,y)),!0}return!1}function NM(r){var o=te(r.target);if(o!==null){var u=a(o);if(u!==null){if(o=u.tag,o===13){if(o=l(u),o!==null){r.blockedOn=o,Pu(r.priority,function(){AM(u)});return}}else if(o===31){if(o=c(u),o!==null){r.blockedOn=o,Pu(r.priority,function(){AM(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Zh(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var u=wv(r.nativeEvent);if(u===null){u=r.nativeEvent;var p=new u.constructor(u.type,u);Eg=p,u.target.dispatchEvent(p),Eg=null}else return o=ue(u),o!==null&&TM(o),r.blockedOn=u,!1;o.shift()}return!0}function DM(r,o,u){Zh(r)&&u.delete(o)}function Y4(){Mv=!1,Da!==null&&Zh(Da)&&(Da=null),Pa!==null&&Zh(Pa)&&(Pa=null),La!==null&&Zh(La)&&(La=null),yf.forEach(DM),_f.forEach(DM)}function Qh(r,o){r.blockedOn===o&&(r.blockedOn=null,Mv||(Mv=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Y4)))}var Jh=null;function PM(r){Jh!==r&&(Jh=r,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Jh===r&&(Jh=null);for(var o=0;o<r.length;o+=3){var u=r[o],p=r[o+1],y=r[o+2];if(typeof p!="function"){if(Ev(p||u)===null)continue;break}var E=ue(u);E!==null&&(r.splice(o,3),o-=3,w0(E,{pending:!0,data:y,method:u.method,action:p},p,y))}}))}function ac(r){function o($){return Qh($,r)}
vendor: 6,163 bytes, line 9
9Da!==null&&Qh(Da,r),Pa!==null&&Qh(Pa,r),La!==null&&Qh(La,r),yf.forEach(o),_f.forEach(o);for(var u=0;u<Oa.length;u++){var p=Oa[u];p.blockedOn===r&&(p.blockedOn=null)}for(;0<Oa.length&&(u=Oa[0],u.blockedOn===null);)NM(u),u.blockedOn===null&&Oa.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var y=u[p],E=u[p+1],D=y[ti]||null;if(typeof E=="function")D||PM(u);else if(D){var F=null;if(E&&E.hasAttribute("formAction")){if(y=E,D=E[ti]||null)F=D.formAction;else if(Ev(y)!==null)continue}else F=D.action;typeof F=="function"?u[p+1]=F:(u.splice(p,3),p-=3),PM(u)}}}function LM(){function r(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(D){return y=D})},focusReset:"manual",scroll:"manual"})}function o(){y!==null&&(y(),y=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,y=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),y!==null&&(y(),y=null)}}}function Tv(r){this._internalRoot=r}ep.prototype.render=Tv.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(i(409));var u=o.current,p=Yi();EM(u,p,r,o,null,null)},ep.prototype.unmount=Tv.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;EM(r.current,2,null,r,null,null),Oh(),o[da]=null}};function ep(r){this._internalRoot=r}ep.prototype.unstable_scheduleHydration=function(r){if(r){var o=_o();r={blockedOn:null,target:r,priority:o};for(var u=0;u<Oa.length&&o!==0&&o<Oa[u].priority;u++);Oa.splice(u,0,r),u===0&&NM(r)}};var OM=e.version;if(OM!=="19.2.0")throw Error(i(527,OM,"19.2.0"));W.findDOMNode=function(r){var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=d(o),r=r!==null?h(r):null,r=r===null?null:r.stateNode,r};var $4={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tp.isDisabled&&tp.supportsFiber)try{Ne=tp.inject($4),Ue=tp}catch{}}return wf.createRoot=function(r,o){if(!s(r))throw Error(i(299));var u=!1,p="",y=kw,E=Vw,D=Hw;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(E=o.onCaughtError),o.onRecoverableError!==void 0&&(D=o.onRecoverableError)),o=SM(r,1,!1,null,null,u,p,null,y,E,D,LM),r[da]=o.current,ov(r),new Tv(o)},wf.hydrateRoot=function(r,o,u){if(!s(r))throw Error(i(299));var p=!1,y="",E=kw,D=Vw,F=Hw,$=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(D=u.onCaughtError),u.onRecoverableError!==void 0&&(F=u.onRecoverableError),u.formState!==void 0&&($=u.formState)),o=SM(r,1,!0,o,u??null,p,y,$,E,D,F,LM),o.context=wM(null),u=o.current,p=Yi(),p=Tl(p),y=ya(p),y.callback=null,_a(u,y,p),u=p,o.current.lanes=u,vi(o,u),rr(o),r[da]=o.current,ov(r),new ep(o)},wf.version="19.2.0",wf}var GM;function rU(){if(GM)return Rv.exports;GM=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),Rv.exports=sU(),Rv.exports}var aU=rU();const ay=()=>m.jsxs("button",{className:"group relative flex h-9 w-auto min-w-[110px] items-center justify-between border-2 border-[#394481] dark:border-[#656fe2] !rounded-xl bg-gradient-to-r from-[#f7f8ff] to-[#ffffff] dark:from-[#070e41] dark:to-[#263381] font-medium text-black dark:text-neutral-200 px-3.5 transition-all duration-200 hover:shadow-lg hover:scale-105",style:{fontSize:"13px"},children:[m.jsx("span",{className:"pr-2",children:"Contacte-nos"}),m.jsx("div",{className:"relative h-6 w-6 overflow-hidden bg-black dark:bg-white rounded-full -mr-1.5",children:m.jsxs("div",{className:"absolute top-[0.60em] left-[0em] grid place-content-center transition-all w-full h-full duration-200 group-hover:-translate-y-[0.9rem] group-hover:translate-x-[0.8rem]",children:[m.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,fill:"currentColor",className:"w-3.5 h-3.5 text-white dark:text-black",children:m.jsx("path",{d:"M3.64645 11.3536C3.45118 11.1583 3.45118 10.8417 3.64645 10.6465L10.2929 4L6 4C5.72386 4 5.5 3.77614 5.5 3.5C5.5 3.22386 5.72386 3 6 3L11.5 3C11.6326 3 11.7598 3.05268 11.8536 3.14645C11.9473 3.24022 12 3.36739 12 3.5L12 9.00001C12 9.27615 11.7761 9.50001 11.5 9.50001C11.2239 9.50001 11 9.27615 11 9.00001V4.70711L4.35355 11.3536C4.15829 11.5488 3.84171 11.5488 3.64645 11.3536Z",fillRule:"evenodd",clipRule:"evenodd"})}),m.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,fill:"currentColor",className:"mb-0.5 -translate-x-3 w-3.5 h-3.5 text-white dark:text-black",children:m.jsx("path",{d:"M3.64645 11.3536C3.45118 11.1583 3.45118 10.8417 3.64645 10.6465L10.2929 4L6 4C5.72386 4 5.5 3.77614 5.5 3.5C5.5 3.22386 5.72386 3 6 3L11.5 3C11.6326 3 11.7598 3.05268 11.8536 3.14645C11.9473 3.24022 12 3.36739 12 3.5L12 9.00001C12 9.27615 11.7761 9.50001 11.5 9.50001C11.2239 9.50001 11 9.27615 11 9.00001V4.70711L4.35355 11.3536C4.15829 11.5488 3.84171 11.5488 3.64645 11.3536Z",fillRule:"evenodd",clipRule:"evenodd"})})]})})]}),oU=()=>{const[n,e]=A.useState(!1),[t,i]=A.useState(!1),[s,a]=A.useState(!1);return A.useEffect(()=>{const l=()=>{e(window.scrollY>10)};return window.addEventListener("scroll",l,{passive:!0}
9),l(),()=>window.removeEventListener("scroll",l)},[]),A.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[t]),m.jsxs(m.Fragment,{children:[m.jsx("style",{children:` 10 .hamburger-line { 11 transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 12 transform-origin: center; 13 } 14 15 .hamburger-open .line1 { 16 transform: rotate(45deg) translateY(8px); 17 } 18 19 .hamburger-open .line2 { 20 opacity: 0; 21 transform: scaleX(0); 22 } 23 24 .hamburger-open .line3 { 25 transform: rotate(-45deg) translateY(-8px); 26 } 27 28 @keyframes slideInFromTop { 29 from { 30 transform: translateY(-100%); 31 } 32 to { 33 transform: translateY(0); 34 } 35 } 36 37 @keyframes fadeInBackdrop { 38 from { 39 opacity: 0; 40 } 41 to { 42 opacity: 1; 43 } 44 } 45 46 @keyframes fadeInScale { 47 from { 48 opacity: 0; 49 transform: scale(0.98) translateY(10px); 50 } 51 to { 52 opacity: 1; 53 transform: scale(1) translateY(0); 54 } 55 } 56 57 @keyframes fadeInStagger { 58 from { 59 opacity: 0; 60 transform: translateY(5px); 61 } 62 to { 63 opacity: 1; 64 transform: translateY(0); 65 } 66 } 67 68 .mobile-menu-panel { 69 animation: slideInFromTop 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards; 70 } 71 72 .mobile-menu-backdrop { 73 animation: fadeInBackdrop 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards; 74 } 75 76 .menu-item-enter { 77 animation: fadeInScale 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards; 78 opacity: 0; 79 } 80 81 .menu-item-enter > a:nth-child(1), 82 .menu-item-enter > div:nth-child(2), 83 .menu-item-enter > a:nth-child(3), 84 .menu-item-enter > div:nth-child(4) { 85 animation: fadeInStagger 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards; 86 opacity: 0; 87 } 88 89 .menu-item-enter > a:nth-child(1) { 90 animation-delay: 0.3s; 91 } 92 93 .menu-item-enter > div:nth-child(2) { 94 animation-delay: 0.4s; 95 } 96 97 .menu-item-enter > a:nth-child(3) { 98 animation-delay: 0.5s; 99 } 100 101 .menu-item-enter > div:nth-child(4) { 102 animation-delay: 0.6s; 103 } 104 105 .close-button-enter { 106 animation: fadeInScale 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards; 107 opacity: 0; 108 } 109 `}),m.jsx("div",{className:"w-full flex justify-center",children:m.jsxs("div",{className:"header-container fixed z-50 flex items-center justify-between transition-all duration-500",style:{opacity:1,marginTop:n?10:40,marginBottom:10,width:n?"min(60vw, 900px)":"90vw",maxWidth:n?900:"100vw",minWidth:320,padding:"0px 1.5vw",backdropFilter:n?"blur(24px)":"none",backgroundColor:n?"rgba(0,0,0,0.5)":"transparent",borderRadius:40,boxShadow:n?"rgba(255,255,255,0.2) 0px 1px 0px 0px inset, rgba(0,0,0,0.16) 0px 2px 8px 0px":"none",transform:"none",transformOrigin:"50% 0% 0px",height:"3.6rem",minHeight:44,display:"flex",alignItems:"center"},children:[m.jsx("div",{className:"flex items-center min-w-0",children:m.jsx("a",{href:"/",className:"logo flex items-center gap-2 min-w-0",children:m.jsx("img",{src:"/logo.png",alt:"streamline logo",className:"",style:{height:32,width:"auto",maxWidth:140,minWidth:40,objectFit:"contain"}})})}),m.jsxs("ul",{className:"hidden md:flex gap-4 lg:gap-8 items-center m-0 p-0 list-none text-base lg:text-lg",style:{flex:2,justifyContent:"center"},children:[m.jsx("li",{children:m.jsx("a",{href:"/sobre",children:m.jsx("h5",{className:"text-white text-sm m-0 font-light [letter-spacing:0.5px] hover:text-purple-400 transition-colors",children:"Sobre nós"})})}),m.jsx("li",{className:"relative group",children:m.jsxs("div",{className:"relative",onMouseEnter:l=>{const c=l.currentTarget.querySelector("ul");c&&(c.style.opacity="1"),c&&(c.style.pointerEvents="auto")},onMouseLeave:l=>{const c=l.currentTarget.querySelector("ul");c&&(c.style.opacity="0"),c&&(c.style.pointerEvents="none")},children:[m.jsxs("button",{className:"bg-transparent border-none p-0 m-0 cursor-pointer flex items-center hover:text-purple-400 transition-colors",style:{outline:"none"},tabIndex:0,children:[m.jsx("h5",{className:"text-white text-sm m-0 font-light [letter-spacing:0.5px]",children:"Ãreas"}),m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 20 20",fill:"none",style:{marginLeft:4},children:m.jsx("path",{d:"M6 8L10 12L14 8",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}
109),m.jsxs("ul",{style:{transition:"opacity 0.2s",opacity:0,pointerEvents:"none"},className:"absolute left-0 top-full mt-2 min-w-[200px] bg-black bg-opacity-90 backdrop-blur-lg rounded-lg shadow-lg py-2 z-50",children:[m.jsx("li",{children:m.jsx("a",{href:"/areas/software",className:"block px-4 py-2 text-white text-sm hover:bg-purple-700 rounded transition-colors",children:"Desenvolvimento de software à medida"})}),m.jsx("li",{children:m.jsx("a",{href:"/areas/sites",className:"block px-4 py-2 text-white text-sm hover:bg-purple-700 rounded transition-colors",children:"Sites"})}),m.jsx("li",{children:m.jsx("a",{href:"/areas/formacao",className:"block px-4 py-2 text-white text-sm hover:bg-purple-700 rounded transition-colors",children:"Formação"})}),m.jsx("li",{children:m.jsx("a",{href:"/areas/administracao",className:"block px-4 py-2 text-white text-sm hover:bg-purple-700 rounded transition-colors",children:"Administração de Sistemas"})}),m.jsx("li",{children:m.jsx("a",{href:"/areas/redes",className:"block px-4 py-2 text-white text-sm hover:bg-purple-700 rounded transition-colors",children:"Redes"})})]})]})}),m.jsx("li",{children:m.jsx("a",{href:"/projetos",children:m.jsx("h5",{className:"text-white text-sm m-0 font-light [letter-spacing:0.5px] hover:text-purple-400 transition-colors",children:"Projetos"})})})]}),m.jsx("div",{className:"hidden md:flex items-center",style:{flex:1,justifyContent:"flex-end"},children:m.jsx("a",{href:"/contacto",children:m.jsx(ay,{})})}),m.jsxs("button",{className:`md:hidden flex flex-col justify-center items-center gap-1.5 p-2 bg-transparent border-none cursor-pointer z-[60] relative ${t?"hamburger-open":""}`,onClick:()=>i(!t),"aria-label":"Toggle menu","aria-expanded":t,children:[m.jsx("span",{className:"hamburger-line line1 w-6 h-0.5 bg-white rounded-full block"}),m.jsx("span",{className:"hamburger-line line2 w-6 h-0.5 bg-white rounded-full block"}),m.jsx("span",{className:"hamburger-line line3 w-6 h-0.5 bg-white rounded-full block"})]})]})}),t&&m.jsxs("div",{className:" fixed inset-0 w-full h-full bg-black z-[55] md:hidden overflow-hidden",children:[m.jsx("div",{className:"mobile-menu-backdrop absolute inset-0 bg-gradient-to-br from-purple-950/30 via-purple-900/20 to-transparent"}),m.jsx("button",{"aria-label":"Fechar menu",onClick:()=>i(!1),className:"close-button-enter absolute top-6 right-6 z-[56] p-3 rounded-full bg-white/10 hover:bg-white/20 backdrop-blur-sm border border-white/20 text-white transition-all duration-300 hover:scale-110 hover:rotate-90",children:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:m.jsx("path",{d:"M6 6L18 18M6 18L18 6"})})}),m.jsx("div",{className:"relative flex flex-col items-center justify-center h-full",children:m.jsxs("nav",{className:"flex flex-col items-center gap-8 menu-item-enter",children:[m.jsx("a",{href:"/sobre",className:"text-white text-3xl sm:text-4xl font-light hover:text-purple-400 transition-all duration-300 hover:scale-110",onClick:()=>i(!1),children:"Sobre nós"}),m.jsxs("div",{className:"w-full text-center",children:[m.jsxs("button",{className:"text-white text-3xl sm:text-4xl font-light hover:text-purple-400 transition-all duration-300 flex items-center justify-center gap-3 hover:scale-110 mx-auto",onClick:()=>a(!s),children:[m.jsx("span",{className:"text-3xl sm:text-4xl",children:"Ãreas"}),m.jsx("svg",{width:"24",height:"24",viewBox:"0 0 20 20",fill:"none",className:`transition-transform duration-300 ${s?"rotate-180":""}`,children:m.jsx("path",{d:"M6 8L10 12L14 8",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),s&&m.jsxs("div",{className:"mt-6 flex flex-col items-center gap-4 animate-in fade-in duration-300",children:[m.jsx("a",{href:"/areas/software",className:"text-white text-base sm:text-lg font-light hover:text-purple-400 transition-all duration-300 hover:scale-105",onClick:()=>i(!1),children:"Desenvolvimento de software à medida"}),m.jsx("a",{href:"/areas/sites",className:"text-white text-base sm:text-lg font-light hover:text-purple-400 transition-all duration-300 hover:scale-105",onClick:()=>i(!1),children:"Sites"}),m.jsx("a",{href:"/areas/formacao",className:"text-white text-base sm:text-lg font-light hover:text-purple-400 transition-all duration-300 hover:scale-105",onClick:()=>i(!1),children:"Formação"}),m.jsx("a",{href:"/areas/administracao",className:"text-white text-base sm:text-lg font-light hover:text-purple-400 transition-all duration-300 hover:scale-105",onClick:()=>i(!1),children:"Administração de Sistemas"}),m.jsx("a",{href:"/areas/redes",className:"text-white text-base sm:text-lg font-light hover:text-purple-400 transition-all duration-300 hover:scale-105",onClick:()=>i(!1),children:"Redes"})]})]}),m.jsx("a",{href:"/projetos",className:"text-white text-3xl sm:text-4xl font-light hover:text-purple-400 transition-all duration-300 hover:scale-110",onClick:()=>i(!1),children:"Projetos"}),m.jsx("div",{className:"mt-12 scale-125",children:m.jsx("a",{href:"/contacto",onClick:()=>i(!1),children:m.jsx(ay,{})})})]})})]})]})};const lU=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cU=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase()),WM=n=>{const e=cU(n);return e.charAt(0).toUpperCase()+e.slice(1)},GC=(...n)=>n.filter((e,t,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===t).join(" ").trim(),uU=n=>{for(const e in n)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};var fU={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"};const dU=A.forwardRef(({color:n="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:i,className:s="",children:a,iconNode:l,...c},f)=>A.createElement("svg",{ref:f,...fU,width:e,height:e,stroke:n,strokeWidth:i?Number(t)*24/Number(e):t,className:GC("lucide",s),...!a&&!uU(c)&&{"aria-hidden":"true"},...c},[...l.map(([d,h])=>A.createElement(d,h)),...Array.isArray(a)?a:[a]]));const mt=(n,e)=>{const t=A.forwardRef(({className:i,...s},a)=>A.createElement(dU,{ref:a,iconNode:e,className:GC(`lucide-${lU(WM(n))}`,`lucide-${n}`,i),...s}));return t.displayName=WM(n),t};const hU=[["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
109-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],WC=mt("activity",hU);const pU=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],mU=mt("app-window",pU);const gU=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],vU=mt("award",gU);const xU=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],yU=mt("book-open",xU);const _U=[["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"}]],bU=mt("calendar",_U);const SU=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],wU=mt("check",SU);const EU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],XC=mt("chevron-down",EU);const MU=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Wm=mt("chevron-left",MU);const TU=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Xm=mt("chevron-right",TU);const AU=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],CU=mt("chevron-up",AU);const RU=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],NU=mt("chevrons-right",RU);const DU=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],XM=mt("cloud",DU);const PU=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],LU=mt("database",PU);const OU=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],UU=mt("facebook",OU);const IU=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],BU=mt("fingerprint",IU);const FU=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],zU=mt("gauge",FU);const jU=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],kU=mt("graduation-cap",jU);const VU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],HU=mt("globe",VU);const GU=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],WU=mt("handshake",GU);const XU=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],qU=mt("hard-drive",XU);const YU=[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]],qm=mt("heart-handshake",YU);const $U=[["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"}]],KU=mt("lightbulb",$U);const ZU=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],QU=mt("link",ZU);const JU=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],e5=mt("linkedin",JU);const t5=[["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"}]],n5=mt("lock",t5);const i5=[["path",{d:"M13 5H19V11",key:"1n1gyv"}],["path",{d:"M19 5L5 19",key:"72u4yj"}]],s5=mt("move-up-right",i5);const r5=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],qC=mt("network",r5);const a5=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["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:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],o5=mt("palette",a5);const l5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],c5=mt("panels-top-left",l5);const u5=[["path",{d:"M12 22v-5",key:"1ega77"}
109],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],f5=mt("plug",u5);const d5=[["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"}]],YC=mt("rocket",d5);const h5=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],cm=mt("server",h5);const p5=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],m5=mt("settings-2",p5);const g5=[["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",key:"oel41y"}]],um=mt("shield",g5);const v5=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
109],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],$C=mt("sparkles",v5);const x5=[["rect",{width:"10",height:"14",x:"3",y:"8",rx:"2",key:"1vrsiq"}],["path",{d:"M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4",key:"1j4zmg"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],y5=mt("tablet-smartphone",x5);const _5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],b5=mt("target",_5);const S5=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],w5=mt("trophy",S5);const E5=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],fm=mt("users",E5);const M5=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],T5=mt("video",M5);const A5=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],C5=mt("wifi",A5);const R5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],N5=mt("x",R5);const D5=[["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"}]],KC=mt("zap",D5);function P5(){return m.jsx("footer",{className:"w-full text-white rounded-t-4xl",children:m.jsxs("div",{className:"mx-auto max-w-[80%] px-6 md:px-12 py-16",children:[m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12 md:gap-16 items-end",children:[m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"h-14 flex items-center",children:m.jsx("img",{src:"/sl_white.png",alt:"streamline logo",className:"h-8 object-contain"})}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("a",{href:"https://www.facebook.com/streamline.pt/",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"h-10 w-10 rounded-full hover:scale-110 hover:shadow-lg transition-all duration-300 inline-flex items-center justify-center shadow-sm",children:m.jsx(UU,{fill:"white",strokeWidth:0,className:"h-5 w-5 transition-transform"})}),m.jsx("a",{href:"https://www.linkedin.com/company/streamline_3/?originalSubdomain=pt",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",className:"h-10 w-10 rounded-full hover:scale-110 hover:shadow-lg transition-all duration-300 inline-flex items-center justify-center shadow-sm",children:m.jsx(e5,{fill:"white",strokeWidth:0,className:"h-5 w-5 transition-transform"})})]}),m.jsxs("div",{className:"text-white/80 space-y-1 text-sm",children:[m.jsx("p",{className:"font-light",children:"Rua Vicente Pindela, N 36"}),m.jsx("p",{className:"font-light",children:"1º Esq, 3030-030 Coimbra"}),m.jsx("p",{className:"pt-3 font-light",children:"NIF 508 876 745"})]}),m.jsx("div",{children:m.jsx("a",{href:"/iefp-estagios.pdf",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center rounded-full border-2 border-white/80 px-5 py-2.5 text-xs font-semibold hover:bg-white/20 hover:border-white hover:scale-105 transition-all duration-300",children:"APOIO DO IEFP - ESTÃGIOS PROFISSIONAIS"})})]}),m.jsxs("div",{className:"flex flex-col justify-end items-center md:items-center gap-6",children:[m.jsx("a",{href:"https://www.livroreclamacoes.pt/Inicio/",target:"_blank",rel:"noopener noreferrer",className:"hover:scale-105 transition w-40 duration-300",children:m.jsx("img",{src:"/l
109ivro.png",alt:"Livro de Reclamações",className:"h-12 object-contain"})}),m.jsx("div",{children:m.jsx("img",{src:"/pessoas2030.png",alt:"Pessoas 2030",className:"h-12 object-contain"})})]}),m.jsxs("div",{className:"space-y-8",children:[m.jsxs("div",{children:[m.jsx("h4",{className:"text-base font-semibold [letter-spacing:-0.02em]",children:"Comunicação de pedidos de suporte em contrato"}),m.jsx("a",{href:"mailto:[email protected]",className:"text-sm font-light text-white/90 hover:text-white transition-colors",children:"[email protected]"})]}),m.jsxs("div",{children:[m.jsx("h4",{className:"text-base font-semibold [letter-spacing:-0.02em]",children:"Informação institucional"}),m.jsx("a",{href:"mailto:[email protected]",className:"text-sm font-light text-white/90 hover:text-white transition-colors",children:"[email protected]"})]})]})]}),m.jsx("div",{className:"mt-12 pt-8 border-t border-white/20",children:m.jsx("div",{className:"text-sm text-white/80 text-center font-light",children:"© 2025 Streamline. Todos os Direitos Reservados"})})]})})}function ZC(n){return m.jsxs("button",{...n,type:n.type??"button",className:"group relative cursor-pointer p-2 border-2 border-violet-600/70 bg-purple-800/30 !rounded-2xl overflow-hidden text-black text-center font-semibold "+(n.className??""),"aria-label":n["aria-label"]??"Contacte-nos",children:[m.jsx("span",{className:"translate-y-0 text-purple-200 group-hover:-translate-y-12 group-hover:opacity-0 transition-all duration-300 inline-block",children:"Contacte-nos"}),m.jsx("div",{className:"flex gap-2 text-white bg-gradient-to-r from-violet-600 via-purple-600 to-cyan-500 z-10 items-center absolute left-0 top-0 h-full w-full justify-center translate-y-12 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-300 rounded-2xl group-hover:rounded-none shadow-lg",children:m.jsx("span",{children:"Contacte-nos"})})]})}const Ym="180",L5=0,qM=1,O5=2,QC=1,U5=2,Zr=3,sa=0,Qn=1,es=2,gr=0,zc=1,YM=2,$M=3,KM=4,I5=5,Jo=100,B5=101,F5=102,z5=103,j5=104,k5=200,V5=201,H5=202,G5=203,oy=204,ly=205,W5=206,X5=207,q5=208,Y5=209,$5=210,K5=211,Z5=212,Q5=213,J5=214,cy=0,uy=1,fy=2,Yc=3,dy=4,hy=5,py=6,my=7,JC=0,eI=1,tI=2,Za=0,nI=1,iI=2,sI=3,rI=4,aI=5,oI=6,lI=7,eR=300,$c=301,Kc=302,gy=303,vy=304,$m=306,xy=1e3,tl=1001,yy=1002,Xs=1003,cI=1004,np=1005,mi=1006,Lv=1007,nl=1008,as=1009,tR=1010,nR=1011,fd=1012,db=1013,so=1014,ta=1015,Nd=1016,hb=1017,pb=1018,Zc=1020,iR=35902,sR=35899,rR=1021,aR=1022,Hs=1023,dd=1026,Qc=1027,oR=1028,mb=1029,lR=1030,gb=1031,vb=1033,Hp=33776,Gp=33777,Wp=33778,Xp=33779,_y=35840,by=35841,Sy=35842,wy=35843,Ey=36196,My=37492,Ty=37496,Ay=37808,Cy=37809,Ry=37810,Ny=37811,Dy=37812,Py=37813,Ly=37814,Oy=37815,Uy=37816,Iy=37817,By=37818,Fy=37819,zy=37820,jy=37821,ky=36492,Vy=36494,Hy=36495,Gy=36283,Wy=36284,Xy=36285,qy=36286,Dd=3200,uI=3201,fI=0,dI=1,cr="",Rn="srgb",ro="srgb-linear",dm="linear",en="srgb",oc=7680,ZM=519,hI=512,pI=513,mI=514,cR=515,gI=516,vI=517,xI=518,yI=519,QM=35044,Yy="300 es",dr=2e3,hm=2001;class fo{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(t)===-1&&i[e].push(t)}hasEventListener(e,t){const i=this._listeners;return i===void 0?!1:i[e]!==void 0&&i[e].indexOf(t)!==-1}removeEventListener(e,t){const i=this._listeners;if(i===void 0)return;const s=i[e];if(s!==void 0){const a=s.indexOf(t);a!==-1&&s.splice(a,1)}}dispatchEvent(e){const t=this._listeners;if(t===void 0)return;const i=t[e.type];if(i!==void 0){e.target=this;const s=i.slice(0);for(let a=0,l=s.length;a<l;a++)s[a].call(this,e);e.target=null}}}const di=["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","55","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"],Ov=Math.PI/180,$y=180/Math.PI;function Pd(){const n=Math.random()*4294967295|0,e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return(di[n&255]+di[n>>8&255]+di[n>>16&255]+di[n>>24&255]+"-"+di[e&255]+di[e>>8&255]+"-"+di[e>>16&15|64]+di[e>>24&255]+"-"+di[t&63|128]+di[t>>8&255]+"-"+di[t>>16&255]+di[t>>24&255]+di[i&255]+di[i>>8&255]+di[i>>16&255]+di[i>>24&255]).toLowerCase()}function Pt(n,e,t){return Math.max(e,Math.min(t,n))}function _I(n,e){return(n%e+e)%e}function Uv(n,e,t){return(1-t)*n+t*e}function Ef(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Ni(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}class wt{constructor(e=0,t=0){wt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,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,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;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,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}
vendor: 5,558 bytes, line 109
109sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.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 t=this.x,i=this.y,s=e.elements;return this.x=s[0]*t+s[3]*i+s[6],this.y=s[1]*t+s[4]*i+s[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,t){return this.x=Pt(this.x,e.x,t.x),this.y=Pt(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=Pt(this.x,e,t),this.y=Pt(this.y,e,t),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Pt(i,e,t))}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 t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(Pt(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y;return t*t+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const i=Math.cos(t),s=Math.sin(t),a=this.x-e.x,l=this.y-e.y;return this.x=a*i-l*s+e.x,this.y=a*s+l*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ld{constructor(e=0,t=0,i=0,s=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=i,this._w=s}static slerpFlat(e,t,i,s,a,l,c){let f=i[s+0],d=i[s+1],h=i[s+2],g=i[s+3];const v=a[l+0],x=a[l+1],b=a[l+2],_=a[l+3];if(c===0){e[t+0]=f,e[t+1]=d,e[t+2]=h,e[t+3]=g;return}if(c===1){e[t+0]=v,e[t+1]=x,e[t+2]=b,e[t+3]=_;return}if(g!==_||f!==v||d!==x||h!==b){let w=1-c;const S=f*v+d*x+h*b+g*_,T=S>=0?1:-1,M=1-S*S;if(M>Number.EPSILON){const N=Math.sqrt(M),U=Math.atan2(N,S*T);w=Math.sin(w*U)/N,c=Math.sin(c*U)/N}const C=c*T;if(f=f*w+v*C,d=d*w+x*C,h=h*w+b*C,g=g*w+_*C,w===1-c){const N=1/Math.sqrt(f*f+d*d+h*h+g*g);f*=N,d*=N,h*=N,g*=N}}e[t]=f,e[t+1]=d,e[t+2]=h,e[t+3]=g}static multiplyQuaternionsFlat(e,t,i,s,a,l){const c=i[s],f=i[s+1],d=i[s+2],h=i[s+3],g=a[l],v=a[l+1],x=a[l+2],b=a[l+3];return e[t]=c*b+h*g+f*x-d*v,e[t+1]=f*b+h*v+d*g-c*x,e[t+2]=d*b+h*x+c*v-f*g,e[t+3]=h*b-c*g-f*v-d*x,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,t,i,s){return this._x=e,this._y=t,this._z=i,this._w=s,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,t=!0){const i=e._x,s=e._y,a=e._z,l=e._order,c=Math.cos,f=Math.sin,d=c(i/2),h=c(s/2),g=c(a/2),v=f(i/2),x=f(s/2),b=f(a/2);switch(l){case"XYZ":this._x=v*h*g+d*x*b,this._y=d*x*g-v*h*b,this._z=d*h*b+v*x*g,this._w=d*h*g-v*x*b;break;case"YXZ":this._x=v*h*g+d*x*b,this._y=d*x*g-v*h*b,this._z=d*h*b-v*x*g,this._w=d*h*g+v*x*b;break;case"ZXY":this._x=v*h*g-d*x*b,this._y=d*x*g+v*h*b,this._z=d*h*b+v*x*g,this._w=d*h*g-v*x*b;break;case"ZYX":this._x=v*h*g-d*x*b,this._y=d*x*g+v*h*b,this._z=d*h*b-v*x*g,this._w=d*h*g+v*x*b;break;case"YZX":this._x=v*h*g+d*x*b,this._y=d*x*g+v*h*b,this._z=d*h*b-v*x*g,this._w=d*h*g-v*x*b;break;case"XZY":this._x=v*h*g-d*x*b,this._y=d*x*g-v*h*b,this._z=d*h*b+v*x*g,this._w=d*h*g+v*x*b;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+l)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const i=t/2,s=Math.sin(i);return this._x=e.x*s,this._y=e.y*s,this._z=e.z*s,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,i=t[0],s=t[4],a=t[8],l=t[1],c=t[5],f=t[9],d=t[2],h=t[6],g=t[10],v=i+c+g;if(v>0){const x=.5/Math.sqrt(v+1);this._w=.25/x,this._x=(h-f)*x,this._y=(a-d)*x,this._z=(l-s)*x}else if(i>c&&i>g){const x=2*Math.sqrt(1+i-c-g);this._w=(h-f)/x,this._x=.25*x,this._y=(s+l)/x,this._z=(a+d)/x}else if(c>g){const x=2*Math.sqrt(1+c-i-g);this._w=(a-d)/x,this._x=(s+l)/x,this._y=.25*x,this._z=(f+h)/x}else{const x=2*Math.sqrt(1+g-i-c);this._w=(l-s)/x,this._x=(a+d)/x,this._y=(f+h)/x,this._z=.25*x}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let i=e.dot(t)+1;return i<1e-8?(i=0,Math.abs(e.x)>
vendor: 4,591 bytes, line 109
109Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Pt(this.dot(e),-1,1)))}rotateTowards(e,t){const i=this.angleTo(e);if(i===0)return this;const s=Math.min(1,t/i);return this.slerp(e,s),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,t){const i=e._x,s=e._y,a=e._z,l=e._w,c=t._x,f=t._y,d=t._z,h=t._w;return this._x=i*h+l*c+s*d-a*f,this._y=s*h+l*f+a*c-i*d,this._z=a*h+l*d+i*f-s*c,this._w=l*h-i*c-s*f-a*d,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const i=this._x,s=this._y,a=this._z,l=this._w;let c=l*e._w+i*e._x+s*e._y+a*e._z;if(c<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,c=-c):this.copy(e),c>=1)return this._w=l,this._x=i,this._y=s,this._z=a,this;const f=1-c*c;if(f<=Number.EPSILON){const x=1-t;return this._w=x*l+t*this._w,this._x=x*i+t*this._x,this._y=x*s+t*this._y,this._z=x*a+t*this._z,this.normalize(),this}const d=Math.sqrt(f),h=Math.atan2(d,c),g=Math.sin((1-t)*h)/d,v=Math.sin(t*h)/d;return this._w=l*g+this._w*v,this._x=i*g+this._x*v,this._y=s*g+this._y*v,this._z=a*g+this._z*v,this._onChangeCallback(),this}slerpQuaternions(e,t,i){return this.copy(e).slerp(t,i)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),i=Math.random(),s=Math.sqrt(1-i),a=Math.sqrt(i);return this.set(s*Math.sin(e),s*Math.cos(e),a*Math.sin(t),a*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class pe{constructor(e=0,t=0,i=0){pe.prototype.isVector3=!0,this.x=e,this.y=t,this.z=i}set(e,t,i){return i===void 0&&(i=this.z),this.x=e,this.y=t,this.z=i,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,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;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,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,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,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.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,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(JM.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(JM.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,i=this.y,s=this.z,a=e.elements;return this.x=a[0]*t+a[3]*i+a[6]*s,this.y=a[1]*t+a[4]*i+a[7]*s,this.z=a[2]*t+a[5]*i+a[8]*s,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,a=e.elements,l=1/(a[3]*t+a[7]*i+a[11]*s+a[15]);
vendor: 8,219 bytes, line 109
109return this.x=(a[0]*t+a[4]*i+a[8]*s+a[12])*l,this.y=(a[1]*t+a[5]*i+a[9]*s+a[13])*l,this.z=(a[2]*t+a[6]*i+a[10]*s+a[14])*l,this}applyQuaternion(e){const t=this.x,i=this.y,s=this.z,a=e.x,l=e.y,c=e.z,f=e.w,d=2*(l*s-c*i),h=2*(c*t-a*s),g=2*(a*i-l*t);return this.x=t+f*d+l*g-c*h,this.y=i+f*h+c*d-a*g,this.z=s+f*g+a*h-l*d,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,i=this.y,s=this.z,a=e.elements;return this.x=a[0]*t+a[4]*i+a[8]*s,this.y=a[1]*t+a[5]*i+a[9]*s,this.z=a[2]*t+a[6]*i+a[10]*s,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,t){return this.x=Pt(this.x,e.x,t.x),this.y=Pt(this.y,e.y,t.y),this.z=Pt(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=Pt(this.x,e,t),this.y=Pt(this.y,e,t),this.z=Pt(this.z,e,t),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Pt(i,e,t))}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,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const i=e.x,s=e.y,a=e.z,l=t.x,c=t.y,f=t.z;return this.x=s*f-a*c,this.y=a*l-i*f,this.z=i*c-s*l,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Iv.copy(this).projectOnVector(e),this.sub(Iv)}reflect(e){return this.sub(Iv.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(Pt(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y,s=this.z-e.z;return t*t+i*i+s*s}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,t,i){const s=Math.sin(t)*e;return this.x=s*Math.sin(i),this.y=Math.cos(t)*e,this.z=s*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),s=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=s,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*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,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=Math.random()*2-1,i=Math.sqrt(1-t*t);return this.x=i*Math.cos(e),this.y=t,this.z=i*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Iv=new pe,JM=new Ld;class xt{constructor(e,t,i,s,a,l,c,f,d){xt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,i,s,a,l,c,f,d)}set(e,t,i,s,a,l,c,f,d){const h=this.elements;return h[0]=e,h[1]=s,h[2]=c,h[3]=t,h[4]=a,h[5]=f,h[6]=i,h[7]=l,h[8]=d,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}extractBasis(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,a=this.elements,l=i[0],c=i[3],f=i[6],d=i[1],h=i[4],g=i[7],v=i[2],x=i[5],b=i[8],_=s[0],w=s[3],S=s[6],T=s[1],M=s[4],C=s[7],N=s[2],U=s[5],P=s[8];return a[0]=l*_+c*T+f*N,a[3]=l*w+c*M+f*U,a[6]=l*S+c*C+f*P,a[1]=d*_+h*T+g*N,a[4]=d*w+h*M+g*U,a[7]=d*S+h*C+g*P,a[2]=v*_+x*T+b*N,a[5]=v*w+x*M+b*U,a[8]=v*S+x*C+b*P,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[1],s=e[2],a=e[3],l=e[4],c=e[5],f=e[6],d=e[7],h=e[8];return t*l*h-t*c*d-i*a*h+i*c*f+s*a*d-s*l*f}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],a=e[3],l=e[4],c=e[5],f=e[6],d=e[7],h=e[8],g=h*l-c*d,v=c*f-h*a,x=d*a-l*f,b=t*g+i*v+s*x;if(b===0)return this.set(0,0,0,0,0,0,0,0,0);const _=1/b;return e[0]=g*_,e[1]=(s*d-h*i)*_,e[2]=(c*i-s*l)*_,e[3]=v*_,e[4]=(h*t-s*f)*_,e[5]=(s*a-c*t)*_,e[6]=x*_,e[7]=(i*f-d*t)*_,e[8]=(l*t-i*a)*_,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,i,s,a,l,c){const f=Math.cos(a),d=Math.sin(a);return this.set(i*f,i*d,-i*(f*l+d*c)+l+e,-s*d,s*f,-s*(-d*l+f*c)+c+t,0,0,1),this}scale(e,t){return this.premultiply(Bv.makeScale(e,t)),this}rotate(e){return this.premultiply(Bv.makeRotation(-e)),this}translate(e,t){return this.premultiply(Bv.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<9;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Bv=new xt;function uR(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function pm(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function bI(){const n=pm("canvas");return n.style.display="block",n}const eT={};function hd(n){n in eT||(eT[n]=!0,console.warn(n))}function SI(n,e,t){return new Promise(function(i,s){function a(){switch(n.clientWaitSync(e,n.SYNC_FLUSH_COMMANDS_BIT,0)){case n.WAIT_FAILED:s();break;case n.TIMEOUT_EXPIRED:setTimeout(a,t);break;default:i()}}setTimeout(a,t)})}
vendor: 27,227 bytes, line 109
109const tT=new xt().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),nT=new xt().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function wI(){const n={enabled:!0,workingColorSpace:ro,spaces:{},convert:function(s,a,l){return this.enabled===!1||a===l||!a||!l||(this.spaces[a].transfer===en&&(s.r=na(s.r),s.g=na(s.g),s.b=na(s.b)),this.spaces[a].primaries!==this.spaces[l].primaries&&(s.applyMatrix3(this.spaces[a].toXYZ),s.applyMatrix3(this.spaces[l].fromXYZ)),this.spaces[l].transfer===en&&(s.r=jc(s.r),s.g=jc(s.g),s.b=jc(s.b))),s},workingToColorSpace:function(s,a){return this.convert(s,this.workingColorSpace,a)},colorSpaceToWorking:function(s,a){return this.convert(s,a,this.workingColorSpace)},getPrimaries:function(s){return this.spaces[s].primaries},getTransfer:function(s){return s===cr?dm:this.spaces[s].transfer},getToneMappingMode:function(s){return this.spaces[s].outputColorSpaceConfig.toneMappingMode||"standard"},getLuminanceCoefficients:function(s,a=this.workingColorSpace){return s.fromArray(this.spaces[a].luminanceCoefficients)},define:function(s){Object.assign(this.spaces,s)},_getMatrix:function(s,a,l){return s.copy(this.spaces[a].toXYZ).multiply(this.spaces[l].fromXYZ)},_getDrawingBufferColorSpace:function(s){return this.spaces[s].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(s=this.workingColorSpace){return this.spaces[s].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(s,a){return hd("THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."),n.workingToColorSpace(s,a)},toWorkingColorSpace:function(s,a){return hd("THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."),n.colorSpaceToWorking(s,a)}},e=[.64,.33,.3,.6,.15,.06],t=[.2126,.7152,.0722],i=[.3127,.329];return n.define({[ro]:{primaries:e,whitePoint:i,transfer:dm,toXYZ:tT,fromXYZ:nT,luminanceCoefficients:t,workingColorSpaceConfig:{unpackColorSpace:Rn},outputColorSpaceConfig:{drawingBufferColorSpace:Rn}},[Rn]:{primaries:e,whitePoint:i,transfer:en,toXYZ:tT,fromXYZ:nT,luminanceCoefficients:t,outputColorSpaceConfig:{drawingBufferColorSpace:Rn}}}),n}const zt=wI();function na(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function jc(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let lc;class EI{static getDataURL(e,t="image/png"){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let i;if(e instanceof HTMLCanvasElement)i=e;else{lc===void 0&&(lc=pm("canvas")),lc.width=e.width,lc.height=e.height;const s=lc.getContext("2d");e instanceof ImageData?s.putImageData(e,0,0):s.drawImage(e,0,0,e.width,e.height),i=lc}return i.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=pm("canvas");t.width=e.width,t.height=e.height;const i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const s=i.getImageData(0,0,e.width,e.height),a=s.data;for(let l=0;l<a.length;l++)a[l]=na(a[l]/255)*255;return i.putImageData(s,0,0),t}else if(e.data){const t=e.data.slice(0);for(let i=0;i<t.length;i++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[i]=Math.floor(na(t[i]/255)*255):t[i]=na(t[i]);return{data:t,width:e.width,height:e.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let MI=0;class xb{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:MI++}),this.uuid=Pd(),this.data=e,this.dataReady=!0,this.version=0}getSize(e){const t=this.data;return typeof HTMLVideoElement<"u"&&t instanceof HTMLVideoElement?e.set(t.videoWidth,t.videoHeight,0):t instanceof VideoFrame?e.set(t.displayHeight,t.displayWidth,0):t!==null?e.set(t.width,t.height,t.depth||0):e.set(0,0,0),e}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const i={uuid:this.uuid,url:""},s=this.data;if(s!==null){let a;if(Array.isArray(s)){a=[];for(let l=0,c=s.length;l<c;l++)s[l].isDataTexture?a.push(Fv(s[l].image)):a.push(Fv(s[l]))}else a=Fv(s);i.url=a}return t||(e.images[this.uuid]=i),i}}function Fv(n){return typeof HTMLImageElement<"u"&&n instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&n instanceof ImageBitmap?EI.getDataURL(n):n.data?{data:Array.from(n.data),width:n.width,height:n.height,type:n.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let TI=0;const zv=new pe;class oi extends fo{constructor(e=oi.DEFAULT_IMAGE,t=oi.DEFAULT_MAPPING,i=tl,s=tl,a=mi,l=nl,c=Hs,f=as,d=oi.DEFAULT_ANISOTROPY,h=cr){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:TI++}),this.uuid=Pd(),this.name="",this.source=new xb(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=i,this.wrapT=s,this.magFilter=a,this.minFilter=l,this.anisotropy=d,this.format=c,this.internalFormat=null,this.type=f,this.offset=new wt(0,0),this.repeat=new wt(1,1),this.center=new wt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new xt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=h,this.userData={},this.updateRanges=[],this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.isArrayTexture=!!(e&&e.depth&&e.depth>1),this.pmremVersion=0}get width(){return this.source.getSize(zv).x}get height(){return this.source.getSize(zv).y}get depth(){return this.source.getSize(zv).z}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)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}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.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(const t in e){const i=e[t];if(i===void 0){console.warn(`THREE.Texture.setValues(): parameter '${t}' has value of undefined.`);continue}const s=this[t];if(s===void 0){console.warn(`THREE.Texture.setValues(): property '${t}' does not exist.`);continue}s&&i&&s.isVector2&&i.isVector2||s&&i&&s.isVector3&&i.isVector3||s&&i&&s.isMatrix3&&i.isMatrix3?s.copy(i):this[t]=i}}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const i={metadata:{version:4.7,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&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==eR)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case xy:e.x=e.x-Math.floor(e.x);break;case tl:e.x=e.x<0?0:1;break;case yy: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 xy:e.y=e.y-Math.floor(e.y);break;case tl:e.y=e.y<0?0:1;break;case yy: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)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}oi.DEFAULT_IMAGE=null;oi.DEFAULT_MAPPING=eR;oi.DEFAULT_ANISOTROPY=1;class Nn{constructor(e=0,t=0,i=0,s=1){Nn.prototype.isVector4=!0,this.x=e,this.y=t,this.z=i,this.w=s}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,i,s){return this.x=e,this.y=t,this.z=i,this.w=s,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,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;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,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,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,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.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 t=this.x,i=this.y,s=this.z,a=this.w,l=e.elements;return this.x=l[0]*t+l[4]*i+l[8]*s+l[12]*a,this.y=l[1]*t+l[5]*i+l[9]*s+l[13]*a,this.z=l[2]*t+l[6]*i+l[10]*s+l[14]*a,this.w=l[3]*t+l[7]*i+l[11]*s+l[15]*a,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,i,s,a;const f=e.elements,d=f[0],h=f[4],g=f[8],v=f[1],x=f[5],b=f[9],_=f[2],w=f[6],S=f[10];if(Math.abs(h-v)<.01&&Math.abs(g-_)<.01&&Math.abs(b-w)<.01){if(Math.abs(h+v)<.1&&Math.abs(g+_)<.1&&Math.abs(b+w)<.1&&Math.abs(d+x+S-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const M=(d+1)/2,C=(x+1)/2,N=(S+1)/2,U=(h+v)/4,P=(g+_)/4,O=(b+w)/4;return M>C&&M>N?M<.01?(i=0,s=.707106781,a=.707106781):(i=Math.sqrt(M),s=U/i,a=P/i):C>N?C<.01?(i=.707106781,s=0,a=.707106781):(s=Math.sqrt(C),i=U/s,a=O/s):N<.01?(i=.707106781,s=.707106781,a=0):(a=Math.sqrt(N),i=P/a,s=O/a),this.set(i,s,a,t),this}let T=Math.sqrt((w-b)*(w-b)+(g-_)*(g-_)+(v-h)*(v-h));return Math.abs(T)<.001&&(T=1),this.x=(w-b)/T,this.y=(g-_)/T,this.z=(v-h)/T,this.w=Math.acos((d+x+S-1)/2),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],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,t){return this.x=Pt(this.x,e.x,t.x),this.y=Pt(this.y,e.y,t.y),this.z=Pt(this.z,e.z,t.z),this.w=Pt(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=Pt(this.x,e,t),this.y=Pt(this.y,e,t),this.z=Pt(this.z,e,t),this.w=Pt(this.w,e,t),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Pt(i,e,t))}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,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this.w=e.w+(t.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),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 AI extends fo{constructor(e=1,t=1,i={}){super(),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:mi,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1,depth:1,multiview:!1},i),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=i.depth,this.scissor=new Nn(0,0,e,t),this.scissorTest=!1,this.viewport=new Nn(0,0,e,t);const s={width:e,height:t,depth:i.depth},a=new oi(s);this.textures=[];const l=i.count;for(let c=0;c<l;c++)this.textures[c]=a.clone(),this.textures[c].isRenderTargetTexture=!0,this.textures[c].renderTarget=this;this._setTextureOptions(i),this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.resolveDepthBuffer=i.resolveDepthBuffer,this.resolveStencilBuffer=i.resolveStencilBuffer,this._depthTexture=null,this.depthTexture=i.depthTexture,this.samples=i.samples,this.multiview=i.multiview}_setTextureOptions(e={}){const t={minFilter:mi,generateMipmaps:!1,flipY:!1,internalFormat:null};e.mapping!==void 0&&(t.mapping=e.mapping),e.wrapS!==void 0&&(t.wrapS=e.wrapS),e.wrapT!==void 0&&(t.wrapT=e.wrapT),e.wrapR!==void 0&&(t.wrapR=e.wrapR),e.magFilter!==void 0&&(t.magFilter=e.magFilter),e.minFilter!==void 0&&(t.minFilter=e.minFilter),e.format!==void 0&&(t.format=e.format),e.type!==void 0&&(t.type=e.type),e.anisotropy!==void 0&&(t.anisotropy=e.anisotropy),e.colorSpace!==void 0&&(t.colorSpace=e.colorSpace),e.flipY!==void 0&&(t.flipY=e.flipY),e.generateMipmaps!==void 0&&(t.generateMipmaps=e.generateMipmaps),e.internalFormat!==void 0&&(t.internalFormat=e.internalFormat);for(let i=0;i<this.textures.length;i++)this.textures[i].setValues(t)}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}set depthTexture(e){this._depthTexture!==null&&(this._depthTexture.renderTarget=null),e!==null&&(e.renderTarget=this),this._depthTexture=e}get depthTexture(){return this._depthTexture}setSize(e,t,i=1){if(this.width!==e||this.height!==t||this.depth!==i){this.width=e,this.height=t,this.depth=i;for(let s=0,a=this.textures.length;s<a;s++)this.textures[s].image.width=e,this.textures[s].image.height=t,this.textures[s].image.depth=i,this.textures[s].isArrayTexture=this.textures[s].image.depth>1;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}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.textures.length=0;for(let t=0,i=e.textures.length;t<i;t++){this.textures[t]=e.textures[t].clone(),this.textures[t].isRenderTargetTexture=!0,this.textures[t].renderTarget=this;const s=Object.assign({},e.textures[t].image);this.textures[t].source=new xb(s)}return this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.resolveDepthBuffer=e.resolveDepthBuffer,this.resolveStencilBuffer=e.resolveStencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class qs extends AI{constructor(e=1,t=1,i={}){super(e,t,i),this.isWebGLRenderTarget=!0}}class fR extends oi{constructor(e=null,t=1,i=1,s=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=Xs,this.minFilter=Xs,this.wrapR=tl,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class CI extends oi{constructor(e=null,t=1,i=1,s=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=Xs,this.minFilter=Xs,this.wrapR=tl,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Od{constructor(e=new pe(1/0,1/0,1/0),t=new pe(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,i=e.length;t<i;t+=3)this.expandByPoint(Bs.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,i=e.count;t<i;t++)this.expandByPoint(Bs.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,i=e.length;t<i;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const i=Bs.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(i),this.max.copy(e).add(i),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}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,t=!1){e.updateWorldMatrix(!1,!1);const i=e.geometry;if(i!==void 0){const a=i.getAttribute("position");if(t===!0&&a!==void 0&&e.isInstancedMesh!==!0)for(let l=0,c=a.count;l<c;l++)e.isMesh===!0?e.getVertexPosition(l,Bs):Bs.fromBufferAttribute(a,l),Bs.applyMatrix4(e.matrixWorld),this.expandByPoint(Bs);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),ip.copy(e.boundingBox)):(i.boundingBox===null&&i.computeBoundingBox(),ip.copy(i.boundingBox)),ip.applyMatrix4(e.matrixWorld),this.union(ip)}const s=e.children;for(let a=0,l=s.length;a<l;a++)this.expandByObject(s[a],t);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,t){return t.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,Bs),Bs.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Mf),sp.subVectors(this.max,Mf),cc.subVectors(e.a,Mf),uc.subVectors(e.b,Mf),fc.subVectors(e.c,Mf),Ia.subVectors(uc,cc),Ba.subVectors(fc,uc),zo.subVectors(cc,fc);let t=[0,-Ia.z,Ia.y,0,-Ba.z,Ba.y,0,-zo.z,zo.y,Ia.z,0,-Ia.x,Ba.z,0,-Ba.x,zo.z,0,-zo.x,-Ia.y,Ia.x,0,-Ba.y,Ba.x,0,-zo.y,zo.x,0];return!jv(t,cc,uc,fc,sp)||(t=[1,0,0,0,1,0,0,0,1],!jv(t,cc,uc,fc,sp))?!1:(rp.crossVectors(Ia,Ba),t=[rp.x,rp.y,rp.z],jv(t,cc,uc,fc,sp))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Bs).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Bs).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:(Wr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Wr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Wr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Wr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Wr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Wr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Wr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Wr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Wr),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)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}}const Wr=[new pe,new pe,new pe,new pe,new pe,new pe,new pe,new pe],Bs=new pe,ip=new Od,cc=new pe,uc=new pe,fc=new pe,Ia=new pe,Ba=new pe,zo=new pe,Mf=new pe,sp=new pe,rp=new pe,jo=new pe;function jv(n,e,t,i,s){for(let a=0,l=n.length-3;a<=l;a+=3){jo.fromArray(n,a);const c=s.x*Math.abs(jo.x)+s.y*Math.abs(jo.y)+s.z*Math.abs(jo.z),f=e.dot(jo),d=t.dot(jo),h=i.dot(jo);if(Math.max(-Math.max(f,d,h),Math.min(f,d,h))>c)return!1}return!0}const RI=new Od,Tf=new pe,kv=new pe;class yb{constructor(e=new pe,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const i=this.center;t!==void 0?i.copy(t):RI.setFromPoints(e).getCenter(i);let s=0;for(let a=0,l=e.length;a<l;a++)s=Math.max(s,i.distanceToSquared(e[a]));return this.radius=Math.sqrt(s),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 t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const i=this.center.distanceToSquared(e);return t.copy(e),i>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}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;Tf.subVectors(e,this.center);const t=Tf.lengthSq();if(t>this.radius*this.radius){const i=Math.sqrt(t),s=(i-this.radius)*.5;this.center.addScaledVector(Tf,s/i),this.radius+=s}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):(kv.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Tf.copy(e.center).add(kv)),this.expandByPoint(Tf.copy(e.center).sub(kv))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}}const Xr=new pe,Vv=new pe,ap=new pe,Fa=new pe,Hv=new pe,op=new pe,Gv=new pe;class NI{constructor(e=new pe,t=new pe(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.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,Xr)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Xr.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Xr.copy(this.origin).addScaledVector(this.direction,t),Xr.distanceToSquared(e))}distanceSqToSegment(e,t,i,s){Vv.copy(e).add(t).multiplyScalar(.5),ap.copy(t).sub(e).normalize(),Fa.copy(this.origin).sub(Vv);const a=e.distanceTo(t)*.5,l=-this.direction.dot(ap),c=Fa.dot(this.direction),f=-Fa.dot(ap),d=Fa.lengthSq(),h=Math.abs(1-l*l);let g,v,x,b;if(h>0)if(g=l*f-c,v=l*c-f,b=a*h,g>=0)if(v>=-b)if(v<=b){const _=1/h;g*=_,v*=_,x=g*(g+l*v+2*c)+v*(l*g+v+2*f)+d}else v=a,g=Math.max(0,-(l*v+c)),x=-g*g+v*(v+2*f)+d;else v=-a,g=Math.max(0,-(l*v+c)),x=-g*g+v*(v+2*f)+d;else v<=-b?(g=Math.max(0,-(-l*a+c)),v=g>0?-a:Math.min(Math.max(-a,-f),a),x=-g*g+v*(v+2*f)+d):v<=b?(g=0,v=Math.min(Math.max(-a,-f),a),x=v*(v+2*f)+d):(g=Math.max(0,-(l*a+c)),v=g>0?a:Math.min(Math.max(-a,-f),a),x=-g*g+v*(v+2*f)+d);else v=l>0?-a:a,g=Math.max(0,-(l*v+c)),x=-g*g+v*(v+2*f)+d;
vendor: 8,093 bytes, line 109
109return i&&i.copy(this.origin).addScaledVector(this.direction,g),s&&s.copy(Vv).addScaledVector(ap,v),x}intersectSphere(e,t){Xr.subVectors(e.center,this.origin);const i=Xr.dot(this.direction),s=Xr.dot(Xr)-i*i,a=e.radius*e.radius;if(s>a)return null;const l=Math.sqrt(a-s),c=i-l,f=i+l;return f<0?null:c<0?this.at(f,t):this.at(c,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}intersectPlane(e,t){const i=this.distanceToPlane(e);return i===null?null:this.at(i,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let i,s,a,l,c,f;const d=1/this.direction.x,h=1/this.direction.y,g=1/this.direction.z,v=this.origin;return d>=0?(i=(e.min.x-v.x)*d,s=(e.max.x-v.x)*d):(i=(e.max.x-v.x)*d,s=(e.min.x-v.x)*d),h>=0?(a=(e.min.y-v.y)*h,l=(e.max.y-v.y)*h):(a=(e.max.y-v.y)*h,l=(e.min.y-v.y)*h),i>l||a>s||((a>i||isNaN(i))&&(i=a),(l<s||isNaN(s))&&(s=l),g>=0?(c=(e.min.z-v.z)*g,f=(e.max.z-v.z)*g):(c=(e.max.z-v.z)*g,f=(e.min.z-v.z)*g),i>f||c>s)||((c>i||i!==i)&&(i=c),(f<s||s!==s)&&(s=f),s<0)?null:this.at(i>=0?i:s,t)}intersectsBox(e){return this.intersectBox(e,Xr)!==null}intersectTriangle(e,t,i,s,a){Hv.subVectors(t,e),op.subVectors(i,e),Gv.crossVectors(Hv,op);let l=this.direction.dot(Gv),c;if(l>0){if(s)return null;c=1}else if(l<0)c=-1,l=-l;else return null;Fa.subVectors(this.origin,e);const f=c*this.direction.dot(op.crossVectors(Fa,op));if(f<0)return null;const d=c*this.direction.dot(Hv.cross(Fa));if(d<0||f+d>l)return null;const h=-c*Fa.dot(Gv);return h<0?null:this.at(h/l,a)}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 Wn{constructor(e,t,i,s,a,l,c,f,d,h,g,v,x,b,_,w){Wn.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,t,i,s,a,l,c,f,d,h,g,v,x,b,_,w)}set(e,t,i,s,a,l,c,f,d,h,g,v,x,b,_,w){const S=this.elements;return S[0]=e,S[4]=t,S[8]=i,S[12]=s,S[1]=a,S[5]=l,S[9]=c,S[13]=f,S[2]=d,S[6]=h,S[10]=g,S[14]=v,S[3]=x,S[7]=b,S[11]=_,S[15]=w,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 Wn().fromArray(this.elements)}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}copyPosition(e){const t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,i=e.elements,s=1/dc.setFromMatrixColumn(e,0).length(),a=1/dc.setFromMatrixColumn(e,1).length(),l=1/dc.setFromMatrixColumn(e,2).length();return t[0]=i[0]*s,t[1]=i[1]*s,t[2]=i[2]*s,t[3]=0,t[4]=i[4]*a,t[5]=i[5]*a,t[6]=i[6]*a,t[7]=0,t[8]=i[8]*l,t[9]=i[9]*l,t[10]=i[10]*l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,i=e.x,s=e.y,a=e.z,l=Math.cos(i),c=Math.sin(i),f=Math.cos(s),d=Math.sin(s),h=Math.cos(a),g=Math.sin(a);if(e.order==="XYZ"){const v=l*h,x=l*g,b=c*h,_=c*g;t[0]=f*h,t[4]=-f*g,t[8]=d,t[1]=x+b*d,t[5]=v-_*d,t[9]=-c*f,t[2]=_-v*d,t[6]=b+x*d,t[10]=l*f}else if(e.order==="YXZ"){const v=f*h,x=f*g,b=d*h,_=d*g;t[0]=v+_*c,t[4]=b*c-x,t[8]=l*d,t[1]=l*g,t[5]=l*h,t[9]=-c,t[2]=x*c-b,t[6]=_+v*c,t[10]=l*f}else if(e.order==="ZXY"){const v=f*h,x=f*g,b=d*h,_=d*g;t[0]=v-_*c,t[4]=-l*g,t[8]=b+x*c,t[1]=x+b*c,t[5]=l*h,t[9]=_-v*c,t[2]=-l*d,t[6]=c,t[10]=l*f}else if(e.order==="ZYX"){const v=l*h,x=l*g,b=c*h,_=c*g;t[0]=f*h,t[4]=b*d-x,t[8]=v*d+_,t[1]=f*g,t[5]=_*d+v,t[9]=x*d-b,t[2]=-d,t[6]=c*f,t[10]=l*f}else if(e.order==="YZX"){const v=l*f,x=l*d,b=c*f,_=c*d;t[0]=f*h,t[4]=_-v*g,t[8]=b*g+x,t[1]=g,t[5]=l*h,t[9]=-c*h,t[2]=-d*h,t[6]=x*g+b,t[10]=v-_*g}else if(e.order==="XZY"){const v=l*f,x=l*d,b=c*f,_=c*d;t[0]=f*h,t[4]=-g,t[8]=d*h,t[1]=v*g+_,t[5]=l*h,t[9]=x*g-b,t[2]=b*g-x,t[6]=c*h,t[10]=_*g+v}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(DI,e,PI)}lookAt(e,t,i){const s=this.elements;return $i.subVectors(e,t),$i.lengthSq()===0&&($i.z=1),$i.normalize(),za.crossVectors(i,$i),za.lengthSq()===0&&(Math.abs(i.z)===1?$i.x+=1e-4:$i.z+=1e-4,$i.normalize(),za.crossVectors(i,$i)),za.normalize(),lp.crossVectors($i,za),s[0]=za.x,s[4]=lp.x,s[8]=$i.x,s[1]=za.y,s[5]=lp.y,s[9]=$i.y,s[2]=za.z,s[6]=lp.z,s[10]=$i.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,a=this.elements,l=i[0],c=i[4],f=i[8],d=i[12],h=i[1],g=i[5],v=i[9],x=i[13],b=i[2],_=i[6],w=i[10],S=i[14],T=i[3],M=i[7],C=i[11],N=i[15],U=s[0],P=s[4],O=s[8],R=s[12],L=s[1],z=s[5],H=s[9],Y=s[13],K=s[2],q=s[6],B=s[10],W=s[14],j=s[3],ae=s[7],fe=s[11],G=s[15];return a[0]=l*U+c*L+f*K+d*j,a[4]=l*P+c*z+f*q+d*ae,a[8]=l*O+c*H+f*B+d*fe,a[12]=l*R+c*Y+f*W+d*G,a[1]=h*U+g*L+v*K+x*j,a[5]=h*P+g*z+v*q+x*ae,a[9]=h*O+g*H+v*B+x*fe,a[13]=h*R+g*Y+v*W+x*G,a[2]=b*U+_*L+w*K+S*j,a[6]=b*P+_*z+w*q+S*ae,a[10]=b*O+_*H+w*B+S*fe,a[14]=b*R+_*Y+w*W+S*G,a[3]=T*U+M*L+C*K+N*j,a[7]=T*P+M*z+C*q+N*ae,a[11]=T*O+M*H+C*B+N*fe,a[15]=T*R+M*Y+C*W+N*G,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[4],s=e[8],a=e[12],l=e[1],c=e[5],f=e[9],d=e[13],h=e[2],g=e[6],v=e[10],x=e[14],b=e[3],_=e[7],w=e[11],S=e[15];return b*(+a*f*g-s*d*g-a*c*v+i*d*v+s*c*x-i*f*x)+_*(+t*f*x-t*d*v+a*l*v-s*l*x+s*d*h-a*f*h)+w*(+t*d*g-t*c*x-a*l*g+i*l*x+a*c*h-i*d*h)+S*(-s*c*h-t*f*g+t*c*v+s*l*g-i*l*v+i*f*h)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,i){const s=this.elements;return e.isVector3?(s[12]=e.x,s[13]=e.y,s[14]=e.z):(s[12]=e,s[13]=t,s[14]=i),this}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],a=e[3],l=e[4],c=e[5],f=e[6],d=e[7],h=e[8],g=e[9],v=e[10],x=e[11],b=e[12],_=e[13],w=e[14],S=e[15],T=g*w*d-_*v*d+_*f*x-c*w*x-g*f*S+c*v*S,M=b*v*d-h*w*d-b*f*x+l*w*x+h*f*S-l*v*S,C=h*_*d-b*g*d+b*c*x-l*_*x-h*c*S+l*g*S,N=b*g*f-h*_*f-b*c*v+l*_*v+h*c*w-l*g*w,U=t*T+i*M+s*C+a*N;if(U===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const P=1/U;return e[0]=T*P,e[1]=(_*v*a-g*w*a-_*s*x+i*w*x+g*s*S-i*v*S)*P,e[2]=(c*w*a-_*f*a+_*s*d-i*w*d-c*s*S+i*f*S)*P,e[3]=(g*f*a-c*v*a-g*s*d+i*v*d+c*s*x-i*f*x)*P,e[4]=M*P,e[5]=(h*w*a-b*v*a+b*s*x-t*w*x-h*s*S+t*v*S)*P,e[6]=(b*f*a-l*w*a-b*s*d+t*w*d+l*s*S-t*f*S)*P,e[7]=(l*v*a-h*f*a+h*s*d-t*v*d-l*s*x+t*f*x)*P,e[8]=C*P,e[9]=(b*g*a-h*_*a-b*i*x+t*_*x+h*i*S-t*g*S)*P,e[10]=(l*_*a-b*c*a+b*i*d-t*_*d-l*i*S+t*c*S)*P,e[11]=(h*c*a-l*g*a-h*i*d+t*g*d+l*i*x-t*c*x)*P,e[12]=N*P,e[13]=(h*_*s-b*g*s+b*i*v-t*_*v-h*i*w+t*g*w)*P,e[14]=(b*c*s-l*_*s-b*i*f+t*_*f+l*i*w-t*c*w)*P,e[15]=(l*g*s-h*c*s+h*i*f-t*g*f-l*i*v+t*c*v)*P,this}scale(e){const t=this.elements,i=e.x,s=e.y,a=e.z;return t[0]*=i,t[4]*=s,t[8]*=a,t[1]*=i,t[5]*=s,t[9]*=a,t[2]*=i,t[6]*=s,t[10]*=a,t[3]*=i,t[7]*=s,t[11]*=a,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],s=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,s))}makeTranslation(e,t,i){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,t,0,0,1,i,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),i=Math.sin(e);
vendor: 5,714 bytes, line 109
109return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const i=Math.cos(t),s=Math.sin(t),a=1-i,l=e.x,c=e.y,f=e.z,d=a*l,h=a*c;return this.set(d*l+i,d*c-s*f,d*f+s*c,0,d*c+s*f,h*c+i,h*f-s*l,0,d*f-s*c,h*f+s*l,a*f*f+i,0,0,0,0,1),this}makeScale(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,t,i,s,a,l){return this.set(1,i,a,0,e,1,l,0,t,s,1,0,0,0,0,1),this}compose(e,t,i){const s=this.elements,a=t._x,l=t._y,c=t._z,f=t._w,d=a+a,h=l+l,g=c+c,v=a*d,x=a*h,b=a*g,_=l*h,w=l*g,S=c*g,T=f*d,M=f*h,C=f*g,N=i.x,U=i.y,P=i.z;return s[0]=(1-(_+S))*N,s[1]=(x+C)*N,s[2]=(b-M)*N,s[3]=0,s[4]=(x-C)*U,s[5]=(1-(v+S))*U,s[6]=(w+T)*U,s[7]=0,s[8]=(b+M)*P,s[9]=(w-T)*P,s[10]=(1-(v+_))*P,s[11]=0,s[12]=e.x,s[13]=e.y,s[14]=e.z,s[15]=1,this}decompose(e,t,i){const s=this.elements;let a=dc.set(s[0],s[1],s[2]).length();const l=dc.set(s[4],s[5],s[6]).length(),c=dc.set(s[8],s[9],s[10]).length();this.determinant()<0&&(a=-a),e.x=s[12],e.y=s[13],e.z=s[14],Fs.copy(this);const d=1/a,h=1/l,g=1/c;return Fs.elements[0]*=d,Fs.elements[1]*=d,Fs.elements[2]*=d,Fs.elements[4]*=h,Fs.elements[5]*=h,Fs.elements[6]*=h,Fs.elements[8]*=g,Fs.elements[9]*=g,Fs.elements[10]*=g,t.setFromRotationMatrix(Fs),i.x=a,i.y=l,i.z=c,this}makePerspective(e,t,i,s,a,l,c=dr,f=!1){const d=this.elements,h=2*a/(t-e),g=2*a/(i-s),v=(t+e)/(t-e),x=(i+s)/(i-s);let b,_;if(f)b=a/(l-a),_=l*a/(l-a);else if(c===dr)b=-(l+a)/(l-a),_=-2*l*a/(l-a);else if(c===hm)b=-l/(l-a),_=-l*a/(l-a);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+c);return d[0]=h,d[4]=0,d[8]=v,d[12]=0,d[1]=0,d[5]=g,d[9]=x,d[13]=0,d[2]=0,d[6]=0,d[10]=b,d[14]=_,d[3]=0,d[7]=0,d[11]=-1,d[15]=0,this}makeOrthographic(e,t,i,s,a,l,c=dr,f=!1){const d=this.elements,h=2/(t-e),g=2/(i-s),v=-(t+e)/(t-e),x=-(i+s)/(i-s);let b,_;if(f)b=1/(l-a),_=l/(l-a);else if(c===dr)b=-2/(l-a),_=-(l+a)/(l-a);else if(c===hm)b=-1/(l-a),_=-a/(l-a);else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+c);return d[0]=h,d[4]=0,d[8]=0,d[12]=v,d[1]=0,d[5]=g,d[9]=0,d[13]=x,d[2]=0,d[6]=0,d[10]=b,d[14]=_,d[3]=0,d[7]=0,d[11]=0,d[15]=1,this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<16;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}const dc=new pe,Fs=new Wn,DI=new pe(0,0,0),PI=new pe(1,1,1),za=new pe,lp=new pe,$i=new pe,iT=new Wn,sT=new Ld;class ra{constructor(e=0,t=0,i=0,s=ra.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=i,this._order=s}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,t,i,s=this._order){return this._x=e,this._y=t,this._z=i,this._order=s,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,t=this._order,i=!0){const s=e.elements,a=s[0],l=s[4],c=s[8],f=s[1],d=s[5],h=s[9],g=s[2],v=s[6],x=s[10];switch(t){case"XYZ":this._y=Math.asin(Pt(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-h,x),this._z=Math.atan2(-l,a)):(this._x=Math.atan2(v,d),this._z=0);break;case"YXZ":this._x=Math.asin(-Pt(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(c,x),this._z=Math.atan2(f,d)):(this._y=Math.atan2(-g,a),this._z=0);break;case"ZXY":this._x=Math.asin(Pt(v,-1,1)),Math.abs(v)<.9999999?(this._y=Math.atan2(-g,x),this._z=Math.atan2(-l,d)):(this._y=0,this._z=Math.atan2(f,a));break;case"ZYX":this._y=Math.asin(-Pt(g,-1,1)),Math.abs(g)<.9999999?(this._x=Math.atan2(v,x),this._z=Math.atan2(f,a)):(this._x=0,this._z=Math.atan2(-l,d));break;case"YZX":this._z=Math.asin(Pt(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(-h,d),this._y=Math.atan2(-g,a)):(this._x=0,this._y=Math.atan2(c,x));break;case"XZY":this._z=Math.asin(-Pt(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(v,d),this._y=Math.atan2(c,a)):(this._x=Math.atan2(-h,x),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,i){return iT.makeRotationFromQuaternion(e),this.setFromRotationMatrix(iT,t,i)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return sT.setFromEuler(this),this.setFromQuaternion(sT,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=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+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}}ra.DEFAULT_ORDER="XYZ";class dR{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}
vendor: 5,651 bytes, line 109
109isEnabled(e){return(this.mask&(1<<e|0))!==0}}let LI=0;const rT=new pe,hc=new Ld,qr=new Wn,cp=new pe,Af=new pe,OI=new pe,UI=new Ld,aT=new pe(1,0,0),oT=new pe(0,1,0),lT=new pe(0,0,1),cT={type:"added"},II={type:"removed"},pc={type:"childadded",child:null},Wv={type:"childremoved",child:null};class is extends fo{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:LI++}),this.uuid=Pd(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=is.DEFAULT_UP.clone();const e=new pe,t=new ra,i=new Ld,s=new pe(1,1,1);function a(){i.setFromEuler(t,!1)}function l(){t.setFromQuaternion(i,void 0,!1)}t._onChange(a),i._onChange(l),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:s},modelViewMatrix:{value:new Wn},normalMatrix:{value:new xt}}),this.matrix=new Wn,this.matrixWorld=new Wn,this.matrixAutoUpdate=is.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=is.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new dR,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.customDepthMaterial=void 0,this.customDistanceMaterial=void 0,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,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return hc.setFromAxisAngle(e,t),this.quaternion.multiply(hc),this}rotateOnWorldAxis(e,t){return hc.setFromAxisAngle(e,t),this.quaternion.premultiply(hc),this}rotateX(e){return this.rotateOnAxis(aT,e)}rotateY(e){return this.rotateOnAxis(oT,e)}rotateZ(e){return this.rotateOnAxis(lT,e)}translateOnAxis(e,t){return rT.copy(e).applyQuaternion(this.quaternion),this.position.add(rT.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(aT,e)}translateY(e){return this.translateOnAxis(oT,e)}translateZ(e){return this.translateOnAxis(lT,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(qr.copy(this.matrixWorld).invert())}lookAt(e,t,i){e.isVector3?cp.copy(e):cp.set(e,t,i);const s=this.parent;this.updateWorldMatrix(!0,!1),Af.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?qr.lookAt(Af,cp,this.up):qr.lookAt(cp,Af,this.up),this.quaternion.setFromRotationMatrix(qr),s&&(qr.extractRotation(s.matrixWorld),hc.setFromRotationMatrix(qr),this.quaternion.premultiply(hc.invert()))}add(e){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);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.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(cT),pc.child=e,this.dispatchEvent(pc),pc.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}const t=this.children.indexOf(e);return t!==-1&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(II),Wv.child=e,this.dispatchEvent(Wv),Wv.child=null),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),qr.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),qr.multiply(e.parent.matrixWorld)),e.applyMatrix4(qr),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(cT),pc.child=e,this.dispatchEvent(pc),pc.child=null,this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let i=0,s=this.children.length;i<s;i++){const l=this.children[i].getObjectByProperty(e,t);if(l!==void 0)return l}}getObjectsByProperty(e,t,i=[]){this[e]===t&&i.push(this);const s=this.children;for(let a=0,l=s.length;a<l;a++)s[a].getObjectsByProperty(e,t,i);return i}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Af,e,OI),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Af,UI,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let i=0,s=t.length;i<s;i++)t[i].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const t=this.children;for(let i=0,s=t.length;i<s;i++)t[i].traverseVisible(e)}traverseAncestors(e){const t=this.parent;t!==null&&(e(t),t.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.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix
vendor: 5,770 bytes, line 109
109):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let i=0,s=t.length;i<s;i++)t[i].updateMatrixWorld(e)}updateWorldMatrix(e,t){const i=this.parent;if(e===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),t===!0){const s=this.children;for(let a=0,l=s.length;a<l;a++)s[a].updateWorldMatrix(!1,!0)}}toJSON(e){const t=e===void 0||typeof e=="string",i={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.7,type:"Object",generator:"Object3D.toJSON"});const s={};s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.castShadow===!0&&(s.castShadow=!0),this.receiveShadow===!0&&(s.receiveShadow=!0),this.visible===!1&&(s.visible=!1),this.frustumCulled===!1&&(s.frustumCulled=!1),this.renderOrder!==0&&(s.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.geometryInfo=this._geometryInfo.map(c=>({...c,boundingBox:c.boundingBox?c.boundingBox.toJSON():void 0,boundingSphere:c.boundingSphere?c.boundingSphere.toJSON():void 0})),s.instanceInfo=this._instanceInfo.map(c=>({...c})),s.availableInstanceIds=this._availableInstanceIds.slice(),s.availableGeometryIds=this._availableGeometryIds.slice(),s.nextIndexStart=this._nextIndexStart,s.nextVertexStart=this._nextVertexStart,s.geometryCount=this._geometryCount,s.maxInstanceCount=this._maxInstanceCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.matricesTexture=this._matricesTexture.toJSON(e),s.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(s.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(s.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(s.boundingBox=this.boundingBox.toJSON()));function a(c,f){return c[f.uuid]===void 0&&(c[f.uuid]=f.toJSON(e)),f.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=a(e.geometries,this.geometry);const c=this.geometry.parameters;if(c!==void 0&&c.shapes!==void 0){const f=c.shapes;if(Array.isArray(f))for(let d=0,h=f.length;d<h;d++){const g=f[d];a(e.shapes,g)}else a(e.shapes,f)}}if(this.isSkinnedMesh&&(s.bindMode=this.bindMode,s.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(a(e.skeletons,this.skeleton),s.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const c=[];for(let f=0,d=this.material.length;f<d;f++)c.push(a(e.materials,this.material[f]));s.material=c}else s.material=a(e.materials,this.material);if(this.children.length>0){s.children=[];for(let c=0;c<this.children.length;c++)s.children.push(this.children[c].toJSON(e).object)}if(this.animations.length>0){s.animations=[];for(let c=0;c<this.animations.length;c++){const f=this.animations[c];s.animations.push(a(e.animations,f))}}if(t){const c=l(e.geometries),f=l(e.materials),d=l(e.textures),h=l(e.images),g=l(e.shapes),v=l(e.skeletons),x=l(e.animations),b=l(e.nodes);c.length>0&&(i.geometries=c),f.length>0&&(i.materials=f),d.length>0&&(i.textures=d),h.length>0&&(i.images=h),g.length>0&&(i.shapes=g),v.length>0&&(i.skeletons=v),x.length>0&&(i.animations=x),b.length>0&&(i.nodes=b)}return i.object=s,i;function l(c){const f=[];for(const d in c){const h=c[d];delete h.metadata,f.push(h)}return f}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!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)),t===!0)for(let i=0;i<e.children.length;i++){const s=e.children[i];this.add(s.clone())}return this}}is.DEFAULT_UP=new pe(0,1,0);is.DEFAULT_MATRIX_AUTO_UPDATE=!0;is.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const zs=new pe,Yr=new pe,Xv=new pe,$r=new pe,mc=new pe,gc=new pe,uT=new pe,qv=new pe,Yv=new pe,$v=new pe,Kv=new Nn,Zv=new Nn,Qv=new Nn;class Vs{constructor(e=new pe,t=new pe,i=new pe){this.a=e,this.b=t,this.c=i}static getNormal(e,t,i,s){s.subVectors(i,t),zs.subVectors(e,t),s.cross(zs);const a=s.lengthSq();return a>0?s.multiplyScalar(1/Math.sqrt(a)):s.set(0,0,0)}static getBarycoord(e,t,i,s,a){zs.subVectors(s,t),Yr.subVectors(i,t),Xv.subVectors(e,t);
vendor: 6,436 bytes, line 109
109const l=zs.dot(zs),c=zs.dot(Yr),f=zs.dot(Xv),d=Yr.dot(Yr),h=Yr.dot(Xv),g=l*d-c*c;if(g===0)return a.set(0,0,0),null;const v=1/g,x=(d*f-c*h)*v,b=(l*h-c*f)*v;return a.set(1-x-b,b,x)}static containsPoint(e,t,i,s){return this.getBarycoord(e,t,i,s,$r)===null?!1:$r.x>=0&&$r.y>=0&&$r.x+$r.y<=1}static getInterpolation(e,t,i,s,a,l,c,f){return this.getBarycoord(e,t,i,s,$r)===null?(f.x=0,f.y=0,"z"in f&&(f.z=0),"w"in f&&(f.w=0),null):(f.setScalar(0),f.addScaledVector(a,$r.x),f.addScaledVector(l,$r.y),f.addScaledVector(c,$r.z),f)}static getInterpolatedAttribute(e,t,i,s,a,l){return Kv.setScalar(0),Zv.setScalar(0),Qv.setScalar(0),Kv.fromBufferAttribute(e,t),Zv.fromBufferAttribute(e,i),Qv.fromBufferAttribute(e,s),l.setScalar(0),l.addScaledVector(Kv,a.x),l.addScaledVector(Zv,a.y),l.addScaledVector(Qv,a.z),l}static isFrontFacing(e,t,i,s){return zs.subVectors(i,t),Yr.subVectors(e,t),zs.cross(Yr).dot(s)<0}set(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}setFromPointsAndIndices(e,t,i,s){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[s]),this}setFromAttributeAndIndices(e,t,i,s){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,s),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 zs.subVectors(this.c,this.b),Yr.subVectors(this.a,this.b),zs.cross(Yr).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Vs.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Vs.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,i,s,a){return Vs.getInterpolation(e,this.a,this.b,this.c,t,i,s,a)}containsPoint(e){return Vs.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Vs.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const i=this.a,s=this.b,a=this.c;let l,c;mc.subVectors(s,i),gc.subVectors(a,i),qv.subVectors(e,i);const f=mc.dot(qv),d=gc.dot(qv);if(f<=0&&d<=0)return t.copy(i);Yv.subVectors(e,s);const h=mc.dot(Yv),g=gc.dot(Yv);if(h>=0&&g<=h)return t.copy(s);const v=f*g-h*d;if(v<=0&&f>=0&&h<=0)return l=f/(f-h),t.copy(i).addScaledVector(mc,l);$v.subVectors(e,a);const x=mc.dot($v),b=gc.dot($v);if(b>=0&&x<=b)return t.copy(a);const _=x*d-f*b;if(_<=0&&d>=0&&b<=0)return c=d/(d-b),t.copy(i).addScaledVector(gc,c);const w=h*b-x*g;if(w<=0&&g-h>=0&&x-b>=0)return uT.subVectors(a,s),c=(g-h)/(g-h+(x-b)),t.copy(s).addScaledVector(uT,c);const S=1/(w+_+v);return l=_*S,c=v*S,t.copy(i).addScaledVector(mc,l).addScaledVector(gc,c)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const hR={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},ja={h:0,s:0,l:0},up={h:0,s:0,l:0};function Jv(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class qt{constructor(e,t,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,i)}set(e,t,i){if(t===void 0&&i===void 0){const s=e;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(e,t,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Rn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,zt.colorSpaceToWorking(this,t),this}setRGB(e,t,i,s=zt.workingColorSpace){return this.r=e,this.g=t,this.b=i,zt.colorSpaceToWorking(this,s),this}setHSL(e,t,i,s=zt.workingColorSpace){if(e=_I(e,1),t=Pt(t,0,1),i=Pt(i,0,1),t===0)this.r=this.g=this.b=i;else{const a=i<=.5?i*(1+t):i+t-i*t,l=2*i-a;this.r=Jv(l,a,e+1/3),this.g=Jv(l,a,e),this.b=Jv(l,a,e-1/3)}return zt.colorSpaceToWorking(this,s),this}
vendor: 5,960 bytes, line 109
109setStyle(e,t=Rn){function i(a){a!==void 0&&parseFloat(a)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(e)){let a;const l=s[1],c=s[2];switch(l){case"rgb":case"rgba":if(a=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(c))return i(a[4]),this.setRGB(Math.min(255,parseInt(a[1],10))/255,Math.min(255,parseInt(a[2],10))/255,Math.min(255,parseInt(a[3],10))/255,t);if(a=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(c))return i(a[4]),this.setRGB(Math.min(100,parseInt(a[1],10))/100,Math.min(100,parseInt(a[2],10))/100,Math.min(100,parseInt(a[3],10))/100,t);break;case"hsl":case"hsla":if(a=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(c))return i(a[4]),this.setHSL(parseFloat(a[1])/360,parseFloat(a[2])/100,parseFloat(a[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(e)){const a=s[1],l=a.length;if(l===3)return this.setRGB(parseInt(a.charAt(0),16)/15,parseInt(a.charAt(1),16)/15,parseInt(a.charAt(2),16)/15,t);if(l===6)return this.setHex(parseInt(a,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Rn){const i=hR[e.toLowerCase()];return i!==void 0?this.setHex(i,t):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=na(e.r),this.g=na(e.g),this.b=na(e.b),this}copyLinearToSRGB(e){return this.r=jc(e.r),this.g=jc(e.g),this.b=jc(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Rn){return zt.workingToColorSpace(hi.copy(this),e),Math.round(Pt(hi.r*255,0,255))*65536+Math.round(Pt(hi.g*255,0,255))*256+Math.round(Pt(hi.b*255,0,255))}getHexString(e=Rn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=zt.workingColorSpace){zt.workingToColorSpace(hi.copy(this),t);const i=hi.r,s=hi.g,a=hi.b,l=Math.max(i,s,a),c=Math.min(i,s,a);let f,d;const h=(c+l)/2;if(c===l)f=0,d=0;else{const g=l-c;switch(d=h<=.5?g/(l+c):g/(2-l-c),l){case i:f=(s-a)/g+(s<a?6:0);break;case s:f=(a-i)/g+2;break;case a:f=(i-s)/g+4;break}f/=6}return e.h=f,e.s=d,e.l=h,e}getRGB(e,t=zt.workingColorSpace){return zt.workingToColorSpace(hi.copy(this),t),e.r=hi.r,e.g=hi.g,e.b=hi.b,e}getStyle(e=Rn){zt.workingToColorSpace(hi.copy(this),e);const t=hi.r,i=hi.g,s=hi.b;return e!==Rn?`color(${e} ${t.toFixed(3)} ${i.toFixed(3)} ${s.toFixed(3)})`:`rgb(${Math.round(t*255)},${Math.round(i*255)},${Math.round(s*255)})`}offsetHSL(e,t,i){return this.getHSL(ja),this.setHSL(ja.h+e,ja.s+t,ja.l+i)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.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,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,i){return this.r=e.r+(t.r-e.r)*i,this.g=e.g+(t.g-e.g)*i,this.b=e.b+(t.b-e.b)*i,this}lerpHSL(e,t){this.getHSL(ja),e.getHSL(up);const i=Uv(ja.h,up.h,t),s=Uv(ja.s,up.s,t),a=Uv(ja.l,up.l,t);return this.setHSL(i,s,a),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,i=this.g,s=this.b,a=e.elements;return this.r=a[0]*t+a[3]*i+a[6]*s,this.g=a[1]*t+a[4]*i+a[7]*s,this.b=a[2]*t+a[5]*i+a[8]*s,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const hi=new qt;qt.NAMES=hR;let BI=0;class mu extends fo{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:BI++}),this.uuid=Pd(),this.name="",this.type="Material",this.blending=zc,this.side=sa,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=oy,this.blendDst=ly,this.blendEquation=Jo,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new qt(0,0,0),this.blendAlpha=0,this.depthFunc=Yc,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=ZM,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=oc,this.stencilZFail=oc,this.stencilZPass=oc,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.allowOverride=!0,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}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const i=e[t];if(i===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const s=this[t];if(s===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(i):s&&s.isVector3&&i&&i.isVector3?s.copy(i):this[t]=i}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const i={metadata:{version:4.7,type:"Material",generator:"Material.toJSON"}};
vendor: 13,969 bytes, line 109
109i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(i.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(i.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(i.dispersion=this.dispersion),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapRotation!==void 0&&(i.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==zc&&(i.blending=this.blending),this.side!==sa&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==oy&&(i.blendSrc=this.blendSrc),this.blendDst!==ly&&(i.blendDst=this.blendDst),this.blendEquation!==Jo&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==Yc&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==ZM&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==oc&&(i.stencilFail=this.stencilFail),this.stencilZFail!==oc&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==oc&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function s(a){const l=[];for(const c in a){const f=a[c];delete f.metadata,l.push(f)}return l}if(t){const a=s(e.textures),l=s(e.images);a.length>0&&(i.textures=a),l.length>0&&(i.images=l)}return i}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 t=e.clippingPlanes;let i=null;if(t!==null){const s=t.length;i=new Array(s);for(let a=0;a!==s;++a)i[a]=t[a].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,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 pR extends mu{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new qt(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.envMapRotation=new ra,this.combine=JC,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.envMapRotation.copy(e.envMapRotation),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 In=new pe,fp=new wt;let FI=0;class Ns{constructor(e,t,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:FI++}),this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=i,this.usage=QM,this.updateRanges=[],this.gpuType=ta,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}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,t,i){e*=this.itemSize,i*=t.itemSize;for(let s=0,a=this.itemSize;s<a;s++)this.array[e+s]=t.array[i+s];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let t=0,i=this.count;t<i;t++)fp.fromBufferAttribute(this,t),fp.applyMatrix3(e),this.setXY(t,fp.x,fp.y);else if(this.itemSize===3)for(let t=0,i=this.count;t<i;t++)In.fromBufferAttribute(this,t),In.applyMatrix3(e),this.setXYZ(t,In.x,In.y,In.z);return this}applyMatrix4(e){for(let t=0,i=this.count;t<i;t++)In.fromBufferAttribute(this,t),In.applyMatrix4(e),this.setXYZ(t,In.x,In.y,In.z);return this}applyNormalMatrix(e){for(let t=0,i=this.count;t<i;t++)In.fromBufferAttribute(this,t),In.applyNormalMatrix(e),this.setXYZ(t,In.x,In.y,In.z);return this}transformDirection(e){for(let t=0,i=this.count;t<i;t++)In.fromBufferAttribute(this,t),In.transformDirection(e),this.setXYZ(t,In.x,In.y,In.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let i=this.array[e*this.itemSize+t];return this.normalized&&(i=Ef(i,this.array)),i}setComponent(e,t,i){return this.normalized&&(i=Ni(i,this.array)),this.array[e*this.itemSize+t]=i,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=Ef(t,this.array)),t}setX(e,t){return this.normalized&&(t=Ni(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=Ef(t,this.array)),t}setY(e,t){return this.normalized&&(t=Ni(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=Ef(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Ni(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=Ef(t,this.array)),t}setW(e,t){return this.normalized&&(t=Ni(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,i){return e*=this.itemSize,this.normalized&&(t=Ni(t,this.array),i=Ni(i,this.array)),this.array[e+0]=t,this.array[e+1]=i,this}setXYZ(e,t,i,s){return e*=this.itemSize,this.normalized&&(t=Ni(t,this.array),i=Ni(i,this.array),s=Ni(s,this.array)),this.array[e+0]=t,this.array[e+1]=i,this.array[e+2]=s,this}setXYZW(e,t,i,s,a){return e*=this.itemSize,this.normalized&&(t=Ni(t,this.array),i=Ni(i,this.array),s=Ni(s,this.array),a=Ni(a,this.array)),this.array[e+0]=t,this.array[e+1]=i,this.array[e+2]=s,this.array[e+3]=a,this}
vendor: 5,705 bytes, line 109
109onUpload(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!==QM&&(e.usage=this.usage),e}}class mR extends Ns{constructor(e,t,i){super(new Uint16Array(e),t,i)}}class gR extends Ns{constructor(e,t,i){super(new Uint32Array(e),t,i)}}class al extends Ns{constructor(e,t,i){super(new Float32Array(e),t,i)}}let zI=0;const ys=new Wn,ex=new is,vc=new pe,Ki=new Od,Cf=new Od,Kn=new pe;class ho extends fo{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:zI++}),this.uuid=Pd(),this.name="",this.type="BufferGeometry",this.index=null,this.indirect=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(uR(e)?gR:mR)(e,1):this.index=e,this}setIndirect(e){return this.indirect=e,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,i=0){this.groups.push({start:e,count:t,materialIndex:i})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);const i=this.attributes.normal;if(i!==void 0){const a=new xt().getNormalMatrix(e);i.applyNormalMatrix(a),i.needsUpdate=!0}const s=this.attributes.tangent;return s!==void 0&&(s.transformDirection(e),s.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return ys.makeRotationFromQuaternion(e),this.applyMatrix4(ys),this}rotateX(e){return ys.makeRotationX(e),this.applyMatrix4(ys),this}rotateY(e){return ys.makeRotationY(e),this.applyMatrix4(ys),this}rotateZ(e){return ys.makeRotationZ(e),this.applyMatrix4(ys),this}translate(e,t,i){return ys.makeTranslation(e,t,i),this.applyMatrix4(ys),this}scale(e,t,i){return ys.makeScale(e,t,i),this.applyMatrix4(ys),this}lookAt(e){return ex.lookAt(e),ex.updateMatrix(),this.applyMatrix4(ex.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(vc).negate(),this.translate(vc.x,vc.y,vc.z),this}setFromPoints(e){const t=this.getAttribute("position");if(t===void 0){const i=[];for(let s=0,a=e.length;s<a;s++){const l=e[s];i.push(l.x,l.y,l.z||0)}this.setAttribute("position",new al(i,3))}else{const i=Math.min(e.length,t.count);for(let s=0;s<i;s++){const a=e[s];t.setXYZ(s,a.x,a.y,a.z||0)}e.length>t.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Od);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new pe(-1/0,-1/0,-1/0),new pe(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let i=0,s=t.length;i<s;i++){const a=t[i];Ki.setFromBufferAttribute(a),this.morphTargetsRelative?(Kn.addVectors(this.boundingBox.min,Ki.min),this.boundingBox.expandByPoint(Kn),Kn.addVectors(this.boundingBox.max,Ki.max),this.boundingBox.expandByPoint(Kn)):(this.boundingBox.expandByPoint(Ki.min),this.boundingBox.expandByPoint(Ki.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 yb);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new pe,1/0);return}if(e){const i=this.boundingSphere.center;if(Ki.setFromBufferAttribute(e),t)for(let a=0,l=t.length;a<l;a++){const c=t[a];Cf.setFromBufferAttribute(c),this.morphTargetsRelative?(Kn.addVectors(Ki.min,Cf.min),Ki.expandByPoint(Kn),Kn.addVectors(Ki.max,Cf.max),Ki.expandByPoint(Kn)):(Ki.expandByPoint(Cf.min),Ki.expandByPoint(Cf.max))}Ki.getCenter(i);let s=0;for(let a=0,l=e.count;a<l;a++)Kn.fromBufferAttribute(e,a),s=Math.max(s,i.distanceToSquared(Kn));if(t)for(let a=0,l=t.length;a<l;a++){const c=t[a],f=this.morphTargetsRelative;for(let d=0,h=c.count;d<h;d++)Kn.fromBufferAttribute(c,d),f&&(vc.fromBufferAttribute(e,d),Kn.add(vc)),s=Math.max(s,i.distanceToSquared(Kn))}this.boundingSphere.radius=Math.sqrt(s),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,t=this.attributes;if(e===null||t.position===void 0||t.normal===void 0||t.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const i=t.position,s=t.normal,a=t.uv;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new
vendor: 7,811 bytes, line 109
109Ns(new Float32Array(4*i.count),4));const l=this.getAttribute("tangent"),c=[],f=[];for(let O=0;O<i.count;O++)c[O]=new pe,f[O]=new pe;const d=new pe,h=new pe,g=new pe,v=new wt,x=new wt,b=new wt,_=new pe,w=new pe;function S(O,R,L){d.fromBufferAttribute(i,O),h.fromBufferAttribute(i,R),g.fromBufferAttribute(i,L),v.fromBufferAttribute(a,O),x.fromBufferAttribute(a,R),b.fromBufferAttribute(a,L),h.sub(d),g.sub(d),x.sub(v),b.sub(v);const z=1/(x.x*b.y-b.x*x.y);isFinite(z)&&(_.copy(h).multiplyScalar(b.y).addScaledVector(g,-x.y).multiplyScalar(z),w.copy(g).multiplyScalar(x.x).addScaledVector(h,-b.x).multiplyScalar(z),c[O].add(_),c[R].add(_),c[L].add(_),f[O].add(w),f[R].add(w),f[L].add(w))}let T=this.groups;T.length===0&&(T=[{start:0,count:e.count}]);for(let O=0,R=T.length;O<R;++O){const L=T[O],z=L.start,H=L.count;for(let Y=z,K=z+H;Y<K;Y+=3)S(e.getX(Y+0),e.getX(Y+1),e.getX(Y+2))}const M=new pe,C=new pe,N=new pe,U=new pe;function P(O){N.fromBufferAttribute(s,O),U.copy(N);const R=c[O];M.copy(R),M.sub(N.multiplyScalar(N.dot(R))).normalize(),C.crossVectors(U,R);const z=C.dot(f[O])<0?-1:1;l.setXYZW(O,M.x,M.y,M.z,z)}for(let O=0,R=T.length;O<R;++O){const L=T[O],z=L.start,H=L.count;for(let Y=z,K=z+H;Y<K;Y+=3)P(e.getX(Y+0)),P(e.getX(Y+1)),P(e.getX(Y+2))}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(t!==void 0){let i=this.getAttribute("normal");if(i===void 0)i=new Ns(new Float32Array(t.count*3),3),this.setAttribute("normal",i);else for(let v=0,x=i.count;v<x;v++)i.setXYZ(v,0,0,0);const s=new pe,a=new pe,l=new pe,c=new pe,f=new pe,d=new pe,h=new pe,g=new pe;if(e)for(let v=0,x=e.count;v<x;v+=3){const b=e.getX(v+0),_=e.getX(v+1),w=e.getX(v+2);s.fromBufferAttribute(t,b),a.fromBufferAttribute(t,_),l.fromBufferAttribute(t,w),h.subVectors(l,a),g.subVectors(s,a),h.cross(g),c.fromBufferAttribute(i,b),f.fromBufferAttribute(i,_),d.fromBufferAttribute(i,w),c.add(h),f.add(h),d.add(h),i.setXYZ(b,c.x,c.y,c.z),i.setXYZ(_,f.x,f.y,f.z),i.setXYZ(w,d.x,d.y,d.z)}else for(let v=0,x=t.count;v<x;v+=3)s.fromBufferAttribute(t,v+0),a.fromBufferAttribute(t,v+1),l.fromBufferAttribute(t,v+2),h.subVectors(l,a),g.subVectors(s,a),h.cross(g),i.setXYZ(v+0,h.x,h.y,h.z),i.setXYZ(v+1,h.x,h.y,h.z),i.setXYZ(v+2,h.x,h.y,h.z);this.normalizeNormals(),i.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,i=e.count;t<i;t++)Kn.fromBufferAttribute(e,t),Kn.normalize(),e.setXYZ(t,Kn.x,Kn.y,Kn.z)}toNonIndexed(){function e(c,f){const d=c.array,h=c.itemSize,g=c.normalized,v=new d.constructor(f.length*h);let x=0,b=0;for(let _=0,w=f.length;_<w;_++){c.isInterleavedBufferAttribute?x=f[_]*c.data.stride+c.offset:x=f[_]*h;for(let S=0;S<h;S++)v[b++]=d[x++]}return new Ns(v,h,g)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const t=new ho,i=this.index.array,s=this.attributes;for(const c in s){const f=s[c],d=e(f,i);t.setAttribute(c,d)}const a=this.morphAttributes;for(const c in a){const f=[],d=a[c];for(let h=0,g=d.length;h<g;h++){const v=d[h],x=e(v,i);f.push(x)}t.morphAttributes[c]=f}t.morphTargetsRelative=this.morphTargetsRelative;const l=this.groups;for(let c=0,f=l.length;c<f;c++){const d=l[c];t.addGroup(d.start,d.count,d.materialIndex)}return t}toJSON(){const e={metadata:{version:4.7,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 f=this.parameters;for(const d in f)f[d]!==void 0&&(e[d]=f[d]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const i=this.attributes;for(const f in i){const d=i[f];e.data.attributes[f]=d.toJSON(e.data)}const s={};let a=!1;for(const f in this.morphAttributes){const d=this.morphAttributes[f],h=[];for(let g=0,v=d.length;g<v;g++){const x=d[g];h.push(x.toJSON(e.data))}h.length>0&&(s[f]=h,a=!0)}a&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);const l=this.groups;l.length>0&&(e.data.groups=JSON.parse(JSON.stringify(l)));const c=this.boundingSphere;return c!==null&&(e.data.boundingSphere=c.toJSON()),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 t={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone());const s=e.attributes;for(const d in s){const h=s[d];this.setAttribute(d,h.clone(t))}const a=e.morphAttributes;for(const d in a){const h=[],g=a[d];for(let v=0,x=g.length;v<x;v++)h.push(g[v].clone(t));this.morphAttributes[d]=h}this.morphTargetsRelative=e.morphTargetsRelative;const l=e.groups;for(let d=0,h=l.length;d<h;d++){const g=l[d];this.addGroup(g.start,g.count,g.materialIndex)}const c=e.boundingBox;c!==null&&(this.boundingBox=c.clone());const f=e.boundingSphere;return f!==null&&(this.boundingSphere=f.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const fT=new Wn,ko=new NI,dp=new yb,dT=new pe,hp=new pe,pp=new pe,mp=new pe,tx=new pe,gp=new pe,hT=new pe,vp=new pe;class Gs extends is{constructor(e=new ho,t=new pR){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),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 t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,l=s.length;a<l;a++){const c=s[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[c]=a}}}}getVertexPosition(e,t){const i=this.geometry,s=i.attributes.position,a=i.morphAttributes.position,l=i.morphTargetsRelative;t.fromBufferAttribute(s,e);const c=this.morphTargetInfluences;if(a&&c){gp.set(0,0,0);for(let f=0,d=a.length;f<d;f++){const h=c[f],g=a[f];h!==0&&(tx.fromBufferAttribute(g,e),l?gp.addScaledVector(tx,h):gp.addScaledVector(tx.sub(t),h))}t.add(gp)}return t}raycast(e,t){const i=this.geometry,s=this.material,a=this.matrixWorld;s!==void 0&&(i.boundingSphere===null&&i.computeBoundingSphere(),dp.copy(i.boundingSphere),dp.applyMatrix4(a),ko.copy(e.ray).recast(e.near),!(dp.containsPoint(ko.origin)===!1&&(ko.intersectSphere(dp,dT)===null||ko.origin.distanceToSquared(dT)>(e.far-e.near)**2))&&(fT.copy(a).invert(),ko.copy(e.ray).applyMatrix4(fT),!(i.boundingBox!==null&&ko.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,t,ko)))}_computeIntersections(e,t,i){let s;const a=this.geometry,l=this.material,c=a.index,f=a.attributes.position,d=a.attributes.uv,h=a.attributes.uv1,g=a.attributes.normal,v=a.groups,x=a.drawRange;if(c!==null)if(Array.isArray(l))for(let b=0,_=v.length;b<_;b++){const w=v[b],S=l[w.materialIndex],T=Math.max(w.start,x.start),M=Math.min(c.count,Math.min(w.start+w.count,x.start+x.count));for(let C=T,N=M;C<N;C+=3){const U=c.getX(C),P=c.getX(C+1),O=c.getX(C+2);s=xp(this,S,e,i,d,h,g,U,P,O),s&&(s.faceIndex=Math.floor(C/3),s.face.materialIndex=w.materialIndex,t.push(s))}}else{const b=Math.max(0,x.start),_=Math.min(c.count,x.start+x.count);for(let w=b,S=_;w<S;w+=3){const T=c.getX(w),M=c.getX(w+1),C=c.getX(w+2);s=xp(this,l,e,i,d,h,g,T,M,C),s&&(s.faceIndex=Math.floor(w/3),t.pu
vendor: 7,099 bytes, lines 109-113
109sh(s))}}else if(f!==void 0)if(Array.isArray(l))for(let b=0,_=v.length;b<_;b++){const w=v[b],S=l[w.materialIndex],T=Math.max(w.start,x.start),M=Math.min(f.count,Math.min(w.start+w.count,x.start+x.count));for(let C=T,N=M;C<N;C+=3){const U=C,P=C+1,O=C+2;s=xp(this,S,e,i,d,h,g,U,P,O),s&&(s.faceIndex=Math.floor(C/3),s.face.materialIndex=w.materialIndex,t.push(s))}}else{const b=Math.max(0,x.start),_=Math.min(f.count,x.start+x.count);for(let w=b,S=_;w<S;w+=3){const T=w,M=w+1,C=w+2;s=xp(this,l,e,i,d,h,g,T,M,C),s&&(s.faceIndex=Math.floor(w/3),t.push(s))}}}}function jI(n,e,t,i,s,a,l,c){let f;if(e.side===Qn?f=i.intersectTriangle(l,a,s,!0,c):f=i.intersectTriangle(s,a,l,e.side===sa,c),f===null)return null;vp.copy(c),vp.applyMatrix4(n.matrixWorld);const d=t.ray.origin.distanceTo(vp);return d<t.near||d>t.far?null:{distance:d,point:vp.clone(),object:n}}function xp(n,e,t,i,s,a,l,c,f,d){n.getVertexPosition(c,hp),n.getVertexPosition(f,pp),n.getVertexPosition(d,mp);const h=jI(n,e,t,i,hp,pp,mp,hT);if(h){const g=new pe;Vs.getBarycoord(hT,hp,pp,mp,g),s&&(h.uv=Vs.getInterpolatedAttribute(s,c,f,d,g,new wt)),a&&(h.uv1=Vs.getInterpolatedAttribute(a,c,f,d,g,new wt)),l&&(h.normal=Vs.getInterpolatedAttribute(l,c,f,d,g,new pe),h.normal.dot(i.direction)>0&&h.normal.multiplyScalar(-1));const v={a:c,b:f,c:d,normal:new pe,materialIndex:0};Vs.getNormal(hp,pp,mp,v.normal),h.face=v,h.barycoord=g}return h}class Ud extends ho{constructor(e=1,t=1,i=1,s=1,a=1,l=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:i,widthSegments:s,heightSegments:a,depthSegments:l};const c=this;s=Math.floor(s),a=Math.floor(a),l=Math.floor(l);const f=[],d=[],h=[],g=[];let v=0,x=0;b("z","y","x",-1,-1,i,t,e,l,a,0),b("z","y","x",1,-1,i,t,-e,l,a,1),b("x","z","y",1,1,e,i,t,s,l,2),b("x","z","y",1,-1,e,i,-t,s,l,3),b("x","y","z",1,-1,e,t,i,s,a,4),b("x","y","z",-1,-1,e,t,-i,s,a,5),this.setIndex(f),this.setAttribute("position",new al(d,3)),this.setAttribute("normal",new al(h,3)),this.setAttribute("uv",new al(g,2));function b(_,w,S,T,M,C,N,U,P,O,R){const L=C/P,z=N/O,H=C/2,Y=N/2,K=U/2,q=P+1,B=O+1;let W=0,j=0;const ae=new pe;for(let fe=0;fe<B;fe++){const G=fe*z-Y;for(let ee=0;ee<q;ee++){const me=ee*L-H;ae[_]=me*T,ae[w]=G*M,ae[S]=K,d.push(ae.x,ae.y,ae.z),ae[_]=0,ae[w]=0,ae[S]=U>0?1:-1,h.push(ae.x,ae.y,ae.z),g.push(ee/P),g.push(1-fe/O),W+=1}}for(let fe=0;fe<O;fe++)for(let G=0;G<P;G++){const ee=v+G+q*fe,me=v+G+q*(fe+1),ve=v+(G+1)+q*(fe+1),ge=v+(G+1)+q*fe;f.push(ee,me,ge),f.push(me,ve,ge),j+=6}c.addGroup(x,j,R),x+=j,v+=W}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Ud(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Jc(n){const e={};for(const t in n){e[t]={};for(const i in n[t]){const s=n[t][i];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture||s.isQuaternion)?s.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[t][i]=null):e[t][i]=s.clone():Array.isArray(s)?e[t][i]=s.slice():e[t][i]=s}}return e}function _i(n){const e={};for(let t=0;t<n.length;t++){const i=Jc(n[t]);for(const s in i)e[s]=i[s]}return e}function kI(n){const e=[];for(let t=0;t<n.length;t++)e.push(n[t].clone());return e}function vR(n){const e=n.getRenderTarget();return e===null?n.outputColorSpace:e.isXRRenderTarget===!0?e.texture.colorSpace:zt.workingColorSpace}const VI={clone:Jc,merge:_i};var HI=`void main() { 110 gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); 111}`,GI=`void main() { 112 gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 ); 113}`;class Ds extends mu{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=HI,this.fragmentShader=GI,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!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=Jc(e.uniforms),this.uniformsGroups=kI(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 t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const s in this.uniforms){const l=this.uniforms[s].value;l&&l.isTexture?t.uniforms[s]={type:"t",value:l.toJSON(e).uuid}:l&&l.isColor?t.uniforms[s]={type:"c",value:l.getHex()}:l&&l.isVector2?t.uniforms[s]={type:"v2",value:l.toArray()}:l&&l.isVector3?t.uniforms[s]={type:"v3",value:l.toArray()}:l&&l.isVector4?t.uniforms[s]={type:"v4",value:l.toArray()}:l&&l.isMatrix3?t.uniforms[s]={type:"m3",value:l.toArray()}:l&&l.isMatrix4?t.uniforms[s]={type:"m4",value:l.toArray()}:t.uniforms[s]={value:l}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const i={};for(const s in this.extensions)this.extensions[s]===!0&&(i[s]=!0);return Object.keys(i).length>0&&(t.extensions=i),t}}class _b extends is{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Wn,this.projectionMatrix=new Wn,this.projectionMatrixInverse=new Wn,this.coordinateSystem=dr,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(e,t){return super.copy(e,t),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,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const ka=new pe,pT=new wt,mT=new wt;class Ms extends _b{constructor(e=50,t=1,i=.1,s=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=s,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),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 t=.5*this.getFilmHeight()/e;this.fov=$y*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Ov*.5*this.fov);return .5*this.getFilmHeight()/e}
vendor: 16,908 bytes, lines 113-148
113getEffectiveFOV(){return $y*2*Math.atan(Math.tan(Ov*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,i){ka.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(ka.x,ka.y).multiplyScalar(-e/ka.z),ka.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),i.set(ka.x,ka.y).multiplyScalar(-e/ka.z)}getViewSize(e,t){return this.getViewBounds(e,pT,mT),t.subVectors(mT,pT)}setViewOffset(e,t,i,s,a,l){this.aspect=e/t,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=t,this.view.offsetX=i,this.view.offsetY=s,this.view.width=a,this.view.height=l,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Ov*.5*this.fov)/this.zoom,i=2*t,s=this.aspect*i,a=-.5*s;const l=this.view;if(this.view!==null&&this.view.enabled){const f=l.fullWidth,d=l.fullHeight;a+=l.offsetX*s/f,t-=l.offsetY*i/d,s*=l.width/f,i*=l.height/d}const c=this.filmOffset;c!==0&&(a+=e*c/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+s,t,t-i,e,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const xc=-90,yc=1;class WI extends is{constructor(e,t,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const s=new Ms(xc,yc,e,t);s.layers=this.layers,this.add(s);const a=new Ms(xc,yc,e,t);a.layers=this.layers,this.add(a);const l=new Ms(xc,yc,e,t);l.layers=this.layers,this.add(l);const c=new Ms(xc,yc,e,t);c.layers=this.layers,this.add(c);const f=new Ms(xc,yc,e,t);f.layers=this.layers,this.add(f);const d=new Ms(xc,yc,e,t);d.layers=this.layers,this.add(d)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[i,s,a,l,c,f]=t;for(const d of t)this.remove(d);if(e===dr)i.up.set(0,1,0),i.lookAt(1,0,0),s.up.set(0,1,0),s.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),l.up.set(0,0,1),l.lookAt(0,-1,0),c.up.set(0,1,0),c.lookAt(0,0,1),f.up.set(0,1,0),f.lookAt(0,0,-1);else if(e===hm)i.up.set(0,-1,0),i.lookAt(-1,0,0),s.up.set(0,-1,0),s.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),l.up.set(0,0,-1),l.lookAt(0,-1,0),c.up.set(0,-1,0),c.lookAt(0,0,1),f.up.set(0,-1,0),f.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const d of t)this.add(d),d.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:s}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[a,l,c,f,d,h]=this.children,g=e.getRenderTarget(),v=e.getActiveCubeFace(),x=e.getActiveMipmapLevel(),b=e.xr.enabled;e.xr.enabled=!1;const _=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,s),e.render(t,a),e.setRenderTarget(i,1,s),e.render(t,l),e.setRenderTarget(i,2,s),e.render(t,c),e.setRenderTarget(i,3,s),e.render(t,f),e.setRenderTarget(i,4,s),e.render(t,d),i.texture.generateMipmaps=_,e.setRenderTarget(i,5,s),e.render(t,h),e.setRenderTarget(g,v,x),e.xr.enabled=b,i.texture.needsPMREMUpdate=!0}}class xR extends oi{constructor(e=[],t=$c,i,s,a,l,c,f,d,h){super(e,t,i,s,a,l,c,f,d,h),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class XI extends qs{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},s=[i,i,i,i,i,i];this.texture=new xR(s),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:` 114 115 varying vec3 vWorldDirection; 116 117 vec3 transformDirection( in vec3 dir, in mat4 matrix ) { 118 119 return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); 120 121 } 122 123 void main() { 124 125 vWorldDirection = transformDirection( position, modelMatrix ); 126 127 #include <begin_vertex> 128 #include <project_vertex> 129 130 } 131 `,fragmentShader:` 132 133 uniform sampler2D tEquirect; 134 135 varying vec3 vWorldDirection; 136 137 #include <common> 138 139 void main() { 140 141 vec3 direction = normalize( vWorldDirection ); 142 143 vec2 sampleUV = equirectUv( direction ); 144 145 gl_FragColor = texture2D( tEquirect, sampleUV ); 146 147 } 148 `},s=new Ud(5,5,5),a=new Ds({name:"CubemapFromEquirect",uniforms:Jc(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:Qn,blending:gr});a.uniforms.tEquirect.value=t;const l=new Gs(s,a),c=t.minFilter;return t.minFilter===nl&&(t.minFilter=mi),new WI(1,10,this).update(e,l),t.minFilter=c,l.geometry.dispose(),l.material.dispose(),this}clear(e,t=!0,i=!0,s=!0){const a=e.getRenderTarget();for(let l=0;l<6;l++)e.setRenderTarget(this,l),e.clear(t,i,s);e.setRenderTarget(a)}}let yp=class extends is{constructor(){super(),this.isGroup=!0,this.type="Group"}};const qI={type:"move"};class nx{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new yp,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 yp,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new pe,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new pe),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new yp,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new pe,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new pe),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 t=this._hand;if(t)for(const i of e.hand.values())this._getHandJoint(t,i)}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,t,i){let s=null,a=null,l=null;const c=this._targetRay,f=this._grip,d=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(d&&e.hand){l=!0;for(const _ of e.hand.values()){const w=t.getJointPose(_,i),S=this._getHandJoint(d,_);w!==null&&(S.matrix.fromArray(w.transform.matrix),S.matrix.decompose(S.position,S.rotation,S.scale),S.matrixWorldNeedsUpdate=!0,S.jointRadius=w.radius),S.visible=w!==null}const h=d.joints["index-finger-tip"],g=d.joints["thumb-tip"],v=h.position.distanceTo(g.position),x=.02,b=.005;d.inputState.pinching&&v>x+b?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&v<=x-b&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else f!==null&&e.gripSpace&&(a=t.getPose(e.gripSpace,i),a!==null&&(f.matrix.fromArray(a.transform.matrix),f.matrix.decompose(f.position,f.rotation,f.scale),f.matrixWorldNeedsUpdate=!0,a.linearVelocity?(f.hasLinearVelocity=!0,f.linearVelocity.copy(a.linearVelocity)):f.hasLinearVelocity=!1,a.angularVelocity?(f.hasAngularVelocity=!0,f.angularVelocity.copy(a.angularVelocity)):f.hasAngularVelocity=!1));c!==null&&(s=t.getPose(e.targetRaySpace,i),s===null&&a!==null&&(s=a),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,this.dispatchEvent(qI)))}return c!==null&&(c.visible=s!==null),f!==null&&(f.visible=a!==null),d!==null&&(d.visible=l!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const i=new yp;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[t.jointName]=i,e.add(i)}return e.joints[t.jointName]}}class Ky extends is{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new ra,this.environmentIntensity=1,this.environmentRotation=new ra,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),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,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}const ix=new pe,YI=new pe,$I=new xt;class $o{constructor(e=new pe(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,i,s){return this.normal.set(e,t,i),this.constant=s,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,i){const s=ix.subVectors(i,t).cross(YI.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(s,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,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const i=e.delta(ix),s=this.normal.dot(i);if(s===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const a=-(e.start.dot(this.normal)+this.constant)/s;return a<0||a>1?null:t.copy(e.start).addScaledVector(i,a)}intersectsLine(e){const t=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return t<0&&i>0||i<0&&t>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,t){const i=t||$I.getNormalMatrix(e),s=this.coplanarPoint(ix).applyMatrix4(e),a=this.normal.applyMatrix3(i).normalize();return this.constant=-s.dot(a),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 Vo=new yb,KI=new wt(.5,.5),_p=new pe;class yR{constructor(e=new $o,t=new $o,i=new $o,s=new $o,a=new $o,l=new $o){this.planes=[e,t,i,s,a,l]}set(e,t,i,s,a,l){const c=this.planes;return c[0].copy(e),c[1].copy(t),c[2].copy(i),c[3].copy(s),c[4].copy(a),c[5].copy(l),this}copy(e){const t=this.planes;for(let i=0;i<6;i++)t[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,t=dr,i=!1){const s=this.planes,a=e.elements,l=a[0],c=a[1],f=a[2],d=a[3],h=a[4],g=a[5],v=a[6],x=a[7],b=a[8],_=a[9],w=a[10],S=a[11],T=a[12],M=a[13],C=a[14],N=a[15];if(s[0].setComponents(d-l,x-h,S-b,N-T).normalize(),s[1].setComponents(d+l,x+h,S+b,N+T).normalize(),s[2].setComponents(d+c,x+g,S+_,N+M).normalize(),s[3].setComponents(d-c,x-g,S-_,N-M).normalize(),i)s[4].setComponents(f,v,w,C).normalize(),s[5].setComponents(d-f,x-v,S-w,N-C).normalize();else if(s[4].setComponents(d-f,x-v,S-w,N-C).normalize(),t===dr)s[5].setComponents(d+f,x+v,S+w,N+C).normalize();else if(t===hm)s[5].setComponents(f,v,w,C).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Vo.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Vo.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Vo)}intersectsSprite(e){Vo.center.set(0,0,0);const t=KI.distanceTo(e.center);return Vo.radius=.7071067811865476+t,Vo.applyMatrix4(e.matrixWorld),this.intersectsSphere(Vo)}intersectsSphere(e){const t=this.planes,i=e.center,s=-e.radius;for(let a=0;a<6;a++)if(t[a].distanceToPoint(i)<s)return!1;return!0}intersectsBox(e){const t=this.planes;for(let i=0;i<6;i++){const s=t[i];if(_p.x=s.normal.x>0?e.max.x:e.min.x,_p.y=s.normal.y>0?e.max.y:e.min.y,_p.z=s.normal.z>0?e.max.z:e.min.z,s.distanceToPoint(_p)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let i=0;i<6;i++)if(t[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}class bb extends oi{constructor(e,t,i=so,s,a,l,c=Xs,f=Xs,d,h=dd,g=1){if(h!==dd&&h!==Qc)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");const v={width:e,height:t,depth:g};super(v,s,a,l,c,f,h,i,d),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new xb(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}}class _R extends oi{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}}class Id extends ho{constructor(e=1,t=1,i=1,s=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:i,heightSegments:s};const a=e/2,l=t/2,c=Math.floor(i),f=Math.floor(s),d=c+1,h=f+1,g=e/c,v=t/f,x=[],b=[],_=[],w=[];for(let S=0;S<h;S++){const T=S*v-l;for(let M=0;M<d;M++){const C=M*g-a;b.push(C,-T,0),_.push(0,0,1),w.push(M/c),w.push(1-S/f)}}for(let S=0;S<f;S++)for(let T=0;T<c;T++){const M=T+d*S,C=T+d*(S+1),N=T+1+d*(S+1),U=T+1+d*S;x.push(M,C,U),x.push(C,N,U)}this.setIndex(x),this.setAttribute("position",new al(b,3)),this.setAttribute("normal",new al(_,3)),this.setAttribute("uv",new al(w,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Id(e.width,e.height,e.widthSegments,e.heightSegments)}}class ZI extends mu{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Dd,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 QI extends mu{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}}class bR extends _b{constructor(e=-1,t=1,i=1,s=-1,a=.1,l=2e3){super(),this.isOrthographicCamera=!0,this.type="Orthogra
148phicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=i,this.bottom=s,this.near=a,this.far=l,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),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,t,i,s,a,l){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=t,this.view.offsetX=i,this.view.offsetY=s,this.view.width=a,this.view.height=l,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,s=(this.top+this.bottom)/2;let a=i-e,l=i+e,c=s+t,f=s-t;if(this.view!==null&&this.view.enabled){const d=(this.right-this.left)/this.view.fullWidth/this.zoom,h=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a+=d*this.view.offsetX,l=a+d*this.view.width,c-=h*this.view.offsetY,f=c-h*this.view.height}this.projectionMatrix.makeOrthographic(a,l,c,f,this.near,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}class JI extends Ms{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}}class eB{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=performance.now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=performance.now();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}class Gn{constructor(e){this.value=e}clone(){return new Gn(this.value.clone===void 0?this.value:this.value.clone())}}function gT(n,e,t,i){const s=tB(i);switch(t){case rR:return n*e;case oR:return n*e/s.components*s.byteLength;case mb:return n*e/s.components*s.byteLength;case lR:return n*e*2/s.components*s.byteLength;case gb:return n*e*2/s.components*s.byteLength;case aR:return n*e*3/s.components*s.byteLength;case Hs:return n*e*4/s.components*s.byteLength;case vb:return n*e*4/s.components*s.byteLength;case Hp:case Gp:return Math.floor((n+3)/4)*Math.floor((e+3)/4)*8;case Wp:case Xp:return Math.floor((n+3)/4)*Math.floor((e+3)/4)*16;case by:case wy:return Math.max(n,16)*Math.max(e,8)/4;case _y:case Sy:return Math.max(n,8)*Math.max(e,8)/2;case Ey:case My:return Math.floor((n+3)/4)*Math.floor((e+3)/4)*8;case Ty:return Math.floor((n+3)/4)*Math.floor((e+3)/4)*16;case Ay:return Math.floor((n+3)/4)*Math.floor((e+3)/4)*16;case Cy:return Math.floor((n+4)/5)*Math.floor((e+3)/4)*16;case Ry:return Math.floor((n+4)/5)*Math.floor((e+4)/5)*16;case Ny:return Math.floor((n+5)/6)*Math.floor((e+4)/5)*16;case Dy:return Math.floor((n+5)/6)*Math.floor((e+5)/6)*16;case Py:return Math.floor((n+7)/8)*Math.floor((e+4)/5)*16;case Ly:return Math.floor((n+7)/8)*Math.floor((e+5)/6)*16;case Oy:return Math.floor((n+7)/8)*Math.floor((e+7)/8)*16;case Uy:return Math.floor((n+9)/10)*Math.floor((e+4)/5)*16;case Iy:return Math.floor((n+9)/10)*Math.floor((e+5)/6)*16;case By:return Math.floor((n+9)/10)*Math.floor((e+7)/8)*16;case Fy:return Math.floor((n+9)/10)*Math.floor((e+9)/10)*16;case zy:return Math.floor((n+11)/12)*Math.floor((e+9)/10)*16;case jy:return Math.floor((n+11)/12)*Math.floor((e+11)/12)*16;case ky:case Vy:case Hy:return Math.ceil(n/4)*Math.ceil(e/4)*16;case Gy:case Wy:return Math.ceil(n/4)*Math.ceil(e/4)*8;case Xy:case qy:return Math.ceil(n/4)*Math.ceil(e/4)*16}throw new Error(`Unable to determine texture byte length for ${t} format.`)}function tB(n){switch(n){case as:case tR:return{byteLength:1,components:1};case fd:case nR:case Nd:return{byteLength:2,components:1};case hb:case pb:return{byteLength:2,components:4};case so:case db:case ta:return{byteLength:4,components:1};case iR:case sR:return{byteLength:4,components:3}}throw new Error(`Unknown texture type ${n}.`)}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:Ym}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=Ym);function SR(){let n=null,e=!1,t=null,i=null;function s(a,l){t(a,l),i=n.requestAnimationFrame(s)}return{start:function(){e!==!0&&t!==null&&(i=n.requestAnimationFrame(s),e=!0)},stop:function(){n.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(a){t=a},setContext:function(a){n=a}}}function nB(n){const e=new WeakMap;function t(c,f){const d=c.array,h=c.usage,g=d.byteLength,v=n.createBuffer();n.bindBuffer(f,v),n.bufferData(f,d,h),c.onUploadCallback();let x;if(d instanceof Float32Array)x=n.FLOAT;else if(typeof Float16Array<"u"&&d instanceof Float16Array)x=n.HALF_FLOAT;else if(d instanceof Uint16Array)c.isFloat16BufferAttribute?x=n.HALF_FLOAT:x=n.UNSIGNED_SHORT;else if(d instanceof Int16Array)x=n.SHORT;else if(d instanceof Uint32Array)x=n.UNSIGNED_INT;else if(d instanceof Int32Array)x=n.INT;else if(d instanceof Int8Array)x=n.BYTE;else if(d instanceof Uint8Array)x=n.UNSIGNED_BYTE;else if(d instanceof Uint8ClampedArray)x=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+d);return{buffer:v,type:x,bytesPerElement:d.BYTES_PER_ELEMENT,version:c.version,size:g}}function i(c,f,d){const h=f.array,g=f.updateRanges;if(n.bindBuffer(d,c),g.length===0)n.bufferSubData(d,0,h);else{g.sort((x,b)=>x.start-b.start);let v=0;for(let x=1;x<g.length;x++){const b=g[v],_=g[x];_.start<=b.start+b.count+1?b.count=Math.max(b.count,_.start+_.count-b.start):(++v,g[v]=_)}g.length=v+1;for(let x=0,b=g.length;x<b;x++){const _=g[x];n.bufferSubData(d,_.start*h.BYTES_PER_ELEMENT,h,_.start,_.count)}f.clearUpdateRanges()}f.onUploadCallback()}function s(c){return c.isInterleavedBufferAttribute&&(c=c.data),e.get(c)}function a(c){c.isInterleavedBufferAttribute&&(c=c.data);const f=e.get(c);f&&(n.deleteBuffer(f.buffer),e.delete(c))}function l(c,f){if(c.isInterleavedBufferAttribute&&(c=c.data),c.isGLBufferAttribute){const h=e.get(c);(!h||h.version<c.version)&&e.set(c,{buffer:c.buffer,type:c.type,bytesPerElement:c.elementSize,version:c.version});return}const d=e.get(c);if(d===void 0)e.set(c,t(c,f));else if(d.version<c.version){if(d.size!==c.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.");i(d.buffer,c,f),d.version=c.version}}return{get:s,remove:a,update:l}}var iB=`#ifdef USE_ALPHAHASH 149 if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard; 150#endif`,sB=`#ifdef USE_ALPHAHASH 151 const float ALPHA_HASH_SCALE = 0.05; 152 float hash2D( vec2 value ) { 153 return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) ); 154 } 155 float hash3D( vec3 value ) { 156 return hash2D( vec2( hash2D( value.xy ), value.z ) ); 157 } 158 float getAlphaHashThreshold( vec3 position ) { 159 float maxDeriv = max( 160 length( dFdx( position.xyz ) ), 161 length( dFdy( position.xyz ) ) 162 ); 163 float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv ); 164 vec2 pixScales = vec2( 165 exp2( floor( log2( pixScale ) ) ), 166 exp2( ceil( log2( pixScale ) ) ) 167 ); 168 vec2 alpha = vec2( 169 hash3D( floor( pixScales.x * position.xyz ) ), 170 hash3D( floor( pixScales.y * position.xyz ) ) 171 ); 172 float lerpFactor = fract( log2( pixScale ) ); 173 float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y; 174 float a = min( lerpFactor, 1.0 - lerpFactor ); 175 vec3 cases = vec3( 176 x * x / ( 2.0 * a * ( 1.0 - a ) ), 177 ( x - 0.5 * a ) / ( 1.0 - a ), 178 1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) ) 179 ); 180 float threshold = ( x < ( 1.0 - a ) ) 181 ? ( ( x < a ) ? cases.x : cases.y ) 182 : cases.z; 183 return clamp( threshold , 1.0e-6, 1.0 ); 184 } 185#endif`,rB=`#ifdef USE_ALPHAMAP 186 diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g; 187#endif`,aB=`#ifdef USE_ALPHAMAP 188 uniform sampler2D alphaMap; 189#endif`,oB=`#ifdef USE_ALPHATEST 190 #ifdef ALPHA_TO_COVERAGE 191 diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a ); 192 if ( diffuseColor.a == 0.0 ) discard; 193 #else 194 if ( diffuseColor.a < alphaTest ) discard; 195 #endif 196#endif`,lB=`#ifdef USE_ALPHATEST 197 uniform float alphaTest; 198#endif`,cB=`#ifdef USE_AOMAP 199 float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0; 200 reflectedLight.indirectDiffuse *= ambientOcclusion; 201 #if defined( USE_CLEARCOAT ) 202 clearcoatSpecularIndirect *= ambientOcclusion; 203 #endif 204 #if defined( USE_SHEEN ) 205 sheenSpecularIndirect *= ambientOcclusion; 206 #endif 207 #if defined( USE_ENVMAP ) && defined( STANDARD )
208 float dotNV = saturate( dot( geometryNormal, geometryViewDir ) ); 209 reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness ); 210 #endif 211#endif`,uB=`#ifdef USE_AOMAP 212 uniform sampler2D aoMap; 213 uniform float aoMapIntensity; 214#endif`,fB=`#ifdef USE_BATCHING 215 #if ! defined( GL_ANGLE_multi_draw ) 216 #define gl_DrawID _gl_DrawID 217 uniform int _gl_DrawID; 218 #endif 219 uniform highp sampler2D batchingTexture; 220 uniform highp usampler2D batchingIdTexture; 221 mat4 getBatchingMatrix( const in float i ) { 222 int size = textureSize( batchingTexture, 0 ).x; 223 int j = int( i ) * 4; 224 int x = j % size; 225 int y = j / size; 226 vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 ); 227 vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 ); 228 vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 ); 229 vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 ); 230 return mat4( v1, v2, v3, v4 ); 231 } 232 float getIndirectIndex( const in int i ) { 233 int size = textureSize( batchingIdTexture, 0 ).x; 234 int x = i % size; 235 int y = i / size; 236 return float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r ); 237 } 238#endif 239#ifdef USE_BATCHING_COLOR 240 uniform sampler2D batchingColorTexture; 241 vec3 getBatchingColor( const in float i ) { 242 int size = textureSize( batchingColorTexture, 0 ).x; 243 int j = int( i ); 244 int x = j % size; 245 int y = j / size; 246 return texelFetch( batchingColorTexture, ivec2( x, y ), 0 ).rgb; 247 } 248#endif`,dB=`#ifdef USE_BATCHING 249 mat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) ); 250#endif`,hB=`vec3 transformed = vec3( position ); 251#ifdef USE_ALPHAHASH 252 vPosition = vec3( position ); 253#endif`,pB=`vec3 objectNormal = vec3( normal ); 254#ifdef USE_TANGENT 255 vec3 objectTangent = vec3( tangent.xyz ); 256#endif`,mB=`float G_BlinnPhong_Implicit( ) { 257 return 0.25; 258} 259float D_BlinnPhong( const in float shininess, const in float dotNH ) { 260 return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess ); 261} 262vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) { 263 vec3 halfDir = normalize( lightDir + viewDir ); 264 float dotNH = saturate( dot( normal, halfDir ) ); 265 float dotVH = saturate( dot( viewDir, halfDir ) ); 266 vec3 F = F_Schlick( specularColor, 1.0, dotVH ); 267 float G = G_BlinnPhong_Implicit( ); 268 float D = D_BlinnPhong( shininess, dotNH ); 269 return F * ( G * D ); 270} // validated`,gB=`#ifdef USE_IRIDESCENCE 271 const mat3 XYZ_TO_REC709 = mat3( 272 3.2404542, -0.9692660, 0.0556434, 273 -1.5371385, 1.8760108, -0.2040259, 274 -0.4985314, 0.0415560, 1.0572252 275 ); 276 vec3 Fresnel0ToIor( vec3 fresnel0 ) { 277 vec3 sqrtF0 = sqrt( fresnel0 ); 278 return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 ); 279 } 280 vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) { 281 return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) ); 282 } 283 float IorToFresnel0( float transmittedIor, float incidentIor ) { 284 return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor )); 285 } 286 vec3 evalSensitivity( float OPD, vec3 shift ) { 287 float phase = 2.0 * PI * OPD * 1.0e-9; 288 vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 ); 289 vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 ); 290 vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 ); 291 vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var ); 292 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 ) ); 293 xyz /= 1.0685e-7; 294 vec3 rgb = XYZ_TO_REC709 * xyz; 295 return rgb; 296 } 297 vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) { 298 vec3 I; 299 float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) ); 300 float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) ); 301 float cosTheta2Sq = 1.0 - sinTheta2Sq; 302 if ( cosTheta2Sq < 0.0 ) { 303 return vec3( 1.0 ); 304 } 305 float cosTheta2 = sqrt( cosTheta2Sq ); 306 float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
307 float R12 = F_Schlick( R0, 1.0, cosTheta1 ); 308 float T121 = 1.0 - R12; 309 float phi12 = 0.0; 310 if ( iridescenceIOR < outsideIOR ) phi12 = PI; 311 float phi21 = PI - phi12; 312 vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) ); vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR ); 313 vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 ); 314 vec3 phi23 = vec3( 0.0 ); 315 if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI; 316 if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI; 317 if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI; 318 float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2; 319 vec3 phi = vec3( phi21 ) + phi23; 320 vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 ); 321 vec3 r123 = sqrt( R123 ); 322 vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 ); 323 vec3 C0 = R12 + Rs; 324 I = C0; 325 vec3 Cm = Rs - T121; 326 for ( int m = 1; m <= 2; ++ m ) { 327 Cm *= r123; 328 vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi ); 329 I += Cm * Sm; 330 } 331 return max( I, vec3( 0.0 ) ); 332 } 333#endif`,vB=`#ifdef USE_BUMPMAP 334 uniform sampler2D bumpMap; 335 uniform float bumpScale; 336 vec2 dHdxy_fwd() { 337 vec2 dSTdx = dFdx( vBumpMapUv ); 338 vec2 dSTdy = dFdy( vBumpMapUv ); 339 float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x; 340 float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll; 341 float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll; 342 return vec2( dBx, dBy ); 343 } 344 vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) { 345 vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) ); 346 vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) ); 347 vec3 vN = surf_norm; 348 vec3 R1 = cross( vSigmaY, vN ); 349 vec3 R2 = cross( vN, vSigmaX ); 350 float fDet = dot( vSigmaX, R1 ) * faceDirection; 351 vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 ); 352 return normalize( abs( fDet ) * surf_norm - vGrad ); 353 } 354#endif`,xB=`#if NUM_CLIPPING_PLANES > 0 355 vec4 plane; 356 #ifdef ALPHA_TO_COVERAGE 357 float distanceToPlane, distanceGradient; 358 float clipOpacity = 1.0; 359 #pragma unroll_loop_start 360 for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { 361 plane = clippingPlanes[ i ]; 362 distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; 363 distanceGradient = fwidth( distanceToPlane ) / 2.0; 364 clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); 365 if ( clipOpacity == 0.0 ) discard; 366 } 367 #pragma unroll_loop_end 368 #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES 369 float unionClipOpacity = 1.0; 370 #pragma unroll_loop_start 371 for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { 372 plane = clippingPlanes[ i ]; 373 distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; 374 distanceGradient = fwidth( distanceToPlane ) / 2.0; 375 unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); 376 } 377 #pragma unroll_loop_end 378 clipOpacity *= 1.0 - unionClipOpacity; 379 #endif 380 diffuseColor.a *= clipOpacity; 381 if ( diffuseColor.a == 0.0 ) discard; 382 #else 383 #pragma unroll_loop_start 384 for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { 385 plane = clippingPlanes[ i ]; 386 if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; 387 } 388 #pragma unroll_loop_end 389 #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES 390 bool clipped = true; 391 #pragma unroll_loop_start 392 for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { 393 plane = clippingPlanes[ i ]; 394 clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; 395 } 396 #pragma unroll_loop_end 397 if ( clipped ) discard; 398 #endif 399 #endif 400#endif`,yB=`#if NUM_CLIPPING_PLANES > 0 401 varying vec3 vClipPosition; 402 uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; 403#endif`,_B=`#if NUM_CLIPPING_PLANES > 0 404 varying vec3 vClipPosition; 405#endif`,bB=`#if NUM_CLIPPING_PLANES > 0 406 vClipPosition = - mvPosition.xyz; 407#endif`,SB=`#if defined( USE_COLOR_ALPHA ) 408 diffuseColor *= vColor; 409#elif defined( USE_COLOR ) 410 diffuseColor.rgb *= vColor; 411#endif`,wB=`#if defined( USE_COLOR_ALPHA ) 412 varying vec4 vColor; 413#elif defined( USE_COLOR ) 414 varying vec3 vColor; 415#endif`,EB=`#if defined( USE_COLOR_ALPHA ) 416 varying vec4 vColor; 417#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) 418 varying vec3 vColor; 419#endif`,MB=`#if defined( USE_COLOR_ALPHA ) 420 vColor = vec4( 1.0 ); 421#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) 422 vColor = vec3( 1.0 ); 423#endif 424#ifdef USE_COLOR 425 vColor *= color; 426#endif 427#ifdef USE_INSTANCING_COLOR 428 vColor.xyz *= instanceColor.xyz; 429#endif 430#ifdef USE_BATCHING_COLOR 431 vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) ); 432 vColor.xyz *= batchingColor.xyz; 433#endif`,TB=`#define PI 3.141592653589793 434#define PI2 6.283185307179586 435#define PI_HALF 1.5707963267948966 436#define RECIPROCAL_PI 0.3183098861837907 437#define RECIPROCAL_PI2 0.15915494309189535 438#define EPSILON 1e-6 439#ifndef saturate 440#define saturate( a ) clamp( a, 0.0, 1.0 ) 441#endif 442#define whiteComplement( a ) ( 1.0 - saturate( a ) ) 443float pow2( const in float x ) { return x*x; } 444vec3 pow2( const in vec3 x ) { return x*x; } 445float pow3( const in float x ) { return x*x*x; } 446float pow4( const in float x ) { float x2 = x*x; return x2*x2; } 447float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } 448float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } 449highp float rand( const in vec2 uv ) { 450 const highp float a = 12.9898, b = 78.233, c = 43758.5453; 451 highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); 452 return fract( sin( sn ) * c ); 453} 454#ifdef HIGH_PRECISION 455 float precisionSafeLength( vec3 v ) { return length( v ); } 456#else 457 float precisionSafeLength( vec3 v ) { 458 float maxComponent = max3( abs( v ) ); 459 return length( v / maxComponent ) * maxComponent; 460 } 461#endif 462struct IncidentLight { 463 vec3 color; 464 vec3 direction; 465 bool visible; 466}; 467struct ReflectedLight { 468 vec3 directDiffuse; 469 vec3 directSpecular; 470 vec3 indirectDiffuse; 471 vec3 indirectSpecular; 472}; 473#ifdef USE_ALPHAHASH 474 varying vec3 vPosition; 475#endif 476vec3 transformDirection( in vec3 dir, in mat4 matrix ) { 477 return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); 478} 479vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { 480 return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); 481} 482mat3 transposeMat3( const in mat3 m ) { 483 mat3 tmp; 484 tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); 485 tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); 486 tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); 487 return tmp; 488} 489bool isPerspectiveMatrix( mat4 m ) { 490 return m[ 2 ][ 3 ] == - 1.0; 491} 492vec2 equirectUv( in vec3 dir ) { 493 float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; 494 float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; 495 return vec2( u, v ); 496}
497vec3 BRDF_Lambert( const in vec3 diffuseColor ) { 498 return RECIPROCAL_PI * diffuseColor; 499} 500vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { 501 float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); 502 return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); 503} 504float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { 505 float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); 506 return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); 507} // validated`,AB=`#ifdef ENVMAP_TYPE_CUBE_UV 508 #define cubeUV_minMipLevel 4.0 509 #define cubeUV_minTileSize 16.0 510 float getFace( vec3 direction ) { 511 vec3 absDirection = abs( direction ); 512 float face = - 1.0; 513 if ( absDirection.x > absDirection.z ) { 514 if ( absDirection.x > absDirection.y ) 515 face = direction.x > 0.0 ? 0.0 : 3.0; 516 else 517 face = direction.y > 0.0 ? 1.0 : 4.0; 518 } else { 519 if ( absDirection.z > absDirection.y ) 520 face = direction.z > 0.0 ? 2.0 : 5.0; 521 else 522 face = direction.y > 0.0 ? 1.0 : 4.0; 523 } 524 return face; 525 } 526 vec2 getUV( vec3 direction, float face ) { 527 vec2 uv; 528 if ( face == 0.0 ) { 529 uv = vec2( direction.z, direction.y ) / abs( direction.x ); 530 } else if ( face == 1.0 ) { 531 uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); 532 } else if ( face == 2.0 ) { 533 uv = vec2( - direction.x, direction.y ) / abs( direction.z ); 534 } else if ( face == 3.0 ) { 535 uv = vec2( - direction.z, direction.y ) / abs( direction.x ); 536 } else if ( face == 4.0 ) { 537 uv = vec2( - direction.x, direction.z ) / abs( direction.y ); 538 } else { 539 uv = vec2( direction.x, direction.y ) / abs( direction.z ); 540 } 541 return 0.5 * ( uv + 1.0 ); 542 } 543 vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { 544 float face = getFace( direction ); 545 float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); 546 mipInt = max( mipInt, cubeUV_minMipLevel ); 547 float faceSize = exp2( mipInt ); 548 highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; 549 if ( face > 2.0 ) { 550 uv.y += faceSize; 551 face -= 3.0; 552 } 553 uv.x += face * faceSize; 554 uv.x += filterInt * 3.0 * cubeUV_minTileSize; 555 uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); 556 uv.x *= CUBEUV_TEXEL_WIDTH; 557 uv.y *= CUBEUV_TEXEL_HEIGHT; 558 #ifdef texture2DGradEXT 559 return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; 560 #else 561 return texture2D( envMap, uv ).rgb; 562 #endif 563 } 564 #define cubeUV_r0 1.0 565 #define cubeUV_m0 - 2.0 566 #define cubeUV_r1 0.8 567 #define cubeUV_m1 - 1.0 568 #define cubeUV_r4 0.4 569 #define cubeUV_m4 2.0 570 #define cubeUV_r5 0.305 571 #define cubeUV_m5 3.0 572 #define cubeUV_r6 0.21 573 #define cubeUV_m6 4.0 574 float roughnessToMip( float roughness ) { 575 float mip = 0.0; 576 if ( roughness >= cubeUV_r1 ) { 577 mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; 578 } else if ( roughness >= cubeUV_r4 ) { 579 mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; 580 } else if ( roughness >= cubeUV_r5 ) { 581 mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; 582 } else if ( roughness >= cubeUV_r6 ) { 583 mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; 584 } else { 585 mip = - 2.0 * log2( 1.16 * roughness ); } 586 return mip; 587 } 588 vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { 589 float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); 590 float mipF = fract( mip ); 591 float mipInt = floor( mip ); 592 vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); 593 if ( mipF == 0.0 ) { 594 return vec4( color0, 1.0 ); 595 } else { 596 vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); 597 return vec4( mix( color0, color1, mipF ), 1.0 ); 598 } 599 } 600#endif`,CB=`vec3 transformedNormal = objectNormal; 601#ifdef USE_TANGENT 602 vec3 transformedTangent = objectTangent; 603#endif 604#ifdef USE_BATCHING 605 mat3 bm = mat3( batchingMatrix ); 606 transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); 607 transformedNormal = bm * transformedNormal; 608 #ifdef USE_TANGENT 609 transformedTangent = bm * transformedTangent; 610 #endif 611#endif 612#ifdef USE_INSTANCING 613 mat3 im = mat3( instanceMatrix ); 614 transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); 615 transformedNormal = im * transformedNormal; 616 #ifdef USE_TANGENT 617 transformedTangent = im * transformedTangent; 618 #endif 619#endif 620transformedNormal = normalMatrix * transformedNormal; 621#ifdef FLIP_SIDED 622 transformedNormal = - transformedNormal; 623#endif 624#ifdef USE_TANGENT 625 transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; 626 #ifdef FLIP_SIDED 627 transformedTangent = - transformedTangent; 628 #endif 629#endif`,RB=`#ifdef USE_DISPLACEMENTMAP 630 uniform sampler2D displacementMap; 631 uniform float displacementScale; 632 uniform float displacementBias; 633#endif`,NB=`#ifdef USE_DISPLACEMENTMAP 634 transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + dis
634placementBias ); 635#endif`,DB=`#ifdef USE_EMISSIVEMAP 636 vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); 637 #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE 638 emissiveColor = sRGBTransferEOTF( emissiveColor ); 639 #endif 640 totalEmissiveRadiance *= emissiveColor.rgb; 641#endif`,PB=`#ifdef USE_EMISSIVEMAP 642 uniform sampler2D emissiveMap; 643#endif`,LB="gl_FragColor = linearToOutputTexel( gl_FragColor );",OB=`vec4 LinearTransferOETF( in vec4 value ) { 644 return value; 645} 646vec4 sRGBTransferEOTF( in vec4 value ) { 647 return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); 648} 649vec4 sRGBTransferOETF( in vec4 value ) { 650 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 ); 651}`,UB=`#ifdef USE_ENVMAP 652 #ifdef ENV_WORLDPOS 653 vec3 cameraToFrag; 654 if ( isOrthographic ) { 655 cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); 656 } else { 657 cameraToFrag = normalize( vWorldPosition - cameraPosition ); 658 } 659 vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); 660 #ifdef ENVMAP_MODE_REFLECTION 661 vec3 reflectVec = reflect( cameraToFrag, worldNormal ); 662 #else 663 vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); 664 #endif 665 #else 666 vec3 reflectVec = vReflect; 667 #endif 668 #ifdef ENVMAP_TYPE_CUBE 669 vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); 670 #else 671 vec4 envColor = vec4( 0.0 ); 672 #endif 673 #ifdef ENVMAP_BLENDING_MULTIPLY 674 outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); 675 #elif defined( ENVMAP_BLENDING_MIX ) 676 outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); 677 #elif defined( ENVMAP_BLENDING_ADD ) 678 outgoingLight += envColor.xyz * specularStrength * reflectivity; 679 #endif 680#endif`,IB=`#ifdef USE_ENVMAP 681 uniform float envMapIntensity; 682 uniform float flipEnvMap; 683 uniform mat3 envMapRotation; 684 #ifdef ENVMAP_TYPE_CUBE 685 uniform samplerCube envMap; 686 #else 687 uniform sampler2D envMap; 688 #endif 689 690#endif`,BB=`#ifdef USE_ENVMAP 691 uniform float reflectivity; 692 #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) 693 #define ENV_WORLDPOS 694 #endif 695 #ifdef ENV_WORLDPOS 696 varying vec3 vWorldPosition; 697 uniform float refractionRatio; 698 #else 699 varying vec3 vReflect; 700 #endif 701#endif`,FB=`#ifdef USE_ENVMAP 702 #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) 703 #define ENV_WORLDPOS 704 #endif 705 #ifdef ENV_WORLDPOS 706 707 varying vec3 vWorldPosition; 708 #else 709 varying vec3 vReflect; 710 uniform float refractionRatio; 711 #endif 712#endif`,zB=`#ifdef USE_ENVMAP 713 #ifdef ENV_WORLDPOS 714 vWorldPosition = worldPosition.xyz; 715 #else 716 vec3 cameraToVertex; 717 if ( isOrthographic ) { 718 cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); 719 } else {
720 cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); 721 } 722 vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); 723 #ifdef ENVMAP_MODE_REFLECTION 724 vReflect = reflect( cameraToVertex, worldNormal ); 725 #else 726 vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); 727 #endif 728 #endif 729#endif`,jB=`#ifdef USE_FOG 730 vFogDepth = - mvPosition.z; 731#endif`,kB=`#ifdef USE_FOG 732 varying float vFogDepth; 733#endif`,VB=`#ifdef USE_FOG 734 #ifdef FOG_EXP2 735 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); 736 #else 737 float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); 738 #endif 739 gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); 740#endif`,HB=`#ifdef USE_FOG 741 uniform vec3 fogColor; 742 varying float vFogDepth; 743 #ifdef FOG_EXP2 744 uniform float fogDensity; 745 #else 746 uniform float fogNear; 747 uniform float fogFar; 748 #endif 749#endif`,GB=`#ifdef USE_GRADIENTMAP 750 uniform sampler2D gradientMap; 751#endif 752vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { 753 float dotNL = dot( normal, lightDirection ); 754 vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); 755 #ifdef USE_GRADIENTMAP 756 return vec3( texture2D( gradientMap, coord ).r ); 757 #else 758 vec2 fw = fwidth( coord ) * 0.5; 759 return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); 760 #endif 761}`,WB=`#ifdef USE_LIGHTMAP 762 uniform sampler2D lightMap; 763 uniform float lightMapIntensity; 764#endif`,XB=`LambertMaterial material; 765material.diffuseColor = diffuseColor.rgb; 766material.specularStrength = specularStrength;`,qB=`varying vec3 vViewPosition; 767struct LambertMaterial { 768 vec3 diffuseColor; 769 float specularStrength; 770}; 771void 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 ) { 772 float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); 773 vec3 irradiance = dotNL * directLight.color; 774 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 775} 776void 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 ) { 777 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 778} 779#define RE_Direct RE_Direct_Lambert 780#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,YB=`uniform bool receiveShadow; 781uniform vec3 ambientLightColor; 782#if defined( USE_LIGHT_PROBES ) 783 uniform vec3 lightProbe[ 9 ]; 784#endif 785vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { 786 float x = normal.x, y = normal.y, z = normal.z; 787 vec3 result = shCoefficients[ 0 ] * 0.886227; 788 result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; 789 result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; 790 result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; 791 result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; 792 result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; 793 result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); 794 result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; 795 result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); 796 return result; 797} 798vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { 799 vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); 800 vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); 801 return irradiance; 802} 803vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { 804 vec3 irradiance = ambientLightColor; 805 return irradiance; 806} 807float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { 808 float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); 809 if ( cutoffDistance > 0.0 ) { 810 distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); 811 } 812 return distanceFalloff; 813} 814float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { 815 return smoothstep( coneCosine, penumbraCosine, angleCosine ); 816} 817#if NUM_DIR_LIGHTS > 0 818 struct DirectionalLight { 819 vec3 direction; 820 vec3 color; 821 }; 822 uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; 823 void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { 824 light.color = directionalLight.color; 825 light.direction = directionalLight.direction; 826 light.visible = true; 827 } 828#endif 829#if NUM_POINT_LIGHTS > 0 830 struct PointLight { 831 vec3 position; 832 vec3 color; 833 float distance; 834 float decay; 835 }; 836 uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; 837 void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { 838 vec3 lVector = pointLight.position - geometryPosition; 839 light.direction = normalize( lVector ); 840 float lightDistance = length( lVector ); 841 light.color = pointLight.color; 842 light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); 843 light.visible = ( light.color != vec3( 0.0 ) ); 844 } 845#endif
846#if NUM_SPOT_LIGHTS > 0 847 struct SpotLight { 848 vec3 position; 849 vec3 direction; 850 vec3 color; 851 float distance; 852 float decay; 853 float coneCos; 854 float penumbraCos; 855 }; 856 uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; 857 void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { 858 vec3 lVector = spotLight.position - geometryPosition; 859 light.direction = normalize( lVector ); 860 float angleCos = dot( light.direction, spotLight.direction ); 861 float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); 862 if ( spotAttenuation > 0.0 ) { 863 float lightDistance = length( lVector ); 864 light.color = spotLight.color * spotAttenuation; 865 light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); 866 light.visible = ( light.color != vec3( 0.0 ) ); 867 } else { 868 light.color = vec3( 0.0 ); 869 light.visible = false; 870 } 871 } 872#endif 873#if NUM_RECT_AREA_LIGHTS > 0 874 struct RectAreaLight { 875 vec3 color; 876 vec3 position; 877 vec3 halfWidth; 878 vec3 halfHeight; 879 }; 880 uniform sampler2D ltc_1; uniform sampler2D ltc_2; 881 uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; 882#endif 883#if NUM_HEMI_LIGHTS > 0 884 struct HemisphereLight { 885 vec3 direction; 886 vec3 skyColor; 887 vec3 groundColor; 888 }; 889 uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; 890 vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { 891 float dotNL = dot( normal, hemiLight.direction ); 892 float hemiDiffuseWeight = 0.5 * dotNL + 0.5; 893 vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); 894 return irradiance; 895 } 896#endif`,$B=`#ifdef USE_ENVMAP 897 vec3 getIBLIrradiance( const in vec3 normal ) { 898 #ifdef ENVMAP_TYPE_CUBE_UV 899 vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); 900 vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); 901 return PI * envMapColor.rgb * envMapIntensity; 902 #else 903 return vec3( 0.0 ); 904 #endif 905 } 906 vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { 907 #ifdef ENVMAP_TYPE_CUBE_UV 908 vec3 reflectVec = reflect( - viewDir, normal ); 909 reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); 910 reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); 911 vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); 912 return envMapColor.rgb * envMapIntensity; 913 #else 914 return vec3( 0.0 ); 915 #endif 916 } 917 #ifdef USE_ANISOTROPY 918 vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { 919 #ifdef ENVMAP_TYPE_CUBE_UV 920 vec3 bentNormal = cross( bitangent, viewDir ); 921 bentNormal = normalize( cross( bentNormal, bitangent ) ); 922 bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); 923 return getIBLRadiance( viewDir, bentNormal, roughness ); 924 #else 925 return vec3( 0.0 ); 926 #endif 927 } 928 #endif 929#endif`,KB=`ToonMaterial material; 930material.diffuseColor = diffuseColor.rgb;`,ZB=`varying vec3 vViewPosition; 931struct ToonMaterial { 932 vec3 diffuseColor; 933}; 934void 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 ) { 935 vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; 936 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 937} 938void 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 ) { 939 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 940} 941#define RE_Direct RE_Direct_Toon 942#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,QB=`BlinnPhongMaterial material; 943material.diffuseColor = diffuseColor.rgb; 944material.specularColor = specular; 945material.specularShininess = shininess; 946material.specularStrength = specularStrength;`,JB=`varying vec3 vViewPosition; 947struct BlinnPhongMaterial { 948 vec3 diffuseColor; 949 vec3 specularColor; 950 float specularShininess; 951 float specularStrength; 952}; 953void 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 ) {
954 float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); 955 vec3 irradiance = dotNL * directLight.color; 956 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 957 reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; 958} 959void 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 ) { 960 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 961} 962#define RE_Direct RE_Direct_BlinnPhong 963#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,eF=`PhysicalMaterial material; 964material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); 965vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); 966float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); 967material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; 968material.roughness = min( material.roughness, 1.0 ); 969#ifdef IOR 970 material.ior = ior; 971 #ifdef USE_SPECULAR 972 float specularIntensityFactor = specularIntensity; 973 vec3 specularColorFactor = specularColor; 974 #ifdef USE_SPECULAR_COLORMAP 975 specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; 976 #endif 977 #ifdef USE_SPECULAR_INTENSITYMAP 978 specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; 979 #endif 980 material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); 981 #else 982 float specularIntensityFactor = 1.0; 983 vec3 specularColorFactor = vec3( 1.0 ); 984 material.specularF90 = 1.0; 985 #endif 986 material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); 987#else 988 material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); 989 material.specularF90 = 1.0; 990#endif 991#ifdef USE_CLEARCOAT 992 material.clearcoat = clearcoat; 993 material.clearcoatRoughness = clearcoatRoughness; 994 material.clearcoatF0 = vec3( 0.04 ); 995 material.clearcoatF90 = 1.0; 996 #ifdef USE_CLEARCOATMAP 997 material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; 998 #endif 999 #ifdef USE_CLEARCOAT_ROUGHNESSMAP 1000 material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; 1001 #endif 1002 material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); 1003 material.clearcoatRoughness += geometryRoughness; 1004 material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); 1005#endif 1006#ifdef USE_DISPERSION 1007 material.dispersion = dispersion; 1008#endif 1009#ifdef USE_IRIDESCENCE 1010 material.iridescence = iridescence; 1011 material.iridescenceIOR = iridescenceIOR; 1012 #ifdef USE_IRIDESCENCEMAP 1013 material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; 1014 #endif 1015 #ifdef USE_IRIDESCENCE_THICKNESSMAP 1016 material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; 1017 #else 1018 material.iridescenceThickness = iridescenceThicknessMaximum; 1019 #endif 1020#endif 1021#ifdef USE_SHEEN 1022 material.sheenColor = sheenColor; 1023 #ifdef USE_SHEEN_COLORMAP 1024 material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; 1025 #endif 1026 material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); 1027 #ifdef USE_SHEEN_ROUGHNESSMAP 1028 material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; 1029 #endif 1030#endif 1031#ifdef USE_ANISOTROPY 1032 #ifdef USE_ANISOTROPYMAP 1033 mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); 1034 vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; 1035 vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; 1036 #else 1037 vec2 anisotropyV = anisotropyVector; 1038 #endif 1039 material.anisotropy = length( anisotropyV ); 1040 if( material.anisotropy == 0.0 ) { 1041 anisotropyV = vec2( 1.0, 0.0 ); 1042 } else { 1043 anisotropyV /= material.anisotropy; 1044 material.anisotropy = saturate( material.anisotropy ); 1045 } 1046 material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
1047 material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; 1048 material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; 1049#endif`,tF
vendor: 14,687 bytes, lines 1049-1350
1049=`struct PhysicalMaterial { 1050 vec3 diffuseColor; 1051 float roughness; 1052 vec3 specularColor; 1053 float specularF90; 1054 float dispersion; 1055 #ifdef USE_CLEARCOAT 1056 float clearcoat; 1057 float clearcoatRoughness; 1058 vec3 clearcoatF0; 1059 float clearcoatF90; 1060 #endif 1061 #ifdef USE_IRIDESCENCE 1062 float iridescence; 1063 float iridescenceIOR; 1064 float iridescenceThickness; 1065 vec3 iridescenceFresnel; 1066 vec3 iridescenceF0; 1067 #endif 1068 #ifdef USE_SHEEN 1069 vec3 sheenColor; 1070 float sheenRoughness; 1071 #endif 1072 #ifdef IOR 1073 float ior; 1074 #endif 1075 #ifdef USE_TRANSMISSION 1076 float transmission; 1077 float transmissionAlpha; 1078 float thickness; 1079 float attenuationDistance; 1080 vec3 attenuationColor; 1081 #endif 1082 #ifdef USE_ANISOTROPY 1083 float anisotropy; 1084 float alphaT; 1085 vec3 anisotropyT; 1086 vec3 anisotropyB; 1087 #endif 1088}; 1089vec3 clearcoatSpecularDirect = vec3( 0.0 ); 1090vec3 clearcoatSpecularIndirect = vec3( 0.0 ); 1091vec3 sheenSpecularDirect = vec3( 0.0 ); 1092vec3 sheenSpecularIndirect = vec3(0.0 ); 1093vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { 1094 float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); 1095 float x2 = x * x; 1096 float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); 1097 return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); 1098} 1099float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { 1100 float a2 = pow2( alpha ); 1101 float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); 1102 float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); 1103 return 0.5 / max( gv + gl, EPSILON ); 1104} 1105float D_GGX( const in float alpha, const in float dotNH ) { 1106 float a2 = pow2( alpha ); 1107 float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; 1108 return RECIPROCAL_PI * a2 / pow2( denom ); 1109} 1110#ifdef USE_ANISOTROPY 1111 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 ) { 1112 float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); 1113 float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); 1114 float v = 0.5 / ( gv + gl ); 1115 return saturate(v); 1116 } 1117 float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { 1118 float a2 = alphaT * alphaB; 1119 highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); 1120 highp float v2 = dot( v, v ); 1121 float w2 = a2 / v2; 1122 return RECIPROCAL_PI * a2 * pow2 ( w2 ); 1123 } 1124#endif 1125#ifdef USE_CLEARCOAT 1126 vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { 1127 vec3 f0 = material.clearcoatF0; 1128 float f90 = material.clearcoatF90; 1129 float roughness = material.clearcoatRoughness; 1130 float alpha = pow2( roughness ); 1131 vec3 halfDir = normalize( lightDir + viewDir ); 1132 float dotNL = saturate( dot( normal, lightDir ) ); 1133 float dotNV = saturate( dot( normal, viewDir ) ); 1134 float dotNH = saturate( dot( normal, halfDir ) ); 1135 float dotVH = saturate( dot( viewDir, halfDir ) ); 1136 vec3 F = F_Schlick( f0, f90, dotVH ); 1137 float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); 1138 float D = D_GGX( alpha, dotNH ); 1139 return F * ( V * D ); 1140 } 1141#endif 1142vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { 1143 vec3 f0 = material.specularColor; 1144 float f90 = material.specularF90; 1145 float roughness = material.roughness; 1146 float alpha = pow2( roughness ); 1147 vec3 halfDir = normalize( lightDir + viewDir ); 1148 float dotNL = saturate( dot( normal, lightDir ) ); 1149 float dotNV = saturate( dot( normal, viewDir ) ); 1150 float dotNH = saturate( dot( normal, halfDir ) ); 1151 float dotVH = saturate( dot( viewDir, halfDir ) ); 1152 vec3 F = F_Schlick( f0, f90, dotVH ); 1153 #ifdef USE_IRIDESCENCE 1154 F = mix( F, material.iridescenceFresnel, material.iridescence ); 1155 #endif 1156 #ifdef USE_ANISOTROPY 1157 float dotTL = dot( material.anisotropyT, lightDir ); 1158 float dotTV = dot( material.anisotropyT, viewDir ); 1159 float dotTH = dot( material.anisotropyT, halfDir ); 1160 float dotBL = dot( material.anisotropyB, lightDir ); 1161 float dotBV = dot( material.anisotropyB, viewDir ); 1162 float dotBH = dot( material.anisotropyB, halfDir ); 1163 float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); 1164 float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); 1165 #else 1166 float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); 1167 float D = D_GGX( alpha, dotNH ); 1168 #endif 1169 return F * ( V * D ); 1170} 1171vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { 1172 const float LUT_SIZE = 64.0; 1173 const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; 1174 const float LUT_BIAS = 0.5 / LUT_SIZE; 1175 float dotNV = saturate( dot( N, V ) ); 1176 vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); 1177 uv = uv * LUT_SCALE + LUT_BIAS; 1178 return uv; 1179} 1180float LTC_ClippedSphereFormFactor( const in vec3 f ) { 1181 float l = length( f ); 1182 return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); 1183} 1184vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { 1185 float x = dot( v1, v2 ); 1186 float y = abs( x ); 1187 float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; 1188 float b = 3.4175940 + ( 4.1616724 + y ) * y; 1189 float v = a / b; 1190 float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; 1191 return cross( v1, v2 ) * theta_sintheta; 1192} 1193vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { 1194 vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; 1195 vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; 1196 vec3 lightNormal = cross( v1, v2 ); 1197 if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); 1198 vec3 T1, T2; 1199 T1 = normalize( V - N * dot( V, N ) ); 1200 T2 = - cross( N, T1 ); 1201 mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); 1202 vec3 coords[ 4 ]; 1203 coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); 1204 coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); 1205 coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); 1206 coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); 1207 coords[ 0 ] = normalize( coords[ 0 ] ); 1208 coords[ 1 ] = normalize( coords[ 1 ] ); 1209 coords[ 2 ] = normalize( coords[ 2 ] ); 1210 coords[ 3 ] = normalize( coords[ 3 ] ); 1211 vec3 vectorFormFactor = vec3( 0.0 ); 1212 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); 1213 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); 1214 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); 1215 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); 1216 float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); 1217 return vec3( result ); 1218} 1219#if defined( USE_SHEEN ) 1220float D_Charlie( float roughness, float dotNH ) { 1221 float alpha = pow2( roughness ); 1222 float invAlpha = 1.0 / alpha; 1223 float cos2h = dotNH * dotNH; 1224 float sin2h = max( 1.0 - cos2h, 0.0078125 ); 1225 return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); 1226} 1227float V_Neubelt( float dotNV, float dotNL ) { 1228 return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); 1229} 1230vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { 1231 vec3 halfDir = normalize( lightDir + viewDir ); 1232 float dotNL = saturate( dot( normal, lightDir ) ); 1233 float dotNV = saturate( dot( normal, viewDir ) ); 1234 float dotNH = saturate( dot( normal, halfDir ) ); 1235 float D = D_Charlie( sheenRoughness, dotNH ); 1236 float V = V_Neubelt( dotNV, dotNL ); 1237 return sheenColor * ( D * V ); 1238} 1239#endif 1240float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { 1241 float dotNV = saturate( dot( normal, viewDir ) ); 1242 float r2 = roughness * roughness; 1243 float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; 1244 float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; 1245 float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); 1246 return saturate( DG * RECIPROCAL_PI ); 1247} 1248vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { 1249 float dotNV = saturate( dot( normal, viewDir ) ); 1250 const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); 1251 const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); 1252 vec4 r = roughness * c0 + c1; 1253 float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; 1254 vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; 1255 return fab; 1256} 1257vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { 1258 vec2 fab = DFGApprox( normal, viewDir, roughness ); 1259 return specularColor * fab.x + specularF90 * fab.y; 1260} 1261#ifdef USE_IRIDESCENCE 1262void 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 ) { 1263#else 1264void 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 ) { 1265#endif 1266 vec2 fab = DFGApprox( normal, viewDir, roughness ); 1267 #ifdef USE_IRIDESCENCE 1268 vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); 1269 #else 1270 vec3 Fr = specularColor; 1271 #endif 1272 vec3 FssEss = Fr * fab.x + specularF90 * fab.y; 1273 float Ess = fab.x + fab.y; 1274 float Ems = 1.0 - Ess; 1275 vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); 1276 singleScatter += FssEss; 1277 multiScatter += Fms * Ems; 1278} 1279#if NUM_RECT_AREA_LIGHTS > 0 1280 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 ) { 1281 vec3 normal = geometryNormal; 1282 vec3 viewDir = geometryViewDir; 1283 vec3 position = geometryPosition; 1284 vec3 lightPos = rectAreaLight.position; 1285 vec3 halfWidth = rectAreaLight.halfWidth; 1286 vec3 halfHeight = rectAreaLight.halfHeight; 1287 vec3 lightColor = rectAreaLight.color; 1288 float roughness = material.roughness; 1289 vec3 rectCoords[ 4 ]; 1290 rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; 1291 rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; 1292 rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; 1293 vec2 uv = LTC_Uv( normal, viewDir, roughness ); 1294 vec4 t1 = texture2D( ltc_1, uv ); 1295 vec4 t2 = texture2D( ltc_2, uv ); 1296 mat3 mInv = mat3( 1297 vec3( t1.x, 0, t1.y ), 1298 vec3( 0, 1, 0 ), 1299 vec3( t1.z, 0, t1.w ) 1300 ); 1301 vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); 1302 reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); 1303 reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); 1304 } 1305#endif 1306void 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 ) { 1307 float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); 1308 vec3 irradiance = dotNL * directLight.color; 1309 #ifdef USE_CLEARCOAT 1310 float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); 1311 vec3 ccIrradiance = dotNLcc * directLight.color; 1312 clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); 1313 #endif 1314 #ifdef USE_SHEEN 1315 sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); 1316 #endif 1317 reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); 1318 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 1319} 1320void 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 ) { 1321 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 1322} 1323void 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) { 1324 #ifdef USE_CLEARCOAT 1325 clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); 1326 #endif 1327 #ifdef USE_SHEEN 1328 sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); 1329 #endif 1330 vec3 singleScattering = vec3( 0.0 ); 1331 vec3 multiScattering = vec3( 0.0 ); 1332 vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; 1333 #ifdef USE_IRIDESCENCE 1334 computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); 1335 #else 1336 computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); 1337 #endif 1338 vec3 totalScattering = singleScattering + multiScattering; 1339 vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); 1340 reflectedLight.indirectSpecular += radiance * singleScattering; 1341 reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; 1342 reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; 1343} 1344#define RE_Direct RE_Direct_Physical 1345#define RE_Direct_RectArea RE_Direct_RectArea_Physical 1346#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical 1347#define RE_IndirectSpecular RE_IndirectSpecular_Physical 1348float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { 1349 return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); 1350}`,
1350nF=` 1351vec3 geometryPosition = - vViewPosition; 1352vec3 geometryNormal = normal; 1353vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); 1354vec3 geometryClearcoatNormal = vec3( 0.0 ); 1355#ifdef USE_CLEARCOAT 1356 geometryClearcoatNormal = clearcoatNormal; 1357#endif 1358#ifdef USE_IRIDESCENCE 1359 float dotNVi = saturate( dot( normal, geometryViewDir ) ); 1360 if ( material.iridescenceThickness == 0.0 ) { 1361 material.iridescence = 0.0; 1362 } else { 1363 material.iridescence = saturate( material.iridescence ); 1364 } 1365 if ( material.iridescence > 0.0 ) { 1366 material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); 1367 material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); 1368 } 1369#endif 1370IncidentLight directLight; 1371#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) 1372 PointLight pointLight; 1373 #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 1374 PointLightShadow pointLightShadow; 1375 #endif 1376 #pragma unroll_loop_start 1377 for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { 1378 pointLight = pointLights[ i ]; 1379 getPointLightInfo( pointLight, geometryPosition, directLight ); 1380 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) 1381 pointLightShadow = pointLightShadows[ i ]; 1382 directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; 1383 #endif 1384 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1385 } 1386 #pragma unroll_loop_end 1387#endif 1388#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) 1389 SpotLight spotLight; 1390 vec4 spotColor; 1391 vec3 spotLightCoord; 1392 bool inSpotLightMap; 1393 #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 1394 SpotLightShadow spotLightShadow; 1395 #endif 1396 #pragma unroll_loop_start 1397 for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { 1398 spotLight = spotLights[ i ]; 1399 getSpotLightInfo( spotLight, geometryPosition, directLight ); 1400 #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) 1401 #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX 1402 #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) 1403 #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS 1404 #else 1405 #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) 1406 #endif 1407 #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) 1408 spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; 1409 inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); 1410 spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); 1411 directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; 1412 #endif 1413 #undef SPOT_LIGHT_MAP_INDEX 1414 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) 1415 spotLightShadow = spotLightShadows[ i ]; 1416 directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; 1417 #endif 1418 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1419 } 1420 #pragma unroll_loop_end 1421#endif 1422#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) 1423 DirectionalLight directionalLight; 1424 #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 1425 DirectionalLightShadow directionalLightShadow; 1426 #endif 1427 #pragma unroll_loop_start 1428 for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { 1429 directionalLight = directionalLights[ i ]; 1430 getDirectionalLightInfo( directionalLight, directLight ); 1431 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) 1432 directionalLightShadow = directionalLightShadows[ i ]; 1433 directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; 1434 #endif 1435 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1436 } 1437 #pragma unroll_loop_end 1438#endif 1439#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) 1440 RectAreaLight rectAreaLight; 1441 #pragma unroll_loop_start 1442 for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { 1443 rectAreaLight = rectAreaLights[ i ]; 1444 RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1445 } 1446 #pragma unroll_loop_end 1447#endif 1448#if defined( RE_IndirectDiffuse ) 1449 vec3 iblIrradiance = vec3( 0.0 ); 1450 vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); 1451 #if defined( USE_LIGHT_PROBES ) 1452 irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); 1453 #endif 1454 #if ( NUM_HEMI_LIGHTS > 0 ) 1455 #pragma unroll_loop_start 1456 for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { 1457 irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); 1458 } 1459 #pragma unroll_loop_end 1460 #endif 1461#endif 1462#if defined( RE_IndirectSpecular ) 1463 vec3 radiance = vec3( 0.0 ); 1464 vec3 clearcoatRadiance = vec3( 0.0 ); 1465#endif`,iF=`#if defined( RE_IndirectDiffuse ) 1466 #ifdef USE_LIGHTMAP 1467 vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); 1468 vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; 1469 irradiance += lightMapIrradiance; 1470 #endif 1471 #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) 1472 iblIrradiance += getIBLIrradiance( geometryNormal ); 1473 #endif 1474#endif 1475#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) 1476 #ifdef USE_ANISOTROPY 1477 radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); 1478 #else 1479 radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); 1480 #endif 1481 #ifdef USE_CLEARCOAT 1482 clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); 1483 #endif 1484#endif`,sF=`#if defined( RE_IndirectDiffuse ) 1485 RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1486#endif 1487#if defined( RE_IndirectSpecular ) 1488 RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1489#endif`,rF=`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) 1490 gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; 1491#endif`,aF=`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) 1492 uniform float logDepthBufFC; 1493 varying float vFragDepth; 1494 varying float vIsPerspective; 1495#endif`,oF=`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER 1496 varying float vFragDepth; 1497 varying float vIsPerspective; 1498#endif`,lF=`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER 1499 vFragDepth = 1.0 + gl_Position.w; 1500 vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); 1501#endif`,cF=`#ifdef USE_MAP 1502 vec4 sampledDiffuseColor = texture2D( map, vMapUv ); 1503 #ifdef DECODE_VIDEO_TEXTURE 1504 sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); 1505 #endif 1506 diffuseColor *= sampledDiffuseColor; 1507#endif`,uF=`#ifdef USE_MAP 1508 uniform sampler2D map; 1509#endif`,fF=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) 1510 #if defined( USE_POINTS_UV ) 1511 vec2 uv = vUv; 1512 #else 1513 vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; 1514 #endif 1515#endif 1516#ifdef USE_MAP 1517 diffuseColor *= texture2D( map, uv ); 1518#endif 1519#ifdef USE_ALPHAMAP 1520 diffuseColor.a *= texture2D( alphaMap, uv ).g; 1521#endif`,dF=`#if defined( USE_POINTS_UV ) 1522 varying vec2 vUv; 1523#else 1524 #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) 1525 uniform mat3 uvTransform; 1526 #endif 1527#endif 1528#ifdef USE_MAP 1529 uniform sampler2D map; 1530#endif 1531#ifdef USE_ALPHAMAP 1532 uniform sampler2D alphaMap; 1533#endif`,hF=`float metalnessFactor = metalness; 1534#ifdef USE_METALNESSMAP 1535 vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); 1536 metalnessFactor *= texelMetalness.b; 1537#endif`,pF=`#ifdef USE_METALNESSMAP 1538 uniform sampler2D metalnessMap; 1539#endif`,mF=`#ifdef USE_INSTANCING_MORPH 1540 float morphTargetInfluences[ MORPHTARGETS_COUNT ]; 1541 float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; 1542 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 1543 morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; 1544 } 1545#endif`,gF=`#if defined( USE_MORPHCOLORS ) 1546 vColor *= morphTargetBaseInfluence; 1547 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 1548 #if defined( USE_COLOR_ALPHA ) 1549 if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; 1550 #elif defined( USE_COLOR ) 1551 if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; 1552 #endif 1553 } 1554#endif`,vF=`#ifdef USE_MORPHNORMALS 1555 objectNormal *= morphTargetBaseInfluence; 1556 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 1557 if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; 1558 } 1559#endif`,xF=`#ifdef USE_MORPHTARGETS 1560 #ifndef USE_INSTANCING_MORPH 1561 uniform float morphTargetBaseInfluence; 1562 uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; 1563 #endif 1564 uniform sampler2DArray morphTargetsTexture; 1565 uniform ivec2 morphTargetsTextureSize; 1566 vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { 1567 int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; 1568 int y = texelIndex / morphTargetsTextureSize.x; 1569 int x = texelIndex - y * morphTargetsTextureSize.x; 1570 ivec3 morphUV = ivec3( x, y, morphTargetIndex ); 1571 return texelFetch( morphTargetsTexture, morphUV, 0 ); 1572 } 1573#endif`,yF=`#ifdef USE_MORPHTARGETS 1574 transformed *= morphTargetBaseInfluence; 1575 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 1576 if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; 1577 } 1578#endif`,_F=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; 1579#ifdef FLAT_SHADED 1580 vec3 fdx = dFdx( vViewPosition ); 1581 vec3 fdy = dFdy( vViewPosition ); 1582 vec3 normal = normalize( cross( fdx, fdy ) ); 1583#else 1584 vec3 normal = normalize( vNormal ); 1585 #ifdef DOUBLE_SIDED 1586 normal *= faceDirection; 1587 #endif 1588#endif 1589#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) 1590 #ifdef USE_TANGENT 1591 mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); 1592 #else 1593 mat3 tbn = getTangentFrame( - vViewPosition, normal, 1594 #if defined( USE_NORMALMAP ) 1595 vNormalMapUv 1596 #elif defined( USE_CLEARCOAT_NORMALMAP ) 1597 vClearcoatNormalMapUv 1598 #else 1599 vUv 1600 #endif 1601 ); 1602 #endif 1603 #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) 1604 tbn[0] *= faceDirection; 1605 tbn[1] *= faceDirection; 1606 #endif 1607#endif 1608#ifdef USE_CLEARCOAT_NORMALMAP 1609 #ifdef USE_TANGENT 1610 mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); 1611 #else 1612 mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); 1613 #endif 1614 #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) 1615 tbn2[0] *= faceDirection; 1616 tbn2[1] *= faceDirection; 1617 #endif 1618#endif 1619vec3 nonPerturbedNormal = normal;`,bF=`#ifdef USE_NORMALMAP_OBJECTSPACE 1620 normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; 1621 #ifdef FLIP_SIDED 1622 normal = - normal; 1623 #endif 1624 #ifdef DOUBLE_SIDED 1625 normal = normal * faceDirection; 1626 #endif 1627 normal = normalize( normalMatrix * normal ); 1628#elif defined( USE_NORMALMAP_TANGENTSPACE ) 1629 vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; 1630 mapN.xy *= normalScale; 1631 normal = normalize( tbn * mapN ); 1632#elif defined( USE_BUMPMAP )
1633 normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); 1634#endif`,SF=`#ifndef FLAT_SHADED 1635 varying vec3 vNormal; 1636 #ifdef USE_TANGENT 1637 varying vec3 vTangent; 1638 varying vec3 vBitangent; 1639 #endif 1640#endif`,wF=`#ifndef FLAT_SHADED 1641 varying vec3 vNormal; 1642 #ifdef USE_TANGENT 1643 varying vec3 vTangent; 1644 varying vec3 vBitangent; 1645 #endif 1646#endif`,EF=`#ifndef FLAT_SHADED 1647 vNormal = normalize( transformedNormal ); 1648 #ifdef USE_TANGENT 1649 vTangent = normalize( transformedTangent ); 1650 vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); 1651 #endif 1652#endif`,MF=`#ifdef USE_NORMALMAP 1653 uniform sampler2D normalMap; 1654 uniform vec2 normalScale; 1655#endif 1656#ifdef USE_NORMALMAP_OBJECTSPACE 1657 uniform mat3 normalMatrix; 1658#endif 1659#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) 1660 mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { 1661 vec3 q0 = dFdx( eye_pos.xyz ); 1662 vec3 q1 = dFdy( eye_pos.xyz ); 1663 vec2 st0 = dFdx( uv.st ); 1664 vec2 st1 = dFdy( uv.st ); 1665 vec3 N = surf_norm; 1666 vec3 q1perp = cross( q1, N ); 1667 vec3 q0perp = cross( N, q0 ); 1668 vec3 T = q1perp * st0.x + q0perp * st1.x; 1669 vec3 B = q1perp * st0.y + q0perp * st1.y; 1670 float det = max( dot( T, T ), dot( B, B ) ); 1671 float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); 1672 return mat3( T * scale, B * scale, N ); 1673 } 1674#endif`,TF=`#ifdef USE_CLEARCOAT 1675 vec3 clearcoatNormal = nonPerturbedNormal; 1676#endif`,AF=`#ifdef USE_CLEARCOAT_NORMALMAP 1677 vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; 1678 clearcoatMapN.xy *= clearcoatNormalScale; 1679 clearcoatNormal = normalize( tbn2 * clearcoatMapN ); 1680#endif`,CF=`#ifdef USE_CLEARCOATMAP 1681 uniform sampler2D clearcoatMap; 1682#endif 1683#ifdef USE_CLEARCOAT_NORMALMAP 1684 uniform sampler2D clearcoatNormalMap; 1685 uniform vec2 clearcoatNormalScale; 1686#endif 1687#ifdef USE_CLEARCOAT_ROUGHNESSMAP 1688 uniform sampler2D clearcoatRoughnessMap; 1689#endif`,RF=`#ifdef USE_IRIDESCENCEMAP 1690 uniform sampler2D iridescenceMap; 1691#endif 1692#ifdef USE_IRIDESCENCE_THICKNESSMAP 1693 uniform sampler2D iridescenceThicknessMap; 1694#endif`,NF=`#ifdef OPAQUE 1695diffuseColor.a = 1.0; 1696#endif 1697#ifdef USE_TRANSMISSION 1698diffuseColor.a *= material.transmissionAlpha; 1699#endif 1700gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,DF=`vec3 packNormalToRGB( const in vec3 normal ) { 1701 return normalize( normal ) * 0.5 + 0.5; 1702} 1703vec3 unpackRGBToNormal( const in vec3 rgb ) { 1704 return 2.0 * rgb.xyz - 1.0; 1705} 1706const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; 1707const float Inv255 = 1. / 255.; 1708const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); 1709const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); 1710const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); 1711const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); 1712vec4 packDepthToRGBA( const in float v ) { 1713 if( v <= 0.0 ) 1714 return vec4( 0., 0., 0., 0. ); 1715 if( v >= 1.0 ) 1716 return vec4( 1., 1., 1., 1. ); 1717 float vuf; 1718 float af = modf( v * PackFactors.a, vuf ); 1719 float bf = modf( vuf * ShiftRight8, vuf ); 1720 float gf = modf( vuf * ShiftRight8, vuf ); 1721 return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); 1722} 1723vec3 packDepthToRGB( const in float v ) { 1724 if( v <= 0.0 ) 1725 return vec3( 0., 0., 0. ); 1726 if( v >= 1.0 ) 1727 return vec3( 1., 1., 1. ); 1728 float vuf; 1729 float bf = modf( v * PackFactors.b, vuf ); 1730 float gf = modf( vuf * ShiftRight8, vuf ); 1731 return vec3( vuf * Inv255, gf * PackUpscale, bf ); 1732} 1733vec2 packDepthToRG( const in float v ) { 1734 if( v <= 0.0 ) 1735 return vec2( 0., 0. ); 1736 if( v >= 1.0 ) 1737 return vec2( 1., 1. ); 1738 float vuf; 1739 float gf = modf( v * 256., vuf ); 1740 return vec2( vuf * Inv255, gf ); 1741} 1742float unpackRGBAToDepth( const in vec4 v ) { 1743 return dot( v, UnpackFactors4 ); 1744} 1745float unpackRGBToDepth( const in vec3 v ) { 1746 return dot( v, UnpackFactors3 ); 1747} 1748float unpackRGToDepth( const in vec2 v ) { 1749 return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; 1750} 1751vec4 pack2HalfToRGBA( const in vec2 v ) {
1752 vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); 1753 return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); 1754} 1755vec2 unpackRGBATo2Half( const in vec4 v ) { 1756 return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); 1757} 1758float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { 1759 return ( viewZ + near ) / ( near - far ); 1760} 1761float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { 1762 return depth * ( near - far ) - near; 1763} 1764float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { 1765 return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); 1766} 1767float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { 1768 return ( near * far ) / ( ( far - near ) * depth - far ); 1769}`,PF=`#ifdef PREMULTIPLIED_ALPHA 1770 gl_FragColor.rgb *= gl_FragColor.a; 1771#endif`,LF=`vec4 mvPosition = vec4( transformed, 1.0 ); 1772#ifdef USE_BATCHING 1773 mvPosition = batchingMatrix * mvPosition; 1774#endif 1775#ifdef USE_INSTANCING 1776 mvPosition = instanceMatrix * mvPosition; 1777#endif 1778mvPosition = modelViewMatrix * mvPosition; 1779gl_Position = projectionMatrix * mvPosition;`,OF=`#ifdef DITHERING 1780 gl_FragColor.rgb = dithering( gl_FragColor.rgb ); 1781#endif`,UF=`#ifdef DITHERING 1782 vec3 dithering( vec3 color ) { 1783 float grid_position = rand( gl_FragCoord.xy ); 1784 vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); 1785 dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); 1786 return color + dither_shift_RGB; 1787 } 1788#endif`,IF=`float roughnessFactor = roughness; 1789#ifdef USE_ROUGHNESSMAP 1790 vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); 1791 roughnessFactor *= texelRoughness.g; 1792#endif`,BF=`#ifdef USE_ROUGHNESSMAP 1793 uniform sampler2D roughnessMap; 1794#endif`,FF=`#if NUM_SPOT_LIGHT_COORDS > 0 1795 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; 1796#endif 1797#if NUM_SPOT_LIGHT_MAPS > 0 1798 uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; 1799#endif 1800#ifdef USE_SHADOWMAP 1801 #if NUM_DIR_LIGHT_SHADOWS > 0 1802 uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; 1803 varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; 1804 struct DirectionalLightShadow { 1805 float shadowIntensity; 1806 float shadowBias; 1807 float shadowNormalBias; 1808 float shadowRadius; 1809 vec2 shadowMapSize; 1810 }; 1811 uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; 1812 #endif 1813 #if NUM_SPOT_LIGHT_SHADOWS > 0 1814 uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; 1815 struct SpotLightShadow { 1816 float shadowIntensity; 1817 float shadowBias; 1818 float shadowNormalBias; 1819 float shadowRadius; 1820 vec2 shadowMapSize; 1821 }; 1822 uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; 1823 #endif 1824 #if NUM_POINT_LIGHT_SHADOWS > 0 1825 uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; 1826 varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; 1827 struct PointLightShadow { 1828 float shadowIntensity; 1829 float shadowBias; 1830 float shadowNormalBias; 1831 float shadowRadius; 1832 vec2 shadowMapSize; 1833 float shadowCameraNear; 1834 float shadowCameraFar; 1835 }; 1836 uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; 1837 #endif 1838 float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { 1839 float depth = unpackRGBAToDepth( texture2D( depths, uv ) ); 1840 #ifdef USE_REVERSED_DEPTH_BUFFER 1841 return step( depth, compare ); 1842 #else 1843 return step( compare, depth ); 1844 #endif 1845 } 1846 vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { 1847 return unpackRGBATo2Half( texture2D( shadow, uv ) ); 1848 } 1849 float VSMShadow( sampler2D shadow, vec2 uv, float compare ) { 1850 float occlusion = 1.0; 1851 vec2 distribution = texture2DDistribution( shadow, uv ); 1852 #ifdef USE_REVERSED_DEPTH_BUFFER 1853 float hard_shadow = step( distribution.x, compare ); 1854 #else 1855 float hard_shadow = step( compare, distribution.x ); 1856 #endif 1857 if ( hard_shadow != 1.0 ) { 1858 float distance = compare - distribution.x
vendor: 6,963 bytes, lines 1858-1989
1858; 1859 float variance = max( 0.00000, distribution.y * distribution.y ); 1860 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 ); 1861 } 1862 return occlusion; 1863 } 1864 float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { 1865 float shadow = 1.0; 1866 shadowCoord.xyz /= shadowCoord.w; 1867 shadowCoord.z += shadowBias; 1868 bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; 1869 bool frustumTest = inFrustum && shadowCoord.z <= 1.0; 1870 if ( frustumTest ) { 1871 #if defined( SHADOWMAP_TYPE_PCF ) 1872 vec2 texelSize = vec2( 1.0 ) / shadowMapSize; 1873 float dx0 = - texelSize.x * shadowRadius; 1874 float dy0 = - texelSize.y * shadowRadius; 1875 float dx1 = + texelSize.x * shadowRadius; 1876 float dy1 = + texelSize.y * shadowRadius; 1877 float dx2 = dx0 / 2.0; 1878 float dy2 = dy0 / 2.0; 1879 float dx3 = dx1 / 2.0; 1880 float dy3 = dy1 / 2.0; 1881 shadow = ( 1882 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + 1883 texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + 1884 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + 1885 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + 1886 texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + 1887 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + 1888 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + 1889 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + 1890 texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + 1891 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + 1892 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + 1893 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + 1894 texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + 1895 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + 1896 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + 1897 texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + 1898 texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) 1899 ) * ( 1.0 / 17.0 ); 1900 #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) 1901 vec2 texelSize = vec2( 1.0 ) / shadowMapSize; 1902 float dx = texelSize.x; 1903 float dy = texelSize.y; 1904 vec2 uv = shadowCoord.xy; 1905 vec2 f = fract( uv * shadowMapSize + 0.5 ); 1906 uv -= f * texelSize; 1907 shadow = ( 1908 texture2DCompare( shadowMap, uv, shadowCoord.z ) + 1909 texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + 1910 texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + 1911 texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + 1912 mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), 1913 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), 1914 f.x ) + 1915 mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), 1916 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), 1917 f.x ) + 1918 mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), 1919 texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), 1920 f.y ) + 1921 mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), 1922 texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), 1923 f.y ) + 1924 mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), 1925 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), 1926 f.x ), 1927 mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), 1928 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), 1929 f.x ), 1930 f.y ) 1931 ) * ( 1.0 / 9.0 ); 1932 #elif defined( SHADOWMAP_TYPE_VSM ) 1933 shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); 1934 #else 1935 shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); 1936 #endif 1937 } 1938 return mix( 1.0, shadow, shadowIntensity ); 1939 } 1940 vec2 cubeToUV( vec3 v, float texelSizeY ) { 1941 vec3 absV = abs( v ); 1942 float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); 1943 absV *= scaleToCube; 1944 v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); 1945 vec2 planar = v.xy; 1946 float almostATexel = 1.5 * texelSizeY; 1947 float almostOne = 1.0 - almostATexel; 1948 if ( absV.z >= almostOne ) { 1949 if ( v.z > 0.0 ) 1950 planar.x = 4.0 - v.x; 1951 } else if ( absV.x >= almostOne ) { 1952 float signX = sign( v.x ); 1953 planar.x = v.z * signX + 2.0 * signX; 1954 } else if ( absV.y >= almostOne ) { 1955 float signY = sign( v.y ); 1956 planar.x = v.x + 2.0 * signY + 2.0; 1957 planar.y = v.z * signY - 2.0; 1958 } 1959 return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); 1960 } 1961 float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { 1962 float shadow = 1.0; 1963 vec3 lightToPosition = shadowCoord.xyz; 1964 1965 float lightToPositionLength = length( lightToPosition ); 1966 if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) { 1967 float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; 1968 vec3 bd3D = normalize( lightToPosition ); 1969 vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); 1970 #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) 1971 vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; 1972 shadow = ( 1973 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + 1974 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + 1975 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + 1976 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + 1977 texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + 1978 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + 1979 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + 1980 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + 1981 texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) 1982 ) * ( 1.0 / 9.0 ); 1983 #else 1984 shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); 1985 #endif 1986 } 1987 return mix( 1.0, shadow, shadowIntensity ); 1988 } 1989#endif`,
1989zF=`#if NUM_SPOT_LIGHT_COORDS > 0 1990 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; 1991 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; 1992#endif 1993#ifdef USE_SHADOWMAP 1994 #if NUM_DIR_LIGHT_SHADOWS > 0 1995 uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; 1996 varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; 1997 struct DirectionalLightShadow { 1998 float shadowIntensity; 1999 float shadowBias; 2000 float shadowNormalBias; 2001 float shadowRadius; 2002 vec2 shadowMapSize; 2003 }; 2004 uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; 2005 #endif 2006 #if NUM_SPOT_LIGHT_SHADOWS > 0 2007 struct SpotLightShadow { 2008 float shadowIntensity; 2009 float shadowBias; 2010 float shadowNormalBias; 2011 float shadowRadius; 2012 vec2 shadowMapSize; 2013 }; 2014 uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; 2015 #endif 2016 #if NUM_POINT_LIGHT_SHADOWS > 0 2017 uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; 2018 varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; 2019 struct PointLightShadow { 2020 float shadowIntensity; 2021 float shadowBias; 2022 float shadowNormalBias; 2023 float shadowRadius; 2024 vec2 shadowMapSize; 2025 float shadowCameraNear; 2026 float shadowCameraFar; 2027 }; 2028 uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; 2029 #endif 2030#endif`,jF=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) 2031 vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); 2032 vec4 shadowWorldPosition; 2033#endif 2034#if defined( USE_SHADOWMAP ) 2035 #if NUM_DIR_LIGHT_SHADOWS > 0 2036 #pragma unroll_loop_start 2037 for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { 2038 shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); 2039 vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; 2040 } 2041 #pragma unroll_loop_end 2042 #endif 2043 #if NUM_POINT_LIGHT_SHADOWS > 0 2044 #pragma unroll_loop_start 2045 for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { 2046 shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); 2047 vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; 2048 } 2049 #pragma unroll_loop_end 2050 #endif 2051#endif 2052#if NUM_SPOT_LIGHT_COORDS > 0 2053 #pragma unroll_loop_start 2054 for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { 2055 shadowWorldPosition = worldPosition; 2056 #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) 2057 shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; 2058 #endif 2059 vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; 2060 } 2061 #pragma unroll_loop_end 2062#endif`,kF=`float getShadowMask() { 2063 float shadow = 1.0; 2064 #ifdef USE_SHADOWMAP 2065 #if NUM_DIR_LIGHT_SHADOWS > 0 2066 DirectionalLightShadow directionalLight; 2067 #pragma unroll_loop_start 2068 for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { 2069 directionalLight = directionalLightShadows[ i ]; 2070 shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; 2071 } 2072 #pragma unroll_loop_end 2073 #endif 2074 #if NUM_SPOT_LIGHT_SHADOWS > 0 2075 SpotLightShadow spotLight; 2076 #pragma unroll_loop_start 2077 for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { 2078 spotLight = spotLightShadows[ i ]; 2079 shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; 2080 } 2081 #pragma unroll_loop_end 2082 #endif 2083 #if NUM_POINT_LIGHT_SHADOWS > 0 2084 PointLightShadow pointLight; 2085 #pragma unroll_loop_start 2086 for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { 2087 pointLight = pointLightShadows[ i ]; 2088 shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; 2089 } 2090 #pragma unroll_loop_end 2091 #endif 2092 #endif 2093 return shadow; 2094}`,VF=`#ifdef USE_SKINNING 2095 mat4 boneMatX = getBoneMatrix( skinIndex.x ); 2096 mat4 boneMatY = getBoneMatrix( skinIndex.y ); 2097 mat4 boneMatZ = getBoneMatrix( skinIndex.z ); 2098 mat4 boneMatW = getBoneMatrix( skinIndex.w ); 2099#endif`,HF=`#ifdef USE_SKINNING 2100 uniform mat4 bindMatrix; 2101 uniform mat4 bindMatrixInverse; 2102 uniform highp sampler2D boneTexture; 2103 mat4 getBoneMatrix( const in float i ) { 2104 int size = textureSize( boneTexture, 0 ).x; 2105 int j = int( i ) * 4; 2106 int x = j % size; 2107 int y = j / size; 2108 vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); 2109 vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); 2110 vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); 2111 vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); 2112 return mat4( v1, v2, v3, v4 ); 2113 } 2114#endif`,GF=`#ifdef USE_SKINNING 2115 vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); 2116 vec4 skinned = vec4( 0.0 ); 2117 skinned += boneMatX * skinVertex * skinWeight.x; 2118 skinned += boneMatY * skinVertex * skinWeight.y; 2119 skinned += boneMatZ * skinVertex * skinWeight.z; 2120 skinned += boneMatW * skinVertex * skinWeight.w; 2121 transformed = ( bindMatrixInverse * skinned ).xyz; 2122#endif`,WF=`#ifdef USE_SKINNING 2123 mat4 skinMatrix = mat4( 0.0 ); 2124 skinMatrix += skinWeight.x * boneMatX; 2125 skinMatrix += skinWeight.y * boneMatY; 2126 skinMatrix += skinWeight.z * boneMatZ; 2127 skinMatrix += skinWeight.w * boneMatW; 2128 skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; 2129 objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; 2130 #ifdef USE_TANGENT 2131 objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; 2132 #endif 2133#endif`,XF=`float specularStrength; 2134#ifdef USE_SPECULARMAP 2135 vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); 2136 specularStrength = texelSpecular.r; 2137#else 2138 specularStrength = 1.0; 2139#endif`,qF=`#ifdef USE_SPECULARMAP 2140 uniform sampler2D specularMap; 2141#endif`,YF=`#if defined( TONE_MAPPING ) 2142 gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); 2143#endif`,$F=`#ifndef saturate 2144#define saturate( a ) clamp( a, 0.0, 1.0 ) 2145#endif 2146uniform float toneMappingExposure; 2147vec3 LinearToneMapping( vec3 color ) { 2148 return saturate( toneMappingExposure * color ); 2149} 2150vec3 ReinhardToneMapping( vec3 color ) { 2151 color *= toneMappingExposure; 2152 return saturate( color / ( vec3( 1.0 ) + color ) ); 2153} 2154vec3 CineonToneMapping( vec3 color ) { 2155 color *= toneMappingExposure; 2156 color = max( vec3( 0.0 ), color - 0.004 ); 2157 return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); 2158} 2159vec3 RRTAndODTFit( vec3 v ) { 2160 vec3 a = v * ( v + 0.0245786 ) - 0.000090537; 2161 vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; 2162 return a / b; 2163} 2164vec3 ACESFilmicToneMapping( vec3 color ) { 2165 const mat3 ACESInputMat = mat3( 2166 vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), 2167 vec3( 0.04823, 0.01566, 0.83777 ) 2168 ); 2169 const mat3 ACESOutputMat = mat3( 2170 vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), 2171 vec3( -0.07367, -0.00605, 1.07602 ) 2172 ); 2173 color *= toneMappingExposure / 0.6; 2174 color = ACESInputMat * color; 2175 color = RRTAndODTFit( color ); 2176 color = ACESOutputMat * color; 2177 return saturate( color ); 2178} 2179const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( 2180 vec3( 1.6605, - 0.1246, - 0.0182 ), 2181 vec3( - 0.5876, 1.1329, - 0.1006 ), 2182 vec3( - 0.0728, - 0.0083, 1.1187 ) 2183); 2184const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( 2185 vec3( 0.6274, 0.0691, 0.0164 ), 2186 vec3( 0.3293, 0.9195, 0.0880 ), 2187 vec3( 0.0433, 0.0113, 0.8956 ) 2188); 2189vec3 agxDefaultContrastApprox( vec3 x ) { 2190 vec3 x2 = x * x; 2191 vec3 x4 = x2 * x2; 2192 return + 15.5 * x4 * x2 2193 - 40.14 * x4 * x 2194 + 31.96 * x4 2195 - 6.868 * x2 * x 2196 + 0.4298 * x2 2197 + 0.1191 * x 2198 - 0.00232; 2199} 2200vec3 AgXToneMapping( vec3 color ) { 2201 const mat3 AgXInsetMatrix = mat3( 2202 vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), 2203 vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), 2204 vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) 2205 );
2206 const mat3 AgXOutsetMatrix = mat3( 2207 vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), 2208 vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), 2209 vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) 2210 ); 2211 const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; 2212 color *= toneMappingExposure; 2213 color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; 2214 color = AgXInsetMatrix * color; 2215 color = max( color, 1e-10 ); color = log2( color ); 2216 color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); 2217 color = clamp( color, 0.0, 1.0 ); 2218 color = agxDefaultContrastApprox( color ); 2219 color = AgXOutsetMatrix * color; 2220 color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); 2221 color = LINEAR_REC2020_TO_LINEAR_SRGB * color; 2222 color = clamp( color, 0.0, 1.0 ); 2223 return color; 2224} 2225vec3 NeutralToneMapping( vec3 color ) { 2226 const float StartCompression = 0.8 - 0.04; 2227 const float Desaturation = 0.15; 2228 color *= toneMappingExposure; 2229 float x = min( color.r, min( color.g, color.b ) ); 2230 float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; 2231 color -= offset; 2232 float peak = max( color.r, max( color.g, color.b ) ); 2233 if ( peak < StartCompression ) return color; 2234 float d = 1. - StartCompression; 2235 float newPeak = 1. - d * d / ( peak + d - StartCompression ); 2236 color *= newPeak / peak; 2237 float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); 2238 return mix( color, vec3( newPeak ), g ); 2239} 2240vec3 CustomToneMapping( vec3 color ) { return color; }`,KF=`#ifdef USE_TRANSMISSION 2241 material.transmission = transmission; 2242 material.transmissionAlpha = 1.0; 2243 material.thickness = thickness; 2244 material.attenuationDistance = attenuationDistance; 2245 material.attenuationColor = attenuationColor; 2246 #ifdef USE_TRANSMISSIONMAP 2247 material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; 2248 #endif 2249 #ifdef USE_THICKNESSMAP 2250 material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; 2251 #endif 2252 vec3 pos = vWorldPosition; 2253 vec3 v = normalize( cameraPosition - pos ); 2254 vec3 n = inverseTransformDirection( normal, viewMatrix ); 2255 vec4 transmitted = getIBLVolumeRefraction( 2256 n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, 2257 pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, 2258 material.attenuationColor, material.attenuationDistance ); 2259 material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); 2260 totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); 2261#endif`,ZF=`#ifdef USE_TRANSMISSION 2262 uniform float transmission; 2263 uniform float thickness; 2264 uniform float attenuationDistance; 2265 uniform vec3 attenuationColor; 2266 #ifdef USE_TRANSMISSIONMAP 2267 uniform sampler2D transmissionMap; 2268 #endif 2269 #ifdef USE_THICKNESSMAP 2270 uniform sampler2D thicknessMap; 2271 #endif 2272 uniform vec2 transmissionSamplerSize; 2273 uniform sampler2D transmissionSamplerMap; 2274 uniform mat4 modelMatrix; 2275 uniform mat4 projectionMatrix; 2276 varying vec3 vWorldPosition; 2277 float w0( float a ) { 2278 return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); 2279 } 2280 float w1( float a ) { 2281 return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); 2282 } 2283 float w2( float a ){ 2284 return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); 2285 } 2286 float w3( float a ) { 2287 return ( 1.0 / 6.0 ) * ( a * a * a ); 2288 } 2289 float g0( float a ) { 2290 return w0( a ) + w1( a ); 2291 } 2292 float g1( float a ) { 2293 return w2( a ) + w3( a ); 2294 } 2295 float h0( float a ) { 2296 return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); 2297 } 2298 float h1( float a ) { 2299 return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); 2300 } 2301 vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { 2302 uv = uv * texelSize.zw + 0.5; 2303 vec2 iuv = floor( uv ); 2304 vec2 fuv = fract( uv ); 2305 float g0x = g0( fuv.x ); 2306 float g1x = g1( fuv.x ); 2307 float h0x = h0( fuv.x ); 2308 float h1x = h1( fuv.x ); 2309 float h0y = h0( fuv.y ); 2310 float h1y = h1( fuv.y ); 2311 vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; 2312 vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; 2313 vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; 2314 vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; 2315 return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + 2316 g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); 2317 } 2318 vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { 2319 vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); 2320 vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); 2321 vec2 fLodSizeInv = 1.0 / fLodSize; 2322 vec2 cLodSizeInv = 1.0 / cLodSize; 2323 vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); 2324 vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); 2325 return mix( fSample, cSample, fract( lod ) ); 2326 } 2327 vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { 2328 vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); 2329 vec3 modelScale; 2330 modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); 2331 modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); 2332 modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); 2333 return normalize( refractionVector ) * thickness * modelScale; 2334 } 2335 float applyIorToRoughness( const in float roughness, const in float ior ) { 2336 return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); 2337 } 2338 vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { 2339 float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); 2340 return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); 2341 } 2342 vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { 2343 if ( isinf( attenuationDistance ) ) { 2344 return vec3( 1.0 ); 2345 } else { 2346 vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; 2347 vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; 2348 } 2349 } 2350 vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, 2351 const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, 2352 const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, 2353 const in vec3 attenuationColor, const in float attenuationDistance ) { 2354 vec4 transmittedLight; 2355 vec3 transmittance; 2356 #ifdef USE_DISPERSION 2357 float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; 2358 vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); 2359 for ( int i = 0; i < 3; i ++ ) { 2360 vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); 2361 vec3 refractedRayExit = position + transmissionRay; 2362 vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); 2363 vec2 refractionCoords = ndcPos.xy / ndcPos.w; 2364 refractionCoords += 1.0; 2365 refractionCoords /= 2.0; 2366 vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); 2367 transmittedLight[ i ] = transmissionSample[ i ]; 2368 transmittedLight.a += transmissionSample.a; 2369 transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; 2370 } 2371 transmittedLight.a /= 3.0; 2372 #else 2373 vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); 2374 vec3 refractedRayExit = position + transmissionRay; 2375 vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); 2376 vec2 refractionCoords = ndcPos.xy / ndcPos.w; 2377 refractionCoords += 1.0; 2378 refractionCoords /= 2.0; 2379 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); 2380 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); 2381 #endif 2382 vec3 attenuatedColor = transmittance * transmittedLight.rgb; 2383 vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); 2384 float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; 2385 return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); 2386 } 2387#endif`,QF=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) 2388 varying vec2 vUv; 2389#endif 2390#ifdef USE_MAP 2391 varying vec2 vMapUv; 2392#endif 2393#ifdef USE_ALPHAMAP
2394 varying vec2 vAlphaMapUv; 2395#endif 2396#ifdef USE_LIGHTMAP 2397 varying vec2 vLightMapUv; 2398#endif 2399#ifdef USE_AOMAP 2400 varying vec2 vAoMapUv; 2401#endif 2402#ifdef USE_BUMPMAP 2403 varying vec2 vBumpMapUv; 2404#endif 2405#ifdef USE_NORMALMAP 2406 varying vec2 vNormalMapUv; 2407#endif 2408#ifdef USE_EMISSIVEMAP 2409 varying vec2 vEmissiveMapUv; 2410#endif 2411#ifdef USE_METALNESSMAP 2412 varying vec2 vMetalnessMapUv; 2413#endif 2414#ifdef USE_ROUGHNESSMAP 2415 varying vec2 vRoughnessMapUv; 2416#endif 2417#ifdef USE_ANISOTROPYMAP 2418 varying vec2 vAnisotropyMapUv; 2419#endif 2420#ifdef USE_CLEARCOATMAP 2421 varying vec2 vClearcoatMapUv; 2422#endif 2423#ifdef USE_CLEARCOAT_NORMALMAP 2424 varying vec2 vClearcoatNormalMapUv; 2425#endif 2426#ifdef USE_CLEARCOAT_ROUGHNESSMAP 2427 varying vec2 vClearcoatRoughnessMapUv; 2428#endif 2429#ifdef USE_IRIDESCENCEMAP 2430 varying vec2 vIridescenceMapUv; 2431#endif 2432#ifdef USE_IRIDESCENCE_THICKNESSMAP 2433 varying vec2 vIridescenceThicknessMapUv; 2434#endif 2435#ifdef USE_SHEEN_COLORMAP 2436 varying vec2 vSheenColorMapUv; 2437#endif 2438#ifdef USE_SHEEN_ROUGHNESSMAP 2439 varying vec2 vSheenRoughnessMapUv; 2440#endif 2441#ifdef USE_SPECULARMAP 2442 varying vec2 vSpecularMapUv; 2443#endif 2444#ifdef USE_SPECULAR_COLORMAP 2445 varying vec2 vSpecularColorMapUv; 2446#endif 2447#ifdef USE_SPECULAR_INTENSITYMAP 2448 varying vec2 vSpecularIntensityMapUv; 2449#endif 2450#ifdef USE_TRANSMISSIONMAP 2451 uniform mat3 transmissionMapTransform; 2452 varying vec2 vTransmissionMapUv; 2453#endif 2454#ifdef USE_THICKNESSMAP 2455 uniform mat3 thicknessMapTransform; 2456 varying vec2 vThicknessMapUv; 2457#endif`,JF=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) 2458 varying vec2 vUv; 2459#endif 2460#ifdef USE_MAP 2461 uniform mat3 mapTransform; 2462 varying vec2 vMapUv; 2463#endif 2464#ifdef USE_ALPHAMAP 2465 uniform mat3 alphaMapTransform; 2466 varying vec2 vAlphaMapUv; 2467#endif 2468#ifdef USE_LIGHTMAP 2469 uniform mat3 lightMapTransform; 2470 varying vec2 vLightMapUv; 2471#endif 2472#ifdef USE_AOMAP 2473 uniform mat3 aoMapTransform; 2474 varying vec2 vAoMapUv; 2475#endif 2476#ifdef USE_BUMPMAP 2477 uniform mat3 bumpMapTransform; 2478 varying vec2 vBumpMapUv; 2479#endif 2480#ifdef USE_NORMALMAP 2481 uniform mat3 normalMapTransform; 2482 varying vec2 vNormalMapUv; 2483#endif 2484#ifdef USE_DISPLACEMENTMAP 2485 uniform mat3 displacementMapTransform; 2486 varying vec2 vDisplacementMapUv; 2487#endif 2488#ifdef USE_EMISSIVEMAP 2489 uniform mat3 emissiveMapTransform; 2490 varying vec2 vEmissiveMapUv; 2491#endif 2492#ifdef USE_METALNESSMAP 2493 uniform mat3 metalnessMapTransform; 2494 varying vec2 vMetalnessMapUv; 2495#endif 2496#ifdef USE_ROUGHNESSMAP 2497 uniform mat3 roughnessMapTransform; 2498 varying vec2 vRoughnessMapUv; 2499#endif 2500#ifdef USE_ANISOTROPYMAP 2501 uniform mat3 anisotropyMapTransform; 2502 varying vec2 vAnisotropyMapUv; 2503#endif 2504#ifdef USE_CLEARCOATMAP 2505 uniform mat3 clearcoatMapTransform; 2506 varying vec2 vClearcoatMapUv; 2507#endif 2508#ifdef USE_CLEARCOAT_NORMALMAP 2509 uniform mat3 clearcoatNormalMapTransform; 2510 varying vec2 vClearcoatNormalMapUv; 2511#endif 2512#ifdef USE_CLEARCOAT_ROUGHNESSMAP 2513 uniform mat3 clearcoatRoughnessMapTransform; 2514 varying vec2 vClearcoatRoughnessMapUv; 2515#endif 2516#ifdef USE_SHEEN_COLORMAP 2517 uniform mat3 sheenColorMapTransform; 2518 varying vec2 vSheenColorMapUv; 2519#endif 2520#ifdef USE_SHEEN_ROUGHNESSMAP 2521 uniform mat3 sheenRoughnessMapTransform; 2522 varying vec2 vSheenRoughnessMapUv; 2523#endif 2524#ifdef USE_IRIDESCENCEMAP 2525 uniform mat3 iridescenceMapTransform; 2526 varying vec2 vIridescenceMapUv; 2527#endif 2528#ifdef USE_IRIDESCENCE_THICKNESSMAP 2529 uniform mat3 iridescenceThicknessMapTransform; 2530 varying vec2 vIridescenceThicknessMapUv; 2531#endif 2532#ifdef USE_SPECULARMAP 2533 uniform mat3 specularMapTransform; 2534 varying vec2 vSpecularMapUv; 2535#endif 2536#ifdef USE_SPECULAR_COLORMAP 2537 uniform mat3 specularColorMapTransform; 2538 varying vec2 vSpecularColorMapUv; 2539#endif 2540#ifdef USE_SPECULAR_INTENSITYMAP 2541 uniform mat3 specularIntensityMapTransform; 2542 varying vec2 vSpecularIntensityMapUv; 2543#endif 2544#ifdef USE_TRANSMISSIONMAP 2545 uniform mat3 transmissionMapTransform; 2546 varying vec2 vTransmissionMapUv; 2547#endif 2548#ifdef USE_THICKNESSMAP 2549 uniform mat3 thicknessMapTransform; 2550 varying vec2 vThicknessMapUv; 2551#endif`,ez=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) 2552 vUv = vec3( uv, 1 ).xy; 2553#endif 2554#ifdef USE_MAP 2555 vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; 2556#endif 2557#ifdef USE_ALPHAMAP 2558 vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; 2559#endif 2560#ifdef USE_LIGHTMAP 2561 vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; 2562#endif 2563#ifdef USE_AOMAP 2564 vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; 2565#endif 2566#ifdef USE_BUMPMAP 2567 vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; 2568#endif 2569#ifdef USE_NORMALMAP 2570 vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; 2571#endif 2572#ifdef USE_DISPLACEMENTMAP 2573 vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; 2574#endif 2575#ifdef USE_EMISSIVEMAP 2576 vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; 2577#endif 2578#ifdef USE_METALNESSMAP 2579 vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; 2580#endif 2581#ifdef USE_ROUGHNESSMAP 2582 vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; 2583#endif 2584#ifdef USE_ANISOTROPYMAP 2585 vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; 2586#endif 2587#ifdef USE_CLEARCOATMAP 2588 vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; 2589#endif 2590#ifdef USE_CLEARCOAT_NORMALMAP 2591 vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; 2592#endif 2593#ifdef USE_CLEARCOAT_ROUGHNESSMAP 2594 vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; 2595#endif
2596#ifdef USE_IRIDESCENCEMAP 2597 vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; 2598#endif 2599#ifdef USE_IRIDESCENCE_THICKNESSMAP 2600 vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; 2601#endif 2602#ifdef USE_SHEEN_COLORMAP 2603 vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; 2604#endif 2605#ifdef USE_SHEEN_ROUGHNESSMAP 2606 vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; 2607#endif 2608#ifdef USE_SPECULARMAP 2609 vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; 2610#endif 2611#ifdef USE_SPECULAR_COLORMAP 2612 vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; 2613#endif 2614#ifdef USE_SPECULAR_INTENSITYMAP 2615 vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; 2616#endif 2617#ifdef USE_TRANSMISSIONMAP 2618 vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; 2619#endif 2620#ifdef USE_THICKNESSMAP 2621 vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; 2622#endif`,tz=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 2623 vec4 worldPosition = vec4( transformed, 1.0 ); 2624 #ifdef USE_BATCHING 2625 worldPosition = batchingMatrix * worldPosition; 2626 #endif 2627 #ifdef USE_INSTANCING 2628 worldPosition = instanceMatrix * worldPosition; 2629 #endif 2630 worldPosition = modelMatrix * worldPosition; 2631#endif`;const nz=`varying vec2 vUv; 2632uniform mat3 uvTransform; 2633void main() { 2634 vUv = ( uvTransform * vec3( uv, 1 ) ).xy; 2635 gl_Position = vec4( position.xy, 1.0, 1.0 ); 2636}`,iz=`uniform sampler2D t2D; 2637uniform float backgroundIntensity; 2638varying vec2 vUv; 2639void main() { 2640 vec4 texColor = texture2D( t2D, vUv ); 2641 #ifdef DECODE_VIDEO_TEXTURE 2642 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 ); 2643 #endif 2644 texColor.rgb *= backgroundIntensity; 2645 gl_FragColor = texColor; 2646 #include <tonemapping_fragment> 2647 #include <colorspace_fragment> 2648}`,sz=`varying vec3 vWorldDirection; 2649#include <common> 2650void main() { 2651 vWorldDirection = transformDirection( position, modelMatrix ); 2652 #include <begin_vertex> 2653 #include <project_vertex> 2654 gl_Position.z = gl_Position.w; 2655}`,rz=`#ifdef ENVMAP_TYPE_CUBE 2656 uniform samplerCube envMap; 2657#elif defined( ENVMAP_TYPE_CUBE_UV ) 2658 uniform sampler2D envMap; 2659#endif 2660uniform float flipEnvMap; 2661uniform float backgroundBlurriness; 2662uniform float backgroundIntensity; 2663uniform mat3 backgroundRotation; 2664varying vec3 vWorldDirection; 2665#include <cube_uv_reflection_fragment> 2666void main() { 2667 #ifdef ENVMAP_TYPE_CUBE 2668 vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); 2669 #elif defined( ENVMAP_TYPE_CUBE_UV ) 2670 vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); 2671 #else 2672 vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); 2673 #endif 2674 texColor.rgb *= backgroundIntensity; 2675 gl_FragColor = texColor; 2676 #include <tonemapping_fragment> 2677 #include <colorspace_fragment> 2678}`,az=`varying vec3 vWorldDirection; 2679#include <common> 2680void main() { 2681 vWorldDirection = transformDirection( position, modelMatrix ); 2682 #include <begin_vertex> 2683 #include <project_vertex> 2684 gl_Position.z = gl_Position.w; 2685}`,oz=`uniform samplerCube tCube; 2686uniform float tFlip; 2687uniform float opacity; 2688varying vec3 vWorldDirection; 2689void main() { 2690 vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); 2691 gl_FragColor = texColor; 2692 gl_FragColor.a *= opacity; 2693 #include <tonemapping_fragment> 2694 #include <colorspace_fragment> 2695}`,lz=`#include <common> 2696#include <batching_pars_vertex> 2697#include <uv_pars_vertex> 2698#include <displacementmap_pars_vertex> 2699#include <morphtarget_pars_vertex> 2700#include <skinning_pars_vertex> 2701#include <logdepthbuf_pars_vertex> 2702#include <clipping_planes_pars_vertex> 2703varying vec2 vHighPrecisionZW; 2704void main() { 2705 #include <uv_vertex> 2706 #include <batching_vertex> 2707 #include <skinbase_vertex> 2708 #include <morphinstance_vertex> 2709 #ifdef USE_DISPLACEMENTMAP 2710 #include <beginnormal_vertex> 2711 #include <morphnormal_vertex> 2712 #include <skinnormal_vertex> 2713 #endif 2714 #include <begin_vertex> 2715 #include <morphtarget_vertex> 2716 #include <skinning_vertex> 2717 #include <displacementmap_vertex> 2718 #include <project_vertex> 2719 #include <logdepthbuf_vertex> 2720 #include <clipping_planes_vertex> 2721 vHighPrecisionZW = gl_Position.zw; 2722}`,cz=`#if DEPTH_PACKING == 3200 2723 uniform float opacity; 2724#endif 2725#include <common> 2726#include <packing> 2727#include <uv_pars_fragment> 2728#include <map_pars_fragment> 2729#include <alphamap_pars_fragment> 2730#include <alphatest_pars_fragment> 2731#include <alphahash_pars_fragment> 2732#include <logdepthbuf_pars_fragment> 2733#include <clipping_planes_pars_fragment> 2734varying vec2 vHighPrecisionZW; 2735void main() { 2736 vec4 diffuseColor = vec4( 1.0 ); 2737 #include <clipping_planes_fragment> 2738 #if DEPTH_PACKING == 3200 2739 diffuseColor.a = opacity; 2740 #endif 2741 #include <map_fragment> 2742 #include <alphamap_fragment> 2743 #include <alphatest_fragment> 2744 #include <alphahash_fragment> 2745 #include <logdepthbuf_fragment> 2746 #ifdef USE_REVERSED_DEPTH_BUFFER 2747 float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ]; 2748 #else 2749 float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5; 2750 #endif 2751 #if DEPTH_PACKING == 3200 2752 gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); 2753 #elif DEPTH_PACKING == 3201 2754 gl_FragColor = packDepthToRGBA( fragCoordZ ); 2755 #elif DEPTH_PACKING == 3202 2756 gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); 2757 #elif DEPTH_PACKING == 3203 2758 gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); 2759 #endif 2760}`,uz=`#define DISTANCE 2761varying vec3 vWorldPosition; 2762#include <common> 2763#include <batching_pars_vertex> 2764#include <uv_pars_vertex> 2765#include <displacementmap_pars_vertex> 2766#include <morphtarget_pars_vertex> 2767#include <skinning_pars_vertex> 2768#include <clipping_planes_pars_vertex> 2769void main() { 2770 #include <uv_vertex> 2771 #include <batching_vertex> 2772 #include <skinbase_vertex> 2773 #include <morphinstance_vertex> 2774 #ifdef USE_DISPLACEMENTMAP 2775 #include <beginnormal_vertex> 2776 #include <morphnormal_vertex> 2777 #include <skinnormal_vertex> 2778 #endif 2779 #include <begin_vertex> 2780 #include <morphtarget_vertex> 2781 #include <skinning_vertex> 2782 #include <displacementmap_vertex> 2783 #include <project_vertex> 2784 #include <worldpos_vertex> 2785 #include <clipping_planes_vertex> 2786 vWorldPosition = worldPosition.xyz; 2787}`,fz=`#define DISTANCE 2788uniform vec3 referencePosition; 2789uniform float nearDistance; 2790uniform float farDistance; 2791varying vec3 vWorldPosition; 2792#include <common> 2793#include <packing> 2794#include <uv_pars_fragment> 2795#include <map_pars_fragment> 2796#include <alphamap_pars_fragment> 2797#include <alphatest_pars_fragment> 2798#include <alphahash_pars_fragment> 2799#include <clipping_planes_pars_fragment> 2800void main () { 2801 vec4 diffuseColor = vec4( 1.0 ); 2802 #include <clipping_planes_fragment> 2803 #include <map_fragment> 2804 #include <alphamap_fragment> 2805 #include <alphatest_fragment> 2806 #include <alphahash_fragment> 2807 float dist = length( vWorldPosition - referencePosition ); 2808 dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); 2809 dist = saturate( dist ); 2810 gl_FragColor = packDepthToRGBA( dist ); 2811}`,dz=`varying vec3 vWorldDirection; 2812#include <common> 2813void main() { 2814 vWorldDirection = transformDirection( position, modelMatrix ); 2815 #include <begin_vertex> 2816 #include <project_vertex> 2817}`,hz=`uniform sampler2D tEquirect; 2818varying vec3 vWorldDirection; 2819#include <common> 2820void main() { 2821 vec3 direction = normalize( vWorldDirection ); 2822 vec2 sampleUV = equirectUv( direction ); 2823 gl_FragColor = texture2D( tEquirect, sampleUV ); 2824 #include <tonemapping_fragment> 2825 #include <colorspace_fragment> 2826}`,pz=`uniform float scale; 2827attribute float lineDistance; 2828varying float vLineDistance; 2829#include <common> 2830#include <uv_pars_vertex> 2831#include <color_pars_vertex> 2832#include <fog_pars_vertex> 2833#include <morphtarget_pars_vertex> 2834#include <logdepthbuf_pars_vertex> 2835#include <clipping_planes_pars_vertex> 2836void main() { 2837 vLineDistance = scale * lineDistance; 2838 #include <uv_vertex> 2839 #include <color_vertex> 2840 #include <morphinstance_vertex> 2841 #include <morphcolor_vertex> 2842 #include <begin_vertex> 2843 #include <morphtarget_vertex> 2844 #include <project_vertex> 2845 #include <logdepthbuf_vertex> 2846 #include <clipping_planes_vertex> 2847 #include <fog_vertex> 2848}`,mz=`uniform vec3 diffuse; 2849uniform float opacity; 2850uniform float dashSize; 2851uniform float totalSize; 2852varying float vLineDistance; 2853#include <common> 2854#include <color_pars_fragment> 2855#include <uv_pars_fragment> 2856#include <map_pars_fragment> 2857#include <fog_pars_fragment> 2858#include <logdepthbuf_pars_fragment> 2859#include <clipping_planes_pars_fragment> 2860void main() { 2861 vec4 diffuseColor = vec4( diffuse, opacity ); 2862 #include <clipping_planes_fragment> 2863 if ( mod( vLineDistance, totalSize ) > dashSize ) { 2864 discard; 2865 } 2866 vec3 outgoingLight = vec3( 0.0 ); 2867 #include <logdepthbuf_fragment> 2868 #include <map_fragment> 2869 #include <color_fragment> 2870 outgoingLight = diffuseColor.rgb; 2871 #include <opaque_fragment> 2872 #include <tonemapping_fragment> 2873 #include <colorspace_fragment> 2874 #include <fog_fragment> 2875 #include <premultiplied_alpha_fragment> 2876}`,gz=`#include <common> 2877#include <batching_pars_vertex> 2878#include <uv_pars_vertex> 2879#include <envmap_pars_vertex> 2880#include <color_pars_vertex> 2881#include <fog_pars_vertex> 2882#include <morphtarget_pars_vertex> 2883#include <skinning_pars_vertex> 2884#include <logdepthbuf_pars_vertex> 2885#include <clipping_planes_pars_vertex> 2886void main() { 2887 #include <uv_vertex> 2888 #include <color_vertex> 2889 #include <morphinstance_vertex> 2890 #include <morphcolor_vertex> 2891 #include <batching_vertex> 2892 #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) 2893 #include <beginnormal_vertex> 2894 #include <morphnormal_vertex> 2895 #include <skinbase_vertex> 2896 #include <skinnormal_vertex> 2897 #include <defaultnormal_vertex> 2898 #endif 2899 #include <begin_vertex> 2900 #include <morphtarget_vertex> 2901 #include <skinning_vertex> 2902 #include <project_vertex> 2903 #include <logdepthbuf_vertex> 2904 #include <clipping_planes_vertex> 2905 #include <worldpos_vertex> 2906 #include <envmap_vertex> 2907 #include <fog_vertex> 2908}`,vz=`uniform vec3 diffuse; 2909uniform float opacity; 2910#ifndef FLAT_SHADED 2911 varying vec3 vNormal; 2912#endif 2913#include <common> 2914#include <dithering_pars_fragment> 2915#include <color_pars_fragment> 2916#include <uv_pars_fragment> 2917#include <map_pars_fragment> 2918#include <alphamap_pars_fragment> 2919#include <alphatest_pars_fragment> 2920#include <alphahash_pars_fragment> 2921#include <aomap_pars_fragment> 2922#include <lightmap_pars_fragment> 2923#include <envmap_common_pars_fragment> 2924#include <envmap_pars_fragment> 2925#include <fog_pars_fragment> 2926#include <specularmap_pars_fragment> 2927#include <logdepthbuf_pars_fragment> 2928#include <clipping_planes_pars_fragment> 2929void main() { 2930 vec4 diffuseColor = vec4( diffuse, opacity ); 2931 #include <clipping_planes_fragment> 2932 #include <logdepthbuf_fragment> 2933 #include <map_fragment> 2934 #include <color_fragment> 2935 #include <alphamap_fragment> 2936 #include <alphatest_fragment> 2937 #include <alphahash_fragment> 2938 #include <specularmap_fragment> 2939 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 2940 #ifdef USE_LIGHTMAP 2941 vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); 2942 reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; 2943 #else 2944 reflectedLight.indirectDiffuse += vec3( 1.0 ); 2945 #endif 2946 #include <aomap_fragment> 2947 reflectedLight.indirectDiffuse *= diffuseColor.rgb; 2948 vec3 outgoingLight = reflectedLight.indirectDiffuse; 2949 #include <envmap_fragment> 2950 #include <opaque_fragment> 2951 #include <tonemapping_fragment> 2952 #include <colorspace_fragment> 2953 #include <fog_fragment> 2954 #include <premultiplied_alpha_fragment> 2955 #include <dithering_fragment> 2956}`,xz=`#define LAMBERT 2957varying vec3 vViewPosition; 2958#include <common> 2959#include <batching_pars_vertex> 2960#include <uv_pars_vertex> 2961#include <displacementmap_pars_vertex> 2962#include <envmap_pars_vertex> 2963#include <color_pars_vertex> 2964#include <fog_pars_vertex> 2965#include <normal_pars_vertex> 2966#include <morphtarget_pars_vertex> 2967#include <skinning_pars_vertex> 2968#include <shadowmap_pars_vertex> 2969#include <logdepthbuf_pars_vertex> 2970#include <clipping_planes_pars_vertex> 2971void main() { 2972 #include <uv_vertex> 2973 #include <color_vertex> 2974 #include <morphinstance_vertex> 2975 #include <morphcolor_vertex> 2976 #include <batching_vertex> 2977 #include <beginnormal_vertex> 2978 #include <morphnormal_vertex> 2979 #include <skinbase_vertex> 2980 #include <skinnormal_vertex> 2981 #include <defaultnormal_vertex> 2982 #include <normal_vertex> 2983 #include <begin_vertex> 2984 #include <morphtarget_vertex> 2985 #include <skinning_vertex> 2986 #include <displacementmap_vertex> 2987 #include <project_vertex> 2988 #include <logdepthbuf_vertex> 2989 #include <clipping_planes_vertex> 2990 vViewPosition = - mvPosition.xyz; 2991 #include <worldpos_vertex> 2992 #include <envmap_vertex> 2993 #include <shadowmap_vertex> 2994 #include <fog_vertex> 2995}
2995`,yz=`#define LAMBERT 2996uniform vec3 diffuse; 2997uniform vec3 emissive; 2998uniform float opacity; 2999#include <common> 3000#include <packing> 3001#include <dithering_pars_fragment> 3002#include <color_pars_fragment> 3003#include <uv_pars_fragment> 3004#include <map_pars_fragment> 3005#include <alphamap_pars_fragment> 3006#include <alphatest_pars_fragment> 3007#include <alphahash_pars_fragment> 3008#include <aomap_pars_fragment> 3009#include <lightmap_pars_fragment> 3010#include <emissivemap_pars_fragment> 3011#include <envmap_common_pars_fragment> 3012#include <envmap_pars_fragment> 3013#include <fog_pars_fragment> 3014#include <bsdfs> 3015#include <lights_pars_begin> 3016#include <normal_pars_fragment> 3017#include <lights_lambert_pars_fragment> 3018#include <shadowmap_pars_fragment> 3019#include <bumpmap_pars_fragment> 3020#include <normalmap_pars_fragment> 3021#include <specularmap_pars_fragment> 3022#include <logdepthbuf_pars_fragment> 3023#include <clipping_planes_pars_fragment> 3024void main() { 3025 vec4 diffuseColor = vec4( diffuse, opacity ); 3026 #include <clipping_planes_fragment> 3027 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 3028 vec3 totalEmissiveRadiance = emissive; 3029 #include <logdepthbuf_fragment> 3030 #include <map_fragment> 3031 #include <color_fragment> 3032 #include <alphamap_fragment> 3033 #include <alphatest_fragment> 3034 #include <alphahash_fragment> 3035 #include <specularmap_fragment> 3036 #include <normal_fragment_begin> 3037 #include <normal_fragment_maps> 3038 #include <emissivemap_fragment> 3039 #include <lights_lambert_fragment> 3040 #include <lights_fragment_begin> 3041 #include <lights_fragment_maps> 3042 #include <lights_fragment_end> 3043 #include <aomap_fragment> 3044 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; 3045 #include <envmap_fragment> 3046 #include <opaque_fragment> 3047 #include <tonemapping_fragment> 3048 #include <colorspace_fragment> 3049 #include <fog_fragment> 3050 #include <premultiplied_alpha_fragment> 3051 #include <dithering_fragment> 3052}`,_z=`#define MATCAP 3053varying vec3 vViewPosition; 3054#include <common> 3055#include <batching_pars_vertex> 3056#include <uv_pars_vertex> 3057#include <color_pars_vertex> 3058#include <displacementmap_pars_vertex> 3059#include <fog_pars_vertex> 3060#include <normal_pars_vertex> 3061#include <morphtarget_pars_vertex> 3062#include <skinning_pars_vertex> 3063#include <logdepthbuf_pars_vertex> 3064#include <clipping_planes_pars_vertex> 3065void main() { 3066 #include <uv_vertex> 3067 #include <color_vertex> 3068 #include <morphinstance_vertex> 3069 #include <morphcolor_vertex> 3070 #include <batching_vertex> 3071 #include <beginnormal_vertex> 3072 #include <morphnormal_vertex> 3073 #include <skinbase_vertex> 3074 #include <skinnormal_vertex> 3075 #include <defaultnormal_vertex> 3076 #include <normal_vertex> 3077 #include <begin_vertex> 3078 #include <morphtarget_vertex> 3079 #include <skinning_vertex> 3080 #include <displacementmap_vertex> 3081 #include <project_vertex> 3082 #include <logdepthbuf_vertex> 3083 #include <clipping_planes_vertex> 3084 #include <fog_vertex> 3085 vViewPosition = - mvPosition.xyz; 3086}`,bz=`#define MATCAP 3087uniform vec3 diffuse; 3088uniform float opacity; 3089uniform sampler2D matcap; 3090varying vec3 vViewPosition; 3091#include <common> 3092#include <dithering_pars_fragment> 3093#include <color_pars_fragment> 3094#include <uv_pars_fragment> 3095#include <map_pars_fragment> 3096#include <alphamap_pars_fragment> 3097#include <alphatest_pars_fragment> 3098#include <alphahash_pars_fragment> 3099#include <fog_pars_fragment> 3100#include <normal_pars_fragment> 3101#include <bumpmap_pars_fragment> 3102#include <normalmap_pars_fragment> 3103#include <logdepthbuf_pars_fragment> 3104#include <clipping_planes_pars_fragment> 3105void main() { 3106 vec4 diffuseColor = vec4( diffuse, opacity ); 3107 #include <clipping_planes_fragment> 3108 #include <logdepthbuf_fragment> 3109 #include <map_fragment> 3110 #include <color_fragment> 3111 #include <alphamap_fragment> 3112 #include <alphatest_fragment> 3113 #include <alphahash_fragment> 3114 #include <normal_fragment_begin> 3115 #include <normal_fragment_maps> 3116 vec3 viewDir = normalize( vViewPosition ); 3117 vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); 3118 vec3 y = cross( viewDir, x ); 3119 vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; 3120 #ifdef USE_MATCAP 3121 vec4 matcapColor = texture2D( matcap, uv ); 3122 #else
3123 vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); 3124 #endif 3125 vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; 3126 #include <opaque_fragment> 3127 #include <tonemapping_fragment> 3128 #include <colorspace_fragment> 3129 #include <fog_fragment> 3130 #include <premultiplied_alpha_fragment> 3131 #include <dithering_fragment> 3132}`,Sz=`#define NORMAL 3133#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) 3134 varying vec3 vViewPosition; 3135#endif 3136#include <common> 3137#include <batching_pars_vertex> 3138#include <uv_pars_vertex> 3139#include <displacementmap_pars_vertex> 3140#include <normal_pars_vertex> 3141#include <morphtarget_pars_vertex> 3142#include <skinning_pars_vertex> 3143#include <logdepthbuf_pars_vertex> 3144#include <clipping_planes_pars_vertex> 3145void main() { 3146 #include <uv_vertex> 3147 #include <batching_vertex> 3148 #include <beginnormal_vertex> 3149 #include <morphinstance_vertex> 3150 #include <morphnormal_vertex> 3151 #include <skinbase_vertex> 3152 #include <skinnormal_vertex> 3153 #include <defaultnormal_vertex> 3154 #include <normal_vertex> 3155 #include <begin_vertex> 3156 #include <morphtarget_vertex> 3157 #include <skinning_vertex> 3158 #include <displacementmap_vertex> 3159 #include <project_vertex> 3160 #include <logdepthbuf_vertex> 3161 #include <clipping_planes_vertex> 3162#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) 3163 vViewPosition = - mvPosition.xyz; 3164#endif 3165}`,wz=`#define NORMAL 3166uniform float opacity; 3167#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) 3168 varying vec3 vViewPosition; 3169#endif 3170#include <packing> 3171#include <uv_pars_fragment> 3172#include <normal_pars_fragment> 3173#include <bumpmap_pars_fragment> 3174#include <normalmap_pars_fragment> 3175#include <logdepthbuf_pars_fragment> 3176#include <clipping_planes_pars_fragment> 3177void main() { 3178 vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); 3179 #include <clipping_planes_fragment> 3180 #include <logdepthbuf_fragment> 3181 #include <normal_fragment_begin> 3182 #include <normal_fragment_maps> 3183 gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a ); 3184 #ifdef OPAQUE 3185 gl_FragColor.a = 1.0; 3186 #endif 3187}`,Ez=`#define PHONG 3188varying vec3 vViewPosition; 3189#include <common> 3190#include <batching_pars_vertex> 3191#include <uv_pars_vertex> 3192#include <displacementmap_pars_vertex> 3193#include <envmap_pars_vertex> 3194#include <color_pars_vertex> 3195#include <fog_pars_vertex> 3196#include <normal_pars_vertex> 3197#include <morphtarget_pars_vertex> 3198#include <skinning_pars_vertex> 3199#include <shadowmap_pars_vertex> 3200#include <logdepthbuf_pars_vertex> 3201#include <clipping_planes_pars_vertex> 3202void main() { 3203 #include <uv_vertex> 3204 #include <color_vertex> 3205 #include <morphcolor_vertex> 3206 #include <batching_vertex> 3207 #include <beginnormal_vertex> 3208 #include <morphinstance_vertex> 3209 #include <morphnormal_vertex> 3210 #include <skinbase_vertex> 3211 #include <skinnormal_vertex> 3212 #include <defaultnormal_vertex> 3213 #include <normal_vertex> 3214 #include <begin_vertex> 3215 #include <morphtarget_vertex> 3216 #include <skinning_vertex> 3217 #include <displacementmap_vertex> 3218 #include <project_vertex> 3219 #include <logdepthbuf_vertex> 3220 #include <clipping_planes_vertex> 3221 vViewPosition = - mvPosition.xyz; 3222 #include <worldpos_vertex> 3223 #include <envmap_vertex> 3224 #include <shadowmap_vertex> 3225 #include <fog_vertex> 3226}`,Mz=`#define PHONG 3227uniform vec3 diffuse; 3228uniform vec3 emissive; 3229uniform vec3 specular; 3230uniform float shininess; 3231uniform float opacity; 3232#include <common> 3233#include <packing> 3234#include <dithering_pars_fragment> 3235#include <color_pars_fragment> 3236#include <uv_pars_fragment> 3237#include <map_pars_fragment> 3238#include <alphamap_pars_fragment> 3239#include <alphatest_pars_fragment> 3240#include <alphahash_pars_fragment> 3241#include <aomap_pars_fragment> 3242#include <lightmap_pars_fragment> 3243#include <emissivemap_pars_fragment> 3244#include <envmap_common_pars_fragment> 3245#include <envmap_pars_fragment> 3246#include <fog_pars_fragment> 3247#include <bsdfs> 3248#include <lights_pars_begin> 3249#include <normal_pars_fragment> 3250#include <lights_phong_pars_fragment> 3251#include <shadowmap_pars_fragment> 3252#include <bumpmap_pars_fragment> 3253#include <normalmap_pars_fragment> 3254#include <specularmap_pars_fragment> 3255#include <logdepthbuf_pars_fragment> 3256#include <clipping_planes_pars_fragment> 3257void main() { 3258 vec4 diffuseColor = vec4( diffuse, opacity ); 3259 #include <clipping_planes_fragment> 3260 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 3261 vec3 totalEmissiveRadiance = emissive; 3262 #include <logdepthbuf_fragment> 3263 #include <map_fragment> 3264 #include <color_fragment> 3265 #include <alphamap_fragment> 3266 #include <alphatest_fragment> 3267 #include <alphahash_fragment> 3268 #include <specularmap_fragment> 3269 #include <normal_fragment_begin> 3270 #include <normal_fragment_maps> 3271 #include <emissivemap_fragment> 3272 #include <lights_phong_fragment> 3273 #include <lights_fragment_begin> 3274 #include <lights_fragment_maps> 3275 #include <lights_fragment_end> 3276 #include <aomap_fragment> 3277 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; 3278 #include <envmap_fragment> 3279 #include <opaque_fragment> 3280 #include <tonemapping_fragment> 3281 #include <colorspace_fragment> 3282 #include <fog_fragment> 3283 #include <premultiplied_alpha_fragment> 3284 #include <dithering_fragment> 3285}`,Tz=`#define STANDARD 3286varying vec3 vViewPosition; 3287#ifdef USE_TRANSMISSION 3288 varying vec3 vWorldPosition; 3289#endif 3290#include <common> 3291#include <batching_pars_vertex> 3292#include <uv_pars_vertex> 3293#include <displacementmap_pars_vertex> 3294#include <color_pars_vertex> 3295#include <fog_pars_vertex> 3296#include <normal_pars_vertex> 3297#include <morphtarget_pars_vertex> 3298#include <skinning_pars_vertex> 3299#include <shadowmap_pars_vertex> 3300#include <logdepthbuf_pars_vertex> 3301#include <clipping_planes_pars_vertex> 3302void main() { 3303 #include <uv_vertex> 3304 #include <color_vertex> 3305 #include <morphinstance_vertex> 3306 #include <morphcolor_vertex> 3307 #include <batching_vertex> 3308 #include <beginnormal_vertex> 3309 #include <morphnormal_vertex> 3310 #include <skinbase_vertex> 3311 #include <skinnormal_vertex> 3312 #include <defaultnormal_vertex> 3313 #include <normal_vertex> 3314 #include <begin_vertex> 3315 #include <morphtarget_vertex> 3316 #include <skinning_vertex> 3317 #include <displacementmap_vertex> 3318 #include <project_vertex> 3319 #include <logdepthbuf_vertex> 3320 #include <clipping_planes_vertex> 3321 vViewPosition = - mvPosition.xyz; 3322 #include <worldpos_vertex> 3323 #include <shadowmap_vertex> 3324 #include <fog_vertex> 3325#ifdef USE_TRANSMISSION 3326 vWorldPosition = worldPosition.xyz; 3327#endif 3328}`,Az=`#define STANDARD 3329#ifdef PHYSICAL 3330 #define IOR 3331 #define USE_SPECULAR 3332#endif 3333uniform vec3 diffuse; 3334uniform vec3 emissive; 3335uniform float roughness; 3336uniform float metalness; 3337uniform float opacity; 3338#ifdef IOR 3339 uniform float ior; 3340#endif 3341#ifdef USE_SPECULAR 3342 uniform float specularIntensity; 3343 uniform vec3 specularColor; 3344 #ifdef USE_SPECULAR_COLORMAP 3345 uniform sampler2D specularColorMap; 3346 #endif 3347 #ifdef USE_SPECULAR_INTENSITYMAP 3348 uniform sampler2D specularIntensityMap; 3349 #endif 3350#endif 3351#ifdef USE_CLEARCOAT 3352 uniform float clearcoat; 3353 uniform float clearcoatRoughness; 3354#endif 3355#ifdef USE_DISPERSION 3356 uniform float dispersion; 3357#endif
3358#ifdef USE_IRIDESCENCE 3359 uniform float iridescence; 3360 uniform float iridescenceIOR; 3361 uniform float iridescenceThicknessMinimum; 3362 uniform float iridescenceThicknessMaximum; 3363#endif 3364#ifdef USE_SHEEN 3365 uniform vec3 sheenColor; 3366 uniform float sheenRoughness; 3367 #ifdef USE_SHEEN_COLORMAP 3368 uniform sampler2D sheenColorMap; 3369 #endif 3370 #ifdef USE_SHEEN_ROUGHNESSMAP 3371 uniform sampler2D sheenRoughnessMap; 3372 #endif 3373#endif 3374#ifdef USE_ANISOTROPY 3375 uniform vec2 anisotropyVector; 3376 #ifdef USE_ANISOTROPYMAP 3377 uniform sampler2D anisotropyMap; 3378 #endif 3379#endif 3380varying vec3 vViewPosition; 3381#include <common> 3382#include <packing> 3383#include <dithering_pars_fragment> 3384#include <color_pars_fragment> 3385#include <uv_pars_fragment> 3386#include <map_pars_fragment> 3387#include <alphamap_pars_fragment> 3388#include <alphatest_pars_fragment> 3389#include <alphahash_pars_fragment> 3390#include <aomap_pars_fragment> 3391#include <lightmap_pars_fragment> 3392#include <emissivemap_pars_fragment> 3393#include <iridescence_fragment> 3394#include <cube_uv_reflection_fragment> 3395#include <envmap_common_pars_fragment> 3396#include <envmap_physical_pars_fragment> 3397#include <fog_pars_fragment> 3398#include <lights_pars_begin> 3399#include <normal_pars_fragment> 3400#include <lights_physical_pars_fragment> 3401#include <transmission_pars_fragment> 3402#include <shadowmap_pars_fragment> 3403#include <bumpmap_pars_fragment> 3404#include <normalmap_pars_fragment> 3405#include <clearcoat_pars_fragment> 3406#include <iridescence_pars_fragment> 3407#include <roughnessmap_pars_fragment> 3408#include <metalnessmap_pars_fragment> 3409#include <logdepthbuf_pars_fragment> 3410#include <clipping_planes_pars_fragment> 3411void main() { 3412 vec4 diffuseColor = vec4( diffuse, opacity ); 3413 #include <clipping_planes_fragment> 3414 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 3415 vec3 totalEmissiveRadiance = emissive; 3416 #include <logdepthbuf_fragment> 3417 #include <map_fragment> 3418 #include <color_fragment> 3419 #include <alphamap_fragment> 3420 #include <alphatest_fragment> 3421 #include <alphahash_fragment> 3422 #include <roughnessmap_fragment> 3423 #include <metalnessmap_fragment> 3424 #include <normal_fragment_begin> 3425 #include <normal_fragment_maps> 3426 #include <clearcoat_normal_fragment_begin> 3427 #include <clearcoat_normal_fragment_maps> 3428 #include <emissivemap_fragment> 3429 #include <lights_physical_fragment> 3430 #include <lights_fragment_begin> 3431 #include <lights_fragment_maps> 3432 #include <lights_fragment_end> 3433 #include <aomap_fragment> 3434 vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; 3435 vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; 3436 #include <transmission_fragment> 3437 vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; 3438 #ifdef USE_SHEEN 3439 float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); 3440 outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; 3441 #endif 3442 #ifdef USE_CLEARCOAT 3443 float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); 3444 vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); 3445 outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; 3446 #endif 3447 #include <opaque_fragment> 3448 #include <tonemapping_fragment> 3449 #include <colorspace_fragment> 3450 #include <fog_fragment> 3451 #include <premultiplied_alpha_fragment> 3452 #include <dithering_fragment> 3453}`,Cz=`#define TOON 3454varying vec3 vViewPosition; 3455#include <common> 3456#include <batching_pars_vertex> 3457#include <uv_pars_vertex> 3458#include <displacementmap_pars_vertex> 3459#include <color_pars_vertex> 3460#include <fog_pars_vertex> 3461#include <normal_pars_vertex> 3462#include <morphtarget_pars_vertex> 3463#include <skinning_pars_vertex> 3464#include <shadowmap_pars_vertex> 3465#include <logdepthbuf_pars_vertex> 3466#include <clipping_planes_pars_vertex> 3467void main() { 3468 #include <uv_vertex> 3469 #include <color_vertex> 3470 #include <morphinstance_vertex> 3471 #include <morphcolor_vertex> 3472 #include <batching_vertex> 3473 #include <beginnormal_vertex> 3474 #include <morphnormal_vertex> 3475 #include <skinbase_vertex> 3476 #include <skinnormal_vertex> 3477 #include <defaultnormal_vertex> 3478 #include <normal_vertex> 3479 #include <begin_vertex> 3480 #include <morphtarget_vertex> 3481 #include <skinning_vertex> 3482 #include <displacementmap_vertex> 3483 #include <project_vertex> 3484 #include <logdepthbuf_vertex> 3485 #include <clipping_planes_vertex> 3486 vViewPosition = - mvPosition.xyz; 3487 #include <worldpos_vertex> 3488 #include <shadowmap_vertex> 3489 #include <fog_vertex> 3490}`,Rz=`#define TOON 3491uniform vec3 diffuse; 3492uniform vec3 emissive; 3493uniform float opacity; 3494#include <common> 3495#include <packing> 3496#include <dithering_pars_fragment> 3497#include <color_pars_fragment> 3498#include <uv_pars_fragment> 3499#include <map_pars_fragment> 3500#include <alphamap_pars_fragment> 3501#include <alphatest_pars_fragment> 3502#include <alphahash_pars_fragment> 3503#include <aomap_pars_fragment> 3504#include <lightmap_pars_fragment> 3505#include <emissivemap_pars_fragment> 3506#include <gradientmap_pars_fragment> 3507#include <fog_pars_fragment> 3508#include <bsdfs> 3509#include <lights_pars_begin> 3510#include <normal_pars_fragment> 3511#include <lights_toon_pars_fragment> 3512#include <shadowmap_pars_fragment> 3513#include <bumpmap_pars_fragment> 3514#include <normalmap_pars_fragment> 3515#include <logdepthbuf_pars_fragment> 3516#include <clipping_planes_pars_fragment> 3517void main() { 3518 vec4 diffuseColor = vec4( diffuse, opacity ); 3519 #include <clipping_planes_fragment> 3520 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 3521 vec3 totalEmissiveRadiance = emissive; 3522 #include <logdepthbuf_fragment> 3523 #include <map_fragment> 3524 #include <color_fragment> 3525 #include <alphamap_fragment> 3526 #include <alphatest_fragment> 3527 #include <alphahash_fragment> 3528 #include <normal_fragment_begin> 3529 #include <normal_fragment_maps> 3530 #include <emissivemap_fragment> 3531 #include <lights_toon_fragment> 3532 #include <lights_fragment_begin> 3533 #include <lights_fragment_maps> 3534 #include <lights_fragment_end> 3535 #include <aomap_fragment> 3536 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; 3537 #include <opaque_fragment> 3538 #include <tonemapping_fragment> 3539 #include <colorspace_fragment> 3540 #include <fog_fragment> 3541 #include <premultiplied_alpha_fragment> 3542 #include <dithering_fragment> 3543}`,Nz=`uniform float size; 3544uniform float scale; 3545#include <common> 3546#include <color_pars_vertex> 3547#include <fog_pars_vertex> 3548#include <morphtarget_pars_vertex> 3549#include <logdepthbuf_pars_vertex> 3550#include <clipping_planes_pars_vertex> 3551#ifdef USE_POINTS_UV 3552 varying vec2 vUv; 3553 uniform mat3 uvTransform; 3554#endif 3555void main() { 3556 #ifdef USE_POINTS_UV 3557 vUv = ( uvTransform * vec3( uv, 1 ) ).xy; 3558 #endif 3559 #include <color_vertex> 3560 #include <morphinstance_vertex> 3561 #include <morphcolor_vertex> 3562 #include <begin_vertex> 3563 #include <morphtarget_vertex> 3564 #include <project_vertex> 3565 gl_PointSize = size; 3566 #ifdef USE_SIZEATTENUATION 3567 bool isPerspective = isPerspectiveMatrix( projectionMatrix ); 3568 if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); 3569 #endif 3570 #include <logdepthbuf_vertex> 3571 #include <clipping_planes_vertex> 3572 #include <worldpos_vertex> 3573 #include <fog_vertex> 3574}`,Dz=`uniform vec3 diffuse; 3575uniform float opacity; 3576#include <common> 3577#include <color_pars_fragment> 3578#include <map_particle_pars_fragment> 3579#include <alphatest_pars_fragment> 3580#include <alphahash_pars_fragment> 3581#include <fog_pars_fragment> 3582#include <logdepthbuf_pars_fragment> 3583#include <clipping_planes_pars_fragment> 3584void main() { 3585 vec4 diffuseColor = vec4( diffuse, opacity ); 3586 #include <clipping_planes_fragment> 3587 vec3 outgoingLight = vec3( 0.0 ); 3588 #include <logdepthbuf_fragment> 3589 #include <map_particle_fragment> 3590 #include <color_fragment> 3591 #include <alphatest_fragment> 3592 #include <alphahash_fragment> 3593 outgoingLight = diffuseColor.rgb; 3594 #include <opaque_fragment> 3595 #include <tonemapping_fragment> 3596 #include <colorspace_fragment> 3597 #include <fog_fragment> 3598 #include <premultiplied_alpha_fragment> 3599}`,Pz=`#include <common> 3600#include <batching_pars_vertex> 3601#include <fog_pars_vertex> 3602#include <morphtarget_pars_vertex> 3603#include <skinning_pars_vertex> 3604#include <logdepthbuf_pars_vertex> 3605#include <shadowmap_pars_vertex> 3606void main() { 3607 #include <batching_vertex> 3608 #include <beginnormal_vertex> 3609 #include <morphinstance_vertex> 3610 #include <morphnormal_vertex> 3611 #include <skinbase_vertex> 3612 #include <skinnormal_vertex> 3613 #include <defaultnormal_vertex> 3614 #include <begin_vertex> 3615 #include <morphtarget_vertex> 3616 #include <skinning_vertex> 3617 #include <project_vertex> 3618 #include <logdepthbuf_vertex> 3619 #include <worldpos_vertex> 3620 #include <shadowmap_vertex> 3621 #include <fog_vertex> 3622}`,Lz=`uniform vec3 color; 3623uniform float opacity; 3624#include <common> 3625#include <packing> 3626#include <fog_pars_fragment> 3627#include <bsdfs> 3628#include <lights_pars_begin> 3629#include <logdepthbuf_pars_fragment> 3630#include <shadowmap_pars_fragment> 3631#include <shadowmask_pars_fragment> 3632void main() { 3633 #include <logdepthbuf_fragment> 3634 gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); 3635 #include <tonemapping_fragment> 3636 #include <colorspace_fragment> 3637 #include <fog_fragment> 3638}`,Oz=`uniform float rotation; 3639uniform vec2 center; 3640#include <common> 3641#include <uv_pars_vertex> 3642#include <fog_pars_vertex> 3643#include <logdepthbuf_pars_vertex> 3644#include <clipping_planes_pars_vertex> 3645void main() { 3646 #include <uv_vertex> 3647 vec4 mvPosition = modelViewMatrix[ 3 ]; 3648 vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); 3649 #ifndef USE_SIZEATTENUATION 3650 bool isPerspective = isPerspectiveMatrix( projectionMatrix ); 3651 if ( isPerspective ) scale *= - mvPosition.z; 3652 #endif 3653 vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; 3654 vec2 rotatedPosition; 3655 rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; 3656 rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; 3657 mvPosition.xy += rotatedPosition; 3658 gl_Position = projectionMatrix * mvPosition; 3659 #include <logdepthbuf_vertex> 3660 #include <clipping_planes_vertex> 3661 #include <fog_vertex> 3662}`,Uz=`uniform vec3 diffuse; 3663uniform float opacity; 3664#include <common> 3665#include <uv_pars_fragment> 3666#include <map_pars_fragment> 3667#include <alphamap_pars_fragment> 3668#include <alphatest_pars_fragment> 3669#include <alphahash_pars_fragment> 3670#include <fog_pars_fragment> 3671#include <logdepthbuf_pars_fragment> 3672#include <clipping_planes_pars_fragment> 3673void main() { 3674 vec4 diffuseColor = vec4( diffuse, opacity ); 3675 #include <clipping_planes_fragment> 3676 vec3 outgoingLight = vec3( 0.0 ); 3677 #include <logdepthbuf_fragment> 3678 #include <map_fragment> 3679 #include <alphamap_fragment> 3680 #include <alphatest_fragment> 3681 #include <alphahash_fragment> 3682 outgoingLight = diffuseColor.rgb; 3683 #include <opaque_fragment> 3684 #include <tonemapping_fragment> 3685 #include <colorspace_fragment> 3686 #include <fog_fragment> 3687}
3687`,yt={alphahash_fragment:iB,alphahash_pars_fragment:sB,alphamap_fragment:rB,alphamap_pars_fragment:aB,alphatest_fragment:oB,alphatest_pars_fragment:lB,aomap_fragment:cB,aomap_pars_fragment:uB,batching_pars_vertex:fB,batching_vertex:dB,begin_vertex:hB,beginnormal_vertex:pB,bsdfs:mB,iridescence_fragment:gB,bumpmap_pars_fragment:vB,clipping_planes_fragment:xB,clipping_planes_pars_fragment:yB,clipping_planes_pars_vertex:_B,clipping_planes_vertex:bB,color_fragment:SB,color_pars_fragment:wB,color_pars_vertex:EB,color_vertex:MB,common:TB,cube_uv_reflection_fragment:AB,defaultnormal_vertex:CB,displacementmap_pars_vertex:RB,displacementmap_vertex:NB,emissivemap_fragment:DB,emissivemap_pars_fragment:PB,colorspace_fragment:LB,colorspace_pars_fragment:OB,envmap_fragment:UB,envmap_common_pars_fragment:IB,envmap_pars_fragment:BB,envmap_pars_vertex:FB,envmap_physical_pars_fragment:$B,envmap_vertex:zB,fog_vertex:jB,fog_pars_vertex:kB,fog_fragment:VB,fog_pars_fragment:HB,gradientmap_pars_fragment:GB,lightmap_pars_fragment:WB,lights_lambert_fragment:XB,lights_lambert_pars_fragment:qB,lights_pars_begin:YB,lights_toon_fragment:KB,lights_toon_pars_fragment:ZB,lights_phong_fragment:QB,lights_phong_pars_fragment:JB,lights_physical_fragment:eF,lights_physical_pars_fragment:tF,lights_fragment_begin:nF,lights_fragment_maps:iF,lights_fragment_end:sF,logdepthbuf_fragment:rF,logdepthbuf_pars_fragment:aF,logdepthbuf_pars_vertex:oF,logdepthbuf_vertex:lF,map_fragment:cF,map_pars_fragment:uF,map_particle_fragment:fF,map_particle_pars_fragment:dF,metalnessmap_fragment:hF,metalnessmap_pars_fragment:pF,morphinstance_vertex:mF,morphcolor_vertex:gF,morphnormal_vertex:vF,morphtarget_pars_vertex:xF,morphtarget_vertex:yF,normal_fragment_begin:_F,normal_fragment_maps:bF,normal_pars_fragment:SF,normal_pars_vertex:wF,normal_vertex:EF,normalmap_pars_fragment:MF,clearcoat_normal_fragment_begin:TF,clearcoat_normal_fragment_maps:AF,clearcoat_pars_fragment:CF,iridescence_pars_fragment:RF,opaque_fragment:NF,packing:DF,premultiplied_alpha_fragment:PF,project_vertex:LF,dithering_fragment:OF,dithering_pars_fragment:UF,roughnessmap_fragment:IF,roughnessmap_pars_fragment:BF,shadowmap_pars_fragment:FF,shadowmap_pars_vertex:zF,shadowmap_vertex:jF,shadowmask_pars_fragment:kF,skinbase_vertex:VF,skinning_pars_vertex:HF,skinning_vertex:GF,skinnormal_vertex:WF,specularmap_fragment:XF,specularmap_pars_fragment:qF,tonemapping_fragment:YF,tonemapping_pars_fragment:$F,transmission_fragment:KF,transmission_pars_fragment:ZF,uv_pars_fragment:QF,uv_pars_vertex:JF,uv_vertex:ez,worldpos_vertex:tz,background_vert:nz,background_frag:iz,backgroundCube_vert:sz,backgroundCube_frag:rz,cube_vert:az,cube_frag:oz,depth_vert:lz,depth_frag:cz,distanceRGBA_vert:uz,distanceRGBA_frag:fz,equirect_vert:dz,equirect_frag:hz,linedashed_vert:pz,linedashed_frag:mz,meshbasic_vert:gz,meshbasic_frag:vz,meshlambert_vert:xz,meshlambert_frag:yz,meshmatcap_vert:_z,meshmatcap_frag:bz,meshnormal_vert:Sz,meshnormal_frag:wz,meshphong_vert:Ez,meshphong_frag:Mz,meshphysical_vert:Tz,meshphysical_frag:Az,meshtoon_vert:Cz,meshtoon_frag:Rz,points_vert:Nz,points_frag:Dz,shadow_vert:Pz,shadow_frag:Lz,sprite_vert:Oz,sprite_frag:Uz},ke={common:{diffuse:{value:new qt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new xt},alphaMap:{value:null},alphaMapTransform:{value:new xt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new xt}},envmap:{envMap:{value:null},envMapRotation:{value:new xt},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new xt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new xt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new xt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new xt},normalScale:{value:new wt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new xt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new xt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new xt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new xt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new qt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,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 qt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new xt},alphaTest:{value:0},uvTransform:{value:new xt}},sprite:{diffuse:{value:new qt(16777215)},opacity:{value:1},center:{value:new wt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new xt},alphaMap:{value:null},alphaMapTransform:{value:new xt},alphaTest:{value:0}}},or={basic:{uniforms:_i([ke.common,ke.specularmap,ke.envmap,ke.aomap,ke.lightmap,ke.fog]),vertexShader:yt.meshbasic_vert,fragmentShader:yt.meshbasic_frag},lambert:{uniforms:_i([ke.common,ke.specularmap,ke.envmap,ke.aomap,ke.lightmap,ke.emissivemap,ke.bumpmap,ke.normalmap,ke.displacementmap,ke.fog,ke.lights,{emissive:{value:new qt(0)}}]),vertexShader:yt.meshlambert_vert,fragmentShader:yt.meshlambert_frag},phong:{uniforms:_i([ke.common,ke.specularmap,ke.envmap,ke.aomap,ke.lightmap,ke.emissivemap,ke.bumpmap,ke.normalmap,ke.displacementmap,ke.fog,ke.lights,{emissive:{value:new qt(0)},specular:{value:new qt(1118481)},shininess:{value:30}}]),vertexShader:yt.meshphong_vert,fragmentShader:yt.meshphong_frag},standard:{uniforms:_i([ke.common,ke.envmap,ke.aomap,ke.lightmap,ke.emissivemap,ke.bumpmap,ke.normalmap,ke.displacementmap,ke.roughnessmap,ke.metalnessmap,ke.fog,ke.lights,{emissive:{value:new qt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:yt.meshphysical_vert,fragmentShader:yt.meshphysical_frag},toon:{uniforms:_i([ke.common,ke.aomap,ke.lightmap,ke.emissivemap,ke.bumpmap,ke.normalmap,ke.displacementmap,ke.gradientmap,ke.fog,ke.lights,{emissive:{value:new qt(0)}}]),vertexShader:yt.meshtoon_vert,fragmentShader:yt.meshtoon_frag},matcap:{uniforms:_i([ke.common,ke.bumpmap,ke.normalmap,ke.displacementmap,ke.fog,{matc
vendor: 5,281 bytes, line 3687
3687ap:{value:null}}]),vertexShader:yt.meshmatcap_vert,fragmentShader:yt.meshmatcap_frag},points:{uniforms:_i([ke.points,ke.fog]),vertexShader:yt.points_vert,fragmentShader:yt.points_frag},dashed:{uniforms:_i([ke.common,ke.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:yt.linedashed_vert,fragmentShader:yt.linedashed_frag},depth:{uniforms:_i([ke.common,ke.displacementmap]),vertexShader:yt.depth_vert,fragmentShader:yt.depth_frag},normal:{uniforms:_i([ke.common,ke.bumpmap,ke.normalmap,ke.displacementmap,{opacity:{value:1}}]),vertexShader:yt.meshnormal_vert,fragmentShader:yt.meshnormal_frag},sprite:{uniforms:_i([ke.sprite,ke.fog]),vertexShader:yt.sprite_vert,fragmentShader:yt.sprite_frag},background:{uniforms:{uvTransform:{value:new xt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:yt.background_vert,fragmentShader:yt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new xt}},vertexShader:yt.backgroundCube_vert,fragmentShader:yt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:yt.cube_vert,fragmentShader:yt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:yt.equirect_vert,fragmentShader:yt.equirect_frag},distanceRGBA:{uniforms:_i([ke.common,ke.displacementmap,{referencePosition:{value:new pe},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:yt.distanceRGBA_vert,fragmentShader:yt.distanceRGBA_frag},shadow:{uniforms:_i([ke.lights,ke.fog,{color:{value:new qt(0)},opacity:{value:1}}]),vertexShader:yt.shadow_vert,fragmentShader:yt.shadow_frag}};or.physical={uniforms:_i([or.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new xt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new xt},clearcoatNormalScale:{value:new wt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new xt},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new xt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new xt},sheen:{value:0},sheenColor:{value:new qt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new xt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new xt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new xt},transmissionSamplerSize:{value:new wt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new xt},attenuationDistance:{value:0},attenuationColor:{value:new qt(0)},specularColor:{value:new qt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new xt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new xt},anisotropyVector:{value:new wt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new xt}}]),vertexShader:yt.meshphysical_vert,fragmentShader:yt.meshphysical_frag};const bp={r:0,b:0,g:0},Ho=new ra,Iz=new Wn;function Bz(n,e,t,i,s,a,l){const c=new qt(0);let f=a===!0?0:1,d,h,g=null,v=0,x=null;function b(M){let C=M.isScene===!0?M.background:null;return C&&C.isTexture&&(C=(M.backgroundBlurriness>0?t:e).get(C)),C}function _(M){let C=!1;const N=b(M);N===null?S(c,f):N&&N.isColor&&(S(N,1),C=!0);const U=n.xr.getEnvironmentBlendMode();U==="additive"?i.buffers.color.setClear(0,0,0,1,l):U==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,l),(n.autoClear||C)&&(i.buffers.depth.setTest(!0),i.buffers.depth.setMask(!0),i.buffers.color.setMask(!0),n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil))}function w(M,C){const N=b(C);N&&(N.isCubeTexture||N.mapping===$m)?(h===void 0&&(h=new Gs(new Ud(1,1,1),new Ds({name:"BackgroundCubeMaterial",uniforms:Jc(or.backgroundCube.uniforms),vertexShader:or.backgroundCube.vertexShader,fragmentShader:or.backgroundCube.fragmentShader,side:Qn,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),h.geometry.deleteAttribute("normal"),h.geometry.deleteAttribute("uv"),h.onBeforeRender=function(U,P,O){this.matrixWorld.copyPosition(O.matrixWorld)},Object.defineProperty(h.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),s.update(h)),Ho.copy(C.backgroundRotation),Ho.x*=-1,Ho.y*=-1,Ho.z*=-1,N.isCubeTexture&&N.isRenderTargetTexture===!1&&(Ho.y*=-1,Ho.z*=-1),h.material.uniforms.envMap.value=N,h.material.uniforms.flipEnvMap.value=N.isCubeTexture&&N.isRenderTargetTexture===!1?-1:1,h.material.uniforms.backgroundBlurriness.value=C.backgroundBlurriness,h.material.uniforms.backgroundIntensity.value=C.backgroundIntensity,h.material.uniforms.backgroundRotation.value.setFromMatrix4(Iz.makeRotationFromEuler(Ho)),h.material.toneMapped=zt.getTransfer(N.colorSpace)!==en,(g!==N||v!==N.version||x!==n.toneMapping)&&(h.material.needsUpdate=!0,g=N,v=N.version,x=n.toneMapping),h.layers.enableAll(),M.unshift(h,h.geometry,h.material,0,0,null)):N&&N.isTexture&&(d===void 0&&(d=new Gs(new Id(2,2),new Ds({name:"Backgroun
3687dMaterial",uniforms:Jc(or.background.uniforms),vertexShader:or.background.vertexShader,fragmentShader:or.background.fragmentShader,side:sa,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),s.update(d)),d.material.uniforms.t2D.value=N,d.material.uniforms.backgroundIntensity.value=C.backgroundIntensity,d.material.toneMapped=zt.getTransfer(N.colorSpace)!==en,N.matrixAutoUpdate===!0&&N.updateMatrix(),d.material.uniforms.uvTransform.value.copy(N.matrix),(g!==N||v!==N.version||x!==n.toneMapping)&&(d.material.needsUpdate=!0,g=N,v=N.version,x=n.toneMapping),d.layers.enableAll(),M.unshift(d,d.geometry,d.material,0,0,null))}function S(M,C){M.getRGB(bp,vR(n)),i.buffers.color.setClear(bp.r,bp.g,bp.b,C,l)}function T(){h!==void 0&&(h.geometry.dispose(),h.material.dispose(),h=void 0),d!==void 0&&(d.geometry.dispose(),d.material.dispose(),d=void 0)}return{getClearColor:function(){return c},setClearColor:function(M,C=1){c.set(M),f=C,S(c,f)},getClearAlpha:function(){return f},setClearAlpha:function(M){f=M,S(c,f)},render:_,addToRenderList:w,dispose:T}}function Fz(n,e){const t=n.getParameter(n.MAX_VERTEX_ATTRIBS),i={},s=v(null);let a=s,l=!1;function c(L,z,H,Y,K){let q=!1;const B=g(Y,H,z);a!==B&&(a=B,d(a.object)),q=x(L,Y,H,K),q&&b(L,Y,H,K),K!==null&&e.update(K,n.ELEMENT_ARRAY_BUFFER),(q||l)&&(l=!1,C(L,z,H,Y),K!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,e.get(K).buffer))}function f(){return n.createVertexArray()}function d(L){return n.bindVertexArray(L)}function h(L){return n.deleteVertexArray(L)}function g(L,z,H){const Y=H.wireframe===!0;let K=i[L.id];K===void 0&&(K={},i[L.id]=K);let q=K[z.id];q===void 0&&(q={},K[z.id]=q);let B=q[Y];return B===void 0&&(B=v(f()),q[Y]=B),B}function v(L){const z=[],H=[],Y=[];for(let K=0;K<t;K++)z[K]=0,H[K]=0,Y[K]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:z,enabledAttributes:H,attributeDivisors:Y,object:L,attributes:{},index:null}}function x(L,z,H,Y){const K=a.attributes,q=z.attributes;let B=0;const W=H.getAttributes();for(const j in W)if(W[j].location>=0){const fe=K[j];let G=q[j];if(G===void 0&&(j==="instanceMatrix"&&L.instanceMatrix&&(G=L.instanceMatrix),j==="instanceColor"&&L.instanceColor&&(G=L.instanceColor)),fe===void 0||fe.attribute!==G||G&&fe.data!==G.data)return!0;B++}return a.attributesNum!==B||a.index!==Y}function b(L,z,H,Y){const K={},q=z.attributes;let B=0;const W=H.getAttributes();for(const j in W)if(W[j].location>=0){let fe=q[j];fe===void 0&&(j==="instanceMatrix"&&L.instanceMatrix&&(fe=L.instanceMatrix),j==="instanceColor"&&L.instanceColor&&(fe=L.instanceColor));const G={};G.attribute=fe,fe&&fe.data&&(G.data=fe.data),K[j]=G,B++}a.attributes=K,a.attributesNum=B,a.index=Y}function _(){const L=a.newAttributes;for(let z=0,H=L.length;z<H;z++)L[z]=0}function w(L){S(L,0)}function S(L,z){const H=a.newAttributes,Y=a.enabledAttributes,K=a.attributeDivisors;H[L]=1,Y[L]===0&&(n.enableVertexAttribArray(L),Y[L]=1),K[L]!==z&&(n.vertexAttribDivisor(L,z),K[L]=z)}function T(){const L=a.newAttributes,z=a.enabledAttributes;for(let H=0,Y=z.length;H<Y;H++)z[H]!==L[H]&&(n.disableVertexAttribArray(H),z[H]=0)}function M(L,z,H,Y,K,q,B){B===!0?n.vertexAttribIPointer(L,z,H,K,q):n.vertexAttribPointer(L,z,H,Y,K,q)}function C(L,z,H,Y){_();const K=Y.attributes,q=H.getAttributes(),B=z.defaultAttributeValues;for(const W in q){const j=q[W];if(j.location>=0){let ae=K[W];if(ae===void 0&&(W==="instanceMatrix"&&L.instanceMatrix&&(ae=L.instanceMatrix),W==="instanceColor"&&L.instanceColor&&(ae=L.instanceColor)),ae!==void 0){const fe=ae.normalized,G=ae.itemSize,ee=e.get(ae);if(ee===void 0)continue;const me=ee.buffer,ve=ee.type,ge=ee.bytesPerElement,ie=ve===n.INT||ve===n.UNSIGNED_INT||ae.gpuType===db;if(ae.isInterleavedBufferAttribute){const Z=ae.data,xe=Z.stride,Me=ae.offset;if(Z.isInstancedInterleavedBuffer){for(let Ae=0;Ae<j.locationSize;Ae++)S(j.location+Ae,Z.meshPerAttribute);L.isInstancedMesh!==!0&&Y._maxInstanceCount===void 0&&(Y._maxInstanceCount=Z.meshPerAttribute*Z.count)}else for(let Ae=0;Ae<j.locationSize;Ae++)w(j.location+Ae);n.bindBuffer(n.ARRAY_BUFFER,me);for(let Ae=0;Ae<j.locationSize;Ae++)M(j.location+Ae,G/j.locationSize,ve,fe,xe*ge,(Me+G/j.locationSize*Ae)*ge,ie)}else{if(ae.isInstancedBufferAttribute){for(let Z=0;Z<j.locationSize;Z++)S(j.location+Z,ae.meshPerAttribute);L.isInstancedMesh!==!0&&Y._maxInstanceCount===void 0&&(Y._maxInstanceCount=ae.meshPerAttribute*ae.count)}else for(let Z=0;Z<j.locationSize;Z++)w(j.location+Z);n.bindBuffer(n.ARRAY_BUFFER,me);for(let Z=0;Z<j.locationSize;Z++)M(j.location+Z,G/j.locationSize,ve,fe,G*ge,G/j.locationSize*Z*ge,ie)}}else if(B!==void 0){const fe=B[W];if(fe!==void 0)switch(fe.length){case 2:n.vertexAttrib2fv(j.location,fe);break;case 3:n.vertexAttrib3fv(j.location,fe);break;case 4:n.vertexAttrib4fv(j.location,fe);break;default:n.vertexAttrib1fv(j.location,fe)}}}}T()}function N(){O();for(const L in i){const z=i[L];for(const H in z){const Y=z[H];for(const K in Y)h(Y[K].object),delete Y[K];delete z[H]}delete i[L]}}function U(L){if(i[L.id]===void 0)return;const z=i[L.id];for(const H in z){const Y=z[H];for(const K in Y)h(Y[K].object),delete Y[K];delete z[H]}delete i[L.id]}function P(L){for(const z in i){const H=i[z];if(H[L.id]===void 0)continue;const Y=H[L.id];for(const K in Y)h(Y[K].object),delete Y[K];delete H[L.id]}}function O(){R(),l=!0,a!==s&&(a=s,d(a.object))}
vendor: 4,532 bytes, line 3687
3687function R(){s.geometry=null,s.program=null,s.wireframe=!1}return{setup:c,reset:O,resetDefaultState:R,dispose:N,releaseStatesOfGeometry:U,releaseStatesOfProgram:P,initAttributes:_,enableAttribute:w,disableUnusedAttributes:T}}function zz(n,e,t){let i;function s(d){i=d}function a(d,h){n.drawArrays(i,d,h),t.update(h,i,1)}function l(d,h,g){g!==0&&(n.drawArraysInstanced(i,d,h,g),t.update(h,i,g))}function c(d,h,g){if(g===0)return;e.get("WEBGL_multi_draw").multiDrawArraysWEBGL(i,d,0,h,0,g);let x=0;for(let b=0;b<g;b++)x+=h[b];t.update(x,i,1)}function f(d,h,g,v){if(g===0)return;const x=e.get("WEBGL_multi_draw");if(x===null)for(let b=0;b<d.length;b++)l(d[b],h[b],v[b]);else{x.multiDrawArraysInstancedWEBGL(i,d,0,h,0,v,0,g);let b=0;for(let _=0;_<g;_++)b+=h[_]*v[_];t.update(b,i,1)}}this.setMode=s,this.render=a,this.renderInstances=l,this.renderMultiDraw=c,this.renderMultiDrawInstances=f}function jz(n,e,t,i){let s;function a(){if(s!==void 0)return s;if(e.has("EXT_texture_filter_anisotropic")===!0){const P=e.get("EXT_texture_filter_anisotropic");s=n.getParameter(P.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else s=0;return s}function l(P){return!(P!==Hs&&i.convert(P)!==n.getParameter(n.IMPLEMENTATION_COLOR_READ_FORMAT))}function c(P){const O=P===Nd&&(e.has("EXT_color_buffer_half_float")||e.has("EXT_color_buffer_float"));return!(P!==as&&i.convert(P)!==n.getParameter(n.IMPLEMENTATION_COLOR_READ_TYPE)&&P!==ta&&!O)}function f(P){if(P==="highp"){if(n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";P="mediump"}return P==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let d=t.precision!==void 0?t.precision:"highp";const h=f(d);h!==d&&(console.warn("THREE.WebGLRenderer:",d,"not supported, using",h,"instead."),d=h);const g=t.logarithmicDepthBuffer===!0,v=t.reversedDepthBuffer===!0&&e.has("EXT_clip_control"),x=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),b=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),_=n.getParameter(n.MAX_TEXTURE_SIZE),w=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),S=n.getParameter(n.MAX_VERTEX_ATTRIBS),T=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),M=n.getParameter(n.MAX_VARYING_VECTORS),C=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),N=b>0,U=n.getParameter(n.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:f,textureFormatReadable:l,textureTypeReadable:c,precision:d,logarithmicDepthBuffer:g,reversedDepthBuffer:v,maxTextures:x,maxVertexTextures:b,maxTextureSize:_,maxCubemapSize:w,maxAttributes:S,maxVertexUniforms:T,maxVaryings:M,maxFragmentUniforms:C,vertexTextures:N,maxSamples:U}}function kz(n){const e=this;let t=null,i=0,s=!1,a=!1;const l=new $o,c=new xt,f={value:null,needsUpdate:!1};this.uniform=f,this.numPlanes=0,this.numIntersection=0,this.init=function(g,v){const x=g.length!==0||v||i!==0||s;return s=v,i=g.length,x},this.beginShadows=function(){a=!0,h(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(g,v){t=h(g,v,0)},this.setState=function(g,v,x){const b=g.clippingPlanes,_=g.clipIntersection,w=g.clipShadows,S=n.get(g);if(!s||b===null||b.length===0||a&&!w)a?h(null):d();else{const T=a?0:i,M=T*4;let C=S.clippingState||null;f.value=C,C=h(b,v,M,x);for(let N=0;N!==M;++N)C[N]=t[N];S.clippingState=C,this.numIntersection=_?this.numPlanes:0,this.numPlanes+=T}};function d(){f.value!==t&&(f.value=t,f.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function h(g,v,x,b){const _=g!==null?g.length:0;let w=null;if(_!==0){if(w=f.value,b!==!0||w===null){const S=x+_*4,T=v.matrixWorldInverse;c.getNormalMatrix(T),(w===null||w.length<S)&&(w=new Float32Array(S));for(let M=0,C=x;M!==_;++M,C+=4)l.copy(g[M]).applyMatrix4(T,c),l.normal.toArray(w,C),w[C+3]=l.constant}f.value=w,f.needsUpdate=!0}return e.numPlanes=_,e.numIntersection=0,w}}function Vz(n){let e=new WeakMap;function t(l,c){return c===gy?l.mapping=$c:c===vy&&(l.mapping=Kc),l}function i(l){if(l&&l.isTexture){const c=l.mapping;if(c===gy||c===vy)if(e.has(l)){const f=e.get(l).texture;return t(f,l.mapping)}else{const f=l.image;if(f&&f.height>0){const d=new XI(f.height);return d.fromEquirectangularTexture(n,l),e.set(l,d),l.addEventListener("dispose",s),t(d.texture,l.mapping)}else return null}}return l}function s(l){const c=l.target;c.removeEventListener("dispose",s);const f=e.get(c);f!==void 0&&(e.delete(c),f.dispose())}function a(){e=new WeakMap}return{get:i,dispose:a}}
vendor: 8,815 bytes, lines 3687-3762
3687const Rc=4,vT=[.125,.215,.35,.446,.526,.582],el=20,sx=new bR,xT=new qt;let rx=null,ax=0,ox=0,lx=!1;const Ko=(1+Math.sqrt(5))/2,_c=1/Ko,yT=[new pe(-Ko,_c,0),new pe(Ko,_c,0),new pe(-_c,0,Ko),new pe(_c,0,Ko),new pe(0,Ko,-_c),new pe(0,Ko,_c),new pe(-1,1,-1),new pe(1,1,-1),new pe(-1,1,1),new pe(1,1,1)],Hz=new pe;class _T{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,t=0,i=.1,s=100,a={}){const{size:l=256,position:c=Hz}=a;rx=this._renderer.getRenderTarget(),ax=this._renderer.getActiveCubeFace(),ox=this._renderer.getActiveMipmapLevel(),lx=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(l);const f=this._allocateTargets();return f.depthBuffer=!0,this._sceneToCubeUV(e,i,s,f,c),t>0&&this._blur(f,0,0,t),this._applyPMREM(f),this._cleanup(f),f}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=wT(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=ST(),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(rx,ax,ox),this._renderer.xr.enabled=lx,e.scissorTest=!1,Sp(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===$c||e.mapping===Kc?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),rx=this._renderer.getRenderTarget(),ax=this._renderer.getActiveCubeFace(),ox=this._renderer.getActiveMipmapLevel(),lx=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const i=t||this._allocateTargets();return this._textureToCubeUV(e,i),this._applyPMREM(i),this._cleanup(i),i}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,i={magFilter:mi,minFilter:mi,generateMipmaps:!1,type:Nd,format:Hs,colorSpace:ro,depthBuffer:!1},s=bT(e,t,i);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=bT(e,t,i);const{_lodMax:a}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=Gz(a)),this._blurMaterial=Wz(a,e,t)}return s}_compileMaterial(e){const t=new Gs(this._lodPlanes[0],e);this._renderer.compile(t,sx)}_sceneToCubeUV(e,t,i,s,a){const f=new Ms(90,1,t,i),d=[1,-1,1,1,1,1],h=[1,1,1,-1,-1,-1],g=this._renderer,v=g.autoClear,x=g.toneMapping;g.getClearColor(xT),g.toneMapping=Za,g.autoClear=!1,g.state.buffers.depth.getReversed()&&(g.setRenderTarget(s),g.clearDepth(),g.setRenderTarget(null));const _=new pR({name:"PMREM.Background",side:Qn,depthWrite:!1,depthTest:!1}),w=new Gs(new Ud,_);let S=!1;const T=e.background;T?T.isColor&&(_.color.copy(T),e.background=null,S=!0):(_.color.copy(xT),S=!0);for(let M=0;M<6;M++){const C=M%3;C===0?(f.up.set(0,d[M],0),f.position.set(a.x,a.y,a.z),f.lookAt(a.x+h[M],a.y,a.z)):C===1?(f.up.set(0,0,d[M]),f.position.set(a.x,a.y,a.z),f.lookAt(a.x,a.y+h[M],a.z)):(f.up.set(0,d[M],0),f.position.set(a.x,a.y,a.z),f.lookAt(a.x,a.y,a.z+h[M]));const N=this._cubeSize;Sp(s,C*N,M>2?N:0,N,N),g.setRenderTarget(s),S&&g.render(w,f),g.render(e,f)}w.geometry.dispose(),w.material.dispose(),g.toneMapping=x,g.autoClear=v,e.background=T}_textureToCubeUV(e,t){const i=this._renderer,s=e.mapping===$c||e.mapping===Kc;s?(this._cubemapMaterial===null&&(this._cubemapMaterial=wT()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=ST());const a=s?this._cubemapMaterial:this._equirectMaterial,l=new Gs(this._lodPlanes[0],a),c=a.uniforms;c.envMap.value=e;const f=this._cubeSize;Sp(t,0,0,3*f,2*f),i.setRenderTarget(t),i.render(l,sx)}_applyPMREM(e){const t=this._renderer,i=t.autoClear;t.autoClear=!1;const s=this._lodPlanes.length;for(let a=1;a<s;a++){const l=Math.sqrt(this._sigmas[a]*this._sigmas[a]-this._sigmas[a-1]*this._sigmas[a-1]),c=yT[(s-a-1)%yT.length];this._blur(e,a-1,a,l,c)}t.autoClear=i}_blur(e,t,i,s,a){const l=this._pingPongRenderTarget;this._halfBlur(e,l,t,i,s,"latitudinal",a),this._halfBlur(l,e,i,i,s,"longitudinal",a)}_halfBlur(e,t,i,s,a,l,c){const f=this._renderer,d=this._blurMaterial;l!=="latitudinal"&&l!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const h=3,g=new Gs(this._lodPlanes[s],d),v=d.uniforms,x=this._sizeLods[i]-1,b=isFinite(a)?Math.PI/(2*x):2*Math.PI/(2*el-1),_=a/b,w=isFinite(a)?1+Math.floor(h*_):el;w>el&&console.warn(`sigmaRadians, ${a}, is too large and will clip, as it requested ${w} samples when the maximum is set to ${el}`);const S=[];let T=0;for(let P=0;P<el;++P){const O=P/_,R=Math.exp(-O*O/2);S.push(R),P===0?T+=R:P<w&&(T+=2*R)}for(let P=0;P<S.length;P++)S[P]=S[P]/T;v.envMap.value=e.texture,v.samples.value=w,v.weights.value=S,v.latitudinal.value=l==="latitudinal",c&&(v.poleAxis.value=c);const{_lodMax:M}=this;v.dTheta.value=b,v.mipInt.value=M-i;const C=this._sizeLods[s],N=3*C*(s>M-Rc?s-M+Rc:0),U=4*(this._cubeSize-C);Sp(t,N,U,3*C,2*C),f.setRenderTarget(t),f.render(g,sx)}}function Gz(n){const e=[],t=[],i=[];let s=n;const a=n-Rc+1+vT.length;for(let l=0;l<a;l++){const c=Math.pow(2,s);t.push(c);let f=1/c;l>n-Rc?f=vT[l-n+Rc-1]:l===0&&(f=0),i.push(f);const d=1/(c-2),h=-d,g=1+d,v=[h,h,g,h,g,g,h,h,g,g,h,g],x=6,b=6,_=3,w=2,S=1,T=new Float32Array(_*b*x),M=new Float32Array(w*b*x),C=new Float32Array(S*b*x);for(let U=0;U<x;U++){const P=U%3*2/3-1,O=U>2?0:-1,R=[P,O,0,P+2/3,O,0,P+2/3,O+1,0,P,O,0,P+2/3,O+1,0,P,O+1,0];T.set(R,_*b*U),M.set(v,w*b*U);const L=[U,U,U,U,U,U];C.set(L,S*b*U)}const N=new ho;N.setAttribute("position",new Ns(T,_)),N.setAttribute("uv",new Ns(M,w)),N.setAttribute("faceIndex",new Ns(C,S)),e.push(N),s>Rc&&s--}return{lodPlanes:e,sizeLods:t,sigmas:i}}function bT(n,e,t){const i=new qs(n,e,t);return i.texture.mapping=$m,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function Sp(n,e,t,i,s){n.viewport.set(e,t,i,s),n.scissor.set(e,t,i,s)}function Wz(n,e,t){const i=new Float32Array(el),s=new pe(0,1,0);return new Ds({name:"SphericalGaussianBlur",defines:{n:el,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:s}},vertexShader:Sb(),fragmentShader:` 3688 3689 precision mediump float; 3690 precision mediump int; 3691 3692 varying vec3 vOutputDirection; 3693 3694 uniform sampler2D envMap; 3695 uniform int samples; 3696 uniform float weights[ n ]; 3697 uniform bool latitudinal; 3698 uniform float dTheta; 3699 uniform float mipInt; 3700 uniform vec3 poleAxis; 3701 3702 #define ENVMAP_TYPE_CUBE_UV 3703 #include <cube_uv_reflection_fragment> 3704 3705 vec3 getSample( float theta, vec3 axis ) { 3706 3707 float cosTheta = cos( theta ); 3708 // Rodrigues' axis-angle rotation 3709 vec3 sampleDirection = vOutputDirection * cosTheta 3710 + cross( axis, vOutputDirection ) * sin( theta ) 3711 + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); 3712 3713 return bilinearCubeUV( envMap, sampleDirection, mipInt ); 3714 3715 } 3716 3717 void main() { 3718 3719 vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); 3720 3721 if ( all( equal( axis, vec3( 0.0 ) ) ) ) { 3722 3723 axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); 3724 3725 } 3726 3727 axis = normalize( axis ); 3728 3729 gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); 3730 gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); 3731 3732 for ( int i = 1; i < n; i++ ) { 3733 3734 if ( i >= samples ) { 3735 3736 break; 3737 3738 } 3739 3740 float theta = dTheta * float( i ); 3741 gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); 3742 gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); 3743 3744 } 3745 3746 } 3747 `,blending:gr,depthTest:!1,depthWrite:!1})}function ST(){return new Ds({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Sb(),fragmentShader:` 3748 3749 precision mediump float; 3750 precision mediump int; 3751 3752 varying vec3 vOutputDirection; 3753 3754 uniform sampler2D envMap; 3755 3756 #include <common> 3757 3758 void main() { 3759 3760 vec3 outputDirection = normalize( vOutputDirection ); 3761 vec2 uv = equirectUv( outputDirection ); 3762
3763 gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); 3764 3765 } 3766 `,blending:gr,depthTest:!1,depthWrite:!1})}function wT(){return new Ds({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Sb(),fragmentShader:` 3767 3768 precision mediump float; 3769 precision mediump int; 3770 3771 uniform float flipEnvMap; 3772 3773 varying vec3 vOutputDirection; 3774 3775 uniform samplerCube envMap; 3776 3777 void main() { 3778 3779 gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); 3780 3781 } 3782 `,blending:gr,depthTest:!1,depthWrite:!1})}function Sb(){return` 3783 3784 precision mediump float; 3785 precision mediump int; 3786 3787 attribute float faceIndex; 3788 3789 varying vec3 vOutputDirection; 3790 3791 // RH coordinate system; PMREM face-indexing convention 3792 vec3 getDirection( vec2 uv, float face ) { 3793 3794 uv = 2.0 * uv - 1.0; 3795 3796 vec3 direction = vec3( uv, 1.0 ); 3797 3798 if ( face == 0.0 ) { 3799 3800 direction = direction.zyx; // ( 1, v, u ) pos x 3801 3802 } else if ( face == 1.0 ) { 3803 3804 direction = direction.xzy; 3805 direction.xz *= -1.0; // ( -u, 1, -v ) pos y 3806 3807 } else if ( face == 2.0 ) { 3808 3809 direction.x *= -1.0; // ( -u, v, 1 ) pos z 3810 3811 } else if ( face == 3.0 ) { 3812 3813 direction = direction.zyx; 3814 direction.xz *= -1.0; // ( -1, v, -u ) neg x 3815 3816 } else if ( face == 4.0 ) { 3817 3818 direction = direction.xzy; 3819 direction.xy *= -1.0; // ( -u, -1, v ) neg y 3820 3821 } else if ( face == 5.0 ) { 3822 3823 direction.z *= -1.0; // ( u, v, -1 ) neg z 3824 3825 } 3826 3827 return direction; 3828 3829 } 3830 3831 void main() { 3832 3833 vOutputDirection = getDirection( uv, faceIndex ); 3834 gl_Position = vec4( position, 1.0 ); 3835 3836 } 3837 `}function Xz(n){let e=new WeakMap,t=null;function i(c){if(c&&c.isTexture){const f=c.mapping,d=f===gy||f===vy,h=f===$c||f===Kc;if(d||h){let g=e.get(c);const v=g!==void 0?g.texture.pmremVersion:0;if(c.isRenderTargetTexture&&c.pmremVersion!==v)return t===null&&(t=new _T(n)),g=d?t.fromEquirectangular(c,g):t.fromCubemap(c,g),g.texture.pmremVersion=c.pmremVersion,e.set(c,g),g.texture;if(g!==void 0)return g.texture;{const x=c.image;return d&&x&&x.height>0||h&&x&&s(x)?(t===null&&(t=new _T(n)),g=d?t.fromEquirectangular(c):t.fromCubemap(c),g.texture.pmremVersion=c.pmremVersion,e.set(c,g),c.addEventListener("dispose",a),g.texture):null}}}return c}function s(c){let f=0;const d=6;for(let h=0;h<d;h++)c[h]!==void 0&&f++;return f===d}function a(c){const f=c.target;f.removeEventListener("dispose",a);const d=e.get(f);d!==void 0&&(e.delete(f),d.dispose())}function l(){e=new WeakMap,t!==null&&(t.dispose(),t=null)}return{get:i,dispose:l}}function qz(n){const e={};function t(i){if(e[i]!==void 0)return e[i];let s;switch(i){case"WEBGL_depth_texture":s=n.getExtension("WEBGL_depth_texture")||n.getExtension("MOZ_WEBGL_depth_texture")||n.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":s=n.getExtension("EXT_texture_filter_anisotropic")||n.getExtension("MOZ_EXT_texture_filter_anisotropic")||n.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":s=n.getExtension("WEBGL_compressed_texture_s3tc")||n.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":s=n.getExtension("WEBGL_compressed_texture_pvrtc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:s=n.getExtension(i)}return e[i]=s,s}return{has:function(i){return t(i)!==null},init:function(){t("EXT_color_buffer_float"),t("WEBGL_clip_cull_distance"),t("OES_texture_float_linear"),t("EXT_color_buffer_half_float"),t("WEBGL_multisampled_render_to_texture"),t("WEBGL_render_shared_exponent")},get:function(i){const s=t(i);return s===null&&hd("THREE.WebGLRenderer: "+i+" extension not supported."),s}}}function Yz(n,e,t,i){const s={},a=new WeakMap;function l(g){const v=g.target;v.index!==null&&e.remove(v.index);for(const b in v.attributes)e.remove(v.attributes[b]);v.removeEventListener("dispose",l),delete s[v.id];const x=a.get(v);x&&(e.remove(x),a.delete(v)),i.releaseStatesOfGeometry(v),v.isInstancedBufferGeometry===!0&&delete v._maxInstanceCount,t.memory.geometries--}function c(g,v){return s[v.id]===!0||(v.addEventListener("dispose",l),s[v.id]=!0,t.memory.geometries++),v}function f(g){const v=g.attributes;for(const x in v)e.update(v[x],n.ARRAY_BUFFER)}function d(g){const v=[],x=g.index,b=g.attributes.position;let _=0;if(x!==null){const T=x.array;_=x.version;for(let M=0,C=T.length;M<C;M+=3){const N=T[M+0],U=T[M+1],P=T[M+2];
vendor: 13,057 bytes, lines 3837-3842
3837v.push(N,U,U,P,P,N)}}else if(b!==void 0){const T=b.array;_=b.version;for(let M=0,C=T.length/3-1;M<C;M+=3){const N=M+0,U=M+1,P=M+2;v.push(N,U,U,P,P,N)}}else return;const w=new(uR(v)?gR:mR)(v,1);w.version=_;const S=a.get(g);S&&e.remove(S),a.set(g,w)}function h(g){const v=a.get(g);if(v){const x=g.index;x!==null&&v.version<x.version&&d(g)}else d(g);return a.get(g)}return{get:c,update:f,getWireframeAttribute:h}}function $z(n,e,t){let i;function s(v){i=v}let a,l;function c(v){a=v.type,l=v.bytesPerElement}function f(v,x){n.drawElements(i,x,a,v*l),t.update(x,i,1)}function d(v,x,b){b!==0&&(n.drawElementsInstanced(i,x,a,v*l,b),t.update(x,i,b))}function h(v,x,b){if(b===0)return;e.get("WEBGL_multi_draw").multiDrawElementsWEBGL(i,x,0,a,v,0,b);let w=0;for(let S=0;S<b;S++)w+=x[S];t.update(w,i,1)}function g(v,x,b,_){if(b===0)return;const w=e.get("WEBGL_multi_draw");if(w===null)for(let S=0;S<v.length;S++)d(v[S]/l,x[S],_[S]);else{w.multiDrawElementsInstancedWEBGL(i,x,0,a,v,0,_,0,b);let S=0;for(let T=0;T<b;T++)S+=x[T]*_[T];t.update(S,i,1)}}this.setMode=s,this.setIndex=c,this.render=f,this.renderInstances=d,this.renderMultiDraw=h,this.renderMultiDrawInstances=g}function Kz(n){const e={geometries:0,textures:0},t={frame:0,calls:0,triangles:0,points:0,lines:0};function i(a,l,c){switch(t.calls++,l){case n.TRIANGLES:t.triangles+=c*(a/3);break;case n.LINES:t.lines+=c*(a/2);break;case n.LINE_STRIP:t.lines+=c*(a-1);break;case n.LINE_LOOP:t.lines+=c*a;break;case n.POINTS:t.points+=c*a;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",l);break}}function s(){t.calls=0,t.triangles=0,t.points=0,t.lines=0}return{memory:e,render:t,programs:null,autoReset:!0,reset:s,update:i}}function Zz(n,e,t){const i=new WeakMap,s=new Nn;function a(l,c,f){const d=l.morphTargetInfluences,h=c.morphAttributes.position||c.morphAttributes.normal||c.morphAttributes.color,g=h!==void 0?h.length:0;let v=i.get(c);if(v===void 0||v.count!==g){let L=function(){O.dispose(),i.delete(c),c.removeEventListener("dispose",L)};var x=L;v!==void 0&&v.texture.dispose();const b=c.morphAttributes.position!==void 0,_=c.morphAttributes.normal!==void 0,w=c.morphAttributes.color!==void 0,S=c.morphAttributes.position||[],T=c.morphAttributes.normal||[],M=c.morphAttributes.color||[];let C=0;b===!0&&(C=1),_===!0&&(C=2),w===!0&&(C=3);let N=c.attributes.position.count*C,U=1;N>e.maxTextureSize&&(U=Math.ceil(N/e.maxTextureSize),N=e.maxTextureSize);const P=new Float32Array(N*U*4*g),O=new fR(P,N,U,g);O.type=ta,O.needsUpdate=!0;const R=C*4;for(let z=0;z<g;z++){const H=S[z],Y=T[z],K=M[z],q=N*U*4*z;for(let B=0;B<H.count;B++){const W=B*R;b===!0&&(s.fromBufferAttribute(H,B),P[q+W+0]=s.x,P[q+W+1]=s.y,P[q+W+2]=s.z,P[q+W+3]=0),_===!0&&(s.fromBufferAttribute(Y,B),P[q+W+4]=s.x,P[q+W+5]=s.y,P[q+W+6]=s.z,P[q+W+7]=0),w===!0&&(s.fromBufferAttribute(K,B),P[q+W+8]=s.x,P[q+W+9]=s.y,P[q+W+10]=s.z,P[q+W+11]=K.itemSize===4?s.w:1)}}v={count:g,texture:O,size:new wt(N,U)},i.set(c,v),c.addEventListener("dispose",L)}if(l.isInstancedMesh===!0&&l.morphTexture!==null)f.getUniforms().setValue(n,"morphTexture",l.morphTexture,t);else{let b=0;for(let w=0;w<d.length;w++)b+=d[w];const _=c.morphTargetsRelative?1:1-b;f.getUniforms().setValue(n,"morphTargetBaseInfluence",_),f.getUniforms().setValue(n,"morphTargetInfluences",d)}f.getUniforms().setValue(n,"morphTargetsTexture",v.texture,t),f.getUniforms().setValue(n,"morphTargetsTextureSize",v.size)}return{update:a}}function Qz(n,e,t,i){let s=new WeakMap;function a(f){const d=i.render.frame,h=f.geometry,g=e.get(f,h);if(s.get(g)!==d&&(e.update(g),s.set(g,d)),f.isInstancedMesh&&(f.hasEventListener("dispose",c)===!1&&f.addEventListener("dispose",c),s.get(f)!==d&&(t.update(f.instanceMatrix,n.ARRAY_BUFFER),f.instanceColor!==null&&t.update(f.instanceColor,n.ARRAY_BUFFER),s.set(f,d))),f.isSkinnedMesh){const v=f.skeleton;s.get(v)!==d&&(v.update(),s.set(v,d))}return g}function l(){s=new WeakMap}function c(f){const d=f.target;d.removeEventListener("dispose",c),t.remove(d.instanceMatrix),d.instanceColor!==null&&t.remove(d.instanceColor)}return{update:a,dispose:l}}const wR=new oi,ET=new bb(1,1),ER=new fR,MR=new CI,TR=new xR,MT=[],TT=[],AT=new Float32Array(16),CT=new Float32Array(9),RT=new Float32Array(4);function gu(n,e,t){const i=n[0];if(i<=0||i>0)return n;const s=e*t;let a=MT[s];if(a===void 0&&(a=new Float32Array(s),MT[s]=a),e!==0){i.toArray(a,0);for(let l=1,c=0;l!==e;++l)c+=t,n[l].toArray(a,c)}return a}function Xn(n,e){if(n.length!==e.length)return!1;for(let t=0,i=n.length;t<i;t++)if(n[t]!==e[t])return!1;return!0}function qn(n,e){for(let t=0,i=e.length;t<i;t++)n[t]=e[t]}function Km(n,e){let t=TT[e];t===void 0&&(t=new Int32Array(e),TT[e]=t);for(let i=0;i!==e;++i)t[i]=n.allocateTextureUnit();return t}function Jz(n,e){const t=this.cache;t[0]!==e&&(n.uniform1f(this.addr,e),t[0]=e)}function ej(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2f(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(Xn(t,e))return;n.uniform2fv(this.addr,e),qn(t,e)}}function tj(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3f(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else if(e.r!==void 0)(t[0]!==e.r||t[1]!==e.g||t[2]!==e.b)&&(n.uniform3f(this.addr,e.r,e.g,e.b),t[0]=e.r,t[1]=e.g,t[2]=e.b);else{if(Xn(t,e))return;n.uniform3fv(this.addr,e),qn(t,e)}}function nj(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4f(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(Xn(t,e))return;n.uniform4fv(this.addr,e),qn(t,e)}}function ij(n,e){const t=this.cache,i=e.elements;if(i===void 0){if(Xn(t,e))return;n.uniformMatrix2fv(this.addr,!1,e),qn(t,e)}else{if(Xn(t,i))return;RT.set(i),n.uniformMatrix2fv(this.addr,!1,RT),qn(t,i)}}function sj(n,e){const t=this.cache,i=e.elements;if(i===void 0){if(Xn(t,e))return;n.uniformMatrix3fv(this.addr,!1,e),qn(t,e)}else{if(Xn(t,i))return;CT.set(i),n.uniformMatrix3fv(this.addr,!1,CT),qn(t,i)}}function rj(n,e){const t=this.cache,i=e.elements;if(i===void 0){if(Xn(t,e))return;n.uniformMatrix4fv(this.addr,!1,e),qn(t,e)}else{if(Xn(t,i))return;AT.set(i),n.uniformMatrix4fv(this.addr,!1,AT),qn(t,i)}}function aj(n,e){const t=this.cache;t[0]!==e&&(n.uniform1i(this.addr,e),t[0]=e)}function oj(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2i(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(Xn(t,e))return;n.uniform2iv(this.addr,e),qn(t,e)}}function lj(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3i(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else{if(Xn(t,e))return;n.uniform3iv(this.addr,e),qn(t,e)}}function cj(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4i(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(Xn(t,e))return;n.uniform4iv(this.addr,e),qn(t,e)}}function uj(n,e){const t=this.cache;t[0]!==e&&(n.uniform1ui(this.addr,e),t[0]=e)}function fj(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2ui(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(Xn(t,e))return;n.uniform2uiv(this.addr,e),qn(t,e)}}function dj(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3ui(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else{if(Xn(t,e))return;n.uniform3uiv(this.addr,e),qn(t,e)}}function hj(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4ui(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(Xn(t,e))return;n.uniform4uiv(this.addr,e),qn(t,e)}}function pj(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s);let a;this.type===n.SAMPLER_2D_SHADOW?(ET.compareFunction=cR,a=ET):a=wR,t.setTexture2D(e||a,s)}function mj(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s),t.setTexture3D(e||MR,s)}function gj(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s),t.setTextureCube(e||TR,s)}function vj(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s),t.setTexture2DArray(e||ER,s)}function xj(n){switch(n){case 5126:return Jz;case 35664:return ej;case 35665:return tj;case 35666:return nj;case 35674:return ij;case 35675:return sj;case 35676:return rj;case 5124:case 35670:return aj;case 35667:case 35671:return oj;case 35668:case 35672:return lj;case 35669:case 35673:return cj;case 5125:return uj;case 36294:return fj;case 36295:return dj;case 36296:return hj;case 35678:case 36198:case 36298:case 36306:case 35682:return pj;case 35679:case 36299:case 36307:return mj;case 35680:case 36300:case 36308:case 36293:return gj;case 36289:case 36303:case 36311:case 36292:return vj}}function yj(n,e){n.uniform1fv(this.addr,e)}function _j(n,e){const t=gu(e,this.size,2);n.uniform2fv(this.addr,t)}function bj(n,e){const t=gu(e,this.size,3);n.uniform3fv(this.addr,t)}function Sj(n,e){const t=gu(e,this.size,4);n.uniform4fv(this.addr,t)}function wj(n,e){const t=gu(e,this.size,4);n.uniformMatrix2fv(this.addr,!1,t)}function Ej(n,e){const t=gu(e,this.size,9);n.uniformMatrix3fv(this.addr,!1,t)}function Mj(n,e){const t=gu(e,this.size,16);n.uniformMatrix4fv(this.addr,!1,t)}function Tj(n,e){n.uniform1iv(this.addr,e)}function Aj(n,e){n.uniform2iv(this.addr,e)}function Cj(n,e){n.uniform3iv(this.addr,e)}function Rj(n,e){n.uniform4iv(this.addr,e)}function Nj(n,e){n.uniform1uiv(this.addr,e)}function Dj(n,e){n.uniform2uiv(this.addr,e)}function Pj(n,e){n.uniform3uiv(this.addr,e)}function Lj(n,e){n.uniform4uiv(this.addr,e)}function Oj(n,e,t){const i=this.cache,s=e.length,a=Km(t,s);Xn(i,a)||(n.uniform1iv(this.addr,a),qn(i,a));for(let l=0;l!==s;++l)t.setTexture2D(e[l]||wR,a[l])}function Uj(n,e,t){const i=this.cache,s=e.length,a=Km(t,s);Xn(i,a)||(n.uniform1iv(this.addr,a),qn(i,a));for(let l=0;l!==s;++l)t.setTexture3D(e[l]||MR,a[l])}function Ij(n,e,t){const i=this.cache,s=e.length,a=Km(t,s);Xn(i,a)||(n.uniform1iv(this.addr,a),qn(i,a));for(let l=0;l!==s;++l)t.setTextureCube(e[l]||TR,a[l])}function Bj(n,e,t){const i=this.cache,s=e.length,a=Km(t,s);Xn(i,a)||(n.uniform1iv(this.addr,a),qn(i,a));for(let l=0;l!==s;++l)t.setTexture2DArray(e[l]||ER,a[l])}function Fj(n){switch(n){case 5126:return yj;case 35664:return _j;case 35665:return bj;case 35666:return Sj;case 35674:return wj;case 35675:return Ej;case 35676:return Mj;case 5124:case 35670:return Tj;case 35667:case 35671:return Aj;case 35668:case 35672:return Cj;case 35669:case 35673:return Rj;case 5125:return Nj;case 36294:return Dj;case 36295:return Pj;case 36296:return Lj;case 35678:case 36198:case 36298:case 36306:case 35682:return Oj;case 35679:case 36299:case 36307:return Uj;case 35680:case 36300:case 36308:case 36293:return Ij;case 36289:case 36303:case 36311:case 36292:return Bj}}class zj{constructor(e,t,i){this.id=e,this.addr=i,this.cache=[],this.type=t.type,this.setValue=xj(t.type)}}class jj{constructor(e,t,i){this.id=e,this.addr=i,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=Fj(t.type)}}class kj{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,i){const s=this.seq;for(let a=0,l=s.length;a!==l;++a){const c=s[a];c.setValue(e,t[c.id],i)}}}const cx=/(\w+)(\])?(\[|\.)?/g;function NT(n,e){n.seq.push(e),n.map[e.id]=e}function Vj(n,e,t){const i=n.name,s=i.length;for(cx.lastIndex=0;;){const a=cx.exec(i),l=cx.lastIndex;let c=a[1];const f=a[2]==="]",d=a[3];if(f&&(c=c|0),d===void 0||d==="["&&l+2===s){NT(t,d===void 0?new zj(c,n,e):new jj(c,n,e));break}else{let g=t.map[c];g===void 0&&(g=new kj(c),NT(t,g)),t=g}}}class qp{constructor(e,t){this.seq=[],this.map={};const i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let s=0;s<i;++s){const a=e.getActiveUniform(t,s),l=e.getUniformLocation(t,a.name);Vj(a,l,this)}}setValue(e,t,i,s){const a=this.map[t];a!==void 0&&a.setValue(e,i,s)}setOptional(e,t,i){const s=t[i];s!==void 0&&this.setValue(e,i,s)}static upload(e,t,i,s){for(let a=0,l=t.length;a!==l;++a){const c=t[a],f=i[c.id];f.needsUpdate!==!1&&c.setValue(e,f.value,s)}}static seqWithValue(e,t){const i=[];for(let s=0,a=e.length;s!==a;++s){const l=e[s];l.id in t&&i.push(l)}return i}}function DT(n,e,t){const i=n.createShader(e);return n.shaderSource(i,t),n.compileShader(i),i}const Hj=37297;let Gj=0;function Wj(n,e){const t=n.split(` 3838`),i=[],s=Math.max(e-6,0),a=Math.min(e+6,t.length);for(let l=s;l<a;l++){const c=l+1;i.push(`${c===e?">":" "} ${c}: ${t[l]}`)}return i.join(` 3839`)}const PT=new xt;function Xj(n){zt._getMatrix(PT,zt.workingColorSpace,n);const e=`mat3( ${PT.elements.map(t=>t.toFixed(4))} )`;switch(zt.getTransfer(n)){case dm:return[e,"LinearTransferOETF"];case en:return[e,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space: ",n),[e,"LinearTransferOETF"]}}function LT(n,e,t){const i=n.getShaderParameter(e,n.COMPILE_STATUS),a=(n.getShaderInfoLog(e)||"").trim();if(i&&a==="")return"";const l=/ERROR: 0:(\d+)/.exec(a);if(l){const c=parseInt(l[1]);return t.toUpperCase()+` 3840 3841`+a+` 3842
3843`+Wj(n.getShaderSource(e),c)}else return a}function qj(n,e){const t=Xj(e);return[`vec4 ${n}( vec4 value ) {`,` return ${t[1]}( vec4( value.rgb * ${t[0]}, value.a ) );`,"}"].join(` 3844`)}function Yj(n,e){let t;switch(e){case nI:t="Linear";break;case iI:t="Reinhard";break;case sI:t="Cineon";break;case rI:t="ACESFilmic";break;case oI:t="AgX";break;case lI:t="Neutral";break;case aI:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+n+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}const wp=new pe;function $j(){zt.getLuminanceCoefficients(wp);const n=wp.x.toFixed(4),e=wp.y.toFixed(4),t=wp.z.toFixed(4);return["float luminance( const in vec3 rgb ) {",` const vec3 weights = vec3( ${n}, ${e}, ${t} );`," return dot( weights, rgb );","}"].join(` 3845`)}function Kj(n){return[n.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",n.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Vf).join(` 3846`)}function Zj(n){const e=[];for(const t in n){const i=n[t];i!==!1&&e.push("#define "+t+" "+i)}return e.join(` 3847`)}function Qj(n,e){const t={},i=n.getProgramParameter(e,n.ACTIVE_ATTRIBUTES);for(let s=0;s<i;s++){const a=n.getActiveAttrib(e,s),l=a.name;let c=1;a.type===n.FLOAT_MAT2&&(c=2),a.type===n.FLOAT_MAT3&&(c=3),a.type===n.FLOAT_MAT4&&(c=4),t[l]={type:a.type,location:n.getAttribLocation(e,l),locationSize:c}}return t}function Vf(n){return n!==""}function OT(n,e){const t=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return n.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,t).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 UT(n,e){return n.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const Jj=/^[ \t]*#include +<([\w\d./]+)>/gm;function Zy(n){return n.replace(Jj,t6)}const e6=new Map;function t6(n,e){let t=yt[e];if(t===void 0){const i=e6.get(e);if(i!==void 0)t=yt[i],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,i);else throw new Error("Can not resolve #include <"+e+">")}return Zy(t)}const n6=/#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 IT(n){return n.replace(n6,i6)}function i6(n,e,t,i){let s="";for(let a=parseInt(e);a<parseInt(t);a++)s+=i.replace(/\[\s*i\s*\]/g,"[ "+a+" ]").replace(/UNROLLED_LOOP_INDEX/g,a);return s}function BT(n){let e=`precision ${n.precision} float; 3848 precision ${n.precision} int; 3849 precision ${n.precision} sampler2D; 3850 precision ${n.precision} samplerCube; 3851 precision ${n.precision} sampler3D; 3852 precision ${n.precision} sampler2DArray; 3853 precision ${n.precision} sampler2DShadow; 3854 precision ${n.precision} samplerCubeShadow; 3855 precision ${n.precision} sampler2DArrayShadow; 3856 precision ${n.precision} isampler2D; 3857 precision ${n.precision} isampler3D; 3858 precision ${n.precision} isamplerCube; 3859 precision ${n.precision} isampler2DArray; 3860 precision ${n.precision} usampler2D; 3861 precision ${n.precision} usampler3D; 3862 precision ${n.precision} usamplerCube; 3863 precision ${n.precision} usampler2DArray; 3864 `;return n.precision==="highp"?e+=` 3865#define HIGH_PRECISION`:n.precision==="mediump"?e+=` 3866#define MEDIUM_PRECISION`:n.precision==="lowp"&&(e+=` 3867#define LOW_PRECISION`),e}function s6(n){let e="SHADOWMAP_TYPE_BASIC";return n.shadowMapType===QC?e="SHADOWMAP_TYPE_PCF":n.shadowMapType===U5?e="SHADOWMAP_TYPE_PCF_SOFT":n.shadowMapType===Zr&&(e="SHADOWMAP_TYPE_VSM"),e}function r6(n){let e="ENVMAP_TYPE_CUBE";if(n.envMap)switch(n.envMapMode){case $c:case Kc:e="ENVMAP_TYPE_CUBE";break;case $m:e="ENVMAP_TYPE_CUBE_UV";break}return e}function a6(n){let e="ENVMAP_MODE_REFLECTION";return n.envMap&&n.envMapMode===Kc&&(e="ENVMAP_MODE_REFRACTION"),e}function o6(n){let e="ENVMAP_BLENDING_NONE";if(n.envMap)switch(n.combine){case JC:e="ENVMAP_BLENDING_MULTIPLY";break;case eI:e="ENVMAP_BLENDING_MIX";break;
vendor: 7,290 bytes, lines 3867-3874
3867case tI:e="ENVMAP_BLENDING_ADD";break}return e}function l6(n){const e=n.envMapCubeUVHeight;if(e===null)return null;const t=Math.log2(e)-2,i=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,t),112)),texelHeight:i,maxMip:t}}function c6(n,e,t,i){const s=n.getContext(),a=t.defines;let l=t.vertexShader,c=t.fragmentShader;const f=s6(t),d=r6(t),h=a6(t),g=o6(t),v=l6(t),x=Kj(t),b=Zj(a),_=s.createProgram();let w,S,T=t.glslVersion?"#version "+t.glslVersion+` 3868`:"";t.isRawShaderMaterial?(w=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,b].filter(Vf).join(` 3869`),w.length>0&&(w+=` 3870`),S=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,b].filter(Vf).join(` 3871`),S.length>0&&(S+=` 3872`)):(w=[BT(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,b,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.batchingColor?"#define USE_BATCHING_COLOR":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.instancingMorph?"#define USE_INSTANCING_MORPH":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+h:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+f:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",t.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","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","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#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","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` 3873`].filter(Vf).join(` 3874`),S=[BT(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,b,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+d:"",t.envMap?"#define "+h:"",t.envMap?"#define "+g:"",v?"#define CUBEUV_TEXEL_WIDTH "+v.texelWidth:"",v?"#define CUBEUV_TEXEL_HEIGHT "+v.texelHeight:"",v?"#define CUBEUV_MAX_MIP "+v.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.dispersion?"#define USE_DISPERSION":"",t.iridescence?"#define USE_IR
3874IDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor||t.batchingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+f:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",t.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",t.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==Za?"#define TONE_MAPPING":"",t.toneMapping!==Za?yt.tonemapping_pars_fragment:"",t.toneMapping!==Za?Yj("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",yt.colorspace_pars_fragment,qj("linearToOutputTexel",t.outputColorSpace),$j(),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` 3875`].filter(Vf).join(` 3876`)),l=Zy(l),l=OT(l,t),l=UT(l,t),c=Zy(c),c=OT(c,t),c=UT(c,t),l=IT(l),c=IT(c),t.isRawShaderMaterial!==!0&&(T=`#version 300 es 3877`,w=[x,"#define attribute in","#define varying out","#define texture2D texture"].join(` 3878`)+` 3879`+w,S=["#define varying in",t.glslVersion===Yy?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===Yy?"":"#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(` 3880`)+` 3881`+S);const M=T+w+l,C=T+S+c,N=DT(s,s.VERTEX_SHADER,M),U=DT(s,s.FRAGMENT_SHADER,C);s.attachShader(_,N),s.attachShader(_,U),t.index0AttributeName!==void 0?s.bindAttribLocation(_,0,t.index0AttributeName):t.morphTargets===!0&&s.bindAttribLocation(_,0,"position"),s.linkProgram(_);function P(z){if(n.debug.checkShaderErrors){const H=s.getProgramInfoLog(_)||"",Y=s.getShaderInfoLog(N)||"",K=s.getShaderInfoLog(U)||"",q=H.trim(),B=Y.trim(),W=K.trim();let j=!0,ae=!0;if(s.getProgramParameter(_,s.LINK_STATUS)===!1)if(j=!1,typeof n.debug.onShaderError=="function")n.debug.onShaderError(s,_,N,U);else{const fe=LT(s,N,"vertex"),G=LT(s,U,"fragment");console.error("THREE.WebGLProgram: Shader Error "+s.getError()+" - VALIDATE_STATUS "+s.getProgramParameter(_,s.VALIDATE_STATUS)+` 3882 3883Material Name: `+z.name+` 3884Material Type: `+z.type+` 3885 3886Program Info Log: `+q+` 3887`+fe+` 3888`+G)}else q!==""?console.warn("THREE.WebGLProgram: Program Info Log:",q):(B===""||W==="")&&(ae=!1);ae&&(z.diagnostics={runnable:j,programLog:q,vertexShader:{log:B,prefix:w},fragmentShader:{log:W,prefix:S}})}s.deleteShader(N),s.deleteShader(U),O=new qp(s,_),R=Qj(s,_)}let O;this.getUniforms=function(){return O===void 0&&P(this),O};let R;this.getAttributes=function(){return R===void 0&&P(this),R};let L=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return L===!1&&(L=s.getProgramParameter(_,Hj)),L},this.destroy=function(){i.releaseStatesOfProgram(this),s.deleteProgram(_),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=Gj++,this.cacheKey=e,this.usedTimes=1,this.program=_,this.vertexShader=N,this.fragmentShader=U,this}let u6=0;class f6{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,i=e.fragmentShader,s=this._getShaderStage(t),a=this._getShaderStage(i),l=this._getShaderCacheForMaterial(e);return l.has(s)===!1&&(l.add(s),s.usedTimes++),l.has(a)===!1&&(l.add(a),a.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const i of t)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.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 t=this.materialCache;let i=t.get(e);return i===void 0&&(i=new Set,t.set(e,i)),i}_getShaderStage(e){const t=this.shaderCache;let i=t.get(e);return i===void 0&&(i=new d6(e),t.set(e,i)),i}}class d6{constructor(e){this.id=u6++,this.code=e,this.usedTimes=0}}function h6(n,e,t,i,s,a,l){const c=new dR,f=new f6,d=new Set,h=[],g=s.logarithmicDepthBuffer,v=s.vertexTextures;let x=s.precision;const b={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 _(R){return d.add(R),R===0?"uv":`uv${R}`}function w(R,L,z,H,Y){const K=H.fog,q=Y.geometry,B=R.isMeshStandardMaterial?H.environment:null,W=(R.isMeshStandardMaterial?t:e).get(R.envMap||B),j=W&&W.mapping===$m?W.image.height:null,ae=b[R.type];R.precision!==null&&(x=s.getMaxPrecision(R.precision),x!==R.precision&&console.warn("THREE.WebGLProgram.getParameters:",R.precision,"not supported, using",x,"instead."));const fe=q.morphAttributes.position||q.morphAttributes.normal||q.morphAttributes.color,G=fe!==void 0?fe.length:0;let ee=0;q.morphAttributes.position!==void 0&&(ee=1),q.morphAttributes.normal!==void 0&&(ee=2),q.morphAttributes.color!==void 0&&(ee=3);let me,ve,ge,ie;if(ae){const Ot=or[ae];me=Ot.vertexShader,ve=Ot.fragmentShader}else me=R.vertexShader,ve=R.fragmentShader,f.update(R),ge=f.getVertexShaderID(R),ie=f.getFragmentShaderID(R);const Z=n.getRenderTarget(),xe=n.state.buffers.depth.getReversed(),Me=Y.isInstancedMesh===!0,Ae=Y.isBatchedMesh===!0,Be=!!R.map,Xe=!!R.matcap,X=!!W,He=!!R.aoMap,qe=!!R.lightMap,Le=!!R.bumpMap,Pe=!!R.normalMap,_t=!!R.displacementMap,Fe=!!R.emissiveMap,lt=!!R.metalnessMap,tn=!!R.roughnessMap,ln=R.anisotropy>0,V=R.clearcoat>0,I=R.dispersion>0,re=R.iridescence>0,be=R.sheen>0,Ce=R.transmission>0,ye=ln&&!!R.anisotropyMap,it=V&&!!R.clearcoatMap,Oe=V&&!!R.clearcoatNormalMap,tt=V&&!!R.clearcoatRoughnessMap,nt=re&&!!R.iridescenceMap,Ne=re&&!!R.iridescenceThicknessMap,Ue=be&&!!R.sheenColorMap,st=be&&!!R.sheenRoughnessMap,Ge=!!R.specularMap,ze=!!R.specularColorMap,pt=!!R.specularIntensityMap,J=Ce&&!!R.transmissionMap,De=Ce&&!!R.thicknessMap,Ie=!!R.gradientMap,We=!!R.alphaMap,Re=R.alphaTest>0,Ee=!!R.alphaHash,Ye=!!R.extensions;let dt=Za;R.toneMapped&&(Z===null||Z.isXRRenderTarget===!0)&&(dt=n.toneMapping);const Yt={shaderID:ae,shaderType:R.type,shaderName:R.name,vertexShader:me,fragmentShader:ve,defines:R.defines,customVertexShaderID:ge,customFragmentShaderID:ie,isRawShaderMaterial:R.isRawShaderMaterial===!0,glslVersion:R.glslVersion,precision:x,batching:Ae,batchingColor:Ae&&Y._colorsTexture!==null,instancing:Me,instancingColor:Me&&Y.instanceColor!==null,instancingMorph:Me&&Y.morphTexture!==null,supportsVertexTextures:v,outputColorSpace:Z===null?n.outputColorSpace:Z.isXRRenderTarget===!0?Z.texture.colorSpace:ro,alphaToCoverage:!!R.alphaToCoverage,map:Be,matcap:Xe,envMap:X,envMapMode:X&&W.mapping,envMapCubeUVHeight:j,aoMap:He,lightMap:qe,bumpMap:Le,normalMap:Pe,displacementMap:v&&_t,emissiveMap:Fe,normalMapObjectSpace:Pe&&R.normalMapType===dI,normalMapTangentSpace:Pe&&R.normalMapType===fI,metalnessMap:lt,roughnessMap:tn,anisotropy:ln,anisotropyMap:ye,clearcoat:V,clearcoatMap:it,clearcoatNormalMap:Oe,clearcoatRoughnessMap:tt,dispersion:I,iridescence:re,iridescenceMap:nt,iridescenceThicknessMap:Ne,sheen:be,sheenColorMap:Ue,sheenRoughnessMap:st,specularMap:Ge,specularColorMap:ze,specularIntensityMap:pt,transmission:Ce,transmissionMap:J,thicknessMap:De,gradientMap:Ie,opaque:R.transparent===!1&&R.blending===zc&&R.alphaToCoverage===!1,alphaMap:We,alphaTest:Re,alphaHash:Ee,combine:R.combine,mapUv:Be&&_(R.map.channel),aoMapUv:He&&_(R.aoMap.channel),lightMapUv:qe&&_(R.lightMap.channel),bumpMapUv:Le&&_(R.bumpMap.channel),normalMapUv:Pe&&_(R.normalMap.channel),displacementMapUv:_t&&_(R.displacementMap.channel),emissiveMapUv:Fe&&_(R.emissiveMap.channel),metalnessMapUv:lt&&_(R.metalnessMap.channel),roughnessMapUv:tn&&_(R.roughnessMap.channel),anisotropyMapUv:ye&&_(R.anisotropyMap.channel),clearcoatMapUv:it&&_(R.clearcoatMap.channel),clearcoatNormalMapUv:Oe&&_(R.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:tt&&_(R.clearcoatRoughnessMap.channel),iridescenceMapUv:nt&&_(R.iridescenceMap.channel),iridescenceThicknessMapUv:Ne&&_(R.iridescenceThicknessMap.channel),sheenColorMapUv:Ue&&_(R.sheenColorMap.channel),sheenRoughnessMapUv:st&&_(R.sheenRoughnessMap.channel),specularMapUv:Ge&&_(R.specularMap.channel),specularColorMapUv:ze&&_(R.specularColorMap.channel),specularIntensityMapUv:pt&&_(R.specularIntensityMap.channel),transmissionMapUv:J&&_(R.transmissionMap.channel),thicknessMapUv:De&&_(R.thicknessMap.channel),alphaMapUv:We&&_(R.alphaMap.channel),vertexTangents:!!q.attributes.tangent&&(Pe||ln),vertexColors:R.vertexColors,vertexAlphas:R.vertexColors===!0&&!!q.attributes.color&&q.attributes.color.itemSize===4,pointsUvs:Y.isPoints===!0&&!!q.attributes.uv&&(Be||We),fog:!!K,useFog:R.fog===!0,fogExp2:!!K&&K.isFogExp2,flatShading:R.flatShading===!0&&R.wireframe===!1,sizeAttenuation:R.sizeAttenuation===!0,logarithmicDepthBuffer:g,reversedDepthBuffer:xe,skinning:Y.isSkinnedMesh===!0,morphTargets:q.morphAttributes.position!==void 0,morphNormals:q.morphAttributes.normal!==void 0,morphColors:q.morphAttributes.color!==void 0,morphTargetsCount:G,morphTextureStride:ee,numDirLights:L.directional.length,numPointLights:L.point.length,numSpotLights:L.spot.length,numSpotLightMaps:L.spotLightMap.length,numRectAreaLights:L.rectArea.length,numHemiLights:L.hemi.length,numDirLightShadows:L.directionalShadowMap.length,numPointLightShadows:L.pointShadowMap.length,numSpotLightShadows:L.spotShadowMap.length,numSpotLightShadowsWithMaps:L.numSpotLightShadowsWithMaps,numLightProbes:L.numLightProbes,numClippingPlanes:l.numPlanes,numClipIntersection:l.numIntersection,dithering:R.dithering,shadowMapEnabled:n.shadowMap.enabled&&z.length>0,shadowMapType:n.shadowMap.type,toneMapping:dt,decodeVideoTexture:Be&&R.map.isVideoTexture===!0&&zt.getTransfer(R.map.colorSpace)===en,decodeVideoTextureEmissive:Fe&&R.emissiveMap.isVideoTexture===!0&&zt.getTransfer(R.emissiveMap.colorSpace)===en,premultipliedAlpha:R.premultipliedAlpha,doubleSided:R.side===es,flipSided:R.side===Qn,useDepthPacking:R.depthPacking>=0,depthPacking:R.depthPacking||0,index0AttributeName:R.index0AttributeName,extensionCl
vendor: 16,402 bytes, lines 3888-3916
3888ipCullDistance:Ye&&R.extensions.clipCullDistance===!0&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(Ye&&R.extensions.multiDraw===!0||Ae)&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:R.customProgramCacheKey()};return Yt.vertexUv1s=d.has(1),Yt.vertexUv2s=d.has(2),Yt.vertexUv3s=d.has(3),d.clear(),Yt}function S(R){const L=[];if(R.shaderID?L.push(R.shaderID):(L.push(R.customVertexShaderID),L.push(R.customFragmentShaderID)),R.defines!==void 0)for(const z in R.defines)L.push(z),L.push(R.defines[z]);return R.isRawShaderMaterial===!1&&(T(L,R),M(L,R),L.push(n.outputColorSpace)),L.push(R.customProgramCacheKey),L.join()}function T(R,L){R.push(L.precision),R.push(L.outputColorSpace),R.push(L.envMapMode),R.push(L.envMapCubeUVHeight),R.push(L.mapUv),R.push(L.alphaMapUv),R.push(L.lightMapUv),R.push(L.aoMapUv),R.push(L.bumpMapUv),R.push(L.normalMapUv),R.push(L.displacementMapUv),R.push(L.emissiveMapUv),R.push(L.metalnessMapUv),R.push(L.roughnessMapUv),R.push(L.anisotropyMapUv),R.push(L.clearcoatMapUv),R.push(L.clearcoatNormalMapUv),R.push(L.clearcoatRoughnessMapUv),R.push(L.iridescenceMapUv),R.push(L.iridescenceThicknessMapUv),R.push(L.sheenColorMapUv),R.push(L.sheenRoughnessMapUv),R.push(L.specularMapUv),R.push(L.specularColorMapUv),R.push(L.specularIntensityMapUv),R.push(L.transmissionMapUv),R.push(L.thicknessMapUv),R.push(L.combine),R.push(L.fogExp2),R.push(L.sizeAttenuation),R.push(L.morphTargetsCount),R.push(L.morphAttributeCount),R.push(L.numDirLights),R.push(L.numPointLights),R.push(L.numSpotLights),R.push(L.numSpotLightMaps),R.push(L.numHemiLights),R.push(L.numRectAreaLights),R.push(L.numDirLightShadows),R.push(L.numPointLightShadows),R.push(L.numSpotLightShadows),R.push(L.numSpotLightShadowsWithMaps),R.push(L.numLightProbes),R.push(L.shadowMapType),R.push(L.toneMapping),R.push(L.numClippingPlanes),R.push(L.numClipIntersection),R.push(L.depthPacking)}function M(R,L){c.disableAll(),L.supportsVertexTextures&&c.enable(0),L.instancing&&c.enable(1),L.instancingColor&&c.enable(2),L.instancingMorph&&c.enable(3),L.matcap&&c.enable(4),L.envMap&&c.enable(5),L.normalMapObjectSpace&&c.enable(6),L.normalMapTangentSpace&&c.enable(7),L.clearcoat&&c.enable(8),L.iridescence&&c.enable(9),L.alphaTest&&c.enable(10),L.vertexColors&&c.enable(11),L.vertexAlphas&&c.enable(12),L.vertexUv1s&&c.enable(13),L.vertexUv2s&&c.enable(14),L.vertexUv3s&&c.enable(15),L.vertexTangents&&c.enable(16),L.anisotropy&&c.enable(17),L.alphaHash&&c.enable(18),L.batching&&c.enable(19),L.dispersion&&c.enable(20),L.batchingColor&&c.enable(21),L.gradientMap&&c.enable(22),R.push(c.mask),c.disableAll(),L.fog&&c.enable(0),L.useFog&&c.enable(1),L.flatShading&&c.enable(2),L.logarithmicDepthBuffer&&c.enable(3),L.reversedDepthBuffer&&c.enable(4),L.skinning&&c.enable(5),L.morphTargets&&c.enable(6),L.morphNormals&&c.enable(7),L.morphColors&&c.enable(8),L.premultipliedAlpha&&c.enable(9),L.shadowMapEnabled&&c.enable(10),L.doubleSided&&c.enable(11),L.flipSided&&c.enable(12),L.useDepthPacking&&c.enable(13),L.dithering&&c.enable(14),L.transmission&&c.enable(15),L.sheen&&c.enable(16),L.opaque&&c.enable(17),L.pointsUvs&&c.enable(18),L.decodeVideoTexture&&c.enable(19),L.decodeVideoTextureEmissive&&c.enable(20),L.alphaToCoverage&&c.enable(21),R.push(c.mask)}function C(R){const L=b[R.type];let z;if(L){const H=or[L];z=VI.clone(H.uniforms)}else z=R.uniforms;return z}function N(R,L){let z;for(let H=0,Y=h.length;H<Y;H++){const K=h[H];if(K.cacheKey===L){z=K,++z.usedTimes;break}}return z===void 0&&(z=new c6(n,L,R,a),h.push(z)),z}function U(R){if(--R.usedTimes===0){const L=h.indexOf(R);h[L]=h[h.length-1],h.pop(),R.destroy()}}function P(R){f.remove(R)}function O(){f.dispose()}return{getParameters:w,getProgramCacheKey:S,getUniforms:C,acquireProgram:N,releaseProgram:U,releaseShaderCache:P,programs:h,dispose:O}}function p6(){let n=new WeakMap;function e(l){return n.has(l)}function t(l){let c=n.get(l);return c===void 0&&(c={},n.set(l,c)),c}function i(l){n.delete(l)}function s(l,c,f){n.get(l)[c]=f}function a(){n=new WeakMap}return{has:e,get:t,remove:i,update:s,dispose:a}}function m6(n,e){return n.groupOrder!==e.groupOrder?n.groupOrder-e.groupOrder:n.renderOrder!==e.renderOrder?n.renderOrder-e.renderOrder:n.material.id!==e.material.id?n.material.id-e.material.id:n.z!==e.z?n.z-e.z:n.id-e.id}function FT(n,e){return n.groupOrder!==e.groupOrder?n.groupOrder-e.groupOrder:n.renderOrder!==e.renderOrder?n.renderOrder-e.renderOrder:n.z!==e.z?e.z-n.z:n.id-e.id}function zT(){const n=[];let e=0;const t=[],i=[],s=[];function a(){e=0,t.length=0,i.length=0,s.length=0}function l(g,v,x,b,_,w){let S=n[e];return S===void 0?(S={id:g.id,object:g,geometry:v,material:x,groupOrder:b,renderOrder:g.renderOrder,z:_,group:w},n[e]=S):(S.id=g.id,S.object=g,S.geometry=v,S.material=x,S.groupOrder=b,S.renderOrder=g.renderOrder,S.z=_,S.group=w),e++,S}function c(g,v,x,b,_,w){const S=l(g,v,x,b,_,w);x.transmission>0?i.push(S):x.transparent===!0?s.push(S):t.push(S)}function f(g,v,x,b,_,w){const S=l(g,v,x,b,_,w);x.transmission>0?i.unshift(S):x.transparent===!0?s.unshift(S):t.unshift(S)}function d(g,v){t.length>1&&t.sort(g||m6),i.length>1&&i.sort(v||FT),s.length>1&&s.sort(v||FT)}function h(){for(let g=e,v=n.length;g<v;g++){const x=n[g];if(x.id===null)break;x.id=null,x.object=null,x.geometry=null,x.material=null,x.group=null}}return{opaque:t,transmissive:i,transparent:s,init:a,push:c,unshift:f,finish:h,sort:d}}function g6(){let n=new WeakMap;function e(i,s){const a=n.get(i);let l;return a===void 0?(l=new zT,n.set(i,[l])):s>=a.length?(l=new zT,a.push(l)):l=a[s],l}function t(){n=new WeakMap}return{get:e,dispose:t}}function v6(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new pe,color:new qt};break;case"SpotLight":t={position:new pe,direction:new pe,color:new qt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new pe,color:new qt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new pe,skyColor:new qt,groundColor:new qt};break;case"RectAreaLight":t={color:new qt,position:new pe,halfWidth:new pe,halfHeight:new pe};break}return n[e.id]=t,t}}}function x6(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new wt};break;case"SpotLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new wt};break;case"PointLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new wt,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let y6=0;function _6(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function b6(n){const e=new v6,t=x6(),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 pe);const s=new pe,a=new Wn,l=new Wn;function c(d){let h=0,g=0,v=0;for(let R=0;R<9;R++)i.probe[R].set(0,0,0);let x=0,b=0,_=0,w=0,S=0,T=0,M=0,C=0,N=0,U=0,P=0;d.sort(_6);for(let R=0,L=d.length;R<L;R++){const z=d[R],H=z.color,Y=z.intensity,K=z.distance,q=z.shadow&&z.shadow.map?z.shadow.map.texture:null;if(z.isAmbientLight)h+=H.r*Y,g+=H.g*Y,v+=H.b*Y;else if(z.isLightProbe){for(let B=0;B<9;B++)i.probe[B].addScaledVector(z.sh.coefficients[B],Y);P++}else if(z.isDirectionalLight){const B=e.get(z);if(B.color.copy(z.color).multiplyScalar(z.intensity),z.castShadow){const W=z.shadow,j=t.get(z);j.shadowIntensity=W.intensity,j.shadowBias=W.bias,j.shadowNormalBias=W.normalBias,j.shadowRadius=W.radius,j.shadowMapSize=W.mapSize,i.directionalShadow[x]=j,i.directionalShadowMap[x]=q,i.directionalShadowMatrix[x]=z.shadow.matrix,T++}i.directional[x]=B,x++}else if(z.isSpotLight){const B=e.get(z);B.position.setFromMatrixPosition(z.matrixWorld),B.color.copy(H).multiplyScalar(Y),B.distance=K,B.coneCos=Math.cos(z.angle),B.penumbraCos=Math.cos(z.angle*(1-z.penumbra)),B.decay=z.decay,i.spot[_]=B;const W=z.shadow;if(z.map&&(i.spotLightMap[N]=z.map,N++,W.updateMatrices(z),z.castShadow&&U++),i.spotLightMatrix[_]=W.matrix,z.castShadow){const j=t.get(z);j.shadowIntensity=W.intensity,j.shadowBias=W.bias,j.shadowNormalBias=W.normalBias,j.shadowRadius=W.radius,j.shadowMapSize=W.mapSize,i.spotShadow[_]=j,i.spotShadowMap[_]=q,C++}_++}else if(z.isRectAreaLight){const B=e.get(z);B.color.copy(H).multiplyScalar(Y),B.halfWidth.set(z.width*.5,0,0),B.halfHeight.set(0,z.height*.5,0),i.rectArea[w]=B,w++}else if(z.isPointLight){const B=e.get(z);if(B.color.copy(z.color).multiplyScalar(z.intensity),B.distance=z.distance,B.decay=z.decay,z.castShadow){const W=z.shadow,j=t.get(z);j.shadowIntensity=W.intensity,j.shadowBias=W.bias,j.shadowNormalBias=W.normalBias,j.shadowRadius=W.radius,j.shadowMapSize=W.mapSize,j.shadowCameraNear=W.camera.near,j.shadowCameraFar=W.camera.far,i.pointShadow[b]=j,i.pointShadowMap[b]=q,i.pointShadowMatrix[b]=z.shadow.matrix,M++}i.point[b]=B,b++}else if(z.isHemisphereLight){const B=e.get(z);B.skyColor.copy(z.color).multiplyScalar(Y),B.groundColor.copy(z.groundColor).multiplyScalar(Y),i.hemi[S]=B,S++}}w>0&&(n.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=ke.LTC_FLOAT_1,i.rectAreaLTC2=ke.LTC_FLOAT_2):(i.rectAreaLTC1=ke.LTC_HALF_1,i.rectAreaLTC2=ke.LTC_HALF_2)),i.ambient[0]=h,i.ambient[1]=g,i.ambient[2]=v;const O=i.hash;(O.directionalLength!==x||O.pointLength!==b||O.spotLength!==_||O.rectAreaLength!==w||O.hemiLength!==S||O.numDirectionalShadows!==T||O.numPointShadows!==M||O.numSpotShadows!==C||O.numSpotMaps!==N||O.numLightProbes!==P)&&(i.directional.length=x,i.spot.length=_,i.rectArea.length=w,i.point.length=b,i.hemi.length=S,i.directionalShadow.length=T,i.directionalShadowMap.length=T,i.pointShadow.length=M,i.pointShadowMap.length=M,i.spotShadow.length=C,i.spotShadowMap.length=C,i.directionalShadowMatrix.length=T,i.pointShadowMatrix.length=M,i.spotLightMatrix.length=C+N-U,i.spotLightMap.length=N,i.numSpotLightShadowsWithMaps=U,i.numLightProbes=P,O.directionalLength=x,O.pointLength=b,O.spotLength=_,O.rectAreaLength=w,O.hemiLength=S,O.numDirectionalShadows=T,O.numPointShadows=M,O.numSpotShadows=C,O.numSpotMaps=N,O.numLightProbes=P,i.version=y6++)}function f(d,h){let g=0,v=0,x=0,b=0,_=0;const w=h.matrixWorldInverse;for(let S=0,T=d.length;S<T;S++){const M=d[S];if(M.isDirectionalLight){const C=i.directional[g];C.direction.setFromMatrixPosition(M.matrixWorld),s.setFromMatrixPosition(M.target.matrixWorld),C.direction.sub(s),C.direction.transformDirection(w),g++}else if(M.isSpotLight){const C=i.spot[x];C.position.setFromMatrixPosition(M.matrixWorld),C.position.applyMatrix4(w),C.direction.setFromMatrixPosition(M.matrixWorld),s.setFromMatrixPosition(M.target.matrixWorld),C.direction.sub(s),C.direction.transformDirection(w),x++}else if(M.isRectAreaLight){const C=i.rectArea[b];C.position.setFromMatrixPosition(M.matrixWorld),C.position.applyMatrix4(w),l.identity(),a.copy(M.matrixWorld),a.premultiply(w),l.extractRotation(a),C.halfWidth.set(M.width*.5,0,0),C.halfHeight.set(0,M.height*.5,0),C.halfWidth.applyMatrix4(l),C.halfHeight.applyMatrix4(l),b++}else if(M.isPointLight){const C=i.point[v];C.position.setFromMatrixPosition(M.matrixWorld),C.position.applyMatrix4(w),v++}else if(M.isHemisphereLight){const C=i.hemi[_];C.direction.setFromMatrixPosition(M.matrixWorld),C.direction.transformDirection(w),_++}}}return{setup:c,setupView:f,state:i}}function jT(n){const e=new b6(n),t=[],i=[];function s(h){d.camera=h,t.length=0,i.length=0}function a(h){t.push(h)}function l(h){i.push(h)}function c(){e.setup(t)}function f(h){e.setupView(t,h)}const d={lightsArray:t,shadowsArray:i,camera:null,lights:e,transmissionRenderTarget:{}};return{init:s,state:d,setupLights:c,setupLightsView:f,pushLight:a,pushShadow:l}}function S6(n){let e=new WeakMap;function t(s,a=0){const l=e.get(s);let c;return l===void 0?(c=new jT(n),e.set(s,[c])):a>=l.length?(c=new jT(n),l.push(c)):c=l[a],c}function i(){e=new WeakMap}return{get:t,dispose:i}}const w6=`void main() { 3889 gl_Position = vec4( position, 1.0 ); 3890}`,E6=`uniform sampler2D shadow_pass; 3891uniform vec2 resolution; 3892uniform float radius; 3893#include <packing> 3894void main() { 3895 const float samples = float( VSM_SAMPLES ); 3896 float mean = 0.0; 3897 float squared_mean = 0.0; 3898 float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); 3899 float uvStart = samples <= 1.0 ? 0.0 : - 1.0; 3900 for ( float i = 0.0; i < samples; i ++ ) { 3901 float uvOffset = uvStart + i * uvStride; 3902 #ifdef HORIZONTAL_PASS 3903 vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); 3904 mean += distribution.x; 3905 squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; 3906 #else 3907 float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); 3908 mean += depth; 3909 squared_mean += depth * depth; 3910 #endif 3911 } 3912 mean = mean / samples; 3913 squared_mean = squared_mean / samples; 3914 float std_dev = sqrt( squared_mean - mean * mean ); 3915 gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); 3916}`;function M6(n,e,t){let i=new yR;const s=new wt,a=new wt,l=new Nn,c=new ZI({depthPacking:uI}),f=new QI,d={},h=t.maxTextureSize,g={[sa]:Qn,[Qn]:sa,[es]:es},v=new Ds({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new wt},radius:{value:4}},vertexShader:w6,fragmentShader:E6}),x=v.clone();x.defines.HORIZONTAL_PASS=1;const b=new ho;b.setAttribute("position",new Ns(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const _=new Gs(b,v),w=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=QC;let S=this.type;this.render=function(U,P,O){if(w.enabled===!1||w.autoUpdate===!1&&w.needsUpdate===!1||U.length===0)return;const R=n.getRenderTarget(),L=n.getActiveCubeFace(),z=n.getActiveMipmapLevel(),H=n.state;H.setBlending(gr),H.buffers.depth.getReversed()===!0?H.buffers.color.setClear(0,0,0,0):H.buffers.color.setClear(1,1,1,1),H.buffers.depth.setTest(!0),H.setScissorTest(!1);const Y=S!==Zr&&this.type===Zr,K=S===Zr&&this.type!==Zr;for(let q=0,B=U.length;q<B;q++){const W=U[q],j=W.shadow;if(j===void 0){console.warn("THREE.WebGLShadowMap:",W,"has no shadow.");continue}if(j.autoUpdate===!1&&j.needsUpdate===!1)continue;s.copy(j.mapSize);const ae=j.getFrameExtents();if(s.multiply(ae),a.copy(j.mapSize),(s.x>h||s.y>h)&&(s.x>h&&(a.x=Math.floor(h/ae.x),s.x=a.x*ae.x,j.mapSize.x=a.x),s.y>h&&(a.y=Math.floor(h/ae.y),s.y=a.y*ae.y,j.mapSize.y=a.y)),j.map===null||Y===!0||K===!0){const G=this.type!==Zr?{minFilter:Xs,magFilter:Xs}:{};j.map!==null&&j.map.dispose(),j.map=new qs(s.x,s.y,G),j.map.texture.name=W.name+".shadowMap",j.camera.updateProjectionMatrix()}n.setRenderTarget(j.map),n.clear();const fe=j.getViewportCount();for(let G=0;G<fe;G++){const ee=j.getViewport(G);l.set(a.x*ee.x,a.y*ee.y,a.x*ee.z,a.y*ee.w),H.viewport(l),j.updateMatrices(W,G),i=j.getFrustum(),C(P,O,j.camera,W,this.type)}j.isPointLightShadow!==!0&&this.type===Zr&&T(j,O),j.needsUpdate=!1}S=this.type,w.needsUpdate=!1,n.setRenderTarget(R,L,z)};function T(U,P){const O=e.update(_);v.defines.VSM_SAMPLES!==U.blurSamples&&(v.defines.VSM_SAMPLES=U.blurSamples,x.defines.VSM_SAMPLES=U.blurSamples,v.needsUpdate=!0,x.needsUpdate=!0),U.mapPass===null&&(U.mapPass=new qs(s.x,s.y)),v.uniforms.shadow_pass.value=U.map.texture,v.uniforms.resolution.value=U.mapSize,v.uniforms.radius.value=U.radius,n.setRenderTarget(U.mapPass),n.clear(),n.renderBufferDirect(P,null,O,v,_,null),x.uniforms.shadow_pass.value=U.mapPass.texture,x.uniforms.resolution.value=U.mapSize,x.uniforms.radius.value=U.radius,n.setRenderTarget(U.map),n.clear(),n.renderBufferDirect(P,null,O,x,_,null)}function M(U,P,O,R){let L=null;const z=O.isPointLight===!0?U.customDistanceMaterial:U.customDepthMaterial;if(z!==void 0)L=z;else if(L=O.isPointLight===!0?f:c,n.localClippingEnabled&&P.clipSh
vendor: 5,228 bytes, line 3916
3916adows===!0&&Array.isArray(P.clippingPlanes)&&P.clippingPlanes.length!==0||P.displacementMap&&P.displacementScale!==0||P.alphaMap&&P.alphaTest>0||P.map&&P.alphaTest>0||P.alphaToCoverage===!0){const H=L.uuid,Y=P.uuid;let K=d[H];K===void 0&&(K={},d[H]=K);let q=K[Y];q===void 0&&(q=L.clone(),K[Y]=q,P.addEventListener("dispose",N)),L=q}if(L.visible=P.visible,L.wireframe=P.wireframe,R===Zr?L.side=P.shadowSide!==null?P.shadowSide:P.side:L.side=P.shadowSide!==null?P.shadowSide:g[P.side],L.alphaMap=P.alphaMap,L.alphaTest=P.alphaToCoverage===!0?.5:P.alphaTest,L.map=P.map,L.clipShadows=P.clipShadows,L.clippingPlanes=P.clippingPlanes,L.clipIntersection=P.clipIntersection,L.displacementMap=P.displacementMap,L.displacementScale=P.displacementScale,L.displacementBias=P.displacementBias,L.wireframeLinewidth=P.wireframeLinewidth,L.linewidth=P.linewidth,O.isPointLight===!0&&L.isMeshDistanceMaterial===!0){const H=n.properties.get(L);H.light=O}return L}function C(U,P,O,R,L){if(U.visible===!1)return;if(U.layers.test(P.layers)&&(U.isMesh||U.isLine||U.isPoints)&&(U.castShadow||U.receiveShadow&&L===Zr)&&(!U.frustumCulled||i.intersectsObject(U))){U.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse,U.matrixWorld);const Y=e.update(U),K=U.material;if(Array.isArray(K)){const q=Y.groups;for(let B=0,W=q.length;B<W;B++){const j=q[B],ae=K[j.materialIndex];if(ae&&ae.visible){const fe=M(U,ae,R,L);U.onBeforeShadow(n,U,P,O,Y,fe,j),n.renderBufferDirect(O,null,Y,fe,U,j),U.onAfterShadow(n,U,P,O,Y,fe,j)}}}else if(K.visible){const q=M(U,K,R,L);U.onBeforeShadow(n,U,P,O,Y,q,null),n.renderBufferDirect(O,null,Y,q,U,null),U.onAfterShadow(n,U,P,O,Y,q,null)}}const H=U.children;for(let Y=0,K=H.length;Y<K;Y++)C(H[Y],P,O,R,L)}function N(U){U.target.removeEventListener("dispose",N);for(const O in d){const R=d[O],L=U.target.uuid;L in R&&(R[L].dispose(),delete R[L])}}}const T6={[cy]:uy,[fy]:py,[dy]:my,[Yc]:hy,[uy]:cy,[py]:fy,[my]:dy,[hy]:Yc};function A6(n,e){function t(){let J=!1;const De=new Nn;let Ie=null;const We=new Nn(0,0,0,0);return{setMask:function(Re){Ie!==Re&&!J&&(n.colorMask(Re,Re,Re,Re),Ie=Re)},setLocked:function(Re){J=Re},setClear:function(Re,Ee,Ye,dt,Yt){Yt===!0&&(Re*=dt,Ee*=dt,Ye*=dt),De.set(Re,Ee,Ye,dt),We.equals(De)===!1&&(n.clearColor(Re,Ee,Ye,dt),We.copy(De))},reset:function(){J=!1,Ie=null,We.set(-1,0,0,0)}}}function i(){let J=!1,De=!1,Ie=null,We=null,Re=null;return{setReversed:function(Ee){if(De!==Ee){const Ye=e.get("EXT_clip_control");Ee?Ye.clipControlEXT(Ye.LOWER_LEFT_EXT,Ye.ZERO_TO_ONE_EXT):Ye.clipControlEXT(Ye.LOWER_LEFT_EXT,Ye.NEGATIVE_ONE_TO_ONE_EXT),De=Ee;const dt=Re;Re=null,this.setClear(dt)}},getReversed:function(){return De},setTest:function(Ee){Ee?Z(n.DEPTH_TEST):xe(n.DEPTH_TEST)},setMask:function(Ee){Ie!==Ee&&!J&&(n.depthMask(Ee),Ie=Ee)},setFunc:function(Ee){if(De&&(Ee=T6[Ee]),We!==Ee){switch(Ee){case cy:n.depthFunc(n.NEVER);break;case uy:n.depthFunc(n.ALWAYS);break;case fy:n.depthFunc(n.LESS);break;case Yc:n.depthFunc(n.LEQUAL);break;case dy:n.depthFunc(n.EQUAL);break;case hy:n.depthFunc(n.GEQUAL);break;case py:n.depthFunc(n.GREATER);break;case my:n.depthFunc(n.NOTEQUAL);break;default:n.depthFunc(n.LEQUAL)}We=Ee}},setLocked:function(Ee){J=Ee},setClear:function(Ee){Re!==Ee&&(De&&(Ee=1-Ee),n.clearDepth(Ee),Re=Ee)},reset:function(){J=!1,Ie=null,We=null,Re=null,De=!1}}}function s(){let J=!1,De=null,Ie=null,We=null,Re=null,Ee=null,Ye=null,dt=null,Yt=null;return{setTest:function(Ot){J||(Ot?Z(n.STENCIL_TEST):xe(n.STENCIL_TEST))},setMask:function(Ot){De!==Ot&&!J&&(n.stencilMask(Ot),De=Ot)},setFunc:function(Ot,vi,us){(Ie!==Ot||We!==vi||Re!==us)&&(n.stencilFunc(Ot,vi,us),Ie=Ot,We=vi,Re=us)},setOp:function(Ot,vi,us){(Ee!==Ot||Ye!==vi||dt!==us)&&(n.stencilOp(Ot,vi,us),Ee=Ot,Ye=vi,dt=us)},setLocked:function(Ot){J=Ot},setClear:function(Ot){Yt!==Ot&&(n.clearStencil(Ot),Yt=Ot)},reset:function(){J=!1,De=null,Ie=null,We=null,Re=null,Ee=null,Ye=null,dt=null,Yt=null}}}const a=new t,l=new i,c=new s,f=new WeakMap,d=new WeakMap;let h={},g={},v=new WeakMap,x=[],b=null,_=!1,w=null,S=null,T=null,M=null,C=null,N=null,U=null,P=new qt(0,0,0),O=0,R=!1,L=null,z=null,H=null,Y=null,K=null;const q=n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let B=!1,W=0;const j=n.getParameter(n.VERSION);j.indexOf("WebGL")!==-1?(W=parseFloat(/^WebGL (\d)/.exec(j)[1]),B=W>=1):j.indexOf("OpenGL ES")!==-1&&(W=parseFloat(/^OpenGL ES (\d)/.exec(j)[1]),B=W>=2);let ae=null,fe={};const G=n.getParameter(n.SCISSOR_BOX),ee=n.getParameter(n.VIEWPORT),me=new Nn().fromArray(G),ve=new Nn().fromArray(ee);function ge(J,De,Ie,We){const Re=new Uint8Array(4),Ee=n.createTexture();n.bindTexture(J,Ee),n.texParameteri(J,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(J,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let Ye=0;Ye<Ie;Ye++)J===n.TEXTURE_3D||J===n.TEXTURE_2D_ARRAY?n.texImage3D(De,0,n.RGBA,1,1,We,0,n.RGBA,n.UNSIGNED_BYTE,Re):n.texImage2D(De+Ye,0,n.RGBA,1,1,0,n.RGBA,n.UNSIGNED_BYTE,Re);return Ee}const ie={};ie[n.TEXTURE_2D]=ge(n.TEXTURE_2D,n.TEXTURE_2D,1),ie[n.TEXTURE_CUBE_MAP]=ge(n.TEXTURE_CUBE_MAP,n.TEXTURE_CUBE_MAP_POSITIVE_X,6),ie[n.TEXTURE_2D_ARRAY]=ge(n.TEXTURE_2D_ARRAY,n.TEXTURE_2D_ARRAY,1,1),ie[n.TEXTURE_3D]=ge(n.TEXTURE_3D,n.TEXTURE_3D,1,1),a.setClear(0,0,0,1),l.setClear(1),c.setClear(0),Z(n.DEPTH_TEST),l.setFu
vendor: 1,214 bytes, line 3916
3916nc(Yc),Le(!1),Pe(qM),Z(n.CULL_FACE),He(gr);function Z(J){h[J]!==!0&&(n.enable(J),h[J]=!0)}function xe(J){h[J]!==!1&&(n.disable(J),h[J]=!1)}function Me(J,De){return g[J]!==De?(n.bindFramebuffer(J,De),g[J]=De,J===n.DRAW_FRAMEBUFFER&&(g[n.FRAMEBUFFER]=De),J===n.FRAMEBUFFER&&(g[n.DRAW_FRAMEBUFFER]=De),!0):!1}function Ae(J,De){let Ie=x,We=!1;if(J){Ie=v.get(De),Ie===void 0&&(Ie=[],v.set(De,Ie));const Re=J.textures;if(Ie.length!==Re.length||Ie[0]!==n.COLOR_ATTACHMENT0){for(let Ee=0,Ye=Re.length;Ee<Ye;Ee++)Ie[Ee]=n.COLOR_ATTACHMENT0+Ee;Ie.length=Re.length,We=!0}}else Ie[0]!==n.BACK&&(Ie[0]=n.BACK,We=!0);We&&n.drawBuffers(Ie)}function Be(J){return b!==J?(n.useProgram(J),b=J,!0):!1}const Xe={[Jo]:n.FUNC_ADD,[B5]:n.FUNC_SUBTRACT,[F5]:n.FUNC_REVERSE_SUBTRACT};Xe[z5]=n.MIN,Xe[j5]=n.MAX;const X={[k5]:n.ZERO,[V5]:n.ONE,[H5]:n.SRC_COLOR,[oy]:n.SRC_ALPHA,[$5]:n.SRC_ALPHA_SATURATE,[q5]:n.DST_COLOR,[W5]:n.DST_ALPHA,[G5]:n.ONE_MINUS_SRC_COLOR,[ly]:n.ONE_MINUS_SRC_ALPHA,[Y5]:n.ONE_MINUS_DST_COLOR,[X5]:n.ONE_MINUS_DST_ALPHA,[K5]:n.CONSTANT_COLOR,[Z5]:n.ONE_MINUS_CONSTANT_COLOR,[Q5]:n.CONSTANT_ALPHA,[J5]:n.ONE_MINUS_CONSTANT_ALPHA};function He(J,De,Ie,We,Re,Ee,Ye,dt,Yt,Ot){if(J===gr){_===!0&&(xe(n.BLEND),_=!1);return}
vendor: 4,659 bytes, line 3916
3916if(_===!1&&(Z(n.BLEND),_=!0),J!==I5){if(J!==w||Ot!==R){if((S!==Jo||C!==Jo)&&(n.blendEquation(n.FUNC_ADD),S=Jo,C=Jo),Ot)switch(J){case zc:n.blendFuncSeparate(n.ONE,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA);break;case YM:n.blendFunc(n.ONE,n.ONE);break;case $M:n.blendFuncSeparate(n.ZERO,n.ONE_MINUS_SRC_COLOR,n.ZERO,n.ONE);break;case KM:n.blendFuncSeparate(n.DST_COLOR,n.ONE_MINUS_SRC_ALPHA,n.ZERO,n.ONE);break;default:console.error("THREE.WebGLState: Invalid blending: ",J);break}else switch(J){case zc:n.blendFuncSeparate(n.SRC_ALPHA,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA);break;case YM:n.blendFuncSeparate(n.SRC_ALPHA,n.ONE,n.ONE,n.ONE);break;case $M:console.error("THREE.WebGLState: SubtractiveBlending requires material.premultipliedAlpha = true");break;case KM:console.error("THREE.WebGLState: MultiplyBlending requires material.premultipliedAlpha = true");break;default:console.error("THREE.WebGLState: Invalid blending: ",J);break}T=null,M=null,N=null,U=null,P.set(0,0,0),O=0,w=J,R=Ot}return}Re=Re||De,Ee=Ee||Ie,Ye=Ye||We,(De!==S||Re!==C)&&(n.blendEquationSeparate(Xe[De],Xe[Re]),S=De,C=Re),(Ie!==T||We!==M||Ee!==N||Ye!==U)&&(n.blendFuncSeparate(X[Ie],X[We],X[Ee],X[Ye]),T=Ie,M=We,N=Ee,U=Ye),(dt.equals(P)===!1||Yt!==O)&&(n.blendColor(dt.r,dt.g,dt.b,Yt),P.copy(dt),O=Yt),w=J,R=!1}function qe(J,De){J.side===es?xe(n.CULL_FACE):Z(n.CULL_FACE);let Ie=J.side===Qn;De&&(Ie=!Ie),Le(Ie),J.blending===zc&&J.transparent===!1?He(gr):He(J.blending,J.blendEquation,J.blendSrc,J.blendDst,J.blendEquationAlpha,J.blendSrcAlpha,J.blendDstAlpha,J.blendColor,J.blendAlpha,J.premultipliedAlpha),l.setFunc(J.depthFunc),l.setTest(J.depthTest),l.setMask(J.depthWrite),a.setMask(J.colorWrite);const We=J.stencilWrite;c.setTest(We),We&&(c.setMask(J.stencilWriteMask),c.setFunc(J.stencilFunc,J.stencilRef,J.stencilFuncMask),c.setOp(J.stencilFail,J.stencilZFail,J.stencilZPass)),Fe(J.polygonOffset,J.polygonOffsetFactor,J.polygonOffsetUnits),J.alphaToCoverage===!0?Z(n.SAMPLE_ALPHA_TO_COVERAGE):xe(n.SAMPLE_ALPHA_TO_COVERAGE)}function Le(J){L!==J&&(J?n.frontFace(n.CW):n.frontFace(n.CCW),L=J)}function Pe(J){J!==L5?(Z(n.CULL_FACE),J!==z&&(J===qM?n.cullFace(n.BACK):J===O5?n.cullFace(n.FRONT):n.cullFace(n.FRONT_AND_BACK))):xe(n.CULL_FACE),z=J}function _t(J){J!==H&&(B&&n.lineWidth(J),H=J)}function Fe(J,De,Ie){J?(Z(n.POLYGON_OFFSET_FILL),(Y!==De||K!==Ie)&&(n.polygonOffset(De,Ie),Y=De,K=Ie)):xe(n.POLYGON_OFFSET_FILL)}function lt(J){J?Z(n.SCISSOR_TEST):xe(n.SCISSOR_TEST)}function tn(J){J===void 0&&(J=n.TEXTURE0+q-1),ae!==J&&(n.activeTexture(J),ae=J)}function ln(J,De,Ie){Ie===void 0&&(ae===null?Ie=n.TEXTURE0+q-1:Ie=ae);let We=fe[Ie];We===void 0&&(We={type:void 0,texture:void 0},fe[Ie]=We),(We.type!==J||We.texture!==De)&&(ae!==Ie&&(n.activeTexture(Ie),ae=Ie),n.bindTexture(J,De||ie[J]),We.type=J,We.texture=De)}function V(){const J=fe[ae];J!==void 0&&J.type!==void 0&&(n.bindTexture(J.type,null),J.type=void 0,J.texture=void 0)}function I(){try{n.compressedTexImage2D(...arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function re(){try{n.compressedTexImage3D(...arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function be(){try{n.texSubImage2D(...arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function Ce(){try{n.texSubImage3D(...arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function ye(){try{n.compressedTexSubImage2D(...arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function it(){try{n.compressedTexSubImage3D(...arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function Oe(){try{n.texStorage2D(...arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function tt(){try{n.texStorage3D(...arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function nt(){try{n.texImage2D(...arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function Ne(){try{n.texImage3D(...arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function Ue(J){me.equals(J)===!1&&(n.scissor(J.x,J.y,J.z,J.w),me.copy(J))}function st(J){ve.equals(J)===!1&&(n.viewport(J.x,J.y,J.z,J.w),ve.copy(J))}function Ge(J,De){let Ie=d.get(De);Ie===void 0&&(Ie=new WeakMap,d.set(De,Ie));let We=Ie.get(J);We===void 0&&(We=n.getUniformBlockIndex(De,J.name),Ie.set(J,We))}function ze(J,De){const We=d.get(De).get(J);f.get(De)!==We&&(n.uniformBlockBinding(De,We,J.__bindingPointIndex),f.set(De,We))}function pt(){n.disable(n.BLEND),n.disable(n.CULL_FACE),n.disable(n.DEPTH_TEST),n.disable(n.POLYGON_OFFSET_FILL),n.disable(n.SCISSOR_TEST),n.disable(n.STENCIL_TEST),n.disable(n.SAMPLE_ALPHA_TO_COVERAGE),n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ONE,n.ZERO),n.blendFuncSeparate(n.ONE,n.ZERO,n.ONE,n.ZERO),n.blendColor
vendor: 4,599 bytes, line 3916
3916(0,0,0,0),n.colorMask(!0,!0,!0,!0),n.clearColor(0,0,0,0),n.depthMask(!0),n.depthFunc(n.LESS),l.setReversed(!1),n.clearDepth(1),n.stencilMask(4294967295),n.stencilFunc(n.ALWAYS,0,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.KEEP),n.clearStencil(0),n.cullFace(n.BACK),n.frontFace(n.CCW),n.polygonOffset(0,0),n.activeTexture(n.TEXTURE0),n.bindFramebuffer(n.FRAMEBUFFER,null),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),n.bindFramebuffer(n.READ_FRAMEBUFFER,null),n.useProgram(null),n.lineWidth(1),n.scissor(0,0,n.canvas.width,n.canvas.height),n.viewport(0,0,n.canvas.width,n.canvas.height),h={},ae=null,fe={},g={},v=new WeakMap,x=[],b=null,_=!1,w=null,S=null,T=null,M=null,C=null,N=null,U=null,P=new qt(0,0,0),O=0,R=!1,L=null,z=null,H=null,Y=null,K=null,me.set(0,0,n.canvas.width,n.canvas.height),ve.set(0,0,n.canvas.width,n.canvas.height),a.reset(),l.reset(),c.reset()}return{buffers:{color:a,depth:l,stencil:c},enable:Z,disable:xe,bindFramebuffer:Me,drawBuffers:Ae,useProgram:Be,setBlending:He,setMaterial:qe,setFlipSided:Le,setCullFace:Pe,setLineWidth:_t,setPolygonOffset:Fe,setScissorTest:lt,activeTexture:tn,bindTexture:ln,unbindTexture:V,compressedTexImage2D:I,compressedTexImage3D:re,texImage2D:nt,texImage3D:Ne,updateUBOMapping:Ge,uniformBlockBinding:ze,texStorage2D:Oe,texStorage3D:tt,texSubImage2D:be,texSubImage3D:Ce,compressedTexSubImage2D:ye,compressedTexSubImage3D:it,scissor:Ue,viewport:st,reset:pt}}function C6(n,e,t,i,s,a,l){const c=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,f=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),d=new wt,h=new WeakMap;let g;const v=new WeakMap;let x=!1;try{x=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function b(V,I){return x?new OffscreenCanvas(V,I):pm("canvas")}function _(V,I,re){let be=1;const Ce=ln(V);if((Ce.width>re||Ce.height>re)&&(be=re/Math.max(Ce.width,Ce.height)),be<1)if(typeof HTMLImageElement<"u"&&V instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&V instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&V instanceof ImageBitmap||typeof VideoFrame<"u"&&V instanceof VideoFrame){const ye=Math.floor(be*Ce.width),it=Math.floor(be*Ce.height);g===void 0&&(g=b(ye,it));const Oe=I?b(ye,it):g;return Oe.width=ye,Oe.height=it,Oe.getContext("2d").drawImage(V,0,0,ye,it),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+Ce.width+"x"+Ce.height+") to ("+ye+"x"+it+")."),Oe}else return"data"in V&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+Ce.width+"x"+Ce.height+")."),V;return V}function w(V){return V.generateMipmaps}function S(V){n.generateMipmap(V)}function T(V){return V.isWebGLCubeRenderTarget?n.TEXTURE_CUBE_MAP:V.isWebGL3DRenderTarget?n.TEXTURE_3D:V.isWebGLArrayRenderTarget||V.isCompressedArrayTexture?n.TEXTURE_2D_ARRAY:n.TEXTURE_2D}function M(V,I,re,be,Ce=!1){if(V!==null){if(n[V]!==void 0)return n[V];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+V+"'")}let ye=I;if(I===n.RED&&(re===n.FLOAT&&(ye=n.R32F),re===n.HALF_FLOAT&&(ye=n.R16F),re===n.UNSIGNED_BYTE&&(ye=n.R8)),I===n.RED_INTEGER&&(re===n.UNSIGNED_BYTE&&(ye=n.R8UI),re===n.UNSIGNED_SHORT&&(ye=n.R16UI),re===n.UNSIGNED_INT&&(ye=n.R32UI),re===n.BYTE&&(ye=n.R8I),re===n.SHORT&&(ye=n.R16I),re===n.INT&&(ye=n.R32I)),I===n.RG&&(re===n.FLOAT&&(ye=n.RG32F),re===n.HALF_FLOAT&&(ye=n.RG16F),re===n.UNSIGNED_BYTE&&(ye=n.RG8)),I===n.RG_INTEGER&&(re===n.UNSIGNED_BYTE&&(ye=n.RG8UI),re===n.UNSIGNED_SHORT&&(ye=n.RG16UI),re===n.UNSIGNED_INT&&(ye=n.RG32UI),re===n.BYTE&&(ye=n.RG8I),re===n.SHORT&&(ye=n.RG16I),re===n.INT&&(ye=n.RG32I)),I===n.RGB_INTEGER&&(re===n.UNSIGNED_BYTE&&(ye=n.RGB8UI),re===n.UNSIGNED_SHORT&&(ye=n.RGB16UI),re===n.UNSIGNED_INT&&(ye=n.RGB32UI),re===n.BYTE&&(ye=n.RGB8I),re===n.SHORT&&(ye=n.RGB16I),re===n.INT&&(ye=n.RGB32I)),I===n.RGBA_INTEGER&&(re===n.UNSIGNED_BYTE&&(ye=n.RGBA8UI),re===n.UNSIGNED_SHORT&&(ye=n.RGBA16UI),re===n.UNSIGNED_INT&&(ye=n.RGBA32UI),re===n.BYTE&&(ye=n.RGBA8I),re===n.SHORT&&(ye=n.RGBA16I),re===n.INT&&(ye=n.RGBA32I)),I===n.RGB&&(re===n.UNSIGNED_INT_5_9_9_9_REV&&(ye=n.RGB9_E5),re===n.UNSIGNED_INT_10F_11F_11F_REV&&(ye=n.R11F_G11F_B10F)),I===n.RGBA){const it=Ce?dm:zt.getTransfer(be);re===n.FLOAT&&(ye=n.RGBA32F),re===n.HALF_FLOAT&&(ye=n.RGBA16F),re===n.UNSIGNED_BYTE&&(ye=it===en?n.SRGB8_ALPHA8:n.RGBA8),re===n.UNSIGNED_SHORT_4_4_4_4&&(ye=n.RGBA4),re===n.UNSIGNED_SHORT_5_5_5_1&&(ye=n.RGB5_A1)}return(ye===n.R16F||ye===n.R32F||ye===n.RG16F||ye===n.RG32F||ye===n.RGBA16F||ye===n.RGBA32F)&&e.get("EXT_color_buffer_float"),ye}function C(V,I){let re;
vendor: 7,373 bytes, line 3916
3916return V?I===null||I===so||I===Zc?re=n.DEPTH24_STENCIL8:I===ta?re=n.DEPTH32F_STENCIL8:I===fd&&(re=n.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):I===null||I===so||I===Zc?re=n.DEPTH_COMPONENT24:I===ta?re=n.DEPTH_COMPONENT32F:I===fd&&(re=n.DEPTH_COMPONENT16),re}function N(V,I){return w(V)===!0||V.isFramebufferTexture&&V.minFilter!==Xs&&V.minFilter!==mi?Math.log2(Math.max(I.width,I.height))+1:V.mipmaps!==void 0&&V.mipmaps.length>0?V.mipmaps.length:V.isCompressedTexture&&Array.isArray(V.image)?I.mipmaps.length:1}function U(V){const I=V.target;I.removeEventListener("dispose",U),O(I),I.isVideoTexture&&h.delete(I)}function P(V){const I=V.target;I.removeEventListener("dispose",P),L(I)}function O(V){const I=i.get(V);if(I.__webglInit===void 0)return;const re=V.source,be=v.get(re);if(be){const Ce=be[I.__cacheKey];Ce.usedTimes--,Ce.usedTimes===0&&R(V),Object.keys(be).length===0&&v.delete(re)}i.remove(V)}function R(V){const I=i.get(V);n.deleteTexture(I.__webglTexture);const re=V.source,be=v.get(re);delete be[I.__cacheKey],l.memory.textures--}function L(V){const I=i.get(V);if(V.depthTexture&&(V.depthTexture.dispose(),i.remove(V.depthTexture)),V.isWebGLCubeRenderTarget)for(let be=0;be<6;be++){if(Array.isArray(I.__webglFramebuffer[be]))for(let Ce=0;Ce<I.__webglFramebuffer[be].length;Ce++)n.deleteFramebuffer(I.__webglFramebuffer[be][Ce]);else n.deleteFramebuffer(I.__webglFramebuffer[be]);I.__webglDepthbuffer&&n.deleteRenderbuffer(I.__webglDepthbuffer[be])}else{if(Array.isArray(I.__webglFramebuffer))for(let be=0;be<I.__webglFramebuffer.length;be++)n.deleteFramebuffer(I.__webglFramebuffer[be]);else n.deleteFramebuffer(I.__webglFramebuffer);if(I.__webglDepthbuffer&&n.deleteRenderbuffer(I.__webglDepthbuffer),I.__webglMultisampledFramebuffer&&n.deleteFramebuffer(I.__webglMultisampledFramebuffer),I.__webglColorRenderbuffer)for(let be=0;be<I.__webglColorRenderbuffer.length;be++)I.__webglColorRenderbuffer[be]&&n.deleteRenderbuffer(I.__webglColorRenderbuffer[be]);I.__webglDepthRenderbuffer&&n.deleteRenderbuffer(I.__webglDepthRenderbuffer)}const re=V.textures;for(let be=0,Ce=re.length;be<Ce;be++){const ye=i.get(re[be]);ye.__webglTexture&&(n.deleteTexture(ye.__webglTexture),l.memory.textures--),i.remove(re[be])}i.remove(V)}let z=0;function H(){z=0}function Y(){const V=z;return V>=s.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+V+" texture units while this GPU supports only "+s.maxTextures),z+=1,V}function K(V){const I=[];return I.push(V.wrapS),I.push(V.wrapT),I.push(V.wrapR||0),I.push(V.magFilter),I.push(V.minFilter),I.push(V.anisotropy),I.push(V.internalFormat),I.push(V.format),I.push(V.type),I.push(V.generateMipmaps),I.push(V.premultiplyAlpha),I.push(V.flipY),I.push(V.unpackAlignment),I.push(V.colorSpace),I.join()}function q(V,I){const re=i.get(V);if(V.isVideoTexture&<(V),V.isRenderTargetTexture===!1&&V.isExternalTexture!==!0&&V.version>0&&re.__version!==V.version){const be=V.image;if(be===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(be.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{ie(re,V,I);return}}else V.isExternalTexture&&(re.__webglTexture=V.sourceTexture?V.sourceTexture:null);t.bindTexture(n.TEXTURE_2D,re.__webglTexture,n.TEXTURE0+I)}function B(V,I){const re=i.get(V);if(V.isRenderTargetTexture===!1&&V.version>0&&re.__version!==V.version){ie(re,V,I);return}t.bindTexture(n.TEXTURE_2D_ARRAY,re.__webglTexture,n.TEXTURE0+I)}function W(V,I){const re=i.get(V);if(V.isRenderTargetTexture===!1&&V.version>0&&re.__version!==V.version){ie(re,V,I);return}t.bindTexture(n.TEXTURE_3D,re.__webglTexture,n.TEXTURE0+I)}function j(V,I){const re=i.get(V);if(V.version>0&&re.__version!==V.version){Z(re,V,I);return}t.bindTexture(n.TEXTURE_CUBE_MAP,re.__webglTexture,n.TEXTURE0+I)}const ae={[xy]:n.REPEAT,[tl]:n.CLAMP_TO_EDGE,[yy]:n.MIRRORED_REPEAT},fe={[Xs]:n.NEAREST,[cI]:n.NEAREST_MIPMAP_NEAREST,[np]:n.NEAREST_MIPMAP_LINEAR,[mi]:n.LINEAR,[Lv]:n.LINEAR_MIPMAP_NEAREST,[nl]:n.LINEAR_MIPMAP_LINEAR},G={[hI]:n.NEVER,[yI]:n.ALWAYS,[pI]:n.LESS,[cR]:n.LEQUAL,[mI]:n.EQUAL,[xI]:n.GEQUAL,[gI]:n.GREATER,[vI]:n.NOTEQUAL};function ee(V,I){if(I.type===ta&&e.has("OES_texture_float_linear")===!1&&(I.magFilter===mi||I.magFilter===Lv||I.magFilter===np||I.magFilter===nl||I.minFilter===mi||I.minFilter===Lv||I.minFilter===np||I.minFilter===nl)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),n.texParameteri(V,n.TEXTURE_WRAP_S,ae[I.wrapS]),n.texParameteri(V,n.TEXTURE_WRAP_T,ae[I.wrapT]),(V===n.TEXTURE_3D||V===n.TEXTURE_2D_ARRAY)&&n.texParameteri(V,n.TEXTURE_WRAP_R,ae[I.wrapR]),n.texParameteri(V,n.TEXTURE_MAG_FILTER,fe[I.magFilter]),n.texParameteri(V,n.TEXTURE_MIN_FILTER,fe[I.minFilter]),I.compareFunction&&(n.texParameteri(V,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(V,n.TEXTURE_COMPARE_FUNC,G[I.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(I.magFilter===Xs||I.minFilter!==np&&I.minFilter!==nl||I.type===ta&&e.has("OES_texture_float_linear")===!1)return;if(I.anisotropy>1||i.get(I).__currentAnisotropy){const re=e.get("EXT_texture_filter_anisotropic");n.texParameterf(V,re.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(I.anisotropy,s.getMaxAnisotropy())),i.get(I).__currentAnisotropy=I.anisotropy}}}function me(V,I){let re=!1;V.__webglInit===void 0&&(V.__webglInit=!0,I.addEventListener("dispose",U));const be=I.source;let Ce=v.get(be);Ce===void 0&&(Ce={},v.set(be,Ce));const ye=K(I);if(ye!==V.__cacheKey){Ce[ye]===void 0&&(Ce[ye]={texture:n.createTexture(),usedTimes:0},l.memory.textures++,re=!0),Ce[ye].usedTimes++;const it=Ce[V.__cacheKey];it!==void 0&&(Ce[V.__cacheKey].usedTimes--,it.usedTimes===0&&R(I)),V.__cacheKey=ye,V.__webglTexture=Ce[ye].texture}return re}function ve(V,I,re){return Math.floor(Math.floor(V/re)/I)}function ge(V,I,re,be){const ye=V.updateRanges;if(ye.length===0)t.texSubImage2D(n.TEXTURE_2D,0,0,0,I.width,I.height,re,be,I.data);else{ye.sort((Ne,Ue)=>Ne.start-Ue.start);let it=0;for(let Ne=1;Ne<ye.length;Ne++){const Ue=ye[it],st=ye[Ne],Ge=Ue.start+Ue.count,ze=ve(st.start,I.width,4),pt=ve(Ue.start,I.width,4);st.start<=Ge+1&&ze===pt&&ve(st.start+st.count-1,I.width,4)===ze?Ue.count=Math.max(Ue.count,st.start+st.count-Ue.start):(++it,ye[it]=st)}ye.length=it+1;const Oe=n.getParameter(n.UNPACK_ROW_LENGTH),tt=n.getParameter(n.UNPACK_SKIP_PIXELS),nt=n.getParameter(n.UNPACK_SKIP_ROWS);n.pixelStorei(n.UNPACK_ROW_LENGTH,I.width);for(let Ne=0,Ue=ye.length;Ne<Ue;Ne++){const st=ye[Ne],Ge=Math.floor(st.start/4),ze=Math.ceil(st.count/4),pt=Ge%I.width,J=Math.floor(Ge/I.width),De=ze,Ie=1;n.pixelStorei(n.UNPACK_SKIP_PIXELS,pt),n.pixelStorei(n.UNPACK_SKIP_ROWS,J),t.texSubImage2D(n.TEXTURE_2D,0,pt,J,De,Ie,re,be,I.data)}V.clearUpdateRanges(),n.pixelStorei(n.UNPACK_ROW_LENGTH,Oe),n.pixelStorei(n.UNPACK_SKIP_PIXELS,tt),n.pixelStorei(n.UNPACK_SKIP_ROWS,nt)}}function ie(V,I,re){let be=n.TEXTURE_2D;(I.isDataArrayTexture||I.isCompressedArrayTexture)&&(be=n.TEXTURE_2D_ARRAY),I.isData3DTexture&&(be=n.TEXTURE_3D);const Ce=me(V,I),ye=I.source;t.bindTexture(be,V.__webglTexture,n.TEXTURE0+re);const it=i.get(ye);if(ye.version!==it.__version||Ce===!0){t.activeTexture(n.TEXTURE0+re);
vendor: 13,389 bytes, line 3916
3916const Oe=zt.getPrimaries(zt.workingColorSpace),tt=I.colorSpace===cr?null:zt.getPrimaries(I.colorSpace),nt=I.colorSpace===cr||Oe===tt?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,I.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,I.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,I.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,nt);let Ne=_(I.image,!1,s.maxTextureSize);Ne=tn(I,Ne);const Ue=a.convert(I.format,I.colorSpace),st=a.convert(I.type);let Ge=M(I.internalFormat,Ue,st,I.colorSpace,I.isVideoTexture);ee(be,I);let ze;const pt=I.mipmaps,J=I.isVideoTexture!==!0,De=it.__version===void 0||Ce===!0,Ie=ye.dataReady,We=N(I,Ne);if(I.isDepthTexture)Ge=C(I.format===Qc,I.type),De&&(J?t.texStorage2D(n.TEXTURE_2D,1,Ge,Ne.width,Ne.height):t.texImage2D(n.TEXTURE_2D,0,Ge,Ne.width,Ne.height,0,Ue,st,null));else if(I.isDataTexture)if(pt.length>0){J&&De&&t.texStorage2D(n.TEXTURE_2D,We,Ge,pt[0].width,pt[0].height);for(let Re=0,Ee=pt.length;Re<Ee;Re++)ze=pt[Re],J?Ie&&t.texSubImage2D(n.TEXTURE_2D,Re,0,0,ze.width,ze.height,Ue,st,ze.data):t.texImage2D(n.TEXTURE_2D,Re,Ge,ze.width,ze.height,0,Ue,st,ze.data);I.generateMipmaps=!1}else J?(De&&t.texStorage2D(n.TEXTURE_2D,We,Ge,Ne.width,Ne.height),Ie&&ge(I,Ne,Ue,st)):t.texImage2D(n.TEXTURE_2D,0,Ge,Ne.width,Ne.height,0,Ue,st,Ne.data);else if(I.isCompressedTexture)if(I.isCompressedArrayTexture){J&&De&&t.texStorage3D(n.TEXTURE_2D_ARRAY,We,Ge,pt[0].width,pt[0].height,Ne.depth);for(let Re=0,Ee=pt.length;Re<Ee;Re++)if(ze=pt[Re],I.format!==Hs)if(Ue!==null)if(J){if(Ie)if(I.layerUpdates.size>0){const Ye=gT(ze.width,ze.height,I.format,I.type);for(const dt of I.layerUpdates){const Yt=ze.data.subarray(dt*Ye/ze.data.BYTES_PER_ELEMENT,(dt+1)*Ye/ze.data.BYTES_PER_ELEMENT);t.compressedTexSubImage3D(n.TEXTURE_2D_ARRAY,Re,0,0,dt,ze.width,ze.height,1,Ue,Yt)}I.clearLayerUpdates()}else t.compressedTexSubImage3D(n.TEXTURE_2D_ARRAY,Re,0,0,0,ze.width,ze.height,Ne.depth,Ue,ze.data)}else t.compressedTexImage3D(n.TEXTURE_2D_ARRAY,Re,Ge,ze.width,ze.height,Ne.depth,0,ze.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else J?Ie&&t.texSubImage3D(n.TEXTURE_2D_ARRAY,Re,0,0,0,ze.width,ze.height,Ne.depth,Ue,st,ze.data):t.texImage3D(n.TEXTURE_2D_ARRAY,Re,Ge,ze.width,ze.height,Ne.depth,0,Ue,st,ze.data)}else{J&&De&&t.texStorage2D(n.TEXTURE_2D,We,Ge,pt[0].width,pt[0].height);for(let Re=0,Ee=pt.length;Re<Ee;Re++)ze=pt[Re],I.format!==Hs?Ue!==null?J?Ie&&t.compressedTexSubImage2D(n.TEXTURE_2D,Re,0,0,ze.width,ze.height,Ue,ze.data):t.compressedTexImage2D(n.TEXTURE_2D,Re,Ge,ze.width,ze.height,0,ze.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):J?Ie&&t.texSubImage2D(n.TEXTURE_2D,Re,0,0,ze.width,ze.height,Ue,st,ze.data):t.texImage2D(n.TEXTURE_2D,Re,Ge,ze.width,ze.height,0,Ue,st,ze.data)}else if(I.isDataArrayTexture)if(J){if(De&&t.texStorage3D(n.TEXTURE_2D_ARRAY,We,Ge,Ne.width,Ne.height,Ne.depth),Ie)if(I.layerUpdates.size>0){const Re=gT(Ne.width,Ne.height,I.format,I.type);for(const Ee of I.layerUpdates){const Ye=Ne.data.subarray(Ee*Re/Ne.data.BYTES_PER_ELEMENT,(Ee+1)*Re/Ne.data.BYTES_PER_ELEMENT);t.texSubImage3D(n.TEXTURE_2D_ARRAY,0,0,0,Ee,Ne.width,Ne.height,1,Ue,st,Ye)}I.clearLayerUpdates()}else t.texSubImage3D(n.TEXTURE_2D_ARRAY,0,0,0,0,Ne.width,Ne.height,Ne.depth,Ue,st,Ne.data)}else t.texImage3D(n.TEXTURE_2D_ARRAY,0,Ge,Ne.width,Ne.height,Ne.depth,0,Ue,st,Ne.data);else if(I.isData3DTexture)J?(De&&t.texStorage3D(n.TEXTURE_3D,We,Ge,Ne.width,Ne.height,Ne.depth),Ie&&t.texSubImage3D(n.TEXTURE_3D,0,0,0,0,Ne.width,Ne.height,Ne.depth,Ue,st,Ne.data)):t.texImage3D(n.TEXTURE_3D,0,Ge,Ne.width,Ne.height,Ne.depth,0,Ue,st,Ne.data);else if(I.isFramebufferTexture){if(De)if(J)t.texStorage2D(n.TEXTURE_2D,We,Ge,Ne.width,Ne.height);else{let Re=Ne.width,Ee=Ne.height;for(let Ye=0;Ye<We;Ye++)t.texImage2D(n.TEXTURE_2D,Ye,Ge,Re,Ee,0,Ue,st,null),Re>>=1,Ee>>=1}}else if(pt.length>0){if(J&&De){const Re=ln(pt[0]);t.texStorage2D(n.TEXTURE_2D,We,Ge,Re.width,Re.height)}for(let Re=0,Ee=pt.length;Re<Ee;Re++)ze=pt[Re],J?Ie&&t.texSubImage2D(n.TEXTURE_2D,Re,0,0,Ue,st,ze):t.texImage2D(n.TEXTURE_2D,Re,Ge,Ue,st,ze);I.generateMipmaps=!1}else if(J){if(De){const Re=ln(Ne);t.texStorage2D(n.TEXTURE_2D,We,Ge,Re.width,Re.height)}Ie&&t.texSubImage2D(n.TEXTURE_2D,0,0,0,Ue,st,Ne)}else t.texImage2D(n.TEXTURE_2D,0,Ge,Ue,st,Ne);w(I)&&S(be),it.__version=ye.version,I.onUpdate&&I.onUpdate(I)}V.__version=I.version}function Z(V,I,re){if(I.image.length!==6)return;const be=me(V,I),Ce=I.source;t.bindTexture(n.TEXTURE_CUBE_MAP,V.__webglTexture,n.TEXTURE0+re);const ye=i.get(Ce);if(Ce.version!==ye.__version||be===!0){t.activeTexture(n.TEXTURE0+re);const it=zt.getPrimaries(zt.workingColorSpace),Oe=I.colorSpace===cr?null:zt.getPrimaries(I.colorSpace),tt=I.colorSpace===cr||it===Oe?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,I.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,I.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,I.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,tt);const nt=I.isCompressedTexture||I.image[0].isCompressedTexture,Ne=I.image[0]&&I.image[0].isDataTexture,Ue=[];for(let Ee=0;Ee<6;Ee++)!nt&&!Ne?Ue[Ee]=_(I.image[Ee],!0,s.maxCubemapSize):Ue[Ee]=Ne?I.image[Ee].image:I.image[Ee],Ue[Ee]=tn(I,Ue[Ee]);const st=Ue[0],Ge=a.convert(I.format,I.colorSpace),ze=a.convert(I.type),pt=M(I.internalFormat,Ge,ze,I.colorSpace),J=I.isVideoTexture!==!0,De=ye.__version===void 0||be===!0,Ie=Ce.dataReady;let We=N(I,st);ee(n.TEXTURE_CUBE_MAP,I);let Re;if(nt){J&&De&&t.texStorage2D(n.TEXTURE_CUBE_MAP,We,pt,st.width,st.height);for(let Ee=0;Ee<6;Ee++){Re=Ue[Ee].mipmaps;for(let Ye=0;Ye<Re.length;Ye++){const dt=Re[Ye];I.format!==Hs?Ge!==null?J?Ie&&t.compressedTexSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,Ye,0,0,dt.width,dt.height,Ge,dt.data):t.compressedTexImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,Ye,pt,dt.width,dt.height,0,dt.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):J?Ie&&t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,Ye,0,0,dt.width,dt.height,Ge,ze,dt.data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,Ye,pt,dt.width,dt.height,0,Ge,ze,dt.data)}}}else{if(Re=I.mipmaps,J&&De){Re.length>0&&We++;const Ee=ln(Ue[0]);t.texStorage2D(n.TEXTURE_CUBE_MAP,We,pt,Ee.width,Ee.height)}for(let Ee=0;Ee<6;Ee++)if(Ne){J?Ie&&t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,0,0,0,Ue[Ee].width,Ue[Ee].height,Ge,ze,Ue[Ee].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,0,pt,Ue[Ee].width,Ue[Ee].height,0,Ge,ze,Ue[Ee].data);for(let Ye=0;Ye<Re.length;Ye++){const Yt=Re[Ye].image[Ee].image;J?Ie&&t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,Ye+1,0,0,Yt.width,Yt.height,Ge,ze,Yt.data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,Ye+1,pt,Yt.width,Yt.height,0,Ge,ze,Yt.data)}}else{J?Ie&&t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,0,0,0,Ge,ze,Ue[Ee]):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,0,pt,Ge,ze,Ue[Ee]);for(let Ye=0;Ye<Re.length;Ye++){const dt=Re[Ye];J?Ie&&t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,Ye+1,0,0,Ge,ze,dt.image[Ee]):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ee,Ye+1,pt,Ge,ze,dt.image[Ee])}}}w(I)&&S(n.TEXTURE_CUBE_MAP),ye.__version=Ce.version,I.onUpdate&&I.onUpdate(I)}V.__version=I.version}function xe(V,I,re,be,Ce,ye){const it=a.convert(re.format,re.colorSpace),Oe=a.convert(re.type),tt=M(re.internalFormat,it,Oe,re.colorSpace),nt=i.get(I),Ne=i.get(re);if(Ne.__renderTarget=I,!nt.__hasExternalTextures){const Ue=Math.max(1,I.width>>ye),st=Math.max(1,I.height>>ye);Ce===n.TEXTURE_3D||Ce===n.TEXTURE_2D_ARRAY?t.texImage3D(Ce,ye,tt,Ue,st,I.depth,0,it,Oe,null):t.texImage2D(Ce,ye,tt,Ue,st,0,it,Oe,null)}t.bindFramebuffer(n.FRAMEBUFFER,V),Fe(I)?c.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,be,Ce,Ne.__webglTexture,0,_t(I)):(Ce===n.TEXTURE_2D||Ce>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&Ce<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,be,Ce,Ne.__webglTexture,ye),t.bindFramebuffer(n.FRAMEBUFFER,null)}function Me(V,I,re){if(n.bindRenderbuffer(n.RENDERBUFFER,V),I.depthBuffer){const be=I.depthTexture,Ce=be&&be.isDepthTexture?be.type:null,ye=C(I.stencilBuffer,Ce),it=I.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,Oe=_t(I);Fe(I)?c.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,Oe,ye,I.width,I.height):re?n.renderbufferStorageMultisample(n.RENDERBUFFER,Oe,ye,I.width,I.height):n.renderbufferStorage(n.RENDERBUFFER,ye,I.width,I.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,it,n.RENDERBUFFER,V)}else{const be=I.textures;for(let Ce=0;Ce<be.length;Ce++){const ye=be[Ce],it=a.convert(ye.format,ye.colorSpace),Oe=a.convert(ye.type),tt=M(ye.internalFormat,it,Oe,ye.colorSpace),nt=_t(I);re&&Fe(I)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,nt,tt,I.width,I.height):Fe(I)?c.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,nt,tt,I.width,I.height):n.renderbufferStorage(n.RENDERBUFFER,tt,I.width,I.height)}}n.bindRenderbuffer(n.RENDERBUFFER,null)}function Ae(V,I){if(I&&I.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(n.FRAMEBUFFER,V),!(I.depthTexture&&I.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");const be=i.get(I.depthTexture);be.__renderTarget=I,(!be.__webglTexture||I.depthTexture.image.width!==I.width||I.depthTexture.image.height!==I.height)&&(I.depthTexture.image.width=I.width,I.depthTexture.image.height=I.height,I.depthTexture.needsUpdate=!0),q(I.depthTexture,0);const Ce=be.__webglTexture,ye=_t(I);if(I.depthTexture.format===dd)Fe(I)?c.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,Ce,0,ye):n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,Ce,0);else if(I.depthTexture.format===Qc)Fe(I)?c.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,Ce,0,ye):n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,Ce,0);else throw new Error("Unknown depthTexture format")}function Be(V){const I=i.get(V),re=V.isWebGLCubeRenderTarget===!0;if(I.__boundDepthTexture!==V.depthTexture){const be=V.depthTexture;if(I.__depthDisposeCallback&&I.__depthDisposeCallback(),be){const Ce=()=>{delete I.__boundDepthTexture,delete I.__depthDisposeCallback,be.removeEventListener("dispose",Ce)};be.addEventListener("dispose",Ce),I.__depthDisposeCallback=Ce}I.__boundDepthTexture=be}if(V.depthTexture&&!I.__autoAllocateDepthBuffer){if(re)throw new Error("target.depthTexture not supported in Cube render targets");const be=V.texture.mipmaps;be&&be.length>0?Ae(I.__webglFramebuffer[0],V):Ae(I.__webglFramebuffer,V)}else if(re){I.__webglDepthbuffer=[];for(let be=0;be<6;be++)if(t.bindFramebuffer(n.FRAMEBUFFER,I.__webglFramebuffer[be]),I.__webglDepthbuffer[be]===void 0)I.__webglDepthbuffer[be]=n.createRenderbuffer(),Me(I.__webglDepthbuffer[be],V,!1);else{const Ce=V.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,ye=I.__webglDepthbuffer[be];n.bindRenderbuffer(n.RENDERBUFFER,ye),n.framebufferRenderbuffer(n.FRAMEBUFFER,Ce,n.RENDERBUFFER,ye)}}else{const be=V.texture.mipmaps;if(be&&be.length>0?t.bindFramebuffer(n.FRAMEBUFFER,I.__webglFramebuffer[0]):t.bindFramebuffer(n.FRAMEBUFFER,I.__webglFramebuffer),I.__webglDepthbuffer===void 0)I.__webglDepthbuffer=n.createRenderbuffer(),Me(I.__webglDepthbuffer,V,!1);else{const Ce=V.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,ye=I.__webglDepthbuffer;n.bindRenderbuffer(n.RENDERBUFFER,ye),n.framebufferRenderbuffer(n.FRAMEBUFFER,Ce,n.RENDERBUFFER,ye)}}t.bindFramebuffer(n.FRAMEBUFFER,null)}function Xe(V,I,re){const be=i.get(V);I!==void 0&&xe(be.__webglFramebuffer,V,V.texture,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,0),re!==void 0&&Be(V)}function X(V){const I=V.texture,re=i.get(V),be=i.get(I);V.addEventListener("dispose",P);const Ce=V.textures,ye=V.isWebGLCubeRenderTarget===!0,it=Ce.length>1;if(it||(be.__webglTexture===void 0&&(be.__webglTexture=n.createTexture()),be.__version=I.version,l.memory.textures++),ye){re.__webglFramebuffer=[];for(let Oe=0;Oe<6;Oe++)if(I.mipmaps&&I.mipmaps.length>0){re.__webglFramebuffer[Oe]=[];for(let tt=0;tt<I.mipmaps.length;tt++)re.__webglFramebuffer[Oe][tt]=n.createFramebuffer()}else re.__webglFramebuffer[Oe]=n.createFramebuffer()}else{if(I.mipmaps&&I.mipmaps.length>0){re.__webglFramebuffer=[];for(let Oe=0;Oe<I.mipmaps.length;Oe++)re.__webglFramebuffer[Oe]=n.createFramebuffer()}else re.__webglFramebuffer=n.createFramebuffer();if(it)for(let Oe=0,tt=Ce.length;Oe<tt;Oe++){const nt=i.get(Ce[Oe]);nt.__webglTexture===void 0&&(nt.__webglTexture=n.createTexture(),l.memory.textures++)}if(V.samples>0&&Fe(V)===!1){re.__webglMultisampledFramebuffer=n.createFramebuffer(),re.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,re.__webglMultisampledFramebuffer);for(let Oe=0;Oe<Ce.length;Oe++){const tt=Ce[Oe];re.__webglColorRenderbuffer[Oe]=n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,re.__webglColorRenderbuffer[Oe]);const nt=a.convert(tt.format,tt.colorSpace),Ne=a.convert(tt.type),Ue=M(tt.internalFormat,nt,Ne,tt.colorSpace,V.isXRRenderTarget===!0),st=_t(V);n.renderbufferStorageMultisample(n.RENDERBUFFER,st,Ue,V.width,V.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+Oe,n.RENDERBUFFER,re.__webglColorRen
vendor: 18,915 bytes, lines 3916-3940
3916derbuffer[Oe])}n.bindRenderbuffer(n.RENDERBUFFER,null),V.depthBuffer&&(re.__webglDepthRenderbuffer=n.createRenderbuffer(),Me(re.__webglDepthRenderbuffer,V,!0)),t.bindFramebuffer(n.FRAMEBUFFER,null)}}if(ye){t.bindTexture(n.TEXTURE_CUBE_MAP,be.__webglTexture),ee(n.TEXTURE_CUBE_MAP,I);for(let Oe=0;Oe<6;Oe++)if(I.mipmaps&&I.mipmaps.length>0)for(let tt=0;tt<I.mipmaps.length;tt++)xe(re.__webglFramebuffer[Oe][tt],V,I,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,tt);else xe(re.__webglFramebuffer[Oe],V,I,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0);w(I)&&S(n.TEXTURE_CUBE_MAP),t.unbindTexture()}else if(it){for(let Oe=0,tt=Ce.length;Oe<tt;Oe++){const nt=Ce[Oe],Ne=i.get(nt);let Ue=n.TEXTURE_2D;(V.isWebGL3DRenderTarget||V.isWebGLArrayRenderTarget)&&(Ue=V.isWebGL3DRenderTarget?n.TEXTURE_3D:n.TEXTURE_2D_ARRAY),t.bindTexture(Ue,Ne.__webglTexture),ee(Ue,nt),xe(re.__webglFramebuffer,V,nt,n.COLOR_ATTACHMENT0+Oe,Ue,0),w(nt)&&S(Ue)}t.unbindTexture()}else{let Oe=n.TEXTURE_2D;if((V.isWebGL3DRenderTarget||V.isWebGLArrayRenderTarget)&&(Oe=V.isWebGL3DRenderTarget?n.TEXTURE_3D:n.TEXTURE_2D_ARRAY),t.bindTexture(Oe,be.__webglTexture),ee(Oe,I),I.mipmaps&&I.mipmaps.length>0)for(let tt=0;tt<I.mipmaps.length;tt++)xe(re.__webglFramebuffer[tt],V,I,n.COLOR_ATTACHMENT0,Oe,tt);else xe(re.__webglFramebuffer,V,I,n.COLOR_ATTACHMENT0,Oe,0);w(I)&&S(Oe),t.unbindTexture()}V.depthBuffer&&Be(V)}function He(V){const I=V.textures;for(let re=0,be=I.length;re<be;re++){const Ce=I[re];if(w(Ce)){const ye=T(V),it=i.get(Ce).__webglTexture;t.bindTexture(ye,it),S(ye),t.unbindTexture()}}}const qe=[],Le=[];function Pe(V){if(V.samples>0){if(Fe(V)===!1){const I=V.textures,re=V.width,be=V.height;let Ce=n.COLOR_BUFFER_BIT;const ye=V.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,it=i.get(V),Oe=I.length>1;if(Oe)for(let nt=0;nt<I.length;nt++)t.bindFramebuffer(n.FRAMEBUFFER,it.__webglMultisampledFramebuffer),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+nt,n.RENDERBUFFER,null),t.bindFramebuffer(n.FRAMEBUFFER,it.__webglFramebuffer),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+nt,n.TEXTURE_2D,null,0);t.bindFramebuffer(n.READ_FRAMEBUFFER,it.__webglMultisampledFramebuffer);const tt=V.texture.mipmaps;tt&&tt.length>0?t.bindFramebuffer(n.DRAW_FRAMEBUFFER,it.__webglFramebuffer[0]):t.bindFramebuffer(n.DRAW_FRAMEBUFFER,it.__webglFramebuffer);for(let nt=0;nt<I.length;nt++){if(V.resolveDepthBuffer&&(V.depthBuffer&&(Ce|=n.DEPTH_BUFFER_BIT),V.stencilBuffer&&V.resolveStencilBuffer&&(Ce|=n.STENCIL_BUFFER_BIT)),Oe){n.framebufferRenderbuffer(n.READ_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,it.__webglColorRenderbuffer[nt]);const Ne=i.get(I[nt]).__webglTexture;n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,Ne,0)}n.blitFramebuffer(0,0,re,be,0,0,re,be,Ce,n.NEAREST),f===!0&&(qe.length=0,Le.length=0,qe.push(n.COLOR_ATTACHMENT0+nt),V.depthBuffer&&V.resolveDepthBuffer===!1&&(qe.push(ye),Le.push(ye),n.invalidateFramebuffer(n.DRAW_FRAMEBUFFER,Le)),n.invalidateFramebuffer(n.READ_FRAMEBUFFER,qe))}if(t.bindFramebuffer(n.READ_FRAMEBUFFER,null),t.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),Oe)for(let nt=0;nt<I.length;nt++){t.bindFramebuffer(n.FRAMEBUFFER,it.__webglMultisampledFramebuffer),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+nt,n.RENDERBUFFER,it.__webglColorRenderbuffer[nt]);const Ne=i.get(I[nt]).__webglTexture;t.bindFramebuffer(n.FRAMEBUFFER,it.__webglFramebuffer),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+nt,n.TEXTURE_2D,Ne,0)}t.bindFramebuffer(n.DRAW_FRAMEBUFFER,it.__webglMultisampledFramebuffer)}else if(V.depthBuffer&&V.resolveDepthBuffer===!1&&f){const I=V.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT;n.invalidateFramebuffer(n.DRAW_FRAMEBUFFER,[I])}}}function _t(V){return Math.min(s.maxSamples,V.samples)}function Fe(V){const I=i.get(V);return V.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&I.__useRenderToTexture!==!1}function lt(V){const I=l.render.frame;h.get(V)!==I&&(h.set(V,I),V.update())}function tn(V,I){const re=V.colorSpace,be=V.format,Ce=V.type;return V.isCompressedTexture===!0||V.isVideoTexture===!0||re!==ro&&re!==cr&&(zt.getTransfer(re)===en?(be!==Hs||Ce!==as)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",re)),I}function ln(V){return typeof HTMLImageElement<"u"&&V instanceof HTMLImageElement?(d.width=V.naturalWidth||V.width,d.height=V.naturalHeight||V.height):typeof VideoFrame<"u"&&V instanceof VideoFrame?(d.width=V.displayWidth,d.height=V.displayHeight):(d.width=V.width,d.height=V.height),d}this.allocateTextureUnit=Y,this.resetTextureUnits=H,this.setTexture2D=q,this.setTexture2DArray=B,this.setTexture3D=W,this.setTextureCube=j,this.rebindTextures=Xe,this.setupRenderTarget=X,this.updateRenderTargetMipmap=He,this.updateMultisampleRenderTarget=Pe,this.setupDepthRenderbuffer=Be,this.setupFrameBufferTexture=xe,this.useMultisampledRTT=Fe}function R6(n,e){function t(i,s=cr){let a;const l=zt.getTransfer(s);if(i===as)return n.UNSIGNED_BYTE;if(i===hb)return n.UNSIGNED_SHORT_4_4_4_4;if(i===pb)return n.UNSIGNED_SHORT_5_5_5_1;if(i===iR)return n.UNSIGNED_INT_5_9_9_9_REV;if(i===sR)return n.UNSIGNED_INT_10F_11F_11F_REV;if(i===tR)return n.BYTE;if(i===nR)return n.SHORT;if(i===fd)return n.UNSIGNED_SHORT;if(i===db)return n.INT;if(i===so)return n.UNSIGNED_INT;if(i===ta)return n.FLOAT;if(i===Nd)return n.HALF_FLOAT;if(i===rR)return n.ALPHA;if(i===aR)return n.RGB;if(i===Hs)return n.RGBA;if(i===dd)return n.DEPTH_COMPONENT;if(i===Qc)return n.DEPTH_STENCIL;if(i===oR)return n.RED;if(i===mb)return n.RED_INTEGER;if(i===lR)return n.RG;if(i===gb)return n.RG_INTEGER;if(i===vb)return n.RGBA_INTEGER;if(i===Hp||i===Gp||i===Wp||i===Xp)if(l===en)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(i===Hp)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===Gp)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===Wp)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===Xp)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(i===Hp)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===Gp)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===Wp)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===Xp)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(i===_y||i===by||i===Sy||i===wy)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(i===_y)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===by)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===Sy)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===wy)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(i===Ey||i===My||i===Ty)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(i===Ey||i===My)return l===en?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(i===Ty)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(i===Ay||i===Cy||i===Ry||i===Ny||i===Dy||i===Py||i===Ly||i===Oy||i===Uy||i===Iy||i===By||i===Fy||i===zy||i===jy)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(i===Ay)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===Cy)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===Ry)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===Ny)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===Dy)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===Py)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===Ly)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===Oy)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===Uy)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===Iy)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===By)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===Fy)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===zy)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===jy)return l===en?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(i===ky||i===Vy||i===Hy)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(i===ky)return l===en?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(i===Vy)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(i===Hy)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(i===Gy||i===Wy||i===Xy||i===qy)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(i===Gy)return a.COMPRESSED_RED_RGTC1_EXT;if(i===Wy)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(i===Xy)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(i===qy)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return i===Zc?n.UNSIGNED_INT_24_8:n[i]!==void 0?n[i]:null}return{convert:t}}const N6=` 3917void main() { 3918 3919 gl_Position = vec4( position, 1.0 ); 3920 3921}`,D6=` 3922uniform sampler2DArray depthColor; 3923uniform float depthWidth; 3924uniform float depthHeight; 3925 3926void main() { 3927 3928 vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); 3929 3930 if ( coord.x >= 1.0 ) { 3931 3932 gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; 3933 3934 } else { 3935 3936 gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; 3937 3938 } 3939 3940}`;class P6{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){const i=new _R(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=i}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,i=new Ds({vertexShader:N6,fragmentShader:D6,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Gs(new Id(20,20),i)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class L6 extends fo{constructor(e,t){super();const i=this;let s=null,a=1,l=null,c="local-floor",f=1,d=null,h=null,g=null,v=null,x=null,b=null;const _=typeof XRWebGLBinding<"u",w=new P6,S={},T=t.getContextAttributes();let M=null,C=null;const N=[],U=[],P=new wt;let O=null;const R=new Ms;R.viewport=new Nn;const L=new Ms;L.viewport=new Nn;const z=[R,L],H=new JI;let Y=null,K=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ie){let Z=N[ie];return Z===void 0&&(Z=new nx,N[ie]=Z),Z.getTargetRaySpace()},this.getControllerGrip=function(ie){let Z=N[ie];return Z===void 0&&(Z=new nx,N[ie]=Z),Z.getGripSpace()},this.getHand=function(ie){let Z=N[ie];return Z===void 0&&(Z=new nx,N[ie]=Z),Z.getHandSpace()};function q(ie){const Z=U.indexOf(ie.inputSource);if(Z===-1)return;const xe=N[Z];xe!==void 0&&(xe.update(ie.inputSource,ie.frame,d||l),xe.dispatchEvent({type:ie.type,data:ie.inputSource}))}function B(){s.removeEventListener("select",q),s.removeEventListener("selectstart",q),s.removeEventListener("selectend",q),s.removeEventListener("squeeze",q),s.removeEventListener("squeezestart",q),s.removeEventListener("squeezeend",q),s.removeEventListener("end",B),s.removeEventListener("inputsourceschange",W);for(let ie=0;ie<N.length;ie++){const Z=U[ie];Z!==null&&(U[ie]=null,N[ie].disconnect(Z))}Y=null,K=null,w.reset();for(const ie in S)delete S[ie];e.setRenderTarget(M),x=null,v=null,g=null,s=null,C=null,ge.stop(),i.isPresenting=!1,e.setPixelRatio(O),e.setSize(P.width,P.height,!1),i.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(ie){a=ie,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(ie){c=ie,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return d||l},this.setReferenceSpace=function(ie){d=ie},this.getBaseLayer=function(){return v!==null?v:x},this.getBinding=function(){return g===null&&_&&(g=new XRWebGLBinding(s,t)),g},this.getFrame=function(){return b},this.getSession=function(){return s},this.setSession=async function(ie){if(s=ie,s!==null){if(M=e.getRenderTarget(),s.addEventListener("select",q),s.addEventListener("selectstart",q),s.addEventListener("selectend",q),s.addEventListener("squeeze",q),s.addEventListener("squeezestart",q),s.addEventListener("squeezeend",q),s.addEventListener("end",B),s.addEventListener("inputsourceschange",W),T.xrCompatible!==!0&&await t.makeXRCompatible(),O=e.getPixelRatio(),e.getSize(P),_&&"createProjectionLayer"in XRWebGLBinding.prototype){let xe=null,Me=null,Ae=null;T.depth&&(Ae=T.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,xe=T.stencil?Qc:dd,Me=T.stencil?Zc:so);const Be={colorFormat:t.RGBA8,depthFormat:Ae,scaleFactor:a};g=this.getBinding(),v=g.createProjectionLayer(Be),s.updateRenderState({layers:[v]}),e.setPixelRatio(1),e.setSize(v.textureWidth,v.textureHeight,!1),C=new qs(v.textureWidth,v.textureHeight,{format:Hs,type:as,depthTexture:new bb(v.textureWidth,v.textureHeight,Me,void 0,void 0,void 0,void 0,void 0,void 0,xe),stencilBuffer:T.stencil,colorSpace:e.outputColorSpace,samples:T.antialias?4:0,resolveDepthBuffer:v.ignoreDepthValues===!1,resolveStencilBuffer:v.ignoreDepthValues===!1})}else{const xe={antialias:T.antialias,alpha:!0,depth:T.depth,stencil:T.stencil,framebufferScaleFactor:a};x=new XRWebGLLayer(s,t,xe),s.updateRenderState({baseLayer:x}),e.setPixelRatio(1),e.setSize(x.framebufferWidth,x.framebufferHeight,!1),C=new qs(x.framebufferWidth,x.framebufferHeight,{format:Hs,type:as,colorSpace:e.outputColorSpace,stencilBuffer:T.stencil,resolveDepthBuffer:x.ignoreDepthValues===!1,resolveStencilBuffer:x.ignoreDepthValues===!1})}C.isXRRenderTarget=!0,this.setFoveation(f),d=null,l=await s.requestReferenceSpace(c),ge.setContext(s),ge.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(s!==null)return s.environmentBlendMode},this.getDepthTexture=function(){return w.getDepthTexture()};function W(ie){for(let Z=0;Z<ie.removed.length;Z++){const xe=ie.removed[Z],Me=U.indexOf(xe);Me>=0&&(U[Me]=null,N[Me].disconnect(xe))}for(let Z=0;Z<ie.added.length;Z++){const xe=ie.added[Z];let Me=U.indexOf(xe);if(Me===-1){for(let Be=0;Be<N.length;Be++)if(Be>=U.length){U.push(xe),Me=Be;break}else if(U[Be]===null){U[Be]=xe,Me=Be;break}if(Me===-1)break}const Ae=N[Me];Ae&&Ae.connect(xe)}}const j=new pe,ae=new pe;function fe(ie,Z,xe){j.setFromMatrixPosition(Z.matrixWorld),ae.setFromMatrixPosition(xe.matrixWorld);const Me=j.distanceTo(ae),Ae=Z.projectionMatrix.elements,Be=xe.projectionMatrix.elements,Xe=Ae[14]/(Ae[10]-1),X=Ae[14]/(Ae[10]+1),He=(Ae[9]+1)/Ae[5],qe=(Ae[9]-1)/Ae[5],Le=(Ae[8]-1)/Ae[0],Pe=(Be[8]+1)/Be[0],_t=Xe*Le,Fe=Xe*Pe,lt=Me/(-Le+Pe),tn=lt*-Le;if(Z.matrixWorld.decompose(ie.position,ie.quaternion,ie.scale),ie.translateX(tn),ie.translateZ(lt),ie.matrixWorld.compose(ie.position,ie.quaternion,ie.scale),ie.matrixWorldInverse.copy(ie.matrixWorld).invert(),Ae[10]===-1)ie.projectionMatrix.copy(Z.projectionMatrix),ie.projectionMatrixInverse.copy(Z.projectionMatrixInverse);else{const ln=Xe+lt,V=X+lt,I=_t-tn,re=Fe+(Me-tn),be=He*X/V*ln,Ce=qe*X/V*ln;ie.projectionMatrix.makePerspective(I,re,be,Ce,ln,V),ie.projectionMatrixInverse.copy(ie.projectionMatrix).invert()}}function G(ie,Z){Z===null?ie.matrixWorld.copy(ie.matrix):ie.matrixWorld.multiplyMatrices(Z.matrixWorld,ie.matrix),ie.matrixWorldInverse.copy(ie.matrixWorld).invert()}this.updateCamera=function(ie){if(s===null)return;let Z=ie.near,xe=ie.far;w.texture!==null&&(w.depthNear>0&&(Z=w.depthNear),w.depthFar>0&&(xe=w.depthFar)),H.near=L.near=R.near=Z,H.far=L.far=R.far=xe,(Y!==H.near||K!==H.far)&&(s.updateRenderState({depthNear:H.near,depthFar:H.far}),Y=H.near,K=H.far),H.layers.mask=ie.layers.mask|6,R.layers.mask=H.layers.mask&3,L.layers.mask=H.layers.mask&5;const Me=ie.parent,Ae=H.cameras;G(H,Me);for(let Be=0;Be<Ae.length;Be++)G(Ae[Be],Me);Ae.length===2?fe(H,R,L):H.projectionMatrix.copy(R.projectionMatrix),ee(ie,H,Me)};function ee(ie,Z,xe){xe===null?ie.matrix.copy(Z.matrixWorld):(ie.matrix.copy(xe.matrixWorld),ie.matrix.invert(),ie.matrix.multiply(Z.matrixWorld)),ie.matrix.decompose(ie.position,ie.quaternion,ie.scale),ie.updateMatrixWorld(!0),ie.projectionMatrix.copy(Z.projectionMatrix),ie.projectionMatrixInverse.copy(Z.projectionMatrixInverse),ie.isPerspectiveCamera&&(ie.fov=$y*2*Math.atan(1/ie.projectionMatrix.elements[5]),ie.zoom=1)}this.getCamera=function(){return H},this.getFoveation=function(){if(!(v===null&&x===null))return f},this.setFoveation=function(ie){f=ie,v!==null&&(v.fixedFoveation=ie),x!==null&&x.fixedFoveation!==void 0&&(x.fixedFoveation=ie)},this.hasDepthSensing=function(){return w.texture!==null},this.getDepthSensingMesh=function(){return w.getMesh(H)},this.getCameraTexture=function(ie){return S[ie]};let me=null;function ve(ie,Z){if(h=Z.getViewerPose(d||l),b=Z,h!==null){const xe=h.views;x!==null&&(e.setRenderTargetFramebuffer(C,x.framebuffer),e.setRenderTarget(C));let Me=!1;xe.length!==H.cameras.length&&(H.cameras.length=0,Me=!0);for(let X=0;X<xe.length;X++){const He=xe[X];let qe=null;if(x!==null)qe=x.getViewport(He);else{const Pe=g.getViewSubImage(v,He);qe=Pe.viewport,X===0&&(e.setRenderTargetTextures(C,Pe.colorTexture,Pe.depthStencilTexture),e.setRenderTarget(C))}let Le=z[X];Le===void 0&&(Le=new Ms,Le.layers.enable(X),Le.viewport=new Nn,z[X]=Le),Le.matrix.fromArray(He.transform.matrix),Le.matrix.decompose(Le.position,Le.quaternion,Le.scale),Le.projectionMatrix.fromArray(He.projectionMatrix),Le.projectionMatrixInverse.copy(Le.projectionMatrix).invert(),Le.viewport.set(qe.x,qe.y,qe.width,qe.height),X===0&&(H.matrix.copy(Le.matrix),H.matrix.decompose(H.position,H.quaternion,H.scale)),Me===!0&&H.cameras.push(Le)}const Ae=s.enabledFeatures;if(Ae&&Ae.includes("depth-sensing")&&s.depthUsage=="gpu-optimized"&&_){g=i.getBinding();const X=g.getDepthInformation(xe[0]);X&&X.isValid&&X.texture&&w.init(X,s.renderState)}if(Ae&&Ae.includes("camera-access")&&_){e.state.unbindTexture(),g=i.getBinding();for(let X=0;X<xe.length;X++){const He=xe[X].camera;if(He){let qe=S[He];qe||(qe=new _R,S[He]=qe);const Le=g.getCameraImage(He);qe.sourceTexture=Le}}}}for(let xe=0;xe<N.length;xe++){const Me=U[xe],Ae=N[xe];Me!==null&&Ae!==void 0&&Ae.update(Me,Z,d||l)}me&&me(ie,Z),Z.detectedPlanes&&i.dispatchEvent({type:"planesdetected",data:Z}),b=null}const ge=new SR;ge.setAnimationLoop(ve),this.setAnimationLoop=function(ie){me=ie},this.dispose=function(){}}}const Go=new ra,O6=new Wn;function U6(n,e){function t(w,S){w.matrixAutoUpdate===!0&&w.updateMatrix(),S.value.copy(w.matrix
vendor: 11,786 bytes, line 3940
3940)}function i(w,S){S.color.getRGB(w.fogColor.value,vR(n)),S.isFog?(w.fogNear.value=S.near,w.fogFar.value=S.far):S.isFogExp2&&(w.fogDensity.value=S.density)}function s(w,S,T,M,C){S.isMeshBasicMaterial||S.isMeshLambertMaterial?a(w,S):S.isMeshToonMaterial?(a(w,S),g(w,S)):S.isMeshPhongMaterial?(a(w,S),h(w,S)):S.isMeshStandardMaterial?(a(w,S),v(w,S),S.isMeshPhysicalMaterial&&x(w,S,C)):S.isMeshMatcapMaterial?(a(w,S),b(w,S)):S.isMeshDepthMaterial?a(w,S):S.isMeshDistanceMaterial?(a(w,S),_(w,S)):S.isMeshNormalMaterial?a(w,S):S.isLineBasicMaterial?(l(w,S),S.isLineDashedMaterial&&c(w,S)):S.isPointsMaterial?f(w,S,T,M):S.isSpriteMaterial?d(w,S):S.isShadowMaterial?(w.color.value.copy(S.color),w.opacity.value=S.opacity):S.isShaderMaterial&&(S.uniformsNeedUpdate=!1)}function a(w,S){w.opacity.value=S.opacity,S.color&&w.diffuse.value.copy(S.color),S.emissive&&w.emissive.value.copy(S.emissive).multiplyScalar(S.emissiveIntensity),S.map&&(w.map.value=S.map,t(S.map,w.mapTransform)),S.alphaMap&&(w.alphaMap.value=S.alphaMap,t(S.alphaMap,w.alphaMapTransform)),S.bumpMap&&(w.bumpMap.value=S.bumpMap,t(S.bumpMap,w.bumpMapTransform),w.bumpScale.value=S.bumpScale,S.side===Qn&&(w.bumpScale.value*=-1)),S.normalMap&&(w.normalMap.value=S.normalMap,t(S.normalMap,w.normalMapTransform),w.normalScale.value.copy(S.normalScale),S.side===Qn&&w.normalScale.value.negate()),S.displacementMap&&(w.displacementMap.value=S.displacementMap,t(S.displacementMap,w.displacementMapTransform),w.displacementScale.value=S.displacementScale,w.displacementBias.value=S.displacementBias),S.emissiveMap&&(w.emissiveMap.value=S.emissiveMap,t(S.emissiveMap,w.emissiveMapTransform)),S.specularMap&&(w.specularMap.value=S.specularMap,t(S.specularMap,w.specularMapTransform)),S.alphaTest>0&&(w.alphaTest.value=S.alphaTest);const T=e.get(S),M=T.envMap,C=T.envMapRotation;M&&(w.envMap.value=M,Go.copy(C),Go.x*=-1,Go.y*=-1,Go.z*=-1,M.isCubeTexture&&M.isRenderTargetTexture===!1&&(Go.y*=-1,Go.z*=-1),w.envMapRotation.value.setFromMatrix4(O6.makeRotationFromEuler(Go)),w.flipEnvMap.value=M.isCubeTexture&&M.isRenderTargetTexture===!1?-1:1,w.reflectivity.value=S.reflectivity,w.ior.value=S.ior,w.refractionRatio.value=S.refractionRatio),S.lightMap&&(w.lightMap.value=S.lightMap,w.lightMapIntensity.value=S.lightMapIntensity,t(S.lightMap,w.lightMapTransform)),S.aoMap&&(w.aoMap.value=S.aoMap,w.aoMapIntensity.value=S.aoMapIntensity,t(S.aoMap,w.aoMapTransform))}function l(w,S){w.diffuse.value.copy(S.color),w.opacity.value=S.opacity,S.map&&(w.map.value=S.map,t(S.map,w.mapTransform))}function c(w,S){w.dashSize.value=S.dashSize,w.totalSize.value=S.dashSize+S.gapSize,w.scale.value=S.scale}function f(w,S,T,M){w.diffuse.value.copy(S.color),w.opacity.value=S.opacity,w.size.value=S.size*T,w.scale.value=M*.5,S.map&&(w.map.value=S.map,t(S.map,w.uvTransform)),S.alphaMap&&(w.alphaMap.value=S.alphaMap,t(S.alphaMap,w.alphaMapTransform)),S.alphaTest>0&&(w.alphaTest.value=S.alphaTest)}function d(w,S){w.diffuse.value.copy(S.color),w.opacity.value=S.opacity,w.rotation.value=S.rotation,S.map&&(w.map.value=S.map,t(S.map,w.mapTransform)),S.alphaMap&&(w.alphaMap.value=S.alphaMap,t(S.alphaMap,w.alphaMapTransform)),S.alphaTest>0&&(w.alphaTest.value=S.alphaTest)}function h(w,S){w.specular.value.copy(S.specular),w.shininess.value=Math.max(S.shininess,1e-4)}function g(w,S){S.gradientMap&&(w.gradientMap.value=S.gradientMap)}function v(w,S){w.metalness.value=S.metalness,S.metalnessMap&&(w.metalnessMap.value=S.metalnessMap,t(S.metalnessMap,w.metalnessMapTransform)),w.roughness.value=S.roughness,S.roughnessMap&&(w.roughnessMap.value=S.roughnessMap,t(S.roughnessMap,w.roughnessMapTransform)),S.envMap&&(w.envMapIntensity.value=S.envMapIntensity)}function x(w,S,T){w.ior.value=S.ior,S.sheen>0&&(w.sheenColor.value.copy(S.sheenColor).multiplyScalar(S.sheen),w.sheenRoughness.value=S.sheenRoughness,S.sheenColorMap&&(w.sheenColorMap.value=S.sheenColorMap,t(S.sheenColorMap,w.sheenColorMapTransform)),S.sheenRoughnessMap&&(w.sheenRoughnessMap.value=S.sheenRoughnessMap,t(S.sheenRoughnessMap,w.sheenRoughnessMapTransform))),S.clearcoat>0&&(w.clearcoat.value=S.clearcoat,w.clearcoatRoughness.value=S.clearcoatRoughness,S.clearcoatMap&&(w.clearcoatMap.value=S.clearcoatMap,t(S.clearcoatMap,w.clearcoatMapTransform)),S.clearcoatRoughnessMap&&(w.clearcoatRoughnessMap.value=S.clearcoatRoughnessMap,t(S.clearcoatRoughnessMap,w.clearcoatRoughnessMapTransform)),S.clearcoatNormalMap&&(w.clearcoatNormalMap.value=S.clearcoatNormalMap,t(S.clearcoatNormalMap,w.clearcoatNormalMapTransform),w.clearcoatNormalScale.value.copy(S.clearcoatNormalScale),S.side===Qn&&w.clearcoatNormalScale.value.negate())),S.dispersion>0&&(w.dispersion.value=S.dispersion),S.iridescence>0&&(w.iridescence.value=S.iridescence,w.iridescenceIOR.value=S.iridescenceIOR,w.iridescenceThicknessMinimum.value=S.iridescenceThicknessRange[0],w.iridescenceThicknessMaximum.value=S.iridescenceThicknessRange[1],S.iridescenceMap&&(w.iridescenceMap.value=S.iridescenceMap,t(S.iridescenceMap,w.iridescenceMapTransform)),S.iridescenceThicknessMap&&(w.iridescenceThicknessMap.value=S.iridescenceThicknessMap,t(S.iridescenceThicknessMap,w.iridescenceThicknessMapTransform))),S.transmission>0&&(w.transmission.value=S.transmission,w.transmissionSamplerMap.value=T.texture,w.transmissionSamplerSize.value.set(T.width,T.height),S.transmissionMap&&(w.transmissionMap.value=S.transmissionMap,t(S.transmissionMap,w.transmissionMapTransform)),w.thickness.value=S.thickness,S.thicknessMap&&(w.thicknessMap.value=S.thicknessMap,t(S.thicknessMap,w.thicknessMapTransform)),w.attenuationDistance.value=S.attenuationDistance,w.attenuationColor.value.copy(S.attenuationColor)),S.anisotropy>0&&(w.anisotropyVector.value.set(S.anisotropy*Math.cos(S.anisotropyRotation),S.anisotropy*Math.sin(S.anisotropyRotation)),S.anisotropyMap&&(w.anisotropyMap.value=S.anisotropyMap,t(S.anisotropyMap,w.anisotropyMapTransform))),w.specularIntensity.value=S.specularIntensity,w.specularColor.value.copy(S.specularColor),S.specularColorMap&&(w.specularColorMap.value=S.specularColorMap,t(S.specularColorMap,w.specularColorMapTransform)),S.specularIntensityMap&&(w.specularIntensityMap.value=S.specularIntensityMap,t(S.specularIntensityMap,w.specularIntensityMapTransform))}function b(w,S){S.matcap&&(w.matcap.value=S.matcap)}function _(w,S){const T=e.get(S).light;w.referencePosition.value.setFromMatrixPosition(T.matrixWorld),w.nearDistance.value=T.shadow.camera.near,w.farDistance.value=T.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:s}}function I6(n,e,t,i){let s={},a={},l=[];const c=n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS);function f(T,M){const C=M.program;i.uniformBlockBinding(T,C)}function d(T,M){let C=s[T.id];C===void 0&&(b(T),C=h(T),s[T.id]=C,T.addEventListener("dispose",w));const N=M.program;i.updateUBOMapping(T,N);const U=e.render.frame;a[T.id]!==U&&(v(T),a[T.id]=U)}function h(T){const M=g();T.__bindingPointIndex=M;const C=n.createBuffer(),N=T.__size,U=T.usage;return n.bindBuffer(n.UNIFORM_BUFFER,C),n.bufferData(n.UNIFORM_BUFFER,N,U),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,M,C),C}function g(){for(let T=0;T<c;T++)if(l.indexOf(T)===-1)return l.push(T),T;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function v(T){const M=s[T.id],C=T.uniforms,N=T.__cache;n.bindBuffer(n.UNIFORM_BUFFER,M);for(let U=0,P=C.length;U<P;U++){const O=Array.isArray(C[U])?C[U]:[C[U]];for(let R=0,L=O.length;R<L;R++){const z=O[R];if(x(z,U,R,N)===!0){const H=z.__offset,Y=Array.isArray(z.value)?z.value:[z.value];let K=0;for(let q=0;q<Y.length;q++){const B=Y[q],W=_(B);typeof B=="number"||typeof B=="boolean"?(z.__data[0]=B,n.bufferSubData(n.UNIFORM_BUFFER,H+K,z.__data)):B.isMatrix3?(z.__data[0]=B.elements[0],z.__data[1]=B.elements[1],z.__data[2]=B.elements[2],z.__data[3]=0,z.__data[4]=B.elements[3],z.__data[5]=B.elements[4],z.__data[6]=B.elements[5],z.__data[7]=0,z.__data[8]=B.elements[6],z.__data[9]=B.elements[7],z.__data[10]=B.elements[8],z.__data[11]=0):(B.toArray(z.__data,K),K+=W.storage/Float32Array.BYTES_PER_ELEMENT)}n.bufferSubData(n.UNIFORM_BUFFER,H,z.__data)}}}n.bindBuffer(n.UNIFORM_BUFFER,null)}function x(T,M,C,N){const U=T.value,P=M+"_"+C;if(N[P]===void 0)return typeof U=="number"||typeof U=="boolean"?N[P]=U:N[P]=U.clone(),!0;{const O=N[P];if(typeof U=="number"||typeof U=="boolean"){if(O!==U)return N[P]=U,!0}else if(O.equals(U)===!1)return O.copy(U),!0}return!1}function b(T){const M=T.uniforms;let C=0;const N=16;for(let P=0,O=M.length;P<O;P++){const R=Array.isArray(M[P])?M[P]:[M[P]];for(let L=0,z=R.length;L<z;L++){const H=R[L],Y=Array.isArray(H.value)?H.value:[H.value];for(let K=0,q=Y.length;K<q;K++){const B=Y[K],W=_(B),j=C%N,ae=j%W.boundary,fe=j+ae;C+=ae,fe!==0&&N-fe<W.storage&&(C+=N-fe),H.__data=new Float32Array(W.storage/Float32Array.BYTES_PER_ELEMENT),H.__offset=C,C+=W.storage}}}const U=C%N;return U>0&&(C+=N-U),T.__size=C,T.__cache={},this}function _(T){const M={boundary:0,storage:0};return typeof T=="number"||typeof T=="boolean"?(M.boundary=4,M.storage=4):T.isVector2?(M.boundary=8,M.storage=8):T.isVector3||T.isColor?(M.boundary=16,M.storage=12):T.isVector4?(M.boundary=16,M.storage=16):T.isMatrix3?(M.boundary=48,M.storage=48):T.isMatrix4?(M.boundary=64,M.storage=64):T.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",T),M}function w(T){const M=T.target;M.removeEventListener("dispose",w);const C=l.indexOf(M.__bindingPointIndex);l.splice(C,1),n.deleteBuffer(s[M.id]),delete s[M.id],delete a[M.id]}function S(){for(const T in s)n.deleteBuffer(s[T]);l=[],s={},a={}}return{bind:f,update:d,dispose:S}}class B6{constructor(e={}){const{canvas:t=bI(),context:i=null,depth:s=!0,stencil:a=!1,alpha:l=!1,antialias:c=!1,premultipliedAlpha:f=!0,preserveDrawingBuffer:d=!1,powerPreference:h="default",failIfMajorPerformanceCaveat:g=!1,reversedDepthBuffer:v=!1}=e;this.isWebGLRenderer=!0;let x;if(i!==null){if(typeof WebGLRenderingContext<"u"&&i instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");x=i.getContextAttributes().alpha}else x=l;const b=new Uint32Array(4),_=new Int32Array(4);let w=null,S=null;const T=[],M=[];this.domElement=t,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.toneMapping=Za,this.toneMappingExposure=1,this.transmissionResolutionScale=1;const C=this;let N=!1;this._outputColorSpace=Rn;let U=0,P=0,O=null,R=-1,L=null;const z=new Nn,H=new Nn;let Y=null;const K=new qt(0);let q=0,B=t.width,W=t.height,j=1,ae=null,fe=null;const G=new Nn(0,0,B,W),ee=new Nn(0,0,B,W);let me=!1;const ve=new yR;let ge=!1,ie=!1;const Z=new Wn,xe=new pe,Me=new Nn,Ae={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let Be=!1;function Xe(){return O===null?j:1}let X=i;function He(k,te){return t.getContext(k,te)}try{const k={alpha:!0,depth:s,stencil:a,antialias:c,premultipliedAlpha:f,preserveDrawingBuffer:d,powerPreference:h,failIfMajorPerformanceCaveat:g};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${Ym}`),t.addEventListener("webglcontextlost",Ie,!1),t.addEventListener("webglcontextrestored",We,!1),t.addEventListener("webglcontextcreationerror",Re,!1),X===null){const te="webgl2";if(X=He(te,k),X===null)throw He(te)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(k){throw console.error("THREE.WebGLRenderer: "+k.message),k}let qe,Le,Pe,_t,Fe,lt,tn,ln,V,I,re,be,Ce,ye,it,Oe,tt,nt,Ne,Ue,st,Ge,ze,pt;
vendor: 9,394 bytes, line 3940
3940function J(){qe=new qz(X),qe.init(),Ge=new R6(X,qe),Le=new jz(X,qe,e,Ge),Pe=new A6(X,qe),Le.reversedDepthBuffer&&v&&Pe.buffers.depth.setReversed(!0),_t=new Kz(X),Fe=new p6,lt=new C6(X,qe,Pe,Fe,Le,Ge,_t),tn=new Vz(C),ln=new Xz(C),V=new nB(X),ze=new Fz(X,V),I=new Yz(X,V,_t,ze),re=new Qz(X,I,V,_t),Ne=new Zz(X,Le,lt),Oe=new kz(Fe),be=new h6(C,tn,ln,qe,Le,ze,Oe),Ce=new U6(C,Fe),ye=new g6,it=new S6(qe),nt=new Bz(C,tn,ln,Pe,re,x,f),tt=new M6(C,re,Le),pt=new I6(X,_t,Le,Pe),Ue=new zz(X,qe,_t),st=new $z(X,qe,_t),_t.programs=be.programs,C.capabilities=Le,C.extensions=qe,C.properties=Fe,C.renderLists=ye,C.shadowMap=tt,C.state=Pe,C.info=_t}J();const De=new L6(C,X);this.xr=De,this.getContext=function(){return X},this.getContextAttributes=function(){return X.getContextAttributes()},this.forceContextLoss=function(){const k=qe.get("WEBGL_lose_context");k&&k.loseContext()},this.forceContextRestore=function(){const k=qe.get("WEBGL_lose_context");k&&k.restoreContext()},this.getPixelRatio=function(){return j},this.setPixelRatio=function(k){k!==void 0&&(j=k,this.setSize(B,W,!1))},this.getSize=function(k){return k.set(B,W)},this.setSize=function(k,te,ue=!0){if(De.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}B=k,W=te,t.width=Math.floor(k*j),t.height=Math.floor(te*j),ue===!0&&(t.style.width=k+"px",t.style.height=te+"px"),this.setViewport(0,0,k,te)},this.getDrawingBufferSize=function(k){return k.set(B*j,W*j).floor()},this.setDrawingBufferSize=function(k,te,ue){B=k,W=te,j=ue,t.width=Math.floor(k*ue),t.height=Math.floor(te*ue),this.setViewport(0,0,k,te)},this.getCurrentViewport=function(k){return k.copy(z)},this.getViewport=function(k){return k.copy(G)},this.setViewport=function(k,te,ue,de){k.isVector4?G.set(k.x,k.y,k.z,k.w):G.set(k,te,ue,de),Pe.viewport(z.copy(G).multiplyScalar(j).round())},this.getScissor=function(k){return k.copy(ee)},this.setScissor=function(k,te,ue,de){k.isVector4?ee.set(k.x,k.y,k.z,k.w):ee.set(k,te,ue,de),Pe.scissor(H.copy(ee).multiplyScalar(j).round())},this.getScissorTest=function(){return me},this.setScissorTest=function(k){Pe.setScissorTest(me=k)},this.setOpaqueSort=function(k){ae=k},this.setTransparentSort=function(k){fe=k},this.getClearColor=function(k){return k.copy(nt.getClearColor())},this.setClearColor=function(){nt.setClearColor(...arguments)},this.getClearAlpha=function(){return nt.getClearAlpha()},this.setClearAlpha=function(){nt.setClearAlpha(...arguments)},this.clear=function(k=!0,te=!0,ue=!0){let de=0;if(k){let se=!1;if(O!==null){const Te=O.texture.format;se=Te===vb||Te===gb||Te===mb}if(se){const Te=O.texture.type,je=Te===as||Te===so||Te===fd||Te===Zc||Te===hb||Te===pb,Ke=nt.getClearColor(),Ve=nt.getClearAlpha(),rt=Ke.r,ut=Ke.g,at=Ke.b;je?(b[0]=rt,b[1]=ut,b[2]=at,b[3]=Ve,X.clearBufferuiv(X.COLOR,0,b)):(_[0]=rt,_[1]=ut,_[2]=at,_[3]=Ve,X.clearBufferiv(X.COLOR,0,_))}else de|=X.COLOR_BUFFER_BIT}te&&(de|=X.DEPTH_BUFFER_BIT),ue&&(de|=X.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),X.clear(de)},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(){t.removeEventListener("webglcontextlost",Ie,!1),t.removeEventListener("webglcontextrestored",We,!1),t.removeEventListener("webglcontextcreationerror",Re,!1),nt.dispose(),ye.dispose(),it.dispose(),Fe.dispose(),tn.dispose(),ln.dispose(),re.dispose(),ze.dispose(),pt.dispose(),be.dispose(),De.dispose(),De.removeEventListener("sessionstart",us),De.removeEventListener("sessionend",Du),er.stop()};function Ie(k){k.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),N=!0}function We(){console.log("THREE.WebGLRenderer: Context Restored."),N=!1;const k=_t.autoReset,te=tt.enabled,ue=tt.autoUpdate,de=tt.needsUpdate,se=tt.type;J(),_t.autoReset=k,tt.enabled=te,tt.autoUpdate=ue,tt.needsUpdate=de,tt.type=se}function Re(k){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",k.statusMessage)}function Ee(k){const te=k.target;te.removeEventListener("dispose",Ee),Ye(te)}function Ye(k){dt(k),Fe.remove(k)}function dt(k){const te=Fe.get(k).programs;te!==void 0&&(te.forEach(function(ue){be.releaseProgram(ue)}),k.isShaderMaterial&&be.releaseShaderCache(k))}this.renderBufferDirect=function(k,te,ue,de,se,Te){te===null&&(te=Ae);const je=se.isMesh&&se.matrixWorld.determinant()<0,Ke=da(k,te,ue,de,se);Pe.setMaterial(de,je);let Ve=ue.index,rt=1;if(de.wireframe===!0){if(Ve=I.getWireframeAttribute(ue),Ve===void 0)return;rt=2}const ut=ue.drawRange,at=ue.attributes.position;let bt=ut.start*rt,Gt=(ut.start+ut.count)*rt;Te!==null&&(bt=Math.max(bt,Te.start*rt),Gt=Math.min(Gt,(Te.start+Te.count)*rt)),Ve!==null?(bt=Math.max(bt,0),Gt=Math.min(Gt,Ve.count)):at!=null&&(bt=Math.max(bt,0),Gt=Math.min(Gt,at.count));const nn=Gt-bt;if(nn<0||nn===1/0)return;ze.setup(se,de,Ke,ue,Ve);let Wt,Et=Ue;if(Ve!==null&&(Wt=V.get(Ve),Et=st,Et.setIndex(Wt)),se.isMesh)de.wireframe===!0?(Pe.setLineWidth(de.wireframeLinewidth*Xe()),Et.setMode(X.LINES)):Et.setMode(X.TRIANGLES);else if(se.isLine){let Ze=de.linewidth;Ze===void 0&&(Ze=1),Pe.setLineWidth(Ze*Xe()),se.isLineSegments?Et.setMode(X.LINES):se.isLineLoop?Et.setMode(X.LINE_LOOP):Et.setMode(X.LINE_STRIP)}else se.isPoints?Et.setMode(X.POINTS):se.isSprite&&Et.setMode(X.TRIANGLES);if(se.isBatchedMesh)if(se._multiDrawInstances!==null)hd("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."),Et.renderMultiDrawInstances(se._multiDrawStarts,se._multiDrawCounts,se._multiDrawCount,se._multiDrawInstances);else if(qe.get("WEBGL_multi_draw"))Et.renderMultiDraw(se._multiDrawStarts,se._multiDrawCounts,se._multiDrawCount);else{const Ze=se._multiDrawStarts,cn=se._multiDrawCounts,Ut=se._multiDrawCount,ni=Ve?V.get(Ve).bytesPerElement:1,Ar=Fe.get(de).currentProgram.getUniforms();for(let Yn=0;Yn<Ut;Yn++)Ar.setValue(X,"_gl_DrawID",Yn),Et.render(Ze[Yn]/ni,cn[Yn])}else if(se.isInstancedMesh)Et.renderInstances(bt,nn,se.count);else if(ue.isInstancedBufferGeometry){const Ze=ue._maxInstanceCount!==void 0?ue._maxInstanceCount:1/0,cn=Math.min(ue.instanceCount,Ze);Et.renderInstances(bt,nn,cn)}else Et.render(bt,nn)};function Yt(k,te,ue){k.transparent===!0&&k.side===es&&k.forceSinglePass===!1?(k.side=Qn,k.needsUpdate=!0,ki(k,te,ue),k.side=sa,k.needsUpdate=!0,ki(k,te,ue),k.side=es):ki(k,te,ue)}this.compile=function(k,te,ue=null){ue===null&&(ue=k),S=it.get(ue),S.init(te),M.push(S),ue.traverseVisible(function(se){se.isLight&&se.layers.test(te.layers)&&(S.pushLight(se),se.castShadow&&S.pushShadow(se))}),k!==ue&&k.traverseVisible(function(se){se.isLight&&se.layers.test(te.layers)&&(S.pushLight(se),se.castShadow&&S.pushShadow(se))}),S.setupLights();const de=new Set;return k.traverse(function(se){if(!(se.isMesh||se.isPoints||se.isLine||se.isSprite))return;const Te=se.material;if(Te)if(Array.isArray(Te))for(let je=0;je<Te.length;je++){const Ke=Te[je];Yt(Ke,ue,se),de.add(Ke)}else Yt(Te,ue,se),de.add(Te)}),S=M.pop(),de},this.compileAsync=function(k,te,ue=null){const de=this.compile(k,te,ue);return new Promise(se=>{function Te(){if(de.forEach(function(je){Fe.get(je).currentProgram.isReady()&&de.delete(je)}),de.size===0){se(k);return}setTimeout(Te,10)}qe.get("KHR_parallel_shader_compile")!==null?Te():setTimeout(Te,10)})};let Ot=null;function vi(k){Ot&&Ot(k)}function us(){er.stop()}function Du(){er.start()}const er=new SR;er.setAnimationLoop(vi),typeof self<"u"&&er.setContext(self),this.setAnimationLoop=function(k){Ot=k,De.setAnimationLoop(k),k===null?er.stop():er.start()},De.addEventListener("sessionstart",us),De.addEventListener("sessionend",Du),this.render=function(k,te){if(te!==void 0&&te.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(N===!0)return;if(k.matrixWorldAutoUpdate===!0&&k.updateMatrixWorld(),te.parent===null&&te.matrixWorldAutoUpdate===!0&&te.updateMatrixWorld(),De.enabled===!0&&De.isPresenting===!0&&(De.cameraAutoUpdate===!0&&De.updateCamera(te),te=De.getCamera()),k.isScene===!0&&k.onBeforeRender(C,k,te,O),S=it.get(k,M.length),S.init(te),M.push(S),Z.multiplyMatrices(te.projectionMatrix,te.matrixWorldInverse),ve.setFromProjectionMatrix(Z,dr,te.reversedDepth),ie=this.localClippingEnabled,ge=Oe.init(this.clippingPlanes,ie),w=ye.get(k,T.length),w.init(),T.push(w),De.enabled===!0&&De.isPresenting===!0){const Te=C.xr.getDepthSensingMesh();Te!==null&&Ml(Te,te,-1/0,C.sortObjects)}Ml(k,te,0,C.sortObjects),w.finish(),C.sortObjects===!0&&w.sort(ae,fe),Be=De.enabled===!1||De.isPresenting===!1||De.hasDepthSensing()===!1,Be&&nt.addToRenderList(w,k),this.info.render.frame++,ge===!0&&Oe.beginShadows();const ue=S.state.shadowsArray;tt.render(ue,k,te),ge===!0&&Oe.endShadows(),this.info.autoReset===!0&&this.info.reset();const de=w.opaque,se=w.transmissive;if(S.setupLights(),te.isArrayCamera){const Te=te.cameras;if(se.length>0)for(let je=0,Ke=Te.length;je<Ke;je++){const Ve=Te[je];Al(de,se,k,Ve)}Be&&nt.render(k);for(let je=0,Ke=Te.length;je<Ke;je++){const Ve=Te[je];Tl(w,k,Ve,Ve.viewport)}}else se.length>0&&Al(de,se,k,te),Be&&nt.render(k),Tl(w,k,te);O!==null&&P===0&&(lt.updateMultisampleRenderTarget(O),lt.updateRenderTargetMipmap(O)),k.isScene===!0&&k.onAfterRender(C,k,te),ze.resetDefaultState(),R=-1,L=null,M.pop(),M.length>
vendor: 5,944 bytes, line 3940
39400?(S=M[M.length-1],ge===!0&&Oe.setGlobalState(C.clippingPlanes,S.state.camera)):S=null,T.pop(),T.length>0?w=T[T.length-1]:w=null};function Ml(k,te,ue,de){if(k.visible===!1)return;if(k.layers.test(te.layers)){if(k.isGroup)ue=k.renderOrder;else if(k.isLOD)k.autoUpdate===!0&&k.update(te);else if(k.isLight)S.pushLight(k),k.castShadow&&S.pushShadow(k);else if(k.isSprite){if(!k.frustumCulled||ve.intersectsSprite(k)){de&&Me.setFromMatrixPosition(k.matrixWorld).applyMatrix4(Z);const je=re.update(k),Ke=k.material;Ke.visible&&w.push(k,je,Ke,ue,Me.z,null)}}else if((k.isMesh||k.isLine||k.isPoints)&&(!k.frustumCulled||ve.intersectsObject(k))){const je=re.update(k),Ke=k.material;if(de&&(k.boundingSphere!==void 0?(k.boundingSphere===null&&k.computeBoundingSphere(),Me.copy(k.boundingSphere.center)):(je.boundingSphere===null&&je.computeBoundingSphere(),Me.copy(je.boundingSphere.center)),Me.applyMatrix4(k.matrixWorld).applyMatrix4(Z)),Array.isArray(Ke)){const Ve=je.groups;for(let rt=0,ut=Ve.length;rt<ut;rt++){const at=Ve[rt],bt=Ke[at.materialIndex];bt&&bt.visible&&w.push(k,je,bt,ue,Me.z,at)}}else Ke.visible&&w.push(k,je,Ke,ue,Me.z,null)}}const Te=k.children;for(let je=0,Ke=Te.length;je<Ke;je++)Ml(Te[je],te,ue,de)}function Tl(k,te,ue,de){const se=k.opaque,Te=k.transmissive,je=k.transparent;S.setupLightsView(ue),ge===!0&&Oe.setGlobalState(C.clippingPlanes,ue),de&&Pe.viewport(z.copy(de)),se.length>0&&_o(se,te,ue),Te.length>0&&_o(Te,te,ue),je.length>0&&_o(je,te,ue),Pe.buffers.depth.setTest(!0),Pe.buffers.depth.setMask(!0),Pe.buffers.color.setMask(!0),Pe.setPolygonOffset(!1)}function Al(k,te,ue,de){if((ue.isScene===!0?ue.overrideMaterial:null)!==null)return;S.state.transmissionRenderTarget[de.id]===void 0&&(S.state.transmissionRenderTarget[de.id]=new qs(1,1,{generateMipmaps:!0,type:qe.has("EXT_color_buffer_half_float")||qe.has("EXT_color_buffer_float")?Nd:as,minFilter:nl,samples:4,stencilBuffer:a,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:zt.workingColorSpace}));const Te=S.state.transmissionRenderTarget[de.id],je=de.viewport||z;Te.setSize(je.z*C.transmissionResolutionScale,je.w*C.transmissionResolutionScale);const Ke=C.getRenderTarget(),Ve=C.getActiveCubeFace(),rt=C.getActiveMipmapLevel();C.setRenderTarget(Te),C.getClearColor(K),q=C.getClearAlpha(),q<1&&C.setClearColor(16777215,.5),C.clear(),Be&&nt.render(ue);const ut=C.toneMapping;C.toneMapping=Za;const at=de.viewport;if(de.viewport!==void 0&&(de.viewport=void 0),S.setupLightsView(de),ge===!0&&Oe.setGlobalState(C.clippingPlanes,de),_o(k,ue,de),lt.updateMultisampleRenderTarget(Te),lt.updateRenderTargetMipmap(Te),qe.has("WEBGL_multisampled_render_to_texture")===!1){let bt=!1;for(let Gt=0,nn=te.length;Gt<nn;Gt++){const Wt=te[Gt],Et=Wt.object,Ze=Wt.geometry,cn=Wt.material,Ut=Wt.group;if(cn.side===es&&Et.layers.test(de.layers)){const ni=cn.side;cn.side=Qn,cn.needsUpdate=!0,Pu(Et,ue,de,Ze,cn,Ut),cn.side=ni,cn.needsUpdate=!0,bt=!0}}bt===!0&&(lt.updateMultisampleRenderTarget(Te),lt.updateRenderTargetMipmap(Te))}C.setRenderTarget(Ke,Ve,rt),C.setClearColor(K,q),at!==void 0&&(de.viewport=at),C.toneMapping=ut}function _o(k,te,ue){const de=te.isScene===!0?te.overrideMaterial:null;for(let se=0,Te=k.length;se<Te;se++){const je=k[se],Ke=je.object,Ve=je.geometry,rt=je.group;let ut=je.material;ut.allowOverride===!0&&de!==null&&(ut=de),Ke.layers.test(ue.layers)&&Pu(Ke,te,ue,Ve,ut,rt)}}function Pu(k,te,ue,de,se,Te){k.onBeforeRender(C,te,ue,de,se,Te),k.modelViewMatrix.multiplyMatrices(ue.matrixWorldInverse,k.matrixWorld),k.normalMatrix.getNormalMatrix(k.modelViewMatrix),se.onBeforeRender(C,te,ue,de,k,Te),se.transparent===!0&&se.side===es&&se.forceSinglePass===!1?(se.side=Qn,se.needsUpdate=!0,C.renderBufferDirect(ue,te,de,se,k,Te),se.side=sa,se.needsUpdate=!0,C.renderBufferDirect(ue,te,de,se,k,Te),se.side=es):C.renderBufferDirect(ue,te,de,se,k,Te),k.onAfterRender(C,te,ue,de,se,Te)}function ki(k,te,ue){te.isScene!==!0&&(te=Ae);const de=Fe.get(k),se=S.state.lights,Te=S.state.shadowsArray,je=se.state.version,Ke=be.getParameters(k,se.state,Te,te,ue),Ve=be.getProgramCacheKey(Ke);let rt=de.programs;de.environment=k.isMeshStandardMaterial?te.environment:null,de.fog=te.fog,de.envMap=(k.isMeshStandardMaterial?ln:tn).get(k.envMap||de.environment),de.envMapRotation=de.environment!==null&&k.envMap===null?te.environmentRotation:k.envMapRotation,rt===void 0&&(k.addEventListener("dispose",Ee),rt=new Map,de.programs=rt);let ut=rt.get(Ve);if(ut!==void 0){if(de.currentProgram===ut&&de.lightsStateVersion===je)return ti(k,Ke),ut}else Ke.uniforms=be.getUniforms(k),k.onBeforeCompile(Ke,C),ut=be.acquireProgram(Ke,Ve),rt.set(Ve,ut),de.uniforms=Ke.uniforms;const at=de.uniforms;return(!k.isShaderMaterial&&!k.isRawShaderMaterial||k.clipping===!0)&&(at.clippingPlanes=Oe.uniform),ti(k,Ke),de.needsLights=bg(k),de.lightsStateVersion=je,de.needsLights&&(at.ambientLightColor.value=se.state.ambient,at.lightProbe.value=se.state.probe,at.directionalLights.value=se.state.directional,at.directionalLightShadows.value=se.state.directionalShadow,at.spotLights.value=se.state.spot,at.spotLightShadows.value=se.state.spotShadow,at.rectAreaLights.value=se.state.rectArea,at.ltc_1.value=se.state.rectAreaLTC1,at.ltc_2.value=se.state.rectAreaLTC2,at.pointLights.value=se.state.point,at.pointLightShadows.value=se.state.pointShadow,at.hemisphereLights.value=se.state.hemi,at.directionalShadowMap.value=se.state.directionalShadowMap,at.directionalShadowMatrix.value=se.state.directionalShadowMatrix,at.spotShadowMap.value=se.state.spotShadowMap,at.spotLightMatrix.value=se.state.spotLightMatrix,at.spotLightMap.value=se.state.spotLightMap,at.pointShadowMap.value=se.state.pointShadowMap,at.pointShadowMatrix.value=se.state.pointShadowMatrix),de.currentProgram=ut,de.uniformsList=null,ut}function Dn(k){if(k.uniformsList===null){const te=k.currentProgram.getUniforms();k.uniformsList=qp.seqWithValue(te.seq,k.uniforms)}return k.uniformsList}function ti(k,te){const ue=Fe.get(k);
vendor: 12,118 bytes, line 3940
3940ue.outputColorSpace=te.outputColorSpace,ue.batching=te.batching,ue.batchingColor=te.batchingColor,ue.instancing=te.instancing,ue.instancingColor=te.instancingColor,ue.instancingMorph=te.instancingMorph,ue.skinning=te.skinning,ue.morphTargets=te.morphTargets,ue.morphNormals=te.morphNormals,ue.morphColors=te.morphColors,ue.morphTargetsCount=te.morphTargetsCount,ue.numClippingPlanes=te.numClippingPlanes,ue.numIntersection=te.numClipIntersection,ue.vertexAlphas=te.vertexAlphas,ue.vertexTangents=te.vertexTangents,ue.toneMapping=te.toneMapping}function da(k,te,ue,de,se){te.isScene!==!0&&(te=Ae),lt.resetTextureUnits();const Te=te.fog,je=de.isMeshStandardMaterial?te.environment:null,Ke=O===null?C.outputColorSpace:O.isXRRenderTarget===!0?O.texture.colorSpace:ro,Ve=(de.isMeshStandardMaterial?ln:tn).get(de.envMap||je),rt=de.vertexColors===!0&&!!ue.attributes.color&&ue.attributes.color.itemSize===4,ut=!!ue.attributes.tangent&&(!!de.normalMap||de.anisotropy>0),at=!!ue.morphAttributes.position,bt=!!ue.morphAttributes.normal,Gt=!!ue.morphAttributes.color;let nn=Za;de.toneMapped&&(O===null||O.isXRRenderTarget===!0)&&(nn=C.toneMapping);const Wt=ue.morphAttributes.position||ue.morphAttributes.normal||ue.morphAttributes.color,Et=Wt!==void 0?Wt.length:0,Ze=Fe.get(de),cn=S.state.lights;if(ge===!0&&(ie===!0||k!==L)){const jn=k===L&&de.id===R;Oe.setState(de,k,jn)}let Ut=!1;de.version===Ze.__version?(Ze.needsLights&&Ze.lightsStateVersion!==cn.state.version||Ze.outputColorSpace!==Ke||se.isBatchedMesh&&Ze.batching===!1||!se.isBatchedMesh&&Ze.batching===!0||se.isBatchedMesh&&Ze.batchingColor===!0&&se.colorTexture===null||se.isBatchedMesh&&Ze.batchingColor===!1&&se.colorTexture!==null||se.isInstancedMesh&&Ze.instancing===!1||!se.isInstancedMesh&&Ze.instancing===!0||se.isSkinnedMesh&&Ze.skinning===!1||!se.isSkinnedMesh&&Ze.skinning===!0||se.isInstancedMesh&&Ze.instancingColor===!0&&se.instanceColor===null||se.isInstancedMesh&&Ze.instancingColor===!1&&se.instanceColor!==null||se.isInstancedMesh&&Ze.instancingMorph===!0&&se.morphTexture===null||se.isInstancedMesh&&Ze.instancingMorph===!1&&se.morphTexture!==null||Ze.envMap!==Ve||de.fog===!0&&Ze.fog!==Te||Ze.numClippingPlanes!==void 0&&(Ze.numClippingPlanes!==Oe.numPlanes||Ze.numIntersection!==Oe.numIntersection)||Ze.vertexAlphas!==rt||Ze.vertexTangents!==ut||Ze.morphTargets!==at||Ze.morphNormals!==bt||Ze.morphColors!==Gt||Ze.toneMapping!==nn||Ze.morphTargetsCount!==Et)&&(Ut=!0):(Ut=!0,Ze.__version=de.version);let ni=Ze.currentProgram;Ut===!0&&(ni=ki(de,te,se));let Ar=!1,Yn=!1,So=!1;const At=ni.getUniforms(),ui=Ze.uniforms;if(Pe.useProgram(ni.program)&&(Ar=!0,Yn=!0,So=!0),de.id!==R&&(R=de.id,Yn=!0),Ar||L!==k){Pe.buffers.depth.getReversed()&&k.reversedDepth!==!0&&(k._reversedDepth=!0,k.updateProjectionMatrix()),At.setValue(X,"projectionMatrix",k.projectionMatrix),At.setValue(X,"viewMatrix",k.matrixWorldInverse);const En=At.map.cameraPosition;En!==void 0&&En.setValue(X,xe.setFromMatrixPosition(k.matrixWorld)),Le.logarithmicDepthBuffer&&At.setValue(X,"logDepthBufFC",2/(Math.log(k.far+1)/Math.LN2)),(de.isMeshPhongMaterial||de.isMeshToonMaterial||de.isMeshLambertMaterial||de.isMeshBasicMaterial||de.isMeshStandardMaterial||de.isShaderMaterial)&&At.setValue(X,"isOrthographic",k.isOrthographicCamera===!0),L!==k&&(L=k,Yn=!0,So=!0)}if(se.isSkinnedMesh){At.setOptional(X,se,"bindMatrix"),At.setOptional(X,se,"bindMatrixInverse");const jn=se.skeleton;jn&&(jn.boneTexture===null&&jn.computeBoneTexture(),At.setValue(X,"boneTexture",jn.boneTexture,lt))}se.isBatchedMesh&&(At.setOptional(X,se,"batchingTexture"),At.setValue(X,"batchingTexture",se._matricesTexture,lt),At.setOptional(X,se,"batchingIdTexture"),At.setValue(X,"batchingIdTexture",se._indirectTexture,lt),At.setOptional(X,se,"batchingColorTexture"),se._colorsTexture!==null&&At.setValue(X,"batchingColorTexture",se._colorsTexture,lt));const xi=ue.morphAttributes;if((xi.position!==void 0||xi.normal!==void 0||xi.color!==void 0)&&Ne.update(se,ue,ni),(Yn||Ze.receiveShadow!==se.receiveShadow)&&(Ze.receiveShadow=se.receiveShadow,At.setValue(X,"receiveShadow",se.receiveShadow)),de.isMeshGouraudMaterial&&de.envMap!==null&&(ui.envMap.value=Ve,ui.flipEnvMap.value=Ve.isCubeTexture&&Ve.isRenderTargetTexture===!1?-1:1),de.isMeshStandardMaterial&&de.envMap===null&&te.environment!==null&&(ui.envMapIntensity.value=te.environmentIntensity),Yn&&(At.setValue(X,"toneMappingExposure",C.toneMappingExposure),Ze.needsLights&&Lu(ui,So),Te&&de.fog===!0&&Ce.refreshFogUniforms(ui,Te),Ce.refreshMaterialUniforms(ui,de,j,W,S.state.transmissionRenderTarget[k.id]),qp.upload(X,Dn(Ze),ui,lt)),de.isShaderMaterial&&de.uniformsNeedUpdate===!0&&(qp.upload(X,Dn(Ze),ui,lt),de.uniformsNeedUpdate=!1),de.isSpriteMaterial&&At.setValue(X,"center",se.center),At.setValue(X,"modelViewMatrix",se.modelViewMatrix),At.setValue(X,"normalMatrix",se.normalMatrix),At.setValue(X,"modelMatrix",se.matrixWorld),de.isShaderMaterial||de.isRawShaderMaterial){const jn=de.uniformsGroups;for(let En=0,Cl=jn.length;En<Cl;En++){const tr=jn[En];pt.update(tr,ni),pt.bind(tr,ni)}}return ni}function Lu(k,te){k.ambientLightColor.needsUpdate=te,k.lightProbe.needsUpdate=te,k.directionalLights.needsUpdate=te,k.directionalLightShadows.needsUpdate=te,k.pointLights.needsUpdate=te,k.pointLightShadows.needsUpdate=te,k.spotLights.needsUpdate=te,k.spotLightShadows.needsUpdate=te,k.rectAreaLights.needsUpdate=te,k.hemisphereLights.needsUpdate=te}function bg(k){return k.isMeshLambertMaterial||k.isMeshToonMaterial||k.isMeshPhongMaterial||k.isMeshStandardMaterial||k.isShadowMaterial||k.isShaderMaterial&&k.lights===!0}this.getActiveCubeFace=function(){return U},this.getActiveMipmapLevel=function(){return P},this.getRenderTarget=function(){return O},this.setRenderTargetTextures=function(k,te,ue){const de=Fe.get(k);de.__autoAllocateDepthBuffer=k.resolveDepthBuffer===!1,de.__autoAllocateDepthBuffer===!1&&(de.__useRenderToTexture=!1),Fe.get(k.texture).__webglTexture=te,Fe.get(k.depthTexture).__webglTexture=de.__autoAllocateDepthBuffer?void 0:ue,de.__hasExternalTextures=!0},this.setRenderTargetFramebuffer=function(k,te){const ue=Fe.get(k);ue.__webglFramebuffer=te,ue.__useDefaultFramebuffer=te===void 0};const Sg=X.createFramebuffer();this.setRenderTarget=function(k,te=0,ue=0){O=k,U=te,P=ue;let de=!0,se=null,Te=!1,je=!1;if(k){const Ve=Fe.get(k);if(Ve.__useDefaultFramebuffer!==void 0)Pe.bindFramebuffer(X.FRAMEBUFFER,null),de=!1;else if(Ve.__webglFramebuffer===void 0)lt.setupRenderTarget(k);else if(Ve.__hasExternalTextures)lt.rebindTextures(k,Fe.get(k.texture).__webglTexture,Fe.get(k.depthTexture).__webglTexture);else if(k.depthBuffer){const at=k.depthTexture;if(Ve.__boundDepthTexture!==at){if(at!==null&&Fe.has(at)&&(k.width!==at.image.width||k.height!==at.image.height))throw new Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");lt.setupDepthRenderbuffer(k)}}const rt=k.texture;(rt.isData3DTexture||rt.isDataArrayTexture||rt.isCompressedArrayTexture)&&(je=!0);const ut=Fe.get(k).__webglFramebuffer;k.isWebGLCubeRenderTarget?(Array.isArray(ut[te])?se=ut[te][ue]:se=ut[te],Te=!0):k.samples>0&<.useMultisampledRTT(k)===!1?se=Fe.get(k).__webglMultisampledFramebuffer:Array.isArray(ut)?se=ut[ue]:se=ut,z.copy(k.viewport),H.copy(k.scissor),Y=k.scissorTest}else z.copy(G).multiplyScalar(j).floor(),H.copy(ee).multiplyScalar(j).floor(),Y=me;if(ue!==0&&(se=Sg),Pe.bindFramebuffer(X.FRAMEBUFFER,se)&&de&&Pe.drawBuffers(k,se),Pe.viewport(z),Pe.scissor(H),Pe.setScissorTest(Y),Te){const Ve=Fe.get(k.texture);X.framebufferTexture2D(X.FRAMEBUFFER,X.COLOR_ATTACHMENT0,X.TEXTURE_CUBE_MAP_POSITIVE_X+te,Ve.__webglTexture,ue)}else if(je){const Ve=te;for(let rt=0;rt<k.textures.length;rt++){const ut=Fe.get(k.textures[rt]);X.framebufferTextureLayer(X.FRAMEBUFFER,X.COLOR_ATTACHMENT0+rt,ut.__webglTexture,ue,Ve)}}else if(k!==null&&ue!==0){const Ve=Fe.get(k.texture);X.framebufferTexture2D(X.FRAMEBUFFER,X.COLOR_ATTACHMENT0,X.TEXTURE_2D,Ve.__webglTexture,ue)}R=-1},this.readRenderTargetPixels=function(k,te,ue,de,se,Te,je,Ke=0){if(!(k&&k.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Ve=Fe.get(k).__webglFramebuffer;if(k.isWebGLCubeRenderTarget&&je!==void 0&&(Ve=Ve[je]),Ve){Pe.bindFramebuffer(X.FRAMEBUFFER,Ve);try{const rt=k.textures[Ke],ut=rt.format,at=rt.type;if(!Le.textureFormatReadable(ut)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!Le.textureTypeReadable(at)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}te>=0&&te<=k.width-de&&ue>=0&&ue<=k.height-se&&(k.textures.length>1&&X.readBuffer(X.COLOR_ATTACHMENT0+Ke),X.readPixels(te,ue,de,se,Ge.convert(ut),Ge.convert(at),Te))}finally{const rt=O!==null?Fe.get(O).__webglFramebuffer:null;Pe.bindFramebuffer(X.FRAMEBUFFER,rt)}}},this.readRenderTargetPixelsAsync=async function(k,te,ue,de,se,Te,je,Ke=0){if(!(k&&k.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let Ve=Fe.get(k).__webglFramebuffer;if(k.isWebGLCubeRenderTarget&&je!==void 0&&(Ve=Ve[je]),Ve)if(te>=0&&te<=k.width-de&&ue>=0&&ue<=k.height-se){Pe.bindFramebuffer(X.FRAMEBUFFER,Ve);const rt=k.textures[Ke],ut=rt.format,at=rt.type;if(!Le.textureFormatReadable(ut))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!Le.textureTypeReadable(at))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");const bt=X.createBuffer();X.bindBuffer(X.PIXEL_PACK_BUFFER,bt),X.bufferData(X.PIXEL_PACK_BUFFER,Te.byteLength,X.STREAM_READ),k.textures.length>1&&X.readBuffer(X.COLOR_ATTACHMENT0+Ke),X.readPixels(te,ue,de,se,Ge.convert(ut),Ge.convert(at),0);const Gt=O!==null?Fe.get(O).__webglFramebuffer:null;Pe.bindFramebuffer(X.FRAMEBUFFER,Gt);const nn=X.fenceSync(X.SYNC_GPU_COMMANDS_COMPLETE,0);return X.flush(),await SI(X,nn,4),X.bindBuffer(X.PIXEL_PACK_BUFFER,bt),X.getBufferSubData(X.PIXEL_PACK_BUFFER,0,Te),X.deleteBuffer(bt),X.deleteSync(nn),Te}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")},this.copyFramebufferToTexture=function(k,te=null,ue=0){const de=Math.pow(2,-ue),se=Math.floor(k.image.width*de),Te=Math.floor(k.image.height*de),je=te!==null?te.x:0,Ke=te!==null?te.y:0;lt.setTexture2D(k,0),X.copyTexSubImage2D(X.TEXTURE_2D,ue,0,0,je,Ke,se,Te),Pe.unbindTexture()};const Xd=X.createFramebuffer(),bo=X.createFramebuffer();this.copyTextureToTexture=function(k,te,ue=null,de=null,se=0,Te=null){Te===null&&(se!==0?(hd("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),Te=se,se=0):Te=0);let je,Ke,Ve,rt,ut,at,bt,Gt,nn;const Wt=k.isCompressedTexture?k.mipmaps[Te]:k.image;if(ue!==null)je=ue.max.x-ue.min.x,Ke=ue.max.y-ue.min.y,Ve=ue.isBox3?ue.max.z-ue.min.z:1,rt=ue.min.x,ut=ue.min.y,at=ue.isBox3?ue.min.z:0;else{const xi=Math.pow(2,-se);je=Math.floor(Wt.width*xi),Ke=Math.floor(Wt.height*xi),k.isDataArrayTexture?Ve=Wt.depth:k.isData3DTexture?Ve=Math.floor(Wt.depth*xi):Ve=1,rt=0,ut=0,at=0}de!==null?(bt=de.x,Gt=de.y,nn=de.z):(bt=0,Gt=0,nn=0);const Et=Ge.convert(te.format),Ze=Ge.convert(te.type);let cn;te.isData3DTexture?(lt.setTexture3D(te,0),cn=X.TEXTURE_3D):te.isDataArrayTexture||te.isCompressedArrayTexture?(lt.setTexture2DArray(te,0),cn=X.TEXTURE_2D_ARRAY):(lt.setTexture2D(te,0),cn=X.TEXTURE_2D),X.pixelStorei(X.UNPACK_FLIP_Y_WEBGL,te.flipY),X.pixelStorei(X.UNPACK_PREMULTIPLY_ALPHA_WEBGL,te.premultiplyAlpha),X.pixelStorei(X.UNPACK_ALIGNMENT,te.unpackAlignment);const Ut=X.getParameter(X.UNPACK_ROW_LENGTH),ni=X.getParameter(X.UNPACK_IMAGE_HEIGHT),Ar=X.getParameter(X.UNPACK_SKIP_PIXELS),Yn=X.getParameter(X.UNPACK_SKIP_ROWS),So=X.getParameter(X.UNPACK_SKIP_IMAGES);X.pixelStorei(X.UNPACK_ROW_LENGTH,Wt.width),X.pixelStorei(X.UNPACK_IMAGE_HEIGHT,Wt.he
3940ight),X.pixelStorei(X.UNPACK_SKIP_PIXELS,rt),X.pixelStorei(X.UNPACK_SKIP_ROWS,ut),X.pixelStorei(X.UNPACK_SKIP_IMAGES,at);const At=k.isDataArrayTexture||k.isData3DTexture,ui=te.isDataArrayTexture||te.isData3DTexture;if(k.isDepthTexture){const xi=Fe.get(k),jn=Fe.get(te),En=Fe.get(xi.__renderTarget),Cl=Fe.get(jn.__renderTarget);Pe.bindFramebuffer(X.READ_FRAMEBUFFER,En.__webglFramebuffer),Pe.bindFramebuffer(X.DRAW_FRAMEBUFFER,Cl.__webglFramebuffer);for(let tr=0;tr<Ve;tr++)At&&(X.framebufferTextureLayer(X.READ_FRAMEBUFFER,X.COLOR_ATTACHMENT0,Fe.get(k).__webglTexture,se,at+tr),X.framebufferTextureLayer(X.DRAW_FRAMEBUFFER,X.COLOR_ATTACHMENT0,Fe.get(te).__webglTexture,Te,nn+tr)),X.blitFramebuffer(rt,ut,je,Ke,bt,Gt,je,Ke,X.DEPTH_BUFFER_BIT,X.NEAREST);Pe.bindFramebuffer(X.READ_FRAMEBUFFER,null),Pe.bindFramebuffer(X.DRAW_FRAMEBUFFER,null)}else if(se!==0||k.isRenderTargetTexture||Fe.has(k)){const xi=Fe.get(k),jn=Fe.get(te);Pe.bindFramebuffer(X.READ_FRAMEBUFFER,Xd),Pe.bindFramebuffer(X.DRAW_FRAMEBUFFER,bo);for(let En=0;En<Ve;En++)At?X.framebufferTextureLayer(X.READ_FRAMEBUFFER,X.COLOR_ATTACHMENT0,xi.__webglTexture,se,at+En):X.framebufferTexture2D(X.READ_FRAMEBUFFER,X.COLOR_ATTACHMENT0,X.TEXTURE_2D,xi.__webglTexture,se),ui?X.framebufferTextureLayer(X.DRAW_FRAMEBUFFER,X.COLOR_ATTACHMENT0,jn.__webglTexture,Te,nn+En):X.framebufferTexture2D(X.DRAW_FRAMEBUFFER,X.COLOR_ATTACHMENT0,X.TEXTURE_2D,jn.__webglTexture,Te),se!==0?X.blitFramebuffer(rt,ut,je,Ke,bt,Gt,je,Ke,X.COLOR_BUFFER_BIT,X.NEAREST):ui?X.copyTexSubImage3D(cn,Te,bt,Gt,nn+En,rt,ut,je,Ke):X.copyTexSubImage2D(cn,Te,bt,Gt,rt,ut,je,Ke);Pe.bindFramebuffer(X.READ_FRAMEBUFFER,null),Pe.bindFramebuffer(X.DRAW_FRAMEBUFFER,null)}else ui?k.isDataTexture||k.isData3DTexture?X.texSubImage3D(cn,Te,bt,Gt,nn,je,Ke,Ve,Et,Ze,Wt.data):te.isCompressedArrayTexture?X.compressedTexSubImage3D(cn,Te,bt,Gt,nn,je,Ke,Ve,Et,Wt.data):X.texSubImage3D(cn,Te,bt,Gt,nn,je,Ke,Ve,Et,Ze,Wt):k.isDataTexture?X.texSubImage2D(X.TEXTURE_2D,Te,bt,Gt,je,Ke,Et,Ze,Wt.data):k.isCompressedTexture?X.compressedTexSubImage2D(X.TEXTURE_2D,Te,bt,Gt,Wt.width,Wt.height,Et,Wt.data):X.texSubImage2D(X.TEXTURE_2D,Te,bt,Gt,je,Ke,Et,Ze,Wt);X.pixelStorei(X.UNPACK_ROW_LENGTH,Ut),X.pixelStorei(X.UNPACK_IMAGE_HEIGHT,ni),X.pixelStorei(X.UNPACK_SKIP_PIXELS,Ar),X.pixelStorei(X.UNPACK_SKIP_ROWS,Yn),X.pixelStorei(X.UNPACK_SKIP_IMAGES,So),Te===0&&te.generateMipmaps&&X.generateMipmap(cn),Pe.unbindTexture()},this.initRenderTarget=function(k){Fe.get(k).__webglFramebuffer===void 0&<.setupRenderTarget(k)},this.initTexture=function(k){k.isCubeTexture?lt.setTextureCube(k,0):k.isData3DTexture?lt.setTexture3D(k,0):k.isDataArrayTexture||k.isCompressedArrayTexture?lt.setTexture2DArray(k,0):lt.setTexture2D(k,0),Pe.unbindTexture()},this.resetState=function(){U=0,P=0,O=null,Pe.reset(),ze.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return dr}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=zt._getDrawingBufferColorSpace(e),t.unpackColorSpace=zt._getUnpackColorSpace()}}var ux=1/1e3,F6=1e3,z6=class{constructor(){this.startTime=performance.now(),this.previousTime=0,this.currentTime=0,this._delta=0,this._elapsed=0,this._fixedDelta=1e3/60,this.timescale=1,this.useFixedDelta=!1,this._autoReset=!1}get autoReset(){return this._autoReset}set autoReset(n){typeof document<"u"&&document.hidden!==void 0&&(n?document.addEventListener("visibilitychange",this):document.removeEventListener("visibilitychange",this),this._autoReset=n)}get delta(){return this._delta*ux}get fixedDelta(){return this._fixedDelta*ux}set fixedDelta(n){this._fixedDelta=n*F6}get elapsed(){return this._elapsed*ux}update(n){this.useFixedDelta?this._delta=this.fixedDelta:(this.previousTime=this.currentTime,this.currentTime=(n!==void 0?n:performance.now())-this.startTime,this._delta=this.currentTime-this.previousTime),this._delta*=this.timescale,this._elapsed+=this._delta}reset(){this._delta=0,this._elapsed=0,this.currentTime=performance.now()-this.startTime}getDelta(){return this.delta}getElapsed(){return this.elapsed}handleEvent(n){document.hidden||(this.currentTime=performance.now()-this.startTime)}dispose(){this.autoReset=!1}},j6=(()=>{const n=new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),e=new Float32Array([0,0,2,0,0,2]),t=new ho;return t.setAttribute("position",new Ns(n,3)),t.setAttribute("uv",new Ns(e,2)),t})(),po=class Qy{static get fullscreenGeometry(){return j6}constructor(e="Pass",t=new Ky,i=new _b){this.name=e,this.renderer=null,this.scene=t,this.camera=i,this.screen=null,this.rtt=!0,this.needsSwap=!0,this.needsDepthTexture=!1,this.enabled=!0}get renderToScreen(){return!this.rtt}set renderToScreen(e){if(this.rtt===e){const t=this.fullscreenMaterial;t!==null&&(t.needsUpdate=!0),this.rtt=!e}}set mainScene(e){}set mainCamera(e){}setRenderer(e){this.renderer=e}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}get fullscreenMaterial(){return this.screen!==null?this.screen.material:null}set fullscreenMaterial(e){let t=this.screen;t!==null?t.material=e:(t=new Gs(Qy.fullscreenGeometry,e),t.frustumCulled=!1,this.scene===null&&(this.scene=new Ky),this.scene.add(t),this.screen=t)}getFullscreenMaterial(){return this.fullscreenMaterial}setFullscreenMaterial(e){this.fullscreenMaterial=e}getDepthTexture(){return null}
vendor: 12,174 bytes, lines 3940-3950
3940setDepthTexture(e,t=Dd){}render(e,t,i,s,a){throw new Error("Render method not implemented!")}setSize(e,t){}initialize(e,t,i){}dispose(){for(const e of Object.keys(this)){const t=this[e];(t instanceof qs||t instanceof mu||t instanceof oi||t instanceof Qy)&&this[e].dispose()}this.fullscreenMaterial!==null&&this.fullscreenMaterial.dispose()}},k6=class extends po{constructor(){super("ClearMaskPass",null,null),this.needsSwap=!1}render(n,e,t,i,s){const a=n.state.buffers.stencil;a.setLocked(!1),a.setTest(!1)}},V6=`#include <common> 3941#include <dithering_pars_fragment> 3942#ifdef FRAMEBUFFER_PRECISION_HIGH 3943uniform mediump sampler2D inputBuffer; 3944#else 3945uniform lowp sampler2D inputBuffer; 3946#endif 3947uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuffer,vUv);gl_FragColor=opacity*texel; 3948#include <colorspace_fragment> 3949#include <dithering_fragment> 3950}`,H6="varying vec2 vUv;void main(){vUv=position.xy*0.5+0.5;gl_Position=vec4(position.xy,1.0,1.0);}",G6=class extends Ds{constructor(){super({name:"CopyMaterial",uniforms:{inputBuffer:new Gn(null),opacity:new Gn(1)},blending:gr,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:V6,vertexShader:H6})}set inputBuffer(n){this.uniforms.inputBuffer.value=n}setInputBuffer(n){this.uniforms.inputBuffer.value=n}getOpacity(n){return this.uniforms.opacity.value}setOpacity(n){this.uniforms.opacity.value=n}},W6=class extends po{constructor(n,e=!0){super("CopyPass"),this.fullscreenMaterial=new G6,this.needsSwap=!1,this.renderTarget=n,n===void 0&&(this.renderTarget=new qs(1,1,{minFilter:mi,magFilter:mi,stencilBuffer:!1,depthBuffer:!1}),this.renderTarget.texture.name="CopyPass.Target"),this.autoResize=e}get resize(){return this.autoResize}set resize(n){this.autoResize=n}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}setAutoResizeEnabled(n){this.autoResize=n}render(n,e,t,i,s){this.fullscreenMaterial.inputBuffer=e.texture,n.setRenderTarget(this.renderToScreen?null:this.renderTarget),n.render(this.scene,this.camera)}setSize(n,e){this.autoResize&&this.renderTarget.setSize(n,e)}initialize(n,e,t){t!==void 0&&(this.renderTarget.texture.type=t,t!==as?this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1":n!==null&&n.outputColorSpace===Rn&&(this.renderTarget.texture.colorSpace=Rn))}},kT=new qt,AR=class extends po{constructor(n=!0,e=!0,t=!1){super("ClearPass",null,null),this.needsSwap=!1,this.color=n,this.depth=e,this.stencil=t,this.overrideClearColor=null,this.overrideClearAlpha=-1}setClearFlags(n,e,t){this.color=n,this.depth=e,this.stencil=t}getOverrideClearColor(){return this.overrideClearColor}setOverrideClearColor(n){this.overrideClearColor=n}getOverrideClearAlpha(){return this.overrideClearAlpha}setOverrideClearAlpha(n){this.overrideClearAlpha=n}render(n,e,t,i,s){const a=this.overrideClearColor,l=this.overrideClearAlpha,c=n.getClearAlpha(),f=a!==null,d=l>=0;f?(n.getClearColor(kT),n.setClearColor(a,d?l:c)):d&&n.setClearAlpha(l),n.setRenderTarget(this.renderToScreen?null:e),n.clear(this.color,this.depth,this.stencil),f?n.setClearColor(kT,c):d&&n.setClearAlpha(c)}},X6=class extends po{constructor(n,e){super("MaskPass",n,e),this.needsSwap=!1,this.clearPass=new AR(!1,!1,!0),this.inverse=!1}set mainScene(n){this.scene=n}set mainCamera(n){this.camera=n}get inverted(){return this.inverse}set inverted(n){this.inverse=n}get clear(){return this.clearPass.enabled}set clear(n){this.clearPass.enabled=n}getClearPass(){return this.clearPass}isInverted(){return this.inverted}setInverted(n){this.inverted=n}render(n,e,t,i,s){const a=n.getContext(),l=n.state.buffers,c=this.scene,f=this.camera,d=this.clearPass,h=this.inverted?0:1,g=1-h;l.color.setMask(!1),l.depth.setMask(!1),l.color.setLocked(!0),l.depth.setLocked(!0),l.stencil.setTest(!0),l.stencil.setOp(a.REPLACE,a.REPLACE,a.REPLACE),l.stencil.setFunc(a.ALWAYS,h,4294967295),l.stencil.setClear(g),l.stencil.setLocked(!0),this.clearPass.enabled&&(this.renderToScreen?d.render(n,null):(d.render(n,e),d.render(n,t))),this.renderToScreen?(n.setRenderTarget(null),n.render(c,f)):(n.setRenderTarget(e),n.render(c,f),n.setRenderTarget(t),n.render(c,f)),l.color.setLocked(!1),l.depth.setLocked(!1),l.stencil.setLocked(!1),l.stencil.setFunc(a.EQUAL,1,4294967295),l.stencil.setOp(a.KEEP,a.KEEP,a.KEEP),l.stencil.setLocked(!0)}},VT=class{constructor(n=null,{depthBuffer:e=!0,stencilBuffer:t=!1,multisampling:i=0,frameBufferType:s}={}){this.renderer=null,this.inputBuffer=this.createBuffer(e,t,s,i),this.outputBuffer=this.inputBuffer.clone(),this.copyPass=new W6,this.depthTexture=null,this.passes=[],this.timer=new z6,this.autoRenderToScreen=!0,this.setRenderer(n)}get multisampling(){return this.inputBuffer.samples||0}set multisampling(n){const e=this.inputBuffer,t=this.multisampling;t>0&&n>0?(this.inputBuffer.samples=n,this.outputBuffer.samples=n,this.inputBuffer.dispose(),this.outputBuffer.dispose()):t!==n&&(this.inputBuffer.dispose(),this.outputBuffer.dispose(),this.inputBuffer=this.createBuffer(e.depthBuffer,e.stencilBuffer,e.texture.type,n),this.inputBuffer.depthTexture=this.depthTexture,this.outputBuffer=this.inputBuffer.clone())}getTimer(){return this.timer}getRenderer(){return this.renderer}setRenderer(n){if(this.renderer=n,n!==null){const e=n.getSize(new wt),t=n.getContext().getContextAttributes().alpha,i=this.inputBuffer.texture.type;i===as&&n.outputColorSpace===Rn&&(this.inputBuffer.texture.colorSpace=Rn,this.outputBuffer.texture.colorSpace=Rn,this.inputBuffer.dispose(),this.outputBuffer.dispose()),n.autoClear=!1,this.setSize(e.width,e.height);for(const s of this.passes)s.initialize(n,t,i)}}replaceRenderer(n,e=!0){const t=this.renderer,i=t.domElement.parentNode;return this.setRenderer(n),e&&i!==null&&(i.removeChild(t.domElement),i.appendChild(n.domElement)),t}createDepthTexture(){const n=this.depthTexture=new bb;return this.inputBuffer.depthTexture=n,this.inputBuffer.dispose(),this.inputBuffer.stencilBuffer?(n.format=Qc,n.type=Zc):n.type=so,n}deleteDepthTexture(){if(this.depthTexture!==null){this.depthTexture.dispose(),this.depthTexture=null,this.inputBuffer.depthTexture=null,this.inputBuffer.dispose();for(const n of this.passes)n.setDepthTexture(null)}}createBuffer(n,e,t,i){const s=this.renderer,a=s===null?new wt:s.getDrawingBufferSize(new wt),l={minFilter:mi,magFilter:mi,stencilBuffer:e,depthBuffer:n,type:t},c=new qs(a.width,a.height,l);return i>0&&(c.ignoreDepthForMultisampleCopy=!1,c.samples=i),t===as&&s!==null&&s.outputColorSpace===Rn&&(c.texture.colorSpace=Rn),c.texture.name="EffectComposer.Buffer",c.texture.generateMipmaps=!1,c}setMainScene(n){for(const e of this.passes)e.mainScene=n}setMainCamera(n){for(const e of this.passes)e.mainCamera=n}addPass(n,e){const t=this.passes,i=this.renderer,s=i.getDrawingBufferSize(new wt),a=i.getContext().getContextAttributes().alpha,l=this.inputBuffer.texture.type;if(n.setRenderer(i),n.setSize(s.width,s.height),n.initialize(i,a,l),this.autoRenderToScreen&&(t.length>0&&(t[t.length-1].renderToScreen=!1),n.renderToScreen&&(this.autoRenderToScreen=!1)),e!==void 0?t.splice(e,0,n):t.push(n),this.autoRenderToScreen&&(t[t.length-1].renderToScreen=!0),n.needsDepthTexture||this.depthTexture!==null)if(this.depthTexture===null){const c=this.createDepthTexture();for(n of t)n.setDepthTexture(c)}else n.setDepthTexture(this.depthTexture)}removePass(n){const e=this.passes,t=e.indexOf(n);if(t!==-1&&e.splice(t,1).length>0){if(this.depthTexture!==null){const a=(c,f)=>c||f.needsDepthTexture;e.reduce(a,!1)||(n.getDepthTexture()===this.depthTexture&&n.setDepthTexture(null),this.deleteDepthTexture())}this.autoRenderToScreen&&t===e.length&&(n.renderToScreen=!1,e.length>0&&(e[e.length-1].renderToScreen=!0))}}removeAllPasses(){const n=this.passes;this.deleteDepthTexture(),n.length>0&&(this.autoRenderToScreen&&(n[n.length-1].renderToScreen=!1),this.passes=[])}render(n){const e=this.renderer,t=this.copyPass;let i=this.inputBuffer,s=this.outputBuffer,a=!1,l,c,f;n===void 0&&(this.timer.update(),n=this.timer.getDelta());for(const d of this.passes)d.enabled&&(d.render(e,i,s,n,a),d.needsSwap&&(a&&(t.renderToScreen=d.renderToScreen,l=e.getContext(),c=e.state.buffers.stencil,c.setFunc(l.NOTEQUAL,1,4294967295),t.render(e,i,s,n,a),c.setFunc(l.EQUAL,1,4294967295)),f=i,i=s,s=f),d instanceof X6?a=!0:d instanceof k6&&(a=!1))}setSize(n,e,t){const i=this.renderer,s=i.getSize(new wt);(n===void 0||e===void 0)&&(n=s.width,e=s.height),(s.width!==n||s.height!==e)&&i.setSize(n,e,t);const a=i.getDrawingBufferSize(new wt);this.inputBuffer.setSize(a.width,a.height),this.outputBuffer.setSize(a.width,a.height);for(const l of this.passes)l.setSize(a.width,a.height)}reset(){this.dispose(),this.autoRenderToScreen=!0}dispose(){for(const n of this.passes)n.dispose();this.passes=[],this.inputBuffer!==null&&this.inputBuffer.dispose(),this.outputBuffer!==null&&this.outputBuffer.dispose(),this.deleteDepthTexture(),this.copyPass.dispose(),this.timer.dispose(),po.fullscreenGeometry.dispose()}},ol={NONE:0,DEPTH:1,CONVOLUTION:2},jt={FRAGMENT_HEAD:"FRAGMENT_HEAD",FRAGMENT_MAIN_UV:"FRAGMENT_MAIN_UV",FRAGMENT_MAIN_IMAGE:"FRAGMENT_MAIN_IMAGE",VERTEX_HEAD:"VERTEX_HEAD",VERTEX_MAIN_SUPPORT:"VERTEX_MAIN_SUPPORT"},q6=class{constructor(){this.shaderParts=new Map([[jt.FRAGMENT_HEAD,null],[jt.FRAGMENT_MAIN_UV,null],[jt.FRAGMENT_MAIN_IMAGE,null],[jt.VERTEX_HEAD,null],[jt.VERTEX_MAIN_SUPPORT,null]]),this.defines=new Map,this.uniforms=new Map,this.blendModes=new Map,this.extensions=new Set,this.attributes=ol.NONE,this.varyings=new Set,this.uvTransformation=!1,this.readDepth=!1,this.colorSpace=ro}},fx=!1,HT=class{constructor(n=null){this.originalMaterials=new Map,this.material=null,this.materials=null,this.materialsBackSide=null,this.materialsDoubleSide=null,this.materialsFlatShaded=null,this.materialsFlatShadedBackSide=null,this.materialsFlatShadedDoubleSide=null,this.setMaterial(n),this.meshCount=0,this.replaceMaterial=e=>{if(e.isMesh){let t;if(e.material.flatShading)switch(e.material.side){case es:t=this.materialsFlatShadedDoubleSide;break;case Qn:t=this.materialsFlatShadedBackSide;break;default:t=this.materialsFlatShaded;break}else switch(e.material.side){case es:t=this.materialsDoubleSide;break;case Qn:t=this.materialsBackSide;break;default:t=this.materials;break}this.originalMaterials.set(e,e.material),e.isSkinnedMesh?e.material=t[2]:e.isInstancedMesh?e.material=t[1]:e.material=t[0],++this.meshCount}}}cloneMaterial(n){if(!(n instanceof Ds))return n.clone();const e=n.uniforms,t=new Map;for(const s in e){const a=e[s].value;a.isRenderTargetTexture&&(e[s].value=null,t.set(s,a))}const i=n.clone();for(const s of t)e[s[0]].value=s[1],i.uniforms[s[0]].value=s[1];return i}setMaterial(n){if(this.disposeMaterials(),this.material=n,n!==null){const e=this.materials=[this.cloneMaterial(n),this.cloneMaterial(n),this.cloneMaterial(n)];for(const t of e)t.uniforms=Object.assign({},n.uniforms),t.side=sa;e[2].skinning=!0,this.materialsBackSide=e.map(t=>{const i=this.cloneMaterial(t);return i.uniforms=Object.assign({},n.uniforms),i.side=Qn,i}),this.materialsDoubleSide=e.map(t=>{const i=this.cloneMaterial(t);return i.uniforms=Object.assign({},n.uniforms),i.side=es,i}),this.materialsFlatShaded=e.map(t=>{const i=this.cloneMaterial(t);return i.uniforms=Object.assign({},n.uniforms),i.flatShading=!0,i}),this.materialsFlatShadedBackSide=e.map(t=>{const i=this.cloneMaterial(t);return i.uniforms=Object.assign({},n.uniforms),i.flatShading=!0,i.side=Qn,i}),this.materialsFlatShadedDoubleSide=e.map(t=>{const i=this.cloneMaterial(t);return i.uniforms=Object.assign({},n.uniforms),i.flatShading=!0,i.side=es,i})}}render(n,e,t){const i=n.shadowMap.enabled;if(n.shadowMap.enabled=!1,fx){const s=this.originalMaterials;this.meshCount=0,e.traverse(this.replaceMaterial),n.render(e,t);for(const a of s)a[0].material=a[1];this.meshCount!==s.size&&s.clear()}else{const s=e.overrideMaterial;e.overrideMaterial=this.material,n.render(e,t),e.overrideMaterial=s}n.shadowMap.enabled=i}disposeMaterials(){if(this.material!==null){const n=this.materials.concat(this.materialsBackSide).concat(this.materialsDoubleSide).concat(this.materialsFlatShaded).concat(this.materialsFlatShadedBackSide).concat(this.materialsFlatShadedDoubleSide);
3950for(const e of n)e.dispose()}}dispose(){this.originalMaterials.clear(),this.disposeMaterials()}static get workaroundEnabled(){return fx}static set workaroundEnabled(n){fx=n}},Dt={ADD:0,ALPHA:1,AVERAGE:2,COLOR:3,COLOR_BURN:4,COLOR_DODGE:5,DARKEN:6,DIFFERENCE:7,DIVIDE:8,DST:9,EXCLUSION:10,HARD_LIGHT:11,HARD_MIX:12,HUE:13,INVERT:14,INVERT_RGB:15,LIGHTEN:16,LINEAR_BURN:17,LINEAR_DODGE:18,LINEAR_LIGHT:19,LUMINOSITY:20,MULTIPLY:21,NEGATION:22,NORMAL:23,OVERLAY:24,PIN_LIGHT:25,REFLECT:26,SATURATION:27,SCREEN:28,SOFT_LIGHT:29,SRC:30,SUBTRACT:31,VIVID_LIGHT:32},Y6="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb+y.rgb,y.a),opacity);}",$6="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y,y.a*opacity);}",K6="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4((x.rgb+y.rgb)*0.5,y.a),opacity);}",Z6="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(yHSL.xy,xHSL.z));return mix(x,vec4(z,y.a),opacity);}",Q6="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb,b=y.rgb;vec3 z=mix(step(0.0,b)*(1.0-min(vec3(1.0),(1.0-a)/b)),vec3(1.0),step(1.0,a));return mix(x,vec4(z,y.a),opacity);}",J6="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb,b=y.rgb;vec3 z=step(0.0,a)*mix(min(vec3(1.0),a/max(1.0-b,1e-9)),vec3(1.0),step(1.0,b));return mix(x,vec4(z,y.a),opacity);}",ek="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(min(x.rgb,y.rgb),y.a),opacity);}",tk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(abs(x.rgb-y.rgb),y.a),opacity);}",nk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb/max(y.rgb,1e-12),y.a),opacity);}",ik="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4((x.rgb+y.rgb-2.0*x.rgb*y.rgb),y.a),opacity);}",sk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=min(x.rgb,1.0);vec3 b=min(y.rgb,1.0);vec3 z=mix(2.0*a*b,1.0-2.0*(1.0-a)*(1.0-b),step(0.5,b));return mix(x,vec4(z,y.a),opacity);}",rk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(step(1.0,x.rgb+y.rgb),y.a),opacity);}",ak="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(yHSL.x,xHSL.yz));return mix(x,vec4(z,y.a),opacity);}",ok="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(1.0-y.rgb,y.a),opacity);}",lk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(y.rgb*(1.0-x.rgb),y.a),opacity);}",ck="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(max(x.rgb,y.rgb),y.a),opacity);}",uk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(clamp(y.rgb+x.rgb-1.
39500,0.0,1.0),y.a),opacity);}",fk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(min(x.rgb+y.rgb,1.0),y.a),opacity);}",dk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(clamp(2.0*y.rgb+x.rgb-1.0,0.0,1.0),y.a),opacity);}",hk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(xHSL.xy,yHSL.z));return mix(x,vec4(z,y.a),opacity);}",pk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb*y.rgb,y.a),opacity);}",mk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(1.0-abs(1.0-x.rgb-y.rgb),y.a),opacity);}",gk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y,opacity);}",vk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(2.0*y.rgb*x.rgb,1.0-2.0*(1.0-y.rgb)*(1.0-x.rgb),step(0.5,x.rgb));return mix(x,vec4(z,y.a),opacity);}",xk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 y2=2.0*y.rgb;vec3 z=mix(mix(y2,x.rgb,step(0.5*x.rgb,y.rgb)),max(y2-1.0,vec3(0.0)),step(x.rgb,y2-1.0));return mix(x,vec4(z,y.a),opacity);}",yk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(min(x.rgb*x.rgb/max(1.0-y.rgb,1e-12),1.0),y.rgb,step(1.0,y.rgb));return mix(x,vec4(z,y.a),opacity);}",_k="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(xHSL.x,yHSL.y,xHSL.z));return mix(x,vec4(z,y.a),opacity);}",bk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb+y.rgb-min(x.rgb*y.rgb,1.0),y.a),opacity);}",Sk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb;vec3 b=y.rgb;vec3 y2=2.0*b;vec3 w=step(0.5,b);vec3 c=a-(1.0-y2)*a*(1.0-a);vec3 d=mix(a+(y2-1.0)*(sqrt(a)-a),a+(y2-1.0)*a*((16.0*a-12.0)*a+3.0),w*(1.0-step(0.25,a)));vec3 z=mix(c,d,w);return mix(x,vec4(z,y.a),opacity);}",wk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return y;}",Ek="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(max(x.rgb+y.rgb-1.0,0.0),y.a),opacity);}",Mk="vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(max(1.0-min((1.0-x.rgb)/(2.0*y.rgb),1.0),0.0),min(x.rgb/(2.0*(1.0-y.rgb)),1.0),step(0.5,y.rgb));return mix(x,vec4(z,y.a),opacity);}",Tk=new Map([[Dt.ADD,Y6],[Dt.ALPHA,$6],[Dt.AVERAGE,K6],[Dt.COLOR,Z6],[Dt.COLOR_BURN,Q6],[Dt.COLOR_DODGE,J6],[Dt.DARKEN,ek],[Dt.DIFFERENCE,tk],[Dt.DIVIDE,nk],[Dt.DST,null],[Dt.EXCLUSION,ik],[Dt.HARD_LIGHT,sk],[Dt.HARD_MIX,rk],[Dt.HUE,ak],[Dt.INVERT,ok],[Dt.INVERT_RGB,lk],[Dt.LIGHTEN,ck],[Dt.LINEAR_BURN,uk],[Dt.LINEAR_DODGE,fk],[Dt.LINEAR_LIGHT,dk],[Dt.LUMINOSITY,hk],[Dt.MULTIPLY,pk],[Dt.NEGATION,mk],[Dt.NORMAL,gk],[Dt.OVERLAY,vk],[Dt.PIN_LIGHT,xk],[Dt.REFLECT,yk],[Dt.SATURATION,_k],[Dt.SCREEN,bk],[Dt.SOFT_LIGHT,Sk],[Dt.SRC,wk],[Dt.SUBTRACT,Ek],[Dt.VIVID_LIGHT,Mk]]),Ak=class extends fo{constructor(n,e=1){super(),this._blendFunction=n,this.opacity=new Gn(e)}getOpacity(){return this.opacity.value}setOpacity(n){this.opacity.value=n}get blendFunction(){return this._blendFunction}set blendFunction(n){this._blendFunction=n,this.dispatchEvent({type:"change"})}getBlendFunction(){return this.blendFunction}setBlendFunction(n){this.blendFunction=n}getShaderCode(){return Tk.get(this.blendFunction)}},CR=class extends fo{constructor(n,e,{attributes:t=ol.NONE,blendFunction:i=Dt.NORMAL,defines:s=new Map,uniforms:a=new Map,extensions:l=null,vertexShader:c=null}={}){super(),this.name=n,this.renderer=null,this.attributes=t,this.fragmentShader=e,this.vertexShader=c,this.defines=s,this.uniforms=a,this.extensions=l,this.blendMode=new Ak(i),this.blendMode.addEventListener("change",f=>this.setChanged()),this._inputColorSpace=ro,this._outputColorSpace=cr}get inputColorSpace(){return this._inputColorSpace}set inputColorSpace(n){this._inputColorSpace=n,this.setChanged()}get outputColorSpace(){return this._outputColorSpace}
vendor: 9,087 bytes, lines 3950-3987
3950set outputColorSpace(n){this._outputColorSpace=n,this.setChanged()}set mainScene(n){}set mainCamera(n){}getName(){return this.name}setRenderer(n){this.renderer=n}getDefines(){return this.defines}getUniforms(){return this.uniforms}getExtensions(){return this.extensions}getBlendMode(){return this.blendMode}getAttributes(){return this.attributes}setAttributes(n){this.attributes=n,this.setChanged()}getFragmentShader(){return this.fragmentShader}setFragmentShader(n){this.fragmentShader=n,this.setChanged()}getVertexShader(){return this.vertexShader}setVertexShader(n){this.vertexShader=n,this.setChanged()}setChanged(){this.dispatchEvent({type:"change"})}setDepthTexture(n,e=Dd){}update(n,e,t){}setSize(n,e){}initialize(n,e,t){}dispose(){for(const n of Object.keys(this)){const e=this[n];(e instanceof qs||e instanceof mu||e instanceof oi||e instanceof po)&&this[n].dispose()}}},GT=class extends po{constructor(n,e,t=null){super("RenderPass",n,e),this.needsSwap=!1,this.clearPass=new AR,this.overrideMaterialManager=t===null?null:new HT(t),this.ignoreBackground=!1,this.skipShadowMapUpdate=!1,this.selection=null}set mainScene(n){this.scene=n}set mainCamera(n){this.camera=n}get renderToScreen(){return super.renderToScreen}set renderToScreen(n){super.renderToScreen=n,this.clearPass.renderToScreen=n}get overrideMaterial(){const n=this.overrideMaterialManager;return n!==null?n.material:null}set overrideMaterial(n){const e=this.overrideMaterialManager;n!==null?e!==null?e.setMaterial(n):this.overrideMaterialManager=new HT(n):e!==null&&(e.dispose(),this.overrideMaterialManager=null)}getOverrideMaterial(){return this.overrideMaterial}setOverrideMaterial(n){this.overrideMaterial=n}get clear(){return this.clearPass.enabled}set clear(n){this.clearPass.enabled=n}getSelection(){return this.selection}setSelection(n){this.selection=n}isBackgroundDisabled(){return this.ignoreBackground}setBackgroundDisabled(n){this.ignoreBackground=n}isShadowMapDisabled(){return this.skipShadowMapUpdate}setShadowMapDisabled(n){this.skipShadowMapUpdate=n}getClearPass(){return this.clearPass}render(n,e,t,i,s){const a=this.scene,l=this.camera,c=this.selection,f=l.layers.mask,d=a.background,h=n.shadowMap.autoUpdate,g=this.renderToScreen?null:e;c!==null&&l.layers.set(c.getLayer()),this.skipShadowMapUpdate&&(n.shadowMap.autoUpdate=!1),(this.ignoreBackground||this.clearPass.overrideClearColor!==null)&&(a.background=null),this.clearPass.enabled&&this.clearPass.render(n,e),n.setRenderTarget(g),this.overrideMaterialManager!==null?this.overrideMaterialManager.render(n,a,l):n.render(a,l),l.layers.mask=f,a.background=d,n.shadowMap.autoUpdate=h}},Ck=`#include <common> 3951#include <packing> 3952#include <dithering_pars_fragment> 3953#define packFloatToRGBA(v) packDepthToRGBA(v) 3954#define unpackRGBAToFloat(v) unpackRGBAToDepth(v) 3955#ifdef FRAMEBUFFER_PRECISION_HIGH 3956uniform mediump sampler2D inputBuffer; 3957#else 3958uniform lowp sampler2D inputBuffer; 3959#endif 3960#if DEPTH_PACKING == 3201 3961uniform lowp sampler2D depthBuffer; 3962#elif defined(GL_FRAGMENT_PRECISION_HIGH) 3963uniform highp sampler2D depthBuffer; 3964#else 3965uniform mediump sampler2D depthBuffer; 3966#endif 3967uniform vec2 resolution;uniform vec2 texelSize;uniform float cameraNear;uniform float cameraFar;uniform float aspect;uniform float time;varying vec2 vUv;vec4 sRGBToLinear(const in vec4 value){return vec4(mix(pow(value.rgb*0.9478672986+vec3(0.0521327014),vec3(2.4)),value.rgb*0.0773993808,vec3(lessThanEqual(value.rgb,vec3(0.04045)))),value.a);}float readDepth(const in vec2 uv){ 3968#if DEPTH_PACKING == 3201 3969return unpackRGBAToDepth(texture2D(depthBuffer,uv)); 3970#else 3971return texture2D(depthBuffer,uv).r; 3972#endif 3973}float getViewZ(const in float depth){ 3974#ifdef PERSPECTIVE_CAMERA 3975return perspectiveDepthToViewZ(depth,cameraNear,cameraFar); 3976#else 3977return orthographicDepthToViewZ(depth,cameraNear,cameraFar); 3978#endif 3979}vec3 RGBToHCV(const in vec3 RGB){vec4 P=mix(vec4(RGB.bg,-1.0,2.0/3.0),vec4(RGB.gb,0.0,-1.0/3.0),step(RGB.b,RGB.g));vec4 Q=mix(vec4(P.xyw,RGB.r),vec4(RGB.r,P.yzx),step(P.x,RGB.r));float C=Q.x-min(Q.w,Q.y);float H=abs((Q.w-Q.y)/(6.0*C+EPSILON)+Q.z);return vec3(H,C,Q.x);}vec3 RGBToHSL(const in vec3 RGB){vec3 HCV=RGBToHCV(RGB);float L=HCV.z-HCV.y*0.5;float S=HCV.y/(1.0-abs(L*2.0-1.0)+EPSILON);return vec3(HCV.x,S,L);}vec3 HueToRGB(const in float H){float R=abs(H*6.0-3.0)-1.0;float G=2.0-abs(H*6.0-2.0);float B=2.0-abs(H*6.0-4.0);return clamp(vec3(R,G,B),0.0,1.0);}vec3 HSLToRGB(const in vec3 HSL){vec3 RGB=HueToRGB(HSL.x);float C=(1.0-abs(2.0*HSL.z-1.0))*HSL.y;return(RGB-0.5)*C+HSL.z;}FRAGMENT_HEAD void main(){FRAGMENT_MAIN_UV vec4 color0=texture2D(inputBuffer,UV);vec4 color1=vec4(0.0);FRAGMENT_MAIN_IMAGE color0.a=clamp(color0.a,0.0,1.0);gl_FragColor=color0; 3980#ifdef ENCODE_OUTPUT 3981#include <colorspace_fragment> 3982#endif 3983#include <dithering_fragment> 3984}`,Rk="uniform vec2 resolution;uniform vec2 texelSize;uniform float cameraNear;uniform float cameraFar;uniform float aspect;uniform float time;varying vec2 vUv;VERTEX_HEAD void main(){vUv=position.xy*0.5+0.5;VERTEX_MAIN_SUPPORT gl_Position=vec4(position.xy,1.0,1.0);}",Nk=class extends Ds{constructor(n,e,t,i,s=!1){super({name:"EffectMaterial",defines:{THREE_REVISION:Ym.replace(/\D+/g,""),DEPTH_PACKING:"0",ENCODE_OUTPUT:"1"},uniforms:{inputBuffer:new Gn(null),depthBuffer:new Gn(null),resolution:new Gn(new wt),texelSize:new Gn(new wt),cameraNear:new Gn(.3),cameraFar:new Gn(1e3),aspect:new Gn(1),time:new Gn(0)},blending:gr,toneMapped:!1,depthWrite:!1,depthTest:!1,dithering:s}),n&&this.setShaderParts(n),e&&this.setDefines(e),t&&this.setUniforms(t),this.copyCameraSettings(i)}set inputBuffer(n){this.uniforms.inputBuffer.value=n}setInputBuffer(n){this.uniforms.inputBuffer.value=n}get depthBuffer(){return this.uniforms.depthBuffer.value}set depthBuffer(n){this.uniforms.depthBuffer.value=n}get depthPacking(){return Number(this.defines.DEPTH_PACKING)}set depthPacking(n){this.defines.DEPTH_PACKING=n.toFixed(0),this.needsUpdate=!0}setDepthBuffer(n,e=Dd){this.depthBuffer=n,this.depthPacking=e}setShaderData(n){this.setShaderParts(n.shaderParts),this.setDefines(n.defines),this.setUniforms(n.uniforms),this.setExtensions(n.extensions)}setShaderParts(n){return this.fragmentShader=Ck.replace(jt.FRAGMENT_HEAD,n.get(jt.FRAGMENT_HEAD)||"").replace(jt.FRAGMENT_MAIN_UV,n.get(jt.FRAGMENT_MAIN_UV)||"").replace(jt.FRAGMENT_MAIN_IMAGE,n.get(jt.FRAGMENT_MAIN_IMAGE)||""),this.vertexShader=Rk.replace(jt.VERTEX_HEAD,n.get(jt.VERTEX_HEAD)||"").replace(jt.VERTEX_MAIN_SUPPORT,n.get(jt.VERTEX_MAIN_SUPPORT)||""),this.needsUpdate=!0,this}setDefines(n){for(const e of n.entries())this.defines[e[0]]=e[1];return this.needsUpdate=!0,this}setUniforms(n){for(const e of n.entries())this.uniforms[e[0]]=e[1];return this}setExtensions(n){this.extensions={};for(const e of n)this.extensions[e]=!0;return this}get encodeOutput(){return this.defines.ENCODE_OUTPUT!==void 0}set encodeOutput(n){this.encodeOutput!==n&&(n?this.defines.ENCODE_OUTPUT="1":delete this.defines.ENCODE_OUTPUT,this.needsUpdate=!0)}isOutputEncodingEnabled(n){return this.encodeOutput}setOutputEncodingEnabled(n){this.encodeOutput=n}get time(){return this.uniforms.time.value}set time(n){this.uniforms.time.value=n}setDeltaTime(n){this.uniforms.time.value+=n}adoptCameraSettings(n){this.copyCameraSettings(n)}copyCameraSettings(n){n&&(this.uniforms.cameraNear.value=n.near,this.uniforms.cameraFar.value=n.far,n instanceof Ms?this.defines.PERSPECTIVE_CAMERA="1":delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}setSize(n,e){const t=this.uniforms;t.resolution.value.set(n,e),t.texelSize.value.set(1/n,1/e),t.aspect.value=n/e}static get Section(){return jt}};function WT(n,e,t){for(const i of e){const s="$1"+n+i.charAt(0).toUpperCase()+i.slice(1),a=new RegExp("([^\\.])(\\b"+i+"\\b)","g");for(const l of t.entries())l[1]!==null&&t.set(l[0],l[1].replace(a,s))}}function Dk(n,e,t){let i=e.getFragmentShader(),s=e.getVertexShader();const a=i!==void 0&&/mainImage/.test(i),l=i!==void 0&&/mainUv/.test(i);if(t.attributes|=e.getAttributes(),i===void 0)throw new Error(`Missing fragment shader (${e.name})`);if(l&&(t.attributes&ol.CONVOLUTION)!==0)throw new Error(`Effects that transform UVs are incompatible with convolution effects (${e.name})`);if(!a&&!l)throw new Error(`Could not find mainImage or mainUv function (${e.name})`);{const c=/\w+\s+(\w+)\([\w\s,]*\)\s*{/g,f=t.shaderParts;let d=f.get(jt.FRAGMENT_HEAD)||"",h=f.get(jt.FRAGMENT_MAIN_UV)||"",g=f.get(jt.FRAGMENT_MAIN_IMAGE)||"",v=f.get(jt.VERTEX_HEAD)||"",x=f.get(jt.VERTEX_MAIN_SUPPORT)||"";const b=new Set,_=new Set;if(l&&(h+=` ${n}MainUv(UV); 3985`,t.uvTransformation=!0),s!==null&&/mainSupport/.test(s)){const T=/mainSupport *\([\w\s]*?uv\s*?\)/.test(s);x+=` ${n}MainSupport(`,x+=T?`vUv); 3986`:`); 3987`;for(const M of s.matchAll(/(?:varying\s+\w+\s+([\S\s]*?);)/g))for(const C of M[1].split(/\s*,\s*/))t.varyings.add(C),b.add(C),_.add(C);for(const M of s.matchAll(c))_.add(M[1])}for(const T of i.matchAll(c))_.add(T[1]);for(const T of e.defines.keys())_.add(T.replace(/\([\w\s,]*\)/g,""));for(const T of e.uniforms.keys())_.add(T);_.delete("while"),_.delete("for"),_.delete("if"),e.uniforms.forEac
3987h((T,M)=>t.uniforms.set(n+M.charAt(0).toUpperCase()+M.slice(1),T)),e.defines.forEach((T,M)=>t.defines.set(n+M.charAt(0).toUpperCase()+M.slice(1),T));const w=new Map([["fragment",i],["vertex",s]]);WT(n,_,t.defines),WT(n,_,w),i=w.get("fragment"),s=w.get("vertex");const S=e.blendMode;if(t.blendModes.set(S.blendFunction,S),a){e.inputColorSpace!==null&&e.inputColorSpace!==t.colorSpace&&(g+=e.inputColorSpace===Rn?`color0 = sRGBTransferOETF(color0); 3988 `:`color0 = sRGBToLinear(color0); 3989 `),e.outputColorSpace!==cr?t.colorSpace=e.outputColorSpace:e.inputColorSpace!==null&&(t.colorSpace=e.inputColorSpace);const T=/MainImage *\([\w\s,]*?depth[\w\s,]*?\)/;g+=`${n}MainImage(color0, UV, `,(t.attributes&ol.DEPTH)!==0&&T.test(i)&&(g+="depth, ",t.readDepth=!0),g+=`color1); 3990 `;const M=n+"BlendOpacity";t.uniforms.set(M,S.opacity),g+=`color0 = blend${S.blendFunction}(color0, color1, ${M}); 3991 3992 `,d+=`uniform float ${M}; 3993 3994`}if(d+=i+` 3995`,s!==null&&(v+=s+` 3996`),f.set(jt.FRAGMENT_HEAD,d),f.set(jt.FRAGMENT_MAIN_UV,h),f.set(jt.FRAGMENT_MAIN_IMAGE,g),f.set(jt.VERTEX_HEAD,v),f.set(jt.VERTEX_MAIN_SUPPORT,x),e.extensions!==null)for(const T of e.extensions)t.extensions.add(T)}}var XT=class extends po{constructor(n,...e){super("EffectPass"),this.fullscreenMaterial=new Nk(null,null,null,n),this.listener=t=>this.handleEvent(t),this.effects=[],this.setEffects(e),this.skipRendering=!1,this.minTime=1,this.maxTime=Number.POSITIVE_INFINITY,this.timeScale=1}set mainScene(n){for(const e of this.effects)e.mainScene=n}set mainCamera(n){this.fullscreenMaterial.copyCameraSettings(n);for(const e of this.effects)e.mainCamera=n}get encodeOutput(){return this.fullscreenMaterial.encodeOutput}set encodeOutput(n){this.fullscreenMaterial.encodeOutput=n}get dithering(){return this.fullscreenMaterial.dithering}set dithering(n){const e=this.fullscreenMaterial;e.dithering=n,e.needsUpdate=!0}setEffects(n){for(const e of this.effects)e.removeEventListener("change",this.listener);this.effects=n.sort((e,t)=>t.attributes-e.attributes);for(const e of this.effects)e.addEventListener("change",this.listener)}updateMaterial(){const n=new q6;let e=0;for(const l of this.effects)if(l.blendMode.blendFunction===Dt.DST)n.attributes|=l.getAttributes()&ol.DEPTH;else{if((n.attributes&l.getAttributes()&ol.CONVOLUTION)!==0)throw new Error(`Convolution effects cannot be merged (${l.name})`);Dk("e"+e++,l,n)}let t=n.shaderParts.get(jt.FRAGMENT_HEAD),i=n.shaderParts.get(jt.FRAGMENT_MAIN_IMAGE),s=n.shaderParts.get(jt.FRAGMENT_MAIN_UV);const a=/\bblend\b/g;for(const l of n.blendModes.values())t+=l.getShaderCode().replace(a,`blend${l.blendFunction}`)+` 3997`;(n.attributes&ol.DEPTH)!==0?(n.readDepth&&(i=`float depth = readDepth(UV); 3998 3999 `+i),this.needsDepthTexture=this.getDepthTexture()===null):this.needsDepthTexture=!1,n.colorSpace
3999===Rn&&(i+=`color0 = sRGBToLinear(color0); 4000 `),n.uvTransformation?(s=`vec2 transformedUv = vUv; 4001`+s,n.defines.set("UV","transformedUv")):n.defines.set("UV","vUv"),n.shaderParts.set(jt.FRAGMENT_HEAD,t),n.shaderParts.set(jt.FRAGMENT_MAIN_IMAGE,i),n.shaderParts.set(jt.FRAGMENT_MAIN_UV,s);for(const[l,c]of n.shaderParts)c!==null&&n.shaderParts.set(l,c.trim().replace(/^#/,` 4002#`));this.skipRendering=e===0,this.needsSwap=!this.skipRendering,this.fullscreenMaterial.setShaderData(n)}recompile(){this.updateMaterial()}getDepthTexture(){return this.fullscreenMaterial.depthBuffer}setDepthTexture(n,e=Dd){this.fullscreenMaterial.depthBuffer=n,this.fullscreenMaterial.depthPacking=e;for(const t of this.effects)t.setDepthTexture(n,e)}render(n,e,t,i,s){for(const a of this.effects)a.update(n,e,i);if(!this.skipRendering||this.renderToScreen){const a=this.fullscreenMaterial;a.inputBuffer=e.texture,a.time+=i*this.timeScale,n.setRenderTarget(this.renderToScreen?null:t),n.render(this.scene,this.camera)}}setSize(n,e){this.fullscreenMaterial.setSize(n,e);for(const t of this.effects)t.setSize(n,e)}initialize(n,e,t){this.renderer=n;for(const i of this.effects)i.initialize(n,e,t);this.updateMaterial(),t!==void 0&&t!==as&&(this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1")}dispose(){super.dispose();for(const n of this.effects)n.removeEventListener("change",this.listener),n.dispose()}handleEvent(n){n.type==="change"&&this.recompile()}};const Pk=()=>{const e=document.createElement("canvas");e.width=64,e.height=64;const t=e.getContext("2d");if(!t)throw new Error("2D context not available");t.fillStyle="black",t.fillRect(0,0,e.width,e.height);const i=new oi(e);i.minFilter=mi,i.magFilter=mi,i.generateMipmaps=!1;const s=[];let a=null;const l=64;let c=.1*64;const f=1/l,d=()=>{t.fillStyle="black",t.fillRect(0,0,e.width,e.height)},h=x=>{const b={x:x.x*64,y:(1-x.y)*64};let _=1;const w=C=>Math.sin(C*Math.PI/2),S=C=>-C*(C-2);x.age<l*.3?_=w(x.age/(l*.3)):_=S(1-(x.age-l*.3)/(l*.7))||0,_*=x.force;const T=`${(x.vx+1)/2*255}, ${(x.vy+1)/2*255}, ${_*255}`,M=320;t.shadowOffsetX=M,t.shadowOffsetY=M,t.shadowBlur=c,t.shadowColor=`rgba(${T},${.22*_})`,t.beginPath(),t.fillStyle="rgba(255,0,0,1)",t.arc(b.x-M,b.y-M,c,0,Math.PI*2),t.fill()};return{canvas:e,texture:i,addTouch:x=>{let b=0,_=0,w=0;if(a){const S=x.x-a.x,T=x.y-a.y;if(S===0&&T===0)return;const M=S*S+T*T,C=Math.sqrt(M);_=S/(C||1),w=T/(C||1),b=Math.min(M*1e4,1)}a={x:x.x,y:x.y},s.push({x:x.x,y:x.y,age:0,force:b,vx:_,vy:w})},update:()=>{d();for(let x=s.length-1;x>=0;x--){const b=s[x],_=b.force*f*(1-b.age/l);b.x+=b.vx*_,b.y+=b.vy*_,b.age++,b.age>l&&s.splice(x,1)}for(let x=0;x<s.length;x++)h(s[x]);i.needsUpdate=!0},set radiusScale(x){c=.1*64*x},get radiusScale(){return c/(.1*64)},size:64}},Lk=(n,e)=>{const t=` 4003 uniform sampler2D uTexture; 4004 uniform float uStrength; 4005 uniform float uTime; 4006 uniform float uFreq; 4007 4008 void mainUv(inout vec2 uv) { 4009 vec4 tex = texture2D(uTexture, uv); 4010 float vx = tex.r * 2.0 - 1.0; 4011 float vy = tex.g * 2.0 - 1.0; 4012 float intensity = tex.b; 4013 4014 float wave = 0.5 + 0.5 * sin(uTime * uFreq + intensity * 6.2831853); 4015 4016 float amt = uStrength * intensity * wave; 4017 4018 uv += vec2(vx, vy) * amt; 4019 } 4020 `;return new CR("LiquidEffect",t,{uniforms:new Map([["uTexture",new Gn(n)],["uStrength",new Gn(e?.strength??.025)],["uTime",new Gn(0)],["uFreq",new Gn(e?.freq??4.5)]])})},qT={square:0,circle:1,triangle:2,diamond:3},Ok=` 4021void main() { 4022 gl_Position = vec4(position, 1.0); 4023} 4024`,Uk=` 4025precision highp float; 4026 4027uniform vec3 uColor; 4028uniform vec2 uResolution; 4029uniform float uTime; 4030uniform float uPixelSize; 4031uniform float uScale; 4032uniform float uDensity; 4033uniform float uPixelJitter; 4034uniform int uEnableRipples; 4035uniform float uRippleSpeed; 4036uniform float uRippleThickness; 4037uniform float uRippleIntensity; 4038uniform float uEdgeFade; 4039 4040uniform int uShapeType; 4041const int SHAPE_SQUARE = 0; 4042const int SHAPE_CIRCLE = 1; 4043const int SHAPE_TRIANGLE = 2; 4044const int SHAPE_DIAMOND = 3; 4045 4046const int MAX_CLICKS = 10; 4047 4048uniform vec2 uClickPos [MAX_CLICKS]; 4049uniform float uClickTimes[MAX_CLICKS]; 4050 4051out vec4 fragColor; 4052 4053float Bayer2(vec2 a) { 4054 a = floor(a); 4055 return fract(a.x / 2. + a.y * a.y * .75); 4056} 4057#define Bayer4(a) (Bayer2(.5*(a))*0.25 + Bayer2(a)) 4058#define Bayer8(a) (Bayer4(.5*(a))*0.25 + Bayer2(a)) 4059 4060#define FBM_OCTAVES 5 4061#define FBM_LACUNARITY 1.25 4062#define FBM_GAIN 1.0 4063 4064float hash11(float n){ return fract(sin(n)*43758.5453); } 4065 4066float vnoise(vec3 p){ 4067 vec3 ip = floor(p); 4068 vec3 fp = fract(p); 4069 float n000 = hash11(dot(ip + vec3(0.0,0.0,0.0), vec3(1.0,57.0,113.0))); 4070 float n100 = hash11(dot(ip + vec3(1.0,0.0,0.0), vec3(1.0,57.0,113.0))); 4071 float n010 = hash11(dot(ip + vec3(0.0,1.0,0.0), vec3(1.0,57.0,113.0))); 4072 float n110 = hash11(dot(ip + vec3(1.0,1.0,0.0), vec3(1.0,57.0,113.0))); 4073 float n001 = hash11(dot(ip + vec3(0.0,0.0,1.0), vec3(1.0,57.0,113.0))); 4074 float n101 = hash11(dot(ip + vec3(1.0,0.0,1.0), vec3(1.0,57.0,113.0))); 4075 float n011 = hash11(dot(ip + vec3(0.0,1.0,1.0), vec3(1.0,57.0,113.0))); 4076 float n111 = hash11(dot(ip + vec3(1.0,1.0,1.0), vec3(1.0,57.0,113.0))); 4077 vec3 w = fp*fp*fp*(fp*(fp*6.0-15.0)+10.0); 4078 float x00 = mix(n000, n100, w.x); 4079 float x10 = mix(n010, n110, w.x); 4080 float x01 = mix(n001, n101, w.x); 4081 float x11 = mix(n011, n111, w.x); 4082 float y0 = mix(x00, x10, w.y); 4083 float y1 = mix(x01, x11, w.y); 4084 return mix(y0, y1, w.z) * 2.0 - 1.0; 4085} 4086 4087float fbm2(vec2 uv, float t){ 4088 vec3 p = vec3(uv * uScale, t); 4089 float amp = 1.0; 4090 float freq = 1.0; 4091 float sum = 1.0; 4092 for (int i = 0;
4092 i < FBM_OCTAVES; ++i){ 4093 sum += amp * vnoise(p * freq); 4094 freq *= FBM_LACUNARITY; 4095 amp *= FBM_GAIN; 4096 } 4097 return sum * 0.5 + 0.5; 4098} 4099 4100float maskCircle(vec2 p, float cov){ 4101 float r = sqrt(cov) * .25; 4102 float d = length(p - 0.5) - r; 4103 float aa = 0.5 * fwidth(d); 4104 return cov * (1.0 - smoothstep(-aa, aa, d * 2.0)); 4105} 4106 4107float maskTriangle(vec2 p, vec2 id, float cov){ 4108 bool flip = mod(id.x + id.y, 2.0) > 0.5; 4109 if (flip) p.x = 1.0 - p.x; 4110 float r = sqrt(cov); 4111 float d = p.y - r*(1.0 - p.x); 4112 float aa = fwidth(d); 4113 return cov * clamp(0.5 - d/aa, 0.0, 1.0); 4114} 4115 4116float maskDiamond(vec2 p, float cov){ 4117 float r = sqrt(cov) * 0.564; 4118 return step(abs(p.x - 0.49) + abs(p.y - 0.49), r); 4119} 4120 4121void main(){ 4122 float pixelSize = uPixelSize; 4123 vec2 fragCoord = gl_FragCoord.xy - uResolution * .5; 4124 float aspectRatio = uResolution.x / uResolution.y; 4125 4126 vec2 pixelId = floor(fragCoord / pixelSize); 4127 vec2 pixelUV = fract(fragCoord / pixelSize); 4128 4129 float cellPixelSize = 8.0 * pixelSize; 4130 vec2 cellId = floor(fragCoord / cellPixelSize); 4131 vec2 cellCoord = cellId * cellPixelSize; 4132 vec2 uv = cellCoord / uResolution * vec2(aspectRatio, 1.0); 4133 4134 float base = fbm2(uv, uTime * 0.05); 4135 base = base * 0.5 - 0.65; 4136 4137 float feed = base + (uDensity - 0.5) * 0.3; 4138 4139 float speed = uRippleSpeed; 4140 float thickness = uRippleThickness; 4141 const float dampT = 1.0; 4142 const float dampR = 10.0; 4143 4144 if (uEnableRipples == 1) { 4145 for (int i = 0; i < MAX_CLICKS; ++i){ 4146 vec2 pos = uClickPos[i]; 4147 if (pos.x < 0.0) continue; 4148 float cellPixelSize = 8.0 * pixelSize; 4149 vec2 cuv = (((pos - uResolution * .5 - cellPixelSize * .5) / (uResolution))) * vec2(aspectRatio, 1.0); 4150 float t = max(uTime - uClickTimes[i], 0.0); 4151 float r = distance(uv, cuv); 4152 float waveR = speed * t; 4153 float ring = exp(-pow((r - waveR) / thickness, 2.0)); 4154 float atten = exp(-dampT * t) * exp(-dampR * r); 4155 feed = max(feed, ring * atten * uRippleIntensity); 4156 } 4157 } 4158 4159 float bayer = Bayer8(fragCoord / uPixelSize) - 0.5; 4160 float bw = step(0.5, feed + bayer); 4161 4162 float h = fract(sin(dot(floor(fragCoord / uPixelSize), vec2(127.1, 311.7))) * 43758.5453); 4163 float jitterScale = 1.0 + (h - 0.5) * uPixelJitter; 4164 float coverage = bw * jitterScale; 4165 float M; 4166 if (uShapeType == SHAPE_CIRCLE) M = maskCircle (pixelUV, coverage); 4167 else if (uShapeType == SHAPE_TRIANGLE) M = maskTriangle(pixelUV, pixelId, coverage); 4168 else if (uShapeType == SHAPE_DIAMOND) M = maskDiamond(pixelUV, coverage); 4169 else M = coverage; 4170 4171 if (uEdgeFade > 0.0) { 4172 vec2 norm = gl_FragCoord.xy / uResolution; 4173 float edge = min(min(norm.x, norm.y), min(1.0 - norm.x, 1.0 - norm.y)); 4174 float fade = smoothstep(0.0, uEdgeFade, edge); 4175 M *= fade; 4176 } 4177 4178 vec3 color = uColor; 4179 fragColor = vec4(color, M); 4180} 4181`,dx=10,Ik=({variant:n="square",pixelSize:e=3,color:t="#B19EEF",className:i,style:s,antialias:a=!0,patternScale:l=2,patternDensity:c=1,liquid:f=!1,liquidStrength:d=.1,liquidRadius:h=1,pixelSizeJitter:g=0,enableRipples:v=!0,rippleIntensityScale:x=1,rippleThickness:b=.1,rippleSpeed:_=.3,liquidWobbleSpeed:w=4.5,autoPauseOffscreen:S=!0,speed:T=.5,transparent:M=!0,edgeFade:C=.5,noiseAmount:N=0})=>{const U=A.useRef(null),P=A.useRef({visible:!0}),O=A.useRef(T),R=A.useRef(null),L=A.useRef(null);return A.useEffect(()=>{const z=U.current;if(!z)return;O.current=T;const H=["antialias","liquid","noiseAmount"],Y={antialias:a,liquid:f,noiseAmount:N};let K=!1;if(!R.current)K=!0;else if(L.current){for(const q of H)if(L.current[q]!==Y[q]){K=!0;break}}if(K){if(R.current){const Le=R.current;Le.resizeObserver?.disconnect(),cancelAnimationFrame(Le.raf),Le.quad?.geometry.dispose(),Le.material.dispose(),Le.composer?.dispose(),Le.renderer.dispose(),Le.renderer.domElement.parentElement===z&&z.removeChild(Le.renderer.domElement),R.current=null}const q=document.createElement("canvas"),B=new B6({canvas:q,antialias:a,alpha:!0,powerPreference:"high-performance"});B.domElement.style.width="100%",B.domElement.style.height="100%",B.setPixelRatio(Math.min(window.devicePixelRatio||1,2)),z.appendChild(B.domElement),M?B.setClearAlpha(0):B.setClearColor(0,1);const W={uResolution:{value:new wt(0,0)},uTime:{value:0},uColor:{value:new qt(t)},uClickPos:{value:Array.from({length:dx},()=>new wt(-1,-1))},uClickTimes:{value:new Float32Array(dx)},uShapeType:{value:qT[n]??0},uPixelSize:{value:e*B.getPixelRatio()},uScale:{value:l},uDensity:{value:c},uPixelJitter:{value:g},uEnableRipples:{value:v?1:0},uRippleSpeed:{value:_},uRippleThickness:{value:b},uRippleIntensity:{value:x},uEdgeFade:{value:C}}
4181,j=new Ky,ae=new bR(-1,1,1,-1,0,1),fe=new Ds({vertexShader:Ok,fragmentShader:Uk,uniforms:W,transparent:!0,depthTest:!1,depthWrite:!1,glslVersion:Yy}),G=new Id(2,2),ee=new Gs(G,fe);j.add(ee);const me=new eB,ve=()=>{const Le=z.clientWidth||1,Pe=z.clientHeight||1;B.setSize(Le,Pe,!1),W.uResolution.value.set(B.domElement.width,B.domElement.height),R.current?.composer&&R.current.composer.setSize(B.domElement.width,B.domElement.height),W.uPixelSize.value=e*B.getPixelRatio()};ve();const ge=new ResizeObserver(ve);ge.observe(z);const Z=(()=>{if(typeof window<"u"&&window.crypto?.getRandomValues){const Le=new Uint32Array(1);return window.crypto.getRandomValues(Le),Le[0]/4294967295}return Math.random()})()*1e3;let xe,Me,Ae;if(f){Me=Pk(),Me.radiusScale=h,xe=new VT(B);const Le=new GT(j,ae);Ae=Lk(Me.texture,{strength:d,freq:w});const Pe=new XT(ae,Ae);Pe.renderToScreen=!0,xe.addPass(Le),xe.addPass(Pe)}if(N>0){xe||(xe=new VT(B),xe.addPass(new GT(j,ae)));const Le=new CR("NoiseEffect","uniform float uTime; uniform float uAmount; float hash(vec2 p){ return fract(sin(dot(p, vec2(127.1,311.7))) * 43758.5453);} void mainUv(inout vec2 uv){} void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){ float n=hash(floor(uv*vec2(1920.0,1080.0))+floor(uTime*60.0)); float g=(n-0.5)*uAmount; outputColor=inputColor+vec4(vec3(g),0.0);} ",{uniforms:new Map([["uTime",new Gn(0)],["uAmount",new Gn(N)]])}),Pe=new XT(ae,Le);Pe.renderToScreen=!0,xe&&xe.passes.length>0&&xe.passes.forEach(_t=>_t.renderToScreen=!1),xe.addPass(Pe)}xe&&xe.setSize(B.domElement.width,B.domElement.height);const Be=Le=>{const Pe=B.domElement.getBoundingClientRect(),_t=B.domElement.width/Pe.width,Fe=B.domElement.height/Pe.height,lt=(Le.clientX-Pe.left)*_t,tn=(Pe.height-(Le.clientY-Pe.top))*Fe;return{fx:lt,fy:tn,w:B.domElement.width,h:B.domElement.height}},Xe=Le=>{const{fx:Pe,fy:_t}=Be(Le),Fe=R.current?.clickIx??0;W.uClickPos.value[Fe].set(Pe,_t),W.uClickTimes.value[Fe]=W.uTime.value,R.current&&(R.current.clickIx=(Fe+1)%dx)},X=Le=>{if(!Me)return;const{fx:Pe,fy:_t,w:Fe,h:lt}=Be(Le);Me.addTouch({x:Pe/Fe,y:_t/lt})};B.domElement.addEventListener("pointerdown",Xe,{passive:!0}),B.domElement.addEventListener("pointermove",X,{passive:!0});let He=0;const qe=()=>{if(S&&!P.current.visible){He=requestAnimationFrame(qe);return}W.uTime.value=Z+me.getElapsedTime()*O.current,Ae&&(Ae.uniforms.get("uTime").value=W.uTime.value),xe?(Me&&Me.update(
4181),xe.passes.forEach(Le=>{const Pe=Le.effects;Pe&&Pe.forEach(_t=>{const Fe=_t.uniforms?.get("uTime");Fe&&(Fe.value=W.uTime.value)})}),xe.render()):B.render(j,ae),He=requestAnimationFrame(qe)};He=requestAnimationFrame(qe),R.current={renderer:B,scene:j,camera:ae,material:fe,clock:me,clickIx:0,uniforms:W,resizeObserver:ge,raf:He,quad:ee,timeOffset:Z,composer:xe,touch:Me,liquidEffect:Ae}}else{const q=R.current;if(q.uniforms.uShapeType.value=qT[n]??0,q.uniforms.uPixelSize.value=e*q.renderer.getPixelRatio(),q.uniforms.uColor.value.set(t),q.uniforms.uScale.value=l,q.uniforms.uDensity.value=c,q.uniforms.uPixelJitter.value=g,q.uniforms.uEnableRipples.value=v?1:0,q.uniforms.uRippleIntensity.value=x,q.uniforms.uRippleThickness.value=b,q.uniforms.uRippleSpeed.value=_,q.uniforms.uEdgeFade.value=C,M?q.renderer.setClearAlpha(0):q.renderer.setClearColor(0,1),q.liquidEffect){const B=q.liquidEffect.uniforms.get("uStrength");B&&(B.value=d);const W=q.liquidEffect.uniforms.get("uFreq");W&&(W.value=w)}q.touch&&(q.touch.radiusScale=h)}return L.current=Y,()=>{if(R.current&&K||!R.current)return;const q=R.current;q.resizeObserver?.disconnect(),cancelAnimationFrame(q.raf),q.quad?.geometry.dispose(),q.material.dispose(),q.composer?.dispose(),q.renderer.dispose(),q.renderer.domElement.parentElement===z&&z.removeChild(q.renderer.domElement),R.current=null}},[a,f,N,e,l,c,v,x,b,_,g,C,M,d,h,w,S,n,t,T]),m.jsx("div",{ref:U,className:`w-full h-full relative overflow-hidden ${i??""}`,style:s,"aria-label":"PixelBlast interactive background"})};function Bk(){const[n,e]=A.useState(!1),t=A.useRef(null);return A.useEffect(()=>{const i=new IntersectionObserver(([s])=>{s.isIntersecting&&e(!0)},{threshold:.2,rootMargin:"0px 0px -100px 0px"});return t.current&&i.observe(t.current),()=>{t.current&&i.unobserve(t.current)}},[]),m.jsx("div",{className:"w-full flex items-center justify-center mb-20 px-4 md:px-8 lg:px-8",children:m.jsx("div",{className:"w-full max-w-6xl p-[3px] rounded-4xl",children:m.jsxs("section",{ref:t,className:` 4182 relative overflow-hidden 4183 py-16 md:py-20 px-6 md:px-12 4184 rounded-3xl 4185 transition-all duration-1000 ease-out 4186 w-full 4187 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-10"} 4188 `,style:{animation:n?"pulse-shadow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite":"none"},children:[m.jsx("div",{className:"absolute inset-0 w-full h-full",children:m.jsx(Ik,{variant:"square",pixelSize:7,color:"#7438f2",patternScale:2,patternDensity:1,pixelSizeJitter:0,enableRipples:!0,rippleSpeed:.5,rippleThickness:.12,rippleIntensityScale:1.5,speed:.6,edgeFade:.25,transparent:!0})}),m.jsx("div",{className:"absolute inset-0 opacity-5",children:m.jsx("div",{className:`absolute inset-0 bg-[radial-gradient(circle_at_50%_50%,rgba(124,58,237,0.3),transparent_50%)] transition-transform duration-1000 ${n?"scale-100":"scale-0"}`})}),m.jsx("div",{className:"relative mx-auto max-w-6xl",children:m.jsxs("div",{className:"grid md:grid-cols-2 gap-8 md:gap-12 items-center",children:[m.jsxs("div",{className:`space-y-6 transition-all duration-700 delay-200 ${n?"opacity-100 translate-x-0":"opacity-0 -translate-x-10"}`,children:[m.jsxs("div",{className:"grid grid-cols-1 gap-1",children:[m.jsx("h2",{className:"text-3xl md:text-4xl font-medium [letter-spacing:-0.04em] text-balanced",children:"Pronto para começar?"}),m.jsx("p",{className:"text-sm md:text-lg/5 text-white/60 text-balanced",children:"Transforme a sua estratég
4188ia com soluções personalizadas"})]}),m.jsxs("div",{className:"flex flex-col sm:flex-col md:flex-row items-center gap-4 text-sm md:text-xs",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"h-1 w-2 rounded-full bg-violet-600 animate-pulse"}),m.jsx("span",{children:"Suporte Estratégico ao CIO"})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"h-1 w-2 rounded-full bg-purple-600 animate-pulse"}),m.jsx("span",{children:"Consultoria em melhoria de processos"})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"h-1 w-2 rounded-full bg-cyan-500 animate-pulse"}),m.jsx("span",{children:"Gestão de Projetos Tecnológicos"})]})]})]}),m.jsx("div",{className:`flex flex-col mt-10 gap-4 transition-all duration-700 delay-400 ${n?"opacity-100 translate-x-0":"opacity-0 translate-x-10"}`,children:m.jsx("a",{href:"/contacto",className:"justify-end flex",children:m.jsx(ZC,{className:"w-full !rounded-full"})})})]})}),m.jsx("div",{className:`absolute -top-10 -right-10 h-40 w-40 rounded-full bg-violet-600/10 blur-3xl transition-all duration-1000 delay-300 ${n?"opacity-100 scale-100":"opacity-0 scale-50"}`}),m.jsx("div",{className:`absolute -bottom-10 -left-10 h-40 w-40 rounded-full bg-cyan-500/10 blur-3xl transition-all duration-1000 delay-500 ${n?"opacity-100 scale-100":"opacity-0 scale-50"}`})]})})})}const Jy=new WeakMap,Fk=new WeakMap,mm={current:[]};let hx=!1,Kf=0;const Hf=new Set,Ep=new Map;function RR(n){for(const e of n){if(mm.current.includes(e))continue;mm.current.push(e),e.recompute();const t=Fk.get(e);if(t)for(const i of t){const s=Jy.get(i);s?.length&&RR(s)}}}function zk(n){const e={prevVal:n.prevState,currentVal:n.state};for(const t of n.listeners)t(e)}function jk(n){const e={prevVal:n.prevState,currentVal:n.state};for(const t of n.listeners)t(e)}function NR(n){if(Kf>0&&!Ep.has(n)&&Ep.set(n,n.prevState),Hf.add(n),!(Kf>0)&&!hx)try{for(hx=!0;Hf.size>0;){const e=Array.from(Hf);Hf.clear();for(const t of e){const i=Ep.get(t)??t.prevState;t.prevState=i,zk(t)}for(const t of e){const i=Jy.get(t);i&&(mm.current.push(t),RR(i))}for(const t of e){const i=Jy.get(t);if(i)for(const s of i)jk(s)}}}finally{hx=!1,mm.current=[],Ep.clear()}}function Zf(n){Kf++;try{n()}finally{if(Kf--,Kf===0){const e=Hf.values().next().value;e&&NR(e)}}}function kk(n){return typeof n=="function"}class Vk{constructor(e,t){this.listeners=new Set,this.subscribe=i=>{var s,a;this.listeners.add(i);const l=(a=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:a.call(s,i,this);return()=>{this.listeners.delete(i),l?.()}},this.prevState=e,this.state=e,this.options=t}setState(e){var t,i,s;this.prevState=this.state,(t=this.options)!=null&&t.updateFn?this.state=this.options.updateFn(this.prevState)(e):kk(e)?this.state=e(this.prevState):this.state=e,(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),NR(this)}}const Qa="__TSR_index",YT="popstate",$T="beforeunload";function Hk(n){let e=n.getLocation();const t=new Set,i=l=>{e=n.getLocation(),t.forEach(c=>c({location:e,action:l}))},s=l=>{n.notifyOnIndexChange??!0?i(l):e=n.getLocation()},a=async({task:l,navigateOpts:c,...f})=>{if(c?.ignoreBlocker??!1){l();return}const h=n.getBlockers?.()??[],g=f.type==="PUSH"||f.type==="REPLACE";if(typeof document<"u"&&h.length&&g)for(const v of h){const x=gm(f.path,f.state);if(await v.blockerFn({currentLocation:e,nextLocation:x,action:f.type})){n.onBlocked?.();return}}l()};return{get location(){return e},get length(){return n.getLength()},subscribers:t,subscribe:l=>(t.add(l),()=>{t.delete(l)}),push:(l,c,f)=>{const d=e.state[Qa];c=KT(d+1,c),a({task:()=>{n.pushState(l,c),i({type:"PUSH"})},navigateOpts:f,type:"PUSH",path:l,state:c})},replace:(l,c,f)=>{const d=e.state[Qa];c=KT(d,c),a({task:()=>{n.replaceState(l,c),i({type:"REPLACE"})},navigateOpts:f,type:"REPLACE",path:l,state:c})},go:(l,c)=>{a({task:()=>{n.go(l),s({type:"GO",index:l})},navigateOpts:c,type:"GO"})},back:l=>{a({task:()=>{n.back(l?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{a({task:()=>{n.forward(l?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>e.state[Qa]!==0,createHref:l=>n.createHref(l),block:l=>{if(!n.setBlockers)return()=>{};const c=n.getBlockers?.()??[];return n.setBlockers([...c,l]),()=>{const f=n.getBlockers?.()??[];n.setBlockers?.(f.filter(d=>d!==l))}},flush:()=>n.flush?.(),destroy:()=>n.destroy?.(),notify:i}}function KT(n,e){e||(e={});const t=wb();return{...e,key:t,__TSR_key:t,[Qa]:n}}function Gk(n){const e=typeof document<"u"?window:void 0,t=e.history.pushState,i=e.history.replaceState;let s=[];const a=()=>s,l=O=>s=O,c=(O=>O),f=(()=>gm(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const O=wb();e.history.replaceState({[Qa]:0,key:O,__TSR_key:O},"")}let d=f(),h,g=!1,v=!1,x=!1,b=!1;const _=()=>d;let w,S;const T=()=>{w&&(P._ignoreSubscribers=!0,(w.isPush?e.history.pushState:e.history.replaceState)(w.state,"",w.href),P._ignoreSubscribers=!1,w=void 0,S=void 0,h=void 0)},M=(O,R,L)=>{const z=c(R);S||(h=d),d=gm(R,L),w={href:z,state:L,isPush:w?.isPush||O==="push"},S||(S=Promise.resolve().then(()=>T()))},C=O=>{d=f(),P.notify({type:O})},N=async()=>
4188{if(v){v=!1;return}const O=f(),R=O.state[Qa]-d.state[Qa],L=R===1,z=R===-1,H=!L&&!z||g;g=!1;const Y=H?"GO":z?"BACK":"FORWARD",K=H?{type:"GO",index:R}:{type:z?"BACK":"FORWARD"};if(x)x=!1;else{const q=a();if(typeof document<"u"&&q.length){for(const B of q)if(await B.blockerFn({currentLocation:d,nextLocation:O,action:Y})){v=!0,e.history.go(1),P.notify(K);return}}}d=f(),P.notify(K)},U=O=>{if(b){b=!1;return}let R=!1;const L=a();if(typeof document<"u"&&L.length)for(const z of L){const H=z.enableBeforeUnload??!0;if(H===!0){R=!0;break}if(typeof H=="function"&&H()===!0){R=!0;break}}if(R)return O.preventDefault(),O.returnValue=""},P=Hk({getLocation:_,getLength:()=>e.history.length,pushState:(O,R)=>M("push",O,R),replaceState:(O,R)=>M("replace",O,R),back:O=>(O&&(x=!0),b=!0,e.history.back()),forward:O=>{O&&(x=!0),b=!0,e.history.forward()},go:O=>{g=!0,e.history.go(O)},createHref:O=>c(O),flush:T,destroy:()=>{e.history.pushState=t,e.history.replaceState=i,e.removeEventListener($T,U,{capture:!0}),e.removeEventListener(YT,N)},onBlocked:()=>{h&&d!==h&&(d=h)},getBlockers:a,setBlockers:l,notifyOnIndexChange:!1});return e.addEventListener($T,U,{capture:!0}),e.addEventListener(YT,N),e.history.pushState=function(...O){const R=t.apply(e.history,O);return P._ignoreSubscribers||C("PUSH"),R},e.history.replaceState=function(...O){const R=i.apply(e.history,O);return P._ignoreSubscribers||C("REPLACE"),R},P}function gm(n,e){const t=n.indexOf("#"),i=n.indexOf("?"),s=wb();return{href:n,pathname:n.substring(0,t>0?i>0?Math.min(t,i):t:i>0?i:n.length),hash:t>-1?n.substring(t):"",search:i>-1?n.slice(i,t===-1?void 0:t):"",state:e||{[Qa]:0,key:s,__TSR_key:s}}}function wb(){return(Math.random()+1).toString(36).substring(7)}function e_(n){return n[n.length-1]}function Wk(n){return typeof n=="function"}function ll(n,e){return Wk(n)?n(e):n}const Xk=Object.prototype.hasOwnProperty;function Ss(n,e){if(n===e)return n;const t=e,i=JT(n)&&JT(t);if(!i&&!(vm(n)&&vm(t)))return t;const s=i?n:ZT(n);if(!s)return t;const a=i?t:ZT(t);if(!a)return t;const l=s.length,c=a.length,f=i?new Array(c):{};let d=0;for(let h=0;h<c;h++){const g=i?h:a[h],v=n[g],x=t[g];if(v===x){f[g]=v,(i?h<l:Xk.call(n,g))&&d++;continue}if(v===null||x===null||typeof v!="object"||typeof x!="object"){f[g]=x;continue}const b=Ss(v,x);f[g]=b,b===v&&d++}return l===c&&d===l?n:f}function ZT(n){const e=[],t=Object.getOwnPropertyNames(n);for(const s of t){if(!Object.prototype.propertyIsEnumerable.call(n,s))return!1;e.push(s)}const i=Object.getOwnPropertySymbols(n);for(const s of i){if(!Object.prototype.propertyIsEnumerable.call(n,s))return!1;e.push(s)}return e}function vm(n){if(!QT(n))return!1;const e=n.constructor;if(typeof e>"u")return!0;const t=e.prototype;
4188return!(!QT(t)||!t.hasOwnProperty("isPrototypeOf"))}function QT(n){return Object.prototype.toString.call(n)==="[object Object]"}function JT(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function cl(n,e,t){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return!1;for(let i=0,s=n.length;i<s;i++)if(!cl(n[i],e[i],t))return!1;return!0}if(vm(n)&&vm(e)){const i=t?.ignoreUndefined??!0;if(t?.partial){for(const l in e)if((!i||e[l]!==void 0)&&!cl(n[l],e[l],t))return!1;return!0}let s=0;if(!i)s=Object.keys(n).length;else for(const l in n)n[l]!==void 0&&s++;let a=0;for(const l in e)if((!i||e[l]!==void 0)&&(a++,a>s||!cl(n[l],e[l],t)))return!1;return s===a}return!1}function eu(n){let e,t;const i=new Promise((s,a)=>{e=s,t=a});return i.status="pending",i.resolve=s=>{i.status="resolved",i.value=s,e(s),n?.(s)},i.reject=s=>{i.status="rejected",t(s)},i}function Ja(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}const qk=Array.from(new Map([["%","%25"],["\\","%5C"]]).values());function e2(n,e=qk){function t(s,a,l=0){for(let c=l;c<a.length;c++){const f=a[c].toUpperCase();if(s.includes(f)){const d=s.split(f),h=[];for(const g of d)h.push(t(g,a,c+1));return h.join(f)}}try{return decodeURI(s)}catch{return s.replaceAll(/%[0-9A-F]{2}/g,c=>{try{return decodeURI(c)}catch{return c}})}}if(n===""||!/%[0-9A-Fa-f]{2}/g.test(n))return n;const i=n.replaceAll(/%[0-9a-f]{2}/g,s=>s.toUpperCase());return t(i,e)}var Yk="Invariant failed";function aa(n,e){if(!n)throw new Error(Yk)}const vr=0,xl=1,tu=2,nu=3;function ia(n){return Eb(n.filter(e=>e!==void 0).join("/"))}function Eb(n){return n.replace(/\/{2,}/g,"/")}function Mb(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function eo(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function Yp(n){return eo(Mb(n))}function xm(n,e){return n?.endsWith("/")&&n!=="/"&&n!==`${e}/`?n.slice(0,-1):n}function $k(n,e,t){return xm(n,t)===xm(e,t)}function Kk(n){const{type:e,value:t}=n;if(e===vr)return t;const{prefixSegment:i,suffixSegment:s}=n;if(e===xl){const a=t.substring(1);if(i&&s)return`${i}{$${a}}${s}`;if(i)return`${i}{$${a}}`;if(s)return`{$${a}}${s}`}if(e===nu){const a=t.substring(1);return i&&s?`${i}{-$${a}}${s}`:i?`${i}{-$${a}}`:s?`{-$${a}}${s}`:`{-$${a}}`}if(e===tu){if(i&&s)return`${i}{$}${s}`;if(i)return`${i}{$}`;if(s)return`{$}${s}`}return t}function Zk({base:n,to:e,trailingSlash:t="never",parseCache:i}){let s=iu(n,i).slice();const a=iu(e,i);s.length>1&&e_(s)?.value==="/"&&s.pop();for(let f=0,d=a.length;f<d;f++){const h=a[f],g=h.value;g==="/"?f?f===d-1&&s.push(h):s=[h]:g===".."?s.pop():g==="."||s.push(h)}s.length>1&&(e_(s).value==="/"?t==="never"&&s.pop():t==="always"&&s.push({type:vr,value:"/"}));const l=s.map(Kk);return ia(l)}const iu=(n,e)=>{if(!n)return[];const t=e?.get(n);if(t)return t;const i=iV(n);return e?.set(n,i),i},Qk=/^\$.{1,}$/,Jk=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,eV=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,tV=/^\$$/,nV=/^(.*?)\{\$\}(.*)$/;function iV(n){n=Eb(n);const e=[];if(n.slice(0,1)==="/"&&(n=n.substring(1),e.push({type:vr,value:"/"})),!n)return e;const t=n.split("/").filter(Boolean);return e.push(...t.map(i=>{const s=i.match(nV);if(s){const c=s[1],f=s[2];return{type:tu,value:"$",prefixSegment:c||void 0,suffixSegment:f||void 0}}const a=i.match(eV);if(a){const c=a[1],f=a[2],d=a[3];return{type:nu,value:f,prefixSegment:c||void 0,suffixSegment:d||void 0}}const l=i.match(Jk);if(l){const c=l[1],f=l[2],d=l[3];return{type:xl,value:""+f,prefixSegment:c||void 0,suffixSegment:d||void 0}}if(Qk.test(i)){const c=i.substring(1);return{type:xl,value:"$"+c,prefixSegment:void 0,suffixSegment:void 0}}return tV.test(i)?{type:tu,value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:vr,value:i}})),n.slice(-1)==="/"&&(n=n.substring(1),e.push({type:vr,value:"/"})),e}function Mp({path:n,params:e,leaveWildcards:t,leaveParams:i,decodeCharMap:s,parseCache:a}){const l=iu(n,a);function c(g){const v=e[g],x=typeof v=="string";return g==="*"||g==="_splat"?x?encodeURI(v):v:x?sV(v,s):v}let f=!1;const d={},h=ia(l.map(g=>{if(g.type===vr)return g.value;if(g.type===tu){d._splat=e._splat,d["*"]=e._splat;const v=g.prefixSegment||"",x=g.suffixSegment||"";if(!e._splat)return f=!0,t?`${v}${g.value}${x}`:v||x?`${v}${x}`:void 0;const b=c("_splat");return t?`${v}${g.value}${b??""}${x}`:`${v}${b}${x}`}if(g.type===xl){const v=g.value.substring(1);!f&&!(v in e)&&(f=!0),d[v]=e[v];const x=g.prefixSegment||"",b=g.suffixSegment||"";if(i){const _=c(g.value);return`${x}${g.value}${_??""}${b}`}return`${x}${c(v)??"undefined"}${b}`}if(g.type===nu){const v=g.value.substring(1),x=g.prefixSegment||"",b=g.suffixSegment||"";if(!(v in e)||e[v]==null)return t?`${x}${v}${b}`:x||b?`${x}${b}`:void 0;if(d[v]=e[v],i){const _=c(g.value);return`${x}${g.value}${_??""}${b}`}return t?`${x}${v}${c(v)??""}${b}`:`${x}${c(v)??""}${b}`}return g.value}));return{usedParams:d,interpolatedPath:h,isMissingParams:f}}function sV(n,e){let t=encodeURIComponent(n);if(e)for(const[i,s]of e)t=t.replaceAll(i,s);return t}function t_(n,e,t){const i=rV(n,e,t);if(!(e.to&&!i))return i??{}}function rV(n,{to:e,fuzzy:t,caseSensitive:i},s){const a=e,l=iu(n.startsWith("/")?n:`/${n}`,s),c=iu(a.startsWith("/")?a:`/${a}`,s),f={};return aV(l,c,f,t,i)?f:void 0}function aV(n,e,t,i,s){let a=0,l=0;for(;a<n.length||l<e.length;){const c=n[a],f=e[l];if(f){if(f.type===tu){const d=n.slice(a);let h;if(f.prefixSegment||f.suffixSegment){if(!c)return!1;const g=f.prefixSegment||"",v=f.suffixSegment||"",x=c.value;if("prefixSegment"in f&&!x.startsWith(g)||"suffixSegment"in f&&!n[n.length-1]?.value.endsWith(v))return!1;let b=decodeURI(ia(d.map(_=>_.value)));g&&b.startsWith(g)&&(b=b.slice(g.length)),v&&b.endsWith(v)&&(b=b.slice(0,b.length-v.length)),h=b}else h=decodeURI(ia(d.map(g=>g.value)));return t["*"]=h,t._splat=h,!0}if(f.type===vr){if(f.value==="/"&&!c?.value){l++;continue}if(c){if(s){if(f.value!==c.value)return!1}else if(f.value.toLowerCase()!==c.value.toLowerCase())return!1;a++,l++;continue}else return!1}if(f.type===xl){if(!c||c.value==="/")return!1;let d="",h=!1;if(f.prefixSegment||f.suffixSegment){const g=f.prefixSegment||"",v=f.suffixSegment||"",x=c.value;if(g&&!x.startsWith(g)||v&&!x.endsWith(v))return!1;let b=x;g&&b.startsWith(g)&&(b=b.slice(g.length)),v&&b.endsWith(v)&&(b=b.slice(0,b.length-v.length)),d=decodeURIComponent(b),h=!0}else d=decodeURIComponent(c.value),h=!0;h&&(t[f.value.substring(1)]=d,a++),l++;continue}if(f.type===nu){if(!c){l++;continue}if(c.value==="/"){l++;continue}let d="",h=!1;if(f.prefixSegment||f.suffixSegment){const g=f.prefixSegment||"",v=f.suffixSegment||"",x=c.value;if((!g||x.startsWith(g))&&(!v||x.endsWith(v))){let b=x;g&&b.startsWith(g)&&(b=b.slice(g.length)),v&&b.endsWith(v)&&(b=b.slice(0,b.length-v.length)),d=decodeURIComponent(b),h=!0}}else{let g=!0;for(let v=l+1;v<e.length;v++){const x=e[v];
4188if(x?.type===vr&&x.value===c.value){g=!1;break}if(x?.type===xl||x?.type===tu){n.length<e.length&&(g=!1);break}}g&&(d=decodeURIComponent(c.value),h=!0)}h&&(t[f.value.substring(1)]=d,a++),l++;continue}}if(a<n.length&&l>=e.length)return t["**"]=ia(n.slice(a).map(d=>d.value)),!!i&&e[e.length-1]?.value!=="/";if(l<e.length&&a>=n.length){for(let d=l;d<e.length;d++)if(e[d]?.type!==nu)return!1;break}break}return!0}const oV=.75,lV=1,cV=.5,uV=.4,fV=.25,dV=.2,hV=.05,pV=.02,mV=.01,t2=2e-4,n2=1e-4;function i2(n,e){return n.prefixSegment&&n.suffixSegment?e+hV+t2*n.prefixSegment.length+n2*n.suffixSegment.length:n.prefixSegment?e+pV+t2*n.prefixSegment.length:n.suffixSegment?e+mV+n2*n.suffixSegment.length:e}function gV(n){const e=[];return n.forEach((i,s)=>{if(i.isRoot||!i.path)return;const a=Mb(i.fullPath);let l=iu(a),c=0;for(;l.length>c+1&&l[c]?.value==="/";)c++;c>0&&(l=l.slice(c));let f=0,d=!1;const h=l.map((g,v)=>{if(g.value==="/")return oV;if(g.type===vr)return lV;let x;g.type===xl?x=cV:g.type===nu?(x=uV,f++):x=fV;for(let b=v+1;b<l.length;b++){const _=l[b];if(_.type===vr&&_.value!=="/")return d=!0,i2(g,x+dV)}return i2(g,x)});e.push({child:i,trimmed:a,parsed:l,index:s,scores:h,optionalParamCount:f,hasStaticAfter:d})}),e.sort((i,s)=>{const a=Math.min(i.scores.length,s.scores.length);for(let l=0;l<a;l++)if(i.scores[l]!==s.scores[l])return s.scores[l]-i.scores[l];if(i.scores.length!==s.scores.length){if(i.optionalParamCount!==s.optionalParamCount){if(i.hasStaticAfter===s.hasStaticAfter)return i.optionalParamCount-s.optionalParamCount;if(i.hasStaticAfter&&!s.hasStaticAfter)return-1;if(!i.hasStaticAfter&&s.hasStaticAfter)return 1}return s.scores.length-i.scores.length}for(let l=0;l<a;l++)if(i.parsed[l].value!==s.parsed[l].value)return i.parsed[l].value>s.parsed[l].value?1:-1;return i.index-s.index}).map((i,s)=>(i.child.rank=s,i.child))}function vV({routeTree:n,initRoute:e}){const t={},i={},s=l=>{l.forEach((c,f)=>{e?.(c,f);const d=t[c.id];if(aa(!d,`Duplicate routes found with id: ${String(c.id)}`),t[c.id]=c,!c.isRoot&&c.path){const g=eo(c.fullPath);(!i[g]||c.fullPath.endsWith("/"))&&(i[g]=c)}const h=c.children;h?.length&&s(h)})};s([n]);const a=gV(Object.values(t));return{routesById:t,routesByPath:i,flatRoutes:a}}function Ys(n){return!!n?.isNotFound}function xV(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const ym="tsr-scroll-restoration-v1_3",yV=(n,e)=>{let t;return(...i)=>{t||(t=setTimeout(()=>{n(...i),t=null},e))}};function _V(){const n=xV();if(!n)return null;const e=n.getItem(ym);let t=e?JSON.parse(e):{};return{state:t,set:i=>(t=ll(i,t)||t,n.setItem(ym,JSON.stringify(t)))}}const Tp=_V(),n_=n=>n.state.__TSR_key||n.href;function bV(n){const e=[];let t;for(;t=n.parentNode;)e.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(t.children,n)+1})`),n=t;return`${e.reverse().join(" > ")}`.toLowerCase()}let _m=!1;function DR({storageKey:n,key:e,behavior:t,shouldScrollRestoration:i,scrollToTopSelectors:s,location:a}){let l;try{l=JSON.parse(sessionStorage.getItem(n)||"{}")}catch(d){console.error(d);return}const c=e||window.history.state?.__TSR_key,f=l[c];_m=!0;e:{if(i&&f&&Object.keys(f).length>0){for(const g in f){const v=f[g];if(g==="window")window.scrollTo({top:v.scrollY,left:v.scrollX,behavior:t});else if(g){const x=document.querySelector(g);x&&(x.scrollLeft=v.scrollX,x.scrollTop=v.scrollY)}}break e}const d=(a??window.location).hash.split("#",2)[1];if(d){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const v=document.getElementById(d);v&&v.scrollIntoView(g)}break e}const h={top:0,left:0,behavior:t};if(window.scrollTo(h),s)for(const g of s){if(g==="window")continue;const v=typeof g=="function"?g():document.querySelector(g);v&&v.scrollTo(h)}}_m=!1}function SV(n,e){if(!Tp&&!n.isServer||((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isServer||n.isScrollRestorationSetup||!Tp))return;n.isScrollRestorationSetup=!0,_m=!1;const i=n.options.getScrollRestorationKey||n_;window.history.scrollRestoration="manual";const s=a=>{if(_m||!n.isScrollRestoring)return;let l="";if(a.target===document||a.target===window)l="window";else{const f=a.target.getAttribute("data-scroll-restoration-id");f?l=`[data-scroll-restoration-id="${f}"]`:l=bV(a.target)}const c=i(n.state.location);Tp.set(f=>{const d=f[c]||={},h=d[l]||={};if(l==="window")h.scrollX=window.scrollX||0,h.scrollY=window.scrollY||0;else if(l){const g=document.querySelector(l);g&&(h.scrollX=g.scrollLeft||0,h.scrollY=g.scrollTop||0)}return f})};typeof document<"u"&&document.addEventListener("scroll",yV(s,100),!0),n.subscribe("onRendered",a=>{const l=i(a.toLocation);if(!n.resetNextScroll){n.resetNextScroll=!0;return}typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation})||(DR({storageKey:ym,key:l,behavior:n.options.scrollRestorationBehavior,shouldScrollRestoration:n.isScrollRestoring,scrollToTopSelectors:n.options.scrollToTopSelectors,location:n.history.location}),n.isScrollRestoring&&Tp.set(c=>(c[l]||={},c)))})}function wV(n){if(typeof document<"u"&&document.querySelector){const e=n.state.location.state.__hashScrollIntoViewOptions??!0;if(e&&n.state.location.hash!==""){const t=document.getElementById(n.state.location.hash);t&&t.scrollIntoView(e)}}}function EV(n,e=String){const t=new URLSearchParams;for(const i in n){const s=n[i];s!==void 0&&t.set(i,e(s))}return t.toString()}function px(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function MV(n){const e=new URLSearchParams(n),t={};for(const[i,s]of e.entries()){const a=t[i];a==null?t[i]=px(s):Array.isArray(a)?a.push(px(s)):t[i]=[a,px(s)]}return t}const TV=CV(JSON.parse),AV=RV(JSON.stringify,JSON.parse);function CV(n){return e=>{e[0]==="?"&&(e=e.substring(1));const t=MV(e);for(const i in t){const s=t[i];if(typeof s=="string")try{t[i]=n(s)}catch{}}return t}}function RV(n,e){const t=typeof e=="function";
4188function i(s){if(typeof s=="object"&&s!==null)try{return n(s)}catch{}else if(t&&typeof s=="string")try{return e(s),n(s)}catch{}return s}return s=>{const a=EV(s,i);return a?`?${a}`:""}}const Zi="__root__";function PR(n){if(n.statusCode=n.statusCode||n.code||307,!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const e=new Headers(n.headers);n.href&&e.get("Location")===null&&e.set("Location",n.href);const t=new Response(null,{status:n.statusCode,headers:e});if(t.options=n,n.throw)throw t;return t}function hr(n){return n instanceof Response&&!!n.options}function NV(n){const e=new Map;let t,i;const s=a=>{a.next&&(a.prev?(a.prev.next=a.next,a.next.prev=a.prev,a.next=void 0,i&&(i.next=a,a.prev=i)):(a.next.prev=void 0,t=a.next,a.next=void 0,i&&(a.prev=i,i.next=a)),i=a)};return{get(a){const l=e.get(a);if(l)return s(l),l.value},set(a,l){if(e.size>=n&&t){const f=t;e.delete(f.key),f.next&&(t=f.next,f.next.prev=void 0),f===i&&(i=void 0)}const c=e.get(a);if(c)c.value=l,s(c);else{const f={key:a,value:l,prev:i};i&&(i.next=f),i=f,t||(t=f),e.set(a,f)}}}}const $p=n=>{if(!n.rendered)return n.rendered=!0,n.onReady?.()},Zm=(n,e)=>!!(n.preload&&!n.router.state.matches.some(t=>t.id===e)),LR=(n,e)=>{const t=n.router.routesById[e.routeId??""]??n.router.routeTree;!t.options.notFoundComponent&&n.router.options?.defaultNotFoundComponent&&(t.options.notFoundComponent=n.router.options.defaultNotFoundComponent),aa(t.options.notFoundComponent);const i=n.matches.find(s=>s.routeId===t.id);aa(i,"Could not find match for route: "+t.id),n.updateMatch(i.id,s=>({...s,status:"notFound",error:e,isFetching:!1})),e.routerCode==="BEFORE_LOAD"&&t.parentRoute&&(e.routeId=t.parentRoute.id,LR(n,e))},qa=(n,e,t)=>{if(!(!hr(t)&&!Ys(t))){if(hr(t)&&t.redirectHandled&&!t.options.reloadDocument)throw t;if(e){e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.loaderPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loaderPromise=void 0;const i=hr(t)?"redirected":"notFound";n.updateMatch(e.id,s=>({...s,status:i,isFetching:!1,error:t})),Ys(t)&&!t.routeId&&(t.routeId=e.routeId),e._nonReactive.loadPromise?.resolve()}throw hr(t)?(n.rendered=!0,t.options._fromLocation=n.location,t.redirectHandled=!0,t=n.router.resolveRedirect(t),t):(LR(n,t),t)}},OR=(n,e)=>{const t=n.router.getMatch(e);return!!(!n.router.isServer&&t._nonReactive.dehydrated||n.router.isServer&&t.ssr===!1)},Rf=(n,e,t,i)=>{const{id:s,routeId:a}=n.matches[e],l=n.router.looseRoutesById[a];if(t instanceof Promise)throw t;t.routerCode=i,n.firstBadMatchIndex??=e,qa(n,n.router.getMatch(s),t);try{l.options.onError?.(t)}catch(c){t=c,qa(n,n.router.getMatch(s),t)}n.updateMatch(s,c=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:t,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},DV=(n,e,t,i)=>{const s=n.router.getMatch(e),a=n.matches[t-1]?.id,l=a?n.router.getMatch(a):void 0;if(n.router.isShell()){s.ssr=e===Zi;return}if(l?.ssr===!1){s.ssr=!1;return}const c=x=>x===!0&&l?.ssr==="data-only"?"data-only":x,f=n.router.options.defaultSsr??!0;if(i.options.ssr===void 0){s.ssr=c(f);return}if(typeof i.options.ssr!="function"){s.ssr=c(i.options.ssr);return}const{search:d,params:h}=s,g={search:Ap(d,s.searchError),params:Ap(h,s.paramsError),location:n.location,matches:n.matches.map(x=>({index:x.index,pathname:x.pathname,fullPath:x.fullPath,staticData:x.staticData,id:x.id,routeId:x.routeId,search:Ap(x.search,x.searchError),params:Ap(x.params,x.paramsError),ssr:x.ssr}))},v=i.options.ssr(g);if(Ja(v))return v.then(x=>{s.ssr=c(x??f)});s.ssr=c(v??f)},UR=(n,e,t,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;const s=t.options.pendingMs??n.router.options.defaultPendingMs;if(!!(n.onReady&&!n.router.isServer&&!Zm(n,e)&&(t.options.loader||t.options.beforeLoad||FR(t))&&typeof s=="number"&&s!==1/0&&(t.options.pendingComponent??n.router.options?.defaultPendingComponent))){const l=setTimeout(()=>{$p(n)},s);i._nonReactive.pendingTimeout=l}},PV=(n,e,t)=>{const i=n.router.getMatch(e);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;UR(n,e,t,i);const s=()=>{const a=n.router.getMatch(e);a.preload&&(a.status==="redirected"||a.status==="notFound")&&qa(n,a,a.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},LV=(n,e,t,i)=>{const s=n.router.getMatch(e),a=s._nonReactive.loadPromise;s._nonReactive.loadPromise=eu(()=>{a?.resolve()});const{paramsError:l,searchError:c}=s;l&&Rf(n,t,l,"PARSE_PARAMS"),c&&Rf(n,t,c,"VALIDATE_SEARCH"),UR(n,e,i,s);const f=new AbortController,d=n.matches[t-1]?.id,v={...(d?n.router.getMatch(d):void 0)?.context??n.router.options.context??void 0,...s.__routeC
4188ontext};let x=!1;const b=()=>{x||(x=!0,n.updateMatch(e,P=>({...P,isFetching:"beforeLoad",fetchCount:P.fetchCount+1,abortController:f,context:v})))},_=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,n.updateMatch(e,P=>({...P,isFetching:!1}))};if(!i.options.beforeLoad){Zf(()=>{b(),_()});return}s._nonReactive.beforeLoadPromise=eu();const{search:w,params:S,cause:T}=s,M=Zm(n,e),C={search:w,abortController:f,params:S,preload:M,context:v,location:n.location,navigate:P=>n.router.navigate({...P,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:M?"preload":T,matches:n.matches,...n.router.options.additionalContext},N=P=>{if(P===void 0){Zf(()=>{b(),_()});return}(hr(P)||Ys(P))&&(b(),Rf(n,t,P,"BEFORE_LOAD")),Zf(()=>{b(),n.updateMatch(e,O=>({...O,__beforeLoadContext:P,context:{...O.context,...P}})),_()})};let U;try{if(U=i.options.beforeLoad(C),Ja(U))return b(),U.catch(P=>{Rf(n,t,P,"BEFORE_LOAD")}).then(N)}catch(P){b(),Rf(n,t,P,"BEFORE_LOAD")}N(U)},OV=(n,e)=>{const{id:t,routeId:i}=n.matches[e],s=n.router.looseRoutesById[i],a=()=>{if(n.router.isServer){const f=DV(n,t,e,s);if(Ja(f))return f.then(c)}return c()},l=()=>LV(n,t,e,s),c=()=>{if(OR(n,t))return;const f=PV(n,t,s);return Ja(f)?f.then(l):l()};return a()},Qf=(n,e,t)=>{const i=n.router.getMatch(e);if(!i||!t.options.head&&!t.options.scripts&&!t.options.headers)return;const s={matches:n.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([t.options.head?.(s),t.options.scripts?.(s),t.options.headers?.(s)]).then(([a,l,c])=>{const f=a?.meta,d=a?.links,h=a?.scripts,g=a?.styles;return{meta:f,links:d,headScripts:h,headers:c,scripts:l,styles:g}})},IR=(n,e,t,i)=>{const s=n.matchPromises[t-1],{params:a,loaderDeps:l,abortController:c,context:f,cause:d}=n.router.getMatch(e),h=Zm(n,e);return{params:a,deps:l,preload:!!h,parentMatchPromise:s,abortController:c,context:f,location:n.location,navigate:g=>n.router.navigate({...g,_fromLocation:n.location}),cause:h?"preload":d,route:i,...n.router.options.additionalContext}},s2=async(n,e,t,i)=>{try{const s=n.router.getMatch(e);try{(!n.router.isServer||s.ssr===!0)&&BR(i);const a=i.options.loader?.(IR(n,e,t,i)),l=i.options.loader&&Ja(a);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||s._nonReactive.minPendingPromise)&&n.updateMatch(e,g=>({...g,isFetching:"loader"})),i.options.loader){const g=l?await a:a;qa(n,n.router.getMatch(e),g),g!==void 0&&n.updateMatch(e,v=>({...v,loaderData:g}))}i._lazyPromise&&await i._lazyPromise;const f=Qf(n,e,i),d=f?await f:void 0,h=s._nonReactive.minPendingPromise;h&&await h,i._componentsPromise&&await i._componentsPromise,n.updateMatch(e,g=>({...g,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...d}))}catch(a){let l=a;const c=s._nonReactive.minPendingPromise;c&&await c,Ys(a)&&await i.options.notFoundComponent?.preload?.(),qa(n,n.router.getMatch(e),a);try{i.options.onError?.(a)}catch(h){l=h,qa(n,n.router.getMatch(e),h)}const f=Qf(n,e,i),d=f?await f:void 0;n.updateMatch(e,h=>({...h,error:l,status:"error",isFetching:!1,...d}))}}catch(s){const a=n.router.getMatch(e);if(a){const l=Qf(n,e,i);if(l){const c=await l;n.updateMatch(e,f=>({...f,...c}))}a._nonReactive.loaderPromise=void 0}qa(n,a,s)}},UV=async(n,e)=>{const{id:t,routeId:i}=n.matches[e];let s=!1,a=!1;const l=n.router.looseRoutesById[i];if(OR(n,t)){if(n.router.isServer){const d=Qf(n,t,l);if(d){const h=await d;n.updateMatch(t,g=>({...g,...h}))}return n.router.getMatch(t)}}else{const d=n.router.getMatch(t);if(d._nonReactive.loaderPromise){if(d.status==="success"&&!n.sync&&!d.preload)return d;await d._nonReactive.loaderPromise;const h=n.router.getMatch(t);h.error&&qa(n,h,h.error)}else{const h=Date.now()-d.updatedAt,g=Zm(n,t),v=g?l.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:l.options.staleTime??n.router.options.defaultStaleTime??0,x=l.options.shouldReload,b=typeof x=="function"?x(IR(n,t,e,l)):x,_=!!g&&!n.router.state.matches.some(M=>M.id===t),w=n.router.getMatch(t);w._nonReactive.loaderPromise=eu(),_!==w.preload&&n.updateMatch(t,M=>({...M,preload:_}));const{status:S,invalid:T}=w;if(s=S==="success"&&(T||(b??h>v)),!(g&&l.options.preload===!1))if(s&&!n.sync)a=!0,(async()=>{try{await s2(n,t,e,l);const M=n.router.getMatch(t);M._nonReactive.loaderPromise?.resolve(),M._nonReactive.loadPromise?.resolve(),M._nonReactive.loaderPromise=void 0}catch(M){hr(M)&&await n.router.navigate(M.options)}})();else if(S!=="success"||s&&n.sync)await s2(n,t,e,l);else{const M=Qf(n,t,l);if(M){const C=await M;n.updateMatch(t,N=>({...N,...C}))}}}}const c=n.router.getMatch(t);a||(c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loadPromise?.resolve()),clearTimeout(c._nonReactive.pen
4188dingTimeout),c._nonReactive.pendingTimeout=void 0,a||(c._nonReactive.loaderPromise=void 0),c._nonReactive.dehydrated=void 0;const f=a?c.isFetching:!1;return f!==c.isFetching||c.invalid!==!1?(n.updateMatch(t,d=>({...d,isFetching:f,invalid:!1})),n.router.getMatch(t)):c};async function r2(n){const e=Object.assign(n,{matchPromises:[]});!e.router.isServer&&e.router.state.matches.some(t=>t._forcePending)&&$p(e);try{for(let s=0;s<e.matches.length;s++){const a=OV(e,s);Ja(a)&&await a}const t=e.firstBadMatchIndex??e.matches.length;for(let s=0;s<t;s++)e.matchPromises.push(UV(e,s));await Promise.all(e.matchPromises);const i=$p(e);Ja(i)&&await i}catch(t){if(Ys(t)&&!e.preload){const i=$p(e);throw Ja(i)&&await i,t}if(hr(t))throw t}return e.matches}async function BR(n){if(!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(e=>{const{id:t,...i}=e.options;Object.assign(n.options,i),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0),!n._componentsLoaded&&n._componentsPromise===void 0){const e=()=>{const t=[];for(const i of zR){const s=n.options[i]?.preload;s&&t.push(s())}if(t.length)return Promise.all(t).then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0});n._componentsLoaded=!0,n._componentsPromise=void 0};n._componentsPromise=n._lazyPromise?n._lazyPromise.then(e):e()}return n._componentsPromise}function Ap(n,e){return e?{status:"error",error:e}:{status:"success",value:n}}function FR(n){for(const e of zR)if(n.options[e]?.preload)return!0;return!1}const zR=["component","errorComponent","pendingComponent","notFoundComponent"];function IV(n){return{input:({url:e})=>{for(const t of n)e=jR(t,e);return e},output:({url:e})=>{for(let t=n.length-1;t>=0;t--)e=kR(n[t],e);return e}}}function BV(n){const e=Yp(n.basepath),t=`/${e}`,i=`${t}/`,s=n.caseSensitive?t:t.toLowerCase(),a=n.caseSensitive?i:i.toLowerCase();return{input:({url:l})=>{const c=n.caseSensitive?l.pathname:l.pathname.toLowerCase();return c===s?l.pathname="/":c.startsWith(a)&&(l.pathname=l.pathname.slice(t.length)),l},output:({url:l})=>(l.pathname=ia(["/",e,l.pathname]),l)}}function jR(n,e){const t=n?.input?.({url:e});if(t){if(typeof t=="string")return new URL(t);if(t instanceof URL)return t}return e}function kR(n,e){const t=n?.output?.({url:e});if(t){if(typeof t=="string")return new URL(t);if(t instanceof URL)return t}return e}function ul(n){const e=n.resolvedLocation,t=n.location,i=e?.pathname!==t.pathname,s=e?.href!==t.href,a=e?.hash!==t.hash;return{fromLocation:e,toLocation:t,pathChanged:i,hrefChanged:s,hashChanged:a}}class FV{constructor(e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=t=>t(),this.update=t=>{t.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options,s=this.basepath??i?.basepath??"/",a=this.basepath===void 0,l=i?.rewrite;this.options={...i,...t},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(v=>[encodeURIComponent(v),v])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Gk())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Vk(jV(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(v=>!["redirected"].includes(v.status))}}}),SV(this));let c=!1;const f=this.options.basepath??"/",d=this.options.rewrite;if(a||s!==f||l!==d){this.basepath=f;const v=[];Yp(f)!==""&&v.push(BV({basepath:f})),d&&v.push(d),this.rewrite=v.length===0?void 0:v.length===1?v[0]:IV(v),this.history&&this.updateLatestLocation(),c=!0}c&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:t,routesByPath:i,flatRoutes:s}=vV({routeTree:this.routeTree,initRoute:(l,c)=>{l.init({originalIndex:c})}});this.routesById=t,this.routesByPath=i,this.flatRoutes=s;const a=this.options.notFoundRoute;a&&(a.init({originalIndex:99999999999}),this.routesById[a.id]=a)},this.subscribe=(t,i)=>{const s={eventType:t,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=t=>
4188{this.subscribers.forEach(i=>{i.eventType===t.type&&i.fn(t)})},this.parseLocation=(t,i)=>{const s=({href:f,state:d})=>{const h=new URL(f,this.origin),g=jR(this.rewrite,h),v=this.options.parseSearch(g.search),x=this.options.stringifySearch(v);g.search=x;const b=g.href.replace(g.origin,""),{pathname:_,hash:w}=g;return{href:b,publicHref:f,url:g.href,pathname:e2(_),searchStr:x,search:Ss(i?.search,v),hash:w.split("#").reverse()[0]??"",state:Ss(i?.state,d)}},a=s(t),{__tempLocation:l,__tempKey:c}=a.state;if(l&&(!c||c===this.tempLocationKey)){const f=s(l);return f.state.key=a.state.key,f.state.__TSR_key=a.state.__TSR_key,delete f.state.__tempLocation,{...f,maskedLocation:a}}return a},this.resolvePathWithBase=(t,i)=>Zk({base:t,to:Eb(i),trailingSlash:this.options.trailingSlash,parseCache:this.parsePathnameCache}),this.matchRoutes=(t,i,s)=>typeof t=="string"?this.matchRoutesInternal({pathname:t,search:i},s):this.matchRoutesInternal(t,i),this.parsePathnameCache=NV(1e3),this.getMatchedRoutes=(t,i)=>kV({pathname:t,routePathname:i,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes,parseCache:this.parsePathnameCache}),this.cancelMatch=t=>{const i=this.getMatch(t);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.state.pendingMatches?.forEach(t=>{this.cancelMatch(t.id)})},this.buildLocation=t=>{const i=(a={})=>{const l=a._fromLocation||this.latestLocation,c=this.matchRoutes(l,{_buildLocation:!0}),f=e_(c);a.from;const d=a.unsafeRelative==="path"?l.pathname:a.from??f.fullPath,h=this.resolvePathWithBase(d,"."),g=f.search,v={...f.params},x=a.to?this.resolvePathWithBase(h,`${a.to}`):this.resolvePathWithBase(h,"."),b=a.params===!1||a.params===null?{}:(a.params??!0)===!0?v:Object.assign(v,ll(a.params,v)),_=Mp({path:x,params:b,parseCache:this.parsePathnameCache}).interpolatedPath,w=this.matchRoutes(_,void 0,{_buildLocation:!0}).map(L=>this.looseRoutesById[L.routeId]);if(Object.keys(b).length>0)for(const L of w){const z=L.options.params?.stringify??L.options.stringifyParams;z&&Object.assign(b,z(b))}const S=e2(Mp({path:x,params:b,leaveWildcards:!1,leaveParams:t.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath);let T=g;if(t._includeValidateSearch&&this.options.search?.strict){const L={};w.forEach(z=>{if(z.options.validateSearch)try{Object.assign(L,i_(z.options.validateSearch,{...L,...T}))}catch{}}),T=L}T=VV({search:T,dest:a,destRoutes:w,_includeValidateSearch:t._includeValidateSearch}),T=Ss(g,T);const M=this.options.stringifySearch(T),C=a.hash===!0?l.hash:a.hash?ll(a.hash,l.hash):void 0,N=C?`#${C}`:"";let U=a.state===!0?l.state:a.state?ll(a.state,l.state):{};U=Ss(l.state,U);const P=`${S}${M}${N}`,O=new URL(P,this.origin),R=kR(this.rewrite,O);return{publicHref:R.pathname+R.search+R.hash,href:P,url:R.href,pathname:S,search:T,searchStr:M,state:U,hash:C??"",unmaskOnReload:a.unmaskOnReload}},s=(a={},l)=>{const c=i(a);let f=l?i(l):void 0;if(!f){let d={};const h=this.options.routeMasks?.find(g=>{const v=t_(c.pathname,{to:g.from,caseSensitive:!1,fuzzy:!1},this.parsePathnameCache);return v?(d=v,!0):!1});if(h){const{from:g,...v}=h;l={from:t.from,...v,params:d},f=i(l)}}return f&&(c.maskedLocation=f),c};return t.mask?s(t,{from:t.from,...t.mask}):s(t)},this.commitLocation=({viewTransition:t,ignoreBlocker:i,...s})=>{const a=()=>{const f=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];f.forEach(h=>{s.state[h]=this.latestLocation.state[h]});const d=cl(s.state,this.latestLocation.state);return f.forEach(h=>{delete s.state[h]}),d},l=eo(this.latestLocation.href)===eo(s.href),c=this.commitLocationPromise;if(this.commitLocationPromise=eu(()=>{c?.resolve()}),l&&a())this.load();else{let{maskedLocation:f,hashScrollIntoView:d,...h}=s;f&&(h={...f,state:{...f.state,__tempKey:void 0,__tempLocation:{...h,search:h.searchStr,state:{...h.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(h.unmaskOnReload??this.options.unmaskOnReload??!1)&&(h.state.__tempKey=this.tempLocationKey)),h.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=t,this.history[s.replace?"replace":"push"](h.publicHref,h.state,{ignoreBlocker:i})}return this.resetNextScroll=s.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:t,resetScroll:i,hashScrollIntoView:s,viewTransition:a,ignoreBlocker:l,href:c,...f}={})=>
4188{if(c){const h=this.history.location.state.__TSR_index,g=gm(c,{__TSR_index:t?h:h+1});f.to=g.pathname,f.search=this.options.parseSearch(g.search),f.hash=g.hash.slice(1)}const d=this.buildLocation({...f,_includeValidateSearch:!0});return this.commitLocation({...d,viewTransition:a,replace:t,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:l})},this.navigate=({to:t,reloadDocument:i,href:s,...a})=>{if(!i&&s)try{new URL(`${s}`),i=!0}catch{}return i?(s||(s=this.buildLocation({to:t,...a}).url),a.replace?window.location.replace(s):window.location.href=s,Promise.resolve()):this.buildAndCommitLocation({...a,href:s,to:t,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const i=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),s=a=>{try{return encodeURI(decodeURI(a))}catch{return a}};if(Yp(s(this.latestLocation.href))!==Yp(s(i.href))){let a=i.url;throw this.origin&&a.startsWith(this.origin)&&(a=a.replace(this.origin,"")||"/"),PR({href:a})}}const t=this.matchRoutes(this.latestLocation);this.__store.setState(i=>({...i,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:t,cachedMatches:i.cachedMatches.filter(s=>!t.some(a=>a.id===s.id))}))},this.load=async t=>{let i,s,a;for(a=new Promise(c=>{this.startTransition(async()=>{try{this.beforeLoad();const f=this.latestLocation,d=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...ul({resolvedLocation:d,location:f})}),this.emit({type:"onBeforeLoad",...ul({resolvedLocation:d,location:f})}),await r2({router:this,sync:t?.sync,matches:this.state.pendingMatches,location:f,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let h=[],g=[],v=[];Zf(()=>{this.__store.setState(x=>{const b=x.matches,_=x.pendingMatches||x.matches;return h=b.filter(w=>!_.some(S=>S.id===w.id)),g=_.filter(w=>!b.some(S=>S.id===w.id)),v=_.filter(w=>b.some(S=>S.id===w.id)),{...x,isLoading:!1,loadedAt:Date.now(),matches:_,pendingMatches:void 0,cachedMatches:[...x.cachedMatches,...h.filter(w=>w.status!=="error")]}}),this.clearExpiredCache()}),[[h,"onLeave"],[g,"onEnter"],[v,"onStay"]].forEach(([x,b])=>{x.forEach(_=>{this.looseRoutesById[_.routeId].options[b]?.(_)})})})})}})}catch(f){hr(f)?(i=f,this.isServer||this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):Ys(f)&&(s=f),this.__store.setState(d=>({...d,statusCode:i?i.status:s?404:d.matches.some(h=>h.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===a&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),c()})}),this.latestLoadPromise=a,await a;this.latestLoadPromise&&a!==this.latestLoadPromise;)await this.latestLoadPromise;let l;this.hasNotFoundMatch()?l=404:this.__store.state.matches.some(c=>c.status==="error")&&(l=500),l!==void 0&&this.__store.setState(c=>({...c,statusCode:l}))},this.startViewTransition=t=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let s;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const a=this.latestLocation,l=this.state.resolvedLocation,c=typeof i.types=="function"?i.types(ul({resolvedLocation:l,location:a})):i.types;if(c===!1){t();return}s={update:t,types:c}}else s=t;document.startViewTransition(s)}else t()},this.updateMatch=(t,i)=>{const s=this.state.pendingMatches?.some(a=>a.id===t)?"pendingMatches":this.state.matches.some(a=>a.id===t)?"matches":this.state.cachedMatches.some(a=>a.id===t)?"cachedMatches":"";s&&this.__store.setState(a=>({...a,[s]:a[s]?.map(l=>l.id===t?i(l):l)}))},this.getMatch=t=>{const i=s=>s.id===t;return this.state.cachedMatches.find(i)??this.state.pendingMatches?.find(i)??this.state.matches.find(i)},this.invalidate=t=>{const i=s=>t?.filter?.(s)??!0?{...s,invalid:!0,...t?.forcePending||s.status==="error"?{status:"pending",error:void 0}:void 0}:s;return this.__store.setState(s=>({...s,matches:s.matches.map(i),cachedMatches:s.cachedMatches.map(i),pendingMatches:s.pendingMatches?.map(i)})),this.shouldViewTransition=!1,this.load({sync:t?.sync})},this.resolveRedirect=t=>{if(!t.options.href){const i=this.buildLocation(t.options);let s=i.url;this.origin&&s.startsWith(this.origin)&&(s=s.replace(this.origin,"")||"/"),t.options.href=i.href,t.headers.set("Location",s)}return t.headers.get("Location")||t.headers.set("Location",t.options.href),t},this.clearCache=t=>{const i=t?.filter;i!==void 0?this.__store.setState(s=>({...s,cachedMatches:s.cachedMatches.filter(a=>!i(a))})):this.__store.setState(s=>({...s,cachedMatches:[]}))},this.clearExpiredCache=()=>{const t=i=>{const s=this.looseRoutesById[i.routeId];if(!s.options.loader)return!0;const a=(i.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=a};this.clearCache({filter:t})},this.loadRouteChunk=BR,this.preloadRoute=async t=>{const i=this.buildLocation(t);let s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:t});const a=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(c=>c.id)),l=new Set([...a,...this.state.cachedMatches.map(c=>c.id)]);Zf(()=>
4188{s.forEach(c=>{l.has(c.id)||this.__store.setState(f=>({...f,cachedMatches:[...f.cachedMatches,c]}))})});try{return s=await r2({router:this,matches:s,location:i,preload:!0,updateMatch:(c,f)=>{a.has(c)?s=s.map(d=>d.id===c?f(d):d):this.updateMatch(c,f)}}),s}catch(c){if(hr(c))return c.options.reloadDocument?void 0:await this.preloadRoute({...c.options,_fromLocation:i});Ys(c)||console.error(c);return}},this.matchRoute=(t,i)=>{const s={...t,to:t.to?this.resolvePathWithBase(t.from||"",t.to):void 0,params:t.params||{},leaveParams:!0},a=this.buildLocation(s);if(i?.pending&&this.state.status!=="pending")return!1;const c=(i?.pending===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,f=t_(c.pathname,{...i,to:a.pathname},this.parsePathnameCache);return!f||t.params&&!cl(f,t.params,{partial:!0})?!1:f&&(i?.includeSearch??!0)?cl(c.search,a.search,{partial:!0})?f:!1:f},this.hasNotFoundMatch=()=>this.__store.state.matches.some(t=>t.status==="notFound"||t.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??AV,parseSearch:e.parseSearch??TV}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(e,t){const{foundRoute:i,matchedRoutes:s,routeParams:a}=this.getMatchedRoutes(e.pathname,t?.dest?.to);let l=!1;(i?i.path!=="/"&&a["**"]:eo(e.pathname))&&(this.options.notFoundRoute?s.push(this.options.notFoundRoute):l=!0);const c=(()=>{if(l){if(this.options.notFoundMode!=="root")for(let h=s.length-1;h>=0;h--){const g=s[h];if(g.children)return g.id}return Zi}})(),f=[],d=h=>h?.id?h.context??this.options.context??void 0:this.options.context??void 0;return s.forEach((h,g)=>{const v=f[g-1],[x,b,_]=(()=>{const H=v?.search??e.search,Y=v?._strictSearch??void 0;try{const K=i_(h.options.validateSearch,{...H})??void 0;return[{...H,...K},{...Y,...K},void 0]}catch(K){let q=K;if(K instanceof bm||(q=new bm(K.message,{cause:K})),t?.throwOnError)throw q;return[H,{},q]}})(),w=h.options.loaderDeps?.({search:x})??"",S=w?JSON.stringify(w):"",{interpolatedPath:T,usedParams:M}=Mp({path:h.fullPath,params:a,decodeCharMap:this.pathParamsDecodeCharMap}),C=Mp({path:h.id,params:a,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath+S,N=this.getMatch(C),U=this.state.matches.find(H=>H.routeId===h.id),P=N?._strictParams??M;let O;if(!N){const H=h.options.params?.parse??h.options.parseParams;if(H)try{Object.assign(P,H(P))}catch(Y){if(O=new zV(Y.message,{cause:Y}),t?.throwOnError)throw O}}Object.assign(a,P);const R=U?"stay":"enter";let L;if(N)L={...N,cause:R,params:U?Ss(U.params,a):a,_strictParams:P,search:Ss(U?U.search:N.search,x),_strictSearch:b};else{const H=h.options.loader||h.options.beforeLoad||h.lazyFn||FR(h)?"pending":"success";L={id:C,index:g,routeId:h.id,params:U?Ss(U.params,a):a,_strictParams:P,pathname:T,updatedAt:Date.now(),search:U?Ss(U.search,x):x,_strictSearch:b,searchError:void 0,status:H,isFetching:!1,error:void 0,paramsError:O,__routeContext:void 0,_nonReactive:{loadPromise:eu()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:R,loaderDeps:U?Ss(U.loaderDeps,w):w,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:h.options.staticData||{},fullPath:h.fullPath}}t?.preload||(L.globalNotFound=c===h.id),L.searchError=_;const z=d(v);L.context={...z,...L.__routeContext,...L.__beforeLoadContext},f.push(L)}),f.forEach((h,g)=>{const v=this.looseRoutesById[h.routeId];if(!this.getMatch(h.id)&&t?._buildLocation!==!0){const b=f[g-1],_=d(b);if(v.options.context){const w={deps:h.loaderDeps,params:h.params,context:_??{},location:e,navigate:S=>this.navigate({...S,_fromLocation:e}),buildLocation:this.buildLocation,cause:h.cause,abortController:h.abortController,preload:!!h.preload,matches:f};
4188h.__routeContext=v.options.context(w)??void 0}h.context={..._,...h.__routeContext,...h.__beforeLoadContext}}}),f}}class bm extends Error{}class zV extends Error{}function jV(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function i_(n,e){if(n==null)return{};if("~standard"in n){const t=n["~standard"].validate(e);if(t instanceof Promise)throw new bm("Async validation not supported");if(t.issues)throw new bm(JSON.stringify(t.issues,void 0,2),{cause:t});return t.value}return"parse"in n?n.parse(e):typeof n=="function"?n(e):{}}function kV({pathname:n,routePathname:e,caseSensitive:t,routesByPath:i,routesById:s,flatRoutes:a,parseCache:l}){let c={};const f=eo(n),d=x=>t_(f,{to:x.fullPath,caseSensitive:x.options?.caseSensitive??t,fuzzy:!0},l);let h=e!==void 0?i[e]:void 0;if(h)c=d(h);else{let x;for(const b of a){const _=d(b);if(_)if(b.path!=="/"&&_["**"])x||(x={foundRoute:b,routeParams:_});else{h=b,c=_;break}}!h&&x&&(h=x.foundRoute,c=x.routeParams)}let g=h||s[Zi];const v=[g];for(;g.parentRoute;)g=g.parentRoute,v.push(g);return v.reverse(),{matchedRoutes:v,routeParams:c,foundRoute:h}}function VV({search:n,dest:e,destRoutes:t,_includeValidateSearch:i}){const s=t.reduce((c,f)=>{const d=[];if("search"in f.options)f.options.search?.middlewares&&d.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const h=({search:g,next:v})=>{let x=g;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(x=f.options.preSearchFilters.reduce((_,w)=>w(_),g));const b=v(x);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((_,w)=>w(_),b):b};d.push(h)}if(i&&f.options.validateSearch){const h=({search:g,next:v})=>{const x=v(g);try{return{...x,...i_(f.options.validateSearch,x)??void 0}}catch{return x}};d.push(h)}return c.concat(d)},[])??[],a=({search:c})=>e.search?e.search===!0?c:ll(e.search,c):{};s.push(a);const l=(c,f)=>{if(c>=s.length)return f;const d=s[c];return d({search:f,next:g=>l(c+1,g)})};return l(0,n)}const HV="Error preloading route! âï¸";class VR{constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const i=this.options,s=!i?.path&&!i?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=Zi:this.parentRoute||aa(!1);let a=s?Zi:i?.path;a&&a!=="/"&&(a=Mb(a));const l=i?.id||a;let c=s?Zi:ia([this.parentRoute.id===Zi?"":this.parentRoute.id,l]);a===Zi&&(a="/"),c!==Zi&&(c=ia(["/",c]));const f=c===Zi?"/":ia([this.parentRoute.fullPath,a]);this._path=a,this._id=c,this._fullPath=f,this._to=f},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class GV extends VR{constructor(e){super(e)}}function Tb(n){const e=n.errorComponent??Qm;return m.jsx(WV,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:t,reset:i})=>t?A.createElement(e,{error:t,reset:i}):n.children})}class WV extends A.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Qm({error:n}){const[e,t]=A.useState(!1);return m.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[m.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),m.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>t(i=>!i),children:e?"Hide Error":"Show Error"})]}),m.jsx("div",{style:{height:".25rem"}}),e?m.jsx("div",{children:m.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?m.jsx("code",{children:n.message}):null})}):null]})}function XV({children:n,fallback:e=null}){return qV()?m.jsx(Di.Fragment,{children:n}):m.jsx(Di.Fragment,{children:e})}function qV(){return Di.useSyncExternalStore(YV,()=>!0,()=>!1)}function YV(){return()=>{}}var mx={exports:{}},gx={},vx={exports:{}},xx={};var a2;function $V(){if(a2)return xx;a2=1;var n=pu();function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var t=typeof Object.is=="function"?Object.is:e,i=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function c(g,v){var x=v(),b=i({inst:{value:x,getSnapshot:v}}),_=b[0].inst,w=b[1];return a(function(){_.value=x,_.getSnapshot=v,f(_)&&w({inst:_})},[g,x,v]),s(function(){return f(_)&&w({inst:_}),g(function(){f(_)&&w({inst:_})})},[g]),l(x),x}function f(g){var v=g.getSnapshot;g=g.value;try{var x=v();return!t(g,x)}catch{return!0}}function d(g,v){return v()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return xx.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:h,xx}var o2;function KV(){return o2||(o2=1,vx.exports=$V()),vx.exports}var l2;function ZV(){if(l2)return gx;l2=1;var n=pu(),e=KV();function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var i=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,a=n.useRef,l=n.useEffect,c=n.useMemo,f=n.useDebugValue;return gx.useSyncExternalStoreWithSelector=function(d,h,g,v,x){var b=a(null);if(b.current===null){var _={hasValue:!1,value:null};b.current=_}else _=b.current;b=c(function(){function S(U){if(!T){if(T=!0,M=U,U=v(U),x!==void 0&&_.hasValue){var P=_.value;if(x(P,U))return C=P}return C=U}if(P=C,i(M,U))return P;var O=v(U);return x!==void 0&&x(P,O)?(M=U,P):(M=U,C=O)}var T=!1,M,C,N=g===void 0?null:g;return[function(){return S(h())},N===null?void 0:function(){return S(N())}]},[h,g,v,x]);var w=s(d,b[0],b[1]);return l(function(){_.hasValue=!0,_.value=w},[w]),f(w),w},gx}var c2;function QV(){return c2||(c2=1,mx.exports=ZV()),mx.exports}var JV=QV();function e8(n,e=i=>i,t={}){const i=t.equal??t8;return JV.useSyncExternalStoreWithSelector(n.subscribe,()=>n.state,()=>n.state,e,i)}function t8(n,e){if(Object.is(n,e))return!0;
4188if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;if(n instanceof Map&&e instanceof Map){if(n.size!==e.size)return!1;for(const[i,s]of n)if(!e.has(i)||!Object.is(s,e.get(i)))return!1;return!0}if(n instanceof Set&&e instanceof Set){if(n.size!==e.size)return!1;for(const i of n)if(!e.has(i))return!1;return!0}if(n instanceof Date&&e instanceof Date)return n.getTime()===e.getTime();const t=u2(n);if(t.length!==u2(e).length)return!1;for(let i=0;i<t.length;i++)if(!Object.prototype.hasOwnProperty.call(e,t[i])||!Object.is(n[t[i]],e[t[i]]))return!1;return!0}function u2(n){return Object.keys(n).concat(Object.getOwnPropertySymbols(n))}const yx=A.createContext(null);function HR(){return typeof document>"u"?yx:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=yx,yx)}function cs(n){const e=A.useContext(HR());return n?.warn,e}function Oi(n){const e=cs({warn:n?.router===void 0}),t=n?.router||e,i=A.useRef(void 0);return e8(t.__store,s=>{if(n?.select){if(n.structuralSharing??t.options.defaultStructuralSharing){const a=Ss(i.current,n.select(s));return i.current=a,a}return n.select(s)}return s})}const Jm=A.createContext(void 0),n8=A.createContext(void 0);function br(n){const e=A.useContext(n.from?n8:Jm);return Oi({select:i=>{const s=i.matches.find(a=>n.from?n.from===a.routeId:a.id===e);if(aa(!((n.shouldThrow??!0)&&!s),`Could not find ${n.from?`an active match from "${n.from}"`:"a nearest match!"}`),s!==void 0)return n.select?n.select(s):s},structuralSharing:n.structuralSharing})}function Ab(n){return br({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:e=>n.select?n.select(e.loaderData):e.loaderData})}function Cb(n){const{select:e,...t}=n;return br({...t,select:i=>e?e(i.loaderDeps):i.loaderDeps})}function Rb(n){return br({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:e=>{const t=n.strict===!1?e.params:e._strictParams;return n.select?n.select(t):t}})}function Nb(n){return br({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:e=>n.select?n.select(e.search):e.search})}function Db(n){const e=cs();return A.useCallback(t=>e.navigate({...t,from:t.from??n?.from}),[n?.from,e])}var vu=HC();const i8=ub(vu),Cp=typeof window<"u"?A.useLayoutEffect:A.useEffect;function _x(n){const e=A.useRef({value:n,prev:null}),t=e.current.value;return n!==t&&(e.current={value:n,prev:t}),e.current.prev}function s8(n,e,t={},i={}){A.useEffect(()=>{if(!n.current||i.disabled||typeof IntersectionObserver!="function")return;const s=new IntersectionObserver(([a])=>{e(a)},t);return s.observe(n.current),()=>{s.disconnect()}},[e,t,i.disabled,n])}function r8(n){const e=A.useRef(null);return A.useImperativeHandle(n,()=>e.current,[]),e}function a8(n,e){const t=cs(),[i,s]=A.useState(!1),a=A.useRef(!1),l=r8(e),{activeProps:c,inactiveProps:f,activeOptions:d,to:h,preload:g,preloadDelay:v,hashScrollIntoView:x,replace:b,startTransition:_,resetScroll:w,viewTransition:S,children:T,target:M,disabled:C,style:N,className:U,onClick:P,onFocus:O,onMouseEnter:R,onMouseLeave:L,onTouchStart:z,ignoreBlocker:H,params:Y,search:K,hash:q,state:B,mask:W,reloadDocument:j,unsafeRelative:ae,from:fe,_fromLocation:G,...ee}=n,me=Oi({select:V=>V.location.search,structuralSharing:!0}),ve=n.from,ge=A.useMemo(()=>({...n,from:ve}),[t,me,ve,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),ie=A.useMemo(()=>t.buildLocation({...ge}),[t,ge]),Z=A.useMemo(()=>{if(C)return;let V=ie.maskedLocation?ie.maskedLocation.url:ie.url,I=!1;return t.origin&&(V.startsWith(t.origin)?V=t.history.createHref(V.replace(t.origin,""))||"/":I=!0),{href:V,external:I}},[C,ie.maskedLocation,ie.url,t.origin,t.history]),xe=A.useMemo(()=>{if(Z?.external)return Z.href;try{return new URL(h),h}catch{}},[h,Z]),Me=n.reloadDocument||xe?!1:g??t.options.defaultPreload,Ae=v??t.options.defaultPreloadDelay??0,Be=Oi({select:V=>{if(xe)return!1;if(d?.exact){if(!$k(V.location.pathname,ie.pathname,t.basepath))return!1}else{const I=xm(V.location.pathname,t.basepath),re=xm(ie.pathname,t.basepath);if(!(I.startsWith(re)&&(I.length===re.length||I[re.length]==="/")))return!1}return(d?.includeSearch??!0)&&!cl(V.location.search,ie.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndef
4188ined})?!1:d?.includeHash?V.location.hash===ie.hash:!0}}),Xe=A.useCallback(()=>{t.preloadRoute({...ge}).catch(V=>{console.warn(V),console.warn(HV)})},[t,ge]),X=A.useCallback(V=>{V?.isIntersecting&&Xe()},[Xe]);s8(l,X,f8,{disabled:!!C||Me!=="viewport"}),A.useEffect(()=>{a.current||!C&&Me==="render"&&(Xe(),a.current=!0)},[C,Xe,Me]);const He=V=>{const I=V.currentTarget.getAttribute("target"),re=M!==void 0?M:I;if(!C&&!d8(V)&&!V.defaultPrevented&&(!re||re==="_self")&&V.button===0){V.preventDefault(),vu.flushSync(()=>{s(!0)});const be=t.subscribe("onResolved",()=>{be(),s(!1)});t.navigate({...ge,replace:b,resetScroll:w,hashScrollIntoView:x,startTransition:_,viewTransition:S,ignoreBlocker:H})}};if(xe)return{...ee,ref:l,href:xe,...T&&{children:T},...M&&{target:M},...C&&{disabled:C},...N&&{style:N},...U&&{className:U},...P&&{onClick:P},...O&&{onFocus:O},...R&&{onMouseEnter:R},...L&&{onMouseLeave:L},...z&&{onTouchStart:z}};const qe=V=>{C||Me&&Xe()},Le=qe,Pe=V=>{if(!(C||!Me))if(!Ae)Xe();else{const I=V.target;if(Nf.has(I))return;const re=setTimeout(()=>{Nf.delete(I),Xe()},Ae);Nf.set(I,re)}},_t=V=>{if(C||!Me||!Ae)return;const I=V.target,re=Nf.get(I);re&&(clearTimeout(re),Nf.delete(I))},Fe=Be?ll(c,{})??o8:bx,lt=Be?bx:ll(f,{})??bx,tn=[U,Fe.className,lt.className].filter(Boolean).join(" "),ln=(N||Fe.style||lt.style)&&{...N,...Fe.style,...lt.style};return{...ee,...Fe,...lt,href:Z?.href,ref:l,onClick:Df([P,He]),onFocus:Df([O,qe]),onMouseEnter:Df([R,Pe]),onMouseLeave:Df([L,_t]),onTouchStart:Df([z,Le]),disabled:!!C,target:M,...ln&&{style:ln},...tn&&{className:tn},...C&&l8,...Be&&c8,...i&&u8}}const bx={},o8={className:"active"},l8={role:"link","aria-disabled":!0},c8={"data-status":"active","aria-current":"page"},u8={"data-transitioning":"transitioning"},Nf=new WeakMap,f8={rootMargin:"100px"},Df=n=>e=>{for(const t of n)if(t){if(e.defaultPrevented)return;t(e)}},GR=A.forwardRef((n,e)=>{const{_asChild:t,...i}=n,{type:s,ref:a,...l}=a8(i,e),c=typeof i.children=="function"?i.children({isActive:l["data-status"]==="active"}):i.children;return t===void 0&&delete l.disabled,A.createElement(t||"a",{...l,ref:a},c)});function d8(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}class h8 extends VR{constructor(e){super(e),this.useMatch=t=>br({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>br({...t,from:this.id,select:i=>t?.select?t.select(i.context):i.context}),this.useSearch=t=>Nb({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Rb({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Cb({...t,from:this.id}),this.useLoaderData=t=>Ab({...t,from:this.id}),this.useNavigate=()=>Db({from:this.fullPath}),this.Link=Di.forwardRef((t,i)=>m.jsx(GR,{ref:i,from:this.fullPath,...t})),this.$$typeof=Symbol.for("react.memo")}}function Zs(n){return new h8(n)}class p8 extends GV{constructor(e){super(e),this.useMatch=t=>br({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>br({...t,from:this.id,select:i=>t?.select?t.select(i.context):i.context}),this.useSearch=t=>Nb({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Rb({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Cb({...t,from:this.id}),this.useLoaderData=t=>Ab({...t,from:this.id}),this.useNavigate=()=>Db({from:this.fullPath}),this.Link=Di.forwardRef((t,i)=>m.jsx(GR,{ref:i,from:this.fullPath,...t})),this.$$typeof=Symbol.for("react.memo")}}function m8(n){return new p8(n)}function f2(n){return typeof n=="object"?new d2(n,{silent:!0}).createRoute(n):new d2(n,{silent:!0}).createRoute}class d2{constructor(e,t){this.path=e,this.createRoute=i=>{this.silent;const s=Zs(i);return s.isRoot=!1,s},this.silent=t?.silent}}class h2{constructor(e){this.useMatch=t=>br({select:t?.select,from:this.options.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>br({from:this.options.id,select:i=>t?.select?t.select(i.context):i.context}),this.useSearch=t=>Nb({select:t?.select,structuralSharing:t?.structuralSharing,from:this.options.id}),this.useParams=t=>Rb({select:t?.select,structuralSharing:t?.structuralSharing,from:this.options.id}),this.useLoaderDeps=t=>Cb({...t,from:this.options.id}),this.useLoaderData=t=>Ab({...t,from:this.options.id}),this.useNavigate=()=>{const t=cs();return Db({from:t.routesById[this.options.id].fullPath})},this.options=e,this.$$typeof=Symbol.for("react.memo")}}function p2(n){return typeof n=="object"?new h2(n):e=>new h2({id:n,...e})}function g8(){const n=cs(),e=A.useRef({router:n,mounted:!1}),[t,i]=A.useState(!1),{hasPendingMatches:s,isLoading:a}=Oi({select:g=>({isLoading:g.isLoading,hasPendingMatches:g.matches.some(v=>v.status==="pending")}),structuralSharing:!0}),l=_x(a),c=a||t||s,f=_x(c),d=a||s,h=_x(d);return n.startTransition=g=>{i(!0),A.startTransition(()=>{g(),i(!1)})},A.useEffect(()=>{const g=n.history.subscribe(n.load),v=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return eo(n.latestLocation.href)!==eo(v.href)&&n.commitLocation({...v,replace:!0}),()=>{g()}},[n,n.history]),Cp(()=>
4188{if(typeof window<"u"&&n.ssr||e.current.router===n&&e.current.mounted)return;e.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(v){console.error(v)}})()},[n]),Cp(()=>{l&&!a&&n.emit({type:"onLoad",...ul(n.state)})},[l,n,a]),Cp(()=>{h&&!d&&n.emit({type:"onBeforeRouteMount",...ul(n.state)})},[d,h,n]),Cp(()=>{f&&!c&&(n.emit({type:"onResolved",...ul(n.state)}),n.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),wV(n))},[c,f,n]),null}function v8(n){const e=Oi({select:t=>`not-found-${t.location.pathname}-${t.status}`});return m.jsx(Tb,{getResetKey:()=>e,onCatch:(t,i)=>{if(Ys(t))n.onCatch?.(t,i);else throw t},errorComponent:({error:t})=>{if(Ys(t))return n.fallback?.(t);throw t},children:n.children})}function x8(){return m.jsx("p",{children:"Not Found"})}function Ac(n){return m.jsx(m.Fragment,{children:n.children})}function WR(n,e,t){return e.options.notFoundComponent?m.jsx(e.options.notFoundComponent,{data:t}):n.options.defaultNotFoundComponent?m.jsx(n.options.defaultNotFoundComponent,{data:t}):m.jsx(x8,{})}function y8({children:n}){const e=cs();return e.isServer?m.jsx("script",{nonce:e.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:[n].filter(Boolean).join(` 4189`)+";$_TSR.c()"}}):null}function _8(){const n=cs();if(!n.isScrollRestoring||!n.isServer||typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation}))return null;const t=(n.options.getScrollRestorationKey||n_)(n.latestLocation),i=t!==n_(n.latestLocation)?t:void 0,s={storageKey:ym,shouldScrollRestoration:!0};return i&&(s.key=i),m.jsx(y8,{children:`(${DR.toString()})(${JSON.stringify(s)})`})}const XR=A.memo(function({matchId:e}){const t=cs(),i=Oi({select:S=>{const T=S.matches.find(M=>M.id===e);return aa(T),{routeId:T.routeId,ssr:T.ssr,_displayPending:T._displayPending}},structuralSharing:!0}),s=t.routesById[i.routeId],a=s.options.pendingComponent??t.options.defaultPendingComponent,l=a?m.jsx(a,{}):null,c=s.options.errorComponent??t.options.defaultErrorComponent,f=s.options.onCatch??t.options.defaultOnCatch,d=s.isRoot?s.options.notFoundComponent??t.options.notFoundRoute?.options.component:s.options.notFoundComponent,h=i.ssr===!1||i.ssr==="data-only",g=(!s.isRoot||s.options.wrapInSuspense||h)&&(s.options.wrapInSuspense??a??(s.options.errorComponent?.preload||h))?A.Suspense:Ac,v=c?Tb:Ac,x=d?v8:Ac,b=Oi({select:S=>S.loadedAt}),_=Oi({select:S=>{const T=S.matches.findIndex(M=>M.id===e);return S.matches[T-1]?.routeId}}),w=s.isRoot?s.options.shellComponent??Ac:Ac;return m.jsxs(w,{children:[m.jsx(Jm.Provider,{value:e,children:m.jsx(g,{fallback:l,children:m.jsx(v,{getResetKey:()=>b,errorComponent:c||Qm,onCatch:(S,T)=>{if(Ys(S))throw S;f?.(S,T)},children:m.jsx(x,{fallback:S=>
4189{if(!d||S.routeId&&S.routeId!==i.routeId||!S.routeId&&!s.isRoot)throw S;return A.createElement(d,S)},children:h||i._displayPending?m.jsx(XV,{fallback:l,children:m.jsx(m2,{matchId:e})}):m.jsx(m2,{matchId:e})})})})}),_===Zi&&t.options.scrollRestoration?m.jsxs(m.Fragment,{children:[m.jsx(b8,{}),m.jsx(_8,{})]}):null]})});function b8(){const n=cs(),e=A.useRef(void 0);return m.jsx("script",{suppressHydrationWarning:!0,ref:t=>{t&&(e.current===void 0||e.current.href!==n.latestLocation.href)&&(n.emit({type:"onRendered",...ul(n.state)}),e.current=n.latestLocation)}},n.latestLocation.state.__TSR_key)}const m2=A.memo(function({matchId:e}){const t=cs(),{match:i,key:s,routeId:a}=Oi({select:f=>{const d=f.matches.find(b=>b.id===e),h=d.routeId,v=(t.routesById[h].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:h,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return{key:v?JSON.stringify(v):void 0,routeId:h,match:{id:d.id,status:d.status,error:d.error,_forcePending:d._forcePending,_displayPending:d._displayPending}}},structuralSharing:!0}),l=t.routesById[a],c=A.useMemo(()=>{const f=l.options.component??t.options.defaultComponent;return f?m.jsx(f,{},s):m.jsx(qR,{})},[s,l.options.component,t.options.defaultComponent]);if(i._displayPending)throw t.getMatch(i.id)?._nonReactive.displayPendingPromise;if(i._forcePending)throw t.getMatch(i.id)?._nonReactive.minPendingPromise;if(i.status==="pending"){const f=l.options.pendingMinMs??t.options.defaultPendingMinMs;if(f){const d=t.getMatch(i.id);if(d&&!d._nonReactive.minPendingPromise&&!t.isServer){const h=eu();d._nonReactive.minPendingPromise=h,setTimeout(()=>{h.resolve(),d._nonReactive.minPendingPromise=void 0},f)}}throw t.getMatch(i.id)?._nonReactive.loadPromise}if(i.status==="notFound")return aa(Ys(i.error)),WR(t,l,i.error);if(i.status==="redirected")throw aa(hr(i.error)),t.getMatch(i.id)?._nonReactive.loadPromise;if(i.status==="error"){if(t.isServer){const f=(l.options.errorComponent??t.options.defaultErrorComponent)||Qm;return m.jsx(f,{error:i.error,reset:void 0,info:{componentStack:""}})}throw i.error}return c}),qR=A.memo(function(){const e=cs(),t=A.useContext(Jm),i=Oi({select:d=>d.matches.find(h=>h.id===t)?.routeId}),s=e.routesById[i],a=Oi({select:d=>{const g=d.matches.find(v=>v.id===t);return aa(g),g.globalNotFound}}),l=Oi({select:d=>{const h=d.matches,g=h.findIndex(v=>v.id===t);return h[g+1]?.id}}),c=e.options.defaultPendingComponent?m.jsx(e.options.defaultPendingComponent,{}):null;if(a)return WR(e,s,void 0);if(!l)return null;const f=m.jsx(XR,{matchId:l});return t===Zi?m.jsx(A.Suspense,{fallback:c,children:f}):f});function S8(){const n=cs(),t=n.routesById[Zi].options.pendingComponent??n.options.defaultPendingComponent,i=t?m.jsx(t,{}):null,s=n.isServer||typeof document<"u"&&n.ssr?Ac:A.Suspense,a=m.jsxs(s,{fallback:i,children:[!n.isServer&&m.jsx(g8,{}),m.jsx(w8,{})]});return n.options.InnerWrap?m.jsx(n.options.InnerWrap,{children:a}):a}function w8(){const n=cs(),e=Oi({select:s=>s.matches[0]?.id}),t=Oi({select:s=>s.loadedAt}),i=e?m.jsx(XR,{matchId:e}):null;return m.jsx(Jm.Provider,{value:e,children:n.options.disableGlobalCatchBoundary?i:m.jsx(Tb,{getResetKey:()=>t,errorComponent:Qm,onCatch:s=>{s.message||s.toString()},children:i})})}const E8=n=>new M8(n);class M8 extends FV{constructor(e){super(e)}}typeof globalThis<"u"?(globalThis.createFileRoute=f2,globalThis.createLazyFileRoute=p2):typeof window<"u"&&(window.createFileRoute=f2,window.createLazyFileRoute=p2);function T8({router:n,children:e,...t}){Object.keys(t).length>0&&n.update({...n.options,...t,context:{...n.options.context,...t.context}});const i=HR(),s=m.jsx(i.Provider,{value:n,children:e});return n.options.Wrap?m.jsx(n.options.Wrap,{children:s}):s}function A8({router:n,...e}){return m.jsx(T8,{router:n,...e,children:m.jsx(S8,{})})}function C8(){const[n,e]=A.useState(!1);return A.useEffect(()=>{e(!0)},[]),m.jsxs("section",{className:"relative w-full h-[100vh] flex items-center justify-center overflow-hidden bg-gradient-to-br from-slate-00 via-slate-800 to-slate-900",children:[m.jsxs("div",{className:"absolute inset-0",children:[m.jsx("img",{src:"/homepage_image.jpg",alt:"Streamline Backgroun
4189d",className:"w-full h-full object-cover opacity-30"}),m.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-slate-900/80 via-slate-900/80 to-slate-900/80"})]}),m.jsx("div",{className:"relative z-10 max-w-5xl flex flex-col items-center mx-auto px-6 md:px-12 text-center",children:m.jsxs("div",{className:`space-y-8 transition-all duration-1000 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:[m.jsx("div",{className:"inline-block",children:m.jsx("span",{className:"inline-flex items-center px-6 py-2 rounded-full bg-purple-300/20 border border-sky-500/30 text-purple-200 text-sm font-medium backdrop-blur-sm opacity-76 shadow-lg shadow-purple-800/40",children:"Especialistas em Engenharia de Redes e de Sistemas de Informação"})}),m.jsx("h1",{className:"!text-4xl md:!text-6xl lg:!text-6xl text-white font-medium [letter-spacing:-0.02em]",children:"Tornamos os Processos de Sistemas e TI Mais Eficientes"}),m.jsx("p",{className:"text-base text-white/70 font-light mt-5 max-w-xl mx-auto",children:"Ajudamos a tornar os seus sistemas e processos de TI mais rápidos, seguros e eficientes, com soluções personalizadas para o seu negócio."}),m.jsx("div",{className:"pt-4",children:m.jsx("a",{href:"/contacto",className:` 4190 inline-flex items-center justify-center 4191 px-5 py-2 4192 rounded-full 4193 bg-gradient-to-r from-violet-600 via-purple-600 to-fuchsia-600 4194 text-white text-lg font-semibold 4195 shadow-2xl shadow-purple-500/50 4196 hover:shadow-purple-500/70 4197 hover:scale-105 4198 transition-all duration-300 4199 `,children:"Contacte-nos"})})]})}),m.jsx("div",{className:"absolute inset-x-0 bottom-0 h-30 bg-gradient-to-t from-[#060010] to-slate-900"})]})}const Pb=A.createContext({});function xu(n){const e=A.useRef(null);return e.current===null&&(e.current=n()),e.current}const Lb=typeof window<"u",eg=Lb?A.useLayoutEffect:A.useEffect,tg=A.createContext(null);function Ob(n,e){n.indexOf(e)===-1&&n.push(e)}function Ub(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const Sr=(n,e,t)=>t>e?e:t<n?n:t;let pd=()=>{};const oa={},YR=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function $R(n){return typeof n=="object"&&n!==null}const KR=n=>/^0[^.\s]+$/u.test(n);function Ib(n){let e;return()=>(e===void 0&&(e=n()),e)}const Ui=n=>n,R8=(n,e)=>t=>e(n(t)),Bd=(...n)=>n.reduce(R8),su=(n,e,t)=>{const i=e-n;return i===0?1:(t-n)/i};class Bb{constructor(){this.subscriptions=[]}add(e){return Ob(this.subscriptions,e),()=>Ub(this.subscriptions,e)}notify(e,t,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,t,i);else for(let a=0;a<s;a++){const l=this.subscriptions[a];l&&l(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const xr=n=>n*1e3,Ts=n=>n/1e3;function Fb(n,e){return e?n*(1e3/e):0}const ZR=(n,e,t)=>(((1-3*t+3*e)*n+(3*t-6*e))*n+3*e)*n,N8=1e-7,D8=12;function P8(n,e,t,i,s){let a,l,c=0;do l=e+(t-e)/2,a=ZR(l,i,s)-n,a>0?t=l:e=l;while(Math.abs(a)>N8&&++c<D8);return l}function Fd(n,e,t,i){if(n===e&&t===i)return Ui;const s=a=>P8(a,0,1,n,t);return a=>a===0||a===1?a:ZR(s(a),e,i)}const QR=n=>e=>e<=.5?n(2*e)/2:(2-n(2*(1-e)))/2,JR=n=>e=>1-n(1-e),eN=Fd(.33,1.53,.69,.99),zb=JR(eN),tN=QR(zb),nN=n=>(n*=2)<1?.5*zb(n):.5*(2-Math.pow(2,-10*(n-1))),jb=n=>1-Math.sin(Math.acos(n)),iN=JR(jb),sN=QR(jb),L8=Fd(.42,0,1,1),O8=Fd(0,0,.58,1),rN=Fd(.42,0,.58,1),U8=n=>Array.isArray(n)&&typeof n[0]!="number",aN=n=>Array.isArray(n)&&typeof n[0]=="number",I8={linear:Ui,easeIn:L8,easeInOut:rN,easeOut:O8,circIn:jb,circInOut:sN,circOut:iN,backIn:zb,backInOut:tN,backOut:eN,anticipate:nN},B8=n=>typeof n=="string",g2=n=>{if(aN(n)){pd(n.length===4);const[e,t,i,s]=n;return Fd(e,t,i,s)}else if(B8(n))return I8[n];return n},Rp=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function F8(n,e){let t=new Set,i=new Set,s=!1,a=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(h){l.has(h)&&(d.schedule(h),n()),h(c)}const d={schedule:(h,g=!1,v=!1)=>{const b=v&&s?t:i;return g&&l.add(h),b.has(h)||b.add(h),h},cancel:h=>{i.delete(h),l.delete(h)},process:h=>{if(c=h,s){a=!0;return}s=!0,[t,i]=[i,t],t.forEach(f),t.clear(),s=!1,a&&(a=!1,d.process(h))}};return d}const z8=40;function oN(n,e){let t=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>t=!0,l=Rp.reduce((M,C)=>(M[C]=F8(a),M),{}),{setup:c,read:f,resolveKeyframes:d,preUpdate:h,update:g,preRender:v,render:x,postRender:b}=l,_=()=>{const M=oa.useManualTiming?s.timestamp:performance.now();t=!1,oa.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(M-s.timestamp,z8),1)),s.timestamp=M,s.isProcessing=!0,c.process(s),f.process(s),d.process(s),h.process(s),g.process(s),v.process(s),x.process(s),b.process(s),s.isProcessing=!1,t&&e&&(i=!1,n(_))},w=()=>{t=!0,i=!0,s.isProcessing||n(_)};return{schedule:Rp.reduce((M,C)=>{const N=l[C];return M[C]=(U,P=!1,O=!1)=>(t||w(),N.schedule(U,P,O)),M},{}),cancel:M=>{for(let C=0;C<Rp.length;C++)l[Rp[C]].cancel(M)},state:s,steps:l}}const{schedule:It,cancel:Ps,state:Zn,steps:Sx}=oN(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ui,!0);let Kp;function j8(){Kp=void 0}const Li={now:()=>(Kp===void 0&&Li.set(Zn.isProcessing||oa.useManualTiming?Zn.timestamp:performance.now()),Kp),set
vendor: 34,552 bytes, line 4199
4199:n=>{Kp=n,queueMicrotask(j8)}},lN=n=>e=>typeof e=="string"&&e.startsWith(n),kb=lN("--"),k8=lN("var(--"),Vb=n=>k8(n)?V8.test(n.split("/*")[0].trim()):!1,V8=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yu={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},md={...yu,transform:n=>Sr(0,1,n)},Np={...yu,default:1},Jf=n=>Math.round(n*1e5)/1e5,Hb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function H8(n){return n==null}const G8=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Gb=(n,e)=>t=>!!(typeof t=="string"&&G8.test(t)&&t.startsWith(n)||e&&!H8(t)&&Object.prototype.hasOwnProperty.call(t,e)),cN=(n,e,t)=>i=>{if(typeof i!="string")return i;const[s,a,l,c]=i.match(Hb);return{[n]:parseFloat(s),[e]:parseFloat(a),[t]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},W8=n=>Sr(0,255,n),wx={...yu,transform:n=>Math.round(W8(n))},il={test:Gb("rgb","red"),parse:cN("red","green","blue"),transform:({red:n,green:e,blue:t,alpha:i=1})=>"rgba("+wx.transform(n)+", "+wx.transform(e)+", "+wx.transform(t)+", "+Jf(md.transform(i))+")"};function X8(n){let e="",t="",i="",s="";return n.length>5?(e=n.substring(1,3),t=n.substring(3,5),i=n.substring(5,7),s=n.substring(7,9)):(e=n.substring(1,2),t=n.substring(2,3),i=n.substring(3,4),s=n.substring(4,5),e+=e,t+=t,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const s_={test:Gb("#"),parse:X8,transform:il.transform},zd=n=>({test:e=>typeof e=="string"&&e.endsWith(n)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${n}`}),Ga=zd("deg"),yr=zd("%"),ft=zd("px"),q8=zd("vh"),Y8=zd("vw"),v2={...yr,parse:n=>yr.parse(n)/100,transform:n=>yr.transform(n*100)},Nc={test:Gb("hsl","hue"),parse:cN("hue","saturation","lightness"),transform:({hue:n,saturation:e,lightness:t,alpha:i=1})=>"hsla("+Math.round(n)+", "+yr.transform(Jf(e))+", "+yr.transform(Jf(t))+", "+Jf(md.transform(i))+")"},Bn={test:n=>il.test(n)||s_.test(n)||Nc.test(n),parse:n=>il.test(n)?il.parse(n):Nc.test(n)?Nc.parse(n):s_.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?il.transform(n):Nc.transform(n),getAnimatableNone:n=>{const e=Bn.parse(n);return e.alpha=0,Bn.transform(e)}},$8=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function K8(n){return isNaN(n)&&typeof n=="string"&&(n.match(Hb)?.length||0)+(n.match($8)?.length||0)>0}const uN="number",fN="color",Z8="var",Q8="var(",x2="${}",J8=/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 gd(n){const e=n.toString(),t=[],i={color:[],number:[],var:[]},s=[];let a=0;const c=e.replace(J8,f=>(Bn.test(f)?(i.color.push(a),s.push(fN),t.push(Bn.parse(f))):f.startsWith(Q8)?(i.var.push(a),s.push(Z8),t.push(f)):(i.number.push(a),s.push(uN),t.push(parseFloat(f))),++a,x2)).split(x2);return{values:t,split:c,indexes:i,types:s}}function dN(n){return gd(n).values}function hN(n){const{split:e,types:t}=gd(n),i=e.length;return s=>{let a="";for(let l=0;l<i;l++)if(a+=e[l],s[l]!==void 0){const c=t[l];c===uN?a+=Jf(s[l]):c===fN?a+=Bn.transform(s[l]):a+=s[l]}return a}}const eH=n=>typeof n=="number"?0:Bn.test(n)?Bn.getAnimatableNone(n):n;function tH(n){const e=dN(n);return hN(n)(e.map(eH))}const ao={test:K8,parse:dN,createTransformer:hN,getAnimatableNone:tH};function Ex(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function nH({hue:n,saturation:e,lightness:t,alpha:i}){n/=360,e/=100,t/=100;let s=0,a=0,l=0;if(!e)s=a=l=t;else{const c=t<.5?t*(1+e):t+e-t*e,f=2*t-c;s=Ex(f,c,n+1/3),a=Ex(f,c,n),l=Ex(f,c,n-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:i}}function Sm(n,e){return t=>t>0?e:n}const vn=(n,e,t)=>n+(e-n)*t,Mx=(n,e,t)=>{const i=n*n,s=t*(e*e-i)+i;return s<0?0:Math.sqrt(s)},iH=[s_,il,Nc],sH=n=>iH.find(e=>e.test(n));function y2(n){const e=sH(n);if(!e)return!1;let t=e.parse(n);return e===Nc&&(t=nH(t)),t}const _2=(n,e)=>{const t=y2(n),i=y2(e);if(!t||!i)return Sm(n,e);const s={...t};return a=>(s.red=Mx(t.red,i.red,a),s.green=Mx(t.green,i.green,a),s.blue=Mx(t.blue,i.blue,a),s.alpha=vn(t.alpha,i.alpha,a),il.transform(s))},r_=new Set(["none","hidden"]);function rH(n,e){return r_.has(n)?t=>t<=0?n:e:t=>t>=1?e:n}function aH(n,e){return t=>vn(n,e,t)}function Wb(n){return typeof n=="number"?aH:typeof n=="string"?Vb(n)?Sm:Bn.test(n)?_2:cH:Array.isArray(n)?pN:typeof n=="object"?Bn.test(n)?_2:oH:Sm}function pN(n,e){const t=[...n],i=t.length,s=n.map((a,l)=>Wb(a)(a,e[l]));return a=>{for(let l=0;l<i;l++)t[l]=s[l](a);return t}}function oH(n,e){const t={...n,...e},i={};for(const s in t)n[s]!==void 0&&e[s]!==void 0&&(i[s]=Wb(n[s])(n[s],e[s]));return s=>{for(const a in i)t[a]=i[a](s);return t}}function lH(n,e){const t=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const a=e.types[s],l=n.indexes[a][i[a]],c=n.values[l]??0;t[s]=c,i[a]++}return t}const cH=(n,e)=>{const t=ao.createTransformer(e),i=gd(n),s=gd(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?r_.has(n)&&!s.values.length||r_.has(e)&&!i.values.length?rH(n,e):Bd(pN(lH(i,s),s.values),t):Sm(n,e)};function mN(n,e,t){return typeof n=="number"&&typeof e=="number"&&typeof t=="number"?vn(n,e,t):Wb(n)(n,e)}const uH=n=>{const e=({timestamp:t})=>n(t);return{start:(t=!0)=>It.update(e,t),stop:()=>Ps(e),now:()=>Zn.isProcessing?Zn.timestamp:Li.now()}},gN=(n,e,t=10)=>{let i="";const s=Math.max(Math.round(e/t),2);for(let a=0;a<s;a++)i+=Math.round(n(a/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},wm=2e4;function Xb(n){let e=0;const t=50;let i=n.next(e);for(;!i.done&&e<wm;)e+=t,i=n.next(e);return e>=wm?1/0:e}function fH(n,e=100,t){const i=t({...n,keyframes:[0,e]}),s=Math.min(Xb(i),wm);return{type:"keyframes",ease:a=>i.next(s*a).value/e,duration:Ts(s)}}const dH=5;function vN(n,e,t){const i=Math.max(e-dH,0);return Fb(t-n(i),e-i)}const Sn={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},Tx=.001;function hH({duration:n=Sn.duration,bounce:e=Sn.bounce,velocity:t=Sn.velocity,mass:i=Sn.mass}){let s,a,l=1-e;l=Sr(Sn.minDamping,Sn.maxDamping,l),n=Sr(Sn.minDuration,Sn.maxDuration,Ts(n)),l<1?(s=d=>{const h=d*l,g=h*n,v=h-t,x=a_(d,l),b=Math.exp(-g);return Tx-v/x*b},a=d=>{const g=d*l*n,v=g*t+t,x=Math.pow(l,2)*Math.pow(d,2)*n,b=Math.exp(-g),_=a_(Math.pow(d,2),l);return(-s(d)+Tx>0?-1:1)*((v-x)*b)/_}):(s=d=>{const h=Math.exp(-d*n),g=(d-t)*n+1;return-Tx+h*g},a=d=>{const h=Math.exp(-d*n),g=(t-d)*(n*n);return h*g});const c=5/n,f=mH(s,a,c);if(n=xr(n),isNaN(f))return{stiffness:Sn.stiffness,damping:Sn.damping,duration:n};{const d=Math.pow(f,2)*i;return{stiffness:d,damping:l*2*Math.sqrt(i*d),duration:n}}}const pH=12;function mH(n,e,t){let i=t;for(let s=1;s<pH;s++)i=i-n(i)/e(i);return i}function a_(n,e){return n*Math.sqrt(1-e*e)}const gH=["duration","bounce"],vH=["stiffness","damping","mass"];function b2(n,e){return e.some(t=>n[t]!==void 0)}function xH(n){let e={velocity:Sn.velocity,stiffness:Sn.stiffness,damping:Sn.damping,mass:Sn.mass,isResolvedFromDuration:!1,...n};if(!b2(n,vH)&&b2(n,gH))if(n.visualDuration){const t=n.visualDuration,i=2*Math.PI/(t*1.2),s=i*i,a=2*Sr(.05,1,1-(n.bounce||0))*Math.sqrt(s);e={...e,mass:Sn.mass,stiffness:s,damping:a}}else{const t=hH(n);e={...e,...t,mass:Sn.mass},e.isResolvedFromDuration=!0}return e}function Em(n=Sn.visualDuration,e=Sn.bounce){const t=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:e}:n;let{restSpeed:i,restDelta:s}=t;const a=t.keyframes[0],l=t.keyframes[t.keyframes.length-1],c={done:!1,value:a},{stiffness:f,damping:d,mass:h,duration:g,velocity:v,isResolvedFromDuration:x}=xH({...t,velocity:-Ts(t.velocity||0)}),b=v||0,_=d/(2*Math.sqrt(f*h)),w=l-a,S=Ts(Math.sqrt(f/h)),T=Math.abs(w)<5;i||(i=T?Sn.restSpeed.granular:Sn.restSpeed.default),s||(s=T?Sn.restDelta.granular:Sn.restDelta.default);let M;if(_<1){const N=a_(S,_);M=U=>{const P=Math.exp(-_*S*U);return l-P*((b+_*S*w)/N*Math.sin(N*U)+w*Math.cos(N*U))}}else if(_===1)M=N=>l-Math.exp(-S*N)*(w+(b+S*w)*N);else{const N=S*Math.sqrt(_*_-1);M=U=>{const P=Math.exp(-_*S*U),O=Math.min(N*U,300);return l-P*((b+_*S*w)*Math.sinh(O)+N*w*Math.cosh(O))/N}}const C={calculatedDuration:x&&g||null,next:N=>{const U=M(N);if(x)c.done=N>=g;else{let P=N===0?b:0;_<1&&(P=N===0?xr(b):vN(M,N,U));const O=Math.abs(P)<=i,R=Math.abs(l-U)<=s;c.done=O&&R}return c.value=c.done?l:U,c},toString:()=>{const N=Math.min(Xb(C),wm),U=gN(P=>C.next(N*P).value,N,30);return N+"ms "+U},toTransition:()=>{}};return C}Em.applyToOptions=n=>{const e=fH(n,100,Em);return n.ease=e.ease,n.duration=xr(e.duration),n.type="keyframes",n};function o_({keyframes:n,velocity:e=0,power:t=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:l,min:c,max:f,restDelta:d=.5,restSpeed:h}){const g=n[0],v={done:!1,value:g},x=O=>c!==void 0&&O<c||f!==void 0&&O>f,b=O=>c===void 0?f:f===void 0||Math.abs(c-O)<Math.abs(f-O)?c:f;let _=t*e;const w=g+_,S=l===void 0?w:l(w);S!==w&&(_=S-g);const T=O=>-_*Math.exp(-O/i),M=O=>S+T(O),C=O=>{const R=T(O),L=M(O);v.done=Math.abs(R)<=d,v.value=v.done?S:L};let N,U;const P=O=>{x(v.value)&&(N=O,U=Em({keyframes:[v.value,b(v.value)],velocity:vN(M,O,v.value),damping:s,stiffness:a,restDelta:d,restSpeed:h}))};return P(0),{calculatedDuration:null,next:O=>{let R=!1;return!U&&N===void 0&&(R=!0,C(O),P(O)),N!==void 0&&O>=N?U.next(O-N):(!R&&C(O),v)}}}function yH(n,e,t){const i=[],s=t||oa.mix||mN,a=n.length-1;for(let l=0;l<a;l++){let c=s(n[l],n[l+1]);if(e){const f=Array.isArray(e)?e[l]||Ui:e;c=Bd(f,c)}i.push(c)}return i}function qb(n,e,{clamp:t=!0,ease:i,mixer:s}={}){const a=n.length;if(pd(a===e.length),a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];const l=n[0]===n[1];n[0]>n[a-1]&&(n=[...n].reverse(),e=[...e].reverse());const c=yH(e,i,s),f=c.length,d=h=>{if(l&&h<n[0])return e[0];let g=0;if(f>1)for(;g<n.length-2&&!(h<n[g+1]);g++);const v=su(n[g],n[g+1],h);return c[g](v)};return t?h=>d(Sr(n[0],n[a-1],h)):d}function _H(n,e){const t=n[n.length-1];for(let i=1;i<=e;i++){const s=su(0,e,i);n.push(vn(t,1,s))}}function xN(n){const e=[0];return _H(e,n.length-1),e}function bH(n,e){return n.map(t=>t*e)}function SH(n,e){return n.map(()=>e||rN).splice(0,n.length-1)}function ed({duration:n=300,keyframes:e,times:t,ease:i="easeInOut"}){const s=U8(i)?i.map(g2):g2(i),a={done:!1,value:e[0]},l=bH(t&&t.length===e.length?t:xN(e),n),c=qb(l,e,{ease:Array.isArray(s)?s:SH(e,s)});return{calculatedDuration:n,next:f=>(a.value=c(f),a.done=f>=n,a)}}const wH=n=>n!==null;function Yb(n,{repeat:e,repeatType:t="loop"},i,s=1){const a=n.filter(wH),c=s<0||e&&t!=="loop"&&e%2===1?0:a.length-1;return!c||i===void 0?a[c]:i}const EH={decay:o_,inertia:o_,tween:ed,keyframes:ed,spring:Em};function yN(n){typeof n.type=="string"&&(n.type=EH[n.type])}class $b{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const MH=n=>n/100;class ng extends $b{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==Li.now()&&this.tick(Li.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;yN(e);const{type:t=ed,repeat:i=0,repeatDelay:s=0,repeatType:a,velocity:l=0}=e;let{keyframes:c}=e;const f=t||ed;f!==ed&&typeof c[0]!="number"&&(this.mixKeyframes=Bd(MH,mN(c[0],c[1])),c=[0,100]);const d=f({...e,keyframes:c});a==="mirror"&&(this.mirroredGenerator=f({...e,keyframes:[...c].reverse(),velocity:-l})),d.calculatedDuration===null&&(d.calculatedDuration=Xb(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=d}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:i,totalDuration:s,mixKeyframes:a,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:d=0,keyframes:h,repeat:g,repeatType:v,repeatDelay:x,type:b,onUpdate:_,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const S=this.currentTime-d*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?S<0:S>s;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let M=this.currentTime,C=i;if(g){const O=Math.min(this.currentTime,s)/c;let R=Math.floor(O),L=O%1;!L&&O>=1&&(L=1),L===1&&R--,R=Math.min(R,g+1),R%2&&(v==="reverse"?(L=1-L,x&&(L-=x/c)):v==="mirror"&&(C=l)),M=Sr(0,1,L)*c}const N=T?{done:!1,value:h[0]}:C.next(M);a&&(N.value=a(N.value));let{done:U}=N;!T&&f!==null&&(U=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return P&&b!==o_&&(N.value=Yb(h,this.options,w,this.speed)),_&&_(N.value),P&&this.finish(),N}then(e,t){return this.finished.then(e,t)}get duration(){return Ts(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ts(e)}get time(){return Ts(this.currentTime)}set time(e){e=xr(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),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Li.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Ts(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=uH,startTime:t}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),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(Li.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}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){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function TH(n){for(let e=1;e<n.length;e++)n[e]??(n[e]=n[e-1])}const sl=n=>n*180/Math.PI,l_=n=>{const e=sl(Math.atan2(n[1],n[0]));return c_(e)},AH={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:l_,rotateZ:l_,skewX:n=>sl(Math.atan(n[1])),skewY:n=>sl(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},c_=n=>(n=n%360,n<0&&(n+=360),n),S2=l_,w2=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),E2=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),CH={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:w2,scaleY:E2,scale:n=>(w2(n)+E2(n))/2,rotateX:n=>c_(sl(Math.atan2(n[6],n[5]))),rotateY:n=>c_(sl(Math.atan2(-n[2],n[0]))),rotateZ:S2,rotate:S2,skewX:n=>sl(Math.atan(n[4])),skewY:n=>sl(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function u_(n){return n.includes("scale")?1:0}function f_(n,e){if(!n||n==="none")return u_(e);const t=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(t)i=CH,s=t;else{const c=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=AH,s=c}if(!s)return u_(e);const a=i[e],l=s[1].split(",").map(NH);return typeof a=="function"?a(l):l[a]}const RH=(n,e)=>{const{transform:t="none"}=getComputedStyle(n);return f_(t,e)};function NH(n){return parseFloat(n.trim())}const _u=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bu=new Set(_u),M2=n=>n===yu||n===ft,DH=new Set(["x","y","z"]),PH=_u.filter(n=>!DH.has(n));function LH(n){const e=[];return PH.forEach(t=>{const i=n.getValue(t);i!==void 0&&(e.push([t,i.get()]),i.set(t.startsWith("scale")?1:0))}),e}const fl={width:({x:n},{paddingLeft:e="0",paddingRight:t="0"})=>n.max-n.min-parseFloat(e)-parseFloat(t),height:({y:n},{paddingTop:e="0",paddingBottom:t="0"})=>n.max-n.min-parseFloat(e)-parseFloat(t),top:(n,{top:e})=>parseFloat(e),left:(n,{left:e})=>parseFloat(e),bottom:({y:n},{top:e})=>parseFloat(e)+(n.max-n.min),right:({x:n},{left:e})=>parseFloat(e)+(n.max-n.min),x:(n,{transform:e})=>f_(e,"x"),y:(n,{transform:e})=>f_(e,"y")};fl.translateX=fl.x;fl.translateY=fl.y;const dl=new Set;let d_=!1,h_=!1,p_=!1;function _N(){if(h_){const n=Array.from(dl).filter(i=>i.needsMeasurement),e=new Set(n.map(i=>i.element)),t=new Map;e.forEach(i=>{const s=LH(i);s.length&&(t.set(i,s),i.render())}),n.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=t.get(i);s&&s.forEach(([a,l])=>{i.getValue(a)?.set(l)})}),n.forEach(i=>i.measureEndState()),n.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}h_=!1,d_=!1,dl.forEach(n=>n.complete(p_)),dl.clear()}function bN(){dl.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(h_=!0)})}function OH(){p_=!0,bN(),_N(),p_=!1}class Kb{constructor(e,t,i,s,a,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=s,this.element=a,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(dl.add(this),d_||(d_=!0,It.read(bN),It.resolveKeyframes(_N))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:i,motionValue:s}=this;if(e[0]===null){const a=s?.get(),l=e[e.length-1];if(a!==void 0)e[0]=a;else if(i&&t){const c=i.readValue(t,l);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=l),s&&a===void 0&&s.set(e[0])}TH(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),dl.delete(this)}cancel(){this.state==="scheduled"&&(dl.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const UH=n=>n.startsWith("--");function IH(n,e,t){UH(e)?n.style.setProperty(e,t):n.style[e]=t}const SN=Ib(()=>window.ScrollTimeline!==void 0),BH={};function FH(n,e){const t=Ib(n);return()=>BH[e]??t()}const wN=FH(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Gf=([n,e,t,i])=>`cubic-bezier(${n}, ${e}, ${t}, ${i})`,T2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gf([0,.65,.55,1]),circOut:Gf([.55,0,1,.45]),backIn:Gf([.31,.01,.66,-.59]),backOut:Gf([.33,1.53,.69,.99])};function EN(n,e){if(n)return typeof n=="function"?wN()?gN(n,e):"ease-out":aN(n)?Gf(n):Array.isArray(n)?n.map(t=>EN(t,e)||T2.easeOut):T2[n]}function zH(n,e,t,{delay:i=0,duration:s=300,repeat:a=0,repeatType:l="loop",ease:c="easeOut",times:f}={},d=void 0){const h={[e]:t};f&&(h.offset=f);const g=EN(c,s);Array.isArray(g)&&(h.easing=g);const v={delay:i,duration:s,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"};return d&&(v.pseudoElement=d),n.animate(h,v)}function MN(n){return typeof n=="function"&&"applyToOptions"in n}function jH({type:n,...e}){return MN(n)&&wN()?n.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class kH extends $b{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:i,keyframes:s,pseudoElement:a,allowFlatten:l=!1,finalKeyframe:c,onComplete:f}=e;this.isPseudoElement=!!a,this.allowFlatten=l,this.options=e,pd(typeof e.type!="string");const d=jH(e);this.animation=zH(t,i,s,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=Yb(s,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(h):IH(t,i,h),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Ts(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ts(e)}get time(){return Ts(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=xr(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:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&SN()?(this.animation.timeline=e,Ui):t(this)}}const TN={anticipate:nN,backInOut:tN,circInOut:sN};function VH(n){return n in TN}function HH(n){typeof n.ease=="string"&&VH(n.ease)&&(n.ease=TN[n.ease])}const A2=10;class GH extends kH{constructor(e){HH(e),yN(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:i,onComplete:s,element:a,...l}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}const c=new ng({...l,autoplay:!1}),f=xr(this.finishedTime??this.time);t.setWithVelocity(c.sample(f-A2).value,c.sample(f).value,A2),c.stop()}}const C2=(n,e)=>e==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(ao.test(n)||n==="0")&&!n.startsWith("url("));function WH(n){const e=n[0];if(n.length===1)return!0;for(let t=0;t<n.length;t++)if(n[t]!==e)return!0}function XH(n,e,t,i){const s=n[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const a=n[n.length-1],l=C2(s,e),c=C2(a,e);return!l||!c?!1:WH(n)||(t==="spring"||MN(t))&&i}function m_(n){n.duration=0,n.type="keyframes"}const qH=new Set(["opacity","clipPath","filter","transform"]),YH=Ib(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function $H(n){const{motionValue:e,name:t,repeatDelay:i,repeatType:s,damping:a,type:l}=n;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:d}=e.owner.getProps();return YH()&&t&&qH.has(t)&&(t!=="transform"||!d)&&!f&&!i&&s!=="mirror"&&a!==0&&l!=="inertia"}const KH=40;class ZH extends $b{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:l="loop",keyframes:c,name:f,motionValue:d,element:h,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Li.now();const v={autoplay:e,delay:t,type:i,repeat:s,repeatDelay:a,repeatType:l,name:f,motionValue:d,element:h,...g},x=h?.KeyframeResolver||Kb;this.keyframeResolver=new x(c,(b,_,w)=>this.onKeyframesResolved(b,_,v,!w),f,d,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,s){this.keyframeResolver=void 0;const{name:a,type:l,velocity:c,delay:f,isHandoff:d,onUpdate:h}=i;this.resolvedAt=Li.now(),XH(e,a,l,c)||((oa.instantAnimations||!f)&&h?.(Yb(e,i,t)),e[0]=e[e.length-1],m_(i),i.repeat=0);const v={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>KH?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},x=!d&&$H(v)?new GH({...v,element:v.motionValue.owner.current}):new ng(v);x.finished.then(()=>this.notifyFinished()).catch(Ui),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),OH()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const QH=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function JH(n){const e=QH.exec(n);if(!e)return[,];const[,t,i,s]=e;return[`--${t??i}`,s]}function AN(n,e,t=1){const[i,s]=JH(n);if(!i)return;const a=window.getComputedStyle(e).getPropertyValue(i);if(a){const l=a.trim();return YR(l)?parseFloat(l):l}return Vb(s)?AN(s,e,t+1):s}function Zb(n,e){return n?.[e]??n?.default??n}const CN=new Set(["width","height","top","left","right","bottom",..._u]),e9={test:n=>n==="auto",parse:n=>n},RN=n=>e=>e.test(n),NN=[yu,ft,yr,Ga,Y8,q8,e9],R2=n=>NN.find(RN(n));function t9(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||KR(n):!0}const n9=new Set(["brightness","contrast","saturate","opacity"]);function i9(n){const[e,t]=n.slice(0,-1).split("(");if(e==="drop-shadow")return n;const[i]=t.match(Hb)||[];if(!i)return n;const s=t.replace(i,"");let a=n9.has(e)?1:0;return i!==t&&(a*=100),e+"("+a+s+")"}const s9=/\b([a-z-]*)\(.*?\)/gu,g_={...ao,getAnimatableNone:n=>{const e=n.match(s9);return e?e.map(i9).join(" "):n}},N2={...yu,transform:Math.round},r9={rotate:Ga,rotateX:Ga,rotateY:Ga,rotateZ:Ga,scale:Np,scaleX:Np,scaleY:Np,scaleZ:Np,skew:Ga,skewX:Ga,skewY:Ga,distance:ft,translateX:ft,translateY:ft,translateZ:ft,x:ft,y:ft,z:ft,perspective:ft,transformPerspective:ft,opacity:md,originX:v2,originY:v2,originZ:ft},Qb={borderWidth:ft,borderTopWidth:ft,borderRightWidth:ft,borderBottomWidth:ft,borderLeftWidth:ft,borderRadius:ft,radius:ft,borderTopLeftRadius:ft,borderTopRightRadius:ft,borderBottomRightRadius:ft,borderBottomLeftRadius:ft,width:ft,maxWidth:ft,height:ft,maxHeight:ft,top:ft,right:ft,bottom:ft,left:ft,padding:ft,paddingTop:ft,paddingRight:ft,paddingBottom:ft,paddingLeft:ft,margin:ft,marginTop:ft,marginRight:ft,marginBottom:ft,marginLeft:ft,backgroundPositionX:ft,backgroundPositionY:ft,...r9,zIndex:N2,fillOpacity:md,strokeOpacity:md,numOctaves:N2},a9={...Qb,color:Bn,backgroundColor:Bn,outlineColor:Bn,fill:Bn,stroke:Bn,borderColor:Bn,borderTopColor:Bn,borderRightColor:Bn,borderBottomColor:Bn,borderLeftColor:Bn,filter:g_,WebkitFilter:g_},DN=n=>a9[n];function PN(n,e){let t=DN(n);return t!==g_&&(t=ao),t.getAnimatableNone?t.getAnimatableNone(e):void 0}const o9=new Set(["auto","none","0"]);function l9(n,e,t){let i=0,s;for(;i<n.length&&!s;){const a=n[i];typeof a=="string"&&!o9.has(a)&&gd(a).values.length&&(s=n[i]),i++}if(s&&t)for(const a of e)n[a]=PN(t,s)}class c9 extends Kb{constructor(e,t,i,s,a){super(e,t,i,s,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let d=e[f];if(typeof d=="string"&&(d=d.trim(),Vb(d))){const h=AN(d,t.current);h!==void 0&&(e[f]=h),f===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!CN.has(i)||e.length!==2)return;const[s,a]=e,l=R2(s),c=R2(a);if(l!==c)if(M2(l)&&M2(c))for(let f=0;f<e.length;f++){const d=e[f];typeof d=="string"&&(e[f]=parseFloat(d))}else fl[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,i=[];for(let s=0;s<e.length;s++)(e[s]===null||t9(e[s]))&&i.push(s);i.length&&l9(e,i,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fl[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const s=t[t.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(t);s&&s.jump(this.measuredOrigin,!1);const a=i.length-1,l=i[a];i[a]=fl[t](e.measureViewportBox(),window.getComputedStyle(e.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,f])=>{e.getValue(c).set(f)}),this.resolveNoneKeyframes()}}function Jb(n,e,t){if(n instanceof EventTarget)return[n];if(typeof n=="string"){const s=document.querySelectorAll(n);return s?Array.from(s):[]}return Array.from(n)}const LN=(n,e)=>e&&typeof n=="number"?e.transform(n):n;function e1(n){return $R(n)&&"offsetHeight"in n}const D2=30,u9=n=>!isNaN(parseFloat(n)),td={current:void 0};class f9{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const s=Li.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Li.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=u9(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Bb);const i=this.events[e].add(t);return e==="change"?()=>{i(),It.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.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 td.current&&td.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Li.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>D2)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,D2);return Fb(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ws(n,e){return new f9(n,e)}const{schedule:t1}=oN(queueMicrotask,!1),js={x:!1,y:!1};function ON(){return js.x||js.y}function d9(n){return n==="x"||n==="y"?js[n]?null:(js[n]=!0,()=>{js[n]=!1}):js.x||js.y?null:(js.x=js.y=!0,()=>{js.x=js.y=!1})}function UN(n,e){const t=Jb(n),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[t,s,()=>i.abort()]}function P2(n){return!(n.pointerType==="touch"||ON())}function h9(n,e,t={}){const[i,s,a]=UN(n,t),l=c=>{if(!P2(c))return;const{target:f}=c,d=e(f,c);if(typeof d!="function"||!f)return;const h=g=>{P2(g)&&(d(g),f.removeEventListener("pointerleave",h))};f.addEventListener("pointerleave",h,s)};return i.forEach(c=>{c.addEventListener("pointerenter",l,s)}),a}const IN=(n,e)=>e?n===e?!0:IN(n,e.parentElement):!1,n1=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,p9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function m9(n){return p9.has(n.tagName)||n.tabIndex!==-1}const Zp=new WeakSet;function L2(n){return e=>{e.key==="Enter"&&n(e)}}function Ax(n,e){n.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const g9=(n,e)=>{const t=n.currentTarget;if(!t)return;const i=L2(()=>{if(Zp.has(t))return;Ax(t,"down");const s=L2(()=>{Ax(t,"up")}),a=()=>Ax(t,"cancel");t.addEventListener("keyup",s,e),t.addEventListener("blur",a,e)});t.addEventListener("keydown",i,e),t.addEventListener("blur",()=>t.removeEventListener("keydown",i),e)};function O2(n){return n1(n)&&!ON()}function v9(n,e,t={}){const[i,s,a]=UN(n,t),l=c=>{const f=c.currentTarget;if(!O2(c))return;Zp.add(f);const d=e(f,c),h=(x,b)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),Zp.has(f)&&Zp.delete(f),O2(x)&&typeof d=="function"&&d(x,{success:b})},g=x=>{h(x,f===window||f===document||t.useGlobalTarget||IN(f,x.target))},v=x=>{h(x,!1)};window.addEventListener("pointerup",g,s),window.addEventListener("pointercancel",v,s)};
4199return i.forEach(c=>{(t.useGlobalTarget?window:c).addEventListener("pointerdown",l,s),e1(c)&&(c.addEventListener("focus",d=>g9(d,s)),!m9(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),a}function i1(n){return $R(n)&&"ownerSVGElement"in n}const Qp=new WeakMap;let Jp;const BN=(n,e,t)=>(i,s)=>s&&s[0]?s[0][n+"Size"]:i1(i)&&"getBBox"in i?i.getBBox()[e]:i[t],x9=BN("inline","width","offsetWidth"),y9=BN("block","height","offsetHeight");function _9({target:n,borderBoxSize:e}){Qp.get(n)?.forEach(t=>{t(n,{get width(){return x9(n,e)},get height(){return y9(n,e)}})})}function b9(n){n.forEach(_9)}function S9(){typeof ResizeObserver>"u"||(Jp=new ResizeObserver(b9))}function w9(n,e){Jp||S9();const t=Jb(n);return t.forEach(i=>{let s=Qp.get(i);s||(s=new Set,Qp.set(i,s)),s.add(e),Jp?.observe(i)}),()=>{t.forEach(i=>{const s=Qp.get(i);s?.delete(e),s?.size||Jp?.unobserve(i)})}}const em=new Set;let Dc;function E9(){Dc=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};em.forEach(e=>e(n))},window.addEventListener("resize",Dc)}function M9(n){return em.add(n),Dc||E9(),()=>{em.delete(n),!em.size&&typeof Dc=="function"&&(window.removeEventListener("resize",Dc),Dc=void 0)}}function T9(n,e){return typeof n=="function"?M9(n):w9(n,e)}function FN(n,e){let t;const i=()=>{const{currentTime:s}=e,l=(s===null?0:s.value)/100;t!==l&&n(l),t=l};return It.preUpdate(i,!0),()=>Ps(i)}function A9(n){return i1(n)&&n.tagName==="svg"}function C9(...n){const e=!Array.isArray(n[0]),t=e?0:-1,i=n[0+t],s=n[1+t],a=n[2+t],l=n[3+t],c=qb(s,a,l);return e?c(i):c}const Jn=n=>!!(n&&n.getVelocity);function R9(n,e,t){const i=n.get();let s=null,a=i,l;const c=typeof i=="string"?i.replace(/[\d.-]/g,""):void 0,f=()=>{s&&(s.stop(),s=null)},d=()=>{f(),s=new ng({keyframes:[I2(n.get()),I2(a)],velocity:n.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:l})};if(n.attach((h,g)=>{a=h,l=v=>g(U2(v,c)),It.postRender(d)},f),Jn(e)){const h=e.on("change",v=>n.set(U2(v,c))),g=n.on("destroy",h);return()=>{h(),g()}}return f}function U2(n,e){return e?n+e:n}function I2(n){return typeof n=="number"?n:parseFloat(n)}const N9=[...NN,Bn,ao],D9=n=>N9.find(RN(n)),Su=A.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function B2(n,e){if(typeof n=="function")return n(e);n!=null&&(n.current=e)}function P9(...n){return e=>{let t=!1;const i=n.map(s=>{const a=B2(s,e);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let s=0;s<i.length;s++){const a=i[s];typeof a=="function"?a():B2(n[s],null)}}}}function L9(...n){return A.useCallback(P9(...n),n)}class O9 extends A.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const i=t.offsetParent,s=e1(i)&&i.offsetWidth||0,a=this.props.sizeRef.current;a.height=t.offsetHeight||0,a.width=t.offsetWidth||0,a.top=t.offsetTop,a.left=t.offsetLeft,a.right=s-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function U9({children:n,isPresent:e,anchorX:t,root:i}){const s=A.useId(),a=A.useRef(null),l=A.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=A.useContext(Su),f=L9(a,n?.ref);return A.useInsertionEffect(()=>{const{width:d,height:h,top:g,left:v,right:x}=l.current;if(e||!a.current||!d||!h)return;const b=t==="left"?`left: ${v}`:`right: ${x}`;a.current.dataset.motionPopId=s;const _=document.createElement("style");c&&(_.nonce=c);const w=i??document.head;return w.appendChild(_),_.sheet&&_.sheet.insertRule(` 4200 [data-motion-pop-id="${s}"] { 4201 position: absolute !important; 4202 width: ${d}px !important; 4203 height: ${h}px !important; 4204 ${b}px !important; 4205 top: ${g}px !important; 4206 } 4207 `),()=>{w.contains(_)&&w.removeChild(_)}},[e]),m.jsx(O9,{isPresent:e,childRef:a,sizeRef:l,children:A.cloneElement(n,{ref:f})})}const I9=({children:n,initial:e,isPresent:t,onExitComplete:i,custom:s,presenceAffectsLayout:a,mode:l,anchorX:c,root:f})=>{const d=xu(B9),h=A.useId();let g=!0,v=A.useMemo(()=>(g=!1,{id:h,initial:e,isPresent:t,custom:s,onExitComplete:x=>{d.set(x,!0);for(const b of d.values())if(!b)return;i&&i()},register:x=>(d.set(x,!1),()=>d.delete(x))}),[t,d,i]);return a&&g&&(v={...v}),A.useMemo(()=>{d.forEach((x,b)=>d.set(b,!1))},[t]),A.useEffect(()=>{!t&&!d.size&&i&&i()},[t]),l==="popLayout"&&(n=m.jsx(U9,{isPresent:t,anchorX:c,root:f,children:n})),m.jsx(tg.Provider,{value:v,children:n})};function B9(){return new Map}function zN(n=!0){const e=A.useContext(tg);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:i,register:s}=e,a=A.useId();A.useEffect(()=>{if(n)return s(a)},[n]);const l=A.useCallback(()=>n&&i&&i(a),[a,i,n]);return!t&&i?[!1,l]:[!0]}const Dp=n=>n.key||"";function F2(n){const e=[];
vendor: 4,470 bytes, line 4207
4207return A.Children.forEach(n,t=>{A.isValidElement(t)&&e.push(t)}),e}const F9=({children:n,custom:e,initial:t=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:a="sync",propagate:l=!1,anchorX:c="left",root:f})=>{const[d,h]=zN(l),g=A.useMemo(()=>F2(n),[n]),v=l&&!d?[]:g.map(Dp),x=A.useRef(!0),b=A.useRef(g),_=xu(()=>new Map),[w,S]=A.useState(g),[T,M]=A.useState(g);eg(()=>{x.current=!1,b.current=g;for(let U=0;U<T.length;U++){const P=Dp(T[U]);v.includes(P)?_.delete(P):_.get(P)!==!0&&_.set(P,!1)}},[T,v.length,v.join("-")]);const C=[];if(g!==w){let U=[...g];for(let P=0;P<T.length;P++){const O=T[P],R=Dp(O);v.includes(R)||(U.splice(P,0,O),C.push(O))}return a==="wait"&&C.length&&(U=C),M(F2(U)),S(g),null}const{forceRender:N}=A.useContext(Pb);return m.jsx(m.Fragment,{children:T.map(U=>{const P=Dp(U),O=l&&!d?!1:g===T||v.includes(P),R=()=>{if(_.has(P))_.set(P,!0);else return;let L=!0;_.forEach(z=>{z||(L=!1)}),L&&(N?.(),M(b.current),l&&h?.(),i&&i())};return m.jsx(I9,{isPresent:O,initial:!x.current||t?void 0:!1,custom:e,presenceAffectsLayout:s,mode:a,root:f,onExitComplete:O?void 0:R,anchorX:c,children:U},P)})})},jN=A.createContext({strict:!1}),z2={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"]},ru={};for(const n in z2)ru[n]={isEnabled:e=>z2[n].some(t=>!!e[t])};function z9(n){for(const e in n)ru[e]={...ru[e],...n[e]}}const j9=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 Mm(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||j9.has(n)}let kN=n=>!Mm(n);function k9(n){typeof n=="function"&&(kN=e=>e.startsWith("on")?!Mm(e):n(e))}try{k9(require("@emotion/is-prop-valid").default)}catch{}function V9(n,e,t){const i={};for(const s in n)s==="values"&&typeof n.values=="object"||(kN(s)||t===!0&&Mm(s)||!e&&!Mm(s)||n.draggable&&s.startsWith("onDrag"))&&(i[s]=n[s]);return i}const ig=A.createContext({});function sg(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function vd(n){return typeof n=="string"||Array.isArray(n)}const s1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r1=["initial",...s1];function rg(n){return sg(n.animate)||r1.some(e=>vd(n[e]))}function VN(n){return!!(rg(n)||n.variants)}function H9(n,e){if(rg(n)){const{initial:t,animate:i}=n;return{initial:t===!1||vd(t)?t:void 0,animate:vd(i)?i:void 0}}return n.inherit!==!1?e:{}}function G9(n){const{initial:e,animate:t}=H9(n,A.useContext(ig));return A.useMemo(()=>({initial:e,animate:t}),[j2(e),j2(t)])}function j2(n){return Array.isArray(n)?n.join(" "):n}const xd={};function W9(n){for(const e in n)xd[e]=n[e],kb(e)&&(xd[e].isCSSVariable=!0)}function HN(n,{layout:e,layoutId:t}){return bu.has(n)||n.startsWith("origin")||(e||t!==void 0)&&(!!xd[n]||n==="opacity")}const X9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},q9=_u.length;function Y9(n,e,t){let i="",s=!0;for(let a=0;a<q9;a++){const l=_u[a],c=n[l];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(l.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||t){const d=LN(c,Qb[l]);if(!f){s=!1;const h=X9[l]||l;i+=`${h}(${d}) `}t&&(e[l]=d)}}return i=i.trim(),t?i=t(e,s?"":i):s&&(i="none"),i}function a1(n,e,t){const{style:i,vars:s,transformOrigin:a}=n;let l=!1,c=!1;for(const f in e){const d=e[f];if(bu.has(f)){l=!0;continue}else if(kb(f)){s[f]=d;continue}else{const h=LN(d,Qb[f]);f.startsWith("origin")?(c=!0,a[f]=h):i[f]=h}}if(e.transform||(l||t?i.transform=Y9(e,n.transform,t):i.transform&&(i.transform="none")),c){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;i.transformOrigin=`${f} ${d} ${h}`}}const o1=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
4207function GN(n,e,t){for(const i in e)!Jn(e[i])&&!HN(i,t)&&(n[i]=e[i])}function $9({transformTemplate:n},e){return A.useMemo(()=>{const t=o1();return a1(t,e,n),Object.assign({},t.vars,t.style)},[e])}function K9(n,e){const t=n.style||{},i={};return GN(i,t,n),Object.assign(i,$9(n,e)),i}function Z9(n,e){const t={},i=K9(n,e);return n.drag&&n.dragListener!==!1&&(t.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(t.tabIndex=0),t.style=i,t}const Q9={offset:"stroke-dashoffset",array:"stroke-dasharray"},J9={offset:"strokeDashoffset",array:"strokeDasharray"};function eG(n,e,t=1,i=0,s=!0){n.pathLength=1;const a=s?Q9:J9;n[a.offset]=ft.transform(-i);const l=ft.transform(e),c=ft.transform(t);n[a.array]=`${l} ${c}`}function WN(n,{attrX:e,attrY:t,attrScale:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},f,d,h){if(a1(n,c,d),f){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:g,style:v}=n;g.transform&&(v.transform=g.transform,delete g.transform),(v.transform||g.transformOrigin)&&(v.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),v.transform&&(v.transformBox=h?.transformBox??"fill-box",delete g.transformBox),e!==void 0&&(g.x=e),t!==void 0&&(g.y=t),i!==void 0&&(g.scale=i),s!==void 0&&eG(g,s,a,l,!1)}const XN=()=>({...o1(),attrs:{}}),qN=n=>typeof n=="string"&&n.toLowerCase()==="svg";function tG(n,e,t,i){const s=A.useMemo(()=>{const a=XN();return WN(a,e,qN(i),n.transformTemplate,n.style),{...a.attrs,style:{...a.style}}},[e]);if(n.style){const a={};GN(a,n.style,n),s.style={...a,...s.style}}return s}const nG=["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 l1(n){return typeof n!="string"||n.includes("-")?!1:!!(nG.indexOf(n)>-1||/[A-Z]/u.test(n))}function iG(n,e,t,{latestValues:i},s,a=!1){const c=(l1(n)?tG:Z9)(e,i,s,n),f=V9(e,typeof n=="string",a),d=n!==A.Fragment?{...f,...c,ref:t}:{},{children:h}=e,g=A.useMemo(()=>Jn(h)?h.get():h,[h]);return A.createElement(n,{...d,children:g})}function k2(n){const e=[{},{}];return n?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function c1(n,e,t,i){if(typeof e=="function"){const[s,a]=k2(i);e=e(t!==void 0?t:n.custom,s,a)}if(typeof e=="string"&&(e=n.variants&&n.variants[e]),typeof e=="function"){const[s,a]=k2(i);e=e(t!==void 0?t:n.custom,s,a)}return e}function tm(n){return Jn(n)?n.get():n}function sG({scrapeMotionValuesFromProps:n,createRenderState:e},t,i,s){return{latestValues:rG(t,i,s,n),renderState:e()}}function rG(n,e,t,i){const s={},a=i(n,{});for(const v in a)s[v]=tm(a[v]);let{initial:l,animate:c}=n;const f=rg(n),d=VN(n);e&&d&&!f&&n.inherit!==!1&&(l===void 0&&(l=e.initial),c===void 0&&(c=e.animate));let h=t?t.initial===!1:!1;h=h||l===!1;const g=h?c:l;if(g&&typeof g!="boolean"&&!sg(g)){const v=Array.isArray(g)?g:[g];for(let x=0;x<v.length;x++){const b=c1(n,v[x]);if(b){const{transitionEnd:_,transition:w,...S}=b;for(const T in S){let M=S[T];if(Array.isArray(M)){const C=h?M.length-1:0;M=M[C]}M!==null&&(s[T]=M)}for(const T in _)s[T]=_[T]}}}return s}const YN=n=>(e,t)=>{const i=A.useContext(ig),s=A.useContext(tg),a=()=>sG(n,e,i,s);return t?a():xu(a)};function u1(n,e,t){const{style:i}=n,s={};for(const a in i)(Jn(i[a])||e.style&&Jn(e.style[a])||HN(a,n)||t?.getValue(a)?.liveStyle!==void 0)&&(s[a]=i[a]);return s}const aG=YN({scrapeMotionValuesFromProps:u1,createRenderState:o1});function $N(n,e,t){const i=u1(n,e,t);for(const s in n)if(Jn(n[s])||Jn(e[s])){const a=_u.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[a]=n[s]}return i}const oG=YN({scrapeMotionValuesFromProps:$N,createRenderState:XN}),lG=Symbol.for("motionComponentSymbol");function Pc(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function cG(n,e,t){return A.useCallback(i=>{i&&n.onMount&&n.onMount(i),e&&(i?e.mount(i):e.unmount()),t&&(typeof t=="function"?t(i):Pc(t)&&(t.current=i))},[e])}const f1=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),uG="framerAppearId",KN="data-"+f1(uG),ZN=A.createContext({});function fG(n,e,t,i,s){const{visualElement:a}=A.useContext(ig),l=A.useContext(jN),c=A.useContext(tg),f=A.useContext(Su).reducedMotion,d=A.useRef(null);i=i||l.renderer,!d.current&&i&&(d.current=i(n,{visualState:e,parent:a,props:t,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f}));const h=d.current,g=A.useContext(ZN);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&dG(d.current,t,s,g);const v=A.useRef(!1);A.useInsertionEffect(()=>{h&&v.current&&h.update(t,c)});const x=t[KN],b=A.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return eg(()=>{h&&(v.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),b.current&&h.animationState&&h.animationState.animateChanges())}),A.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),b.current=!1),h.enteringChildren=void 0)}),h}function dG(n,e,t,i){const{layoutId:s,layout:a,drag:l,dragConstraints:c,layoutScroll:f,layoutRoot:d,layoutCrossfade:h}=e;n.projection=new t(n.latestValues,e["data-framer-portal-id"]?void 0:QN(n.parent)),n.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!l||c&&Pc(c),visualElement:n,animationType:typeof a=="str
4207ing"?a:"both",initialPromotionConfig:i,crossfade:h,layoutScroll:f,layoutRoot:d})}function QN(n){if(n)return n.options.allowProjection!==!1?n.projection:QN(n.parent)}function Cx(n,{forwardMotionProps:e=!1}={},t,i){t&&z9(t);const s=l1(n)?oG:aG;function a(c,f){let d;const h={...A.useContext(Su),...c,layoutId:hG(c)},{isStatic:g}=h,v=G9(c),x=s(c,g);if(!g&&Lb){pG();const b=mG(h);d=b.MeasureLayout,v.visualElement=fG(n,x,h,i,b.ProjectionNode)}return m.jsxs(ig.Provider,{value:v,children:[d&&v.visualElement?m.jsx(d,{visualElement:v.visualElement,...h}):null,iG(n,c,cG(x,v.visualElement,f),x,g,e)]})}a.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const l=A.forwardRef(a);return l[lG]=n,l}function hG({layoutId:n}){const e=A.useContext(Pb).id;return e&&n!==void 0?e+"-"+n:n}function pG(n,e){A.useContext(jN).strict}function mG(n){const{drag:e,layout:t}=ru;if(!e&&!t)return{};const i={...e,...t};return{MeasureLayout:e?.isEnabled(n)||t?.isEnabled(n)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function gG(n,e){if(typeof Proxy>"u")return Cx;const t=new Map,i=(a,l)=>Cx(a,l,n,e),s=(a,l)=>i(a,l);return new Proxy(s,{get:(a,l)=>l==="create"?i:(t.has(l)||t.set(l,Cx(l,void 0,n,e)),t.get(l))})}function JN({top:n,left:e,right:t,bottom:i}){return{x:{min:e,max:t},y:{min:n,max:i}}}function vG({x:n,y:e}){return{top:e.min,right:n.max,bottom:e.max,left:n.min}}function xG(n,e){if(!e)return n;const t=e({x:n.left,y:n.top}),i=e({x:n.right,y:n.bottom});return{top:t.y,left:t.x,bottom:i.y,right:i.x}}function Rx(n){return n===void 0||n===1}function v_({scale:n,scaleX:e,scaleY:t}){return!Rx(n)||!Rx(e)||!Rx(t)}function Zo(n){return v_(n)||e3(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function e3(n){return V2(n.x)||V2(n.y)}function V2(n){return n&&n!=="0%"}function Tm(n,e,t){const i=n-t,s=e*i;return t+s}function H2(n,e,t,i,s){return s!==void 0&&(n=Tm(n,s,i)),Tm(n,t,i)+e}function x_(n,e=0,t=1,i,s){n.min=H2(n.min,e,t,i,s),n.max=H2(n.max,e,t,i,s)}function t3(n,{x:e,y:t}){x_(n.x,e.translate,e.scale,e.originPoint),x_(n.y,t.translate,t.scale,t.originPoint)}const G2=.999999999999,W2=1.0000000000001;function yG(n,e,t,i=!1){const s=t.length;if(!s)return;e.x=e.y=1;let a,l;for(let c=0;c<s;c++){a=t[c],l=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Oc(n,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,t3(n,l)),i&&Zo(a.latestValues)&&Oc(n,a.latestValues))}e.x<W2&&e.x>G2&&(e.x=1),e.y<W2&&e.y>G2&&(e.y=1)}function Lc(n,e){n.min=n.min+e,n.max=n.max+e}function X2(n,e,t,i,s=.5){const a=vn(n.min,n.max,s);x_(n,e,t,a,i)}function Oc(n,e){X2(n.x,e.x,e.scaleX,e.scale,e.originX),X2(n.y,e.y,e.scaleY,e.scale,e.originY)}function n3(n,e){return JN(xG(n.getBoundingClientRect(),e))}function _G(n,e,t){const i=n3(n,t),{scroll:s}=e;return s&&(Lc(i.x,s.offset.x),Lc(i.y,s.offset.y)),i}const q2=()=>({translate:0,scale:1,origin:0,originPoint:0}),Uc=()=>({x:q2(),y:q2()}),Y2=()=>({min:0,max:0}),An=()=>({x:Y2(),y:Y2()}),y_={current:null},i3={current:!1};function bG(){if(i3.current=!0,!!Lb)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),e=()=>y_.current=n.matches;n.addEventListener("change",e),e()}else y_.current=!1}const SG=new WeakMap;function wG(n,e,t){for(const i in e){const s=e[i],a=t[i];if(Jn(s))n.addValue(i,s);else if(Jn(a))n.addValue(i,Ws(s,{owner:n}));else if(a!==s)if(n.hasValue(i)){const l=n.getValue(i);l.liveStyle===!0?l.jump(s):l.hasAnimated||l.set(s)}else{const l=n.getStaticValue(i);n.addValue(i,Ws(l!==void 0?l:s,{owner:n}))}}for(const i in t)e[i]===void 0&&n.removeValue(i);return e}const $2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class EG{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Kb,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 v=Li.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,It.render(this.render,!1,!0))};
vendor: 31,004 bytes, line 4207
4207const{latestValues:f,renderState:d}=l;this.latestValues=f,this.baseTarget={...f},this.initialValues=t.initial?{...f}:{},this.renderState=d,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=rg(t),this.isVariantNode=VN(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...g}=this.scrapeMotionValuesFromProps(t,{},this);for(const v in g){const x=g[v];f[v]!==void 0&&Jn(x)&&x.set(f[v])}}mount(e){this.current=e,SG.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((t,i)=>this.bindToMotionValue(i,t)),i3.current||bG(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:y_.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ps(this.notifyUpdate),Ps(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.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,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=bu.has(e);i&&this.onBindTransform&&this.onBindTransform();const s=t.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&It.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{s(),a&&a(),t.owner&&t.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 ru){const t=ru[e];if(!t)continue;const{isEnabled:i,Feature:s}=t;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){const a=this.features[e];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):An()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let i=0;i<$2.length;i++){const s=$2[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,l=e[a];l&&(this.propEventSubscriptions[s]=this.on(s,l))}this.prevMotionValues=wG(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 t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&t!==void 0&&(i=Ws(t===null?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(YR(i)||KR(i))?i=parseFloat(i):!D9(i)&&ao.test(t)&&(i=PN(e,t)),this.setBaseTarget(e,Jn(i)?i.get():i)),Jn(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let i;if(typeof t=="string"||typeof t=="object"){const a=c1(this.props,t,this.presenceContext?.custom);a&&(i=a[e])}if(t&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!Jn(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Bb),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){t1.render(this.render)}}class s3 extends EG{constructor(){super(...arguments),this.KeyframeResolver=c9}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Jn(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function r3(n,{style:e,vars:t},i,s){const a=n.style;let l;for(l in e)a[l]=e[l];s?.applyProjectionStyles(a,i);for(l in t)a.setProperty(l,t[l])}function MG(n){return window.getComputedStyle(n)}class TG extends s3{constructor(){super(...arguments),this.type="html",this.renderInstance=r3}readValueFromInstance(e,t){if(bu.has(t))return this.projection?.isProjecting?u_(t):RH(e,t);{const i=MG(e),s=(kb(t)?i.getPropertyValue(t):i[t])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:t}){return n3(e,t)}build(e,t,i){a1(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return u1(e,t,i)}}const a3=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 AG(n,e,t,i){r3(n,e,void 0,i);for(const s in e.attrs)n.setAttribute(a3.has(s)?s:f1(s),e.attrs[s])}class CG extends s3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=An}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(bu.has(t)){const i=DN(t);return i&&i.default||0}return t=a3.has(t)?t:f1(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return $N(e,t,i)}build(e,t,i){WN(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,s){AG(e,t,i,s)}mount(e){this.isSVGTag=qN(e.tagName),super.mount(e)}}const RG=(n,e)=>l1(n)?new CG(e):new TG(e,{allowProjection:n!==A.Fragment});function kc(n,e,t){const i=n.getProps();return c1(i,e,t!==void 0?t:i.custom,n)}const __=n=>Array.isArray(n);function NG(n,e,t){n.hasValue(e)?n.getValue(e).set(t):n.addValue(e,Ws(t))}function DG(n){return __(n)?n[n.length-1]||0:n}function PG(n,e){const t=kc(n,e);let{transitionEnd:i={},transition:s={},...a}=t||{};a={...a,...i};for(const l in a){const c=DG(a[l]);NG(n,l,c)}}function LG(n){return!!(Jn(n)&&n.add)}function b_(n,e){const t=n.getValue("willChange");if(LG(t))return t.add(e);if(!t&&oa.WillChange){const i=new oa.WillChange("auto");n.addValue("willChange",i),i.add(e)}}function o3(n){return n.props[KN]}const OG=n=>n!==null;function UG(n,{repeat:e,repeatType:t="loop"},i){const s=n.filter(OG),a=e&&t!=="loop"&&e%2===1?0:s.length-1;return s[a]}const IG={type:"spring",stiffness:500,damping:25,restSpeed:10},BG=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),FG={type:"keyframes",duration:.8},zG={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jG=(n,{keyframes:e})=>e.length>2?FG:bu.has(n)?n.startsWith("scale")?BG(e[1]):IG:zG;function kG({when:n,delay:e,delayChildren:t,staggerChildren:i,staggerDirection:s,repeat:a,repeatType:l,repeatDelay:c,from:f,elapsed:d,...h}){return!!Object.keys(h).length}const d1=(n,e,t,i={},s,a)=>l=>{const c=Zb(i,n)||{},f=c.delay||i.delay||0;let{elapsed:d=0}=i;d=d-xr(f);const h={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-d,onUpdate:v=>{e.set(v),c.onUpdate&&c.onUpdate(v)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:n,motionValue:e,element:a?void 0:s};kG(c)||Object.assign(h,jG(n,h)),h.duration&&(h.duration=xr(h.duration)),h.repeatDelay&&(h.repeatDelay=xr(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let g=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(m_(h),h.delay===0&&(g=!0)),(oa.instantAnimations||oa.skipAnimations)&&(g=!0,m_(h),h.delay=0),h.allowFlatten=!c.type&&!c.ease,g&&!a&&e.get()!==void 0){const v=UG(h.keyframes,c);if(v!==void 0){It.update(()=>{h.onUpdate(v),h.onComplete()});return}}return c.isSync?new ng(h):new ZH(h)};function VG({protectedKeys:n,needsAnimating:e},t){const i=n.hasOwnProperty(t)&&e[t]!==!0;return e[t]=!1,i}function l3(n,e,{delay:t=0,transitionOverride:i,type:s}={}){let{transition:a=n.getDefaultTransition(),transitionEnd:l,...c}=e;i&&(a=i);const f=[],d=s&&n.animationState&&n.animationState.getState()[s];for(const h in c){const g=n.getValue(h,n.latestValues[h]??null),v=c[h];if(v===void 0||d&&VG(d,h))continue;const x={delay:t,...Zb(a||{},h)},b=g.get();if(b!==void 0&&!g.isAnimating&&!Array.isArray(v)&&v===b&&!x.velocity)continue;let _=!1;if(window.MotionHandoffAnimation){const S=o3(n);if(S){const T=window.MotionHandoffAnimation(S,h,It);T!==null&&(x.startTime=T,_=!0)}}b_(n,h),g.start(d1(h,g,v,n.shouldReduceMotion&&CN.has(h)?{type:!1}:x,n,_));const w=g.animation;w&&f.push(w)}return l&&Promise.all(f).then(()=>{It.update(()=>{l&&PG(n,l)})}),f}function c3(n,e,t,i=0,s=1){const a=Array.from(n).sort((d,h)=>d.sortNodePosition(h)).indexOf(e),l=n.size,c=(l-1)*i;return typeof t=="function"?t(a,l):s===1?a*i:c-a*i}function S_(n,e,t={}){const i=kc(n,e,t.type==="exit"?n.presenceContext?.custom:void 0);let{transition:s=n.getDefaultTransition()||{}}=i||{};t.transitionOverride&&(s=t.transitionOverride);const a=i?()=>Promise.all(l3(n,i,t)):()=>Promise.resolve(),l=n.variantChildren&&n.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:g}=s;return HG(n,e,f,d,h,g,t)}:()=>Promise.resolve(),{when:c}=s;if(c){const[f,d]=c==="beforeChildren"?[a,l]:[l,a];return f().then(()=>d())}else return Promise.all([a(),l(t.delay)])}function HG(n,e,t=0,i=0,s=0,a=1,l){const c=[];for(const f of n.variantChildren)f.notify("AnimationStart",e),c.push(S_(f,e,{...l,delay:t+(typeof i=="function"?0:i)+c3(n.variantChildren,f,i,s,a)}).then(()=>f.notify("AnimationComplete",e)));return Promise.all(c)}function GG(n,e,t={}){n.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(a=>S_(n,a,t));i=Promise.all(s)}else if(typeof e=="string")i=S_(n,e,t);else{const s=typeof e=="function"?kc(n,e,t.custom):e;i=Promise.all(l3(n,s,t))}return i.then(()=>{n.notify("AnimationComplete",e)})}function u3(n,e){if(!Array.isArray(e))return!1;const t=e.length;if(t!==n.length)return!1;for(let i=0;i<t;i++)if(e[i]!==n[i])return!1;return!0}const WG=r1.length;function f3(n){if(!n)return;if(!n.isControllingVariants){const t=n.parent?f3(n.parent)||{}:{};return n.props.initial!==void 0&&(t.initial=n.props.initial),t}const e={};for(let t=0;t<WG;t++){const i=r1[t],s=n.props[i];(vd(s)||s===!1)&&(e[i]=s)}return e}const XG=[...s1].reverse(),qG=s1.length;function YG(n){return e=>Promise.all(e.map(({animation:t,options:i})=>GG(n,t,i)))}function $G(n){let e=YG(n),t=K2(),i=!0;const s=f=>(d,h)=>{const g=kc(n,h,f==="exit"?n.presenceContext?.custom:void 0);if(g){const{transition:v,transitionEnd:x,...b}=g;d={...d,...b,...x}}return d};function a(f){e=f(n)}function l(f){const{props:d}=n,h=f3(n.parent)||{},g=[],v=new Set;let x={},b=1/0;for(let w=0;w<qG;w++){const S=XG[w],T=t[S],M=d[S]!==void 0?d[S]:h[S],C=vd(M),N=S===f?T.isActive:null;N===!1&&(b=w);let U=M===h[S]&&M!==d[S]&&C;if(U&&i&&n.manuallyAnimateOnMount&&(U=!1),T.protectedKeys={...x},!T.isActive&&N===null||!M&&!T.prevProp||sg(M)||typeof M=="boolean")continue;const P=KG(T.prevProp,M);let O=P||S===f&&T.isActive&&!U&&C||w>b&&C,R=!1;const L=Array.isArray(M)?M:[M];let z=L.reduce(s(S),{});N===!1&&(z={});const{prevResolvedValues:H={}}=T,Y={...H,...z},K=W=>{O=!0,v.has(W)&&(R=!0,v.delete(W)),T.needsAnimating[W]=!0;const j=n.getValue(W);j&&(j.liveStyle=!1)};for(const W in Y){const j=z[W],ae=H[W];if(x.hasOwnProperty(W))continue;let fe=!1;__(j)&&__(ae)?fe=!u3(j,ae):fe=j!==ae,fe?j!=null?K(W):v.add(W):j!==void 0&&v.has(W)?K(W):T.protectedKeys[W]=!0}T.prevProp=M,T.prevResolvedValues=z,T.isActive&&(x={...x,...z}),i&&n.blockInitialAnimation&&(O=!1);const q=U&&P;O&&(!q||R)&&g.push(...L.map(W=>{const j={type:S};if(typeof W=="string"&&i&&!q&&n.manuallyAnimateOnMount&&n.parent){const{parent:ae}=n,fe=kc(ae,W);if(ae.enteringChildren&&fe){const{delayChildren:G}=fe.transition||{};j.delay=c3(ae.enteringChildren,n,G)}}return{animation:W,options:j}}))}if(v.size){const w={};if(typeof d.initial!="boolean"){const S=kc(n,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(w.transition=S.transition)}v.forEach(S=>{const T=n.getBaseTarget(S),M=n.getValue(S);M&&(M.liveStyle=!0),w[S]=T??null}),g.push({animation:w})}let _=!!g.length;return i&&(d.initial===!1||d.initial===d.animate)&&!n.manuallyAnimateOnMount&&(_=!1),i=!1,_?e(g):Promise.resolve()}function c(f,d){if(t[f].isActive===d)return Promise.resolve();n.variantChildren?.forEach(g=>g.animationState?.setActive(f,d)),t[f].isActive=d;const h=l(f);for(const g in t)t[g].protectedKeys={};return h}return{animateChanges:l,setActive:c,setAnimateFunction:a,getState:()=>t,reset:()=>{t=K2()}}}function KG(n,e){return typeof e=="string"?e!==n:Array.isArray(e)?!u3(e,n):!1}function Wo(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function K2(){return{animate:Wo(!0),whileInView:Wo(),whileHover:Wo(),whileTap:Wo(),whileDrag:Wo(),whileFocus:Wo(),exit:Wo()}}class mo{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ZG extends mo{constructor(e){super(e),e.animationState||(e.animationState=$G(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();sg(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let QG=0;class JG extends mo{constructor(){super(...arguments),this.id=QG++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e);t&&!e&&s.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const e7={animation:{Feature:ZG},exit:{Feature:JG}};function yd(n,e,t,i={passive:!0}){return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t)}function jd(n){return{point:{x:n.pageX,y:n.pageY}}}const t7=n=>e=>n1(e)&&n(e,jd(e));function nd(n,e,t,i){return yd(n,e,t7(t),i)}const d3=1e-4,n7=1-d3,i7=1+d3,h3=.01,s7=0-h3,r7=0+h3;function Si(n){return n.max-n.min}function a7(n,e,t){return Math.abs(n-e)<=t}function Z2(n,e,t,i=.5){n.origin=i,n.originPoint=vn(e.min,e.max,n.origin),n.scale=Si(t)/Si(e),n.translate=vn(t.min,t.max,n.origin)-n.originPoint,(n.scale>=n7&&n.scale<=i7||isNaN(n.scale))&&(n.scale=1),(n.translate>=s7&&n.translate<=r7||isNaN(n.translate))&&(n.translate=0)}function id(n,e,t,i){Z2(n.x,e.x,t.x,i?i.originX:void 0),Z2(n.y,e.y,t.y,i?i.originY:void 0)}function Q2(n,e,t){n.min=t.min+e.min,n.max=n.min+Si(e)}function o7(n,e,t){Q2(n.x,e.x,t.x),Q2(n.y,e.y,t.y)}function J2(n,e,t){n.min=e.min-t.min,n.max=n.min+Si(e)}function sd(n,e,t){J2(n.x,e.x,t.x),J2(n.y,e.y,t.y)}function ws(n){return[n("x"),n("y")]}const p3=({current:n})=>n?n.ownerDocument.defaultView:null,eA=(n,e)=>Math.abs(n-e);function l7(n,e){const t=eA(n.x,e.x),i=eA(n.y,e.y);return Math.sqrt(t**2+i**2)}class m3{constructor(e,t,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:a=!1,distanceThreshold:l=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 v=Dx(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,b=l7(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!b)return;const{point:_}=v,{timestamp:w}=Zn;this.history.push({..._,timestamp:w});const{onStart:S,onMove:T}=this.handlers;x||(S&&S(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,v)},this.handlePointerMove=(v,x)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=Nx(x,this.transformPagePoint),It.update(this.updatePoint,!0)},this.handlePointerUp=(v,x)=>{this.end();const{onEnd:b,onSessionEnd:_,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Dx(v.type==="pointercancel"?this.lastMoveEventInfo:Nx(x,this.transformPagePoint),this.history);this.startEvent&&b&&b(v,S),_&&_(v,S)},!n1(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=l,this.contextWindow=s||window;const c=jd(e),f=Nx(c,this.transformPagePoint),{point:d}=f,{timestamp:h}=Zn;this.history=[{...d,timestamp:h}];const{onSessionStart:g}=t;g&&g(e,Dx(f,this.history)),this.removeListeners=Bd(nd(this.contextWindow,"pointermove",this.handlePointerMove),nd(this.contextWindow,"pointerup",this.handlePointerUp),nd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ps(this.updatePoint)}}function Nx(n,e){return e?{point:e(n.point)}:n}function tA(n,e){return{x:n.x-e.x,y:n.y-e.y}}function Dx({point:n},e){return{point:n,delta:tA(n,g3(e)),offset:tA(n,c7(e)),velocity:u7(e,.1)}}function c7(n){return n[0]}function g3(n){return n[n.length-1]}function u7(n,e){if(n.length<2)return{x:0,y:0};let t=n.length-1,i=null;const s=g3(n);for(;t>=0&&(i=n[t],!(s.timestamp-i.timestamp>xr(e)));)t--;if(!i)return{x:0,y:0};const a=Ts(s.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const l={x:(s.x-i.x)/a,y:(s.y-i.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function f7(n,{min:e,max:t},i){return e!==void 0&&n<e?n=i?vn(e,n,i.min):Math.max(n,e):t!==void 0&&n>t&&(n=i?vn(t,n,i.max):Math.min(n,t)),n}function nA(n,e,t){return{min:e!==void 0?n.min+e:void 0,max:t!==void 0?n.max+t-(n.max-n.min):void 0}}function d7(n,{top:e,left:t,bottom:i,right:s}){return{x:nA(n.x,t,s),y:nA(n.y,e,i)}}function iA(n,e){let t=e.min-n.min,i=e.max-n.max;return e.max-e.min<n.max-n.min&&([t,i]=[i,t]),{min:t,max:i}}function h7(n,e){return{x:iA(n.x,e.x),y:iA(n.y,e.y)}}function p7(n,e){let t=.5;const i=Si(n),s=Si(e);return s>i?t=su(e.min,e.max-i,n.min):i>s&&(t=su(n.min,n.max-s,e.min)),Sr(0,1,t)}function m7(n,e){const t={};return e.min!==void 0&&(t.min=e.min-n.min),e.max!==void 0&&(t.max=e.max-n.min),t}const w_=.35;function g7(n=w_){return n===!1?n=0:n===!0&&(n=w_),{x:sA(n,"left","right"),y:sA(n,"top","bottom")}}function sA(n,e,t){return{min:rA(n,e),max:rA(n,t)}}function rA(n,e){return typeof n=="number"?n:n[e]||0}const v7=new WeakMap;class x7{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=An(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(jd(g).point)},l=(g,v)=>{const{drag:x,dragPropagation:b,onDragStart:_}=this.getProps();if(x&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=d9(x),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ws(S=>{let T=this.getAxisMotionValue(S).get()||0;if(yr.test(T)){const{projection:M}=this.visualElement;if(M&&M.layout){const C=M.layout.layoutBox[S];C&&(T=Si(C)*(parseFloat(T)/100))}}this.originPoint[S]=T}),_&&It.postRender(()=>_(g,v)),b_(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v;const{dragPropagation:x,dragDirectionLock:b,onDirectionLock:_,onDrag:w}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:S}=v;if(b&&this.currentDirection===null){this.currentDirection=y7(S),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",v.point,S),this.updateAxis("y",v.point,S),this.visualElement.render(),w&&w(g,v)},f=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v,this.stop(g,v),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>ws(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new m3(e,{onSessionStart:a,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:p3(this.visualElement)})}stop(e,t){const i=e||this.latestPointerEvent,s=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!s||!i)return;const{velocity:l}=s;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&It.postRender(()=>c(i,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){const{drag:s}=this.getProps();if(!i||!Pp(e,s,this.currentDirection))return;const a=this.getAxisMotionValue(e);let l=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(l=f7(l,this.constraints[e],this.elastic[e])),a.set(l)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&Pc(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=d7(i.layoutBox,e):this.constraints=!1,this.elastic=g7(t),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ws(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=m7(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Pc(e))return!1;const i=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const a=_G(i,s.root,this.visualElement.getTransformPagePoint());let l=h7(s.layout.layoutBox,a);if(t){const c=t(vG(l));this.hasMutatedConstraints=!!c,c&&(l=JN(c))}return l}startAnimation(e){const{drag:t,dragMomentum:i,dragElastic:s,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},d=ws(h=>{if(!Pp(h,t,this.currentDirection))return;let g=f&&f[h]||{};l&&(g={min:0,max:0});const v=s?200:1e6,x=s?40:1e7,b={type:"inertia",velocity:i?e[h]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...a,...g};return this.startAxisValueAnimation(h,b)});return Promise.all(d).then(c)}startAxisValueAnimation(e,t){const i=this.getAxisMotionValue(e);return b_(this.visualElement,e),i.start(d1(e,i,0,t,this.visualElement,!1))}stopAnimation(){ws(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ws(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[t];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){ws(t=>{const{drag:i}=this.getProps();if(!Pp(t,i,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(t);if(s&&s.layout){const{min:l,max:c}=s.layout.layoutBox[t];a.set(e[t]-vn(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!Pc(t)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ws(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();s[l]=p7({min:f,max:f},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ws(l=>{if(!Pp(l,e,null))return;const c=this.getAxisMotionValue(l),{min:f,max:d}=this.constraints[l];c.set(vn(f,d,s[l]))})}addListeners(){if(!this.visualElement.current)return;v7.set(this.visualElement,this);const e=this.visualElement.current,t=nd(e,"pointerdown",f=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();Pc(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,a=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),It.read(i);const l=yd(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:d})=>{this.isDragging&&d&&(ws(h=>{const g=this.getAxisMotionValue(h);g&&(this.originPoint[h]+=f[h].translate,g.set(g.get()+f[h].translate))}),this.visualElement.render())}));return()=>{l(),t(),a(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:l=w_,dragMomentum:c=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:s,dragConstraints:a,dragElastic:l,dragMomentum:c}}}function Pp(n,e,t){return(e===!0||e===n)&&(t===null||t===n)}function y7(n,e=10){let t=null;return Math.abs(n.y)>e?t="y":Math.abs(n.x)>e&&(t="x"),t}class _7 extends mo{constructor(e){super(e),this.removeGroupControls=Ui,this.removeListeners=Ui,this.controls=new x7(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ui}unmount(){this.removeGroupControls(),this.removeListeners()}}const aA=n=>(e,t)=>{n&&It.postRender(()=>n(e,t))};class b7 extends mo{constructor(){super(...arguments),this.removePointerDownListener=Ui}onPointerDown(e){this.session=new m3(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:p3(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:aA(e),onStart:aA(t),onMove:i,onEnd:(a,l)=>{delete this.session,s&&It.postRender(()=>s(a,l))}}}mount(){this.removePointerDownListener=nd(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 nm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function oA(n,e){return e.max===e.min?0:n/(e.max-e.min)*100}const Pf={correct:(n,e)=>{if(!e.target)return n;if(typeof n=="string")if(ft.test(n))n=parseFloat(n);else return n;const t=oA(n,e.target.x),i=oA(n,e.target.y);return`${t}% ${i}%`}},S7={correct:(n,{treeScale:e,projectionDelta:t})=>{const i=n,s=ao.parse(n);if(s.length>5)return i;const a=ao.createTransformer(n),l=typeof s[0]!="number"?1:0,c=t.x.scale*e.x,f=t.y.scale*e.y;s[0+l]/=c,s[1+l]/=f;const d=vn(c,f,.5);return typeof s[2+l]=="number"&&(s[2+l]/=d),typeof s[3+l]=="number"&&(s[3+l]/=d),a(s)}};let Px=!1;class w7 extends A.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:s}=this.props,{projection:a}=e;W9(E7),a&&(t.group&&t.group.add(a),i&&i.register&&s&&i.register(a),Px&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),nm.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:i,drag:s,isPresent:a}=this.props,{projection:l}=i;return l&&(l.isPresent=a,Px=!0,s||e.layoutDependency!==t||t===void 0||e.isPresent!==a?l.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?l.promote():l.relegate()||It.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),t1.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:s}=e;Px=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function v3(n){const[e,t]=zN(),i=A.useContext(Pb);return m.jsx(w7,{...n,layoutGroup:i,switchLayoutGroup:A.useContext(ZN),isPresent:e,safeToRemove:t})}const E7={borderRadius:{...Pf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pf,borderTopRightRadius:Pf,borderBottomLeftRadius:Pf,borderBottomRightRadius:Pf,boxShadow:S7};function M7(n,e,t){const i=Jn(n)?n:Ws(n);return i.start(d1("",i,e,t)),i.animation}const T7=(n,e)=>n.depth-e.depth;class A7{constructor(){this.children=[],this.isDirty=!1}add(e){Ob(this.children,e),this.isDirty=!0}remove(e){Ub(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(T7),this.isDirty=!1,this.children.forEac
vendor: 4,347 bytes, line 4207
4207h(e)}}function C7(n,e){const t=Li.now(),i=({timestamp:s})=>{const a=s-t;a>=e&&(Ps(i),n(a-e))};return It.setup(i,!0),()=>Ps(i)}const x3=["TopLeft","TopRight","BottomLeft","BottomRight"],R7=x3.length,lA=n=>typeof n=="string"?parseFloat(n):n,cA=n=>typeof n=="number"||ft.test(n);function N7(n,e,t,i,s,a){s?(n.opacity=vn(0,t.opacity??1,D7(i)),n.opacityExit=vn(e.opacity??1,0,P7(i))):a&&(n.opacity=vn(e.opacity??1,t.opacity??1,i));for(let l=0;l<R7;l++){const c=`border${x3[l]}Radius`;let f=uA(e,c),d=uA(t,c);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||cA(f)===cA(d)?(n[c]=Math.max(vn(lA(f),lA(d),i),0),(yr.test(d)||yr.test(f))&&(n[c]+="%")):n[c]=d}(e.rotate||t.rotate)&&(n.rotate=vn(e.rotate||0,t.rotate||0,i))}function uA(n,e){return n[e]!==void 0?n[e]:n.borderRadius}const D7=y3(0,.5,iN),P7=y3(.5,.95,Ui);function y3(n,e,t){return i=>i<n?0:i>e?1:t(su(n,e,i))}function fA(n,e){n.min=e.min,n.max=e.max}function _s(n,e){fA(n.x,e.x),fA(n.y,e.y)}function dA(n,e){n.translate=e.translate,n.scale=e.scale,n.originPoint=e.originPoint,n.origin=e.origin}function hA(n,e,t,i,s){return n-=e,n=Tm(n,1/t,i),s!==void 0&&(n=Tm(n,1/s,i)),n}function L7(n,e=0,t=1,i=.5,s,a=n,l=n){if(yr.test(e)&&(e=parseFloat(e),e=vn(l.min,l.max,e/100)-l.min),typeof e!="number")return;let c=vn(a.min,a.max,i);n===a&&(c-=e),n.min=hA(n.min,e,t,c,s),n.max=hA(n.max,e,t,c,s)}function pA(n,e,[t,i,s],a,l){L7(n,e[t],e[i],e[s],e.scale,a,l)}const O7=["x","scaleX","originX"],U7=["y","scaleY","originY"];function mA(n,e,t,i){pA(n.x,e,O7,t?t.x:void 0,i?i.x:void 0),pA(n.y,e,U7,t?t.y:void 0,i?i.y:void 0)}function gA(n){return n.translate===0&&n.scale===1}function _3(n){return gA(n.x)&&gA(n.y)}function vA(n,e){return n.min===e.min&&n.max===e.max}function I7(n,e){return vA(n.x,e.x)&&vA(n.y,e.y)}function xA(n,e){return Math.round(n.min)===Math.round(e.min)&&Math.round(n.max)===Math.round(e.max)}function b3(n,e){return xA(n.x,e.x)&&xA(n.y,e.y)}function yA(n){return Si(n.x)/Si(n.y)}function _A(n,e){return n.translate===e.translate&&n.scale===e.scale&&n.originPoint===e.originPoint}class B7{constructor(){this.members=[]}add(e){Ob(this.members,e),e.scheduleRender()}remove(e){if(Ub(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){const t=this.members.findIndex(s=>e===s);if(t===0)return!1;let i;for(let s=t;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1){i=a;break}}return i?(this.promote(i),!0):!1}promote(e,t){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function F7(n,e,t){let i="";const s=n.x.translate/e.x,a=n.y.translate/e.y,l=t?.z||0;if((s||a||l)&&(i=`translate3d(${s}px, ${a}px, ${l}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),t){const{transformPerspective:d,rotate:h,rotateX:g,rotateY:v,skewX:x,skewY:b}=t;d&&(i=`perspective(${d}px) ${i}`),h&&(i+=`rotate(${h}deg) `),g&&(i+=`rotateX(${g}deg) `),v&&(i+=`rotateY(${v}deg) `),x&&(i+=`skewX(${x}deg) `),b&&(i+=`skewY(${b}deg) `)}const c=n.x.scale*e.x,f=n.y.scale*e.y;return(c!==1||f!==1)&&(i+=`scale(${c}, ${f})`),i||"none"}const Lx=["","X","Y","Z"],z7=1e3;let j7=0;function Ox(n,e,t,i){const{latestValues:s}=e;s[n]&&(t[n]=s[n],e.setStaticValue(n,0),i&&(i[n]=0))}function S3(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:e}=n.options;if(!e)return;const t=o3(e);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:s,layoutId:a}=n.options;window.MotionCancelOptimisedAnimation(t,"transform",It,!(s||a))}const{parent:i}=n;i&&!i.hasCheckedOptimisedAppear&&S3(i)}function w3({attachResizeListener:n,defaultParent:e,measureScroll:t,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(l={}
vendor: 4,483 bytes, line 4207
4207,c=e?.()){this.id=j7++,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(H7),this.nodes.forEach(q7),this.nodes.forEach(Y7),this.nodes.forEach(G7)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new A7)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Bb),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=i1(l)&&!A9(l),this.instance=l;const{layoutId:c,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),n){let h,g=0;const v=()=>this.root.updateBlockedByResize=!1;It.read(()=>{g=window.innerWidth}),n(l,()=>{const x=window.innerWidth;x!==g&&(g=x,this.root.updateBlockedByResize=!0,h&&h(),h=C7(v,250),nm.hasAnimatedSinceResize&&(nm.hasAnimatedSinceResize=!1,this.nodes.forEach(wA)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||J7,{onLayoutAnimationStart:_,onLayoutAnimationComplete:w}=d.getProps(),S=!this.targetLayout||!b3(this.targetLayout,x),T=!g&&v;if(this.options.layoutRoot||this.resumeFrom||T||g&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...Zb(b,"layout"),onPlay:_,onComplete:w};(d.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(h,T)}else g||wA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ps(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($7),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&S3(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const g=this.path[h];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
vendor: 6,611 bytes, line 4207
4207h(bA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(SA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(X7),this.nodes.forEach(k7),this.nodes.forEach(V7)):this.nodes.forEach(SA),this.clearAllSnapshots();const c=Li.now();Zn.delta=Sr(0,1e3/60,c-Zn.timestamp),Zn.timestamp=c,Zn.isProcessing=!0,Sx.update.process(Zn),Sx.preRender.process(Zn),Sx.render.process(Zn),Zn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t1.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(W7),this.sharedNodes.forEach(K7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,It.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){It.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Si(this.snapshot.measuredBox.x)&&!Si(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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=An(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!s)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!_3(this.projectionDelta),f=this.getTransformTemplate(),d=f?f(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;l&&this.instance&&(c||Zo(this.latestValues)||h)&&(s(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return l&&(f=this.removeTransform(f)),eW(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return An();const c=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tW))){const{scroll:d}=this.root;d&&(Lc(c.x,d.offset.x),Lc(c.y,d.offset.y))}return c}removeElementScroll(l){const c=An();if(_s(c,l),this.scroll?.wasRoot)return c;for(let f=0;f<this.path.length;f++){const d=this.path[f],{scroll:h,options:g}=d;d!==this.root&&h&&g.layoutScroll&&(h.wasRoot&&_s(c,l),Lc(c.x,h.offset.x),Lc(c.y,h.offset.y))}return c}applyTransform(l,c=!1){const f=An();_s(f,l);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Oc(f,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Zo(h.latestValues)&&Oc(f,h.latestValues)}return Zo(this.latestValues)&&Oc(f,this.latestValues),f}removeTransform(l){const c=An();_s(c,l);for(let f=0;f<this.path.length;f++){const d=this.path[f];if(!d.instance||!Zo(d.latestValues))continue;v_(d.latestValues)&&d.updateSnapshot();const h=An(),g=d.measurePageBox();_s(h,g),mA(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return Zo(this.latestValues)&&mA(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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!==Zn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:g}=this.options;if(!(!this.layout||!(h||g))){if(this.resolvedRelativeTargetAt=Zn.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=An(),this.relativeTargetOrigin=An(),sd(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),_s(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=An(),this.targetWithTransforms=An()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_s(this.target,this.layout.layoutBox),t3(this.target,this.targetDelta)):_s(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=An(),this.relativeTargetOrigin=An(),sd(this.relativeTargetOrigin,this.target,v.target),_s(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||v_(this.parent.latestValues)||e3(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;
vendor: 8,821 bytes, line 4207
4207if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Zn.timestamp&&(f=!1),f)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;_s(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,v=this.treeScale.y;yG(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=An());const{target:x}=l;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dA(this.prevProjectionDelta.x,this.projectionDelta.x),dA(this.prevProjectionDelta.y,this.projectionDelta.y)),id(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==v||!_A(this.projectionDelta.x,this.prevProjectionDelta.x)||!_A(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Uc(),this.projectionDelta=Uc(),this.projectionDeltaWithTransform=Uc()}setAnimationOrigin(l,c=!1){const f=this.snapshot,d=f?f.latestValues:{},h={...this.latestValues},g=Uc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=An(),x=f?f.source:void 0,b=this.layout?this.layout.source:void 0,_=x!==b,w=this.getStack(),S=!w||w.members.length<=1,T=!!(_&&!S&&this.options.crossfade===!0&&!this.path.some(Q7));this.animationProgress=0;let M;this.mixTargetDelta=C=>{const N=C/1e3;EA(g.x,l.x,N),EA(g.y,l.y,N),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sd(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Z7(this.relativeTarget,this.relativeTargetOrigin,v,N),M&&I7(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=An()),_s(M,this.relativeTarget)),_&&(this.animationValues=h,N7(h,d,this.latestValues,N,T,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ps(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=It.update(()=>{nm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ws(0)),this.currentAnimation=M7(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(z7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:f,layout:d,latestValues:h}=l;if(!(!c||!f||!d)){if(this!==l&&this.layout&&d&&E3(this.options.animationType,this.layout.layoutBox,d.layoutBox)){f=this.target||An();const g=Si(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+g;const v=Si(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+v}_s(c,f),Oc(c,h),id(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new B7),this.sharedNodes.get(l).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:f}={}){const d=this.getStack();d&&d.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const d={};f.z&&Ox("z",l,d,this.animationValues);for(let h=0;h<Lx.length;h++)Ox(`rotate${Lx[h]}`,l,d,this.animationValues),Ox(`skew${Lx[h]}`,l,d,this.animationValues);l.render();for(const h in d)l.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);l.scheduleRender()}applyProjectionStyles(l,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=tm(c?.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=tm(c?.pointerEvents)||""),this.hasProjected&&!Zo(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const h=d.animationValues||d.latestValues;this.applyTransformsToTarget();let g=F7(this.projectionDeltaWithTransform,this.treeScale,h);f&&(g=f(h,g)),l.transform=g;const{x:v,y:x}=this.projectionDelta;l.transformOrigin=`${v.origin*100}% ${x.origin*100}% 0`,d.animationValues?l.opacity=d===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:l.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in xd){if(h[b]===void 0)continue;const{correct:_,applyTo:w,isCSSVariable:S}=xd[b],T=g==="none"?h[b]:_(h[b],d);if(w){const M=w.length;for(let C=0;C<M;C++)l[w[C]]=T}else S?this.options.visualElement.renderState.vars[b]=T:l[b]=T}this.options.layoutId&&(l.pointerEvents=d===this?tm(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(bA),this.root.sharedNodes.clear()}}}function k7(n){n.updateLayout()}function V7(n){const e=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&e&&n.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:i}=n.layout,{animationType:s}=n.options,a=e.source!==n.layout.source;s==="size"?ws(h=>{const g=a?e.measuredBox[h]:e.layoutBox[h],v=Si(g);g.min=t[h].min,g.max=g.min+v}):E3(s,e.layoutBox,t)&&ws(h=>{const g=a?e.measuredBox[h]:e.layoutBox[h],v=Si(t[h]);g.max=g.min+v,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[h].max=n.relativeTarget[h].min+v)});const l=Uc();id(l,t,e.layoutBox);const c=Uc();a?id(c,n.applyTransform(i,!0),e.measuredBox):id(c,t,e.layoutBox);const f=!_3(l);let d=!1;if(!n.resumeFrom){const h=n.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:g,layout:v}=h;if(g&&v){const x=An();sd(x,e.layoutBox,g.layoutBox);const b=An();sd(b,t,v.layoutBox),b3(x,b)||(d=!0),h.options.layoutRoot&&(n.relativeTarget=b,n.relativeTargetOrigin=x,n.relativeParent=h)}}}n.notifyListeners("didUpdate",{layout:t,snapshot:e,delta:c,layoutDelta:l,hasLayoutChanged:f,hasRelativeLayoutChanged:d})}else if(n.isLead()){const{onExitComplete:t}=n.options;t&&t()}n.options.transition=void 0}function H7(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}
4207function G7(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function W7(n){n.clearSnapshot()}function bA(n){n.clearMeasurements()}function SA(n){n.isLayoutDirty=!1}function X7(n){const{visualElement:e}=n.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),n.resetTransform()}function wA(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function q7(n){n.resolveTargetDelta()}function Y7(n){n.calcProjection()}function $7(n){n.resetSkewAndRotation()}function K7(n){n.removeLeadSnapshot()}function EA(n,e,t){n.translate=vn(e.translate,0,t),n.scale=vn(e.scale,1,t),n.origin=e.origin,n.originPoint=e.originPoint}function MA(n,e,t,i){n.min=vn(e.min,t.min,i),n.max=vn(e.max,t.max,i)}function Z7(n,e,t,i){MA(n.x,e.x,t.x,i),MA(n.y,e.y,t.y,i)}function Q7(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const J7={duration:.45,ease:[.4,0,.1,1]},TA=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),AA=TA("applewebkit/")&&!TA("chrome/")?Math.round:Ui;function CA(n){n.min=AA(n.min),n.max=AA(n.max)}function eW(n){CA(n.x),CA(n.y)}function E3(n,e,t){return n==="position"||n==="preserve-aspect"&&!a7(yA(e),yA(t),.2)}function tW(n){return n!==n.root&&n.scroll?.wasRoot}const nW=w3({attachResizeListener:(n,e)=>yd(n,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ux={current:void 0},M3=w3({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Ux.current){const n=new nW({});n.mount(window),n.setOptions({layoutScroll:!0}),Ux.current=n}return Ux.current},resetTransform:(n,e)=>{n.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),iW={pan:{Feature:b7},drag:{Feature:_7,ProjectionNode:M3,MeasureLayout:v3}};function RA(n,e,t){const{props:i}=n;n.animationState&&i.whileHover&&n.animationState.setActive("whileHover",t==="Start");const s="onHover"+t,a=i[s];a&&It.postRender(()=>a(e,jd(e)))}class sW extends mo{mount(){const{current:e}=this.node;e&&(this.unmount=h9(e,(t,i)=>(RA(this.node,i,"Start"),s=>RA(this.node,s,"End"))))}unmount(){}}class rW extends mo{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=Bd(yd(this.node.current,"focus",()=>this.onFocus()),yd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function NA(n,e,t){const{props:i}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&i.whileTap&&n.animationState.setActive("whileTap",t==="Start");const s="onTap"+(t==="End"?"":t),a=i[s];a&&It.postRender(()=>a(e,jd(e)))}class aW extends mo{mount(){const{current:e}=this.node;e&&(this.unmount=v9(e,(t,i)=>(NA(this.node,i,"Start"),(s,{success:a})=>NA(this.node,s,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const E_=new WeakMap,Ix=new WeakMap,oW=n=>{const e=E_.get(n.target);e&&e(n)},lW=n=>{n.forEach(oW)};function cW({root:n,...e}){const t=n||document;Ix.has(t)||Ix.set(t,{});const i=Ix.get(t),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(lW,{root:n,...e})),i[s]}function uW(n,e,t){const i=cW(e);return E_.set(n,t),i.observe(n),()=>{E_.delete(n),i.unobserve(n)}}const fW={some:0,all:1};class dW extends mo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:i,amount:s="some",once:a}=e,l={root:t?t.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:fW[s]},c=f=>{const{isIntersecting:d}=f;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:g}=this.node.getProps(),v=d?h:g;v&&v(f)};return uW(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(hW(e,t))&&this.startObserver()}unmount(){}}function hW({viewport:n={}},{viewport:e={}}={}){return t=>n[t]!==e[t]}const pW={inView:{Feature:dW},tap:{Feature:aW},focus:{Feature:rW},hover:{Feature:sW}},mW={layout:{ProjectionNode:M3,MeasureLayout:v3}},gW={...e7,...pW,...iW,...mW},wi=gG(gW,RG);function vW(n,e,t){A.useInsertionEffect(()=>n.on(e,t),[n,e,t])}const xW=50,DA=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),yW=()=>({time:0,x:DA(),y:DA()}),_W={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function PA(n,e,t,i){const s=t[e],{length:a,position:l}=_W[e],c=s.current,f=t.time;s.current=n[`scroll${l}`],s.scrollLength=n[`scroll${a}`]-n[`client${a}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=su(0,s.scrollLength,s.current);const d=i-f;s.velocity=d>xW?0:Fb(s.current-c,d)}function bW(n,e,t){PA(n,"x",e,t),PA(n,"y",e,t),e.time=t}function SW(n,e){const t={x:0,y:0};let i=n;for(;i&&i!==e;
4207)if(e1(i))t.x+=i.offsetLeft,t.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const s=i.getBoundingClientRect();i=i.parentElement;const a=i.getBoundingClientRect();t.x+=s.left-a.left,t.y+=s.top-a.top}else if(i instanceof SVGGraphicsElement){const{x:s,y:a}=i.getBBox();t.x+=s,t.y+=a;let l=null,c=i.parentNode;for(;!l;)c.tagName==="svg"&&(l=c),c=i.parentNode;i=l}else break;return t}const M_={start:0,center:.5,end:1};function LA(n,e,t=0){let i=0;if(n in M_&&(n=M_[n]),typeof n=="string"){const s=parseFloat(n);n.endsWith("px")?i=s:n.endsWith("%")?n=s/100:n.endsWith("vw")?i=s/100*document.documentElement.clientWidth:n.endsWith("vh")?i=s/100*document.documentElement.clientHeight:n=s}return typeof n=="number"&&(i=e*n),t+i}const wW=[0,0];function EW(n,e,t,i){let s=Array.isArray(n)?n:wW,a=0,l=0;return typeof n=="number"?s=[n,n]:typeof n=="string"&&(n=n.trim(),n.includes(" ")?s=n.split(" "):s=[n,M_[n]?n:"0"]),a=LA(s[0],t,i),l=LA(s[1],e),a-l}const MW={All:[[0,0],[1,1]]},TW={x:0,y:0};function AW(n){return"getBBox"in n&&n.tagName!=="svg"?n.getBBox():{width:n.clientWidth,height:n.clientHeight}}function CW(n,e,t){const{offset:i=MW.All}=t,{target:s=n,axis:a="y"}=t,l=a==="y"?"height":"width",c=s!==n?SW(s,n):TW,f=s===n?{width:n.scrollWidth,height:n.scrollHeight}:AW(s),d={width:n.clientWidth,height:n.clientHeight};e[a].offset.length=0;let h=!e[a].interpolate;const g=i.length;for(let v=0;v<g;v++){const x=EW(i[v],d[l],f[l],c[a]);!h&&x!==e[a].interpolatorOffsets[v]&&(h=!0),e[a].offset[v]=x}h&&(e[a].interpolate=qb(e[a].offset,xN(i),{clamp:!1}),e[a].interpolatorOffsets=[...e[a].offset]),e[a].progress=Sr(0,1,e[a].interpolate(e[a].current))}function RW(n,e=n,t){if(t.x.targetOffset=0,t.y.targetOffset=0,e!==n){let i=e;for(;i&&i!==n;)t.x.targetOffset+=i.offsetLeft,t.y.targetOffset+=i.offsetTop,i=i.offsetParent}t.x.targetLength=e===n?e.scrollWidth:e.clientWidth,t.y.targetLength=e===n?e.scrollHeight:e.clientHeight,t.x.containerLength=n.clientWidth,t.y.containerLength=n.clientHeight}function NW(n,e,t,i={}){return{measure:s=>{RW(n,i.target,t),bW(n,t,s),(i.offset||i.target)&&CW(n,t,i)},notify:()=>e(t)}}const Lf=new WeakMap,OA=new WeakMap,Bx=new WeakMap,UA=n=>n===document.scrollingElement?window:n;function T3(n,{container:e=document.scrollingElement,...t}={}){if(!e)return Ui;let i=Bx.get(e);i||(i=new Set,Bx.set(e,i));const s=yW(),a=NW(e,n,s,t);if(i.add(a),!Lf.has(e)){const c=()=>{for(const g of i)g.measure(Zn.timestamp);It.preUpdate(f)},f=()=>{for(const g of i)g.notify()},d=()=>It.read(c);Lf.set(e,d);const h=UA(e);window.addEventListener("resize",d,{passive:!0}),e!==document.documentElement&&OA.set(e,T9(e,d)),h.addEventListener("scroll",d,{passive:!0}),d()}const l=Lf.get(e);return It.read(l,!1,!0),()=>{Ps(l);const c=Bx.get(e);if(!c||(c.delete(a),c.size))return;const f=Lf.get(e);Lf.delete(e),f&&(UA(e).removeEventListener("scroll",f),OA.get(e)?.(),window.removeEventListener("resize",f))}}const IA=new Map;function DW(n){const e={value:0},t=T3(i=>{e.value=i[n.axis].progress*100},n);return{currentTime:e,cancel:t}}function A3({source:n,container:e,...t}){const{axis:i}=t;n&&(e=n);const s=IA.get(e)??new Map;IA.set(e,s);const a=t.target??"self",l=s.get(a)??{},c=i+(t.offset??[]).join(",");return l[c]||(l[c]=!t.target&&SN()?new ScrollTimeline({source:e,axis:i}):DW({container:e,...t})),l[c]}function PW(n,e){const t=A3(e);return n.attachTimeline({timeline:e.target?void 0:t,observe:i=>(i.pause(),FN(s=>{i.time=i.iterationDuration*s},t))})}function LW(n){return n.length===2}function OW(n,e){return LW(n)?T3(t=>{n(t[e.axis].progress,t)},e):FN(n,A3(e))}function UW(n,{axis:e="y",container:t=document.scrollingElement,...i}={}){if(!t)return Ui;const s={axis:e,container:t,...i};return typeof n=="function"?OW(n,s):PW(n,s)}const IW=()=>({scrollX:Ws(0),scrollY:Ws(0),scrollXProgress:Ws(0),scrollYProgress:Ws(0)}),Lp=n=>n?!n.current:!1;function BW({container:n,target:e,...t}={}){const i=xu(IW),s=A.useRef(null),a=A.useRef(!1),l=A.useCallback(()=>(s.current=UW((c,{x:f,y:d})=>{i.scrollX.set(f.current),i.scrollXProgress.set(f.progress),i.scrollY.set(d.current),i.scrollYProgress.set(d.progress)},{...t,container:n?.current||void 0,target:e?.current||void 0}),()=>{s.current?.()}),[n,e,JSON.stringify(t.offset)]);return eg(()=>{if(a.current=!1,Lp(n)||Lp(e)){a.current=!0;return}else return l()},[l]),A.useEffect(()=>{if(a.current)return pd(!Lp(n)),pd(!Lp(e)),l()},[l]),i}function kd(n){const e=xu(()=>Ws(n)),{isStatic:t}=A.useContext(Su);if(t){const[,i]=A.useState(n);A.useEffect(()=>
4207e.on("change",i),[])}return e}function C3(n,e){const t=kd(e()),i=()=>t.set(e());return i(),eg(()=>{const s=()=>It.preRender(i,!1,!0),a=n.map(l=>l.on("change",s));return()=>{a.forEach(l=>l()),Ps(i)}}),t}function FW(n){td.current=[],n();const e=C3(td.current,n);return td.current=void 0,e}function T_(n,e,t,i){if(typeof n=="function")return FW(n);const s=typeof e=="function"?e:C9(e,t,i);return Array.isArray(n)?BA(n,s):BA([n],([a])=>s(a))}function BA(n,e){const t=xu(()=>[]);return C3(n,()=>{t.length=0;const i=n.length;for(let s=0;s<i;s++)t[s]=n[s].get();return e(t)})}function R3(n,e={}){const{isStatic:t}=A.useContext(Su),i=()=>Jn(n)?n.get():n;if(t)return T_(i);const s=kd(i());return A.useInsertionEffect(()=>R9(s,n,e),[s,JSON.stringify(e)]),s}function zW(n){const e=A.useRef(0),{isStatic:t}=A.useContext(Su);A.useEffect(()=>{if(t)return;const i=({timestamp:s,delta:a})=>{e.current||(e.current=s),n(s-e.current,a)};return It.update(i,!0),()=>Ps(i)},[n])}function jW(n){const e=kd(n.getVelocity()),t=()=>{const i=n.getVelocity();e.set(i),i&&It.update(t)};return vW(n,"change",()=>{It.update(t,!1,!0)}),e}const kW={some:0,all:1};function VW(n,e,{root:t,margin:i,amount:s="some"}={}){const a=Jb(n),l=new WeakMap,c=d=>{d.forEach(h=>{const g=l.get(h.target);if(h.isIntersecting!==!!g)if(h.isIntersecting){const v=e(h.target,h);typeof v=="function"?l.set(h.target,v):f.unobserve(h.target)}else typeof g=="function"&&(g(h),l.delete(h.target))})},f=new IntersectionObserver(c,{root:t,rootMargin:i,threshold:typeof s=="number"?s:kW[s]});return a.forEach(d=>f.observe(d)),()=>f.disconnect()}function HW(n,{root:e,margin:t,amount:i,once:s=!1,initial:a=!1}={}){const[l,c]=A.useState(a);return A.useEffect(()=>{if(!n.current||s&&l)return;const f=()=>(c(!0),s?void 0:()=>c(!1)),d={root:e&&e.current||void 0,margin:t,amount:i};return VW(n.current,f,d)},[e,n,t,s,i]),l}const GW=(n,e,t)=>{const i=e-n;return((t-n)%i+i)%i+n};function N3(n){var e,t,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(e=0;e<s;e++)n[e]&&(t=N3(n[e]))&&(i&&(i+=" "),i+=t)}else for(t in n)n[t]&&(i&&(i+=" "),i+=t);return i}function D3(){for(var n,e,t=0,i="",s=arguments.length;t<s;t++)(n=arguments[t])&&(e=N3(n))&&(i&&(i+=" "),i+=e);return i}const h1="-",WW=n=>{const e=qW(n),{conflictingClassGroups:t,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:l=>{const c=l.split(h1);return c[0]===""&&c.length!==1&&c.shift(),P3(c,e)||XW(l)},getConflictingClassGroupIds:(l,c)=>{const f=t[l]||[];return c&&i[l]?[...f,...i[l]]:f}}},P3=(n,e)=>{if(n.length===0)return e.classGroupId;const t=n[0],i=e.nextPart.get(t),s=i?P3(n.slice(1),i):void 0;if(s)return s;if(e.validators.length===0)return;const a=n.join(h1);return e.validators.find(({validator:l})=>l(a))?.classGroupId},FA=/^\[(.+)\]$/,XW=n=>{if(FA.test(n)){const e=FA.exec(n)[1],t=e?.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},qW=n=>{const{theme:e,classGroups:t}=n,i={nextPart:new Map,validators:[]};for(const s in t)A_(t[s],i,s,e);return i},A_=(n,e,t,i)=>{n.forEach(s=>{if(typeof s=="string"){const a=s===""?e:zA(e,s);a.classGroupId=t;return}if(typeof s=="function"){if(YW(s)){A_(s(i),e,t,i);return}e.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([a,l])=>{A_(l,zA(e,a),t,i)})})},zA=(n,e)=>{let t=n;
vendor: 6,385 bytes, line 4207
4207return e.split(h1).forEach(i=>{t.nextPart.has(i)||t.nextPart.set(i,{nextPart:new Map,validators:[]}),t=t.nextPart.get(i)}),t},YW=n=>n.isThemeGetter,$W=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,i=new Map;const s=(a,l)=>{t.set(a,l),e++,e>n&&(e=0,i=t,t=new Map)};return{get(a){let l=t.get(a);if(l!==void 0)return l;if((l=i.get(a))!==void 0)return s(a,l),l},set(a,l){t.has(a)?t.set(a,l):s(a,l)}}},C_="!",R_=":",KW=R_.length,ZW=n=>{const{prefix:e,experimentalParseClassName:t}=n;let i=s=>{const a=[];let l=0,c=0,f=0,d;for(let b=0;b<s.length;b++){let _=s[b];if(l===0&&c===0){if(_===R_){a.push(s.slice(f,b)),f=b+KW;continue}if(_==="/"){d=b;continue}}_==="["?l++:_==="]"?l--:_==="("?c++:_===")"&&c--}const h=a.length===0?s:s.substring(f),g=QW(h),v=g!==h,x=d&&d>f?d-f:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:x}};if(e){const s=e+R_,a=i;i=l=>l.startsWith(s)?a(l.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(t){const s=i;i=a=>t({className:a,parseClassName:s})}return i},QW=n=>n.endsWith(C_)?n.substring(0,n.length-1):n.startsWith(C_)?n.substring(1):n,JW=n=>{const e=Object.fromEntries(n.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const s=[];let a=[];return i.forEach(l=>{l[0]==="["||e[l]?(s.push(...a.sort(),l),a=[]):a.push(l)}),s.push(...a.sort()),s}},eX=n=>({cache:$W(n.cacheSize),parseClassName:ZW(n),sortModifiers:JW(n),...WW(n)}),tX=/\s+/,nX=(n,e)=>{const{parseClassName:t,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=e,l=[],c=n.trim().split(tX);let f="";for(let d=c.length-1;d>=0;d-=1){const h=c[d],{isExternal:g,modifiers:v,hasImportantModifier:x,baseClassName:b,maybePostfixModifierPosition:_}=t(h);if(g){f=h+(f.length>0?" "+f:f);continue}let w=!!_,S=i(w?b.substring(0,_):b);if(!S){if(!w){f=h+(f.length>0?" "+f:f);continue}if(S=i(b),!S){f=h+(f.length>0?" "+f:f);continue}w=!1}const T=a(v).join(":"),M=x?T+C_:T,C=M+S;if(l.includes(C))continue;l.push(C);const N=s(S,w);for(let U=0;U<N.length;++U){const P=N[U];l.push(M+P)}f=h+(f.length>0?" "+f:f)}return f};function iX(){let n=0,e,t,i="";for(;n<arguments.length;)(e=arguments[n++])&&(t=L3(e))&&(i&&(i+=" "),i+=t);return i}const L3=n=>{if(typeof n=="string")return n;let e,t="";for(let i=0;i<n.length;i++)n[i]&&(e=L3(n[i]))&&(t&&(t+=" "),t+=e);return t};function sX(n,...e){let t,i,s,a=l;function l(f){const d=e.reduce((h,g)=>g(h),n());return t=eX(d),i=t.cache.get,s=t.cache.set,a=c,c(f)}function c(f){const d=i(f);if(d)return d;const h=nX(f,t);return s(f,h),h}return function(){return a(iX.apply(null,arguments))}}const Vn=n=>{const e=t=>t[n]||[];return e.isThemeGetter=!0,e},O3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,U3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rX=/^\d+\/\d+$/,aX=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oX=/\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$/,lX=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cX=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uX=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bc=n=>rX.test(n),St=n=>!!n&&!Number.isNaN(Number(n)),Va=n=>!!n&&Number.isInteger(Number(n)),Fx=n=>n.endsWith("%")&&St(n.slice(0,-1)),Kr=n=>aX.test(n),fX=()=>!0,dX=n=>oX.test(n)&&!lX.test(n),I3=()=>!1,hX=n=>cX.test(n),pX=n=>uX.test(n),mX=n=>!Qe(n)&&!Je(n),gX=n=>wu(n,z3,I3),Qe=n=>O3.test(n),Xo=n=>wu(n,j3,dX),zx=n=>wu(n,bX,St),jA=n=>wu(n,B3,I3),vX=n=>wu(n,F3,pX),Op=n=>wu(n,k3,hX),Je=n=>U3.test(n),Of=n=>Eu(n,j3),xX=n=>Eu(n,SX),kA=n=>Eu(n,B3),yX=n=>Eu(n,z3),_X=n=>Eu(n,F3),Up=n=>Eu(n,k3,!0),wu=(n,e,t)=>{const i=O3.exec(n);return i?i[1]?e(i[1]):t(i[2]):!1},Eu=(n,e,t=!1)=>{const i=U3.exec(n);return i?i[1]?e(i[1]):t:!1},B3=n=>n==="position"||n==="percentage",F3=n=>n==="image"||n==="url",z3=n=>n==="length"||n==="size"||n==="bg-size",j3=n=>n==="length",bX=n=>n==="number",SX=n=>n==="family-name",k3=n=>n==="shadow",wX=()=>{const n=Vn("color"),e=Vn("font"),t=Vn("text"),i=Vn("font-weight"),s=Vn("tracking"),a=Vn("leading"),l=Vn("breakpoint"),c=Vn("container"),f=Vn("spacing"),d=Vn("radius"),h=Vn("shadow"),g=Vn("inset-shadow"),v=Vn("text-shadow"),x=Vn("drop-shadow"),b=Vn("blur"),_=Vn("perspective"),w=Vn("aspect"),S=Vn("ease"),T=Vn("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...C(),Je,Qe],U=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],O=()=>[Je,Qe,f],R=()=>[bc,"full","auto",...O()],L=()=>[Va,"none","subgrid",Je,Qe],z=()=>["auto",{span:["full",Va,Je,Qe]},Va,Je,Qe],H=()=>[Va,"auto",Je,Qe],Y=()=>["auto","min","max","fr",Je,Qe],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...O()],W=()=>[bc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],j=()=>[n,Je,Qe],ae=()=>[...C(),kA,jA,{position:[Je,Qe]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",yX,gX,{size:[Je,Qe]}],ee=()=>[Fx,Of,Xo],me=()=>["","none","full",d,Je,Qe],ve=()=>["",St,Of,Xo],ge=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[St,Fx,kA,jA],xe=()=>["","none",b,Je,Qe],Me=()=>["none",St,Je,Qe],Ae=()=>["none",St,Je,Qe],Be=()=>[St,Je,Qe],Xe=()=>[bc,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kr],breakpoint:[Kr],color:[fX],container:[Kr],"drop-shadow":[Kr],ease:["in","out","in-out"],font:[mX],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kr],shadow:[Kr],spacing:["px",St],text:[Kr],"text-shadow":[Kr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bc,Qe,Je,w]}
vendor: 12,861 bytes, line 4207
4207],container:["container"],columns:[{columns:[St,Qe,Je,c]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[Va,"auto",Je,Qe]}],basis:[{basis:[bc,"full","auto",c,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[St,bc,"auto","initial","none",Qe]}],grow:[{grow:["",St,Je,Qe]}],shrink:[{shrink:["",St,Je,Qe]}],order:[{order:[Va,"first","last","none",Je,Qe]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[c,"screen",...W()]}],"min-w":[{"min-w":[c,"screen","none",...W()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",t,Of,Xo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Je,zx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fx,Qe]}],"font-family":[{font:[xX,Qe,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Je,Qe]}],"line-clamp":[{"line-clamp":[St,"none",Je,zx]}],leading:[{leading:[a,...O()]}],"list-image":[{"list-image":["none",Je,Qe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Je,Qe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[St,"from-font","auto",Je,Xo]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[St,"auto",Je,Qe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Je,Qe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Je,Qe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Va,Je,Qe],radial:["",Je,Qe],conic:[Va,Je,Qe]},_X,vX]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:ve()}],"border-w-x":[{"border-x":ve()}],"border-w-y":[{"border-y":ve()}],"border-w-s":[{"border-s":ve()}],"border-w-e":[{"border-e":ve()}],"border-w-t":[{"border-t":ve()}],"border-w-r":[{"border-r":ve()}],"border-w-b":[{"border-b":ve()}],"border-w-l":[{"border-l":ve()}],"divide-x":[{"divide-x":ve()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ve()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[St,Je,Qe]}],"outline-w":[{outline:["",St,Of,Xo]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",h,Up,Op]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",g,Up,Op]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[St,Xo]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":ve()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",v,Up,Op]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[St,Je,Qe]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[St]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Je,Qe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[St]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Je,Qe]}],filter:[{filter:["","none",Je,Qe]}],blur:[{blur:xe()}],brightness:[{brightness:[St,Je,Qe]}],contrast:[{contrast:[St,Je,Qe]}],"drop-shadow":[{"drop-shadow":["","none",x,Up,Op]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",St,Je,Qe]}],"hue-rotate":[{"hue-rotate":[St,Je,Qe]}],invert:[{invert:["",St,Je,Qe]}],saturate:[{saturate:[St,Je,Qe]}],sepia:[{sepia:["",St,Je,Qe]}],"backdrop-filter":[{"backdrop-filter":["","none",Je,Qe]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[St,Je,Qe]}],"backdrop-contrast":[{"backdrop-contrast":[St,Je,Qe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",St,Je,Qe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[St,Je,Qe]}],"backdrop-invert":[{"backdrop-invert":["",St,Je,Qe]}],"backdrop-opacity":[{"backdrop-opacity":[St,Je,Qe]}],"backdrop-saturate":[{"backdrop-saturate":[St,Je,Qe]}],"backdrop-sepia":[{"backdrop-sepia":["",St,Je,Qe]}],"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:["","all","colors","opacity","shadow","transform","none",Je,Qe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[St,"initial",Je,Qe]}],ease:[{ease:["linear","initial",S,Je,Qe]}],delay:[{delay:[St,Je,Qe]}],animate:[{animate:["none",T,Je,Qe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,Je,Qe]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Me()}],"rotate-x":[{"rotate-x":Me()}],"rotate-y":[{"rotate-y":Me()}],"rotate-z":[{"rotate-z":Me()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Be()}],"skew-x":[{"skew-x":Be()}],"skew-y":[{"skew-y":Be()}],transform:[{transform:[Je,Qe,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xe()}],"translate-x":[{"translate-x":Xe()}],"translate-y":[{"translate-y":Xe()}],"translate-z":[{"translate-z":Xe()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}
4207],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Je,Qe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",Je,Qe]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[St,Of,Xo,zx]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},EX=sX(wX);function un(...n){return EX(D3(n))}function VA({children:n,baseVelocity:e=-5,clasname:t,scrollDependent:i=!1,delay:s=0}){const a=kd(0),{scrollY:l}=BW(),c=jW(l),f=R3(c,{damping:50,stiffness:400}),d=T_(f,[0,1e3],[0,2],{clamp:!1}),h=T_(a,x=>`${GW(-20,-45,x)}%`),g=A.useRef(1),v=A.useRef(!1);return A.useEffect(()=>{const x=setTimeout(()=>{v.current=!0},s);return()=>clearTimeout(x)},[s]),zW((x,b)=>{if(!v.current)return;let _=g.current*e*(b/1e3);i&&(d.get()<0?g.current=-1:d.get()>0&&(g.current=1)),_+=g.current*_*d.get(),a.set(a.get()+_)}),m.jsx("div",{className:"overflow-hidden whitespace-nowrap flex flex-nowrap py-4",children:m.jsxs(wi.div,{className:"flex whitespace-nowrap gap-10 flex-nowrap",style:{x:h},children:[m.jsx("span",{className:un("block sm:text-[3vw] text-[8vw]",t),children:n}),m.jsx("span",{className:un("block sm:text-[3vw] text-[8vw]",t),children:n}),m.jsx("span",{className:un("block sm:text-[3vw] text-[8vw]",t),children:n}),m.jsx("span",{className:un("block sm:text-[3vw] text-[8vw]",t),children:n})]})})}function MX(){return m.jsx(m.Fragment,{children:m.jsxs("div",{className:"h-[500px] grid place-content-center",children:[m.jsx(VA,{delay:500,baseVelocity:-2,clasname:"font-bold tracking-[-0.07em] leading-[90%]",children:"Streamline . Tecnologia . Inovação ."}),m.jsx(VA,{delay:500,baseVelocity:2,clasname:"font-bold tracking-[-0.07em] leading-[90%]",children:"Segurança . Suporte . Eficiêcia ."})]})})}function TX(){return m.jsx("section",{className:"relative w-full py-20 overflow-hidden",children:m.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-6 md:px-12",children:m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[m.jsx("div",{className:"relative",children:m.jsx("div",{className:"aspect-video rounded-3xl overflow-hidden shadow-2xl bg-black",children:m.jsxs("video",{controls:!0,className:"w-full h-full object-cover",poster:"/video-thumbnail.jpg",children:[m.jsx("source",{src:"/quem-somos-video.mp4",type:"video/mp4"}),"Seu navegador não suporta o elemento de vÃdeo."]})})}),m.jsxs("div",{className:"space-y-6",children:[m.jsx("h2",{className:"text-5xl md:text-5xl font-bold",children:"QUEM SOMOS?"}),m.jsxs("div",{className:"space-y-4 text-sm md:text-base leading-relaxed",children:[m.jsx("p",{className:"font-light",children:"Somos a Streamline, uma empresa com mais de 15 anos de experiência em Engenharia Informática, atuando no mercado desde 2009. Apoiamos empresas a tornarem os seus processos de sistemas e tecnologias de informação até 30% mais eficientes, através de uma gestão estratég
4207ica e otimizada das operações digitais."}),m.jsx("p",{className:"font-light opacity-40",children:"Prestamos suporte ao CIO (Chief Information Officer) ou assumimos essa função diretamente, aplicando 3 pilares fundamentais: pensamento crÃtico, gestão por objetivos e inovação contÃnua. Cada projeto é único e adaptado à s necessidades especÃficas de cada cliente â até hoje já transformamos os processos de mais de 50 empresas."})]})]})]})})})}const AX=()=>m.jsx(m.Fragment,{children:m.jsxs("a",{className:"flex gap-2 cursor-pointer px-4 py-3 hover:bg-black bg-white text-black border-black hover:text-white transition-all border-2 dark:border-white dark:bg-white dark:text-black rounded-full font-semibold",href:"#",children:["Saber Mais",m.jsx(NU,{})]})});function CX({items:n,setIndex:e,setOpen:t,index:i,imagesBaseUrl:s}){return m.jsx("div",{className:"w-full overflow-x-auto pb-20 pt-10 scrollbar-hide",children:m.jsx("div",{className:` 4208 rounded-md 4209 w-full 4210 overflow-x-auto 4211 mx-auto 4212 gap-1 4213 flex 4214 px-4 4215 md:px-0 4216 md:w-fit 4217 md:overflow-visible 4218 md:gap-2 4219 `,children:n.map((a,l)=>{if(!a.imagem)return null;const c=`${s}/${a.imagem}`;return m.jsx(wi.img,{whileTap:{scale:.95},className:`rounded-2xl cursor-pointer ${i===l?"w-[280px] sm:w-[350px] md:w-[400px] lg:w-[500px]":"w-[40px] sm:w-[50px] md:w-[40px] xl:w-[60px]"} h-[250px] sm:h-[300px] md:h-[350px] shrink-0 object-cover transition-[width] ease-in-out duration-500`,onMouseEnter:()=>{e(l)},onClick:()=>{e(l),t(!0)},src:c,layoutId:a.id.toString()},a.id)})})})}function Mu({items:n,apiUrl:e,imagesBaseUrl:t="https://api.streamline.pt/projects/profileImages",filterByService:i}){const[s,a]=A.useState(0),[l,c]=A.useState(!1),[f,d]=A.useState(n||[]),[h,g]=A.useState(!1),[v,x]=A.useState(null);return A.useEffect(()=>{e&&!n&&(g(!0),x(null),fetch(e).then(b=>{if(!b.ok)throw new Error("Falha ao carregar projetos");return b.json()}).then(b=>{let _=b.filter(w=>w.site_visivel===1&&w.imagem&&w.site_destaque===1);i!==void 0&&(_=_.filter(w=>w.servico_id===i)),d(_),g(!1)}).catch(b=>{x(b.message),g(!1)}))},[e,n]),A.useEffect(()=>{l?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden");const b=_=>{_.key==="Escape"&&c(!1)};return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[l]),h?m.jsx("div",{className:"flex justify-center items-center py-20",children:m.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-purple-600"})}):v?m.jsx("div",{className:"text-center py-20 text-red-600",children:m.jsxs("p",{children:["Erro ao carregar projetos: ",v]})}):m.jsxs("div",{className:"relative w-full max-w-full overflow-x-hidden",children:[m.jsx("div",{className:"text-center px-4",children:m.jsx("h1",{className:"text-3xl sm:text-4xl md:!text-5xl lg:text-6xl font-medium [letter-spacing:-0.04em] text-center",children:"Veja o que criamos!"})}),m.jsx("div",{className:"relative",children:m.jsx(CX,{items:f,index:s,setIndex:a,setOpen:c,imagesBaseUrl:t})}),m.jsx(F9,{children:l!==!1&&m.jsx(wi.div,{initial:{opacity:0}
4219,animate:{opacity:1},exit:{opacity:0},className:"dark:bg-black/40 !bg-black/40 backdrop-blur-lg fixed inset-0 z-50 top-0 left-0 bottom-0 right-0 w-full h-full grid place-content-center",onClick:()=>{c(!1)},children:m.jsx("div",{onClick:b=>b.stopPropagation(),className:"w-full px-4",children:m.jsxs(wi.div,{layoutId:f[s].id.toString(),className:"w-full sm:w-[85vw] md:w-[75vw] lg:w-[60vw] max-w-full h-[60vh] sm:h-[60vh] md:h-[63vh] rounded-2xl relative cursor-default overflow-hidden mx-auto",children:[m.jsx("img",{src:`${t}/${f[s].imagem}`,alt:f[s].designacao_publica,className:"rounded-2xl h-full w-full object-cover"}),m.jsxs("article",{className:"dark:!bg-black !bg-slate-900 backdrop-blur-md absolute -bottom-1 left-0 w-full rounded-md p-4 sm:p-6 md:p-10",children:[m.jsx(wi.h1,{initial:{scaleY:.2},animate:{scaleY:1},exit:{scaleY:.2},transition:{duration:.2,delay:.2},className:"!text-lg sm:!text-xl md:!text-2xl !font-semibold",children:f[s].designacao_publica}),f[s].descricao_publica&&m.jsx(wi.p,{initial:{y:-10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.2,delay:.2},className:` 4220 text-xs sm:text-sm 4221 font-light 4222 py-2 4223 4224 max-h-[4.5rem] sm:max-h-[8rem] 4225 overflow-auto 4226 min-h-0 4227 4228 pr-1 4229 `,children:f[s].descricao_publica}),m.jsx("div",{className:"w-40 sm:w-40 md:w-38",children:m.jsx(AX,{})})]})]})})},"overlay")})]})}const p1=A.createContext(void 0);function RX({children:n,defaultValue:e}){const[t,i]=A.useState(e);return m.jsx(p1.Provider,{value:{activeTab:t,setActiveTab:i},children:n})}function Uf({children:n,value:e}){const t=A.useContext(p1);if(!t)throw new Error("TabsBtn must be used within TabsProvider");const{activeTab:i,setActiveTab:s}=t,a=i===e;return m.jsxs("button",{onClick:()=>s(e),className:`relative px-4 py-2 rounded-xl transition-colors !outline-none focus:outline-none ${a?"text-white":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200"}`,children:[a&&m.jsx(wi.div,{layoutId:"activeTab",className:"absolute inset-0 bg-purple-600 rounded-xl",transition:{type:"spring",duration:.5}}),n]})}function If({children:n,value:e}){const t=A.useContext(p1);if(!t)throw new Error("TabsContent must be used within TabsProvider");const{activeTab:i}=t;return i!==e?null:m.jsx(wi.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"mt-4",children:n})}const Bf=({children:n,className:e="",spotlightColor:t="rgba(255, 255, 255, 0.25)"})=>{const i=A.useRef(null),[s,a]=A.useState(!1),[l,c]=A.useState({x:0,y:0}),[f,d]=A.useState(0),h=_=>{if(!i.current||s)return;const w=i.current.getBoundingClientRect();c({x:_.clientX-w.left,y:_.clientY-w.top})},g=()=>{a(!0),d(.6)},v=()=>{a(!1),d(0)},x=()=>{d(.6)},b=()=>{d(0)};return m.jsxs("div",{ref:i,onMouseMove:h,onFocus:g,onBlur:v,onMouseEnter:x,onMouseLeave:b,className:`relative rounded-3xl border border-neutral-800 bg-neutral-900 overflow-hidden ${e}`,children:[m.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-500 ease-in-out",style:{opacity:f,background:`radial-gradient(circle at ${l.x}px ${l.y}px, ${t}, transparent 80%)`}}),n]})};function NX(){const[n,e]=A.useState([]),[t,i]=A.useState(!0),s="https://api.streamline.pt/features/image";A.useEffect(()=>{(async()=>{try{const d=(await(await fetch("https://api.streamline.pt/features/")).json()).filter(h=>h.active===1);e(d)}catch(c){console.error("Erro ao carregar cartões:",c)}finally{i(!1)}})()},[]);const a=l=>n.filter(c=>c.f_servico_id===l);return m.jsxs("div",{className:"p-6 relative max-w-6xl mx-auto",children:[m.jsx("div",{className:"mb-8 flex justify-center py-4",children:m.jsx("h1",{className:"text-4xl md:!text-6xl lg:text-5xl font-medium [letter-spacing:-0.04em] text-center",children:"Ainda não prevemos o futuro, mas podemos criá-lo consigo..."})}),m.jsxs(RX,{defaultValue:"software",children:[m.jsx("div",{className:"flex justify-center mt-2 mb-6",children:m.jsxs("div",{className:"flex flex-wrap items-center justify-center w-fit bg-[#1d2025] p-1 !text-white rounded-xl gap-1",children:[m.jsx(Uf,{value:"software",children:m.jsx("span",{className:"relative z-2 text-sm text-white font-medium px-2",children:"Desenvolvimento de Software"})}),m.jsx(Uf,{value:"sites",children:m.jsx("span",{className:"relative z-2 text-sm text-white font-medium px-2",children:"Sites"})}),m.jsx(Uf,{value:"formacao",children:m.jsx("span",{className:"relative z-2 text-sm text-white font-medium px-2",children:"Formação"})}),m.jsx(Uf,{value:"sistemas",children:m.jsx("span",{className:"relative z-2 text-sm text-white font-medium px-2",children:"Administração de Sistemas"})}),m.jsx(Uf,{value:"redes",children:m.jsx("span",{className:"relative z-2 text-sm text-white font-medium px-2",children:"Redes"})})]})}),m.jsx(If,{value:"software",children:m.jsx("div",{className:"w-full",children:t?m.jsx("div",{className:"flex justify-center items-center h-[400px]",children:m.jsx("div",{className:"text-white",children:"Carregando..."})}):m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:a(1).map((l,c)=>{const f=c===0;return m.jsx(Bf,{className:f?"md:col-span-2 md:row-span-2 h-[400px] md:h-full":"h-[190px]",spotlightColor:c%4===0?"rgba(126, 39, 255, 0.2)":c%4===1?"rgba(208, 160, 252, 0.2)":c%4===2?"rgba(136, 57, 255, 0.2)":"rgba(126, 39, 255, 0.15)",children:f&&l.imagem?m.jsxs("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:[m.jsx("img",{src:`${s}/${l.id}`,alt:l.designacao,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),m.jsxs("div",{className:"relative h-full p-8 flex flex-col justify-end",children:[m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-2 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 text-sm",children:l.descricao})]})]}):l.imagem?m.jsx("div",{className:"h-full flex flex-col justify-between",children:m.jsx("div",{className:"flex items-start gap-4 p-8",children:m.jsxs("div",{children:[m.jsx("img",{src:`${s}/${l.id}`,alt:l.designacao,className:"w-8 h-8 rounded-md object-cover flex-shrink-0"}),m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-3 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 mb-4 text-sm",children:l.descricao})]})})}):m.jsx("div",{className:"h-full flex flex-col justify-between",children:m.jsxs("div",{className:"p-8",children:[m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-3 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 mb-4 text-sm",children:l.descricao})]})})},l.id)})})})}),m.jsx(If,{value:"sites",children:m.jsx("div",{className:"w-full",children:t?m.jsx("div",{className:"flex justify-center items-center h-[400px]",children:m.jsx("div",{className:"text-white",children:"Carregando..."})}):m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:a(2).map((l,c)=>{const f=c===0;return m.jsx(Bf,{className:f?"md:col-span-2 md:row-span-2 h-[400px] md:h-full":"h-[190px]",spotlightColor:c%4===0?"rgba(126, 39, 255, 0.2)":c%4===1?"rgba(208, 160, 252, 0.2)":c%4===2?"rgba(136, 57, 255, 0.2)":"rgba(126, 39, 255, 0.15)",children:f&&l.imagem?m.jsxs("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:[m.jsx("img",{src:`${s}/${l.id}`,alt:l.designacao,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),m.jsxs("div",{className:"relative h-full p-8 flex flex-col justify-end",children:[m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-2 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 text-sm",children:l.descricao})]})]}):l.imagem?m.jsx("div",{className:"h-full flex flex-col justify-between",children:m.jsx("div",{className:"flex items-start gap-4 p-8",children:m.jsxs("div",{children:[m.jsx("img",{src:`${s}/${l.id}`,alt:l.designacao,className:"w-8 h-8 rounded-md object-cover flex-shrink-0"}),m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-3 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 mb-4 text-sm",children:l.descricao})]})})}):m.jsx("div",{className:"h-full flex flex-col justify-between",children:m.jsxs("div",{className:"p-8",children:[m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-3 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 mb-4 text-sm",children:l.descricao})]})})},l.id)})})})}),m.jsx(If,{value:"formacao",children:m.jsx("div",{className:"w-full",children:t?m.jsx("div",{className:"flex justify-center items-center h-[400px]",children:m.jsx("div",{className:"text-white",children:"Carregando..."})}):m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:a(3).map((l,c)=>{const f=c===0;return m.jsx(Bf,{className:f?"md:col-span-2 md:row-span-2 h-[400px] md:h-full":"h-[190px]",spotlightColor:c%4===0?"rgba(126, 39, 255, 0.2)":c%4===1?"rgba(208, 160, 252, 0.2)":c%4===2?"rgba(136, 57, 255, 0.2)":"rgba(126, 39, 255, 0.15)",children:f&&l.imagem?m.jsxs("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:[m.jsx("img",{src:`${s}/${l.id}`,alt:l.designacao,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),m.jsxs("div",{className:"relative h-full p-8 flex flex-col justify-end",children:[m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-2 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 text-sm",children:l.descricao})]})]}):l.imagem?m.jsx("div",{className:"h-full flex flex-col justify-between",children:m.jsx("div",{className:"flex items-start gap-4 p-8",children:m.jsxs("div",{children:[m.jsx("img",{src:`${s}/${l.id}`,alt:l.designacao,className:"w-8 h-8 rounded-md object-cover flex-shrink-0"}),m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-3 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 mb-4 text-sm",children:l.descricao})]})})}):m.jsx("div",{className:"h-full flex flex-col justify-between",children:m.jsxs("div",{className:"p-8",children:[m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-3 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 mb-4 text-sm",children:l.descricao})]})})},l.id)})})})}),m.jsx(If,{value:"sistemas",children:m.jsx("div",{className:"w-full",children:t?m.jsx("div",{className:"flex justify-center items-center h-[400px]",children:m.jsx("div",{className:"text-white",children:"Carregando..."})}):m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:a(4).map((l,c)=>{const f=c===0;return m.jsx(Bf,{className:f?"md:col-span-2 md:row-span-2 h-[400px] md:h-full":"h-[190px]",spotlightColor:c%4===0?"rgba(126, 39, 255, 0.2)":c%4===1?"rgba(208, 160, 252, 0.2)":c%4===2?"rgba(136, 57, 255, 0.2)":"rgba(126, 39, 255, 0.15)",children:f&&l.imagem?m.jsxs("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:[m.jsx("img",{src:`${s}/${l.id}`,alt:l.designacao,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),m.jsxs("div",{className:"relative h-full p-8 flex flex-col justify-end",children:[m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-2 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 text-sm",children:l.descricao})]})]}):l.imagem?m.jsx("div",{className:"h-full flex flex-col justify-between",children:m.jsx("div",{className:"flex items-start gap-4 p-8",children:m.jsxs("div",{children:[m.jsx("img",{src:`${s}/${l.id}`,alt:l.designacao,className:"w-8 h-8 rounded-md object-cover flex-shrink-0"}),m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-3 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 mb-4 text-sm",children:l.descricao})]})})}):m.jsx("div",{className:"h-full flex flex-col justify-between",children:m.jsxs("div",{className:"p-8",children:[m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-3 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 mb-4 text-sm",children:l.descricao})]})})},l.id)})})})}),m.jsx(If,{value:"redes",children:m.jsx("div",{className:"w-full",children:t?m.jsx("div",{className:"flex justify-center items-center h-[400px]",children:m.jsx("div",{className:"text-white",children:"Carregando..."})}):m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:a(5).map((l,c)=>{const f=c===0;return m.jsx(Bf,{className:f?"md:col-span-2 md:row-span-2 h-[400px] md:h-full":"h-[190px]",spotlightColor:c%4===0?"rgba(126, 39, 255, 0.2)":c%4===1?"rgba(208, 160, 252, 0.2)":c%4===2?"rgba(136, 57, 255, 0.2)":"rgba(126, 39, 255, 0.15)",children:f&&l.imagem?m.jsxs("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:[m.jsx("img",{src:`${s}/${l.id}`,alt:l.designacao,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),m.jsxs("div",{className:"relative h-full p-8 flex flex-col justify-end",children:[m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-2 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 text-sm",children:l.descricao})]})]}):l.imagem?m.jsx("div",{className:"h-full flex flex-col justify-between",children:m.jsx("div",{className:"flex items-start gap-4 p-8",children:m.jsxs("div",{children:[m.jsx("img",{src:`${s}/${l.id}`,alt:l.designacao,className:"w-8 h-8 rounded-md object-cover flex-shrink-0"}),m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-3 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 mb-4 text-sm",children:l.descricao})]})})}):m.jsx("div",{className:"h-full flex flex-col justify-between",children:m.jsxs("div",{className:"p-8",children:[m.jsx("h3",{className:`${f?"text-2xl":"text-lg"} font-bold mb-3 text-white`,children:l.designacao}),l.descricao&&m.jsx("p",{className:"text-white/80 mb-4 text-sm",children:l.descricao})]})})},l.id)})})})})]})]})}const Ha={user:()=>m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#000000",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),m.jsx("circle",{cx:"12",cy:"7",r:"4"})]}),logo:()=>m.jsx("img",{src:"./logo_2.png",alt:""}),typescript:()=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"182",height:"178",fill:"none",viewBox:"0 0 182 178",children:[m.jsx("path",{fill:"#007ACC",d:"M0 0H181.622V177.081H0z"}),m.jsx("path",{fill:"#fff",d:"M144.151 73.383c4.03.985 7.691 3.203 10.523 6.373a29.101 29.101 0 014.033 5.686c.052.224-7.262 5.389-11.697 8.27-.161.114-.8-.618-1.524-1.742a9.8 9.8 0 00-3.342-3.558 9.2 9.2 0 00-4.563-1.417c-5.098-.369-8.383 2.438-8.359 7.13a6.742 6.742 0 00.724 3.313c1.122 2.437 3.205 3.9 9.746 6.88 12.042 5.448 17.211 9.04 20.401 14.144a26.592 26.592 0 013.255 10.55 26.9 26.9 0 01-1.285 11.008c-1.631 3.868-4.217 7.206-7.49 9.669-3.273 2.463-7.113 3.96-11.122 4.336a49.112 49.112 0 01-12.818-.139c-6.511-1.125-12.509-4.409-17.116-9.374a31.383 31.383 0 01-4.384-6.821c.492-.384 1.009-.73 1.548-1.034.748-.448 3.579-2.16 6.248-3.786l4.847-2.986 1.013 1.553a23.128 23.128 0 006.39 6.428 15.012 15.012 0 008.302 2.002 15.134 15.134 0 008.067-2.873 7.852 7.852 0 002.171-4.73 7.985 7.985 0 00-1.225-5.091c-1.306-1.965-3.976-3.617-11.563-7.075-5.95-2.108-11.369-5.603-15.853-10.224a23.68 23.68 0 01-4.619-8.84 37.166 37.166 0 01-.294-11.284c.891-4.32 3.023-8.246 6.109-11.249 3.085-3.003 6.974-4.936 11.14-5.537a40.562 40.562 0 0112.737.418zM104.66 80.76l.052 7.234H82.797v65.413H67.342V88.01H45.426v-7.105a73.127 73.127 0 01.
422919-7.293c.08-.115 13.405-.17 29.56-.14l29.399.085.085 7.204z"})]}),nextjs:()=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"353",height:"353",fill:"none",viewBox:"0 0 353 353",children:[m.jsx("circle",{cx:"176.5",cy:"176.5",r:"176.5",fill:"#fff"}),m.jsx("path",{fill:"#000",d:"M164.94.095c-.759.069-3.174.31-5.348.483-50.138 4.52-97.101 31.569-126.846 73.143C16.183 96.837 5.59 123.058 1.587 150.83.173 160.526 0 163.39 0 176.535c0 13.145.173 16.008 1.587 25.703C11.18 268.515 58.35 324.2 122.325 344.832c11.456 3.691 23.533 6.21 37.267 7.728 5.348.587 28.468.587 33.816 0 23.706-2.622 43.789-8.487 63.595-18.596 3.037-1.553 3.623-1.967 3.209-2.312-.276-.207-13.216-17.561-28.743-38.538l-28.227-38.124-35.369-52.338c-19.461-28.774-35.472-52.304-35.61-52.304-.138-.034-.276 23.219-.345 51.614-.104 49.716-.138 51.717-.759 52.89-.898 1.691-1.588 2.381-3.037 3.14-1.104.552-2.07.656-7.281.656h-5.969l-1.588-1.001a6.45 6.45 0 01-2.312-2.519l-.724-1.552.069-69.175.103-69.21 1.07-1.345c.552-.725 1.725-1.656 2.553-2.105 1.415-.69 1.967-.759 7.937-.759 7.039 0 8.212.276 10.041 2.277.518.552 19.669 29.395 42.581 64.138 22.912 34.743 54.244 82.182 69.634 105.471l27.95 42.333 1.415-.932c12.526-8.142 25.776-19.735 36.266-31.81 22.326-25.635 36.715-56.893 41.546-90.221 1.414-9.695 1.587-12.558 1.587-25.703s-.173-16.009-1.587-25.704C341.82 84.554 294.65 28.869 230.675 8.237 219.391 4.58 207.383 2.062 193.926.544c-3.313-.346-26.122-.725-28.986-.449zm72.257 106.747c1.656.828 3.002 2.415 3.485 4.071.276.897.345 20.08.276 63.31l-.104 62.033-10.938-16.767-10.973-16.768v-45.093c0-29.154.138-45.542.345-46.335.552-1.932 1.76-3.451 3.416-4.348 1.415-.724 1.932-.793 7.35-.793 5.107 0 6.004.069 7.143.69z"})]}),tailwindcss:()=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"515",height:"320",fill:"none",viewBox:"0 0 515 320",children:[m.jsx("path",{fill:"url(#paint0_linear_2162_50)",d:"M257.5 0c-68.666 0-111.584 35.556-128.75 106.667 25.75-35.557 55.791-48.89 90.125-40 19.588 5.07 33.59 19.79 49.088 36.079C293.21 129.285 322.428 160 386.25 160c68.666 0 111.584-35.556 128.75-106.667-25.75 35.557-55.791 48.89-90.125 40-19.588-5.07-33.59-19.79-49.088-36.079C350.54 30.714 321.322 0 257.5 0zM128.75 160C60.084 160 17.166 195.556 0 266.667c25.75-35.557 55.791-48.89 90.125-40 19.588 5.07 33.59 19.789 49.088 36.079C164.46 289.285 193.678 320 257.5 320c68.666 0 111.584-35.556 128.75-106.667-25.75 35.557-55.791 48.89-90.125 40-19.588-5.071-33.59-19.789-49.088-36.079C221.79 190.715 192.572 160 128.75 160z"}),m.jsx("defs",{children:m.jsxs("linearGradient",{id:"paint0_linear_2162_50",x1:"-3662.52",x2:"-2027.97",y1:"15728.6",y2:"33439.8",gradientUnits:"userSpaceOnUse",children:[m.jsx("stop",{stopColor:"#0FB3E7"}),m.jsx("stop",{offset:"0",stopColor:"#23E7C5"})]})})]}),reactjs:()=>m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2194",height:"2500",viewBox:"175.7 78 490.6 436.9",children:m.jsxs("g",{fill:"#11C9FB",children:[m.jsx("path",{d:"M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4
422910 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24s9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6s22.9-35.6 58.3-50.6c8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6z"}),m.jsx("circle",{cx:"420.9",cy:"296.5",r:"45.7"})]})}),wp:()=>m.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"text-gray-900",children:m.jsx("path",{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.511 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"})}),server:()=>m.jsx(qU,{className:"text-purple-700"})},Wa=({className:n,containerRef:e,fromRef:t,toRef:i,curvature:s=0,reverse:a=!1,duration:l=Math.random()*3+4,delay:c=0,pathColor:f="gray",pathWidth:d=2,pathOpacity:h=.2,gradientStartColor:g="#4d40ff",gradientStopColor:v="#4043ff",startXOffset:x=0,startYOffset:b=0,endXOffset:_=0,endYOffset:w=0,dotted:S=!1,dotSpacing:T=6})=>{const M=A.useId(),[C,N]=A.useState(""),[U,P]=A.useState({width:0,height:0}),O=S?`${T} ${T}`:"none",R=a?{x1:["90%","-10%"],x2:["100%","0%"],y1:["0%","0%"],y2:["0%","0%"]}:{x1:["10%","110%"],x2:["0%","100%"],y1:["0%","0%"],y2:["0%","0%"]};return A.useEffect(()=>{const L=()=>
4229{if(e.current&&t.current&&i.current){const H=e.current.getBoundingClientRect(),Y=t.current.getBoundingClientRect(),K=i.current.getBoundingClientRect(),q=H.width,B=H.height;P({width:q,height:B});const W=Y.left-H.left+Y.width/2+x,j=Y.top-H.top+Y.height/2+b,ae=K.left-H.left+K.width/2+_,fe=K.top-H.top+K.height/2+w,G=j-s,ee=`M ${W},${j} Q ${(W+ae)/2},${G} ${ae},${fe}`;N(ee)}},z=new ResizeObserver(H=>{for(let{}of H)L()});return e.current&&z.observe(e.current),L(),()=>{z.disconnect()}},[e,t,i,s,x,b,_,w]),m.jsxs("svg",{fill:"none",width:U.width,height:U.height,xmlns:"http://www.w3.org/2000/svg",className:un("pointer-events-none absolute left-0 top-0 transform-gpu stroke-2",n),viewBox:`0 0 ${U.width} ${U.height}`,children:[m.jsx("path",{d:C,stroke:f,strokeWidth:d,strokeOpacity:h,strokeLinecap:"round",strokeDasharray:O}),m.jsx(wi.path,{d:C,stroke:`url(#${M})`,strokeLinecap:"round",strokeDasharray:O,initial:{strokeWidth:d,strokeOpacity:0},animate:{strokeWidth:d*1.5,strokeOpacity:1},transition:{duration:2,delay:c}}),m.jsx("defs",{children:m.jsxs(wi.linearGradient,{className:"transform-gpu",id:M,gradientUnits:"userSpaceOnUse",initial:{x1:"0%",x2:"0%",y1:"0%",y2:"0%"},animate:{x1:R.x1,x2:R.x2,y1:R.y1,y2:R.y2},transition:{delay:c,duration:l,ease:[.16,1,.3,1],repeat:1/0,repeatDelay:0},children:[m.jsx("stop",{stopColor:g,stopOpacity:"0"}),m.jsx("stop",{stopColor:g}),m.jsx("stop",{offset:"32.5%",stopColor:v}),m.jsx("stop",{offset:"100%",stopColor:v,stopOpacity:"0"})]})})]})};Wa.displayName="AnimatedBeam";const Qr=A.forwardRef(({className:n,children:e},t)=>m.jsx("div",{ref:t,className:un("z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",n),children:e}));Qr.displayName="Circle";function DX(){const n=A.useRef(null),e=A.useRef(null),t=A.useRef(null),i=A.useRef(null),s=A.useRef(null),a=A.useRef(null),l=A.useRef(null),c=A.useRef(null),f=A.useRef(null);return m.jsxs("div",{className:"relative flex h-full w-full max-w-6xl mx-auto items-center justify-center overflow-hidden lg:p-10 sm:p-4 p-2",ref:n,children:[m.jsxs("div",{className:"flex h-full w-full flex-row items-stretch justify-between gap-10",children:[m.jsxs("div",{className:"flex flex-col justify-center gap-2",children:[m.jsx(Qr,{ref:e,children:m.jsx(Ha.typescript,{})}),m.jsx(Qr,{ref:t,className:"p-2",children:m.jsx(Ha.tailwindcss,{})}),m.jsx(Qr,{ref:i,className:"p-2",children:m.jsx(Ha.nextjs,{})}),m.jsx(Qr,{ref:s,className:"p-2",children:m.jsx(Ha.reactjs,{})}),m.jsx(Qr,{ref:a,className:"p-2",children:m.jsx(Ha.wp,{})}),m.jsx(Qr,{ref:l,className:"p-2",children:m.jsx(Ha.server,{})})]}),m.jsx("div",{className:"flex flex-col justify-center",children:m.jsx(Qr,{ref:c,className:"h-20 w-20",children:m.jsx(Ha.logo,{})})}),m.jsx("div",{className:"flex flex-col justify-center",children:m.jsx(Qr,{ref:f,children:m.jsx(Ha.user,{})})})]}),m.jsx(Wa,{containerRef:n,fromRef:e,toRef:c,dotted:!0,dotSpacing:6}),m.jsx(Wa,{containerRef:n,fromRef:t,toRef:c,dotted:!0,gradientStartColor:"#006ae3",gradientStopColor:"#1194ff",dotSpacing:6}),m.jsx(Wa,{containerRef:n,fromRef:i,toRef:c,gradientStartColor:"#00ac47",gradientStopColor:"#4fcc5d",dotted:!0,dotSpacing:6}),m.jsx(Wa,{containerRef:n,fromRef:s,toRef:c,dotted:!0,gradientStartColor:"#006ae3",gradientStopColor:"#1194ff",dotSpacing:6}),m.jsx(Wa,{containerRef:n,fromRef:a,toRef:c,dotted:!0,dotSpacing:6,gradientStartColor:"#d948ae",gradientStopColor:"#5b60ff"}),m.jsx(Wa,{containerRef:n,fromRef:l,toRef:c,dotted:!0,dotSpacing:6}),m.jsx(Wa,{containerRef:n,fromRef:c,toRef:f,dotted:!0,dotSpacing:6})]})}function mn({children:n,className:e="",colors:t=["#ffaa40","#9c40ff","#ffaa40"],animationSpeed:i=8,showBorder:s=!1}){const a={backgroundImage:`linear-gradient(to right, ${t.join(", ")})`,animationDuration:`${i}s`};return m.jsxs("div",{className:`relative flex max-w-fit flex-row items-center justify-start font-medium backdrop-blur transition-shadow duration-500 overflow-hidden cursor-pointer ${e}`,children:[s&&m.jsx("div",{className:"absolute inset-0 bg-cover z-0 pointer-events-none animate-gradient",style:{...a,backgroundSize:"300% 100%"},children:m.jsx("div",{className:"absolute inset-0 bg-black rounded-[1.25rem] z-[-1]",style:{width:"calc(100% - 2px)",height:"calc(100% - 2px)",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}})}),m.jsx("div",{className:"inline-block relative z-2 text-transparent bg-cover animate-gradient",style:{...a,backgroundClip:"text",WebkitBackgroun
vendor: 5,195 bytes, lines 4229-4249
4229dClip:"text",backgroundSize:"300% 100%"},children:n})]})}function PX(){return A.useState(0),m.jsx("div",{className:"min-h-screen flex flex-col",children:m.jsxs("main",{className:"items-center justify-center mb-4",children:[m.jsx(C8,{}),m.jsx(MX,{}),m.jsx(TX,{}),m.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center my-20 px-4 md:px-8 lg:px-8",children:[m.jsxs("div",{children:[m.jsx(mn,{children:m.jsx("h1",{className:"!text-4xl md:!text-5xl lg:!text-6xl/20 font-medium [letter-spacing:-0.04em] text-center",children:"O nosso principal objetivo?"})}),m.jsx("p",{className:"mt-6 text-center max-w-3xl mx-auto text-lg text-white/80",children:"Garantir uma taxa de satisfação próxima dos 100%, com soluções tecnológicas personalizadas que geram valor estratégico para os nossos clientes."})]}),m.jsx(DX,{})]}),m.jsx(NX,{}),m.jsxs("div",{className:"my-50 flex flex-col items-center justify-center",children:[m.jsx(Mu,{apiUrl:"https://api.streamline.pt/projects",imagesBaseUrl:"https://api.streamline.pt/projects/profileImages"}),m.jsx("a",{href:"/projetos",className:` 4230 inline-flex items-center justify-center 4231 px-5 py-2 4232 rounded-full 4233 bg-gradient-to-r from-violet-600 via-purple-600 to-fuchsia-600 4234 text-white text-lg font-semibold 4235 shadow-2xl shadow-purple-500/50 4236 hover:shadow-purple-500/70 4237 hover:scale-105 4238 transition-all duration-300 4239 `,children:"Todos os projectos"})]})]})})}function LX(){const[n,e]=A.useState(!1);return A.useEffect(()=>{e(!0)},[]),m.jsx("section",{className:"relative w-full h-[70vh] flex items-center justify-center overflow-hidden mt-15 sm:mt-15 md:mt-10",children:m.jsx("div",{className:"relative z-10 w-[100vw] sm:w-[100vw] md:w-[80vw] flex flex-col items-start mx-auto px-6 md:px-12 text-start",children:m.jsxs("div",{className:`space-y-8 transition-all duration-1000 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:[m.jsx("div",{className:"inline-block",children:m.jsx("span",{className:"inline-flex items-start px-6 py-2 rounded-full bg-purple-300/20 border border-sky-500/30 text-purple-200 text-sm font-medium backdrop-blur-sm opacity-76 shadow-lg shadow-purple-800/40",children:"Projetos"})}),m.jsx(mn,{children:m.jsx("h1",{className:"!text-5xl md:!text-6xl lg:!text-7xl max-w-xl font-medium [letter-spacing:-0.05em]",children:"Alcance connosco o excelente!"})}),m.jsx("p",{className:"text-sm md:text-lg text-white/70 font-light max-w-lg",children:"Criamos o seu próximo website, app mobile e web ou até um Sistema de Informação de acordo com os seus requisitos"}),m.jsx("div",{className:"pt-2",children:m.jsx("a",{href:"/contacto",className:` 4240 inline-flex items-center justify-center 4241 px-5 py-2 4242 rounded-full 4243 bg-gradient-to-r from-violet-600 via-purple-600 to-fuchsia-600 4244 text-white text-lg font-semibold 4245 shadow-2xl shadow-purple-500/50 4246 hover:shadow-purple-500/70 4247 hover:scale-105 4248 transition-all duration-300 4249 `,children:"Contacte-nos"})})]})})})}function kt(n,e,{checkForDefaultPrevented:t=!0}={}){return function(s){if(n?.(s),t===!1||!s.defaultPrevented)return e?.(s)}}function HA(n,e){if(typeof n=="function")return n(e);n!=null&&(n.current=e)}function Tu(...n){return e=>{let t=!1;const i=n.map(s=>{const a=HA(s,e);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let s=0;s<i.length;s++){const a=i[s];typeof a=="function"?a():HA(n[s],null)}}}}function on(...n){return A.useCallback(Tu(...n),n)}function OX(n,e){const t=A.createContext(e),i=a=>{const{children:l,...c}=a,f=A.useMemo(()=>c,Object.values(c));return m.jsx(t.Provider,{value:f,children:l})};i.displayName=n+"Provider";function s(a){const l=A.useContext(t);if(l)return l;if(e!==void 0)return e;throw new Error(`\`${a}\` must be used within \`${n}\``)}return[i,s]}function Vd(n,e=[]){let t=[];function i(a,l){const c=A.createContext(l),f=t.length;t=[...t,l];const d=g=>{const{scope:v,children:x,...b}=g,_=v?.[n]?.[f]||c,w=A.useMemo(()=>b,Object.values(b));return m.jsx(_.Provider,{value:w,children:x})};d.displayName=a+"Provider";function h(g,v){const x=v?.[n]?.[f]||c,b=A.useContext(x);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${a}\``)}return[d,h]}const s=()=>{const a=t.map(l=>A.createContext(l));return function(c){const f=c?.[n]||a;return A.useMemo(()=>({[`__scope${n}`]:{...c,[n]:f}}),[c,f])}};return s.scopeName=n,[i,UX(s,...e)]}function UX(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const l=i.reduce((c,{useScope:f,scopeName:d})=>{const g=f(a)[`__scope${d}`];return{...c,...g}},{});return A.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return t.scopeName=e.scopeName,t}var ci=globalThis?.document?A.useLayoutEffect:()=>{},IX=fb[" useId ".trim().toString()]||(()=>{}),BX=0;function Vc(n){const[e,t]=A.useState(IX());return ci(()=>{t(i=>i??String(BX++))},[n]),n||(e?`radix-${e}
4249`:"")}var FX=fb[" useInsertionEffect ".trim().toString()]||ci;function N_({prop:n,defaultProp:e,onChange:t=()=>{},caller:i}){const[s,a,l]=zX({defaultProp:e,onChange:t}),c=n!==void 0,f=c?n:s;{const h=A.useRef(n!==void 0);A.useEffect(()=>{const g=h.current;g!==c&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=c},[c,i])}const d=A.useCallback(h=>{if(c){const g=jX(h)?h(n):h;g!==n&&l.current?.(g)}else a(h)},[c,n,a,l]);return[f,d]}function zX({defaultProp:n,onChange:e}){const[t,i]=A.useState(n),s=A.useRef(t),a=A.useRef(e);return FX(()=>{a.current=e},[e]),A.useEffect(()=>{s.current!==t&&(a.current?.(t),s.current=t)},[t,s]),[t,i,a]}function jX(n){return typeof n=="function"}function kX(n){const e=VX(n),t=A.forwardRef((i,s)=>{const{children:a,...l}=i,c=A.Children.toArray(a),f=c.find(GX);if(f){const d=f.props.children,h=c.map(g=>g===f?A.Children.count(d)>1?A.Children.only(null):A.isValidElement(d)?d.props.children:null:g);return m.jsx(e,{...l,ref:s,children:A.isValidElement(d)?A.cloneElement(d,void 0,h):null})}return m.jsx(e,{...l,ref:s,children:a})});return t.displayName=`${n}.Slot`,t}function VX(n){const e=A.forwardRef((t,i)=>{const{children:s,...a}=t;if(A.isValidElement(s)){const l=XX(s),c=WX(a,s.props);return s.type!==A.Fragment&&(c.ref=i?Tu(i,l):l),A.cloneElement(s,c)}return A.Children.count(s)>1?A.Children.only(null):null});return e.displayName=`${n}.SlotClone`,e}var HX=Symbol("radix.slottable");function GX(n){return A.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===HX}function WX(n,e){const t={...e};for(const i in e){const s=n[i],a=e[i];/^on[A-Z]/.test(i)?s&&a?t[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(t[i]=s):i==="style"?t[i]={...s,...a}:i==="className"&&(t[i]=[s,a].filter(Boolean).join(" "))}return{...n,...t}}function XX(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}var qX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ht=qX.reduce((n,e)=>{const t=kX(`Primitive.${e}`),i=A.forwardRef((s,a)=>{const{asChild:l,...c}=s,f=l?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(f,{...c,ref:a})});return i.displayName=`Primitive.${e}`,{...n,[e]:i}},{});function YX(n,e){n&&vu.flushSync(()=>n.dispatchEvent(e))}function Pi(n){const e=A.useRef(n);return A.useEffect(()=>{e.current=n}),A.useMemo(()=>(...t)=>e.current?.(...t),[])}function $X(n,e=globalThis?.document){const t=Pi(n);A.useEffect(()=>{const i=s=>{s.key==="Escape"&&t(s)};return e.addEventListener("keydown",i,{capture:!0}),()=>e.removeEventListener("keydown",i,{capture:!0})},[t,e])}var KX="DismissableLayer",D_="dismissableLayer.update",ZX="dismissableLayer.pointerDownOutside",QX="dismissableLayer.focusOutside",GA,V3=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m1=A.forwardRef((n,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...f}=n,d=A.useContext(V3),[h,g]=A.useState(null),v=h?.ownerDocument??globalThis?.document,[,x]=A.useState({}),b=on(e,P=>g(P)),_=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),S=_.indexOf(w),T=h?_.indexOf(h):-1,M=d.layersWithOutsidePointerEventsDisabled.size>0,C=T>=S,N=tq(P=>{const O=P.target,R=[...d.branches].some(L=>L.contains(O));!C||R||(s?.(P),l?.(P),P.defaultPrevented||c?.())},v),U=nq(P=>{const O=P.target;[...d.branches].some(L=>L.contains(O))||(a?.(P),l?.(P),P.defaultPrevented||c?.())},v);return $X(P=>{T===d.layers.size-1&&(i?.(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},v),A.useEffect(()=>{if(h)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(GA=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),WA
vendor: 6,333 bytes, line 4249
4249(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=GA)}},[h,v,t,d]),A.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),WA())},[h,d]),A.useEffect(()=>{const P=()=>x({});return document.addEventListener(D_,P),()=>document.removeEventListener(D_,P)},[]),m.jsx(Ht.div,{...f,ref:b,style:{pointerEvents:M?C?"auto":"none":void 0,...n.style},onFocusCapture:kt(n.onFocusCapture,U.onFocusCapture),onBlurCapture:kt(n.onBlurCapture,U.onBlurCapture),onPointerDownCapture:kt(n.onPointerDownCapture,N.onPointerDownCapture)})});m1.displayName=KX;var JX="DismissableLayerBranch",eq=A.forwardRef((n,e)=>{const t=A.useContext(V3),i=A.useRef(null),s=on(e,i);return A.useEffect(()=>{const a=i.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),m.jsx(Ht.div,{...n,ref:s})});eq.displayName=JX;function tq(n,e=globalThis?.document){const t=Pi(n),i=A.useRef(!1),s=A.useRef(()=>{});return A.useEffect(()=>{const a=c=>{if(c.target&&!i.current){let f=function(){H3(ZX,t,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=f,e.addEventListener("click",s.current,{once:!0})):f()}else e.removeEventListener("click",s.current);i.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",a),e.removeEventListener("click",s.current)}},[e,t]),{onPointerDownCapture:()=>i.current=!0}}function nq(n,e=globalThis?.document){const t=Pi(n),i=A.useRef(!1);return A.useEffect(()=>{const s=a=>{a.target&&!i.current&&H3(QX,t,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,t]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function WA(){const n=new CustomEvent(D_);document.dispatchEvent(n)}function H3(n,e,t,{discrete:i}){const s=t.originalEvent.target,a=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:t});e&&s.addEventListener(n,e,{once:!0}),i?YX(s,a):s.dispatchEvent(a)}var jx="focusScope.autoFocusOnMount",kx="focusScope.autoFocusOnUnmount",XA={bubbles:!1,cancelable:!0},iq="FocusScope",g1=A.forwardRef((n,e)=>{const{loop:t=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=n,[c,f]=A.useState(null),d=Pi(s),h=Pi(a),g=A.useRef(null),v=on(e,_=>f(_)),x=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(i){let _=function(M){if(x.paused||!c)return;const C=M.target;c.contains(C)?g.current=C:Xa(g.current,{select:!0})},w=function(M){if(x.paused||!c)return;const C=M.relatedTarget;C!==null&&(c.contains(C)||Xa(g.current,{select:!0}))},S=function(M){if(document.activeElement===document.body)for(const N of M)N.removedNodes.length>0&&Xa(c)};document.addEventListener("focusin",_),document.addEventListener("focusout",w);const T=new MutationObserver(S);return c&&T.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",w),T.disconnect()}}},[i,c,x.paused]),A.useEffect(()=>{if(c){YA.add(x);const _=document.activeElement;if(!c.contains(_)){const S=new CustomEvent(jx,XA);c.addEventListener(jx,d),c.dispatchEvent(S),S.defaultPrevented||(sq(cq(G3(c)),{select:!0}),document.activeElement===_&&Xa(c))}return()=>{c.removeEventListener(jx,d),setTimeout(()=>{const S=new CustomEvent(kx,XA);c.addEventListener(kx,h),c.dispatchEvent(S),S.defaultPrevented||Xa(_??document.body,{select:!0}),c.removeEventListener(kx,h),YA.remove(x)},0)}}},[c,d,h,x]);const b=A.useCallback(_=>{if(!t&&!i||x.paused)return;const w=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,S=document.activeElement;if(w&&S){const T=_.currentTarget,[M,C]=rq(T);M&&C?!_.shiftKey&&S===C?(_.preventDefault(),t&&Xa(M,{select:!0})):_.shiftKey&&S===M&&(_.preventDefault(),t&&Xa(C,{select:!0})):S===T&&_.preventDefault()}},[t,i,x.paused]);return m.jsx(Ht.div,{tabIndex:-1,...l,ref:v,onKeyDown:b})});g1.displayName=iq;function sq(n,{select:e=!1}={}){const t=document.activeElement;for(const i of n)if(Xa(i,{select:e}),document.activeElement!==t)return}function rq(n){const e=G3(n),t=qA(e,n),i=qA(e.reverse(),n);return[t,i]}function G3(n){const e=[],t=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function qA(n,e){for(const t of n)if(!aq(t,{upTo:e}))return t}function aq(n,{upTo:e}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(e!==void 0&&n===e)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function oq(n){return n instanceof HTMLInputElement&&"select"in n}function Xa(n,{select:e=!1}={}){if(n&&n.focus){const t=document.activeElement;n.focus({preventScroll:!0}),n!==t&&oq(n)&&e&&n.select()}}var YA=lq();function lq(){let n=[];return{add(e){const t=n[0];e!==t&&t?.pause(),n=$A(n,e),n.unshift(e)},remove(e){n=$A(n,e),n[0]?.resume()}}}function $A(n,e){const t=[...n],i=t.indexOf(e);return i!==-1&&t.splice(i,1),t}function cq(n){return n.filter(e=>e.tagName!=="A")}var uq="Portal",v1=A.forwardRef((n,e)=>{const{container:t,...i}=n,[s,a]=A.useState(!1);ci(()=>a(!0),[]);const l=t||s&&globalThis?.document?.body;return l?i8.createPortal(m.jsx(Ht.div,{...i,ref:e}),l):null});v1.displayName=uq;function fq(n,e){return A.useReducer((t,i)=>e[t][i]??t,n)}var go=n=>{const{present:e,children:t}=n,i=dq(e),s=typeof t=="function"?t({present:i.isPresent}):A.Children.only(t),a=on(i.ref,hq(s));return typeof t=="function"||i.isPresent?A.cloneElement(s,{ref:a}):null};go.displayName="Presence";function dq(n){const[e,t]=A.useState(),i=A.useRef(null),s=A.useRef(n),a=A.useRef("none"),l=n?"mounted":"unmounted",[c,f]=fq(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const d=Ip(i.current);a.current=c==="mounted"?d:"none"},[c]),ci(()=>{const d=i.current,h=s.current;if(h!==n){const v=a.current,x=Ip(d);n?f("MOUNT"):x==="none"||d?.display==="none"?f("UNMOUNT"):f(h&&v!==x?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,f]),ci(()=>
vendor: 8,850 bytes, lines 4249-4286
4249{if(e){let d;const h=e.ownerDocument.defaultView??window,g=x=>{const _=Ip(i.current).includes(CSS.escape(x.animationName));if(x.target===e&&_&&(f("ANIMATION_END"),!s.current)){const w=e.style.animationFillMode;e.style.animationFillMode="forwards",d=h.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=w)})}},v=x=>{x.target===e&&(a.current=Ip(i.current))};return e.addEventListener("animationstart",v),e.addEventListener("animationcancel",g),e.addEventListener("animationend",g),()=>{h.clearTimeout(d),e.removeEventListener("animationstart",v),e.removeEventListener("animationcancel",g),e.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[e,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:A.useCallback(d=>{i.current=d?getComputedStyle(d):null,t(d)},[])}}function Ip(n){return n?.animationName||"none"}function hq(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}var Vx=0;function W3(){A.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??KA()),document.body.insertAdjacentElement("beforeend",n[1]??KA()),Vx++,()=>{Vx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Vx--}},[])}function KA(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var ur=function(){return ur=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ur.apply(this,arguments)};function X3(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(n);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(t[i[s]]=n[i[s]]);return t}function pq(n,e,t){if(t||arguments.length===2)for(var i=0,s=e.length,a;i<s;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return n.concat(a||Array.prototype.slice.call(e))}var im="right-scroll-bar-position",sm="width-before-scroll-bar",mq="with-scroll-bars-hidden",gq="--removed-body-scroll-bar-size";function Hx(n,e){return typeof n=="function"?n(e):n&&(n.current=e),n}function vq(n,e){var t=A.useState(function(){return{value:n,callback:e,facade:{get current(){return t.value},set current(i){var s=t.value;s!==i&&(t.value=i,t.callback(i,s))}}}})[0];return t.callback=e,t.facade}var xq=typeof window<"u"?A.useLayoutEffect:A.useEffect,ZA=new WeakMap;function yq(n,e){var t=vq(null,function(i){return n.forEach(function(s){return Hx(s,i)})});return xq(function(){var i=ZA.get(t);if(i){var s=new Set(i),a=new Set(n),l=t.current;s.forEach(function(c){a.has(c)||Hx(c,null)}),a.forEach(function(c){s.has(c)||Hx(c,l)})}ZA.set(t,n)},[n]),t}function _q(n){return n}function bq(n,e){e===void 0&&(e=_q);var t=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:n},useMedium:function(a){var l=e(a,i);return t.push(l),function(){t=t.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(i=!0;t.length;){var l=t;t=[],l.forEach(a)}t={push:function(c){return a(c)},filter:function(){return t}}},assignMedium:function(a){i=!0;var l=[];if(t.length){var c=t;t=[],c.forEach(a),l=t}var f=function(){var h=l;l=[],h.forEach(a)},d=function(){return Promise.resolve().then(f)};d(),t={push:function(h){l.push(h),d()},filter:function(h){return l=l.filter(h),t}}}};return s}function Sq(n){n===void 0&&(n={});var e=bq(null);return e.options=ur({async:!0,ssr:!1},n),e}var q3=function(n){var e=n.sideCar,t=X3(n,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=e.read();if(!i)throw new Error("Sidecar medium not found");return A.createElement(i,ur({},t))};q3.isSideCarExport=!0;function wq(n,e){return n.useMedium(e),q3}var Y3=Sq(),Gx=function(){},ag=A.forwardRef(function(n,e){var t=A.useRef(null),i=A.useState({onScrollCapture:Gx,onWheelCapture:Gx,onTouchMoveCapture:Gx}),s=i[0],a=i[1],l=n.forwardProps,c=n.children,f=n.className,d=n.removeScrollBar,h=n.enabled,g=n.shards,v=n.sideCar,x=n.noRelative,b=n.noIsolation,_=n.inert,w=n.allowPinchZoom,S=n.as,T=S===void 0?"div":S,M=n.gapMode,C=X3(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=v,U=yq([t,e]),P=ur(ur({},C),s);return A.createElement(A.Fragment,null,h&&A.createElement(N,{sideCar:Y3,removeScrollBar:d,shards:g,noRelative:x,noIsolation:b,inert:_,setCallbacks:a,allowPinchZoom:!!w,lockRef:t,gapMode:M}),l?A.cloneElement(A.Children.only(c),ur(ur({},P),{ref:U})):A.createElement(T,ur({},P,{className:f,ref:U}),c))});ag.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ag.classNames={fullWidth:sm,zeroRight:im};var Eq=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Mq(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var e=Eq();return e&&n.setAttribute("nonce",e),n}function Tq(n,e){n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}function Aq(n){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(n)}var Cq=function(){var n=0,e=null;return{add:function(t){n==0&&(e=Mq())&&(Tq(e,t),Aq(e)),n++},remove:function(){n--,!n&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Rq=function(){var n=Cq();return function(e,t){A.useEffect(function(){return n.add(e),function(){n.remove()}},[e&&t])}},$3=function(){var n=Rq(),e=function(t){var i=t.styles,s=t.dynamic;return n(i,s),null};return e},Nq={left:0,top:0,right:0,gap:0},Wx=function(n){return parseInt(n||"",10)||0},Dq=function(n){var e=window.getComputedStyle(document.body),t=e[n==="padding"?"paddingLeft":"marginLeft"],i=e[n==="padding"?"paddingTop":"marginTop"],s=e[n==="padding"?"paddingRight":"marginRight"];return[Wx(t),Wx(i),Wx(s)]},Pq=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Nq;var e=Dq(n),t=document.documentElement.clientWidth,i=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,i-t+e[2]-e[0])}},Lq=$3(),Hc="data-scroll-locked",Oq=function(n,e,t,i){var s=n.left,a=n.top,l=n.right,c=n.gap;return t===void 0&&(t="margin"),` 4250 .`.concat(mq,` { 4251 overflow: hidden `).concat(i,`; 4252 padding-right: `).concat(c,"px ").concat(i,`; 4253 } 4254 body[`).concat(Hc,`] { 4255 overflow: hidden `).concat(i,`; 4256 overscroll-behavior: contain; 4257 `).concat([e&&"position: relative ".concat(i,";"),t==="margin"&&` 4258 padding-left: `.concat(s,`px; 4259 padding-top: `).concat(a,`px; 4260 padding-right: `).concat(l,`px; 4261 margin-left:0; 4262 margin-top:0; 4263 margin-right: `).concat(c,"px ").concat(i,`; 4264 `),t==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),` 4265 } 4266 4267 .`).concat(im,` { 4268 right: `).concat(c,"px ").concat(i,`; 4269 } 4270 4271 .`).concat(sm,` { 4272 margin-right: `).concat(c,"px ").concat(i,`; 4273 } 4274 4275 .`).concat(im," .").concat(im,` { 4276 right: 0 `).concat(i,`; 4277 } 4278 4279 .`).concat(sm," .").concat(sm,` { 4280 margin-right: 0 `).concat(i,`; 4281 } 4282 4283 body[`).concat(Hc,`] { 4284 `).concat(gq,": ").concat(c,`px; 4285 } 4286`)},QA=function(){var n=parseInt(document.body.getAttribute(Hc)||"0",10);return isFinite(n)?n:0},Uq=function(){A.useEffect(function(){return document.body.setAttribute(Hc,(QA()+1).toString()),function(){var n=QA()-1;n<=0?document.body.removeAttribute(Hc):document.body.setAttribute(Hc,n.toString())}},[])},Iq=function(n){var e=n.noRelative,t=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;Uq();var a=A.useMemo(function(){return Pq(s)},[s]);return A.createElement(Lq,{styles:Oq(a,!e,s,t?"":"!important")})},P_=!1;if(typeof window<"u")try{var Bp=Object.defineProperty({},"passive",{get:function(){return P_=!0,!0}});window.addEventListener("test",Bp,Bp),window.removeEventListener("test",Bp,Bp)}catch{P_=!1}var Sc=P_?{passive:!1}:!1,Bq=function(n){return n.tagName==="TEXTAREA"},K3=function(n,e){if(!(n instanceof Element))return!1;var t=window.getComputedStyle(n);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!Bq(n)&&t[e]==="visible")},Fq=function(n){return K3(n,"overflowY")},zq=function(n){return K3(n,"overflowX")},JA=function(n,e){var t=e.ownerDocument,i=e;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=Z3(n,i);if(s){var a=Q3(n,i),l=a[1],c=a[2];
vendor: 4,712 bytes, lines 4286-4289
4286if(l>c)return!0}i=i.parentNode}while(i&&i!==t.body);return!1},jq=function(n){var e=n.scrollTop,t=n.scrollHeight,i=n.clientHeight;return[e,t,i]},kq=function(n){var e=n.scrollLeft,t=n.scrollWidth,i=n.clientWidth;return[e,t,i]},Z3=function(n,e){return n==="v"?Fq(e):zq(e)},Q3=function(n,e){return n==="v"?jq(e):kq(e)},Vq=function(n,e){return n==="h"&&e==="rtl"?-1:1},Hq=function(n,e,t,i,s){var a=Vq(n,window.getComputedStyle(e).direction),l=a*i,c=t.target,f=e.contains(c),d=!1,h=l>0,g=0,v=0;do{if(!c)break;var x=Q3(n,c),b=x[0],_=x[1],w=x[2],S=_-w-a*b;(b||S)&&Z3(n,c)&&(g+=S,v+=b);var T=c.parentNode;c=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!f&&c!==document.body||f&&(e.contains(c)||e===c));return(h&&Math.abs(g)<1||!h&&Math.abs(v)<1)&&(d=!0),d},Fp=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},eC=function(n){return[n.deltaX,n.deltaY]},tC=function(n){return n&&"current"in n?n.current:n},Gq=function(n,e){return n[0]===e[0]&&n[1]===e[1]},Wq=function(n){return` 4287 .block-interactivity-`.concat(n,` {pointer-events: none;} 4288 .allow-interactivity-`).concat(n,` {pointer-events: all;} 4289`)},Xq=0,wc=[];function qq(n){var e=A.useRef([]),t=A.useRef([0,0]),i=A.useRef(),s=A.useState(Xq++)[0],a=A.useState($3)[0],l=A.useRef(n);A.useEffect(function(){l.current=n},[n]),A.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var _=pq([n.lockRef.current],(n.shards||[]).map(tC),!0).filter(Boolean);return _.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),_.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var c=A.useCallback(function(_,w){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!l.current.allowPinchZoom;var S=Fp(_),T=t.current,M="deltaX"in _?_.deltaX:T[0]-S[0],C="deltaY"in _?_.deltaY:T[1]-S[1],N,U=_.target,P=Math.abs(M)>Math.abs(C)?"h":"v";if("touches"in _&&P==="h"&&U.type==="range")return!1;var O=JA(P,U);if(!O)return!0;if(O?N=P:(N=P==="v"?"h":"v",O=JA(P,U)),!O)return!1;if(!i.current&&"changedTouches"in _&&(M||C)&&(i.current=N),!N)return!0;var R=i.current||N;return Hq(R,w,_,R==="h"?M:C)},[]),f=A.useCallback(function(_){var w=_;if(!(!wc.length||wc[wc.length-1]!==a)){var S="deltaY"in w?eC(w):Fp(w),T=e.current.filter(function(N){return N.name===w.type&&(N.target===w.target||w.target===N.shadowParent)&&Gq(N.delta,S)})[0];if(T&&T.should){w.cancelable&&w.preventDefault();return}if(!T){var M=(l.current.shards||[]).map(tC).filter(Boolean).filter(function(N){return N.contains(w.target)}),C=M.length>0?c(w,M[0]):!l.current.noIsolation;C&&w.cancelable&&w.preventDefault()}}},[]),d=A.useCallback(function(_,w,S,T){var M={name:_,delta:w,target:S,should:T,shadowParent:Yq(S)};e.current.push(M),setTimeout(function(){e.current=e.current.filter(function(C){return C!==M})},1)},[]),h=A.useCallback(function(_){t.current=Fp(_),i.current=void 0},[]),g=A.useCallback(function(_){d(_.type,eC(_),_.target,c(_,n.lockRef.current))},[]),v=A.useCallback(function(_){d(_.type,Fp(_),_.target,c(_,n.lockRef.current))},[]);A.useEffect(function(){return wc.push(a),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",f,Sc),document.addEventListener("touchmove",f,Sc),document.addEventListener("touchstart",h,Sc),function(){wc=wc.filter(function(_){return _!==a}),document.removeEventListener("wheel",f,Sc),document.removeEventListener("touchmove",f,Sc),document.removeEventListener("touchstart",h,Sc)}},[]);var x=n.removeScrollBar,b=n.inert;return A.createElement(A.Fragment,null,b?A.createElement(a,{styles:Wq(s)}):null,x?A.createElement(Iq,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function Yq(n){for(var e=null;n!==null;)n instanceof ShadowRoot&&(e=n.host,n=n.host),n=n.parentNode;return e}const $q=wq(Y3,qq);var x1=A.forwardRef(function(n,e){return A.createElement(ag,ur({},n,{ref:e,sideCar:$q}))});x1.classNames=ag.classNames;var Kq=function(n){if(typeof document>"u")return null;var e=Array.isArray(n)?n[0]:n;return e.ownerDocument.body},Ec=new WeakMap,zp=new WeakMap,jp={},Xx=0,J3=function(n){return n&&(n.host||J3(n.parentNode))},Zq=function(n,e){return e.map(function(t){if(n.contains(t))return t;var i=J3(t);return i&&n.contains(i)?i:(console.error("aria-hidden",t,"in not contained inside",n,". Doing nothing"),null)}).filter(function(t){return!!t})},Qq=function(n,e,t,i){var s=Zq(e,Array.isArray(n)?n:[n]);jp[t]||(jp[t]=new WeakMap);var a=jp[t],l=[],c=new Set,f=new Set(s),d=function(g){!g||c.has(g)||(c.add(g),d(g.parentNode))};
vendor: 9,079 bytes, lines 4289-4293
4289s.forEach(d);var h=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(v){if(c.has(v))h(v);else try{var x=v.getAttribute(i),b=x!==null&&x!=="false",_=(Ec.get(v)||0)+1,w=(a.get(v)||0)+1;Ec.set(v,_),a.set(v,w),l.push(v),_===1&&b&&zp.set(v,!0),w===1&&v.setAttribute(t,"true"),b||v.setAttribute(i,"true")}catch(S){console.error("aria-hidden: cannot operate on ",v,S)}})};return h(e),c.clear(),Xx++,function(){l.forEach(function(g){var v=Ec.get(g)-1,x=a.get(g)-1;Ec.set(g,v),a.set(g,x),v||(zp.has(g)||g.removeAttribute(i),zp.delete(g)),x||g.removeAttribute(t)}),Xx--,Xx||(Ec=new WeakMap,Ec=new WeakMap,zp=new WeakMap,jp={})}},eD=function(n,e,t){t===void 0&&(t="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=Kq(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),Qq(i,s,t,"aria-hidden")):function(){return null}};function Jq(n){const e=eY(n),t=A.forwardRef((i,s)=>{const{children:a,...l}=i,c=A.Children.toArray(a),f=c.find(nY);if(f){const d=f.props.children,h=c.map(g=>g===f?A.Children.count(d)>1?A.Children.only(null):A.isValidElement(d)?d.props.children:null:g);return m.jsx(e,{...l,ref:s,children:A.isValidElement(d)?A.cloneElement(d,void 0,h):null})}return m.jsx(e,{...l,ref:s,children:a})});return t.displayName=`${n}.Slot`,t}function eY(n){const e=A.forwardRef((t,i)=>{const{children:s,...a}=t;if(A.isValidElement(s)){const l=sY(s),c=iY(a,s.props);return s.type!==A.Fragment&&(c.ref=i?Tu(i,l):l),A.cloneElement(s,c)}return A.Children.count(s)>1?A.Children.only(null):null});return e.displayName=`${n}.SlotClone`,e}var tY=Symbol("radix.slottable");function nY(n){return A.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===tY}function iY(n,e){const t={...e};for(const i in e){const s=n[i],a=e[i];/^on[A-Z]/.test(i)?s&&a?t[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(t[i]=s):i==="style"?t[i]={...s,...a}:i==="className"&&(t[i]=[s,a].filter(Boolean).join(" "))}return{...n,...t}}function sY(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}var og="Dialog",[tD]=Vd(og),[rY,Qs]=tD(og),nD=n=>{const{__scopeDialog:e,children:t,open:i,defaultOpen:s,onOpenChange:a,modal:l=!0}=n,c=A.useRef(null),f=A.useRef(null),[d,h]=N_({prop:i,defaultProp:s??!1,onChange:a,caller:og});return m.jsx(rY,{scope:e,triggerRef:c,contentRef:f,contentId:Vc(),titleId:Vc(),descriptionId:Vc(),open:d,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(g=>!g),[h]),modal:l,children:t})};nD.displayName=og;var iD="DialogTrigger",sD=A.forwardRef((n,e)=>{const{__scopeDialog:t,...i}=n,s=Qs(iD,t),a=on(e,s.triggerRef);return m.jsx(Ht.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":b1(s.open),...i,ref:a,onClick:kt(n.onClick,s.onOpenToggle)})});sD.displayName=iD;var y1="DialogPortal",[aY,rD]=tD(y1,{forceMount:void 0}),aD=n=>{const{__scopeDialog:e,forceMount:t,children:i,container:s}=n,a=Qs(y1,e);return m.jsx(aY,{scope:e,forceMount:t,children:A.Children.map(i,l=>m.jsx(go,{present:t||a.open,children:m.jsx(v1,{asChild:!0,container:s,children:l})}))})};aD.displayName=y1;var Am="DialogOverlay",oD=A.forwardRef((n,e)=>{const t=rD(Am,n.__scopeDialog),{forceMount:i=t.forceMount,...s}=n,a=Qs(Am,n.__scopeDialog);return a.modal?m.jsx(go,{present:i||a.open,children:m.jsx(lY,{...s,ref:e})}):null});oD.displayName=Am;var oY=Jq("DialogOverlay.RemoveScroll"),lY=A.forwardRef((n,e)=>{const{__scopeDialog:t,...i}=n,s=Qs(Am,t);return m.jsx(x1,{as:oY,allowPinchZoom:!0,shards:[s.contentRef],children:m.jsx(Ht.div,{"data-state":b1(s.open),...i,ref:e,style:{pointerEvents:"auto",...i.style}})})}),yl="DialogContent",lD=A.forwardRef((n,e)=>{const t=rD(yl,n.__scopeDialog),{forceMount:i=t.forceMount,...s}=n,a=Qs(yl,n.__scopeDialog);return m.jsx(go,{present:i||a.open,children:a.modal?m.jsx(cY,{...s,ref:e}):m.jsx(uY,{...s,ref:e})})});lD.displayName=yl;var cY=A.forwardRef((n,e)=>{const t=Qs(yl,n.__scopeDialog),i=A.useRef(null),s=on(e,t.contentRef,i);return A.useEffect(()=>{const a=i.current;if(a)return eD(a)},[]),m.jsx(cD,{...n,ref:s,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:kt(n.onCloseAutoFocus,a=>{a.preventDefault(),t.triggerRef.current?.focus()}),onPointerDownOutside:kt(n.onPointerDownOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&a.preventDefault()}),onFocusOutside:kt(n.onFocusOutside,a=>a.preventDefault())})}),uY=A.forwardRef((n,e)=>{const t=Qs(yl,n.__scopeDialog),i=A.useRef(!1),s=A.useRef(!1);return m.jsx(cD,{...n,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{n.onCloseAutoFocus?.(a),a.defaultPrevented||(i.current||t.triggerRef.current?.focus(),a.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:a=>{n.onInteractOutside?.(a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=a.target;t.triggerRef.current?.contains(l)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}})}),cD=A.forwardRef((n,e)=>{const{__scopeDialog:t,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,...l}=n,c=Qs(yl,t),f=A.useRef(null),d=on(e,f);return W3(),m.jsxs(m.Fragment,{children:[m.jsx(g1,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:m.jsx(m1,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":b1(c.open),...l,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(fY,{titleId:c.titleId}),m.jsx(hY,{contentRef:f,descriptionId:c.descriptionId})]})]})}),_1="DialogTitle",uD=A.forwardRef((n,e)=>{const{__scopeDialog:t,...i}=n,s=Qs(_1,t);return m.jsx(Ht.h2,{id:s.titleId,...i,ref:e})});uD.displayName=_1;var fD="DialogDescription",dD=A.forwardRef((n,e)=>{const{__scopeDialog:t,...i}=n,s=Qs(fD,t);return m.jsx(Ht.p,{id:s.descriptionId,...i,ref:e})});dD.displayName=fD;var hD="DialogClose",pD=A.forwardRef((n,e)=>{const{__scopeDialog:t,...i}=n,s=Qs(hD,t);return m.jsx(Ht.button,{type:"button",...i,ref:e,onClick:kt(n.onClick,()=>s.onOpenChange(!1))})});pD.displayName=hD;function b1(n){return n?"open":"closed"}var mD="DialogTitleWarning",[iee,gD]=OX(mD,{contentName:yl,titleName:_1,docsSlug:"dialog"}),fY=({titleId:n})=>{const e=gD(mD),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. 4290 4291If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. 4292 4293For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return A.useEffect(()=>{n&&(document.getElementById(n)||console.error(t))},[t,n]),null},dY="DialogDescriptionWarning",hY=({contentRef:n,descriptionId:e})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gD(dY).contentName}}.`;return A.useEffect(()=>{const s=n.current?.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(i))},[i,n,e]),null},pY=nD,mY=sD,gY=aD,vY=oD,xY=lD,yY=uD,_Y=dD,bY=pD;function SY({...n}){return m.jsx(pY,{"data-slot":"dialog",...n})}function wY({...n}){return m.jsx(mY,{"data-slot":"dialog-trigger",...n})}function EY({...n}){return m.jsx(gY,{"data-slot":"dialog-portal",...n})}function MY({className:n,...e}){return m.jsx(vY,{"data-slot":"dialog-overlay",className:un("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n),...e})}function TY({className:n,children:e,showCloseButton:t=!0,...i}){return m.jsxs(EY,{"data-slot":"dialog-portal",children:[m.jsx(MY,{}),m.jsxs(xY,{"data-slot":"dialog-content",className:un("bg-background data-[state=open]:animate-in !outline-none 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg der p-6 shadow-lg duration-200",n),...i,children:[e,t&&m.jsxs(bY,{"data-slot":"dialog-close",className:"ring-offset-background !outline-none data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[m.jsx(N5,{}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function AY({className:n,...e}){return m.jsx("div",{"data-slot":"dialog-header",className:un("flex flex-col gap-2 text-center sm:text-left",n),...e})}function CY({className:n,...e}){return m.jsx(yY,{"data-slot":"dialog-title",className:un("text-lg leading-none font-semibold",n),...e})}function RY({className:n,...e}){return m.jsx(_Y,{"data-slot":"dialog-description",className:un("text-muted-foreground text-sm",n),...e})}
vendor: 4,655 bytes, line 4293
4293var NY=A.createContext(void 0);function vD(n){const e=A.useContext(NY);return n||e||"ltr"}function L_(n,[e,t]){return Math.min(t,Math.max(e,n))}function DY(n,e){return A.useReducer((t,i)=>e[t][i]??t,n)}var S1="ScrollArea",[xD]=Vd(S1),[PY,Ls]=xD(S1),yD=A.forwardRef((n,e)=>{const{__scopeScrollArea:t,type:i="hover",dir:s,scrollHideDelay:a=600,...l}=n,[c,f]=A.useState(null),[d,h]=A.useState(null),[g,v]=A.useState(null),[x,b]=A.useState(null),[_,w]=A.useState(null),[S,T]=A.useState(0),[M,C]=A.useState(0),[N,U]=A.useState(!1),[P,O]=A.useState(!1),R=on(e,z=>f(z)),L=vD(s);return m.jsx(PY,{scope:t,type:i,dir:L,scrollHideDelay:a,scrollArea:c,viewport:d,onViewportChange:h,content:g,onContentChange:v,scrollbarX:x,onScrollbarXChange:b,scrollbarXEnabled:N,onScrollbarXEnabledChange:U,scrollbarY:_,onScrollbarYChange:w,scrollbarYEnabled:P,onScrollbarYEnabledChange:O,onCornerWidthChange:T,onCornerHeightChange:C,children:m.jsx(Ht.div,{dir:L,...l,ref:R,style:{position:"relative","--radix-scroll-area-corner-width":S+"px","--radix-scroll-area-corner-height":M+"px",...n.style}})})});yD.displayName=S1;var _D="ScrollAreaViewport",bD=A.forwardRef((n,e)=>{const{__scopeScrollArea:t,children:i,nonce:s,...a}=n,l=Ls(_D,t),c=A.useRef(null),f=on(e,c,l.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),m.jsx(Ht.div,{"data-radix-scroll-area-viewport":"",...a,ref:f,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...n.style},children:m.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});bD.displayName=_D;var Mr="ScrollAreaScrollbar",SD=A.forwardRef((n,e)=>{const{forceMount:t,...i}=n,s=Ls(Mr,n.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:l}=s,c=n.orientation==="horizontal";return A.useEffect(()=>(c?a(!0):l(!0),()=>{c?a(!1):l(!1)}),[c,a,l]),s.type==="hover"?m.jsx(LY,{...i,ref:e,forceMount:t}):s.type==="scroll"?m.jsx(OY,{...i,ref:e,forceMount:t}):s.type==="auto"?m.jsx(wD,{...i,ref:e,forceMount:t}):s.type==="always"?m.jsx(w1,{...i,ref:e}):null});SD.displayName=Mr;var LY=A.forwardRef((n,e)=>{const{forceMount:t,...i}=n,s=Ls(Mr,n.__scopeScrollArea),[a,l]=A.useState(!1);return A.useEffect(()=>{const c=s.scrollArea;let f=0;if(c){const d=()=>{window.clearTimeout(f),l(!0)},h=()=>{f=window.setTimeout(()=>l(!1),s.scrollHideDelay)};return c.addEventListener("pointerenter",d),c.addEventListener("pointerleave",h),()=>{window.clearTimeout(f),c.removeEventListener("pointerenter",d),c.removeEventListener("pointerleave",h)}}},[s.scrollArea,s.scrollHideDelay]),m.jsx(go,{present:t||a,children:m.jsx(wD,{"data-state":a?"visible":"hidden",...i,ref:e})})}),OY=A.forwardRef((n,e)=>{const{forceMount:t,...i}=n,s=Ls(Mr,n.__scopeScrollArea),a=n.orientation==="horizontal",l=cg(()=>f("SCROLL_END"),100),[c,f]=DY("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return A.useEffect(()=>{if(c==="idle"){const d=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(d)}},[c,s.scrollHideDelay,f]),A.useEffect(()=>{const d=s.viewport,h=a?"scrollLeft":"scrollTop";if(d){let g=d[h];const v=()=>{const x=d[h];g!==x&&(f("SCROLL"),l()),g=x};return d.addEventListener("scroll",v),()=>d.removeEventListener("scroll",v)}},[s.viewport,a,f,l]),m.jsx(go,{present:t||c!=="hidden",children:m.jsx(w1,{"data-state":c==="hidden"?"hidden":"visible",...i,ref:e,onPointerEnter:kt(n.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:kt(n.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),wD=A.forwardRef((n,e)=>{const t=Ls(Mr,n.__scopeScrollArea),{forceMount:i,...s}=n,[a,l]=A.useState(!1),c=n.orientation==="horizontal",f=cg(()=>{if(t.viewport){const d=t.viewport.offsetWidth<t.viewport.scrollWidth,h=t.viewport.offsetHeight<t.viewport.scrollHeight;l(c?d:h)}},10);return au(t.viewport,f),au(t.content,f),m.jsx(go,{present:i||a,children:m.jsx(w1,{"data-state":a?"visible":"hidden",...s,ref:e})})}),w1=A.forwardRef((n,e)=>{const{orientation:t="vertical",...i}=n,s=Ls(Mr,n.__scopeScrollArea),a=A.useRef(null),l=A.useRef(0),[c,f]=A.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=CD(c.viewport,c.content),h={...i,sizes:c,onSizesChange:f,hasThumb:d>0&&d<1,onThumbChange:v=>a.current=v,onThumbPointerUp:()=>
vendor: 8,392 bytes, line 4293
4293l.current=0,onThumbPointerDown:v=>l.current=v};function g(v,x){return jY(v,l.current,c,x)}return t==="horizontal"?m.jsx(UY,{...h,ref:e,onThumbPositionChange:()=>{if(s.viewport&&a.current){const v=s.viewport.scrollLeft,x=nC(v,c,s.dir);a.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollLeft=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollLeft=g(v,s.dir))}}):t==="vertical"?m.jsx(IY,{...h,ref:e,onThumbPositionChange:()=>{if(s.viewport&&a.current){const v=s.viewport.scrollTop,x=nC(v,c);a.current.style.transform=`translate3d(0, ${x}px, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollTop=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollTop=g(v))}}):null}),UY=A.forwardRef((n,e)=>{const{sizes:t,onSizesChange:i,...s}=n,a=Ls(Mr,n.__scopeScrollArea),[l,c]=A.useState(),f=A.useRef(null),d=on(e,f,a.onScrollbarXChange);return A.useEffect(()=>{f.current&&c(getComputedStyle(f.current))},[f]),m.jsx(MD,{"data-orientation":"horizontal",...s,ref:d,sizes:t,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":lg(t)+"px",...n.style},onThumbPointerDown:h=>n.onThumbPointerDown(h.x),onDragScroll:h=>n.onDragScroll(h.x),onWheelScroll:(h,g)=>{if(a.viewport){const v=a.viewport.scrollLeft+h.deltaX;n.onWheelScroll(v),ND(v,g)&&h.preventDefault()}},onResize:()=>{f.current&&a.viewport&&l&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:Rm(l.paddingLeft),paddingEnd:Rm(l.paddingRight)}})}})}),IY=A.forwardRef((n,e)=>{const{sizes:t,onSizesChange:i,...s}=n,a=Ls(Mr,n.__scopeScrollArea),[l,c]=A.useState(),f=A.useRef(null),d=on(e,f,a.onScrollbarYChange);return A.useEffect(()=>{f.current&&c(getComputedStyle(f.current))},[f]),m.jsx(MD,{"data-orientation":"vertical",...s,ref:d,sizes:t,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":lg(t)+"px",...n.style},onThumbPointerDown:h=>n.onThumbPointerDown(h.y),onDragScroll:h=>n.onDragScroll(h.y),onWheelScroll:(h,g)=>{if(a.viewport){const v=a.viewport.scrollTop+h.deltaY;n.onWheelScroll(v),ND(v,g)&&h.preventDefault()}},onResize:()=>{f.current&&a.viewport&&l&&i({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:Rm(l.paddingTop),paddingEnd:Rm(l.paddingBottom)}})}})}),[BY,ED]=xD(Mr),MD=A.forwardRef((n,e)=>{const{__scopeScrollArea:t,sizes:i,hasThumb:s,onThumbChange:a,onThumbPointerUp:l,onThumbPointerDown:c,onThumbPositionChange:f,onDragScroll:d,onWheelScroll:h,onResize:g,...v}=n,x=Ls(Mr,t),[b,_]=A.useState(null),w=on(e,R=>_(R)),S=A.useRef(null),T=A.useRef(""),M=x.viewport,C=i.content-i.viewport,N=Pi(h),U=Pi(f),P=cg(g,10);function O(R){if(S.current){const L=R.clientX-S.current.left,z=R.clientY-S.current.top;d({x:L,y:z})}}return A.useEffect(()=>{const R=L=>{const z=L.target;b?.contains(z)&&N(L,C)};return document.addEventListener("wheel",R,{passive:!1}),()=>document.removeEventListener("wheel",R,{passive:!1})},[M,b,C,N]),A.useEffect(U,[i,U]),au(b,P),au(x.content,P),m.jsx(BY,{scope:t,scrollbar:b,hasThumb:s,onThumbChange:Pi(a),onThumbPointerUp:Pi(l),onThumbPositionChange:U,onThumbPointerDown:Pi(c),children:m.jsx(Ht.div,{...v,ref:w,style:{position:"absolute",...v.style},onPointerDown:kt(n.onPointerDown,R=>{R.button===0&&(R.target.setPointerCapture(R.pointerId),S.current=b.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),O(R))}),onPointerMove:kt(n.onPointerMove,O),onPointerUp:kt(n.onPointerUp,R=>{const L=R.target;L.hasPointerCapture(R.pointerId)&&L.releasePointerCapture(R.pointerId),document.body.style.webkitUserSelect=T.current,x.viewport&&(x.viewport.style.scrollBehavior=""),S.current=null})})})}),Cm="ScrollAreaThumb",TD=A.forwardRef((n,e)=>{const{forceMount:t,...i}=n,s=ED(Cm,n.__scopeScrollArea);return m.jsx(go,{present:t||s.hasThumb,children:m.jsx(FY,{ref:e,...i})})}),FY=A.forwardRef((n,e)=>{const{__scopeScrollArea:t,style:i,...s}=n,a=Ls(Cm,t),l=ED(Cm,t),{onThumbPositionChange:c}=l,f=on(e,g=>l.onThumbChange(g)),d=A.useRef(void 0),h=cg(()=>{d.current&&(d.current(),d.current=void 0)},100);return A.useEffect(()=>{const g=a.viewport;if(g){const v=()=>{if(h(),!d.current){const x=kY(g,c);d.current=x,c()}};return c(),g.addEventListener("scroll",v),()=>g.removeEventListener("scroll",v)}},[a.viewport,h,c]),m.jsx(Ht.div,{"data-state":l.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:kt(n.onPointerDownCapture,g=>{const x=g.target.getBoundingClientRect(),b=g.clientX-x.left,_=g.clientY-x.top;l.onThumbPointerDown({x:b,y:_})}),onPointerUp:kt(n.onPointerUp,l.onThumbPointerUp)})});TD.displayName=Cm;var E1="ScrollAreaCorner",AD=A.forwardRef((n,e)=>{const t=Ls(E1,n.__scopeScrollArea),i=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&i?m.jsx(zY,{...n,ref:e}):null});AD.displayName=E1;var zY=A.forwardRef((n,e)=>{const{__scopeScrollArea:t,...i}=n,s=Ls(E1,t),[a,l]=A.useState(0),[c,f]=A.useState(0),d=!!(a&&c);return au(s.scrollbarX,()=>{const h=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(h),f(h)}),au(s.scrollbarY,()=>{const h=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(h),l(h)}),d?m.jsx(Ht.div,{...i,ref:e,style:{width:a,height:c,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function Rm(n){return n?parseInt(n,10):0}function CD(n,e){const t=n/e;return isNaN(t)?0:t}function lg(n){const e=CD(n.viewport,n.content),t=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-t)*e;return Math.max(i,18)}function jY(n,e,t,i="ltr"){const s=lg(t),a=s/2,l=e||a,c=s-l,f=t.scrollbar.paddingStart+l,d=t.scrollbar.size-t.scrollbar.paddingEnd-c,h=t.content-t.viewport,g=i==="ltr"?[0,h]:[h*-1,0];return RD([f,d],g)(n)}function nC(n,e,t="ltr"){const i=lg(e),s=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=e.scrollbar.size-s,l=e.content-e.viewport,c=a-i,f=t==="ltr"?[0,l]:[l*-1,0],d=L_(n,f);return RD([0,l],[0,c])(d)}function RD(n,e){return t=>{if(n[0]===n[1]||e[0]===e[1])return e[0];const i=(e[1]-e[0])/(n[1]-n[0]);return e[0]+i*(t-n[0])}}function ND(n,e){return n>0&&n<e}var kY=(n,e=()=>{})=>{let t={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const a={left:n.scrollLeft,top:n.scrollTop},l=t.left!==a.left,c=t.top!==a.top;(l||c)&&e(),t=a,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function cg(n,e){const t=Pi(n),i=A.useRef(0);return A.useEffect(()=>()=>window.clearTimeout(i.current),[]),A.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(t,e)},[t,e])}function au(n,e){const t=Pi(e);ci(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(t)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,t])}var VY=yD,HY=bD,GY=AD;function WY({className:n,children:e,...t}){return m.jsxs(VY,{"data-slot":"scroll-area",className:un("relative",n),...t,children:[m.jsx(HY,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:e}),m.jsx(XY,{}),m.jsx(GY,{})]})}function XY({className:n,orientation:e="vertical",...t}){return m.jsx(SD,{"data-slot":"scroll-area-scrollbar",orientation:e,className:un("flex touch-none p-px transition-colors select-none",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...t,children:m.jsx(TD,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function qY({items:n,apiUrl:e="https://api.streamline.pt/projects",imagesBaseUrl:t="https://api.streamline.pt/projects/profileImages",featuresApiUrl:i="https://api.streamline.pt/features/",featuresImagesBaseUrl:s="https://api.streamline.pt/features/image"}){const[a,l]=A.useState(n||[]),[c,f]=A.useState({}),[d,h]=A.useState(!1),[g,v]=A.useState(null);return A.useEffect(()=>{n||(h(!0),v(null),fetch(e).then(x=>
4293{if(!x.ok)throw new Error("Falha ao carregar projetos");return x.json()}).then(x=>{const b=x.filter(_=>_.site_visivel===1&&_.imagem);l(b),h(!1)}).catch(x=>{v(x.message||"Erro ao carregar projetos"),h(!1)}))},[e,n]),A.useEffect(()=>{let x=!0;return fetch(i).then(b=>{if(!b.ok)throw new Error("Falha ao carregar features");return b.json()}).then(b=>{if(!x)return;const _={};b.filter(w=>Number(w.f_servico_id)===7&&w.projeto_id!=null&&w.imagem).forEach(w=>{const S=Number(w.projeto_id);_[S]||(_[S]=[]),_[S].push(String(w.id))}),f(_)}).catch(()=>{}),()=>{x=!1}},[i]),d?m.jsx("div",{className:"flex justify-center items-center py-20",children:m.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-purple-600"})}):g?m.jsx("div",{className:"text-center py-20 text-red-600",children:m.jsxs("p",{children:["Erro ao carregar projetos: ",g]})}):m.jsx(m.Fragment,{children:m.jsx("div",{className:"grid grid-cols-12 gap-4 overflow-hidden px-5 lg:pb-5 pb-2 cursor-pointer",children:a.map(x=>{const b="col-span-12 sm:col-span-6 md:col-span-6 lg:col-span-6 xl:col-span-3",_=`${t}/${x.imagem}`,w=(c[x.id]||[]).length>0;return m.jsx(wi.article,{initial:{y:50,opacity:0},whileInView:{y:0,opacity:1},transition:{ease:"easeOut"},viewport:{once:!1},className:`relative ${b}`,children:m.jsxs(SY,{children:[m.jsx(wY,{asChild:!0,children:m.jsxs("div",{className:"w-auto h-full hover:scale-[1.02] transition-transform duration-300",children:[m.jsx("img",{src:_,alt:x.designacao_publica,height:600,width:1200,className:"h-full w-full object-cover rounded-xl"}),m.jsxs("div",{className:"absolute lg:bottom-2 bottom-0 text-black w-full p-4 flex justify-between items-center",children:[m.jsx("h3",{className:"text-sm font-light bg-black text-white rounded-xl p-2 px-4",children:x.designacao_publica}),m.jsx("div",{className:"lg:w-12 w-10 lg:h-12 h-10 text-white grid place-content-center rounded-full bg-black",children:m.jsx(s5,{})})]})]})}),m.jsx(TY,{className:` ${w?"!h-[90vh]":"!h-auto !max-h-[90vh]"} w-[90vw] h-[90vh] 4294 md:w-[90vw] 4295 md:max-w-[100vw] 4296 md:h-[90vh] 4297 border-none p-0 4298 flex flex-col`,children:m.jsxs("div",{className:"h-full min-h-0 grid grid-cols-1 md:grid-cols-3",children:[m.jsx("div",{className:"md:col-span-1 rounded-3xl bg-slate-900/80 text-white p-6 overflow-auto min-h-0",children:m.jsxs(AY,{className:"px-4 pt-5",children:[m.jsx(CY,{className:"!text-3xl font-medium pb-5",children:m.jsxs("div",{className:"flex items-center",children:[x.designacao_publica," ",x.url&&m.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"mx-4",children:m.jsx(QU,{})})]})}),x.descricao_publica&&m.jsxs(RY,{className:"mt-2 text-base leading-relaxed text-white/80",children:[m.jsx("h2",{className:"!text-xl font-base text-purple-300/50 mb-3",children:"Descrição do Projeto"}),m.jsx("p",{className:"text-sm font-light",children:x.descricao_publica})]})]})}),m.jsx("div",{className:"md:col-span-2 min-h-0 min-w-0 flex",children:m.jsx(WY,{className:"h-full w-full flex-1 basis-0 min-h-0 p-2",children:m.jsx("div",{className:"space-y-4 pb-6",children:(c[x.id]||[]).length>0?(c[x.id]||[]).map((S,T)=>m.jsx("img",{src:`${s}/${S}`,alt:`${x.designacao_publica} ${T+1}`,className:"w-full h-auto object-cover rounded-lg",loading:"lazy"},T)):m.jsx("img",{src:_,alt:x.designacao_publica,className:"w-full h-auto object-cover rounded-lg",loading:"lazy"})})})})]})})]})},x.id)})})})}function Jr(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function DD(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}var ss={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ou={duration:.5,overwrite:!1,delay:0},M1,li,pn,As=1e8,an=1/As,O_=Math.PI*2,YY=O_/4,$Y=0,PD=Math.sqrt,KY=Math.cos,ZY=Math.sin,ei=function(e){return typeof e=="string"},wn=function(e){return typeof e=="function"},la=function(e){return typeof e=="number"},T1=function(e){return typeof e>"u"},wr=function(e){return typeof e=="object"},Ii=function(e){return e!==!1},A1=function(){return typeof window<"u"},kp=function(e){return wn(e)||ei(e)},LD=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},gi=Array.isArray,U_=/(?:-?\.?\d|\.)+/gi,OD=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ic=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,qx=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,UD=/[+-]=-?[.\d]+/,ID=/[^,'"\[\]\s]+/gi,QY=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,gn,ar,I_,C1,os={},Nm={},BD,FD=function(e){return(Nm=lu(e,os))&&ji},R1=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},_d=function(e,t){return!t&&console.warn(e)},zD=function(e,t){return e&&(os[e]=t)&&Nm&&(Nm[e]=t)||os},bd=function(){return 0},JY={suppressEvents:!0,isStart:!0,kill:!1},rm={suppressEvents:!0,kill:!1},e$={suppressEvents:!0},N1={},to=[],B_={},jD,Qi={},Yx={},iC=30,am=[],D1="",P1=function(e){var t=e[0],i,s;if(wr(t)||wn(t)||(e=[e]),!(i=(t._gsap||{}).harness)){for(s=am.length;s--&&!am[s].targetTest(t););i=am[s]}for(s=e.length;s--;)e[s]&&(e[s]._gsap||(e[s]._gsap=new uP(e[s],i)))||e.splice(s,1);return e},hl=function(e){return e._gsap||P1(Cs(e))[0]._gsap},kD=function(e,t,i){return(i=e[t])&&wn(i)?e[t]():T1(i)&&e.getAttribute&&e.getAttribute(t)||i}
vendor: 4,132 bytes, line 4298
4298,Bi=function(e,t){return(e=e.split(",")).forEach(t)||e},Cn=function(e){return Math.round(e*1e5)/1e5||0},zn=function(e){return Math.round(e*1e7)/1e7||0},Gc=function(e,t){var i=t.charAt(0),s=parseFloat(t.substr(2));return e=parseFloat(e),i==="+"?e+s:i==="-"?e-s:i==="*"?e*s:e/s},t$=function(e,t){for(var i=t.length,s=0;e.indexOf(t[s])<0&&++s<i;);return s<i},Dm=function(){var e=to.length,t=to.slice(0),i,s;for(B_={},to.length=0,i=0;i<e;i++)s=t[i],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},L1=function(e){return!!(e._initted||e._startAt||e.add)},VD=function(e,t,i,s){to.length&&!li&&Dm(),e.render(t,i,!!(li&&t<0&&L1(e))),to.length&&!li&&Dm()},HD=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(ID).length<2?t:ei(e)?e.trim():e},GD=function(e){return e},ls=function(e,t){for(var i in t)i in e||(e[i]=t[i]);return e},n$=function(e){return function(t,i){for(var s in i)s in t||s==="duration"&&e||s==="ease"||(t[s]=i[s])}},lu=function(e,t){for(var i in t)e[i]=t[i];return e},sC=function n(e,t){for(var i in t)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(e[i]=wr(t[i])?n(e[i]||(e[i]={}),t[i]):t[i]);return e},Pm=function(e,t){var i={},s;for(s in e)s in t||(i[s]=e[s]);return i},rd=function(e){var t=e.parent||gn,i=e.keyframes?n$(gi(e.keyframes)):ls;if(Ii(e.inherit))for(;t;)i(e,t.vars.defaults),t=t.parent||t._dp;return e},i$=function(e,t){for(var i=e.length,s=i===t.length;s&&i--&&e[i]===t[i];);return i<0},WD=function(e,t,i,s,a){var l=e[s],c;if(a)for(c=t[a];l&&l[a]>c;)l=l._prev;return l?(t._next=l._next,l._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[s]=t,t._prev=l,t.parent=t._dp=e,t},ug=function(e,t,i,s){i===void 0&&(i="_first"),s===void 0&&(s="_last");var a=t._prev,l=t._next;a?a._next=l:e[i]===t&&(e[i]=l),l?l._prev=a:e[s]===t&&(e[s]=a),t._next=t._prev=t.parent=null},oo=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},pl=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},s$=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},F_=function(e,t,i,s){return e._startAt&&(li?e._startAt.revert(rm):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,s))},r$=function n(e){return!e||e._ts&&n(e.parent)},rC=function(e){return e._repeat?cu(e._tTime,e=e.duration()+e._rDelay)*e:0},cu=function(e,t){var i=Math.floor(e=zn(e/t));return e&&i===e?i-1:i},Lm=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},fg=function(e){return e._end=zn(e._start+(e._tDur/Math.abs(e._ts||e._rts||an)||0))},dg=function(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=zn(i._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),fg(e),i._dirty||pl(i,e)),e},XD=function(e,t){var i;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(i=Lm(e.rawTime(),t),(!t._dur||Hd(0,t.totalDuration(),i)-t._tTime>an)&&t.render(i,!0)),pl(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(i=e;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-an}},fr=function(e,t,i,s){return t.parent&&oo(t),t._start=zn((la(i)?i:i||e!==gn?Es(e,i,t):e._time)+t._delay),t._end=zn(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),WD(e,t,"_first","_last",e._sort?"_start":0),z_(t)||(e._recent=t),s||XD(e,t),e._ts<0&&dg(e,e._tTime),e},qD=function(e,t){return(os.ScrollTrigger||R1("scrollTrigger",t))&&os.ScrollTrigger.create(t,e)},YD=function(e,t,i,s,a){if(U1(e,t,a),!e._initted)return 1;if(!i&&e._pt&&!li&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&jD!==ts.frame)return to.push(e),e._lazy=[a,s],1},a$=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},z_=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},o$=function(e,t,i,s){var a=e.ratio,l=t<0||!t&&(!e._start&&a$(e)&&!(!e._initted&&z_(e))||(e._ts<0||e._dp._ts<0)&&!z_(e))?0:1,c=e._rDelay,f=0,d,h,g;if(c&&e._repeat&&(f=Hd(0,e._tDur,t),h=cu(f,c),e._yoyo&&h&1&&(l=1-l),h!==cu(e._tTime,c)&&(a=1-l,e.vars.repeatRefresh&&e._initted&&e.invali
vendor: 7,147 bytes, line 4298
4298date())),l!==a||li||s||e._zTime===an||!t&&e._zTime){if(!e._initted&&YD(e,t,s,i,f))return;for(g=e._zTime,e._zTime=t||(i?an:0),i||(i=t&&!g),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=f,d=e._pt;d;)d.r(l,d.d),d=d._next;t<0&&F_(e,t,i,!0),e._onUpdate&&!i&&ns(e,"onUpdate"),f&&e._repeat&&!i&&e.parent&&ns(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&oo(e,1),!i&&!li&&(ns(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},l$=function(e,t,i){var s;if(i>t)for(s=e._first;s&&s._start<=i;){if(s.data==="isPause"&&s._start>t)return s;s=s._next}else for(s=e._last;s&&s._start>=i;){if(s.data==="isPause"&&s._start<t)return s;s=s._prev}},uu=function(e,t,i,s){var a=e._repeat,l=zn(t)||0,c=e._tTime/e._tDur;return c&&!s&&(e._time*=l/e._dur),e._dur=l,e._tDur=a?a<0?1e10:zn(l*(a+1)+e._rDelay*a):l,c>0&&!s&&dg(e,e._tTime=e._tDur*c),e.parent&&fg(e),i||pl(e.parent,e),e},aC=function(e){return e instanceof bi?pl(e):uu(e,e._dur)},c$={_start:0,endTime:bd,totalDuration:bd},Es=function n(e,t,i){var s=e.labels,a=e._recent||c$,l=e.duration()>=As?a.endTime(!1):e._dur,c,f,d;return ei(t)&&(isNaN(t)||t in s)?(f=t.charAt(0),d=t.substr(-1)==="%",c=t.indexOf("="),f==="<"||f===">"?(c>=0&&(t=t.replace(/=/,"")),(f==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(t.substr(1))||0)*(d?(c<0?a:i).totalDuration()/100:1)):c<0?(t in s||(s[t]=l),s[t]):(f=parseFloat(t.charAt(c-1)+t.substr(c+1)),d&&i&&(f=f/100*(gi(i)?i[0]:i).totalDuration()),c>1?n(e,t.substr(0,c-1),i)+f:l+f)):t==null?l:+t},ad=function(e,t,i){var s=la(t[1]),a=(s?2:1)+(e<2?0:1),l=t[a],c,f;if(s&&(l.duration=t[1]),l.parent=i,e){for(c=l,f=i;f&&!("immediateRender"in c);)c=f.vars.defaults||{},f=Ii(f.vars.inherit)&&f.parent;l.immediateRender=Ii(c.immediateRender),e<2?l.runBackwards=1:l.startAt=t[a-1]}return new Fn(t[0],l,t[a+1])},vo=function(e,t){return e||e===0?t(e):t},Hd=function(e,t,i){return i<e?e:i>t?t:i},pi=function(e,t){return!ei(e)||!(t=QY.exec(e))?"":t[1]},u$=function(e,t,i){return vo(i,function(s){return Hd(e,t,s)})},j_=[].slice,$D=function(e,t){return e&&wr(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&wr(e[0]))&&!e.nodeType&&e!==ar},f$=function(e,t,i){return i===void 0&&(i=[]),e.forEach(function(s){var a;return ei(s)&&!t||$D(s,1)?(a=i).push.apply(a,Cs(s)):i.push(s)})||i},Cs=function(e,t,i){return pn&&!t&&pn.selector?pn.selector(e):ei(e)&&!i&&(I_||!fu())?j_.call((t||C1).querySelectorAll(e),0):gi(e)?f$(e,i):$D(e)?j_.call(e,0):e?[e]:[]},k_=function(e){return e=Cs(e)[0]||_d("Invalid scope")||{},function(t){var i=e.current||e.nativeElement||e;return Cs(t,i.querySelectorAll?i:i===e?_d("Invalid scope")||C1.createElement("div"):e)}},KD=function(e){return e.sort(function(){return .5-Math.random()})},ZD=function(e){if(wn(e))return e;var t=wr(e)?e:{each:e},i=ml(t.ease),s=t.from||0,a=parseFloat(t.base)||0,l={},c=s>0&&s<1,f=isNaN(s)||c,d=t.axis,h=s,g=s;return ei(s)?h=g={center:.5,edges:.5,end:1}[s]||0:!c&&f&&(h=s[0],g=s[1]),function(v,x,b){var _=(b||t).length,w=l[_],S,T,M,C,N,U,P,O,R;if(!w){if(R=t.grid==="auto"?0:(t.grid||[1,As])[1],!R){for(P=-As;P<(P=b[R++].getBoundingClientRect().left)&&R<_;);R<_&&R--}for(w=l[_]=[],S=f?Math.min(R,_)*h-.5:s%R,T=R===As?0:f?_*g/R-.5:s/R|0,P=0,O=As,U=0;U<_;U++)M=U%R-S,C=T-(U/R|0),w[U]=N=d?Math.abs(d==="y"?C:M):PD(M*M+C*C),N>P&&(P=N),N<O&&(O=N);s==="random"&&KD(w),w.max=P-O,w.min=O,w.v=_=(parseFloat(t.amount)||parseFloat(t.each)*(R>_?_-1:d?d==="y"?_/R:R:Math.max(R,_/R))||0)*(s==="edges"?-1:1),w.b=_<0?a-_:a,w.u=pi(t.amount||t.each)||0,i=i&&_<0?oP(i):i}return _=(w[v]-w.min)/w.max||0,zn(w.b+(i?i(_):_)*w.v)+w.u}},V_=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var s=zn(Math.round(parseFloat(i)/e)*e*t);return(s-s%1)/t+(la(i)?0:pi(i))}},QD=function(e,t){var i=gi(e),s,a;return!i&&wr(e)&&(s=i=e.radius||As,e.values?(e=Cs(e.values),(a=!la(e[0]))&&(s*=s)):e=V_(e.increment)),vo(t,i?wn(e)?function(l){return a=e(l),Math.abs(a-l)<=s?a:l}:function(l){for(var c=parseFloat(a?l.x:l),f=parseFloat(a?l.y:0),d=As,h=0,g=e.length,v,x;g--;)a?(v=e[g].x-c,x=e[g].y-f,v=v*v+x*x):v=Math.abs(e[g]-c),v<d&&(d=v,h=g);return h=!s||d<=s?e[h]:l,a||h===l||la(l)?h:h+pi(l)}:V_(e))},JD=function(e,t,i,s){return vo(gi(e)?!t:i===!0?!!(i=0):!s,function(){return gi(e)?e[~~(Math.random()*e.length)]:(i=i||1e-5)&&(s=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((e-i/2+Math.random()*(t-e+i*.99))/i)*i*s)/s})},d$=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(s){return t.reduce(function(a,l){return l(a)},s)}},h$=function(e,t){return function(i){return e(parseFloat(i))+(t||pi(i))}},p$=function(e,t,i){return tP(e,t,0,1,i)},eP=function(e,t,i){return vo(i,function(s){return e[~~t(s)]})},m$=function n(e,t,i){var s=t-e;return gi(e)?eP(e,n(0,e.length),t):vo(i,function(a){return(s+(a-e)%s)%s+e})},g$=function n(e,t,i){var s=t-e,a=s*2;return gi(e)?eP(e,n(0,e.length-1),t):vo(i,function(l){return l=(a+(l-e)%a)%a||0,e+(l>s?a-l:l)})},Sd=function(e){for(var t=0,i="",s,a,l,c;~(s=e.indexOf("random(",t));)l=e.indexOf(")",s),c=e.charAt(s+7)==="[",a=e.substr(s+7,l-s-7).match(c?ID:U_),i+=e.substr(t,s-t)+JD(c?a:+a[0],c?0:+a[1],+a[2]||1e-5),t=l+1;return i+e.substr(t,e.length-t)},tP=function(e,t,i,s,a){var l=t-e,c=s-i;return vo(a,function(f){return i+((f-e)/l*c||0)})},v$=function n(e,t,i,s){var a=isNaN(e+t)?0:function(x){return(1-x)*e+x*t};if(!a){var l=ei(e),c={},f,d,h,g,v;if(i===!0&&(s=1)&&(i=null),l)e={p:e},t={p:t};else if(gi(e)&&!gi(t)){for(h=[],g=e.length,v=g-2,d=1;d<g;d++)h.push(n(e[d-1],e[d]));g--,a=function(b){b*=g;var _=Math.min(v,~~b);return h[_](b-_)},i=t}else s||(e=lu(gi(e)?[]:{},e));if(!h){for(f in t)O1.call(c,e,f,"get",t[f]);a=function(b){return F1(b,c)||(l?e.p:e)}}}return vo(i,a)},oC=function(e,t,i){var s=e.labels,a=As,l,c,f;for(l in s)c=s[l]-t,c<0==!!i&&c&&a>(c=Math.abs(c))&&(f=l,a=c);return f},ns=function(e,t,i){var s=e.vars,a=s[t],l=pn,c=e._ctx,f,d,h;if(a)return f=s[t+"Params"],d=s.callbackScope||e,i&&to.length&&Dm(),c&&(pn=c),h=f?a.apply(d,f):a.call(d),pn=l,h},Wf=function(e){return oo(e),e.scrollTrigger&&e.scrollTrigger.kill(!!li),e.progress()<1&&ns(e,"onInterrupt"),e},Bc,nP=[],iP=function(e){if(e)if(e=!e.name&&e.default||e,A1()||e.headless){var t=e.name,i=wn(e),s=t&&!i&&e.init?function(){this._props=[]}:e,a={init:bd,render:F1,add:O1,kill:L$,modifier:P$,rawVars:0},l={targetTest:0,get:0,getSetter:B1,aliases:{},register:0};if(fu(),e!==s){if(Qi[t])return;ls(s,ls(Pm(e,a),l)),lu(s.prototype,lu(a,Pm(e,l))),Qi[s.prop=t]=s,e.targetTest&&(am.push(s),N1[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}zD(t,s),e.register&&e.register(ji,s,Fi)}else nP.push(e)},rn=255,Xf={aqua:[0,rn,rn],lime:[0,rn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,rn],navy:[0,0,128],white:[rn,rn,rn],olive:[128,128,0],yellow:[rn,rn,0],orange:[rn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[rn,0,0],pink:[rn,192,203],cyan:[0,rn,rn],transparent:[rn,rn,rn,0]},$x=function(e,t,i){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(i-t)*e*6:e<.5?i:e*3<2?t+(i-t)*(2/3-e)*6:t)*rn+.5|0},sP=function(e,t,i){var s=e?la(e)?[e>>16,e>>8&rn,e&rn]:0:Xf.black,a,l,c,f,d,h,g,v,x,b;
vendor: 19,609 bytes, line 4298
4298if(!s){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Xf[e])s=Xf[e];else if(e.charAt(0)==="#"){if(e.length<6&&(a=e.charAt(1),l=e.charAt(2),c=e.charAt(3),e="#"+a+a+l+l+c+c+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return s=parseInt(e.substr(1,6),16),[s>>16,s>>8&rn,s&rn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),s=[e>>16,e>>8&rn,e&rn]}else if(e.substr(0,3)==="hsl"){if(s=b=e.match(U_),!t)f=+s[0]%360/360,d=+s[1]/100,h=+s[2]/100,l=h<=.5?h*(d+1):h+d-h*d,a=h*2-l,s.length>3&&(s[3]*=1),s[0]=$x(f+1/3,a,l),s[1]=$x(f,a,l),s[2]=$x(f-1/3,a,l);else if(~e.indexOf("="))return s=e.match(OD),i&&s.length<4&&(s[3]=1),s}else s=e.match(U_)||Xf.transparent;s=s.map(Number)}return t&&!b&&(a=s[0]/rn,l=s[1]/rn,c=s[2]/rn,g=Math.max(a,l,c),v=Math.min(a,l,c),h=(g+v)/2,g===v?f=d=0:(x=g-v,d=h>.5?x/(2-g-v):x/(g+v),f=g===a?(l-c)/x+(l<c?6:0):g===l?(c-a)/x+2:(a-l)/x+4,f*=60),s[0]=~~(f+.5),s[1]=~~(d*100+.5),s[2]=~~(h*100+.5)),i&&s.length<4&&(s[3]=1),s},rP=function(e){var t=[],i=[],s=-1;return e.split(no).forEach(function(a){var l=a.match(Ic)||[];t.push.apply(t,l),i.push(s+=l.length+1)}),t.c=i,t},lC=function(e,t,i){var s="",a=(e+s).match(no),l=t?"hsla(":"rgba(",c=0,f,d,h,g;if(!a)return e;if(a=a.map(function(v){return(v=sP(v,t,1))&&l+(t?v[0]+","+v[1]+"%,"+v[2]+"%,"+v[3]:v.join(","))+")"}),i&&(h=rP(e),f=i.c,f.join(s)!==h.c.join(s)))for(d=e.replace(no,"1").split(Ic),g=d.length-1;c<g;c++)s+=d[c]+(~f.indexOf(c)?a.shift()||l+"0,0,0,0)":(h.length?h:a.length?a:i).shift());if(!d)for(d=e.split(no),g=d.length-1;c<g;c++)s+=d[c]+a[c];return s+d[g]},no=(function(){var n="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Xf)n+="|"+e+"\\b";return new RegExp(n+")","gi")})(),x$=/hsl[a]?\(/,aP=function(e){var t=e.join(" "),i;if(no.lastIndex=0,no.test(t))return i=x$.test(t),e[1]=lC(e[1],i),e[0]=lC(e[0],i,rP(e[1])),!0},wd,ts=(function(){var n=Date.now,e=500,t=33,i=n(),s=i,a=1e3/240,l=a,c=[],f,d,h,g,v,x,b=function _(w){var S=n()-s,T=w===!0,M,C,N,U;if((S>e||S<0)&&(i+=S-t),s+=S,N=s-i,M=N-l,(M>0||T)&&(U=++g.frame,v=N-g.time*1e3,g.time=N=N/1e3,l+=M+(M>=a?4:a-M),C=1),T||(f=d(_)),C)for(x=0;x<c.length;x++)c[x](N,v,U,w)};return g={time:0,frame:0,tick:function(){b(!0)},deltaRatio:function(w){return v/(1e3/(w||60))},wake:function(){BD&&(!I_&&A1()&&(ar=I_=window,C1=ar.document||{},os.gsap=ji,(ar.gsapVersions||(ar.gsapVersions=[])).push(ji.version),FD(Nm||ar.GreenSockGlobals||!ar.gsap&&ar||{}),nP.forEach(iP)),h=typeof requestAnimationFrame<"u"&&requestAnimationFrame,f&&g.sleep(),d=h||function(w){return setTimeout(w,l-g.time*1e3+1|0)},wd=1,b(2))},sleep:function(){(h?cancelAnimationFrame:clearTimeout)(f),wd=0,d=bd},lagSmoothing:function(w,S){e=w||1/0,t=Math.min(S||33,e)},fps:function(w){a=1e3/(w||240),l=g.time*1e3+a},add:function(w,S,T){var M=S?function(C,N,U,P){w(C,N,U,P),g.remove(M)}:w;return g.remove(w),c[T?"unshift":"push"](M),fu(),M},remove:function(w,S){~(S=c.indexOf(w))&&c.splice(S,1)&&x>=S&&x--},_listeners:c},g})(),fu=function(){return!wd&&ts.wake()},Lt={},y$=/^[\d.\-M][\d.\-,\s]/,_$=/["']/g,b$=function(e){for(var t={},i=e.substr(1,e.length-3).split(":"),s=i[0],a=1,l=i.length,c,f,d;a<l;a++)f=i[a],c=a!==l-1?f.lastIndexOf(","):f.length,d=f.substr(0,c),t[s]=isNaN(d)?d.replace(_$,"").trim():+d,s=f.substr(c+1).trim();return t},S$=function(e){var t=e.indexOf("(")+1,i=e.indexOf(")"),s=e.indexOf("(",t);return e.substring(t,~s&&s<i?e.indexOf(")",i+1):i)},w$=function(e){var t=(e+"").split("("),i=Lt[t[0]];return i&&t.length>1&&i.config?i.config.apply(null,~e.indexOf("{")?[b$(t[1])]:S$(e).split(",").map(HD)):Lt._CE&&y$.test(e)?Lt._CE("",e):i},oP=function(e){return function(t){return 1-e(1-t)}},lP=function n(e,t){for(var i=e._first,s;i;)i instanceof bi?n(i,t):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==t&&(i.timeline?n(i.timeline,t):(s=i._ease,i._ease=i._yEase,i._yEase=s,i._yoyo=t)),i=i._next},ml=function(e,t){return e&&(wn(e)?e:Lt[e]||w$(e))||t},El=function(e,t,i,s){i===void 0&&(i=function(f){return 1-t(1-f)}),s===void 0&&(s=function(f){return f<.5?t(f*2)/2:1-t((1-f)*2)/2});var a={easeIn:t,easeOut:i,easeInOut:s},l;return Bi(e,function(c){Lt[c]=os[c]=a,Lt[l=c.toLowerCase()]=i;for(var f in a)Lt[l+(f==="easeIn"?".in":f==="easeOut"?".out":".inOut")]=Lt[c+"."+f]=a[f]}),a},cP=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Kx=function n(e,t,i){var s=t>=1?t:1,a=(i||(e?.3:.45))/(t<1?t:1),l=a/O_*(Math.asin(1/s)||0),c=function(h){return h===1?1:s*Math.pow(2,-10*h)*ZY((h-l)*a)+1},f=e==="out"?c:e==="in"?function(d){return 1-c(1-d)}:cP(c);return a=O_/a,f.config=function(d,h){return n(e,d,h)},f},Zx=function n(e,t){t===void 0&&(t=1.70158);var i=function(l){return l?--l*l*((t+1)*l+t)+1:0},s=e==="out"?i:e==="in"?function(a){return 1-i(1-a)}:cP(i);return s.config=function(a){return n(e,a)},s};Bi("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;El(n+",Power"+(t-1),e?function(i){return Math.pow(i,t)}:function(i){return i},function(i){return 1-Math.pow(1-i,t)},function(i){return i<.5?Math.pow(i*2,t)/2:1-Math.pow((1-i)*2,t)/2})});Lt.Linear.easeNone=Lt.none=Lt.Linear.easeIn;El("Elastic",Kx("in"),Kx("out"),Kx());(function(n,e){var t=1/e,i=2*t,s=2.5*t,a=function(c){return c<t?n*c*c:c<i?n*Math.pow(c-1.5/e,2)+.75:c<s?n*(c-=2.25/e)*c+.9375:n*Math.pow(c-2.625/e,2)+.984375};El("Bounce",function(l){return 1-a(1-l)},a)})(7.5625,2.75);El("Expo",function(n){return Math.pow(2,10*(n-1))*n+n*n*n*n*n*n*(1-n)});El("Circ",function(n){return-(PD(1-n*n)-1)});El("Sine",function(n){return n===1?1:-KY(n*YY)+1});El("Back",Zx("in"),Zx("out"),Zx());Lt.SteppedEase=Lt.steps=os.SteppedEase={config:function(e,t){e===void 0&&(e=1);var i=1/e,s=e+(t?0:1),a=t?1:0,l=1-an;return function(c){return((s*Hd(0,l,c)|0)+a)*i}}};ou.ease=Lt["quad.out"];Bi("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return D1+=n+","+n+"Params,"});var uP=function(e,t){this.id=$Y++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:kD,this.set=t?t.getSetter:B1},Ed=(function(){function n(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,uu(this,+t.duration,1,1),this.data=t.data,pn&&(this._ctx=pn,pn.data.push(this)),wd||ts.wake()}var e=n.prototype;return e.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},e.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},e.totalDuration=function(i){return arguments.length?(this._dirty=0,uu(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(i,s){if(fu(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(dg(this,i),!a._dp||a.parent||XD(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&fr(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===an||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),VD(this,i,s)),this},e.time=function(i,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+rC(this))%(this._dur+this._rDelay)||(i?this._dur:0),s):this._time},e.totalProgress=function(i,s){return arguments.length?this.totalTime(this.totalDuration()*i,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(i,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+rC(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(i,s){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*a,s):this._repeat?cu(this._tTime,a)+1:1},e.timeScale=function(i,s){if(!arguments.length)return this._rts===-an?0:this._rts;if(this._rts===i)return this;var a=this.parent&&this._ts?Lm(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-an?0:this._rts,this.totalTime(Hd(-Math.abs(this._delay),this.totalDuration(),a),s!==!1),fg(this),s$(this)},e.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(fu(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==an&&(this._tTime-=an)))),this):this._ps},e.startTime=function(i){if(arguments.length){this._start=i;var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&fr(s,this,i-this._delay),this}return this._start},e.endTime=function(i){return this._start+(Ii(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(i){var s=this.parent||this._dp;return s?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Lm(s.rawTime(i),this):this._tTime:this._tTime},e.revert=function(i){i===void 0&&(i=e$);var s=li;return li=i,L1(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),li=s,this},e.globalTime=function(i){for(var s=this,a=arguments.length?i:s.rawTime();s;)a=s._start+a/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(i):a},e.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,aC(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(i){if(arguments.length){var s=this._time;return this._rDelay=i,aC(this),s?this.time(s):this}return this._rDelay},e.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},e.seek=function(i,s){return this.totalTime(Es(this,i),Ii(s))},e.restart=function(i,s){return this.play().totalTime(i?-this._delay:0,Ii(s)),this._dur||(this._zTime=-an),this},e.play=function(i,s){return i!=null&&this.seek(i,s),this.reversed(!1).paused(!1)},e.reverse=function(i,s){return i!=null&&this.seek(i||this.totalDuration(),s),this.reversed(!0).paused(!1)},e.pause=function(i,s){return i!=null&&this.seek(i,s),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-an:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-an,this},e.isActive=function(){var i=this.parent||this._dp,s=this._start,a;return!!(!i||this._ts&&this._initted&&i.isActive()&&(a=i.rawTime(!0))>=s&&a<this.endTime(!0)-an)},e.eventCallback=function(i,s,a){var l=this.vars;return arguments.length>1?(s?(l[i]=s,a&&(l[i+"Params"]=a),i==="onUpdate"&&(this._onUpdate=s)):delete l[i],this):l[i]},e.then=function(i){var s=this;return new Promise(function(a){var l=wn(i)?i:GD,c=function(){var d=s.then;s.then=null,wn(l)&&(l=l(s))&&(l.then||l===s)&&(s.then=d),a(l),s.then=d};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?c():s._prom=c})},e.kill=function(){Wf(this)},n})();ls(Ed.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:-an,_prom:0,_ps:!1,_rts:1});var bi=(function(n){DD(e,n);function e(i,s){var a;return i===void 0&&(i={}),a=n.call(this,i)||this,a.labels={},a.smoothChildTiming=!!i.smoothChildTiming,a.autoRemoveChildren=!!i.autoRemoveChildren,a._sort=Ii(i.sortChildren),gn&&fr(i.parent||gn,Jr(a),s),i.reversed&&a.reverse(),i.paused&&a.paused(!0),i.scrollTrigger&&qD(Jr(a),i.scrollTrigger),a}var t=e.prototype;return t.to=function(s,a,l){return ad(0,arguments,this),this},t.from=function(s,a,l){return ad(1,arguments,this),this},t.fromTo=function(s,a,l,c){return ad(2,arguments,this),this},t.set=function(s,a,l){return a.duration=0,a.parent=this,rd(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new Fn(s,a,Es(this,l),1),this},t.call=function(s,a,l){return fr(this,Fn.delayedCall(0,s,a),l)},t.staggerTo=function(s,a,l,c,f,d,h){return l.duration=a,l.stagger=l.stagger||c,l.onComplete=d,l.onCompleteParams=h,l.parent=this,new Fn(s,l,Es(this,f)),this},t.staggerFrom=function(s,a,l,c,f,d,h){return l.runBackwards=1,rd(l).immediateRender=Ii(l.immediateRender),this.staggerTo(s,a,l,c,f,d,h)},t.staggerFromTo=function(s,a,l,c,f,d,h,g){return c.startAt=l,rd(c).immediateRender=Ii(c.immediateRender),this.staggerTo(s,a,c,f,d,h,g)},t.render=function(s,a,l){var c=this._time,f=this._dirty?this.totalDuration():this._tDur,d=this._dur,h=s<=0?0:zn(s),g=this._zTime<0!=s<0&&(this._initted||!d),v,x,b,_,w,S,T,M,C,N,U,P;if(this!==gn&&h>f&&s>=0&&(h=f),h!==this._tTime||l||g){if(c!==this._time&&d&&(h+=this._time-c,s+=this._time-c),v=h,C=this._start,M=this._ts,S=!M,g&&(d||(c=this._zTime),(s||!a)&&(this._zTime=s)),this._repeat){if(U=this._yoyo,w=d+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(w*100+s,a,l);if(v=zn(h%w),h===f?(_=this._repeat,v=d):(N=zn(h/w),_=~~N,_&&_===N&&(v=d,_--),v>d&&(v=d)),N=cu(this._tTime,w),!c&&this._tTime&&N!==_&&this._tTime-N*w-this._dur<=0&&(N=_),U&&_&1&&(v=d-v,P=1),_!==N&&!this._lock){var O=U&&N&1,R=O===(U&&_&1);if(_<N&&(O=!O),c=O?0:h%d?d:h,this._lock=1,this.render(c||(P?0:zn(_*w)),a,!d)._lock=0,this._tTime=h,!a&&this.parent&&ns(this,"onRepeat"),this.vars.repeatRefresh&&!P&&(this.invalidate()._lock=1),c&&c!==this._time||S!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(d=this._dur,f=this._tDur,R&&(this._lock=2,c=O?d:-1e-4,this.render(c,!0),this.vars.repeatRefresh&&!P&&this.invalidate()),this._lock=0,!this._ts&&!S)return this;lP(this,P)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(T=l$(this,zn(c),zn(v)),T&&(h-=v-(v=T._start))),this._tTime=h,this._time=v,this._act=!M,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,c=0),!c&&h&&!a&&!N&&(ns(this,"onStart"),this._tTime!==h))return this;if(v>=c&&s>=0)for(x=this._first;x;){if(b=x._next,(x._act||v>=x._start)&&x._ts&&T!==x){if(x.parent!==this)return this.render(s,a,l);if(x.render(x._ts>0?(v-x._start)*x._ts:(x._dirty?x.totalDuration():x._tDur)+(v-x._start)*x._ts,a,l),v!==this._time||!this._ts&&!S){T=0,b&&(h+=this._zTime=-an);break}}x=b}else{x=this._last;for(var L=s<0?s:v;x;){if(b=x._prev,(x._act||L<=x._end)&&x._ts&&T!==x){if(x.parent!==this)return this.render(s,a,l);if(x.render(x._ts>0?(L-x._start)*x._ts:(x._dirty?x.totalDuration():x._tDur)+(L-x._start)*x._ts,a,l||li&&L1(x)),v!==this._time||!this._ts&&!S){T=0,b&&(h+=this._zTime=L?-an:an);break}}x=b}}if(T&&!a&&(this.pause(),T.render(v>=c?0:-an)._zTime=v>=c?1:-1,this._ts))return this._start=C,fg(this),this.render(s,a,l);this._onUpdate&&!a&&ns(this,"onUpdate",!0),(h===f&&this._tTime>=this.totalDuration()||!h&&c)&&(C===this._start||Math.abs(M)!==Math.abs(this._ts))&&(this._lock||((s||!d)&&(h===f&&this._ts>0||!h&&this._ts<0)&&oo(this,1),!a&&!(s<0&&!c)&&(h||c||!f)&&(ns(this,h===f&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(h<f&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(s,a){var l=this;if(la(a)||(a=Es(this,a,s)),!(s instanceof Ed)){if(gi(s))return s.forEach(function(c){return l.add(c,a)}),this;if(ei(s))return this.addLabel(s,a);if(wn(s))s=Fn.delayedCall(0,s);else return this}return this!==s?fr(this,s,a):this},t.getChildren=function(s,a,l,c){s===void 0&&(s=!0),a===void 0&&(a=!0),l===void 0&&(l=!0),c===void 0&&(c=-As);for(var f=[],d=this._first;d;)d._start>=c&&(d instanceof Fn?a&&f.push(d):(l&&f.push(d),s&&f.push.apply(f,d.getChildren(!0,a,l)))),d=d._next;return f},t.getById=function(s){for(var a=this.getChildren(1,1,1),l=a.length;l--;)if(a[l].vars.id===s)return a[l]},t.remove=function(s){return ei(s)?this.removeLabel(s):wn(s)?this.killTweensOf(s):(s.parent===this&&ug(this,s),s===this._recent&&(this._recent=this._last),pl(this))},t.totalTime=function(s,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=zn(ts.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),n.prototype.totalTime.call(this,s,a),this._forcing=0,this):this._tTime},t.addLabel=function(s,a){return this.labels[s]=Es(this,a),this},t.removeLabel=function(s){return delete this.labels[s],this},t.addPause=function(s,a,l){var c=Fn.delayedCall(0,a||bd,l);return c.data="isPause",this._hasPause=1,fr(this,c,Es(this,s))},t.removePause=function(s){var a=this._first;for(s=Es(this,s);a;)a._start===s&&a.data==="isPause"&&oo(a),a=a._next},t.killTweensOf=function(s,a,l){for(var c=this.getTweensOf(s,l),f=c.length;f--;)Ya!==c[f]&&c[f].kill(s,a);return this},t.getTweensOf=function(s,a){for(var l=[],c=Cs(s),f=this._first,d=la(a),h;f;)f instanceof Fn?t$(f._targets,c)&&(d?(!Ya||f._initted&&f._ts)&&f.globalTime(0)<=a&&f.globalTime(f.totalDuration())>a:!a||f.isActive())&&l.push(f):(h=f.getTweensOf(c,a)).length&&l.push.apply(l,h),f=f._next;return l},t.tweenTo=function(s,a){a=a||{};var l=this,c=Es(l,s),f=a,d=f.startAt,h=f.onStart,g=f.onStartParams,v=f.immediateRender,x,b=Fn.to(l,ls({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:c,overwrite:"auto",duration:a.duration||Math.abs((c-(d&&"time"in d?d.time:l._time))/l.timeScale())||an,onStart:function(){if(l.pause(),!x){var w=a.duration||Math.abs((c-(d&&"time"in d?d.time:l._time))/l.timeScale());b._dur!==w&&uu(b,w,0,1).render(b._time,!0,!0),x=1}h&&h.apply(b,g||[])}},a));return v?b.render(0):b},t.tweenFromTo=function(s,a,l){return this.tweenTo(a,ls({startAt:{time:Es(this,s)}},l))},t.recent=function(){return this._recent},t.nextLabel=function(s){return s===void 0&&(s=this._time),oC(this,Es(this,s))},t.previousLabel=function(s){return s===void 0&&(s=this._time),oC(this,Es(this,s),1)},t.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+an)},t.shiftChildren=function(s,a,l){l===void 0&&(l=0);for(var c=this._first,f=this.labels,d;c;)c._start>=l&&(c._start+=s,c._end+=s),c=c._next;if(a)for(d in f)f[d]>=l&&(f[d]+=s);return pl(this)},t.invalidate=function(s){var a=this._first;for(this._lock=0;a;)a.invalidate(s),a=a._next;return n.prototype.invalidate.call(this,s)},t.clear=function(s){s===void 0&&(s=!0);for(var a=this._first,l;a;)l=a._next,this.remove(a),a=l;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),pl(this)},t.totalDuration=function(s){var a=0,l=this,c=l._last,f=As,d,h,g;if(arguments.length)return l.timeScale((l._repeat<0?l.duration():l.totalDuration())/(l.reversed()?-s:s));if(l._dirty){for(g=l.parent;c;)d=c._prev,c._dirty&&c.totalDuration(),h=c._start,h>f&&l._sort&&c._ts&&!l._lock?(l._lock=1,fr(l,c,h-c._delay,1)._lock=0):f=h,h<0&&c._ts&&(a-=h,(!g&&!l._dp||g&&g.smoothChildTiming)&&(l._start+=h/l._ts,l._time-=h,l._tTime-=h),l.shiftChildren(-h,!1,-1/0),f=0),c._end>a&&c._ts&&(a=c._end),c=d;uu(l,l===gn&&l._time>a?l._time:a,1,1),l._dirty=0}return l._tDur},e.updateRoot=function(s){if(gn._ts&&(VD(gn,Lm(s,gn)),jD=ts.frame),ts.frame>=iC){iC+=ss.autoSleep||120;var a=gn._first;if((!a||!a._ts)&&ss.autoSleep&&ts._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||ts.sleep()}}},e})(Ed);ls(bi.prototype,{_lock:0,_hasPause:0,_forcing:0});var E$=function(e,t,i,s,a,l,c){var f=new Fi(this._pt,e,t,0,1,gP,null,a),d=0,h=0,g,v,x,b,_,w,S,T;for(f.b=i,f.e=s,i+="",s+="",(S=~s.indexOf("random("))&&(s=Sd(s)),l&&(T=[i,s],l(T,e,t),i=T[0],s=T[1]),v=i.match(qx)||[];g=qx.exec(s);)b=g[0],_=s.substring(d,g.index),x?x=(x+1)%5:_.substr(-5)==="rgba("&&(x=1),b!==v[h++]&&(w=parseFloat(v[h-1]
vendor: 5,454 bytes, line 4298
4298)||0,f._pt={_next:f._pt,p:_||h===1?_:",",s:w,c:b.charAt(1)==="="?Gc(w,b)-w:parseFloat(b)-w,m:x&&x<4?Math.round:0},d=qx.lastIndex);return f.c=d<s.length?s.substring(d,s.length):"",f.fp=c,(UD.test(s)||S)&&(f.e=0),this._pt=f,f},O1=function(e,t,i,s,a,l,c,f,d,h){wn(s)&&(s=s(a||0,e,l));var g=e[t],v=i!=="get"?i:wn(g)?d?e[t.indexOf("set")||!wn(e["get"+t.substr(3)])?t:"get"+t.substr(3)](d):e[t]():g,x=wn(g)?d?R$:pP:I1,b;if(ei(s)&&(~s.indexOf("random(")&&(s=Sd(s)),s.charAt(1)==="="&&(b=Gc(v,s)+(pi(v)||0),(b||b===0)&&(s=b))),!h||v!==s||H_)return!isNaN(v*s)&&s!==""?(b=new Fi(this._pt,e,t,+v||0,s-(v||0),typeof g=="boolean"?D$:mP,0,x),d&&(b.fp=d),c&&b.modifier(c,this,e),this._pt=b):(!g&&!(t in e)&&R1(t,s),E$.call(this,e,t,v,s,x,f||ss.stringFilter,d))},M$=function(e,t,i,s,a){if(wn(e)&&(e=od(e,a,t,i,s)),!wr(e)||e.style&&e.nodeType||gi(e)||LD(e))return ei(e)?od(e,a,t,i,s):e;var l={},c;for(c in e)l[c]=od(e[c],a,t,i,s);return l},fP=function(e,t,i,s,a,l){var c,f,d,h;if(Qi[e]&&(c=new Qi[e]).init(a,c.rawVars?t[e]:M$(t[e],s,a,l,i),i,s,l)!==!1&&(i._pt=f=new Fi(i._pt,a,e,0,1,c.render,c,0,c.priority),i!==Bc))for(d=i._ptLookup[i._targets.indexOf(a)],h=c._props.length;h--;)d[c._props[h]]=f;return c},Ya,H_,U1=function n(e,t,i){var s=e.vars,a=s.ease,l=s.startAt,c=s.immediateRender,f=s.lazy,d=s.onUpdate,h=s.runBackwards,g=s.yoyoEase,v=s.keyframes,x=s.autoRevert,b=e._dur,_=e._startAt,w=e._targets,S=e.parent,T=S&&S.data==="nested"?S.vars.targets:w,M=e._overwrite==="auto"&&!M1,C=e.timeline,N,U,P,O,R,L,z,H,Y,K,q,B,W;if(C&&(!v||!a)&&(a="none"),e._ease=ml(a,ou.ease),e._yEase=g?oP(ml(g===!0?a:g,ou.ease)):0,g&&e._yoyo&&!e._repeat&&(g=e._yEase,e._yEase=e._ease,e._ease=g),e._from=!C&&!!s.runBackwards,!C||v&&!s.stagger){if(H=w[0]?hl(w[0]).harness:0,B=H&&s[H.prop],N=Pm(s,N1),_&&(_._zTime<0&&_.progress(1),t<0&&h&&c&&!x?_.render(-1,!0):_.revert(h&&b?rm:JY),_._lazy=0),l){if(oo(e._startAt=Fn.set(w,ls({data:"isStart",overwrite:!1,parent:S,immediateRender:!0,lazy:!_&&Ii(f),startAt:null,delay:0,onUpdate:d&&function(){return ns(e,"onUpdate")},stagger:0},l))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(li||!c&&!x)&&e._startAt.revert(rm),c&&b&&t<=0&&i<=0){t&&(e._zTime=t);return}}else if(h&&b&&!_){if(t&&(c=!1),P=ls({overwrite:!1,data:"isFromStart",lazy:c&&!_&&Ii(f),immediateRender:c,stagger:0,parent:S},N),B&&(P[H.prop]=B),oo(e._startAt=Fn.set(w,P)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(li?e._startAt.revert(rm):e._startAt.render(-1,!0)),e._zTime=t,!c)n(e._startAt,an,an);else if(!t)return}for(e._pt=e._ptCache=0,f=b&&Ii(f)||f&&!b,U=0;U<w.length;U++){if(R=w[U],z=R._gsap||P1(w)[U]._gsap,e._ptLookup[U]=K={},B_[z.id]&&to.length&&Dm(),q=T===w?U:T.indexOf(R),H&&(Y=new H).init(R,B||N,e,q,T)!==!1&&(e._pt=O=new Fi(e._pt,R,Y.name,0,1,Y.render,Y,0,Y.priority),Y._props.forEach(function(j){K[j]=O}),Y.priority&&(L=1)),!H||B)for(P in N)Qi[P]&&(Y=fP(P,N,e,q,R,T))?Y.priority&&(L=1):K[P]=O=O1.call(e,R,P,"get",N[P],q,T,0,s.stringFilter);e._op&&e._op[U]&&e.kill(R,e._op[U]),M&&e._pt&&(Ya=e,gn.killTweensOf(R,K,e.globalTime(t)),W=!e.parent,Ya=0),e._pt&&f&&(B_[z.id]=1)}L&&vP(e),e._onInit&&e._onInit(e)}e._onUpdate=d,e._initted=(!e._op||e._pt)&&!W,v&&t<=0&&C.render(As,!0,!0)},T$=function(e,t,i,s,a,l,c,f){var d=(e._pt&&e._ptCache||(e._ptCache={}))[t],h,g,v,x;if(!d)for(d=e._ptCache[t]=[],v=e._ptLookup,x=e._targets.length;x--;){if(h=v[x][t],h&&h.d&&h.d._pt)for(h=h.d._pt;h&&h.p!==t&&h.fp!==t;)h=h._next;if(!h)return H_=1,e.vars[t]="+=0",U1(e,c),H_=0,f?_d(t+" not eligible for reset"):1;d.push(h)}for(x=d.length;x--;)g=d[x],h=g._pt||g,h.s=(s||s===0)&&!a?s:h.s+(s||0)+l*h.c,h.c=i-h.s,g.e&&(g.e=Cn(i)+pi(g.e)),g.b&&(g.b=h.s+pi(g.b))},A$=function(e,t){var i=e[0]?hl(e[0]).harness:0,s=i&&i.aliases,a,l,c,f;if(!s)return t;a=lu({},t);for(l in s)if(l in a)for(f=s[l].split(","),c=f.length;c--;)a[f[c]]=a[l];return a},C$=function(e,t,i,s){var a=t.ease||s||"power1.inOut",l,c;if(gi(t))c=i[e]||(i[e]=[]),t.forEach(function(f,d){return c.push({t:d/(t.length-1)*100,v:f,e:a})});else for(l in t)c=i[l]||(i[l]=[]),l==="ease"||c.push({t:parseFloat(e),v:t[l],e:a})},od=function(e,t,i,s,a){return wn(e)?e.call(t,i,s,a):ei(e)&&~e.indexOf("random(")?Sd(e):e},dP=D1+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",hP={};Bi(dP+",id,stagger,delay,duration,paused,scrollTrigger",function(n){return hP[n]=1});var Fn=(function(n){DD(e,n);function e(i,s,a,l){var c;typeof s=="number"&&(a.duration=s,s=a,a=null),c=n.call(this,l?s:rd(s))||this;var f=c.vars,d=f.duration,h=f.delay,g=f.immediateRender,v=f.stagger,x=f.overwrite,b=f.keyframes,_=f.defaults,w=f.scrollTrigger,S=f.yoyoEase,T=s.parent||gn,M=(gi(i)||LD(i)?la(i[0]):"length"in s)?[i]:Cs(i),C,N,U,P,O,R,L,z;if(c._targets=M.length?P1(M):_d("GSAP target "+i+" not found. https://gsap.com",!ss.nullTargetWarn)||[],c._ptLookup=[],c._overwrite=x,b||v||kp(d)||kp(h)){if(s=c.vars,C=c.timeline=new bi({data:"nested",defaults:_||{},targets:T&&T.data==="nested"?T.vars.targets:M}),C.kill(),C.parent=C._dp=Jr(c),C._start=0,v||kp(d)||kp(h)){if(P=M.length,L=v&&ZD(v),wr(v))for(O in v)~dP.indexOf(O)&&(z||(z={}),z[O]=v[O]);for(N=0;N<P;N++)U=Pm(s,hP),U.stagger=0,S&&(U.yoyoEase=S),z&&lu(U,z),R=M[N],U.duration=+od(d,Jr(c),N,R,M),U.delay=(+od(h,Jr(c),N,R,M)||0)-c._delay,!v&&P===1&&U.delay&&(c._delay=h=U.delay,c._start+=h,U.delay=0),C.to(R,U,L?L(N,R,M):0),C._ease=Lt.none;C.duration()?d=h=0:c.timeline=0}else if(b){rd(ls(C.vars.defaults,{ease:"none"})),C._ease=ml(b.ease||s.ease||"none");var H=0,Y,K,q;if(gi(b))b.forEach(function(B){return C.to(M,B,">")}
vendor: 16,046 bytes, line 4298
4298),C.duration();else{U={};for(O in b)O==="ease"||O==="easeEach"||C$(O,b[O],U,b.easeEach);for(O in U)for(Y=U[O].sort(function(B,W){return B.t-W.t}),H=0,N=0;N<Y.length;N++)K=Y[N],q={ease:K.e,duration:(K.t-(N?Y[N-1].t:0))/100*d},q[O]=K.v,C.to(M,q,H),H+=q.duration;C.duration()<d&&C.to({},{duration:d-C.duration()})}}d||c.duration(d=C.duration())}else c.timeline=0;return x===!0&&!M1&&(Ya=Jr(c),gn.killTweensOf(M),Ya=0),fr(T,Jr(c),a),s.reversed&&c.reverse(),s.paused&&c.paused(!0),(g||!d&&!b&&c._start===zn(T._time)&&Ii(g)&&r$(Jr(c))&&T.data!=="nested")&&(c._tTime=-an,c.render(Math.max(0,-h)||0)),w&&qD(Jr(c),w),c}var t=e.prototype;return t.render=function(s,a,l){var c=this._time,f=this._tDur,d=this._dur,h=s<0,g=s>f-an&&!h?f:s<an?0:s,v,x,b,_,w,S,T,M,C;if(!d)o$(this,s,a,l);else if(g!==this._tTime||!s||l||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h||this._lazy){if(v=g,M=this.timeline,this._repeat){if(_=d+this._rDelay,this._repeat<-1&&h)return this.totalTime(_*100+s,a,l);if(v=zn(g%_),g===f?(b=this._repeat,v=d):(w=zn(g/_),b=~~w,b&&b===w?(v=d,b--):v>d&&(v=d)),S=this._yoyo&&b&1,S&&(C=this._yEase,v=d-v),w=cu(this._tTime,_),v===c&&!l&&this._initted&&b===w)return this._tTime=g,this;b!==w&&(M&&this._yEase&&lP(M,S),this.vars.repeatRefresh&&!S&&!this._lock&&v!==_&&this._initted&&(this._lock=l=1,this.render(zn(_*b),!0).invalidate()._lock=0))}if(!this._initted){if(YD(this,h?s:v,l,a,g))return this._tTime=0,this;if(c!==this._time&&!(l&&this.vars.repeatRefresh&&b!==w))return this;if(d!==this._dur)return this.render(s,a,l)}if(this._tTime=g,this._time=v,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=T=(C||this._ease)(v/d),this._from&&(this.ratio=T=1-T),!c&&g&&!a&&!w&&(ns(this,"onStart"),this._tTime!==g))return this;for(x=this._pt;x;)x.r(T,x.d),x=x._next;M&&M.render(s<0?s:M._dur*M._ease(v/this._dur),a,l)||this._startAt&&(this._zTime=s),this._onUpdate&&!a&&(h&&F_(this,s,a,l),ns(this,"onUpdate")),this._repeat&&b!==w&&this.vars.onRepeat&&!a&&this.parent&&ns(this,"onRepeat"),(g===this._tDur||!g)&&this._tTime===g&&(h&&!this._onUpdate&&F_(this,s,!0,!0),(s||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&oo(this,1),!a&&!(h&&!c)&&(g||c||S)&&(ns(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),n.prototype.invalidate.call(this,s)},t.resetTo=function(s,a,l,c,f){wd||ts.wake(),this._ts||this.play();var d=Math.min(this._dur,(this._dp._time-this._start)*this._ts),h;return this._initted||U1(this,d),h=this._ease(d/this._dur),T$(this,s,a,l,c,h,d,f)?this.resetTo(s,a,l,c,1):(dg(this,0),this.parent||WD(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(s,a){if(a===void 0&&(a="all"),!s&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?Wf(this):this.scrollTrigger&&this.scrollTrigger.kill(!!li),this;if(this.timeline){var l=this.timeline.totalDuration();return this.timeline.killTweensOf(s,a,Ya&&Ya.vars.overwrite!==!0)._first||Wf(this),this.parent&&l!==this.timeline.totalDuration()&&uu(this,this._dur*this.timeline._tDur/l,0,1),this}var c=this._targets,f=s?Cs(s):c,d=this._ptLookup,h=this._pt,g,v,x,b,_,w,S;if((!a||a==="all")&&i$(c,f))return a==="all"&&(this._pt=0),Wf(this);for(g=this._op=this._op||[],a!=="all"&&(ei(a)&&(_={},Bi(a,function(T){return _[T]=1}),a=_),a=A$(c,a)),S=c.length;S--;)if(~f.indexOf(c[S])){v=d[S],a==="all"?(g[S]=a,b=v,x={}):(x=g[S]=g[S]||{},b=a);for(_ in b)w=v&&v[_],w&&((!("kill"in w.d)||w.d.kill(_)===!0)&&ug(this,w,"_pt"),delete v[_]),x!=="all"&&(x[_]=1)}return this._initted&&!this._pt&&h&&Wf(this),this},e.to=function(s,a){return new e(s,a,arguments[2])},e.from=function(s,a){return ad(1,arguments)},e.delayedCall=function(s,a,l,c){return new e(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:a,onReverseComplete:a,onCompleteParams:l,onReverseCompleteParams:l,callbackScope:c})},e.fromTo=function(s,a,l){return ad(2,arguments)},e.set=function(s,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new e(s,a)},e.killTweensOf=function(s,a,l){return gn.killTweensOf(s,a,l)},e})(Ed);ls(Fn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Bi("staggerTo,staggerFrom,staggerFromTo",function(n){Fn[n]=function(){var e=new bi,t=j_.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var I1=function(e,t,i){return e[t]=i},pP=function(e,t,i){return e[t](i)},R$=function(e,t,i,s){return e[t](s.fp,i)},N$=function(e,t,i){return e.setAttribute(t,i)},B1=function(e,t){return wn(e[t])?pP:T1(e[t])&&e.setAttribute?N$:I1},mP=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},D$=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},gP=function(e,t){var i=t._pt,s="";if(!e&&t.b)s=t.b;else if(e===1&&t.e)s=t.e;else{for(;i;)s=i.p+(i.m?i.m(i.s+i.c*e):Math.round((i.s+i.c*e)*1e4)/1e4)+s,i=i._next;s+=t.c}t.set(t.t,t.p,s,t)},F1=function(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next},P$=function(e,t,i,s){for(var a=this._pt,l;a;)l=a._next,a.p===s&&a.modifier(e,t,i),a=l},L$=function(e){for(var t=this._pt,i,s;t;)s=t._next,t.p===e&&!t.op||t.op===e?ug(this,t,"_pt"):t.dep||(i=1),t=s;return!i},O$=function(e,t,i,s){s.mSet(e,t,s.m.call(s.tween,i,s.mt),s)},vP=function(e){for(var t=e._pt,i,s,a,l;t;){for(i=t._next,s=a;s&&s.pr>t.pr;)s=s._next;(t._prev=s?s._prev:l)?t._prev._next=t:a=t,(t._next=s)?s._prev=t:l=t,t=i}e._pt=a},Fi=(function(){function n(t,i,s,a,l,c,f,d,h){this.t=i,this.s=a,this.c=l,this.p=s,this.r=c||mP,this.d=f||this,this.set=d||I1,this.pr=h||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(i,s,a){this.mSet=this.mSet||this.set,this.set=O$,this.m=i,this.mt=a,this.tween=s},n})();Bi(D1+"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(n){return N1[n]=1});os.TweenMax=os.TweenLite=Fn;os.TimelineLite=os.TimelineMax=bi;gn=new bi({sortChildren:!1,defaults:ou,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ss.stringFilter=aP;var gl=[],om={},U$=[],cC=0,I$=0,Qx=function(e){return(om[e]||U$).map(function(t){return t()})},G_=function(){var e=Date.now(),t=[];e-cC>2&&(Qx("matchMediaInit"),gl.forEach(function(i){var s=i.queries,a=i.conditions,l,c,f,d;for(c in s)l=ar.matchMedia(s[c]).matches,l&&(f=1),l!==a[c]&&(a[c]=l,d=1);d&&(i.revert(),f&&t.push(i))}),Qx("matchMediaRevert"),t.forEach(function(i){return i.onMatch(i,function(s){return i.add(null,s)})}),cC=e,Qx("matchMedia"))},xP=(function(){function n(t,i){this.selector=i&&k_(i),this.data=[],this._r=[],this.isReverted=!1,this.id=I$++,t&&this.add(t)}var e=n.prototype;return e.add=function(i,s,a){wn(i)&&(a=s,s=i,i=wn);var l=this,c=function(){var d=pn,h=l.selector,g;return d&&d!==l&&d.data.push(l),a&&(l.selector=k_(a)),pn=l,g=s.apply(l,arguments),wn(g)&&l._r.push(g),pn=d,l.selector=h,l.isReverted=!1,g};return l.last=c,i===wn?c(l,function(f){return l.add(null,f)}):i?l[i]=c:c},e.ignore=function(i){var s=pn;pn=null,i(this),pn=s},e.getTweens=function(){var i=[];return this.data.forEach(function(s){return s instanceof n?i.push.apply(i,s.getTweens()):s instanceof Fn&&!(s.parent&&s.parent.data==="nested")&&i.push(s)}),i},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(i,s){var a=this;if(i?(function(){for(var c=a.getTweens(),f=a.data.length,d;f--;)d=a.data[f],d.data==="isFlip"&&(d.revert(),d.getChildren(!0,!0,!1).forEach(function(h){return c.splice(c.indexOf(h),1)}));for(c.map(function(h){return{g:h._dur||h._delay||h._sat&&!h._sat.vars.immediateRender?h.globalTime(0):-1/0,t:h}}).sort(function(h,g){return g.g-h.g||-1/0}).forEach(function(h){return h.t.revert(i)}),f=a.data.length;f--;)d=a.data[f],d instanceof bi?d.data!=="nested"&&(d.scrollTrigger&&d.scrollTrigger.revert(),d.kill()):!(d instanceof Fn)&&d.revert&&d.revert(i);a._r.forEach(function(h){return h(i,a)}),a.isReverted=!0})():this.data.forEach(function(c){return c.kill&&c.kill()}),this.clear(),s)for(var l=gl.length;l--;)gl[l].id===this.id&&gl.splice(l,1)},e.revert=function(i){this.kill(i||{})},n})(),B$=(function(){function n(t){this.contexts=[],this.scope=t,pn&&pn.data.push(this)}var e=n.prototype;return e.add=function(i,s,a){wr(i)||(i={matches:i});var l=new xP(0,a||this.scope),c=l.conditions={},f,d,h;pn&&!l.selector&&(l.selector=pn.selector),this.contexts.push(l),s=l.add("onMatch",s),l.queries=i;for(d in i)d==="all"?h=1:(f=ar.matchMedia(i[d]),f&&(gl.indexOf(l)<0&&gl.push(l),(c[d]=f.matches)&&(h=1),f.addListener?f.addListener(G_):f.addEventListener("change",G_)));return h&&s(l,function(g){return l.add(null,g)}),this},e.revert=function(i){this.kill(i||{})},e.kill=function(i){this.contexts.forEach(function(s){return s.kill(i,!0)})},n})(),Om={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t.forEach(function(s){return iP(s)})},timeline:function(e){return new bi(e)},getTweensOf:function(e,t){return gn.getTweensOf(e,t)},getProperty:function(e,t,i,s){ei(e)&&(e=Cs(e)[0]);var a=hl(e||{}).get,l=i?GD:HD;return i==="native"&&(i=""),e&&(t?l((Qi[t]&&Qi[t].get||a)(e,t,i,s)):function(c,f,d){return l((Qi[c]&&Qi[c].get||a)(e,c,f,d))})},quickSetter:function(e,t,i){if(e=Cs(e),e.length>1){var s=e.map(function(h){return ji.quickSetter(h,t,i)}),a=s.length;return function(h){for(var g=a;g--;)s[g](h)}}e=e[0]||{};var l=Qi[t],c=hl(e),f=c.harness&&(c.harness.aliases||{})[t]||t,d=l?function(h){var g=new l;Bc._pt=0,g.init(e,i?h+i:h,Bc,0,[e]),g.render(1,g),Bc._pt&&F1(1,Bc)}:c.set(e,f);return l?d:function(h){return d(e,f,i?h+i:h,c,1)}},quickTo:function(e,t,i){var s,a=ji.to(e,ls((s={},s[t]="+=0.1",s.paused=!0,s.stagger=0,s),i||{})),l=function(f,d,h){return a.resetTo(t,f,d,h)};return l.tween=a,l},isTweening:function(e){return gn.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ml(e.ease,ou.ease)),sC(ou,e||{})},config:function(e){return sC(ss,e||{})},registerEffect:function(e){var t=e.name,i=e.effect,s=e.plugins,a=e.defaults,l=e.extendTimeline;(s||"").split(",").forEach(function(c){return c&&!Qi[c]&&!os[c]&&_d(t+" effect requires "+c+" plugin.")}),Yx[t]=function(c,f,d){return i(Cs(c),ls(f||{},a),d)},l&&(bi.prototype[t]=function(c,f,d){return this.add(Yx[t](c,wr(f)?f:(d=f)&&{},this),d)})},registerEase:function(e,t){Lt[e]=ml(t)},parseEase:function(e,t){return arguments.length?ml(e,t):Lt},getById:function(e){return gn.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var i=new bi(e),s,a;for(i.smoothChildTiming=Ii(e.smoothChildTiming),gn.remove(i),i._dp=0,i._time=i._tTime=gn._time,s=gn._first;s;)a=s._next,(t||!(!s._dur&&s instanceof Fn&&s.vars.onComplete===s._targets[0]))&&fr(i,s,s._start-s._delay),s=a;return fr(gn,i,0),i},context:function(e,t){return e?new xP(e,t):pn},matchMedia:function(e){return new B$(e)},matchMediaRefresh:function(){return gl.forEach(function(e){var t=e.conditions,i,s;for(s in t)t[s]&&(t[s]=!1,i=1);i&&e.revert()})||G_()},addEventListener:function(e,t){var i=om[e]||(om[e]=[]);~i.indexOf(t)||i.push(t)},removeEventListener:function(e,t){var i=om[e],s=i&&i.indexOf(t);s>=0&&i.splice(s,1)},utils:{wrap:m$,wrapYoyo:g$,distribute:ZD,random:JD,snap:QD,normalize:p$,getUnit:pi,clamp:u$,splitColor:sP,toArray:Cs,selector:k_,mapRange:tP,pipe:d$,unitize:h$,interpolate:v$,shuffle:KD},install:FD,effects:Yx,ticker:ts,updateRoot:bi.updateRoot,plugins:Qi,globalTimeline:gn,core:{PropTween:Fi,globals:zD,Tween:Fn,Timeline:bi,Animation:Ed,getCache:hl,_removeLinkedListItem:ug,reverting:function(){return li},context:function(e){return e&&pn&&(pn.data.push(e),e._ctx=pn),pn},suppressOverwrites:function(e){return M1=e}}};Bi("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return Om[n]=Fn[n]});ts.add(bi.updateRoot);Bc=Om.to({},{duration:0});var F$=function(e,t){for(var i=e._pt;i&&i.p!==t&&i.op!==t&&i.fp!==t;)i=i._next;return i},z$=function(e,t){var i=e._targets,s,a,l;for(s in t)for(a=i.length;a--;)l=e._ptLookup[a][s],l&&(l=l.d)&&(l._pt&&(l=F$(l,s)),l&&l.modifier&&l.modifier(t[s],e,i[a],s))},Jx=function(e,t){return{name:e,headless:1,rawVars:1,init:function(s,a,l){l._onInit=function(c){var f,d;if(ei(a)&&(f={},Bi(a,function(h){return f[h]=1}),a=f),t){f={};for(d in a)f[d]=t(a[d]);a=f}z$(c,a)}}}},ji=Om.registerPlugin({name:"attr",init:function(e,t,i,s,a){var l,c,f;this.tween=i;for(l in t)f=e.getAttribute(l)||"",c=this.add(e,"setAttribute",(f||0)+"",t[l],s,a,0,0,l),c.op=l,c.b=f,this._props.push(l)},render:function(e,t){for(var i=t._pt;i;)li?i.set(i.t,i.p,i.b,i):i.r(e,i.d),i=i._next}},{name:"endArray",headless:1,init:function(e,t){for(var i=t.length;i--;)this.add(e,i,e[i]||0,t[i],0,0,0,0,0,1)}},Jx("roundProps",V_),Jx("modifiers"),Jx("snap",QD))||Om;Fn.version=bi.version=ji.version="3.13.0";BD=1;A1()&&fu();Lt.Power0;Lt.Power1;Lt.Power2;Lt.Power3;Lt.Power4;Lt.Linear;Lt.Quad;Lt.Cubic;Lt.Quart;Lt.Quint;Lt.Strong;Lt.Elastic;Lt.Back;Lt.SteppedEase;Lt.Bounce;Lt.Sine;Lt.Expo;Lt.Circ;var uC,$a,Wc,z1,rl,fC,j1,j$=function(){return typeof window<"u"},ca={},Qo=180/Math.PI,Xc=Math.PI/180,Mc=Math.atan2,dC=1e8,k1=/([A-Z])/g,k$=/(left|right|width|margin|padding|x)/i,V$=/[\s,\(]\S/,pr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},W_=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},H$=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},G$=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},W$=function(e,t){var i=t.s+t.c*e;t.set(t.t,t.p,~~(i+(i<0?-.5:.5))+t.u,t)},yP=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},_P=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},X$=function(e,t,i){return e.style[t]=i},q$=function(e,t,i){return e.style.setProperty(t,i)},Y$=function(e,t,i){return e._gsap[t]=i},$$=function(e,t,i){return e._gsap.scaleX=e._gsap.scaleY=i},K$=function(e,t,i,s,a){var l=e._gsap;l.scaleX=l.scaleY=i,l.renderTransform(a,l)},Z$=function(e,t,i,s,a){var l=e._gsap;l[t]=i,l.renderTransform(a,l)},xn="transform",zi=xn+"Origin",Q$=function n(e,t){var i=this,s=this.target,a=s.style,l=s._gsap;if(e in ca&&a){if(this.tfm=this.tfm||{},e!=="transform")e=pr[e]||e,~e.indexOf(",")?e.split(",").forEach(function(c){return i.tfm[c]=ea(s,c)}):this.tfm[e]=l.x?l[e]:ea(s,e),e===zi&&(this.tfm.zOrigin=l.zOrigin);else return pr.transform.split(",").forEach(function(c){return n.call(i,c,t)});if(this.props.indexOf(xn)>=0)return;l.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(zi,t,"")),e=xn}(a||t)&&this.props.push(e,t,a[e])},bP=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},J$=function(){var e=this.props,t=this.target,i=t.style,s=t._gsap,a,l;for(a=0;a<e.length;a+=3)e[a+1]?e[a+1]===2?t[e[a]](e[a+2]):t[e[a]]=e[a+2]:e[a+2]?i[e[a]]=e[a+2]:i.removeProperty(e[a].substr(0,2)==="--"?e[a]:e[a].replace(k1,"-$1").toLowerCase());if(this.tfm){for(l in this.tfm)s[l]=this.tfm[l];s.svg&&(s.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),a=j1(),(!a||!a.isStart)&&!i[xn]&&(bP(i),s.zOrigin&&i[zi]&&(i[zi]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},SP=function(e,t){var i={target:e,props:[],revert:J$,save:Q$};return e._gsap||ji.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(s){return i.save(s)}),i},wP,X_=function(e,t){var i=$a.createElementNS?$a.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):$a.createElement(e);return i&&i.style?i:$a.createElement(e)},Rs=function n(e,t,i){var s=getComputedStyle(e);return s[t]||s.getPropertyValue(t.replace(k1,"-$1").toLowerCase())||s.getPropertyValue(t)||!i&&n(e,du(t)||t,1)||""},hC="O,Moz,ms,Ms,Webkit".split(","),du=function(e,t,i){var s=t||rl,a=s.style,l=5;if(e in a&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(hC[l]+e in a););
vendor: 4,137 bytes, line 4298
4298return l<0?null:(l===3?"ms":l>=0?hC[l]:"")+e},q_=function(){j$()&&window.document&&(uC=window,$a=uC.document,Wc=$a.documentElement,rl=X_("div")||{style:{}},X_("div"),xn=du(xn),zi=xn+"Origin",rl.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",wP=!!du("perspective"),j1=ji.core.reverting,z1=1)},pC=function(e){var t=e.ownerSVGElement,i=X_("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=e.cloneNode(!0),a;s.style.display="block",i.appendChild(s),Wc.appendChild(i);try{a=s.getBBox()}catch{}return i.removeChild(s),Wc.removeChild(i),a},mC=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},EP=function(e){var t,i;try{t=e.getBBox()}catch{t=pC(e),i=1}return t&&(t.width||t.height)||i||(t=pC(e)),t&&!t.width&&!t.x&&!t.y?{x:+mC(e,["x","cx","x1"])||0,y:+mC(e,["y","cy","y1"])||0,width:0,height:0}:t},MP=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&EP(e))},_l=function(e,t){if(t){var i=e.style,s;t in ca&&t!==zi&&(t=xn),i.removeProperty?(s=t.substr(0,2),(s==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),i.removeProperty(s==="--"?t:t.replace(k1,"-$1").toLowerCase())):i.removeAttribute(t)}},Ka=function(e,t,i,s,a,l){var c=new Fi(e._pt,t,i,0,1,l?_P:yP);return e._pt=c,c.b=s,c.e=a,e._props.push(i),c},gC={deg:1,rad:1,turn:1},eK={grid:1,flex:1},lo=function n(e,t,i,s){var a=parseFloat(i)||0,l=(i+"").trim().substr((a+"").length)||"px",c=rl.style,f=k$.test(t),d=e.tagName.toLowerCase()==="svg",h=(d?"client":"offset")+(f?"Width":"Height"),g=100,v=s==="px",x=s==="%",b,_,w,S;if(s===l||!a||gC[s]||gC[l])return a;if(l!=="px"&&!v&&(a=n(e,t,i,"px")),S=e.getCTM&&MP(e),(x||l==="%")&&(ca[t]||~t.indexOf("adius")))return b=S?e.getBBox()[f?"width":"height"]:e[h],Cn(x?a/b*g:a/100*b);if(c[f?"width":"height"]=g+(v?l:s),_=s!=="rem"&&~t.indexOf("adius")||s==="em"&&e.appendChild&&!d?e:e.parentNode,S&&(_=(e.ownerSVGElement||{}).parentNode),(!_||_===$a||!_.appendChild)&&(_=$a.body),w=_._gsap,w&&x&&w.width&&f&&w.time===ts.time&&!w.uncache)return Cn(a/w.width*g);if(x&&(t==="height"||t==="width")){var T=e.style[t];e.style[t]=g+s,b=e[h],T?e.style[t]=T:_l(e,t)}else(x||l==="%")&&!eK[Rs(_,"display")]&&(c.position=Rs(e,"position")),_===e&&(c.position="static"),_.appendChild(rl),b=rl[h],_.removeChild(rl),c.position="absolute";return f&&x&&(w=hl(_),w.time=ts.time,w.width=_[h]),Cn(v?b*a/g:b&&a?g/b*a:0)},ea=function(e,t,i,s){var a;return z1||q_(),t in pr&&t!=="transform"&&(t=pr[t],~t.indexOf(",")&&(t=t.split(",")[0])),ca[t]&&t!=="transform"?(a=Td(e,s),a=t!=="transformOrigin"?a[t]:a.svg?a.origin:Im(Rs(e,zi))+" "+a.zOrigin+"px"):(a=e.style[t],(!a||a==="auto"||s||~(a+"").indexOf("calc("))&&(a=Um[t]&&Um[t](e,t,i)||Rs(e,t)||kD(e,t)||(t==="opacity"?1:0))),i&&!~(a+"").trim().indexOf(" ")?lo(e,t,a,i)+i:a},tK=function(e,t,i,s){if(!i||i==="none"){var a=du(t,e,1),l=a&&Rs(e,a,1);l&&l!==i?(t=a,i=l):t==="borderColor"&&(i=Rs(e,"borderTopColor"))}var c=new Fi(this._pt,e.style,t,0,1,gP),f=0,d=0,h,g,v,x,b,_,w,S,T,M,C,N;if(c.b=i,c.e=s,i+="",s+="",s.substring(0,6)==="var(--"&&(s=Rs(e,s.substring(4,s.indexOf(")")))),s==="auto"&&(_=e.style[t],e.style[t]=s,s=Rs(e,t)||s,_?e.style[t]=_:_l(e,t)),h=[i,s],aP(h),i=h[0],s=h[1],v=i.match(Ic)||[],N=s.match(Ic)||[],N.length){for(;g=Ic.exec(s);)w=g[0],T=s.substring(f,g.index),b?b=(b+1)%5:(T.substr(-5)==="rgba("||T.substr(-5)==="hsla(")&&(b=1),w!==(_=v[d++]||"")&&(x=parseFloat(_)||0,C=_.substr((x+"").length),w.charAt(1)==="="&&(w=Gc(x,w)+C),S=parseFloat(w),M=w.substr((S+"").length),f=Ic.lastIndex-M.length,M||(M=M||ss.units[t]||C,f===s.length&&(s+=M,c.e+=M)),C!==M&&(x=lo(e,t,_,M)||0),c._pt={_next:c._pt,p:T||d===1?T:",",s:x,c:S-x,m:b&&b<4||t==="zIndex"?Math.round:0});c.c=f<s.length?s.substring(f,s.length):""}else c.r=t==="display"&&s==="none"?_P:yP;return UD.test(s)&&(c.e=0),this._pt=c,c},vC={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},nK=function(e){var t=e.split(" "),i=t[0],s=t[1]||"50%";return(i==="top"||i==="bottom"||s==="left"||s==="right")&&(e=i,i=s,s=e),t[0]=vC[i]||i,t[1]=vC[s]||s,t.join(" ")},iK=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var i=t.t,s=i.style,a=t.u,l=i._gsap,c,f,d;
vendor: 1,847 bytes, line 4298
4298if(a==="all"||a===!0)s.cssText="",f=1;else for(a=a.split(","),d=a.length;--d>-1;)c=a[d],ca[c]&&(f=1,c=c==="transformOrigin"?zi:xn),_l(i,c);f&&(_l(i,xn),l&&(l.svg&&i.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",Td(i,1),l.uncache=1,bP(s)))}},Um={clearProps:function(e,t,i,s,a){if(a.data!=="isFromStart"){var l=e._pt=new Fi(e._pt,t,i,0,0,iK);return l.u=s,l.pr=-10,l.tween=a,e._props.push(i),1}}},Md=[1,0,0,1,0,0],TP={},AP=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},xC=function(e){var t=Rs(e,xn);return AP(t)?Md:t.substr(7).match(OD).map(Cn)},V1=function(e,t){var i=e._gsap||hl(e),s=e.style,a=xC(e),l,c,f,d;return i.svg&&e.getAttribute("transform")?(f=e.transform.baseVal.consolidate().matrix,a=[f.a,f.b,f.c,f.d,f.e,f.f],a.join(",")==="1,0,0,1,0,0"?Md:a):(a===Md&&!e.offsetParent&&e!==Wc&&!i.svg&&(f=s.display,s.display="block",l=e.parentNode,(!l||!e.offsetParent&&!e.getBoundingClientRect().width)&&(d=1,c=e.nextElementSibling,Wc.appendChild(e)),a=xC(e),f?s.display=f:_l(e,"display"),d&&(c?l.insertBefore(e,c):l?l.appendChild(e):Wc.removeChild(e))),t&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},Y_=function(e,t,i,s,a,l){var c=e._gsap,f=a||V1(e,!0),d=c.xOrigin||0,h=c.yOrigin||0,g=c.xOffset||0,v=c.yOffset||0,x=f[0],b=f[1],_=f[2],w=f[3],S=f[4],T=f[5],M=t.split(" "),C=parseFloat(M[0])||0,N=parseFloat(M[1])||0,U,P,O,R;i?f!==Md&&(P=x*w-b*_)&&(O=C*(w/P)+N*(-_/P)+(_*T-w*S)/P,R=C*(-b/P)+N*(x/P)-(x*T-b*S)/P,C=O,N=R):(U=EP(e),C=U.x+(~M[0].indexOf("%")?C/100*U.width:C),N=U.y+(~(M[1]||M[0]).indexOf("%")?N/100*U.height:N)),s||s!==!1&&c.smooth?(S=C-d,T=N-h,c.xOffset=g+(S*x+T*_)-S,c.yOffset=v+(S*b+T*w)-T):c.xOffset=c.yOffset=0,c.xOrigin=C,c.yOrigin=N,c.smooth=!!s,c.origin=t,c.originIsAbsolute=!!i,e.style[zi]="0px 0px",l&&(Ka(l,c,"xOrigin",d,C),Ka(l,c,"yOrigin",h,N),Ka(l,c,"xOffset",g,c.xOffset),Ka(l,c,"
4298yOffset",v,c.yOffset)),e.setAttribute("data-svg-origin",C+" "+N)},Td=function(e,t){var i=e._gsap||new uP(e);if("x"in i&&!t&&!i.uncache)return i;var s=e.style,a=i.scaleX<0,l="px",c="deg",f=getComputedStyle(e),d=Rs(e,zi)||"0",h,g,v,x,b,_,w,S,T,M,C,N,U,P,O,R,L,z,H,Y,K,q,B,W,j,ae,fe,G,ee,me,ve,ge;return h=g=v=_=w=S=T=M=C=0,x=b=1,i.svg=!!(e.getCTM&&MP(e)),f.translate&&((f.translate!=="none"||f.scale!=="none"||f.rotate!=="none")&&(s[xn]=(f.translate!=="none"?"translate3d("+(f.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(f.rotate!=="none"?"rotate("+f.rotate+") ":"")+(f.scale!=="none"?"scale("+f.scale.split(" ").join(",")+") ":"")+(f[xn]!=="none"?f[xn]:"")),s.scale=s.rotate=s.translate="none"),P=V1(e,i.svg),i.svg&&(i.uncache?(j=e.getBBox(),d=i.xOrigin-j.x+"px "+(i.yOrigin-j.y)+"px",W=""):W=!t&&e.getAttribute("data-svg-origin"),Y_(e,W||d,!!W||i.originIsAbsolute,i.smooth!==!1,P)),N=i.xOrigin||0,U=i.yOrigin||0,P!==Md&&(z=P[0],H=P[1],Y=P[2],K=P[3],h=q=P[4],g=B=P[5],P.length===6?(x=Math.sqrt(z*z+H*H),b=Math.sqrt(K*K+Y*Y),_=z||H?Mc(H,z)*Qo:0,T=Y||K?Mc(Y,K)*Qo+_:0,T&&(b*=Math.abs(Math.cos(T*Xc))),i.svg&&(h-=N-(N*z+U*Y),g-=U-(N*H+U*K))):(ge=P[6],me=P[7],fe=P[8],G=P[9],ee=P[10],ve=P[11],h=P[12],g=P[13],v=P[14],O=Mc(ge,ee),w=O*Qo,O&&(R=Math.cos(-O),L=Math.sin(-O),W=q*R+fe*L,j=B*R+G*L,ae=ge*R+ee*L,fe=q*-L+fe*R,G=B*-L+G*R,ee=ge*-L+ee*R,ve=me*-L+ve*R,q=W,B=j,ge=ae),O=Mc(-Y,ee),S=O*Qo,O&&(R=Math.cos(-O),L=Math.sin(-O),W=z*R-fe*L,j=H*R-G*L,ae=Y*R-ee*L,ve=K*L+ve*R,z=W,H=j,Y=ae),O=Mc(H,z),_=O*Qo,O&&(R=Math.cos(O),L=Math.sin(O),W=z*R+H*L,j=q*R+B*L,H=H*R-z*L,B=B*R-q*L,z=W,q=j),w&&Math.abs(w)+Math.abs(_)>359.9&&(w=_=0,S=180-S),x=Cn(Math.sqrt(z*z+H*H+Y*Y)),b=Cn(Math.sqrt(B*B+ge*ge)),O=Mc(q,B),T=Math.abs(O)>2e-4?O*Qo:0,C=ve?1/(ve<0?-ve:ve):0),i.svg&&(W=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!AP(Rs(e,xn)),W&&e.setAttribute("transform",W))),Math.abs(T)>90&&Math.abs(T)<270&&(a?(x*=-1,T+=_<=0?180:-180,_+=_<=0?180:-180):(b*=-1,T+=T<=0?180:-180)),t=t||i.uncache,i.x=h-((i.xPercent=h&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-h)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+l,i.y=g-((i.yPercent=g&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-g)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+l,i.z=v+l,i.scaleX=Cn(x),i.scaleY=Cn(b),i.rotation=Cn(_)+c,i.rotationX=Cn(w)+c,i.rotationY=Cn(S)+c,i.skewX=T+c,i.skewY=M+c,i.transformPerspective=C+l,(i.zOrigin=parseFloat(d.split(" ")[2])||!t&&i.zOrigin||0)&&(s[zi]=Im(d)),i.xOffset=i.yOffset=0,i.force3D=ss.force3D,i.renderTransform=i.svg?rK:wP?CP:sK,i.uncache=0,i},Im=function(e){return(e=e.split(" "))[0]+" "+e[1]},ey=function(e,t,i){var s=pi(t);return Cn(parseFloat(t)+parseFloat(lo(e,"x",i+"px",s)))+s},sK=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,CP(e,t)},qo="0deg",Ff="0px",Yo=") ",CP=function(e,t){var i=t||this,s=i.xPercent,a=i.yPercent,l=i.x,c=i.y,f=i.z,d=i.rotation,h=i.rotationY,g=i.rotationX,v=i.skewX,x=i.skewY,b=i.scaleX,_=i.scaleY,w=i.transformPerspective,S=i.force3D,T=i.target,M=i.zOrigin,C="",N=S==="auto"&&e&&e!==1||S===!0;if(M&&(g!==qo||h!==qo)){var U=parseFloat(h)*Xc,P=Math.sin(U),O=Math.cos(U),R;U=parseFloat(g)*Xc,R=Math.cos(U),l=ey(T,l,P*R*-M),c=ey(T,c,-Math.sin(U)*-M),f=ey(T,f,O*R*-M+M)}w!==Ff&&(C+="perspective("+w+Yo),(s||a)&&(C+="translate("+s+"%, "+a+"%) "),(N||l!==Ff||c!==Ff||f!==Ff)&&(C+=f!==Ff||N?"translate3d("+l+", "+c+", "+f+") ":"translate("+l+", "+c+Yo),d!==qo&&(C+="rotate("+d+Yo),h!==qo&&(C+="rotateY("+h+Yo),g!==qo&&(C+="rotateX("+g+Yo),(v!==qo||x!==qo)&&(C+="skew("+v+", "+x+Yo),(b!==1||_!==1)&&(C+="scale("+b+", "+_+Yo),T.style[xn]=C||"translate(0, 0)"},rK=function(e,t){var i=t||this,s=i.xPercent,a=i.yPercent,l=i.x,c=i.y,f=i.rotation,d=i.skewX,h=i.skewY,g=i.scaleX,v=i.scaleY,x=i.target,b=i.xOrigin,_=i.yOrigin,w=i.xOffset,S=i.yOffset,T=i.forceCSS,M=parseFloat(l),C=parseFloat(c),N,U,P,O,R;f=parseFloat(f),d=parseFloat(d),h=parseFloat(h),h&&(h=parseFloat(h),d+=h,f+=h),f||d?(f*=Xc,d*=Xc,N=Math.cos(f)*g,U=Math.sin(f)*g,P=Math.sin(f-d)*-v,O=Math.cos(f-d)*v,d&&(h*=Xc,R=Math.tan(d-h),R=Math.sqrt(1+R*R),P*=R,O*=R,h&&(R=Math.tan(h),R=Math.sqrt(1+R*R),N*=R,U*=R)),N=Cn(N),U=Cn(U),P=Cn(P),O=Cn(O)):(N=g,O=v,U=P=0),(M&&!~(l+"").indexOf("px")||C&&!~(c+"").indexOf("px"))&&(M=lo(x,"x",l,"px"),C=lo(x,"y",c,"px")),(b||_||w||S)&&(M=Cn(M+b-(b*N+_*P)+w),C=Cn(C+_-(b*U+_*O)+S)),(s||a)&&(R=x.getBBox(),M=Cn(M+s/100*R.width),C=Cn(C+a/100*R.height)),R="matrix("+N+","+U+","+P+","+O+","+M+","+C+")",x.setAttribute("transform",R),T&&(x.style[xn]=R)},aK=function(e,t,i,s,a){var l=360,c=ei(a),f=parseFloat(a)*(c&&~a.indexOf("rad")?Qo:1),d=f-s,h=s+d+"deg",g,v;return c&&(g=a.split("_")[1],g==="short"&&(d%=l,d!==d%(l/2)&&(d+=d<0?l:-l)),g==="cw"&&d<0?d=(d+l*dC)%l-~~(d/l)*l:g==="ccw"&&d>0&&(d=(d-l*dC)%l-~~(d/l)*l)),e._pt=v=new Fi(e._pt,t,i,s,d,H$),v.e=h,v.u="deg",e._props.push(i),v},yC=function(e,t){for(var i in t)e[i]=t[i];return e},oK=function(e,t,i){var s=yC({},i._gsap),a="perspective,force3D,transformOrigin,svgOrigin",l=i.style,c,f,d,h,g,v,x,b;s.svg?(d=i.getAttribute("transform"),i.setAttribute("transform",""),l[xn]=t,c=Td(i,1),_l(i,xn),i.setAttribute("transform",d)):(d=getComputedStyle(i)[xn],l[xn]=t,c=Td(i,1),l[xn]=d);for(f in ca)d=s[f],h=c[f],d!==h&&a.indexOf(f)<0&&(x=pi(d),b=pi(h),g=x!==b?lo(i,f,d,b):parseFloat(d),v=parseFloat(h),e._pt=new Fi(e._pt,c,f,g,v-g,W_),e._pt.u=b||0,e._props.push(f));yC(c,s)};Bi("padding,margin,Width,Radius",function(n,e){var t="Top",i="Right",s="Bottom",a="Left",l=(e<3?[t,i,s,a]:[t+a,t+i,s+i,s+a]).map(function(c){return e<2?n+c:"border"+c+n});Um[e>1?"border"+n:n]=function(c,f,d,h,g){var v,x;if(arguments.length<4)return v=l.map(function(b){return ea(c,b,d)}
vendor: 4,145 bytes, line 4298
4298),x=v.join(" "),x.split(v[0]).length===5?v[0]:x;v=(h+"").split(" "),x={},l.forEach(function(b,_){return x[b]=v[_]=v[_]||v[(_-1)/2|0]}),c.init(f,x,g)}});var RP={name:"css",register:q_,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,s,a){var l=this._props,c=e.style,f=i.vars.startAt,d,h,g,v,x,b,_,w,S,T,M,C,N,U,P,O;z1||q_(),this.styles=this.styles||SP(e),O=this.styles.props,this.tween=i;for(_ in t)if(_!=="autoRound"&&(h=t[_],!(Qi[_]&&fP(_,t,i,s,e,a)))){if(x=typeof h,b=Um[_],x==="function"&&(h=h.call(i,s,e,a),x=typeof h),x==="string"&&~h.indexOf("random(")&&(h=Sd(h)),b)b(this,e,_,h,i)&&(P=1);else if(_.substr(0,2)==="--")d=(getComputedStyle(e).getPropertyValue(_)+"").trim(),h+="",no.lastIndex=0,no.test(d)||(w=pi(d),S=pi(h)),S?w!==S&&(d=lo(e,_,d,S)+S):w&&(h+=w),this.add(c,"setProperty",d,h,s,a,0,0,_),l.push(_),O.push(_,0,c[_]);else if(x!=="undefined"){if(f&&_ in f?(d=typeof f[_]=="function"?f[_].call(i,s,e,a):f[_],ei(d)&&~d.indexOf("random(")&&(d=Sd(d)),pi(d+"")||d==="auto"||(d+=ss.units[_]||pi(ea(e,_))||""),(d+"").charAt(1)==="="&&(d=ea(e,_))):d=ea(e,_),v=parseFloat(d),T=x==="string"&&h.charAt(1)==="="&&h.substr(0,2),T&&(h=h.substr(2)),g=parseFloat(h),_ in pr&&(_==="autoAlpha"&&(v===1&&ea(e,"visibility")==="hidden"&&g&&(v=0),O.push("visibility",0,c.visibility),Ka(this,c,"visibility",v?"inherit":"hidden",g?"inherit":"hidden",!g)),_!=="scale"&&_!=="transform"&&(_=pr[_],~_.indexOf(",")&&(_=_.split(",")[0]))),M=_ in ca,M){if(this.styles.save(_),x==="string"&&h.substring(0,6)==="var(--"&&(h=Rs(e,h.substring(4,h.indexOf(")"))),g=parseFloat(h)),C||(N=e._gsap,N.renderTransform&&!t.parseTransform||Td(e,t.parseTransform),U=t.smoothOrigin!==!1&&N.smooth,C=this._pt=new Fi(this._pt,c,xn,0,1,N.renderTransform,N,0,-1),C.dep=1),_==="scale")this._pt=new Fi(this._pt,N,"scaleY",N.scaleY,(T?Gc(N.scaleY,T+g):g)-N.scaleY||0,W_),this._pt.u=0,l.push("scaleY",_),_+="X";else if(_==="transformOrigin"){O.push(zi,0,c[zi]),h=nK(h),N.svg?Y_(e,h,0,U,0,this):(S=parseFloat(h.split(" ")[2])||0,S!==N.zOrigin&&Ka(this,N,"zOrigin",N.zOrigin,S),Ka(this,c,_,Im(d),Im(h)));continue}else if(_==="svgOrigin"){Y_(e,h,1,U,0,this);continue}else if(_ in TP){aK(this,N,_,v,T?Gc(v,T+h):h);continue}else if(_==="smoothOrigin"){Ka(this,N,"smooth",N.smooth,h);continue}else if(_==="force3D"){N[_]=h;continue}else if(_==="transform"){oK(this,h,e);continue}}else _ in c||(_=du(_)||_);if(M||(g||g===0)&&(v||v===0)&&!V$.test(h)&&_ in c)w=(d+"").substr((v+"").length),g||(g=0),S=pi(h)||(_ in ss.units?ss.units[_]:w),w!==S&&(v=lo(e,_,d,S)),this._pt=new Fi(this._pt,M?N:c,_,v,(T?Gc(v,T+g):g)-v,!M&&(S==="px"||_==="zIndex")&&t.autoRound!==!1?W$:W_),this._pt.u=S||0,w!==S&&S!=="%"&&(this._pt.b=d,this._pt.r=G$);else if(_ in c)tK.call(this,e,_,d,T?T+h:h);else if(_ in e)this.add(e,_,d||e[_],T?T+h:h,s,a);else if(_!=="parseTransform"){R1(_,h);continue}M||(_ in c?O.push(_,0,c[_]):typeof e[_]=="function"?O.push(_,2,e[_]()):O.push(_,1,d||e[_])),l.push(_)}}P&&vP(this)},render:function(e,t){if(t.tween._time||!j1())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:ea,aliases:pr,getSetter:function(e,t,i){var s=pr[t];return s&&s.indexOf(",")<0&&(t=s),t in ca&&t!==zi&&(e._gsap.x||ea(e,"x"))?i&&fC===i?t==="scale"?$$:Y$:(fC=i||{})&&(t==="scale"?K$:Z$):e.style&&!T1(e.style[t])?X$:~t.indexOf("-")?q$:B1(e,t)},core:{_removeProperty:_l,_getMatrix:V1}};ji.utils.checkPrefix=du;ji.core.getStyleSaver=SP;(function(n,e,t,i){var s=Bi(n+","+e+","+t,function(a){ca[a]=1});Bi(e,function(a){ss.units[a]="deg",TP[a]=1}),pr[s[13]]=n+","+e,Bi(i,function(a){var l=a.split(":");pr[l[1]]=s[l[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");Bi("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){ss.units[n]="px"});ji.registerPlugin(RP);var Xt=ji.registerPlugin(RP)||ji;Xt.core.Tween;const qf=A.forwardRef(({customClass:n,...e},t)=>m.jsx("div",{ref:t,...e,className:`absolute top-1/2 left-1/2 roun
4298ded-xl border border-white bg-black [transform-style:preserve-3d] [will-change:transform] [backface-visibility:hidden] ${n??""} ${e.className??""}`.trim()}));qf.displayName="Card";const ty=(n,e,t,i)=>({x:n*e,y:-n*t,z:-n*e*1.5,zIndex:i-n}),lK=(n,e,t)=>Xt.set(n,{x:e.x,y:e.y,z:e.z,xPercent:-50,yPercent:-50,skewY:t,transformOrigin:"center center",zIndex:e.zIndex,force3D:!0}),cK=({width:n=500,height:e=400,cardDistance:t=60,verticalDistance:i=70,delay:s=5e3,pauseOnHover:a=!1,onCardClick:l,skewAmount:c=6,easing:f="elastic",children:d})=>{const h=f==="elastic"?{ease:"elastic.out(0.6,0.9)",durDrop:2,durMove:2,durReturn:2,promoteOverlap:.9,returnDelay:.05}:{ease:"power1.inOut",durDrop:.8,durMove:.8,durReturn:.8,promoteOverlap:.45,returnDelay:.2},g=A.useMemo(()=>A.Children.toArray(d),[d]),v=A.useMemo(()=>g.map(()=>Di.createRef()),[g.length]),x=A.useRef(Array.from({length:g.length},(T,M)=>M)),b=A.useRef(null),_=A.useRef(),w=A.useRef(null);A.useEffect(()=>{const T=v.length;v.forEach((C,N)=>lK(C.current,ty(N,t,i,T),c));const M=()=>{if(x.current.length<2)return;const[C,...N]=x.current,U=v[C].current,P=Xt.timeline();b.current=P,P.to(U,{y:"+=500",duration:h.durDrop,ease:h.ease}),P.addLabel("promote",`-=${h.durDrop*h.promoteOverlap}
4298`),N.forEach((R,L)=>{const z=v[R].current,H=ty(L,t,i,v.length);P.set(z,{zIndex:H.zIndex},"promote"),P.to(z,{x:H.x,y:H.y,z:H.z,duration:h.durMove,ease:h.ease},`promote+=${L*.15}`)});const O=ty(v.length-1,t,i,v.length);P.addLabel("return",`promote+=${h.durMove*h.returnDelay}`),P.call(()=>{Xt.set(U,{zIndex:O.zIndex})},void 0,"return"),P.to(U,{x:O.x,y:O.y,z:O.z,duration:h.durReturn,ease:h.ease},"return"),P.call(()=>{x.current=[...N,C]})};if(M(),_.current=window.setInterval(M,s),a){const C=w.current,N=()=>{b.current?.pause(),clearInterval(_.current)},U=()=>{b.current?.play(),_.current=window.setInterval(M,s)};return C.addEventListener("mouseenter",N),C.addEventListener("mouseleave",U),()=>{C.removeEventListener("mouseenter",N),C.removeEventListener("mouseleave",U),clearInterval(_.current)}}return()=>clearInterval(_.current)},[t,i,s,a,c,f]);const S=g.map((T,M)=>A.isValidElement(T)?A.cloneElement(T,{key:M,ref:v[M],style:{width:n,height:e,...T.props.style??{}},onClick:C=>{T.props.onClick?.(C),l?.(M)}}):T);return m.jsx("div",{ref:w,className:"absolute bottom-0 right-0 transform translate-x-[5%] translate-y-[20%] origin-bottom-right perspective-[900px] overflow-visible max-[768px]:translate-x-[25%] max-[768px]:translate-y-[25%] max-[768px]:scale-[0.75] max-[480px]:translate-x-[25%] max-[480px]:translate-y-[25%] max-[480px]:scale-[0.55]",style:{width:n,height:e},children:S})};function _C(n){const e=uK(n),t=A.forwardRef((i,s)=>{const{children:a,...l}=i,c=A.Children.toArray(a),f=c.find(dK);if(f){const d=f.props.children,h=c.map(g=>g===f?A.Children.count(d)>1?A.Children.only(null):A.isValidElement(d)?d.props.children:null:g);return m.jsx(e,{...l,ref:s,children:A.isValidElement(d)?A.cloneElement(d,void 0,h):null})}return m.jsx(e,{...l,ref:s,children:a})});return t.displayName=`${n}.Slot`,t}function uK(n){const e=A.forwardRef((t,i)=>{const{children:s,...a}=t;if(A.isValidElement(s)){const l=pK(s),c=hK(a,s.props);return s.type!==A.Fragment&&(c.ref=i?Tu(i,l):l),A.cloneElement(s,c)}return A.Children.count(s)>1?A.Children.only(null):null});return e.displayName=`${n}.SlotClone`,e}var fK=Symbol("radix.slottable");function dK(n){return A.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===fK}function hK(n,e){const t={...e};for(const i in e){const s=n[i],a=e[i];/^on[A-Z]/.test(i)?s&&a?t[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(t[i]=s):i==="style"?t[i]={...s,...a}:i==="className"&&(t[i]=[s,a].filter(Boolean).join(" "))}return{...n,...t}}function pK(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}function mK(n){const e=n+"CollectionProvider",[t,i]=Vd(e),[s,a]=t(e,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:w,children:S}=_,T=Di.useRef(null),M=Di.useRef(new Map).current;return m.jsx(s,{scope:w,itemMap:M,collectionRef:T,children:S})};l.displayName=e;const c=n+"CollectionSlot",f=_C(c),d=Di.forwardRef((_,w)=>{const{scope:S,children:T}=_,M=a(c,S),C=on(w,M.collectionRef);return m.jsx(f,{ref:C,children:T})});d.displayName=c;const h=n+"CollectionItemSlot",g="data-radix-collection-item",v=_C(h),x=Di.forwardRef((_,w)=>{const{scope:S,children:T,...M}=_,C=Di.useRef(null),N=on(w,C),U=a(h,S);return Di.useEffect(()=>(U.itemMap.set(C,{ref:C,...M}),()=>{U.itemMap.delete(C)})),m.jsx(v,{[g]:"",ref:N,children:T})});x.displayName=h;function b(_){const w=a(n+"CollectionConsumer",_);return Di.useCallback(()=>{const T=w.collectionRef.current;if(!T)return[];const M=Array.from(T.querySelectorAll(`[${g}]`));return Array.from(w.itemMap.values()).sort((U,P)=>M.indexOf(U.ref.current)-M.indexOf(P.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:d,ItemSlot:x},b,i]}const gK=["top","right","bottom","left"],co=Math.min,Ji=Math.max,Bm=Math.round,Vp=Math.floor,_r=n=>({x:n,y:n}),vK={left:"right",right:"left",bottom:"top",top:"bottom"},xK={start:"end",end:"start"};function $_(n,e,t){return Ji(n,co(e,t))}function ua(n,e){return typeof n=="function"?n(e):n}function fa(n){return n.split("-")[0]}function Au(n){return n.split("-")[1]}function H1(n){return n==="x"?"y":"x"}function G1(n){return n==="y"?"height":"width"}const yK=new Set(["top","bottom"]);function mr(n){return yK.has(fa(n))?"y":"x"}function W1(n){return H1(mr(n))}function _K(n,e,t){t===void 0&&(t=!1);const i=Au(n),s=W1(n),a=G1(s);let l=s==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(l=Fm(l)),[l,Fm(l)]}function bK(n){const e=Fm(n);return[K_(n),e,K_(e)]}function K_(n){return n.replace(/start|end/g,e=>xK[e])}const bC=["left","right"],SC=["right","left"],SK=["top","bottom"],wK=["bottom","top"];function EK(n,e,t){switch(n){case"top":case"bottom":return t?e?SC:bC:e?bC:SC;case"left":case"right":return e?SK:wK;default:return[]}}function MK(n,e,t,i){const s=Au(n);let a=EK(fa(n),t==="start",i);
vendor: 15,065 bytes, line 4298
4298return s&&(a=a.map(l=>l+"-"+s),e&&(a=a.concat(a.map(K_)))),a}function Fm(n){return n.replace(/left|right|bottom|top/g,e=>vK[e])}function TK(n){return{top:0,right:0,bottom:0,left:0,...n}}function NP(n){return typeof n!="number"?TK(n):{top:n,right:n,bottom:n,left:n}}function zm(n){const{x:e,y:t,width:i,height:s}=n;return{width:i,height:s,top:t,left:e,right:e+i,bottom:t+s,x:e,y:t}}function wC(n,e,t){let{reference:i,floating:s}=n;const a=mr(e),l=W1(e),c=G1(l),f=fa(e),d=a==="y",h=i.x+i.width/2-s.width/2,g=i.y+i.height/2-s.height/2,v=i[c]/2-s[c]/2;let x;switch(f){case"top":x={x:h,y:i.y-s.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-s.width,y:g};break;default:x={x:i.x,y:i.y}}switch(Au(e)){case"start":x[l]-=v*(t&&d?-1:1);break;case"end":x[l]+=v*(t&&d?-1:1);break}return x}const AK=async(n,e,t)=>{const{placement:i="bottom",strategy:s="absolute",middleware:a=[],platform:l}=t,c=a.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(e));let d=await l.getElementRects({reference:n,floating:e,strategy:s}),{x:h,y:g}=wC(d,i,f),v=i,x={},b=0;for(let _=0;_<c.length;_++){const{name:w,fn:S}=c[_],{x:T,y:M,data:C,reset:N}=await S({x:h,y:g,initialPlacement:i,placement:v,strategy:s,middlewareData:x,rects:d,platform:l,elements:{reference:n,floating:e}});h=T??h,g=M??g,x={...x,[w]:{...x[w],...C}},N&&b<=50&&(b++,typeof N=="object"&&(N.placement&&(v=N.placement),N.rects&&(d=N.rects===!0?await l.getElementRects({reference:n,floating:e,strategy:s}):N.rects),{x:h,y:g}=wC(d,v,f)),_=-1)}return{x:h,y:g,placement:v,strategy:s,middlewareData:x}};async function Ad(n,e){var t;e===void 0&&(e={});const{x:i,y:s,platform:a,rects:l,elements:c,strategy:f}=n,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:v=!1,padding:x=0}=ua(e,n),b=NP(x),w=c[v?g==="floating"?"reference":"floating":g],S=zm(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(w)))==null||t?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:f})),T=g==="floating"?{x:i,y:s,width:l.floating.width,height:l.floating.height}:l.reference,M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),C=await(a.isElement==null?void 0:a.isElement(M))?await(a.getScale==null?void 0:a.getScale(M))||{x:1,y:1}:{x:1,y:1},N=zm(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:M,strategy:f}):T);return{top:(S.top-N.top+b.top)/C.y,bottom:(N.bottom-S.bottom+b.bottom)/C.y,left:(S.left-N.left+b.left)/C.x,right:(N.right-S.right+b.right)/C.x}}const CK=n=>({name:"arrow",options:n,async fn(e){const{x:t,y:i,placement:s,rects:a,platform:l,elements:c,middlewareData:f}=e,{element:d,padding:h=0}=ua(n,e)||{};if(d==null)return{};const g=NP(h),v={x:t,y:i},x=W1(s),b=G1(x),_=await l.getDimensions(d),w=x==="y",S=w?"top":"left",T=w?"bottom":"right",M=w?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[x]-v[x]-a.floating[b],N=v[x]-a.reference[x],U=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let P=U?U[M]:0;(!P||!await(l.isElement==null?void 0:l.isElement(U)))&&(P=c.floating[M]||a.floating[b]);const O=C/2-N/2,R=P/2-_[b]/2-1,L=co(g[S],R),z=co(g[T],R),H=L,Y=P-_[b]-z,K=P/2-_[b]/2+O,q=$_(H,K,Y),B=!f.arrow&&Au(s)!=null&&K!==q&&a.reference[b]/2-(K<H?L:z)-_[b]/2<0,W=B?K<H?K-H:K-Y:0;return{[x]:v[x]+W,data:{[x]:q,centerOffset:K-q-W,...B&&{alignmentOffset:W}},reset:B}}}),RK=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t,i;const{placement:s,middlewareData:a,rects:l,initialPlacement:c,platform:f,elements:d}=e,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:_=!0,...w}=ua(n,e);if((t=a.arrow)!=null&&t.alignmentOffset)return{};const S=fa(s),T=mr(c),M=fa(c)===c,C=await(f.isRTL==null?void 0:f.isRTL(d.floating)),N=v||(M||!_?[Fm(c)]:bK(c)),U=b!=="none";!v&&U&&N.push(...MK(c,_,b,C));const P=[c,...N],O=await Ad(e,w),R=[];let L=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&R.push(O[S]),g){const K=_K(s,l,C);R.push(O[K[0]],O[K[1]])}if(L=[...L,{placement:s,overflows:R}],!R.every(K=>K<=0)){var z,H;const K=(((z=a.flip)==null?void 0:z.index)||0)+1,q=P[K];if(q&&(!(g==="alignment"?T!==mr(q):!1)||L.every(j=>mr(j.placement)===T?j.overflows[0]>0:!0)))return{data:{index:K,overflows:L},reset:{placement:q}};let B=(H=L.filter(W=>W.overflows[0]<=0).sort((W,j)=>W.overflows[1]-j.overflows[1])[0])==null?void 0:H.placement;if(!B)switch(x){case"bestFit":{var Y;const W=(Y=L.filter(j=>{if(U){const ae=mr(j.placement);return ae===T||ae==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(ae=>ae>0).reduce((ae,fe)=>ae+fe,0)]).sort((j,ae)=>j[1]-ae[1])[0])==null?void 0:Y[0];W&&(B=W);break}case"initialPlacement":B=c;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function EC(n,e){return{top:n.top-e.height,right:n.right-e.width,bottom:n.bottom-e.height,left:n.left-e.width}}function MC(n){return gK.some(e=>n[e]>=0)}const NK=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(e){const{rects:t}=e,{strategy:i="referenceHidden",...s}=ua(n,e);switch(i){case"referenceHidden":{const a=await Ad(e,{...s,elementContext:"reference"}),l=EC(a,t.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:MC(l)}}}case"escaped":{const a=await Ad(e,{...s,altBoundary:!0}),l=EC(a,t.floating);return{data:{escapedOffsets:l,escaped:MC(l)}}}default:return{}}}}},DP=new Set(["left","top"]);async function DK(n,e){const{placement:t,platform:i,elements:s}=n,a=await(i.isRTL==null?void 0:i.isRTL(s.floating)),l=fa(t),c=Au(t),f=mr(t)==="y",d=DP.has(l)?-1:1,h=a&&f?-1:1,g=ua(e,n);let{mainAxis:v,crossAxis:x,alignmentAxis:b}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof b=="number"&&(x=c==="end"?b*-1:b),f?{x:x*h,y:v*d}:{x:v*d,y:x*h}}const PK=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,i;const{x:s,y:a,placement:l,middlewareData:c}=e,f=await DK(e,n);return l===((t=c.offset)==null?void 0:t.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:s+f.x,y:a+f.y,data:{...f,placement:l}}}}},LK=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:i,placement:s}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x:S,y:T}=w;return{x:S,y:T}}},...f}=ua(n,e),d={x:t,y:i},h=await Ad(e,f),g=mr(fa(s)),v=H1(g);let x=d[v],b=d[g];if(a){const w=v==="y"?"top":"left",S=v==="y"?"bottom":"right",T=x+h[w],M=x-h[S];x=$_(T,x,M)}if(l){const w=g==="y"?"top":"left",S=g==="y"?"bottom":"right",T=b+h[w],M=b-h[S];b=$_(T,b,M)}const _=c.fn({...e,[v]:x,[g]:b});return{..._,data:{x:_.x-t,y:_.y-i,enabled:{[v]:a,[g]:l}}}}}},OK=function(n){return n===void 0&&(n={}),{options:n,fn(e){const{x:t,y:i,placement:s,rects:a,middlewareData:l}=e,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=ua(n,e),h={x:t,y:i},g=mr(s),v=H1(g);let x=h[v],b=h[g];const _=ua(c,e),w=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(f){const M=v==="y"?"height":"width",C=a.reference[v]-a.floating[M]+w.mainAxis,N=a.reference[v]+a.reference[M]-w.mainAxis;x<C?x=C:x>N&&(x=N)}if(d){var S,T;const M=v==="y"?"width":"height",C=DP.has(fa(s)),N=a.reference[g]-a.floating[M]+(C&&((S=l.offset)==null?void 0:S[g])||0)+(C?0:w.crossAxis),U=a.reference[g]+a.reference[M]+(C?0:((T=l.offset)==null?void 0:T[g])||0)-(C?w.crossAxis:0);b<N?b=N:b>U&&(b=U)}return{[v]:x,[g]:b}}}},UK=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){var t,i;const{placement:s,rects:a,platform:l,elements:c}=e,{apply:f=()=>{},...d}=ua(n,e),h=await Ad(e,d),g=fa(s),v=Au(s),x=mr(s)==="y",{width:b,height:_}=a.floating;let w,S;g==="top"||g==="bottom"?(w=g,S=v===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(S=g,w=v==="end"?"top":"bottom");const T=_-h.top-h.bottom,M=b-h.left-h.right,C=co(_-h[w],T),N=co(b-h[S],M),U=!e.middlewareData.shift;let P=C,O=N;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(O=M),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(P=T),U&&!v){const L=Ji(h.left,0),z=Ji(h.right,0),H=Ji(h.top,0),Y=Ji(h.bottom,0);x?O=b-2*(L!==0||z!==0?L+z:Ji(h.left,h.right)):P=_-2*(H!==0||Y!==0?H+Y:Ji(h.top,h.bottom))}await f({...e,availableWidth:O,availableHeight:P});const R=await l.getDimensions(c.floating);return b!==R.width||_!==R.height?{reset:{rects:!0}}:{}}}};function hg(){return typeof window<"u"}function Cu(n){return PP(n)?(n.nodeName||"").toLowerCase():"#document"}function rs(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Tr(n){var e;return(e=(PP(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function PP(n){return hg()?n instanceof Node||n instanceof rs(n).Node:!1}function $s(n){return hg()?n instanceof Element||n instanceof rs(n).Element:!1}function Er(n){return hg()?n instanceof HTMLElement||n instanceof rs(n).HTMLElement:!1}function TC(n){return!hg()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof rs(n).ShadowRoot}const IK=new Set(["inline","contents"]);function Gd(n){const{overflow:e,overflowX:t,overflowY:i,display:s}=Ks(n);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!IK.has(s)}const BK=new Set(["table","td","th"]);function FK(n){return BK.has(Cu(n))}const zK=[":popover-open",":modal"];function pg(n){return zK.some(e=>{try{return n.matches(e)}catch{return!1}})}const jK=["transform","translate","scale","rotate","perspective"],kK=["transform","translate","scale","rotate","perspective","filter"],VK=["paint","layout","strict","content"];function X1(n){const e=q1(),t=$s(n)?Ks(n):n;return jK.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||kK.some(i=>(t.willChange||"").includes(i))||VK.some(i=>(t.contain||"").includes(i))}function HK(n){let e=uo(n);for(;Er(e)&&!hu(e);){if(X1(e))return e;if(pg(e))return null;e=uo(e)}return null}function q1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const GK=new Set(["html","body","#document"]);function hu(n){return GK.has(Cu(n))}function Ks(n){return rs(n).getComputedStyle(n)}function mg(n){return $s(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function uo(n){if(Cu(n)==="html")return n;const e=n.assignedSlot||n.parentNode||TC(n)&&n.host||Tr(n);return TC(e)?e.host:e}function LP(n){const e=uo(n);return hu(e)?n.ownerDocument?n.ownerDocument.body:n.body:Er(e)&&Gd(e)?e:LP(e)}function Cd(n,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);const s=LP(n),a=s===((i=n.ownerDocument)==null?void 0:i.body),l=rs(s);if(a){const c=Z_(l);return e.concat(l,l.visualViewport||[],Gd(s)?s:[],c&&t?Cd(c):[])}return e.concat(s,Cd(s,[],t))}function Z_(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function OP(n){const e=Ks(n);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const s=Er(n),a=s?n.offsetWidth:t,l=s?n.offsetHeight:i,c=Bm(t)!==a||Bm(i)!==l;return c&&(t=a,i=l),{width:t,height:i,$:c}}function Y1(n){return $s(n)?n:n.contextElement}function qc(n){const e=Y1(n);if(!Er(e))return _r(1);const t=e.getBoundingClientRect(),{width:i,height:s,$:a}=OP(e);let l=(a?Bm(t.width):t.width)/i,c=(a?Bm(t.height):t.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const WK=_r(0);function UP(n){const e=rs(n);return!q1()||!e.visualViewport?WK:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function XK(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==rs(n)?!1:e}function bl(n,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);const s=n.getBoundingClientRect(),a=Y1(n);let l=_r(1);e&&(i?$s(i)&&(l=qc(i)):l=qc(n));const c=XK(a,t,i)?UP(a):_r(0);let f=(s.left+c.x)/l.x,d=(s.top+c.y)/l.y,h=s.width/l.x,g=s.height/l.y;if(a){const v=rs(a),x=i&&$s(i)?rs(i):i;let b=v,_=Z_(b);for(;_&&i&&x!==b;){const w=qc(_),S=_.getBoundingClientRect(),T=Ks(_),M=S.left+(_.clientLeft+parseFloat(T.paddingLeft))*w.x,C=S.top+(_.clientTop+parseFloat(T.paddingTop))*w.y;f*=w.x,d*=w.y,h*=w.x,g*=w.y,f+=M,d+=C,b=rs(_),_=Z_(b)}}return zm({width:h,height:g,x:f,y:d})}function gg(n,e){const t=mg(n).scrollLeft;return e?e.left+t:bl(Tr(n)).left+t}function IP(n,e){const t=n.getBoundingClientRect(),i=t.left+e.scrollLeft-gg(n,t),s=t.top+e.scrollTop;return{x:i,y:s}}function qK(n){let{elements:e,rect:t,offsetParent:i,strategy:s}=n;const a=s==="fixed",l=Tr(i),c=e?pg(e.floating):!1;if(i===l||c&&a)return t;let f={scrollLeft:0,scrollTop:0},d=_r(1);const h=_r(0),g=Er(i);if((g||!g&&!a)&&((Cu(i)!=="body"||Gd(l))&&(f=mg(i)),Er(i))){const x=bl(i);d=qc(i),h.x=x.x+i.clientLeft,h.y=x.y+i.clientTop}const v=l&&!g&&!a?IP(l,f):_r(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x+v.x,y:t.y*d.y-f.scrollTop*d.y+h.y+v.y}}function YK(n){return Array.from(n.getClientRects())}function $K(n){const e=Tr(n),t=mg(n),i=n.ownerDocument.body,s=Ji(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Ji(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let l=-t.scrollLeft+gg(n);const c=-t.scrollTop;return Ks(i).direction==="rtl"&&(l+=Ji(e.clientWidth,i.clientWidth)-s),{width:s,height:a,x:l,y:c}}const AC=25;function KK(n,e){const t=rs(n),i=Tr(n),s=t.visualViewport;let a=i.clientWidth,l=i.clientHeight,c=0,f=0;if(s){a=s.width,l=s.height;const h=q1();(!h||h&&e==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}const d=gg(i);if(d<=0){const h=i.ownerDocument,g=h.body,v=getComputedStyle(g),x=h.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,b=Math.abs(i.clientWidth-g.clientWidth-x);b<=AC&&(a-=b)}else d<=AC&&(a+=d);return{width:a,height:l,x:c,y:f}}const ZK=new Set(["absolute","fixed"]);function QK(n,e){const t=bl(n,!0,e==="fixed"),i=t.top+n.clientTop,s=t.left+n.clientLeft,a=Er(n)?qc(n):_r(1),l=n.clientWidth*a.x,c=n.clientHeight*a.y,f=s*a.x,d=i*a.y;return{width:l,height:c,x:f,y:d}}function CC(n,e,t){let i;if(e==="viewport")i=KK(n,t);else if(e==="document")i=$K(Tr(n));else if($s(e))i=QK(e,t);else{const s=UP(n);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return zm(i)}function BP(n,e){const t=uo(n);return t===e||!$s(t)||hu(t)?!1:Ks(t).position==="fixed"||BP(t,e)}function JK(n,e){const t=e.get(n);if(t)return t;let i=Cd(n,[],!1).filter(c=>$s(c)&&Cu(c)!=="body"),s=null;const a=Ks(n).position==="fixed";let l=a?uo(n):n;for(;$s(l)&&!hu(l);){const c=Ks(l),f=X1(l);!f&&c.position==="fixed"&&(s=null),(a?!f&&!s:!f&&c.position==="static"&&!!s&&ZK.has(s.position)||Gd(l)&&!f&&BP(n,l))?i=i.filter(h=>h!==l):s=c,l=uo(l)}return e.set(n,i),i}function eZ(n){let{element:e,boundary:t,rootBoundary:i,strategy:s}=n;const l=[...t==="clippingAncestors"?pg(e)?[]:JK(e,this._c):[].concat(t),i],c=l[0],f=l.reduce((d,h)=>{const g=CC(e,h,s);return d.top=Ji(g.top,d.top),d.right=co(g.right,d.right),d.bottom=co(g.bottom,d.bottom),d.left
vendor: 9,740 bytes, line 4298
4298=Ji(g.left,d.left),d},CC(e,c,s));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function tZ(n){const{width:e,height:t}=OP(n);return{width:e,height:t}}function nZ(n,e,t){const i=Er(e),s=Tr(e),a=t==="fixed",l=bl(n,!0,a,e);let c={scrollLeft:0,scrollTop:0};const f=_r(0);function d(){f.x=gg(s)}if(i||!i&&!a)if((Cu(e)!=="body"||Gd(s))&&(c=mg(e)),i){const x=bl(e,!0,a,e);f.x=x.x+e.clientLeft,f.y=x.y+e.clientTop}else s&&d();a&&!i&&s&&d();const h=s&&!i&&!a?IP(s,c):_r(0),g=l.left+c.scrollLeft-f.x-h.x,v=l.top+c.scrollTop-f.y-h.y;return{x:g,y:v,width:l.width,height:l.height}}function ny(n){return Ks(n).position==="static"}function RC(n,e){if(!Er(n)||Ks(n).position==="fixed")return null;if(e)return e(n);let t=n.offsetParent;return Tr(n)===t&&(t=t.ownerDocument.body),t}function FP(n,e){const t=rs(n);if(pg(n))return t;if(!Er(n)){let s=uo(n);for(;s&&!hu(s);){if($s(s)&&!ny(s))return s;s=uo(s)}return t}let i=RC(n,e);for(;i&&FK(i)&&ny(i);)i=RC(i,e);return i&&hu(i)&&ny(i)&&!X1(i)?t:i||HK(n)||t}const iZ=async function(n){const e=this.getOffsetParent||FP,t=this.getDimensions,i=await t(n.floating);return{reference:nZ(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function sZ(n){return Ks(n).direction==="rtl"}const rZ={convertOffsetParentRelativeRectToViewportRelativeRect:qK,getDocumentElement:Tr,getClippingRect:eZ,getOffsetParent:FP,getElementRects:iZ,getClientRects:YK,getDimensions:tZ,getScale:qc,isElement:$s,isRTL:sZ};function zP(n,e){return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height}function aZ(n,e){let t=null,i;const s=Tr(n);function a(){var c;clearTimeout(i),(c=t)==null||c.disconnect(),t=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),a();const d=n.getBoundingClientRect(),{left:h,top:g,width:v,height:x}=d;if(c||e(),!v||!x)return;const b=Vp(g),_=Vp(s.clientWidth-(h+v)),w=Vp(s.clientHeight-(g+x)),S=Vp(h),M={rootMargin:-b+"px "+-_+"px "+-w+"px "+-S+"px",threshold:Ji(0,co(1,f))||1};let C=!0;function N(U){const P=U[0].intersectionRatio;if(P!==f){if(!C)return l();P?l(!1,P):i=setTimeout(()=>{l(!1,1e-7)},1e3)}P===1&&!zP(d,n.getBoundingClientRect())&&l(),C=!1}try{t=new IntersectionObserver(N,{...M,root:s.ownerDocument})}catch{t=new IntersectionObserver(N,M)}t.observe(n)}return l(!0),a}function oZ(n,e,t,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,d=Y1(n),h=s||a?[...d?Cd(d):[],...Cd(e)]:[];h.forEach(S=>{s&&S.addEventListener("scroll",t,{passive:!0}),a&&S.addEventListener("resize",t)});const g=d&&c?aZ(d,t):null;let v=-1,x=null;l&&(x=new ResizeObserver(S=>{let[T]=S;T&&T.target===d&&x&&(x.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var M;(M=x)==null||M.observe(e)})),t()}),d&&!f&&x.observe(d),x.observe(e));let b,_=f?bl(n):null;f&&w();function w(){const S=bl(n);_&&!zP(_,S)&&t(),_=S,b=requestAnimationFrame(w)}return t(),()=>{var S;h.forEach(T=>{s&&T.removeEventListener("scroll",t),a&&T.removeEventListener("resize",t)}),g?.(),(S=x)==null||S.disconnect(),x=null,f&&cancelAnimationFrame(b)}}const lZ=PK,cZ=LK,uZ=RK,fZ=UK,dZ=NK,NC=CK,hZ=OK,pZ=(n,e,t)=>{const i=new Map,s={platform:rZ,...t},a={...s.platform,_c:i};return AK(n,e,{...s,platform:a})};var mZ=typeof document<"u",gZ=function(){},lm=mZ?A.useLayoutEffect:gZ;function jm(n,e){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,i,s;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!==e.length)return!1;for(i=t;i--!==0;)if(!jm(n[i],e[i]))return!1;return!0}if(s=Object.keys(n),t=s.length,t!==Object.keys(e).length)return!1;for(i=t;i--!==0;)if(!{}.hasOwnProperty.call(e,s[i]))return!1;for(i=t;i--!==0;){const a=s[i];if(!(a==="_owner"&&n.$$typeof)&&!jm(n[a],e[a]))return!1}return!0}return n!==n&&e!==e}function jP(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function DC(n,e){const t=jP(n);return Math.round(e*t)/t}function iy(n){const e=A.useRef(n);return lm(()=>{e.current=n}),e}function vZ(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=n,[h,g]=A.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[v,x]=A.useState(i);jm(v,i)||x(i);const[b,_]=A.useState(null),[w,S]=A.useState(null),T=A.useCallback(j=>{j!==U.current&&(U.current=j,_(j))},[]),M=A.useCallback(j=>{j!==P.current&&(P.current=j,S(j))},[]),C=a||b,N=l||w,U=A.useRef(null),P=A.useRef(null),O=A.useRef(h),R=f!=null,L=iy(f),z=iy(s),H=iy(d),Y=A.useCallback(()=>{if(!U.current||!P.current)return;const j={placement:e,strategy:t,middleware:v};z.current&&(j.platform=z.current),pZ(U.current,P.current,j).then(ae=>{const fe={...ae,isPositioned:H.current!==!1};K.current&&!jm(O.current,fe)&&(O.current=fe,vu.flushSync(()=>{g(fe)}))})},[v,e,t,z,H]);lm(()=>{d===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,g(j=>({...j,isPositioned:!1})))},[d]);const K=A.useRef(!1);lm(()=>(K.current=!0,()=>{K.current=!1}),[]),lm(()=>{if(C&&(U.current=C),N&&(P.current=N),C&&N){if(L.current)return L.current(C,N,Y);Y()}},[C,N,Y,L,R]);const q=A.useMemo(()=>({reference:U,floating:P,setReference:T,setFloating:M}),[T,M]),B=A.useMemo(()=>({reference:C,floating:N}),[C,N]),W=A.useMemo(()=>{const j={position:t,left:0,top:0};if(!B.floating)return j;const ae=DC(B.floating,h.x),fe=DC(B.floating,h.y);return c?{...j,transform:"translate("+ae+"px, "+fe+"px)",...jP(B.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:ae,top:fe}},[t,c,B.floating,h.x,h.y]);return A.useMemo(()=>({...h,update:Y,refs:q,elements:B,floatingStyles:W}),[h,Y,q,B,W])}const xZ=n=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:i,padding:s}=typeof n=="function"?n(t):n;return i&&e(i)?i.current!=null?NC({element:i.current,padding:s}).fn(t):{}:i?NC({element:i,padding:s}).fn(t):{}}}},yZ=(n,e)=>({...lZ(n),options:[n,e]}),_Z=(n,e)=>({...cZ(n),options:[n,e]}),bZ=(n,e)=>({...hZ(n),options:[n,e]}),SZ=(n,e)=>({...uZ(n),options:[n,e]}),wZ=(n,e)=>({...fZ(n),options:[n,e]}),EZ=(n,e)=>({...dZ(n),options:[n,e]}),MZ=(n,e)=>({...xZ(n),options:[n,e]});var TZ="Arrow",kP=A.forwardRef((n,e)=>{const{children:t,width:i=10,height:s=5,...a}=n;return m.jsx(Ht.svg,{...a,ref:e,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?t:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});kP.displayName=TZ;var AZ=kP;function CZ(n){const[e,t]=A.useState(void 0);return ci(()=>{if(n){t({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,c;if("borderBoxSize"in a){const f=a.borderBoxSize,d=Array.isArray(f)?f[0]:f;l=d.inlineSize,c=d.blockSize}else l=n.offsetWidth,c=n.offsetHeight;t({width:l,height:c})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else t(void 0)},[n]),e}var $1="Popper",[VP,HP]=Vd($1),[RZ,GP]=VP($1),WP=n=>{const{__scopePopper:e,children:t}=n,[i,s]=A.useState(null);return m.jsx(RZ,{scope:e,anchor:i,onAnchorChange:s,children:t})};WP.displayName=$1;var XP="PopperAnchor",qP=A.forwardRef((n,e)=>{const{__scopePopper:t,virtualRef:i,...s}=n,a=GP(XP,t),l=A.useRef(null),c=on(e,l),f=A.useRef(null);return A.useEffect(()=>{const d=f.current;f.current=i?.current||l.current,d!==f.current&&a.onAnchorChange(f.current)}),i?null:m.jsx(Ht.div,{...s,ref:c})});qP.displayName=XP;var K1="PopperContent",[NZ,DZ]=VP(K1),YP=A.forwardRef((n,e)=>{const{__scopePopper:t,side:i="bottom",sideOffset:s=0,align:a="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:h=0,sticky:g="partial",hideWhenDetached:v=!1,updatePositionStrategy:x="optimized",onPlaced:b,..._}=n,w=GP(K1,t),[S,T]=A.useState(null),M=on(e,Z=>T(Z)),[C,N]=A.useState(null),U=CZ(C),P=U?.width??0,O=U?.height??0,R=i+(a!=="center"?"-"+a:""),L=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},z=Array.isArray(d)?d:[d],H=z.length>0,Y={padding:L,boundary:z.filter(LZ),altBoundary:H},{refs:K,floatingStyles:q,placement:B,isPositioned:W,middlewareData:j}=vZ({strategy:"fixed",placement:R,whileElementsMounted:(...Z)=>oZ(...Z,{animationFrame:x==="always"}),elements:{reference:w.anchor},middleware:[yZ({mainAxis:s+O,alignmentAxis:l}),f&&_Z({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?bZ():void 0,...Y}),f&&SZ({...Y}),wZ({...Y,apply:({elements:Z,rects:xe,availableWidth:Me,availableHeight:Ae})=>{const{width:Be,height:Xe}=xe.reference,X=Z.floating.style;X.setProperty("--radix-popper-available-width",`${Me}px`),X.setProperty("--radix-popper-available-height",`${Ae}px`),X.setProperty("--radix-popper-anchor-width",`${Be}px`),X.setProperty("--radix-popper-anchor-height",`${Xe}px`)}}),C&&MZ({element:C,padding:c}),OZ({arrowWidth:P,arrowHeight:O}),v&&EZ({strategy:"referenceHidden",...Y})]}),[ae,fe]=ZP(B),G=Pi(b);ci(()=>{W&&G?.()},[W,G]);const ee=j.arrow?.x,me=j.arrow?.y,ve=j.arrow?.centerOffset!==0,[ge,ie]=A.useState();return ci(()=>{S&&ie(window.getComputedStyle(S).zIndex)},[S]),m.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:W?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:m.jsx(NZ,{scope:t,placedSide:ae,onArrowChange:N,arrowX:ee,arrowY:me,shouldHideArrow:ve,children:m.jsx(Ht.div,{"data-side":ae,"data-align":fe,..._,ref:M,style:{..._.style,animation:W?void 0:"none"}})})})});
vendor: 5,326 bytes, line 4298
4298YP.displayName=K1;var $P="PopperArrow",PZ={top:"bottom",right:"left",bottom:"top",left:"right"},KP=A.forwardRef(function(e,t){const{__scopePopper:i,...s}=e,a=DZ($P,i),l=PZ[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(AZ,{...s,ref:t,style:{...s.style,display:"block"}})})});KP.displayName=$P;function LZ(n){return n!==null}var OZ=n=>({name:"transformOrigin",options:n,fn(e){const{placement:t,rects:i,middlewareData:s}=e,l=s.arrow?.centerOffset!==0,c=l?0:n.arrowWidth,f=l?0:n.arrowHeight,[d,h]=ZP(t),g={start:"0%",center:"50%",end:"100%"}[h],v=(s.arrow?.x??0)+c/2,x=(s.arrow?.y??0)+f/2;let b="",_="";return d==="bottom"?(b=l?g:`${v}px`,_=`${-f}px`):d==="top"?(b=l?g:`${v}px`,_=`${i.floating.height+f}px`):d==="right"?(b=`${-f}px`,_=l?g:`${x}px`):d==="left"&&(b=`${i.floating.width+f}px`,_=l?g:`${x}px`),{data:{x:b,y:_}}}});function ZP(n){const[e,t="center"]=n.split("-");return[e,t]}var UZ=WP,IZ=qP,BZ=YP,FZ=KP;function zZ(n){const e=jZ(n),t=A.forwardRef((i,s)=>{const{children:a,...l}=i,c=A.Children.toArray(a),f=c.find(VZ);if(f){const d=f.props.children,h=c.map(g=>g===f?A.Children.count(d)>1?A.Children.only(null):A.isValidElement(d)?d.props.children:null:g);return m.jsx(e,{...l,ref:s,children:A.isValidElement(d)?A.cloneElement(d,void 0,h):null})}return m.jsx(e,{...l,ref:s,children:a})});return t.displayName=`${n}.Slot`,t}function jZ(n){const e=A.forwardRef((t,i)=>{const{children:s,...a}=t;if(A.isValidElement(s)){const l=GZ(s),c=HZ(a,s.props);return s.type!==A.Fragment&&(c.ref=i?Tu(i,l):l),A.cloneElement(s,c)}return A.Children.count(s)>1?A.Children.only(null):null});return e.displayName=`${n}.SlotClone`,e}var kZ=Symbol("radix.slottable");function VZ(n){return A.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===kZ}function HZ(n,e){const t={...e};for(const i in e){const s=n[i],a=e[i];/^on[A-Z]/.test(i)?s&&a?t[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(t[i]=s):i==="style"?t[i]={...s,...a}:i==="className"&&(t[i]=[s,a].filter(Boolean).join(" "))}return{...n,...t}}function GZ(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}function WZ(n){const e=A.useRef({value:n,previous:n});return A.useMemo(()=>(e.current.value!==n&&(e.current.previous=e.current.value,e.current.value=n),e.current.previous),[n])}var QP=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"}),XZ="VisuallyHidden",qZ=A.forwardRef((n,e)=>m.jsx(Ht.span,{...n,ref:e,style:{...QP,...n.style}}));qZ.displayName=XZ;var YZ=[" ","Enter","ArrowUp","ArrowDown"],$Z=[" ","Enter"],Sl="Select",[vg,xg,KZ]=mK(Sl),[Ru]=Vd(Sl,[KZ,HP]),yg=HP(),[ZZ,xo]=Ru(Sl),[QZ,JZ]=Ru(Sl),JP=n=>{const{__scopeSelect:e,children:t,open:i,defaultOpen:s,onOpenChange:a,value:l,defaultValue:c,onValueChange:f,dir:d,name:h,autoComplete:g,disabled:v,required:x,form:b}=n,_=yg(e),[w,S]=A.useState(null),[T,M]=A.useState(null),[C,N]=A.useState(!1),U=vD(d),[P,O]=N_({prop:i,defaultProp:s??!1,onChange:a,caller:Sl}),[R,L]=N_({prop:l,defaultProp:c,onChange:f,caller:Sl}),z=A.useRef(null),H=w?b||!!w.closest("form"):!0,[Y,K]=A.useState(new Set),q=Array.from(Y).map(B=>B.props.value).join(";");return m.jsx(UZ,{..._,children:m.jsxs(ZZ,{required:x,scope:e,trigger:w,onTriggerChange:S,valueNode:T,onValueNodeChange:M,valueNodeHasChildren:C,onValueNodeHasChildrenChange:N,contentId:Vc(),value:R,onValueChange:L,open:P,onOpenChange:O,dir:U,triggerPointerDownPosRef:z,disabled:v,children:[m.jsx(vg.Provider,{scope:e,children:m.jsx(QZ,{scope:n.__scopeSelect,onNativeOptionAdd:A.useCallback(B=>{K(W=>new Set(W).add(B))},[]),onNativeOptionRemove:A.useCallback(B=>{K(W=>{const j=new Set(W);return j.delete(B),j})},[]),children:t})}),H?m.jsxs(SL,{"aria-hidden":!0,required:x,tabIndex:-1,name:h,autoComplete:g,value:R,onChange:B=>L(B.target.value),disabled:v,form:b,children:[R===void 0?m.jsx("option",{value:""}):null,Array.from(Y)]},q):null]})})};JP.displayName=Sl;var eL="SelectTrigger",tL=A.forwardRef((n,e)=>{const{__scopeSelect:t,disabled:i=!1,...s}=n,a=yg(t),l=xo(eL,t),c=l.disabled||i,f=on(e,l.onTriggerChange),d=xg(t),h=A.useRef("touch"),[g,v,x]=EL(_=>{const w=d().filter(M=>!M.disabled),S=w.find(M=>M.value===l.value),T=ML(w,_,S);T!==void 0&&l.onValueChange(T.value)}),b=_=>{c||(l.onOpenChange(!0),x()),_&&(l.triggerPointerDownPosRef.current={x:Math.round(_.pageX),y:Math.round(_.pageY)})};return m.jsx(IZ,{asChild:!0,...a,children:m.jsx(Ht.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":wL(l.value)?"":void 0,...s,ref:f,onClick:kt(s.onClick,_=>
vendor: 15,420 bytes, line 4298
4298{_.currentTarget.focus(),h.current!=="mouse"&&b(_)}),onPointerDown:kt(s.onPointerDown,_=>{h.current=_.pointerType;const w=_.target;w.hasPointerCapture(_.pointerId)&&w.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&_.pointerType==="mouse"&&(b(_),_.preventDefault())}),onKeyDown:kt(s.onKeyDown,_=>{const w=g.current!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&v(_.key),!(w&&_.key===" ")&&YZ.includes(_.key)&&(b(),_.preventDefault())})})})});tL.displayName=eL;var nL="SelectValue",iL=A.forwardRef((n,e)=>{const{__scopeSelect:t,className:i,style:s,children:a,placeholder:l="",...c}=n,f=xo(nL,t),{onValueNodeHasChildrenChange:d}=f,h=a!==void 0,g=on(e,f.onValueNodeChange);return ci(()=>{d(h)},[d,h]),m.jsx(Ht.span,{...c,ref:g,style:{pointerEvents:"none"},children:wL(f.value)?m.jsx(m.Fragment,{children:l}):a})});iL.displayName=nL;var eQ="SelectIcon",sL=A.forwardRef((n,e)=>{const{__scopeSelect:t,children:i,...s}=n;return m.jsx(Ht.span,{"aria-hidden":!0,...s,ref:e,children:i||"â¼"})});sL.displayName=eQ;var tQ="SelectPortal",rL=n=>m.jsx(v1,{asChild:!0,...n});rL.displayName=tQ;var wl="SelectContent",aL=A.forwardRef((n,e)=>{const t=xo(wl,n.__scopeSelect),[i,s]=A.useState();if(ci(()=>{s(new DocumentFragment)},[]),!t.open){const a=i;return a?vu.createPortal(m.jsx(oL,{scope:n.__scopeSelect,children:m.jsx(vg.Slot,{scope:n.__scopeSelect,children:m.jsx("div",{children:n.children})})}),a):null}return m.jsx(lL,{...n,ref:e})});aL.displayName=wl;var ks=10,[oL,yo]=Ru(wl),nQ="SelectContentImpl",iQ=zZ("SelectContent.RemoveScroll"),lL=A.forwardRef((n,e)=>{const{__scopeSelect:t,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:a,onPointerDownOutside:l,side:c,sideOffset:f,align:d,alignOffset:h,arrowPadding:g,collisionBoundary:v,collisionPadding:x,sticky:b,hideWhenDetached:_,avoidCollisions:w,...S}=n,T=xo(wl,t),[M,C]=A.useState(null),[N,U]=A.useState(null),P=on(e,Z=>C(Z)),[O,R]=A.useState(null),[L,z]=A.useState(null),H=xg(t),[Y,K]=A.useState(!1),q=A.useRef(!1);A.useEffect(()=>{if(M)return eD(M)},[M]),W3();const B=A.useCallback(Z=>{const[xe,...Me]=H().map(Xe=>Xe.ref.current),[Ae]=Me.slice(-1),Be=document.activeElement;for(const Xe of Z)if(Xe===Be||(Xe?.scrollIntoView({block:"nearest"}),Xe===xe&&N&&(N.scrollTop=0),Xe===Ae&&N&&(N.scrollTop=N.scrollHeight),Xe?.focus(),document.activeElement!==Be))return},[H,N]),W=A.useCallback(()=>B([O,M]),[B,O,M]);A.useEffect(()=>{Y&&W()},[Y,W]);const{onOpenChange:j,triggerPointerDownPosRef:ae}=T;A.useEffect(()=>{if(M){let Z={x:0,y:0};const xe=Ae=>{Z={x:Math.abs(Math.round(Ae.pageX)-(ae.current?.x??0)),y:Math.abs(Math.round(Ae.pageY)-(ae.current?.y??0))}},Me=Ae=>{Z.x<=10&&Z.y<=10?Ae.preventDefault():M.contains(Ae.target)||j(!1),document.removeEventListener("pointermove",xe),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",Me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",Me,{capture:!0})}}},[M,j,ae]),A.useEffect(()=>{const Z=()=>j(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[j]);const[fe,G]=EL(Z=>{const xe=H().filter(Be=>!Be.disabled),Me=xe.find(Be=>Be.ref.current===document.activeElement),Ae=ML(xe,Z,Me);Ae&&setTimeout(()=>Ae.ref.current.focus())}),ee=A.useCallback((Z,xe,Me)=>{const Ae=!q.current&&!Me;(T.value!==void 0&&T.value===xe||Ae)&&(R(Z),Ae&&(q.current=!0))},[T.value]),me=A.useCallback(()=>M?.focus(),[M]),ve=A.useCallback((Z,xe,Me)=>{const Ae=!q.current&&!Me;(T.value!==void 0&&T.value===xe||Ae)&&z(Z)},[T.value]),ge=i==="popper"?Q_:cL,ie=ge===Q_?{side:c,sideOffset:f,align:d,alignOffset:h,arrowPadding:g,collisionBoundary:v,collisionPadding:x,sticky:b,hideWhenDetached:_,avoidCollisions:w}:{};return m.jsx(oL,{scope:t,content:M,viewport:N,onViewportChange:U,itemRefCallback:ee,selectedItem:O,onItemLeave:me,itemTextRefCallback:ve,focusSelectedItem:W,selectedItemText:L,position:i,isPositioned:Y,searchRef:fe,children:m.jsx(x1,{as:iQ,allowPinchZoom:!0,children:m.jsx(g1,{asChild:!0,trapped:T.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:kt(s,Z=>{T.trigger?.focus({preventScroll:!0}),Z.preventDefault()}),children:m.jsx(m1,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:m.jsx(ge,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:Z=>Z.preventDefault(),...S,...ie,onPlaced:()=>K(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:kt(S.onKeyDown,Z=>{const xe=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!xe&&Z.key.length===1&&G(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let Ae=H().filter(Be=>!Be.disabled).map(Be=>Be.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(Ae=Ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const Be=Z.target,Xe=Ae.indexOf(Be);Ae=Ae.slice(Xe+1)}setTimeout(()=>B(Ae)),Z.preventDefault()}})})})})})})});lL.displayName=nQ;var sQ="SelectItemAlignedPosition",cL=A.forwardRef((n,e)=>{const{__scopeSelect:t,onPlaced:i,...s}=n,a=xo(wl,t),l=yo(wl,t),[c,f]=A.useState(null),[d,h]=A.useState(null),g=on(e,P=>h(P)),v=xg(t),x=A.useRef(!1),b=A.useRef(!0),{viewport:_,selectedItem:w,selectedItemText:S,focusSelectedItem:T}=l,M=A.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&d&&_&&w&&S){const P=a.trigger.getBoundingClientRect(),O=d.getBoundingClientRect(),R=a.valueNode.getBoundingClientRect(),L=S.getBoundingClientRect();if(a.dir!=="rtl"){const Be=L.left-O.left,Xe=R.left-Be,X=P.left-Xe,He=P.width+X,qe=Math.max(He,O.width),Le=window.innerWidth-ks,Pe=L_(Xe,[ks,Math.max(ks,Le-qe)]);c.style.minWidth=He+"px",c.style.left=Pe+"px"}else{const Be=O.right-L.right,Xe=window.innerWidth-R.right-Be,X=window.innerWidth-P.right-Xe,He=P.width+X,qe=Math.max(He,O.width),Le=window.innerWidth-ks,Pe=L_(Xe,[ks,Math.max(ks,Le-qe)]);c.style.minWidth=He+"px",c.style.right=Pe+"px"}const z=v(),H=window.innerHeight-ks*2,Y=_.scrollHeight,K=window.getComputedStyle(d),q=parseInt(K.borderTopWidth,10),B=parseInt(K.paddingTop,10),W=parseInt(K.borderBottomWidth,10),j=parseInt(K.paddingBottom,10),ae=q+B+Y+j+W,fe=Math.min(w.offsetHeight*5,ae),G=window.getComputedStyle(_),ee=parseInt(G.paddingTop,10),me=parseInt(G.paddingBottom,10),ve=P.top+P.height/2-ks,ge=H-ve,ie=w.offsetHeight/2,Z=w.offsetTop+ie,xe=q+B+Z,Me=ae-xe;if(xe<=ve){const Be=z.length>0&&w===z[z.length-1].ref.current;c.style.bottom="0px";const Xe=d.clientHeight-_.offsetTop-_.offsetHeight,X=Math.max(ge,ie+(Be?me:0)+Xe+W),He=xe+X;c.style.height=He+"px"}else{const Be=z.length>0&&w===z[0].ref.current;c.style.top="0px";const X=Math.max(ve,q+_.offsetTop+(Be?ee:0)+ie)+Me;c.style.height=X+"px",_.scrollTop=xe-ve+_.offsetTop}c.style.margin=`${ks}px 0`,c.style.minHeight=fe+"px",c.style.maxHeight=H+"px",i?.(),requestAnimationFrame(()=>x.current=!0)}},[v,a.trigger,a.valueNode,c,d,_,w,S,a.dir,i]);ci(()=>M(),[M]);const[C,N]=A.useState();ci(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);const U=A.useCallback(P=>{P&&b.current===!0&&(M(),T?.(),b.current=!1)},[M,T]);return m.jsx(aQ,{scope:t,contentWrapper:c,shouldExpandOnScrollRef:x,onScrollButtonChange:U,children:m.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:m.jsx(Ht.div,{...s,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});cL.displayName=sQ;var rQ="SelectPopperPosition",Q_=A.forwardRef((n,e)=>{const{__scopeSelect:t,align:i="start",collisionPadding:s=ks,...a}=n,l=yg(t);return m.jsx(BZ,{...l,...a,ref:e,align:i,collisionPadding:s,style:{boxSizing:"border-box",...a.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)"}})});Q_.displayName=rQ;var[aQ,Z1]=Ru(wl,{}),J_="SelectViewport",uL=A.forwardRef((n,e)=>{const{__scopeSelect:t,nonce:i,...s}=n,a=yo(J_,t),l=Z1(J_,t),c=on(e,a.onViewportChange),f=A.useRef(0);return m.jsxs(m.Fragment,{children:[m.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:i}),m.jsx(vg.Slot,{scope:t,children:m.jsx(Ht.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:kt(s.onScroll,d=>{const h=d.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:v}=l;if(v?.current&&g){const x=Math.abs(f.current-h.scrollTop);if(x>0){const b=window.innerHeight-ks*2,_=parseFloat(g.style.minHeight),w=parseFloat(g.style.height),S=Math.max(_,w);if(S<b){const T=S+x,M=Math.min(b,T),C=T-M;g.style.height=M+"px",g.style.bottom==="0px"&&(h.scrollTop=C>0?C:0,g.style.justifyContent="flex-end")}}}f.current=h.scrollTop})})})]})});uL.displayName=J_;var fL="SelectGroup",[oQ,lQ]=Ru(fL),dL=A.forwardRef((n,e)=>{const{__scopeSelect:t,...i}=n,s=Vc();return m.jsx(oQ,{scope:t,id:s,children:m.jsx(Ht.div,{role:"group","aria-labelledby":s,...i,ref:e})})});dL.displayName=fL;var hL="SelectLabel",cQ=A.forwardRef((n,e)=>{const{__scopeSelect:t,...i}=n,s=lQ(hL,t);return m.jsx(Ht.div,{id:s.id,...i,ref:e})});cQ.displayName=hL;var km="SelectItem",[uQ,pL]=Ru(km),mL=A.forwardRef((n,e)=>{const{__scopeSelect:t,value:i,disabled:s=!1,textValue:a,...l}=n,c=xo(km,t),f=yo(km,t),d=c.value===i,[h,g]=A.useState(a??""),[v,x]=A.useState(!1),b=on(e,T=>f.itemRefCallback?.(T,i,s)),_=Vc(),w=A.useRef("touch"),S=()=>{s||(c.onValueChange(i),c.onOpenChange(!1))};if(i==="")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 m.jsx(uQ,{scope:t,value:i,disabled:s,textId:_,isSelected:d,onItemTextChange:A.useCallback(T=>{g(M=>M||(T?.textContent??"").trim())},[]),children:m.jsx(vg.ItemSlot,{scope:t,value:i,disabled:s,textValue:h,children:m.jsx(Ht.div,{role:"option","aria-labelledby":_,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...l,ref:b,onFocus:kt(l.onFocus,()=>x(!0)),onBlur:kt(l.onBlur,()=>x(!1)),onClick:kt(l.onClick,()=>{w.current!=="mouse"&&S()}),onPointerUp:kt(l.onPointerUp,()=>{w.current==="mouse"&&S()}),onPointerDown:kt(l.onPointerDown,T=>{w.current=T.pointerType}),onPointerMove:kt(l.onPointerMove,T=>{w.current=T.pointerType,s?f.onItemLeave?.():w.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:kt(l.onPointerLeave,T=>{T.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:kt(l.onKeyDown,T=>{f.searchRef?.current!==""&&T.key===" "||($Z.includes(T.key)&&S(),T.key===" "&&T.preventDefault())})})})})});mL.displayName=km;var Yf="SelectItemText",gL=A.forwardRef((n,e)=>{const{__scopeSelect:t,className:i,style:s,...a}=n,l=xo(Yf,t),c=yo(Yf,t),f=pL(Yf,t),d=JZ(Yf,t),[h,g]=A.useState(null),v=on(e,S=>g(S),f.onItemTextChange,S=>c.itemTextRefCallback?.(S,f.value,f.disabled)),x=h?.textContent,b=A.useMemo(()=>m.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:_,onNativeOptionRemove:w}=d;return ci(()=>(_(b),()=>w(b)),[_,w,b]),m.jsxs(m.Fragment,{children:[m.jsx(Ht.span,{id:f.textId,...a,ref:v}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?vu.createPortal(a.children,l.valueNode):null]})});gL.displayName=Yf;var vL="SelectItemIndicator",xL=A.forwardRef((n,e)=>{const{__scopeSelect:t,...i}=n;return pL(vL,t).isSelected?m.jsx(Ht.span,{"aria-hidden":!0,...i,ref:e}):null});xL.displayName=vL;var eb="SelectScrollUpButton",yL=A.forwardRef((n,e)=>{const t=yo(eb,n.__scopeSelect),i=Z1(eb,n.__scopeSelect),[s,a]=A.useState(!1),l=on(e,i.onScrollButtonChange);return ci(()=>{if(t.viewport&&t.isPositioned){let c=function(){const d=f.scrollTop>0;a(d)};const f=t.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),s?m.jsx(bL,{...n,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=t;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});yL.displayName=eb;var tb="SelectScrollDownButton",_L=A.forwardRef((n,e)=>{const t=yo(tb,n.__scopeSelect),i=Z1(tb,n.__scopeSelect),[s,a]=A.useState(!1),l=on(e,i.onScrollButtonChange);return ci(()=>{if(t.viewport&&t.isPositioned){let c=function(){const d=f.scrollHeight-f.clientHeight,h=Math.ceil(f.scrollTop)<d;a(h)};const f=t.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),s?m.jsx(bL,{...n,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=t;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});_L.displayName=tb;var bL=A.forwardRef((n,e)=>{const{__scopeSelect:t,onAutoScroll:i,...s}=n,a=yo("SelectScrollButton",t),l=A.useRef(null),c=xg(t),f=A.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return A.useEffect(()=>()=>f(),[f]),ci(()=>{c().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),m.jsx(Ht.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:kt(s.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(i,50))}),onPointerMove:kt(s.onPointerMove,()=>{a.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(i,50))}),onPointerLeave:kt(s.onPointerLeave,()=>{f()})})}),fQ="SelectSeparator",dQ=A.forwardRef((n,e)=>{const{__scopeSelect:t,...i}=n;return m.jsx(Ht.div,{"aria-hidden":!0,...i,ref:e})});dQ.displayName=fQ;var nb="SelectArrow",hQ=A.forwardRef((n,e)=>{const{__scopeSelect:t,...i}=n,s=yg(t),a=xo(nb,t),l=yo(nb,t);return a.open&&l.position==="popper"?m.jsx(FZ,{...s,...i,ref:e}):null});hQ.displayName=nb;var pQ="SelectBubbleInput",SL=A.forwardRef(({__scopeSelect:n,value:e,...t},i)=>{const s=A.useRef(null),a=on(i,s),l=WZ(e);return A.useEffect(()=>{const c=s.current;if(!c)return;const f=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==e&&h){const g=new Event("change",{bubbles:!0});h.call(c,e),c.dispatchEvent(g)}},[l,e]),m.jsx(Ht.select,{...t,style:{...QP,...t.style},ref:a,defaultValue:e})});SL.displayName=pQ;function wL(n){return n===""||n===void 0}function EL(n){const e=Pi(n),t=A.useRef(""),i=A.useRef(0),s=A.useCallback(l=>{const c=t.current+l;e(c),(function f(d){t.current=d,window.clearTimeout(i.current),d!==""&&(i.current=window.setTimeout(()=>f(""),1e3))})(c)},[e]),a=A.useCallback(()=>{t.current="",window.clearTimeout(i.current)},[]);return A.useEffect(()=>()=>window.clearTimeout(i.current),[]),[t,s,a]}function ML(n,e,t){const s=e.length>1&&Array.from(e).every(d=>d===e[0])?e[0]:e,a=t?n.indexOf(t):-1;let l=mQ(n,Math.max(a,0));s.length===1&&(l=l.filter(d=>d!==t));const f=l.find(d=>d.textValue.toLowerCase().startsWith(s.toLowerCase()));return f!==t?f:void 0}function mQ(n,e){return n.map((t,i)=>n[(e+i)%n.length])}
4298var gQ=JP,vQ=tL,xQ=iL,yQ=sL,_Q=rL,bQ=aL,SQ=uL,wQ=dL,EQ=mL,MQ=gL,TQ=xL,AQ=yL,CQ=_L;function RQ({...n}){return m.jsx(gQ,{"data-slot":"select",...n})}function NQ({...n}){return m.jsx(wQ,{"data-slot":"select-group",...n})}function DQ({...n}){return m.jsx(xQ,{"data-slot":"select-value",...n})}function PQ({className:n,size:e="default",children:t,...i}){return m.jsxs(vQ,{"data-slot":"select-trigger","data-size":e,className:un("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...i,children:[t,m.jsx(yQ,{asChild:!0,children:m.jsx(XC,{className:"size-4 opacity-50"})})]})}function LQ({className:n,children:e,position:t="item-aligned",align:i="center",...s}){return m.jsx(_Q,{children:m.jsxs(bQ,{"data-slot":"select-content",className:un("bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",t==="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",n),position:t,align:i,...s,children:[m.jsx(OQ,{}),m.jsx(SQ,{className:un("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:e}),m.jsx(UQ,{})]})})}function zf({className:n,children:e,...t}){return m.jsxs(EQ,{"data-slot":"select-item",className:un("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),...t,children:[m.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:m.jsx(TQ,{children:m.jsx(wU,{className:"size-4"})})}),m.jsx(MQ,{children:e})]})}function OQ({className:n,...e}){return m.jsx(AQ,{"data-slot":"select-scroll-up-button",className:un("flex cursor-default items-center justify-center py-1",n),...e,children:m.jsx(CU,{className:"size-4"})})}function UQ({className:n,...e}){return m.jsx(CQ,{"data-slot":"select-scroll-down-button",className:un("flex cursor-default items-center justify-center py-1",n),...e,children:m.jsx(XC,{className:"size-4"})})}function IQ(){return A.useState(0),m.jsxs("main",{className:"w-full",children:[m.jsx(LX,{}),m.jsx("div",{className:"flex items-center w-[95vw] sm:w-[95vw] md:w-[80vw] mx-auto mb-20",children:m.jsx(qY,{})}),m.jsx("div",{className:"w-full flex justify-center items-center py-20",children:m.jsx("div",{className:"w-[90vw] sm:w-[90vw] md:w-[80vw] xl:w-[60vw] border border-purple-500/20 rounded-xl overflow-hidden",children:m.jsxs("div",{className:` 4299 grid 4300 grid-cols-1 4301 grid-rows-2 4302 md:grid-cols-2 4303 md:grid-rows-1 4304 md:h-[500px] 4305 pt-10 4306 md:pt-0 4307`,children:[" ",m.jsxs("div",{className:"flex flex-col justify-center items-start px-6 md:px-20",children:[m.jsx("img",{src:"/sl_white.png",className:"w-30 opacity-70 mb-7"}),m.jsx("h2",{className:"text-3xl font-semibold [letter-spacing:0.01em]",children:"As nossas competências"}),m.jsx("p",{className:"mt-1 text-lg text-normal text-muted-foreground",children:"Explore as áreas onde a Streamline se destaca."}),m.jsxs(RQ,{onValueChange:n=>{window.location.href=`/areas/${n}`},children:[m.jsx(PQ,{className:` 4308 !mt-7 4309 !h-9 4310 !w-fit 4311 !min-w-[130px] 4312 !px-6 4313 !rounded-xl 4314 !bg-white 4315 !text-black 4316 !font-medium
4317 !shadow-sm 4318 !border !border-black/10 4319 4320 hover:!bg-gray-100 4321 focus:!outline-none 4322 focus:!ring-2 4323 focus:!ring-purple-500/60 4324 focus:!ring-offset-2 4325 focus:!ring-offset-white 4326 4327 !transition-all 4328 !duration-200 4329 `,children:m.jsx(DQ,{placeholder:"Ãreas",className:"text-black"})}),m.jsx(LQ,{className:` 4330 !rounded-xl 4331 !border !border-white/10 4332 !bg-slate-900 4333 !text-white 4334 !shadow-xl 4335 !mt-2 4336 !overflow-hidden 4337 `,children:m.jsxs(NQ,{className:"!py-1",children:[m.jsx(zf,{className:` 4338 !cursor-pointer 4339 !px-4 4340 !py-2 4341 !text-sm 4342 4343 focus:!bg-purple-500/20 4344 focus:!text-white 4345 hover:!bg-purple-500/10 4346 4347 !transition-colors 4348 `,value:"software",children:"Desenvolvimento de software à medida"}),m.jsx(zf,{value:"sites",className:` 4349 !cursor-pointer 4350 !px-4 4351 !py-2 4352 !text-sm 4353 4354 focus:!bg-purple-500/20 4355 focus:!text-white 4356 hover:!bg-purple-500/10 4357 4358 !transition-colors 4359 `,children:"Sites"}),m.jsx(zf,{value:"formacao",className:` 4360 !cursor-pointer 4361 !px-4 4362 !py-2 4363 !text-sm 4364 4365 focus:!bg-purple-500/20 4366 focus:!text-white 4367 hover:!bg-purple-500/10 4368 4369 !transition-colors 4370 `,children:"Formação"}),m.jsx(zf,{value:"administracao",className:` 4371 !cursor-pointer 4372 !px-4 4373 !py-2 4374 !text-sm 4375 4376 focus:!bg-purple-500/20 4377 focus:!text-white 4378 hover:!bg-purple-500/10 4379 4380 !transition-colors 4381 `,children:"Administração de sistemas"}),m.jsx(zf,{value:"redes",className:` 4382 !cursor-pointer 4383 !px-4 4384 !py-2 4385 !text-sm 4386 4387 focus:!bg-purple-500/20 4388 focus:!text-white 4389 hover:!bg-purple-500/10 4390 4391 !transition-colors 4392 `,children:"Redes"})]})})]})]}),m.jsx("div",{className:"relative overflow-hidden",children:m.jsxs(cK,{cardDistance:60,verticalDistance:70,delay:5e3,pauseOnHover:!1,children:[m.jsxs(qf,{children:[m.jsxs("div",{className:"flex p-3",children:[m.jsx(LU,{}),m.jsx("h3",{className:"pl-2",children:"Base de dados"})]}),m.jsx("div",{children:m.jsx("img",{src:"/homepage_image.jpg"})})]}),m.jsxs(qf,{children:[m.jsxs("div",{className:"flex p-3",children:[m.jsx(mU,{}),m.jsx("h3",{className:"pl-2",children:"Web development"})]}),m.jsx("div",{children:m.jsx("img",{src:"/streamline_web.png"})})]}),m.jsxs(qf,{children:[m.jsxs("div",{className:"flex p-3",children:[m.jsx(BU,{}),m.jsx("h3",{className:"pl-2",children:"Cybersecurity"})]}),m.jsx("div",{children:m.jsx("img",{src:"/cyber.jpg"})})]}),m.jsxs(qf,{children:[m.jsxs("div",{className:"flex p-3",children:[m.jsx(y5,{}),m.jsx("h3",{className:"pl-2",children:"Apps Mobile e Web"})]}),m.jsx("div",{children:m.jsx("img",{src:"/Dashboard.png"})})]})]})})]})})})]})}var lr,ib,ld,TL,Cc,Fc,sb,AL,CL=function(){return lr||typeof window<"u"&&(lr=window.gsap)},rb={},BQ=function(e){return Math.round(e*1e4)/1e4},ab=function(e){return AL(e).id},$f=function(e){return rb[ab(typeof e=="string"?ld(e)[0]:e)]},PC=function(e){var t=Cc,i;if(e-sb>=.05)for(sb=e;t;)i=t.g(t.t,t.p),(i!==t.v1||e-t.t1>.2)&&(t.v2=t.v1,t.v1=i,t.t2=t.t1,t.t1=e),t=t._next},FQ={deg:360,rad:Math.PI*2},sy=function(){lr=CL(),lr&&(ld=lr.utils.toArray,TL=lr.utils.getUnit,AL=lr.core.getCache,Fc=lr.ticker,ib=1)},zQ=function(e,t,i,s){this.t=e,this.p=t,this.g=e._gsap.get,this.rCap=FQ[i||TL(this.g(e,t))],this.v1=this.v2=0,this.t1=this.t2=Fc.time,s&&(this._next=s,s._prev=this)},Wd=(function(){function n(t,i){ib||sy(),this.target=ld(t)[0],rb[ab(this.target)]=this,this._props={},i&&this.add(i)}n.register=function(i){lr=i,sy()};var e=n.prototype;return e.get=function(i,s){var a=this._props[i]||console.warn("Not tracking "+i+" velocity."),l,c,f;return l=parseFloat(s?a.v1:a.g(a.t,a.p)),c=l-parseFloat(a.v2),f=a.rCap,f&&(c=c%f,c!==c%(f/2)&&(c=c<0?c+f:c-f)),BQ(c/((s?a.t1:Fc.time)-a.t2))},e.getAll=function(){var i={},s=this._props,a;for(a in s)i[a]=this.get(a);return i},e.isTracking=function(i){return i in this._props},e.add=function(i,s){i in this._props||(Cc||(Fc.add(PC),sb=Fc.time),Cc=this._props[i]=new zQ(this.target,i,s,Cc))},e.remove=function(i){var s=this._props[i],a,l;s&&(a=s._prev,l=s._next,a&&(a._next=l),l?l._prev=a:Cc===s&&(Fc.remove(PC),Cc=0),delete this._props[i])},e.kill=function(i){for(var s in this._props)this.remove(s);i||delete rb[ab(this.target)]},n.track=function(i,s,a){ib||sy();for(var l=[],c=ld(i),f=s.split(","),d=(a||"").split(","),h=c.length,g,v;h--;){for(g=$f(c[h])||new n(c[h]),v=f.length;v--;)g.add(f[v],d[v]||d[0]);l.push(g)}return l},n.untrack=function(i,s){var a=(s||"").split(",");
4392ld(i).forEach(function(l){var c=$f(l);c&&(a.length?a.forEach(function(f){return c.remove(f)}):c.kill(1))})},n.isTracking=function(i,s){var a=$f(i);return a&&a.isTracking(s)},n.getVelocity=function(i,s){var a=$f(i);return!a||!a.isTracking(s)?console.warn("Not tracking velocity of "+s):a.get(s)},n})();Wd.getByTarget=$f;CL()&&lr.registerPlugin(Wd);var Hn,RL,LC,NL,ob,cd,DL,PL,LL,Q1,OL,ud,lb,UL,Vm=Wd.getByTarget,IL=function(){return Hn||typeof window<"u"&&(Hn=window.gsap)&&Hn.registerPlugin&&Hn},jQ=function(e){return typeof e=="string"},Rd=function(e){return typeof e=="number"},io=function(e){return typeof e=="object"},cb=function(e){return typeof e=="function"},kQ=1,BL=Array.isArray,VQ=function(e){return e},vl=1e10,OC=1/vl,FL=.05,HQ=function(e){return Math.round(e*1e4)/1e4},GQ=function(e,t,i){for(var s in t)!(s in e)&&s!==i&&(e[s]=t[s]);return e},WQ=function n(e){var t={},i,s;for(i in e)t[i]=io(s=e[i])&&!BL(s)?n(s):s;return t},UC=function(e,t,i,s,a){var l=t.length,c=0,f=vl,d,h,g,v;if(io(e)){for(;l--;){d=t[l],h=0;for(g in e)v=d[g]-e[g],h+=v*v;h<f&&(c=l,f=h)}if((a||vl)<vl&&a<Math.sqrt(f))return e}else for(;l--;)d=t[l],h=d-e,h<0&&(h=-h),h<f&&d>=s&&d<=i&&(c=l,f=h);return t[c]},zL=function(e,t,i,s,a,l,c){if(e.end==="auto")return e;var f=e.end,d,h;if(i=isNaN(i)?vl:i,s=isNaN(s)?-vl:s,io(t)){if(d=t.calculated?t:(cb(f)?f(t,c):UC(t,f,i,s,l))||t,!t.calculated){for(h in d)t[h]=d[h];t.calculated=!0}d=d[a]}else d=cb(f)?f(t,c):BL(f)?UC(t,f,i,s,l):parseFloat(f);return d>i?d=i:d<s&&(d=s),{max:d,min:d,unitFactor:e.unitFactor}},Hm=function(e,t,i){return isNaN(e[t])?i:+e[t]},J1=function(e,t){return t*FL*e/Q1},IC=function(e,t,i){return Math.abs((t-e)*Q1/i/FL)},jL={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},kL=function(e,t,i,s){if(t.linkedProps){var a=t.linkedProps.split(","),l={},c,f,d,h,g,v;for(c=0;c<a.length;c++)f=a[c],d=t[f],d&&(Rd(d.velocity)?h=d.velocity:(g=g||Vm(e),h=g&&g.isTracking(f)?g.get(f):0),v=Math.abs(h/Hm(d,"resistance",s)),l[f]=parseFloat(i(e,f))+J1(h,v));return l}},XQ=function(e,t,i,s,a,l){if(i===void 0&&(i=10),s===void 0&&(s=.2),a===void 0&&(a=1),jQ(e)&&(e=NL(e)[0]),!e)return 0;var c=0,f=vl,d=t.inertia||t,h=LL(e).get,g=Hm(d,"resistance",cd.resistance),v,x,b,_,w,S,T,M,C,N;N=kL(e,d,h,g);for(v in d)jL[v]||(x=d[v],io(x)||(M=M||Vm(e),M&&M.isTracking(v)?x=Rd(x)?{velocity:x}:{velocity:M.get(v)}:(_=+x||0,b=Math.abs(_/g))),io(x)&&(Rd(x.velocity)?_=x.velocity:(M=M||Vm(e),_=M&&M.isTracking(v)?M.get(v):0),b=OL(s,i,Math.abs(_/Hm(x,"resistance",g))),w=parseFloat(h(e,v))||0,S=w+J1(_,b),"end"in x&&(x=zL(x,N&&v in N?N:S,x.max,x.min,v,d.radius,_),ud===t&&(ud=d=WQ(t)),d[v]=GQ(x,d[v],"end")),"max"in x&&S>+x.max+OC?(C=x.unitFactor||cd.unitFactors[v]||1,T=w>x.max&&x.min!==x.max||_*C>-15&&_*C<45?s+(i-s)*.1:IC(w,x.max,_),T+a<f&&(f=T+a)):"min"in x&&S<+x.min-OC&&(C=x.unitFactor||cd.unitFactors[v]||1,T=w<x.min&&x.min!==x.max||_*C>-45&&_*C<15?s+(i-s)*.1:IC(w,x.min,_),T+a<f&&(f=T+a)),T>c&&(c=T)),b>c&&(c=b));return c>f&&(c=f),c>i?i:c<s?s:c},BC=function(){Hn=IL(),Hn&&(LC=Hn.parseEase,NL=Hn.utils.toArray,DL=Hn.utils.getUnit,LL=Hn.core.getCache,OL=Hn.utils.clamp,lb=Hn.core.getStyleSaver,UL=Hn.core.reverting||function(){},ob=LC("power3"),Q1=ob(.05),PL=Hn.core.PropTween,Hn.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),cd=Hn.config(),Hn.registerPlugin(Wd),RL=1)},eS={version:"3.13.0",name:"inertia",register:function(e){Hn=e,BC()},init:function(e,t,i,s,a){RL||BC();var l=Vm(e);if(t==="auto"){if(!l){console.warn("No inertia tracking on "+e+". InertiaPlugin.track(target) first.");return}t=l.getAll()}this.styles=lb&&typeof e.style=="object"&&lb(e),this.target=e,this.tween=i,ud=t;var c=e._gsap,f=c.get,d=t.duration,h=io(d),g=t.preventOvershoot||h&&d.overshoot===0,v=Hm(t,"resistance",cd.resistance),x=Rd(d)?d:XQ(e,t,h&&d.max||10,h&&d.min||.2,h&&"overshoot"in d?+d.overshoot:g?0:1),b,_,w,S,T,M,C,N,U;t=ud,ud=0,U=kL(e,t,f,v);for(b in t)jL[b]||(_=t[b],cb(_)&&(_=_(s,e,a)),Rd(_)?T=_:io(_)&&!isNaN(_.velocity)?T=+_.velocity:l&&l.isTracking(b)?T=l.get(b):console.warn("ERROR: No velocity was defined for "+e+" property: "+b),M=J1(T,x),N=0,w=f(e,b),S=DL(w),w=parseFloat(w),io(_)&&(C=w+M,"end"in _&&(_=zL(_,U&&b in U?U:C,_.max,_.min,b,t.radius,T)),"max"in _&&+_.max<C?g||_.preventOvershoot?M=_.max-w:N=_.max-w-M:"min"in _&&+_.min>C&&(g||_.preventOvershoot?M=_.min-w:N=_.min-w-M)),this._props.push(b),this.styles&&this.styles.save(b),this._pt=new PL(this._pt,e,b,w,0,VQ,0,c.set(e,b,this)),this._pt.u=S||0,this._pt.c1=M,this._pt.c2=N);return i.duration(x),kQ},render:function(e,t){var i=t._pt;if(e=ob(t.tween._time/t.tween._dur),e||!UL())for(;i;)i.set(i.t,i.p,HQ(i.s+i.c1*e+i.c2*e*e)+i.u,i.d,e),i=i._next;else t.styles.revert()}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(function(n){return eS[n]=Wd[n]});IL()&&Hn.registerPlugin(eS);Xt.registerPlugin(eS);const qQ=(n,e)=>{let t=0;return function(...i){const s=performance.now();s-t>=e&&(t=s,n.apply(this,i))}};function FC(n){const e=n.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:{r:0,g:0,b:0}}const YQ=({dotSize:n=16,gap:e=32,baseColor:t="#5227FF",activeColor:i="#5227FF",proximity:s=150,speedTrigger:a=100,shockRadius:l=250,shockStrength:c=5,maxSpeed:f=5e3,resistance:d=750,returnDuration:h=1.5,className:g="",style:v})=>{const x=A.useRef(null),b=A.useRef(null),_=A.useRef([]),w=A.useRef({x:0,y:0,vx:0,vy:0,speed:0,lastTime:0,lastX:0,lastY:0}),S=A.useMemo(()=>FC(t),[t]),T=A.useMemo(()=>FC(i),[i]),M=A.useMemo(()=>
4392{if(typeof window>"u"||!window.Path2D)return null;const N=new Path2D;return N.arc(0,0,n/2,0,Math.PI*2),N},[n]),C=A.useCallback(()=>{const N=x.current,U=b.current;if(!N||!U)return;const{width:P,height:O}=N.getBoundingClientRect(),R=window.devicePixelRatio||1;U.width=P*R,U.height=O*R,U.style.width=`${P}px`,U.style.height=`${O}px`;const L=U.getContext("2d");L&&L.scale(R,R);const z=Math.floor((P+e)/(n+e)),H=Math.floor((O+e)/(n+e)),Y=n+e,K=Y*z-e,q=Y*H-e,B=P-K,W=O-q,j=B/2+n/2,ae=W/2+n/2,fe=[];for(let G=0;G<H;G++)for(let ee=0;ee<z;ee++){const me=j+ee*Y,ve=ae+G*Y;fe.push({cx:me,cy:ve,xOffset:0,yOffset:0,_inertiaApplied:!1})}_.current=fe},[n,e]);return A.useEffect(()=>{if(!M)return;let N;const U=s*s,P=()=>{const O=b.current;if(!O)return;const R=O.getContext("2d");if(!R)return;R.clearRect(0,0,O.width,O.height);const{x:L,y:z}=w.current;for(const H of _.current){const Y=H.cx+H.xOffset,K=H.cy+H.yOffset,q=H.cx-L,B=H.cy-z,W=q*q+B*B;let j=t;if(W<=U){const fe=1-Math.sqrt(W)/s,G=Math.round(S.r+(T.r-S.r)*fe),ee=Math.round(S.g+(T.g-S.g)*fe),me=Math.round(S.b+(T.b-S.b)*fe);j=`rgb(${G},${ee},${me})`}R.save(),R.translate(Y,K),R.fillStyle=j,R.fill(M),R.restore()}N=requestAnimationFrame(P)};return P(),()=>cancelAnimationFrame(N)},[s,t,T,S,M]),A.useEffect(()=>{C();let N=null;return"ResizeObserver"in window?(N=new ResizeObserver(C),x.current&&N.observe(x.current)):window.addEventListener("resize",C),()=>{N?N.disconnect():window.removeEventListener("resize",C)}},[C]),A.useEffect(()=>{const N=O=>{const R=performance.now(),L=w.current,z=L.lastTime?R-L.lastTime:16,H=O.clientX-L.lastX,Y=O.clientY-L.lastY;let K=H/z*1e3,q=Y/z*1e3,B=Math.hypot(K,q);if(B>f){const j=f/B;K*=j,q*=j,B=f}L.lastTime=R,L.lastX=O.clientX,L.lastY=O.clientY,L.vx=K,L.vy=q,L.speed=B;const W=b.current.getBoundingClientRect();L.x=O.clientX-W.left,L.y=O.clientY-W.top;for(const j of _.current){const ae=Math.hypot(j.cx-L.x,j.cy-L.y);if(B>a&&ae<s&&!j._inertiaApplied){j._inertiaApplied=!0,Xt.killTweensOf(j);const fe=j.cx-L.x+K*.005,G=j.cy-L.y+q*.005;Xt.to(j,{inertia:{xOffset:fe,yOffset:G,resistance:d},onComplete:()=>{Xt.to(j,{xOffset:0,yOffset:0,duration:h,ease:"elastic.out(1,0.75)"}),j._inertiaApplied=!1}})}}},U=O=>{const R=b.current.getBoundingClientRect(),L=O.clientX-R.left,z=O.clientY-R.top;for(const H of _.current){const Y=Math.hypot(H.cx-L,H.cy-z);if(Y<l&&!H._inertiaApplied){H._inertiaApplied=!0,Xt.killTweensOf(H);const K=Math.max(0,1-Y/l),q=(H.cx-L)*c*K,B=(H.cy-z)*c*K;Xt.to(H,{inertia:{xOffset:q,yOffset:B,resistance:d},onComplete:()=>{Xt.to(H,{xOffset:0,yOffset:0,duration:h,ease:"elastic.out(1,0.75)"}),H._inertiaApplied=!1}})}}},P=qQ(N,50);return window.addEventListener("mousemove",P,{passive:!0}),window.addEventListener("click",U),()=>{window.removeEventListener("mousemove",P),window.removeEventListener("click",U)}},[f,a,s,d,h,l,c]),m.jsx("section",{className:`p-4 flex items-center justify-center h-full w-full relative ${g}`,style:v,children:m.jsx("div",{ref:x,className:"w-full h-full relative",children:m.jsx("canvas",{ref:b,className:"absolute inset-0 w-full h-full pointer-events-none"})})})},zC=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,jC=D3,$Q=(n,e)=>t=>{var i;if(e?.variants==null)return jC(n,t?.class,t?.className);const{variants:s,defaultVariants:a}=e,l=Object.keys(s).map(d=>{const h=t?.[d],g=a?.[d];if(h===null)return null;const v=zC(h)||zC(g);return s[d][v]}),c=t&&Object.entries(t).reduce((d,h)=>{let[g,v]=h;return v===void 0||(d[g]=v),d},{}),f=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((d,h)=>{let{class:g,className:v,...x}=h;return Object.entries(x).every(b=>{let[_,w]=b;return Array.isArray(w)?w.includes({...a,...c}[_]):{...a,...c}[_]===w})?[...d,g,v]:d},[]);return jC(n,l,f,t?.class,t?.className)};var KQ=Symbol.for("react.lazy"),Gm=fb[" use ".trim().toString()];function ZQ(n){return typeof n=="object"&&n!==null&&"then"in n}function VL(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===KQ&&"_payload"in n&&ZQ(n._payload)}function QQ(n){const e=JQ(n),t=A.forwardRef((i,s)=>{let{children:a,...l}=i;VL(a)&&typeof Gm=="function"&&(a=Gm(a._payload));const c=A.Children.toArray(a),f=c.find(tJ);if(f){const d=f.props.children,h=c.map(g=>g===f?A.Children.count(d)>1?A.Children.only(null):A.isValidElement(d)?d.props.children:null:g);return m.jsx(e,{...l,ref:s,children:A.isValidElement(d)?A.cloneElement(d,void 0,h):null})}return m.jsx(e,{...l,ref:s,children:a})});return t.displayName=`${n}.Slot`,t}function JQ(n){const e=A.forwardRef((t,i)=>{let{children:s,...a}=t;if(VL(s)&&typeof Gm=="function"&&(s=Gm(s._payload)),A.isValidElement(s)){const l=iJ(s),c=nJ(a,s.props);return s.type!==A.Fragment&&(c.ref=i?Tu(i,l):l),A.cloneElement(s,c)}return A.Children.count(s)>1?A.Children.only(null):null});return e.displayName=`${n}.SlotClone`,e}var eJ=Symbol("radix.slottable");function tJ(n){return A.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===eJ}function nJ(n,e){const t={...e};for(const i in e){const s=n[i],a=e[i];/^on[A-Z]/.test(i)?s&&a?t[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(t[i]=s):i==="style"?t[i]={...s,...a}
4392:i==="className"&&(t[i]=[s,a].filter(Boolean).join(" "))}return{...n,...t}}function iJ(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}var sJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rJ=sJ.reduce((n,e)=>{const t=QQ(`Primitive.${e}`),i=A.forwardRef((s,a)=>{const{asChild:l,...c}=s,f=l?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(f,{...c,ref:a})});return i.displayName=`Primitive.${e}`,{...n,[e]:i}},{}),aJ="Label",HL=A.forwardRef((n,e)=>m.jsx(rJ.label,{...n,ref:e,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(n.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));HL.displayName=aJ;var oJ=HL;function lJ({className:n,...e}){return m.jsx(oJ,{"data-slot":"label",className:un("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),...e})}function cJ({className:n,...e}){return m.jsx("div",{"data-slot":"field-group",className:un("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",n),...e})}const uJ=$Q("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function jf({className:n,orientation:e="vertical",...t}){return m.jsx("div",{role:"group","data-slot":"field","data-orientation":e,className:un(uJ({orientation:e}),n),...t})}function ry({className:n,...e}){return m.jsx(lJ,{"data-slot":"field-label",className:un("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",n),...e})}function kC({className:n,type:e,...t}){return m.jsx("input",{type:e,"data-slot":"input",className:un("file:text-foreground !bg-[#1f222a] placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-10 w-full min-w-0 rounded-md bg-transparent px-3 py-3 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n),...t})}var bs={},VC;function fJ(){if(VC)return bs;VC=1;var n=bs&&bs.__createBinding||(Object.create?(function(v,x,b,_){_===void 0&&(_=b);var w=Object.getOwnPropertyDescriptor(x,b);(!w||("get"in w?!x.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return x[b]}}),Object.defineProperty(v,_,w)}):(function(v,x,b,_){_===void 0&&(_=b),v[_]=x[b]})),e=bs&&bs.__setModuleDefault||(Object.create?(function(v,x){Object.defineProperty(v,"default",{enumerable:!0,value:x})}):function(v,x){v.default=x}
4392),t=bs&&bs.__importStar||function(v){if(v&&v.__esModule)return v;var x={};if(v!=null)for(var b in v)b!=="default"&&Object.prototype.hasOwnProperty.call(v,b)&&n(x,v,b);return e(x,v),x};Object.defineProperty(bs,"__esModule",{value:!0}),bs.useTurnstile=void 0;const i=t(pu()),s=typeof globalThis<"u"?globalThis:window;let a=typeof s.turnstile<"u"?"ready":"unloaded",l,c;const f=new Promise((v,x)=>{c={resolve:v,reject:x},a==="ready"&&v(void 0)});{const v="cf__reactTurnstileOnLoad",x="https://challenges.cloudflare.com/turnstile/v0/api.js";l=()=>{if(a==="unloaded"){a="loading",s[v]=()=>{c.resolve(),a="ready",delete s[v]};const b=`${x}?onload=${v}&render=explicit`,_=document.createElement("script");_.src=b,_.async=!0,_.addEventListener("error",()=>{c.reject("Failed to load Turnstile."),delete s[v]}),document.head.appendChild(_)}return f}}function d({id:v,className:x,style:b,sitekey:_,action:w,cData:S,theme:T,language:M,tabIndex:C,responseField:N,responseFieldName:U,size:P,fixedSize:O,retry:R,retryInterval:L,refreshExpired:z,appearance:H,execution:Y,userRef:K,onVerify:q,onSuccess:B,onLoad:W,onError:j,onExpire:ae,onTimeout:fe,onAfterInteractive:G,onBeforeInteractive:ee,onUnsupported:me}){const ve=(0,i.useRef)(null),ge=(0,i.useState)({onVerify:q,onSuccess:B,onLoad:W,onError:j,onExpire:ae,onTimeout:fe,onAfterInteractive:G,onBeforeInteractive:ee,onUnsupported:me})[0],ie=K??ve,Z=O?{width:P==="compact"?"130px":P==="flexible"?"100%":"300px",height:P==="compact"?"120px":"65px",...b}:b;return(0,i.useEffect)(()=>{if(!ie.current)return;let xe=!1,Me="";return(async()=>{var Ae,Be;if(a!=="ready")try{await l()}catch(He){(Ae=ge.onError)===null||Ae===void 0||Ae.call(ge,He);return}if(xe||!ie.current)return;let Xe;const X={sitekey:_,action:w,cData:S,theme:T,language:M,tabindex:C,"response-field":N,"response-field-name":U,size:P,retry:R,"retry-interval":L,"refresh-expired":z,appearance:H,execution:Y,callback:(He,qe)=>{var Le,Pe;(Le=ge.onVerify)===null||Le===void 0||Le.call(ge,He,Xe),(Pe=ge.onSuccess)===null||Pe===void 0||Pe.call(ge,He,qe,Xe)},"error-callback":He=>{var qe;return(qe=ge.onError)===null||qe===void 0?void 0:qe.call(ge,He,Xe)},"expired-callback":He=>{var qe;return(qe=ge.onExpire)===null||qe===void 0?void 0:qe.call(ge,He,Xe)},"timeout-callback":()=>{var He;return(He=ge.onTimeout)===null||He===void 0?void 0:He.call(ge,Xe)},"after-interactive-callback":()=>{var He;return(He=ge.onAfterInteractive)===null||He===void 0?void 0:He.call(ge,Xe)},"before-interactive-callback":()=>{var He;return(He=ge.onBeforeInteractive)===null||He===void 0?void 0:He.call(ge,Xe)},"unsupported-callback":()=>{var He;return(He=ge.onUnsupported)===null||He===void 0?void 0:He.call(ge,Xe)}};Me=window.turnstile.render(ie.current,X),Xe=h(Me),(Be=ge.onLoad)===null||Be===void 0||Be.call(ge,Me,Xe)})(),()=>{xe=!0,Me&&window.turnstile.remove(Me)}},[_,w,S,T,M,C,N,U,P,R,L,z,H,Y]),(0,i.useEffect)(()=>{ge.onVerify=q,ge.onSuccess=B,ge.onLoad=W,ge.onError=j,ge.onExpire=ae,ge.onTimeout=fe,ge.onAfterInteractive=G,ge.onBeforeInteractive=ee,ge.onUnsupported=me},[q,B,W,j,ae,fe,G,ee,me]),i.default.createElement("div",{ref:ie,id:v,className:x,style:Z})}bs.default=d;function h(v){return{execute:x=>window.turnstile.execute(v,x),reset:()=>window.turnstile.reset(v),getResponse:()=>window.turnstile.getResponse(v),isExpired:()=>window.turnstile.isExpired(v)}}function g(){const[v,x]=(0,i.useState)(a);return(0,i.useEffect)(()=>{a!=="ready"&&f.then(()=>x(a))},[]),s.turnstile}return bs.useTurnstile=g,bs}var dJ=fJ();const hJ=ub(dJ);function pJ({className:n,...e}){const[t,i]=A.useState({nome:"",email:"",mensagem:"",hp_field:"",cfToken:"",startedAt:Date.now()}),[s,a]=A.useState(!1),[l,c]=A.useState(null);function f(h){const{name:g,value:v}=h.target;i(x=>({...x,[g]:v}))}async function d(h){if(h.preventDefault(),t.hp_field){console.log("Honeypot preenchido - spam detectado");return}if(!t.cfToken){console.log("Token Turnstile não disponÃvel"),c("error");return}if(Date.now()-(t.startedAt||0)<3e3){console.log("Tempo muito curto - spam detectado"),c("error");return}a(!0),c(null);try{console.log("VITE_FETCH_API:","https://sitemanager-api.streamline.pt/mail/send"),console.log("VITE_PAYLOAD_RECEIVER:","[email protected]");const x={receiver:"[email protected]",body:` 4393 <div style="font-family:'Inter', Arial, Helvetica, sans-serif; max-width:600px; margin:auto; background:#0f0f1a; border:1px solid #8b5cf6; border-radius:16px; overflow:hidden;"> 4394 <div style="background:linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #06b6d4 100%); padding:32px 24px; text-align:center;"> 4395 <h2 style="margin:0; font-size:28px; font-weight:700; color:#fff;">Nova Mensagem de Contacto</h2> 4396 </div> 4397 4398 <div style="padding:32px 24px; background:#1a1a2e;"> 4399 <table style="width:100%; font-size:15px;
4399 color:#e2e8f0; border-collapse:separate; border-spacing:0 12px;"> 4400 <tr> 4401 <td style="font-weight:600; padding:16px; background:#2d2d44; border-radius:8px 0 0 8px; color:#c084fc; width:120px;">Nome</td> 4402 <td style="padding:16px; background:#2d2d44; border-radius:0 8px 8px 0; color:#f1f5f9;">${t.nome}</td> 4403 </tr> 4404 <tr> 4405 <td style="font-weight:600; padding:16px; background:#2d2d44; border-radius:8px 0 0 8px; color:#c084fc;">Email</td> 4406 <td style="padding:16px; background:#2d2d44; border-radius:0 8px 8px 0; color:#f1f5f9;">${t.email}</td> 4407 </tr> 4408 <tr> 4409 <td style="font-weight:600; padding:16px; background:#2d2d44; border-radius:8px 0 0 8px; color:#c084fc; vertical-align:top;">Mensagem</td> 4410 <td style="padding:16px; background:#2d2d44; border-radius:0 8px 8px 0; color:#f1f5f9; white-space:pre-line;">${t.mensagem.replace(/\n/g,"<br>")}</td> 4411 </tr> 4412 </table> 4413 </div> 4414 4415 <div style="background:#8b5cf6; text-align:center; padding:20px; font-size:13px; color:#f3e8ff;"> 4416 <p style="margin:0;">Este email foi enviado através do formulário de contacto do site <strong>Streamline.pt</strong></p> 4417 </div> 4418 </div> 4419`,subject:"Novo Contacto via Website - Streamline",cfToken:t.cfToken,meta:{startedAt:t.startedAt}};console.log("ð¤ Enviando payload:",x);const b=await fetch("https://sitemanager-api.streamline.pt/mail/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x)});console.log("ð¥ Resposta HTTP:",b.status,b.statusText);const _=await b.text();console.log("ð Resposta body:",_),b.ok?(console.log("â Email enviado com sucesso!"),c("success"),i({nome:"",email:"",mensagem:"",hp_field:"",cfToken:"",startedAt:Date.now()})):(console.error("â Erro ao enviar:",b.status,_),c("error"))}catch(v){console.error("â Erro de rede/requisição:",v),c("error")}finally{a(!1)}}return m.jsx("form",{className:un("flex flex-col gap-6",n),onSubmit:d,...e,children:m.jsxs(cJ,{children:[m.jsxs("div",{className:"flex flex-col items-center gap-1 text-center mt-20 sm:mt-20 md:mt-0",children:[m.jsx("h1",{className:"!text-6xl font-bold",children:"Fale connosco"}),m.jsx("p",{className:"text-muted-foreground text-sm text-balance",children:"Preencha o formulário abaixo, descrevendo o problema com o máximo de detalhe possÃvel. Entraremos em contacto consigo assim que possÃvel."})]}),m.jsxs(jf,{children:[m.jsx(ry,{htmlFor:"nome",children:"Nome"}),m.jsx(kC,{id:"nome",name:"nome",type:"text",placeholder:"Insira o nome",required:!0,value:t.nome,onChange:f,disabled:s})]}),m.jsxs(jf,{children:[m.jsx(ry,{htmlFor:"email",children:"Email"}),m.jsx(kC,{id:"email",name:"email",type:"email",placeholder:"Insira o email",required:!0,value:t.email,onChange:f,disabled:s})]}),m.jsxs(jf,{children:[m.jsx(ry,{htmlFor:"mensagem",children:"Mensagem"}),m.jsx("textarea",{id:"mensagem",name:"mensagem",rows:6,placeholder:"Insira a mensagem",required:!0,value:t.mensagem,onChange:f,disabled:s,className:"w-full min-h-[120px] px-3 py-3 rounded-md !bg-[#1f222a] border-input text-base md:text-sm shadow-xs outline-none file:text-foreground placeholder:text-muted-foreground disabled:opacity-50"})]}),m.jsx("input",{type:"text",name:"hp_field",value:t.hp_field,onChange:f,style:{display:"none"}}),m.jsx(jf,{children:m.jsx(hJ,{sitekey:"0x4AAAAAACEVaX3SEg5V6awf",onVerify:h=>{i(g=>({...g,cfToken:h}))}})}),m.jsxs(jf,{children:[m.jsx(ZC,{type:"submit",disabled:s||!t.cfToken,children:s?"A enviar...":"Enviar Mensagem"}),l==="success"&&m.jsx("p",{className:"text-green-500 text-sm text-center mt-4",children:"Mensagem enviada com sucesso! Entraremos em contacto brevemente."}),l==="error"&&m.jsx("p",{className:"text-red-500 text-sm text-center mt-4",children:"Erro ao enviar mensagem. Por favor, tente novamente."})]})]})})}function mJ(){return m.jsxs("div",{className:"grid min-h-svh lg:grid-cols-2",children:[m.jsx("div",{className:"relative hidden lg:block",children:m.jsx("div",{style:{width:"100%",height:"100vh",position:"relative"},children:m.jsx(YQ,{dotSize:5,gap:15,baseColor:"#271e37",activeColor:"#5227FF",proximity:120,shockRadius:250,shockStrength:5,resistance:750,returnDuration:1.5})})}),m.jsx("div",{className:"flex flex-col gap-4 p-6 md:p-10",children:m.jsx("div",{className:"flex flex-1 items-center justify-center mt-8 lg:mt-0",children:m.jsx("div",{className:"w-full max-w-lg",children:m.jsx(pJ,{})})})})]})}function Nu({badge:n,titulo:e,descricao:t}){const[i,s]=A.useState(!1);return A.useEffect(()=>{s(!0)},[]),m.jsx("section",{className:"relative w-full h-[70vh] flex items-center justify-center overflow-hidden mt-15 sm:mt-15 md:mt-10",children:m.jsx("div",{className:"relative z-10 w-[100vw] sm:w-[100vw] md:w-[80vw] flex flex-col items-start mx-auto px-6 md:px-12 text-start",children:m.jsxs("div",{className:`space-y-8 transition-all duration-1000 ${i?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:[m.jsx("div",{className:"inline-block",children:m.jsx("span",{className:"inline-flex items-start px-6 py-2 rounded-full bg-purple-300/20 border border-sky-500/30 text-purple-200 text-sm font-medium backdrop-blur-sm op
4419acity-76 shadow-lg shadow-purple-800/40",children:n})}),m.jsx(mn,{children:m.jsx("h1",{className:"!text-4xl sm:text-4xl md:!text-6xl lg:!text-7xl max-w-4xl font-medium [letter-spacing:-0.05em] ",children:e})}),m.jsx("p",{className:"text-sm md:text-lg text-white/70 font-light max-w-3xl break-words",children:t}),m.jsx("div",{className:"pt-2",children:m.jsx("a",{href:"/contacto",className:` 4420 inline-flex items-center justify-center 4421 px-5 py-2 4422 rounded-full 4423 bg-gradient-to-r from-violet-600 via-purple-600 to-fuchsia-600 4424 text-white text-lg font-semibold 4425 shadow-2xl shadow-purple-500/50 4426 hover:shadow-purple-500/70 4427 hover:scale-105 4428 transition-all duration-300 4429 `,children:"Contacte-nos"})})]})})})}const gJ={hidden:{},visible:{transition:{staggerChildren:.1}}},vJ=n=>{const e=n==="left"||n==="right"?"X":"Y",t=n==="right"||n==="down"?100:-100;return{hidden:{filter:"blur(10px)",opacity:0,[`translate${e}`]:t},visible:{filter:"blur(0px)",opacity:1,[`translate${e}`]:0,transition:{duration:.4,ease:"easeOut"}}}},xJ={amount:.3,margin:"0px 0px 0px 0px"},Tc=({as:n="h1",text:e,classname:t="",viewport:i=xJ,variants:s,direction:a="down",letterAnime:l=!1,lineAnime:c=!1})=>{const f=s||vJ(a),d={hidden:f.hidden,visible:{...f.visible}},h=wi[n];return m.jsx(h,{whileInView:"visible",initial:"hidden",variants:gJ,viewport:i,className:un("inline-block dark:text-white text-white uppercase",t),children:c?m.jsx(wi.span,{className:"inline-block",variants:d,children:e}):m.jsx(m.Fragment,{children:e.split(" ").map((g,v)=>m.jsx(wi.span,{className:"inline-block",variants:l===!1?d:{},children:l?m.jsxs(m.Fragment,{children:[g.split("").map((x,b)=>m.jsx(wi.span,{className:"inline-block",variants:d,children:x},b))," "]}):m.jsxs(m.Fragment,{children:[g," "]})},v))})})};function yJ(){return m.jsxs("div",{className:"mx-auto grid grid-flow-row-dense grid-cols-1 md:grid-cols-2 gap-8 ",children:[m.jsxs("div",{className:"col-span-1 mb-8 md:mb-20 md:sticky md:top-[50vh] md:self-start",children:[m.jsx("h2",{className:"text-4xl font-semibold",children:"O que resolvemos?"}),m.jsx("p",{className:"font-light mt-4 text-md",children:"Muitas empresas perdem tempo e dinheiro porque usam ferramentas que não se adaptam ao seu negócio."})]}),m.jsx("div",{className:"col-span-1",children:m.jsxs("div",{className:"flex flex-col gap-0 sm:gap-0 md:gap-20 lg:gap-24",children:[m.jsx("div",{className:"min-h-[20vh] flex flex-col justify-center items-center text-center",children:m.jsx(Tc,{text:"Processos manuais e repetitivos",variants:{hidden:{filter:"blur(10px)",opacity:0,y:20},visible:{filter:"blur(0px)",opacity:1,y:0,transition:{ease:"linear"}}},classname:"!text-xl md:!text-2xl lg:!text-3xl max-w-2xl mx-auto font-light capitalize"})}),m.jsx("div",{className:"min-h-[20vh] flex flex-col justify-center items-center text-center",children:m.jsx(Tc,{text:"Aplicações antigas, lentas ou inseguras",variants:{hidden:{filter:"blur(10px)",opacity:0,y:20},visible:{filter:"blur(0px)",opacity:1,y:0,transition:{ease:"linear"}}},classname:"!text-xl md:!text-2xl lg:!text-3xl max-w-2xl mx-auto font-light capitalize"})}),m.jsx("div",{className:"min-h-[20vh] flex flex-col justify-center items-center text-center",children:m.jsx(Tc,{text:"Falta de integração entre sistemas",variants:{hidden:{filter:"blur(10px)",opacity:0,y:20},visible:{filter:"blur(0px)",opacity:1,y:0,transition:{ease:"linear"}}},classname:"!text-xl md:!text-2xl lg:!text-3xl max-w-2xl mx-auto font-light capitalize"})}),m.jsx("div",{className:"min-h-[20vh] flex flex-col justify-center items-center text-center",children:m.jsx(Tc,{text:"Softwares generalistas que não respondem à s necessidades reais",variants:{hidden:{filter:"blur(10px)",opacity:0,y:20},visible:{filter:"blur(0px)",opacity:1,y:0,transition:{ease:"linear"}}},classname:"!text-xl md:!text-2xl lg:!text-3xl max-w-2xl mx-auto font-light capitalize"})}),m.jsx("div",{className:"min-h-[20vh] flex flex-col justify-center items-center text-center",children:m.jsx(Tc,{text:"Dependência de ficheiros Excel para operações crÃticas",variants:{hidden:{filter:"blur(10px)",opacity:0,y:20},visible:{filter:"blur(0px)",opacity:1,y:0,transition:{ease:"linear"}}},classname:"!text-xl md:!text-2xl lg:!text-3xl max-w-2xl mx-auto font-light capitalize"})}),m.jsx("div",{className:"min-h-[20vh] flex flex-col justify-center items-center text-center",children:m.jsx(Tc,{text:"Falta de automação e visibilidade nos dados",variants:{hidden:{filter:"blur(10px)",opacity:0,y:20},visible:{filter:"blur(0px)",opacity:1,y:0,transition:{ease:"linear"}}},classname:"!text-xl md:!text-2xl lg:!text-3xl max-w-2xl mx-auto font-light capitalize"})})]})})]})}const GL=12,WL=300,_g="132, 0, 255",_J=768,bJ=[{color:"#060010",title:"Aplicações Web Empresariais",description:"Sistemas internos (SGI), CRM, portais de clientes, plataformas de gestão.",imageUrl:""},{color:"#060010",title:"Automação de Processos",description:"Fluxos automatizados, alertas, dashboards e relatórios em tempo real. (Miago)",imageUrl:""}
4429,{color:"#060010",title:"Integração de Sistemas",description:"Ligação entre softwares existentes, APIs e bases de dados.",imageUrl:""},{color:"#060010",title:"Aplicações Desktop",description:"Ferramentas técnicas, aplicações industriais, software local especializado.",imageUrl:""},{color:"#060010",title:"Aplicações Mobile",description:"Apps internas, apps de operação.",imageUrl:""},{color:"#060010",title:"Modernização de Software",description:"Reescrita, otimização e migração de aplicações legadas.",imageUrl:""}],SJ=(n,e,t=_g)=>{const i=document.createElement("div");return i.className="particle",i.style.cssText=` 4430 position: absolute; 4431 width: 4px; 4432 height: 4px; 4433 border-radius: 50%; 4434 background: rgba(${t}, 1); 4435 box-shadow: 0 0 6px rgba(${t}, 0.6); 4436 pointer-events: none; 4437 z-index: 100; 4438 left: ${n}px; 4439 top: ${e}px; 4440 `,i},wJ=n=>({proximity:n*.5,fadeDistance:n*.75}),EJ=(n,e,t,i,s)=>{const a=n.getBoundingClientRect(),l=(e-a.left)/a.width*100,c=(t-a.top)/a.height*100;n.style.setProperty("--glow-x",`${l}%`),n.style.setProperty("--glow-y",`${c}%`),n.style.setProperty("--glow-intensity",i.toString()),n.style.setProperty("--glow-radius",`${s}px`)},MJ=({children:n,className:e="",disableAnimations:t=!1,style:i,particleCount:s=GL,glowColor:a=_g,enableTilt:l=!0,clickEffect:c=!1,enableMagnetism:f=!1})=>{const d=A.useRef(null),h=A.useRef([]),g=A.useRef([]),v=A.useRef(!1),x=A.useRef([]),b=A.useRef(!1),_=A.useRef(null),w=A.useCallback(()=>{if(b.current||!d.current)return;const{width:M,height:C}=d.current.getBoundingClientRect();x.current=Array.from({length:s},()=>SJ(Math.random()*M,Math.random()*C,a)),b.current=!0},[s,a]),S=A.useCallback(()=>{g.current.forEach(clearTimeout),g.current=[],_.current?.kill(),h.current.forEach(M=>{Xt.to(M,{scale:0,opacity:0,duration:.3,ease:"back.in(1.7)",onComplete:()=>{M.parentNode?.removeChild(M)}})}),h.current=[]},[]),T=A.useCallback(()=>{!d.current||!v.current||(b.current||w(),x.current.forEach((M,C)=>{const N=setTimeout(()=>{if(!v.current||!d.current)return;const U=M.cloneNode(!0);d.current.appendChild(U),h.current.push(U),Xt.fromTo(U,{scale:0,opacity:0},{scale:1,opacity:1,duration:.3,ease:"back.out(1.7)"}),Xt.to(U,{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}),Xt.to(U,{opacity:.3,duration:1.5,ease:"power2.inOut",repeat:-1,yoyo:!0})},C*100);g.current.push(N)}))},[w]);return A.useEffect(()=>{if(t||!d.current)return;const M=d.current,C=()=>{v.current=!0,T(),l&&Xt.to(M,{rotateX:5,rotateY:5,duration:.3,ease:"power2.out",transformPerspective:1e3})},N=()=>{v.current=!1,S(),l&&Xt.to(M,{rotateX:0,rotateY:0,duration:.3,ease:"power2.out"}),f&&Xt.to(M,{x:0,y:0,duration:.3,ease:"power2.out"})},U=O=>{if(!l&&!f)return;const R=M.getBoundingClientRect(),L=O.clientX-R.left,z=O.clientY-R.top,H=R.width/2,Y=R.height/2;if(l){const K=(z-Y)/Y*-10,q=(L-H)/H*10;Xt.to(M,{rotateX:K,rotateY:q,duration:.1,ease:"power2.out",transformPerspective:1e3})}if(f){const K=(L-H)*.05,q=(z-Y)*.05;_.current=Xt.to(M,{x:K,y:q,duration:.3,ease:"power2.out"})}},P=O=>{if(!c)return;const R=M.getBoundingClientRect(),L=O.clientX-R.left,z=O.clientY-R.top,H=Math.max(Math.hypot(L,z),Math.hypot(L-R.width,z),Math.hypot(L,z-R.height),Math.hypot(L-R.width,z-R.height)),Y=document.createElement("div");Y.style.cssText=` 4441 position: absolute; 4442 width: ${H*2}px; 4443 height: ${H*2}px; 4444 border-radius: 50%; 4445 background: radial-gradient(circle, rgba(${a}, 0.4) 0%, rgba(${a}, 0.2) 30%, transparent 70%); 4446 left: ${L-H}px; 4447 top: ${z-H}px; 4448 pointer-events: none; 4449 z-index: 1000; 4450 `,M.appendChild(Y),Xt.fromTo(Y,{scale:0,opacity:1},{scale:1,opacity:0,duration:.8,ease:"power2.out",onComplete:()=>Y.remove()})};return M.addEventListener("mouseenter",C),M.addEventListener("mouseleave",N),M.addEventListener("mousemove",U),M.addEventListener("click",P),()=>{v.current=!1,M.removeEventListener("mouseenter",C),M.removeEventListener("mouseleave",N),M.removeEventListener("mousemove",U),M.removeEventListener("click",P),S()}},[T,S,t,l,f,c,a]),m.jsx("div",{ref:d,className:`${e} relative overflow-hidden`,style:{...i,position:"relative",overflow:"hidden"},children:n})}
4450,TJ=({gridRef:n,disableAnimations:e=!1,enabled:t=!0,spotlightRadius:i=WL,glowColor:s=_g})=>{const a=A.useRef(null),l=A.useRef(!1);return A.useEffect(()=>{if(e||!n?.current||!t)return;const c=document.createElement("div");c.className="global-spotlight",c.style.cssText=` 4451 position: fixed; 4452 width: 800px; 4453 height: 800px; 4454 border-radius: 50%; 4455 pointer-events: none; 4456 background: radial-gradient(circle, 4457 rgba(${s}, 0.15) 0%, 4458 rgba(${s}, 0.08) 15%, 4459 rgba(${s}, 0.04) 25%, 4460 rgba(${s}, 0.02) 40%, 4461 rgba(${s}, 0.01) 65%, 4462 transparent 70% 4463 ); 4464 z-index: 200; 4465 opacity: 0; 4466 transform: translate(-50%, -50%); 4467 mix-blend-mode: screen; 4468 `,document.body.appendChild(c),a.current=c;const f=h=>{if(!a.current||!n.current)return;const v=n.current.closest(".bento-section")?.getBoundingClientRect(),x=v&&h.clientX>=v.left&&h.clientX<=v.right&&h.clientY>=v.top&&h.clientY<=v.bottom;l.current=x||!1;const b=n.current.querySelectorAll(".card");if(!x){Xt.to(a.current,{opacity:0,duration:.3,ease:"power2.out"}),b.forEach(M=>{M.style.setProperty("--glow-intensity","0")});return}const{proximity:_,fadeDistance:w}=wJ(i);let S=1/0;b.forEach(M=>{const C=M,N=C.getBoundingClientRect(),U=N.left+N.width/2,P=N.top+N.height/2,O=Math.hypot(h.clientX-U,h.clientY-P)-Math.max(N.width,N.height)/2,R=Math.max(0,O);S=Math.min(S,R);let L=0;R<=_?L=1:R<=w&&(L=(w-R)/(w-_)),EJ(C,h.clientX,h.clientY,L,i)}),Xt.to(a.current,{left:h.clientX,top:h.clientY,duration:.1,ease:"power2.out"});const T=S<=_?.8:S<=w?(w-S)/(w-_)*.8:0;Xt.to(a.current,{opacity:T,duration:T>0?.2:.5,ease:"power2.out"})},d=()=>{l.current=!1,n.current?.querySelectorAll(".card").forEach(h=>{h.style.setProperty("--glow-intensity","0")}),a.current&&Xt.to(a.current,{opacity:0,duration:.3,ease:"power2.out"})};return document.addEventListener("mousemove",f),document.addEventListener("mouseleave",d),()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseleave",d),a.current?.parentNode?.removeChild(a.current)}},[n,e,t,i,s]),null},AJ=({children:n,gridRef:e})=>m.jsx("div",{className:"bento-section grid gap-2 p-3 select-none relative",style:{fontSize:"clamp(1rem, 0.9rem + 0.5vw, 1.5rem)"},ref:e,children:n}),CJ=()=>{const[n,e]=A.useState(!1);return A.useEffect(()=>{const t=()=>e(window.innerWidth<=_J);return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),n},RJ=({textAutoHide:n=!0,enableStars:e=!0,enableSpotlight:t=!0,enableBorderGlow:i=!0,disableAnimations:s=!1,spotlightRadius:a=WL,particleCount:l=GL,enableTilt:c=!1,glowColor:f=_g,clickEffect:d=!0,enableMagnetism:h=!0})=>{const g=A.useRef(null),v=CJ(),x=s||v;return m.jsxs(m.Fragment,{children:[m.jsx("style",{children:` 4469 .bento-section { 4470 --glow-x: 50%; 4471 --glow-y: 50%; 4472 --glow-intensity: 0; 4473 --glow-radius: 200px; 4474 --glow-color: ${f}; 4475 --border-color: #392e4e; 4476 --background-dark: #060010; 4477 --white: hsl(0, 0%, 100%); 4478 --purple-primary: rgba(132, 0, 255, 1); 4479 --purple-glow: rgba(132, 0, 255, 0.2); 4480 --purple-border: rgba(132, 0, 255, 0.8); 4481 } 4482 4483 .card-responsive { 4484 grid-template-columns: 1fr; 4485 width: 100%; 4486 margin: 0 auto; 4487 padding: 0.5rem; 4488 } 4489 4490 @media (min-width: 600px) { 4491 .card-responsive { 4492 grid-template-columns: repeat(2, 1fr); 4493 } 4494 } 4495 4496 @media (min-width: 1024px) { 4497 .card-responsive { 4498 grid-template-columns: repeat(4, 1fr); 4499 } 4500 4501 .card-responsive .card:nth-child(3) { 4502 grid-column: span 2; 4503 grid-row: span 2; 4504 } 4505 4506 .card-responsive .card:nth-child(4) { 4507 grid-column: 1 / span 2; 4508 grid-row: 2 / span 2; 4509 } 4510 4511 .card-responsive .card:nth-child(6) { 4512 grid-column: 4; 4513 grid-row: 3; 4514 } 4515 } 4516 4517 .card--border-glow::after { 4518 content: ''; 4519 position: absolute; 4520 inset: 0; 4521 padding: 6px;
4522 background: radial-gradient(var(--glow-radius) circle at var(--glow-x) var(--glow-y), 4523 rgba(${f}, calc(var(--glow-intensity) * 0.8)) 0%, 4524 rgba(${f}, calc(var(--glow-intensity) * 0.4)) 30%, 4525 transparent 60%); 4526 border-radius: inherit; 4527 mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); 4528 mask-composite: subtract; 4529 -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); 4530 -webkit-mask-composite: xor; 4531 pointer-events: none; 4532 transition: opacity 0.3s ease; 4533 z-index: 1; 4534 } 4535 4536 .card--border-glow:hover::after { 4537 opacity: 1; 4538 } 4539 4540 .card--border-glow:hover { 4541 box-shadow: 0 4px 20px rgba(46, 24, 78, 0.4), 0 0 30px rgba(${f}, 0.2); 4542 } 4543 4544 .card--with-image { 4545 background-size: cover; 4546 background-position: center; 4547 background-repeat: no-repeat; 4548 } 4549 4550 .card--with-image::before { 4551 content: ''; 4552 position: absolute; 4553 inset: 0; 4554 background: linear-gradient(135deg, rgba(6, 0, 16, 0.85) 0%, rgba(6, 0, 16, 0.6) 50%, rgba(6, 0, 16, 0.4) 100%); 4555 z-index: 0; 4556 border-radius: inherit; 4557 } 4558 4559 .card--with-image .card__header, 4560 .card--with-image .card__content { 4561 position: relative; 4562 z-index: 1; 4563 } 4564 4565 .particle::before { 4566 content: ''; 4567 position: absolute; 4568 top: -2px; 4569 left: -2px; 4570 right: -2px; 4571 bottom: -2px; 4572 background: rgba(${f}, 0.2); 4573 border-radius: 50%; 4574 z-index: -1; 4575 } 4576 4577 .particle-container:hover { 4578 box-shadow: 0 4px 20px rgba(46, 24, 78, 0.2), 0 0 30px rgba(${f}, 0.2); 4579 } 4580 4581 .text-clamp-1 { 4582 display: -webkit-box; 4583 -webkit-box-orient: vertical; 4584 -webkit-line-clamp: 1; 4585 line-clamp: 1; 4586 overflow: hidden; 4587 text-overflow: ellipsis; 4588 } 4589 4590 .text-clamp-2 { 4591 display: -webkit-box; 4592 -webkit-box-orient: vertical; 4593 -webkit-line-clamp: 2; 4594 line-clamp: 2; 4595 overflow: hidden; 4596 text-overflow: ellipsis; 4597 } 4598 4599 @media (max-width: 599px) { 4600 .card-responsive { 4601 grid-template-columns: 1fr; 4602 width: 100%; 4603 margin: 0 auto; 4604 padding: 0.5rem; 4605 } 4606 4607 .card-responsive .card { 4608 width: 100%; 4609 min-height: 180px; 4610 } 4611 } 4612 `}),t&&m.jsx(TJ,{gridRef:g,disableAnimations:x,enabled:t,spotlightRadius:a,glowColor:f}),m.jsx(AJ,{gridRef:g,children:m.jsx("div",{className:"card-responsive grid gap-2",children:bJ.map((b,_)=>{const w=`card flex flex-col justify-between relative aspect-[4/3] min-h-[200px] w-full max-w-full p-5 rounded-[20px] border border-solid font-light overflow-hidden transition-all duration-300 ease-in-out hover:-translate-y-0.5 hover:shadow-[0_8px_25px_rgba(0,0,0,0.15)] ${i?"card--border-glow":""} ${b.imageUrl?"card--with-image":""}`,S={backgroundColor:b.color||"var(--background-dark)",borderColor:"var(--border-color)",color:"var(--white)","--glow-x":"50%","--glow-y":"50%","--glow-intensity":"0","--glow-radius":"200px",...b.imageUrl&&{backgroundImage:`url(${b.imageUrl})`}};return e?m.jsxs(MJ,{className:w,style:S,disableAnimations:x,particleCount:l,glowColor:f,enableTilt:c,clickEffect:d,enableMagnetism:h,children:[m.jsx("div",{className:"card__header flex justify-between gap-3 relative text-white",children:m.jsx("span",{className:"card__label text-base",children:b.label})}),m.jsxs("div",{className:"card__content flex flex-col relative text-white",children:[m.jsx("h3",{className:`card__title font-normal text-base m-0 mb-1 ${n?"text-clamp-1":""}`,children:b.title}),m.jsx("p",{className:`card__description text-xs leading-5 opacity-90 ${n?"text-clamp-2":""}`,children:b.description})]})]},_):m.jsxs("div",{className:w,style:S,ref:T=>{if(!T)return;const M=U=>{if(x)return;const P=T.getBoundingClientRect(),O=U.clientX-P.left,R=U.clientY-P.top,L=P.width/2,z=P.height/2;if(c){const H=(R-z)/z*-10,Y=(O-L)/L*10;Xt.to(T,{rotateX:H,rotateY:Y,duration:.1,ease:"power2.out",transformPerspective:1e3})}if(h){const H=(O-L)*.05,Y=(R-z)*.05;Xt.to(T,{x:H,y:Y,duration:.3,ease:"power2.out"})}},C=()=>{x||(c&&Xt.to(T,{rotateX:0,rotateY:0,duration:.3,ease:"power2.out"}),h&&Xt.to(T,{x:0,y:0,duration:.3,ease:"power2.out"}))},N=U=>{if(!d||x)return;const P=T.getBoundingClientRect(),O=U.clientX-P.left,R=U.clientY-P.top,L=Math.max(Math.hypot(O,R),Math.hypot(O-P.width,R),Math.hypot(O,R-P.height),Math.hypot(O-P.width,R-P.height)),z=document.createElement("div");z.style.cssText=` 4613 position: absolute; 4614 width: ${L*2}px; 4615 height: ${L*2}px; 4616 border-radius: 50%; 4617 background: radial-gradient(circle, rgba(${f}, 0.4) 0%, rgba(${f}, 0.2) 30%, transparent 70%); 4618 left: ${O-L}px; 4619 top: ${R-L}px; 4620 pointer-events: none; 4621 z-index: 1000; 4622 `,T.appendChild(z),Xt.fromTo(z,{scale:0,opacity:1}
4622,{scale:1,opacity:0,duration:.8,ease:"power2.out",onComplete:()=>z.remove()})};T.addEventListener("mousemove",M),T.addEventListener("mouseleave",C),T.addEventListener("click",N)},children:[m.jsx("div",{className:"card__header flex justify-between gap-3 relative text-white",children:m.jsx("span",{className:"card__label text-base",children:b.label})}),m.jsxs("div",{className:"card__content flex flex-col relative text-white",children:[m.jsx("h3",{className:`card__title font-normal text-base m-0 mb-1 ${n?"text-clamp-1":""}`,children:b.title}),m.jsx("p",{className:`card__description text-xs leading-5 opacity-90 ${n?"text-clamp-2":""}`,children:b.description})]})]},_)})})})]})};function NJ(){return A.useState(0),m.jsxs("main",{className:"w-full",children:[m.jsx(Nu,{badge:"Ãreas",titulo:"Desenvolvimento de software à medida",descricao:"Desenvolvemos soluções personalizadas criadas especificamente para atender à s necessidades e desafios únicos de cada negócio."}),m.jsxs("div",{className:"w-[85vw] sm:w-[85vw] md:w-[75vw] mx-auto text-left mt:0 sm:mt-0 md:mt-40",children:[m.jsx(yJ,{}),m.jsxs("div",{className:"my-30 !w-full",children:[m.jsx("h2",{className:"text-4xl font-semibold",children:"O que Desenvolvemos?"}),m.jsx("p",{className:"font-light mt-4 text-md",children:"Trabalhamos em vários tipos de projetos, tecnologia moderna e escalável são o nosso forte:"}),m.jsx(RJ,{textAutoHide:!0,enableStars:!0,enableSpotlight:!0,enableBorderGlow:!0,enableTilt:!0,enableMagnetism:!0,clickEffect:!0,spotlightRadius:10,particleCount:12,glowColor:"132, 0, 255"})]}),m.jsxs("div",{className:"my-50 flex flex-col items-center justify-center",children:[m.jsx(Mu,{apiUrl:"https://api.streamline.pt/projects",imagesBaseUrl:"https://api.streamline.pt/projects/profileImages",filterByService:1}),m.jsx("a",{href:"/projetos",className:` 4623 inline-flex items-center justify-center 4624 px-5 py-2 4625 rounded-full 4626 bg-gradient-to-r from-violet-600 via-purple-600 to-fuchsia-600 4627 text-white text-lg font-semibold 4628 shadow-2xl shadow-purple-500/50 4629 hover:shadow-purple-500/70 4630 hover:scale-105 4631 transition-all duration-300 4632 `,children:"Todos os projectos"})]})]})]})}function DJ(){return m.jsx("section",{className:"relative w-full py-20 overflow-hidden",children:m.jsx("div",{className:"relative z-10 mx-auto px-6 md:px-12",children:m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[m.jsx("div",{className:"relative",children:m.jsx("div",{className:"aspect-video rounded-3xl overflow-hidden shadow-2xl bg-black",children:m.jsx("img",{src:"sobre.jpg",alt:"Sobre Nós"})})}),m.jsxs("div",{className:"space-y-6",children:[m.jsx("h2",{className:"text-5xl md:text-5xl font-semibold",children:"A Nossa Jornada"}),m.jsxs("div",{className:"space-y-4 text-sm md:text-base leading-relaxed",children:[m.jsx("p",{className:"font-light",children:"Somos a Streamline, uma empresa com mais de 15 anos de experiência em Engenharia Informática, atuando no mercado desde 2009. Apoiamos empresas a tornarem os seus processos de sistemas e tecnologias de informação até 30% mais eficientes, através de uma gestão estratégica e otimizada das operações digitais."}),m.jsx("p",{className:"font-light opacity-40",children:"Prestamos suporte ao CIO (Chief Information Officer) ou assumimos essa função diretamente, aplicando 3 pilares fundamentais: pensamento crÃtico, gestão por objetivos e inovação contÃnua. Cada projeto é único e adaptado à s necessidades especÃficas de cada cliente â até hoje já transformamos os processos de mais de 50 empresas."})]})]})]})})})}const yn=({children:n,className:e="",spotlightColor:t="rgba(255, 255, 255, 0.25)"})=>{const i=A.useRef(null),s=a=>{const l=i.current.getBoundingClientRect(),c=a.clientX-l.left,f=a.clientY-l.top;i.current.style.setProperty("--mouse-x",`${c}px`),i.current.style.setProperty("--mouse-y",`${f}px`),i.current.style.setProperty("--spotlight-color",t)};return m.jsx("div",{ref:i,onMouseMove:s,className:`card-spotlight ${e}`,children:n})};function kf({to:n,from:e=0,direction:t="up",delay:i=0,duration:s=2,className:a="",startWhen:l=!0,separator:c="",onStart:f,onEnd:d}){const h=A.useRef(null),g=kd(t==="down"?n:e),v=20+40*(1/s),x=100*(1/s),b=R3(g,{damping:v,stiffness:x}),_=HW(h,{once:!0,margin:"0px"}),w=M=>{const C=M.toString();if(C.includes(".")){const N=C.split(".")[1];if(parseInt(N)!==0)return N.length}return 0},S=Math.max(w(e),w(n)),T=A.useCallback(M=>{const C=S>0,N={useGrouping:!!c,minimumFractionDigits:C?S:0,maximumFractionDigits:C?S:0},U=Intl.NumberFormat("en-US",N).format(M);return c?U.replace(/,/g,c):U},[S,c]);return A.useEffect(()=>{h.current&&(h.current.textContent=T(t==="down"?n:e))},[e,n,t,T]),A.useEffect(()=>{if(_&&l){typeof f=="function"&&f();const M=setTimeout(()=>{g.set(t==="down"?e:n)},i*1e3),C=setTimeout(()=>{typeof d=="function"&&d()},i*1e3+s*1e3);return()=>
4632{clearTimeout(M),clearTimeout(C)}}},[_,l,g,t,e,n,i,f,d,s]),A.useEffect(()=>{const M=b.on("change",C=>{h.current&&(h.current.textContent=T(C))});return()=>M()},[b,T]),m.jsx("span",{className:a,ref:h})}function PJ(){const[n,e]=A.useState(0),[t,i]=A.useState(0),[s,a]=A.useState(!0);return A.useEffect(()=>{Promise.all([fetch("https://api.streamline.pt/projects").then(l=>l.json()),fetch("https://api.streamline.pt/clients").then(l=>l.json())]).then(([l,c])=>{const f=l.length;e(f),i(c.length),a(!1)}).catch(()=>{a(!1)})},[]),m.jsx("div",{className:"w-full py-10 sm:py-10 md:py-20 px-0 sm:px-0 md:\\px-5",children:m.jsx("div",{className:"max-w-6xl mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[m.jsx(yn,{children:m.jsxs("div",{className:"relative z-10",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400 mb-2",children:"Clientes Satisfeitos"}),m.jsx("p",{className:"text-4xl font-bold text-white mb-1",children:m.jsx(kf,{from:0,to:s?0:t,separator:",",direction:"up",duration:1,className:"count-up-text"})})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"relative z-10",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400 mb-2",children:"Projetos"}),m.jsx("p",{className:"text-4xl font-bold text-white mb-1",children:m.jsx(kf,{from:0,to:s?0:n,separator:",",direction:"up",duration:1,className:"count-up-text"})})]})}),m.jsx(yn,{className:"md:col-span-2",children:m.jsxs("div",{className:"relative z-10",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400 mb-2",children:"Anos de Experiência"}),m.jsxs("p",{className:"text-4xl font-bold text-white mb-1",children:[" ",m.jsx(kf,{from:0,to:16,separator:",",direction:"up",duration:1,className:"count-up-text"})]}),m.jsx("p",{className:"text-sm text-gray-500",children:"Desde 2009"})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"relative z-10",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400 mb-2",children:"Sistemas Geridos"}),m.jsxs("p",{className:"text-4xl font-bold text-white",children:[" ",m.jsx(kf,{from:0,to:192,separator:",",direction:"up",duration:1,className:"count-up-text"})]})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"relative z-10",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400 mb-2",children:"TB Geridos por nós"}),m.jsxs("p",{className:"text-4xl font-bold text-white",children:[m.jsx(kf,{from:0,to:500,separator:",",direction:"up",duration:1,className:"count-up-text"})," ",m.jsx("p",{className:"inline text-sm text-purple-400/70",children:" TB"})]})]})})]})})})}const LJ=[{title:"Liderança estratégica",description:"Tomamos decisões com visão a longo prazo, foco nos resultados e sentido de responsabilidade.",icon:fm},{title:"Pensamento crÃtico",description:"Questionamos, analisamos dados, comparamos alternativas e estudamos o mercado antes de avançar para a ação.",icon:KU},{title:"Constante inovação",description:"Melhoramos processos, produtos e serviços todos os dias, procurando sempre novas formas de criar valor no seu produto final.",icon:YC}];function OJ({className:n=""}){return m.jsx("section",{className:"w-full px-4 md:py-20 "+n,children:m.jsxs("div",{className:"max-w-6xl mx-auto",children:[m.jsxs("header",{className:"text-center mb-12 md:mb-16",children:[m.jsx("h2",{className:"text-3xl md:text-4xl font-semibold text-white mb-3",children:"Os nossos valores"}),m.jsx("p",{className:"text-gray-300 max-w-2xl mx-auto",children:"Estes principios orientam o nosso dia a dia e definem a forma como trabalhamos com os nossos clientes e parceiros."})]}),m.jsx("div",{className:"grid gap-8 md:grid-cols-3",children:LJ.map(e=>{const t=e.icon;return m.jsxs("article",{className:"group flex flex-col items-center text-center rounded-2xl border border-gray-800 bg-slate-900/80 p-8 shadow-sm transition-all duration-200 hover:-translate-y-1 hover:shadow-lg hover:shadow-purple-500/20 hover:border-purple-500",children:[m.jsx("div",{className:"mb-5 flex h-15 w-15 items-center justify-center rounded-full bg-purple-900/30 text-purple-400 transition-transform duration-200 group-hover:scale-110",children:m.jsx(t,{className:"h-8 w-8",strokeWidth:1})}),m.jsx("h3",{className:"text-lg font-semibold text-white mb-3",children:e.title}),m.jsx("p",{className:"text-sm text-gray-400 leading-relaxed",children:e.description})]},e.title)})})]})})}function UJ(){const[n,e]=A.useState([]),[,t]=A.useState(!0);return A.useEffect(()=>{fetch("https://api.streamline.pt/clients").then(i=>i.json()).then(i=>{e(i),t(!1)}).catch(()=>{t(!1)})},[]),m.jsxs("div",{className:"w-full py-8 overflow-hidden bg-transparent",children:[m.jsx("div",{className:"relative w-full",children:m.jsx("div",{className:"marcas-carousel flex items-center gap-40 animate-marcas-scroll",children:Array(5).fill(n).flat().filter(i=>i.imagem&&i.imagem.trim()!=="").map((i,s)=>m.jsx("a",{target:"_blank",href:i.url||"#",className:"text-primary-foreground text-2xl grid place-content-center p-2 rounded-md group",style:{minWidth:"60px"},children:m.jsx("img",{src:"https://api.streamline.pt/clients/image/"+i.id,alt:i.designacao,className:"w-30 h-30 object-contain"})},i.id+"-"+s))})}),m.jsx("style",{children:` 4633 @keyframes marcas-scroll { 4634 0% { transform: translateX(0); } 4635 100% { transform: translateX(-50%); } 4636 } 4637 .marcas-carousel { 4638 width: max-content; 4639 animation: marcas-scroll 100s linear infinite; 4640 } 4641 `})]})}function IJ(){return A.useState(0),m.jsxs("main",{className:"w-full",children:[m.jsx(Nu,{badge:"Sobre Nós",titulo:"Criar a sua estratég
4641ia é o que nos move",descricao:"Conheça a nossa história, valores e a equipa dedicada que impulsiona a inovação na Streamline."}),m.jsx(UJ,{}),m.jsx("div",{className:"flex items-center w-[100vw] sm:w-[100vw] md:w-[80vw] mx-auto mb-20",children:m.jsx(DJ,{})}),m.jsx("div",{className:"flex items-center w-[100vw] sm:w-[100vw] md:w-[70vw] z-10 mx-auto px-6 md:px-12",children:m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[m.jsx("div",{className:"relative",children:m.jsxs("div",{className:"space-y-6",children:[m.jsx(mn,{children:m.jsx("h2",{className:"text-5xl md:text-5xl font-normal",children:"Os números da Streamline"})}),m.jsx("div",{className:"space-y-4 text-sm md:text-base leading-relaxed",children:m.jsx("p",{className:"font-light",children:'"Assim como os números são a base da programação, temos a paciência de contar â e celebrar â cada vitória.â'})})]})}),m.jsx("div",{className:"space-y-6",children:m.jsx(PJ,{})})]})}),m.jsx(OJ,{})]})}function BJ(){const[n,e]=A.useState(0),t=[{icon:cm,title:"Alojamento Rápido",description:"Servidores próprios em Portugal com baixa latência, segurança e alta disponibilidade para o seu negócio."},{icon:c5,title:"Backoffice Próprio",description:"Gestão simples e segura de conteúdos, produtos e páginas através de backoffice desenvolvido à medida."},{icon:zU,title:"Performance & SEO",description:"Core Web Vitals otimizados e carregamento rápido para melhor ranking no Google e mais conversões."},{icon:f5,title:"Integrações Empresariais",description:"Conexão com ERP, CRM, sistemas de pagamento e APIs para processos mais eficientes."},{icon:um,title:"Segurança e Suporte",description:"Backups automáticos, monitorização contÃnua e equipa dedicada ao sucesso do seu projeto."},{icon:qm,title:"Sistemas Integrados à Medida",description:"Para projetos de maior dimensão, desenvolvemos sistemas de gestão integrados em conjunto consigo."}],i=()=>{e(a=>(a+1)%t.length)},s=()=>{e(a=>(a-1+t.length)%t.length)};return m.jsxs("main",{className:"w-full text-white",children:[m.jsx(Nu,{badge:"Ãreas",titulo:"Websites",descricao:"Desenvolvemos websites dinâmicos com backoffice próprio, alojados nos nossos servidores. Para projetos de maior dimensão, desenhamos consigo sistemas de gestão integrados à medida, preparados para crescer com a sua empresa."}),m.jsxs("div",{className:"w-[95vw] sm:w-[95vw] md:w-[70vw] mx-auto text-left mt-0 sm:mt-0 md:mt-20 flex flex-col gap-32",children:[m.jsxs("section",{className:"rounded-2xl p-6 sm:p-6 md:p-10 shadow-lg",children:[m.jsx(mn,{className:"text-4xl font-bold mb-8",children:"Por que investir num website profissional?"}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:[m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(HU,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Disponibilidade 24/7"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"O seu negócio acessÃvel a qualquer momento, de qualquer lugar, gerando oportunidades sem interrupções."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(WU,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Credibilidade que Converte"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Reforce a confiança e o profissionalismo da sua marca em cada interação com clientes e parceiros."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(YC,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Alcance e Crescimento"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Expanda para novos mercados e oportunidades digitais, ultrapassando limitações geográficas."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(o5,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Identidade de Marca"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Design e conteúdos alinhados ao posicionamento da sua empresa, reforçando a diferenciação no mercado."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(m5,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Processos Otimizados"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Integrações com sistemas empresariais, automação de tarefas e captação eficiente de leads para melhores resultados."})]})})]})]}),m.jsx("section",{className:"rounded-2xl p-10 shadow-lg w-[95%] sm:w-[95%] md:w-[70%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsx("div",{className:"mb-8 md:mb-0 md:col-span-1 flex flex-col justify-center",children:m.jsx(mn,{className:"text-5xl font-bold",children:"The Streamline Way"})}),m.jsxs("div",{className:"md:col-span-2 relative pl-4 sm:pl-8",children:[m.jsx("div",{className:"absolute left-2 sm:left-4 top-0 bottom-0 w-1 bg-gradient-to-b from-violet-500 via-purple-500 to-fuchsia-500 rounded-full"}),m.jsxs("ul",{className:"space-y-10 group/timeline",children:[m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-violet-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Briefing e levantamento de requisitos do negócio"}),m.jsx("p",{className:"text-base opacity-70",children:"Juntamos as informações essenciais para compreender os objetivos, público e detalhes do cliente."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-purple-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Planeamento e arquitetura da informação"}),m.jsx("p",{className:"text-base opacity-70",children:"Estruturamos o conteúdo e definimos a melhor navegação para a experiência do utilizador."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-fuchsia-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Design personalizado e responsivo"}),m.jsx("p",{className:"text-base opacity-70",children:"Criamos layouts exclusivos, modernos e adaptados a todos os dispositivos."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-violet-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Desenvolvimento com tecnologias modernas"}),m.jsx("p",{className:"text-base opacity-70",children:"Implementação ágil, segura e escalável, utilizando as melhores práticas do mercado."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-purple-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Testes, otimização e publicação"}),m.jsx("p",{className:"text-base opacity-70",children:"Garantimos performance, acessibilidade e qualidade antes do lançamento."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-fuchsia-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Suporte e evolução contÃnua"}),m.jsx("p",{className:"text-base opacity-70",children:"Acompanhamento pós-lançamento, melhorias e suporte dedicado ao cliente."})]})]})]})]})]})}),m.jsx("section",{className:"w-[80%] sm:w-[80%] md:w-[65%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsx("div",{className:"md:col-span-1 flex flex-col justify-start",children:m.jsx(mn,{className:"text-4xl font-bold mb-4",children:"Tecnologias que Utilizamos"})}),m.jsxs("div",{className:"md:col-span-2 grid grid-cols-2 sm:grid-cols-3 gap-8 items-center justify-items-center",children:[m.jsxs("a",{href:"https://react.dev/",target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center group",children:[m.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/a/a7/React-icon.svg",alt:"React.js",className:"w-16 h-16 mb-2 transition-transform group-hover:scale-110"}),m.jsx("span",{className:"text-base",children:"React.js"})]}),m.jsxs("a",{href:"https://nextjs.org/",target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center group",children:[m.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/8/8e/Nextjs-logo.svg",alt:"Next.js",className:"w-16 h-16 mb-2 transition-transform group-hover:scale-110 bg-white rounded"}),m.jsx("span",{className:"text-base",children:"Next.js"})]}
4641),m.jsxs("a",{href:"https://www.typescriptlang.org/",target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center group",children:[m.jsx("img",{src:"https://cdn.worldvectorlogo.com/logos/typescript.svg",alt:"TypeScript",className:"w-16 h-16 mb-2 transition-transform group-hover:scale-110"}),m.jsx("span",{className:"text-base",children:"TypeScript"})]}),m.jsxs("a",{href:"https://nodejs.org/",target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center group",children:[m.jsx("img",{src:"https://nodejs.org/static/images/logo.svg",alt:"Node.js",className:"w-16 h-16 mb-2 transition-transform group-hover:scale-110"}),m.jsx("span",{className:"text-base",children:"Node.js"})]}),m.jsxs("a",{href:"https://vitejs.dev/",target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center group",children:[m.jsx("img",{src:"https://vitejs.dev/logo.svg",alt:"Vite",className:"w-16 h-16 mb-2 transition-transform group-hover:scale-110"}),m.jsx("span",{className:"text-base",children:"Vite"})]}),m.jsxs("a",{href:"https://tailwindcss.com/",target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center group",children:[m.jsx("img",{src:"https://www.vectorlogo.zone/logos/tailwindcss/tailwindcss-icon.svg",alt:"Tailwind CSS",className:"w-16 h-16 mb-2 transition-transform group-hover:scale-110"}),m.jsx("span",{className:"text-base",children:"Tailwind CSS"})]}),m.jsxs("a",{href:"https://figma.com/",target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center group",children:[m.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/3/33/Figma-logo.svg",alt:"Figma",className:"w-16 h-16 mb-2 transition-transform group-hover:scale-110"}),m.jsx("span",{className:"text-base",children:"Figma"})]}),m.jsxs("a",{href:"https://wordpress.org/",target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center group",children:[m.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/9/98/WordPress_blue_logo.svg",alt:"WordPress",className:"w-16 h-16 mb-2 transition-transform group-hover:scale-110"}),m.jsx("span",{className:"text-base",children:"WordPress"})]})]})]})}),m.jsx("section",{className:"rounded-2xl p-10 px-6 sm:px-6 md:px-10 shadow-lg w-[95%] sm:w-[95%] md:w-[100%] xl:w-[70%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsxs("div",{className:"md:col-span-1 flex flex-col justify-start",children:[m.jsx(mn,{className:"text-4xl font-bold mb-4",children:"Porquê escolher a Streamline?"}),m.jsx("p",{className:"text-lg opacity-80",children:"O parceiro tecnológico que as empresas em Portugal escolhem para transformar presença digital em resultados mensuráveis"})]}),m.jsxs("div",{className:"md:col-span-2 flex flex-col items-center",children:[m.jsx("div",{className:"w-full overflow-hidden mb-6",children:m.jsx("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${n*100}%)`},children:t.map((a,l)=>{const c=a.icon;return m.jsx("div",{className:"min-w-full flex justify-center",children:m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-8 border border-white/10 max-w-md",children:[m.jsx("div",{className:"mb-4",children:m.jsx(c,{size:48,className:"text-purple-600"})}),m.jsx("h3",{className:"font-semibold text-2xl mb-3",children:a.title}),m.jsx("p",{className:"text-base opacity-70",children:a.description})]})},l)})})}),m.jsxs("div",{className:"flex flex-col sm:flex-col md:flex-row items-center gap-6 sm:gap-6 md:gap-60",children:[m.jsx("div",{className:"flex justify-center gap-2",children:t.map((a,l)=>m.jsx("button",{onClick:()=>e(l),className:`rounded-full transition-all !p-0 ${l===n?"bg-purple-600 w-1.5 h-1.5":"bg-gray-400 w-1.5 h-1.5"}`,"aria-label":`Ir para slide ${l+1}`},l))}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:s,className:"w-12 h-12 !p-0 flex items-center justify-center !rounded-full bg-white hover:bg-gray-100 transition-all shadow-lg","aria-label":"Anterior",children:m.jsx(Wm,{size:30,className:"w-8 h-8 text-purple-600"})}),m.jsx("button",{onClick:i,className:"w-12 h-12 !p-0 flex items-center justify-center !rounded-full bg-white hover:bg-gray-100 transition-all shadow-lg","aria-label":"Próximo",children:m.jsx(Xm,{className:"w-8 h-8 text-purple-600"})})]})]})]})]})}),m.jsxs("section",{className:"my-10 flex flex-col items-center justify-center",children:[m.jsx(mn,{className:"text-3xl font-bold mb-4",children:"Projetos em Destaque"}),m.jsx(Mu,{apiUrl:"https://api.streamline.pt/projects",imagesBaseUrl:"https://api.streamline.pt/projects/profileImages",filterByService:2}),m.jsx("a",{href:"/projetos",className:"inline-flex items-center justify-center px-5 py-2 mt-6 rounded-full bg-gradient-to-r from-violet-600 via-purple-600 to-fuchsia-600 text-white text-lg font-semibold shadow-2xl shadow-purple-500/50 hover:shadow-
4641purple-500/70 hover:scale-105 transition-all duration-300 dark:from-violet-800 dark:via-purple-800 dark:to-fuchsia-800",children:"Ver todos os projectos"})]})]})]})}function FJ(){const[n,e]=A.useState(0),t=[{icon:$C,title:"Conteúdo Atualizado",description:"Programas de formação sempre atualizados com as últimas tendências e tecnologias do mercado."},{icon:fm,title:"Formadores Experientes",description:"Equipa de formadores com vasta experiência prática e certificações reconhecidas."},{icon:bU,title:"Horários FlexÃveis",description:"Formações adaptadas à sua disponibilidade, presenciais ou online."},{icon:T5,title:"Material de Apoio",description:"Acesso a recursos didáticos, vÃdeos e documentação completa."},{icon:w5,title:"Certificação",description:"Certificados reconhecidos que valorizam o seu currÃculo profissional."},{icon:qm,title:"Acompanhamento ContÃnuo",description:"Suporte dedicado mesmo após a conclusão da formação."}],i=()=>{e(a=>(a+1)%t.length)},s=()=>{e(a=>(a-1+t.length)%t.length)};return m.jsxs("main",{className:"w-full text-white",children:[m.jsx(Nu,{badge:"Ãreas",titulo:"Formação",descricao:"Capacitamos profissionais e empresas através de programas de formação especializados. Do básico ao avançado, oferecemos cursos personalizados que preparam para os desafios do mercado digital."}),m.jsxs("div",{className:"w-[95vw] sm:w-[95vw] md:w-[70vw] mx-auto text-left mt-0 sm:mt-0 md:mt-20 flex flex-col gap-32",children:[m.jsxs("section",{className:"rounded-2xl p-6 sm:p-6 md:p-10 shadow-lg",children:[m.jsx(mn,{className:"text-4xl font-bold mb-8",children:"Por que investir em formação?"}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:[m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(kU,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Desenvolvimento profissional"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Aumente suas competências e destaque-se no mercado de trabalho."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(fm,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Capacitação de equipas"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Eleve o nÃvel técnico da sua organização com formações corporativas."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(vU,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Certificação reconhecida"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Obtenha certificados que valorizam o seu perfil profissional."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(yU,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Aprendizagem prática"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Conteúdos focados em casos reais e aplicação imediata."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(b5,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Objetivos personalizados"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Formações adaptadas à s necessidades especÃficas do seu negócio."})]})})]})]}),m.jsx("section",{className:"rounded-2xl p-10 shadow-lg w-[95%] sm:w-[95%] md:w-[70%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsx("div",{className:"mb-8 md:mb-0 md:col-span-1 flex flex-col justify-center",children:m.jsx(mn,{className:"text-5xl font-bold",children:"The Streamline Way"})}),m.jsxs("div",{className:"md:col-span-2 relative pl-4 sm:pl-8",children:[m.jsx("div",{className:"absolute left-2 sm:left-4 top-0 bottom-0 w-1 bg-gradient-to-b from-violet-500 via-purple-500 to-fuchsia-500 rounded-full"}),m.jsxs("ul",{className:"space-y-10 group/timeline",children:[m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-violet-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Levantamento de necessidades"}),m.jsx("p",{className:"text-base opacity-70",children:"Analisamos os objetivos e identificamos as competências a desenvolver."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-purple-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Desenho do programa formativo"}),m.jsx("p",{className:"text-base opacity-70",children:"Criamos conteúdos e metodologias adaptadas ao público-alvo."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-fuchsia-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Preparação de materiais e recursos"}),m.jsx("p",{className:"text-base opacity-70",children:"Desenvolvimento de apresentações, exercÃcios e documentação de apoio."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-violet-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Execução da formação"}),m.jsx("p",{className:"text-base opacity-70",children:"Sessões práticas e interativas, presenciais ou online,
4641com foco na aplicação real."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-purple-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Avaliação e certificação"}),m.jsx("p",{className:"text-base opacity-70",children:"Validamos a aprendizagem e emitimos certificados reconhecidos."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-fuchsia-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Acompanhamento pós-formação"}),m.jsx("p",{className:"text-base opacity-70",children:"Suporte contÃnuo para esclarecer dúvidas e consolidar conhecimentos."})]})]})]})]})]})}),m.jsx("section",{className:"w-[80%] sm:w-[80%] md:w-[65%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsx("div",{className:"md:col-span-1 flex flex-col justify-start",children:m.jsx(mn,{className:"text-4xl font-bold mb-4",children:"Ãreas de Formação"})}),m.jsxs("div",{className:"md:col-span-2 grid grid-cols-1 sm:grid-cols-2 gap-6",children:[m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Desenvolvimento Web"}),m.jsx("p",{className:"text-base opacity-70",children:"HTML, CSS, JavaScript, React, Next.js"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Programação"}),m.jsx("p",{className:"text-base opacity-70",children:"Python, TypeScript, Node.js, PHP"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Design Digital"}),m.jsx("p",{className:"text-base opacity-70",children:"Figma, UI/UX, Adobe Creative Suite"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Marketing Digital"}),m.jsx("p",{className:"text-base opacity-70",children:"SEO, Google Ads, Social Media"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Bases de Dados"}),m.jsx("p",{className:"text-base opacity-70",children:"MySQL, PostgreSQL, MongoDB"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Cloud Computing"}),m.jsx("p",{className:"text-base opacity-70",children:"AWS, Azure, Google Cloud"})]})]})]})}),m.jsx("section",{className:"rounded-2xl p-10 px-6 sm:px-6 md:px-10 shadow-lg w-[95%] sm:w-[95%] md:w-[100%] xl:w-[70%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsxs("div",{className:"md:col-span-1 flex flex-col justify-start",children:[m.jsx(mn,{className:"text-4xl font-bold mb-4",children:"Porquê escolher a Streamline?"}),m.jsx("p",{className:"text-lg opacity-80",children:"Somos o parceiro ideal para o desenvolvimento de competências digitais"})]}),m.jsxs("div",{className:"md:col-span-2 flex flex-col items-center",children:[m.jsx("div",{className:"w-full overflow-hidden mb-6",children:m.jsx("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${n*100}%)`},children:t.map((a,l)=>{const c=a.icon;return m.jsx("div",{className:"min-w-full flex justify-center",children:m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-8 border border-white/10 max-w-md",children:[m.jsx("div",{className:"mb-4",children:m.jsx(c,{size:48,className:"text-purple-600"})}),m.jsx("h3",{className:"font-semibold text-2xl mb-3",children:a.title}),m.jsx("p",{className:"text-base opacity-70",children:a.description})]})},l)})})}),m.jsxs("div",{className:"flex flex-col sm:flex-col md:flex-row items-center gap-6 sm:gap-6 md:gap-60",children:[m.jsx("div",{className:"flex justify-center gap-2",children:t.map((a,l)=>m.jsx("button",{onClick:()=>e(l),className:`rounded-full transition-all !p-0 ${l===n?"bg-purple-600 w-1.5 h-1.5":"bg-gray-400 w-1.5 h-1.5"}`,"aria-label":`Ir para slide ${l+1}`},l))}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:s,className:"w-12 h-12 !p-0 flex items-center justify-center !rounded-full bg-white hover:bg-gray-100 transition-all shadow-lg","aria-label":"Anterior",children:m.jsx(Wm,{size:30,className:"w-8 h-8 text-purple-600"})}),m.jsx("button",{onClick:i,className:"w-12 h-12 !p-0 flex items-center justify-center !rounded-full bg-white hover:bg-gray-100 transition-all shadow-lg","aria-label":"Próximo",children:m.jsx(Xm,{className:"w-8 h-8 text-purple-600"})})]})]})]})]})}),m.jsxs("section",{className:"my-10 flex flex-col items-center justify-center",children:[m.jsx(mn,{className:"text-3xl font-bold mb-4",children:"Projetos em Destaque"}),m.jsx(Mu,{apiUrl:"https://api.streamline.pt/projects",imagesBaseUrl:"https://api.streamline.pt/projects/profileImages",filterByService:3}),m.jsx("a",{href:"/projetos",className:"inline-flex items-center justify-center px-5 py-2 mt-6 rounded-full bg-gradient-to-r from-violet-600 via-purple-600 to-fuchsia-600 text-white text-lg font-semibold shadow-2xl shadow-purple-500/50 hover:shadow-
4641purple-500/70 hover:scale-105 transition-all duration-300 dark:from-violet-800 dark:via-purple-800 dark:to-fuchsia-800",children:"Ver todos os projectos"})]})]})]})}function zJ(){const[n,e]=A.useState(0),t=[{icon:WC,title:"Monitorização Proativa 24/7",description:"Vigilância contÃnua dos serviços para detetar e resolver problemas antes de impactarem o negócio."},{icon:KC,title:"Resposta em 1 Minuto",description:"Equipa sempre atenta e preparada para intervir rapidamente quando necessário."},{icon:um,title:"Backups Semanais Garantidos",description:"Proteção de dados com backups regulares dos nossos servidores e recuperação eficiente."},{icon:XM,title:"Gestão AWS Especializada",description:"Administração de infraestruturas cloud com otimização de custos e desempenho."},{icon:cm,title:"Flexibilidade Total",description:"Gerimos os nossos servidores e, mediante pedido, administramos também a infraestrutura dos clientes."},{icon:qm,title:"Suporte Dedicado",description:"Assistência técnica especializada com foco na continuidade e crescimento do seu negócio."}],i=()=>{e(a=>(a+1)%t.length)},s=()=>{e(a=>(a-1+t.length)%t.length)};return m.jsxs("main",{className:"w-full text-white",children:[m.jsx(Nu,{badge:"Ãreas",titulo:"Infraestrutura Sempre DisponÃvel, Sempre Monitorizada",descricao:"Gerimos servidores próprios, cloud (AWS) e soluções hÃbridas. Monitorização 24/7 que garante segurança, uptime e resposta imediata."}),m.jsxs("div",{className:"w-[95vw] sm:w-[95vw] md:w-[70vw] mx-auto text-left mt-0 sm:mt-0 md:mt-20 flex flex-col gap-32",children:[m.jsxs("section",{className:"rounded-2xl p-6 sm:p-6 md:p-10 shadow-lg",children:[m.jsx(mn,{className:"text-4xl font-bold mb-8",children:"Por que confiar a administração à Streamline?"}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:[m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(cm,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Disponibilidade Garantida"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Mantemos os sistemas operacionais com monitorização proativa, evitando paragens e perdas de produtividade."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(um,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Segurança e Backups"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Proteção multicamada, backups semanais e polÃticas de segurança que salvaguardam dados crÃticos do negócio."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(XM,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Flexibilidade e Escalabilidade"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Administração dos nossos servidores ou da sua infraestrutura, adaptando-nos ao crescimento do negócio."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(qC,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Gestão de Servidores: Local e na Cloud"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Gestão especializada de ambientes AWS, infraestrutura local ou arquiteturas hÃbridas."})]})})]})]}),m.jsx("section",{className:"rounded-2xl p-10 shadow-lg w-[95%] sm:w-[95%] md:w-[70%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsx("div",{className:"mb-8 md:mb-0 md:col-span-1 flex flex-col justify-center",children:m.jsx(mn,{className:"text-5xl font-bold",children:"The Streamline Way"})}),m.jsxs("div",{className:"md:col-span-2 relative pl-4 sm:pl-8",children:[m.jsx("div",{className:"absolute left-2 sm:left-4 top-0 bottom-0 w-1 bg-gradient-to-b from-violet-500 via-purple-500 to-fuchsia-500 rounded-full"}),m.jsxs("ul",{className:"space-y-10 group/timeline",children:[m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-violet-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Auditoria e diagnóstico da infraestrutura"}),m.jsx("p",{className:"text-base opacity-70",children:"Avaliamos completamente os seus sistemas, redes e práticas de segurança atuais."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-purple-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Planeamento e desenho da solução"}),m.jsx("p",{className:"text-base opacity-70",children:"Adaptamos a arquitetura de rede à s caracteristicas do seu negócio."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-fuchsia-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Implementação e c
4641onfiguração"}),m.jsx("p",{className:"text-base opacity-70",children:"Instalamos servidores, switches e firewalls."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-violet-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Monitorização e manutenção contÃnua"}),m.jsx("p",{className:"text-base opacity-70",children:"Estamos sempre de vigia, e fazemos atualizações de segurança e otimização de desempenho."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-purple-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Gestão de incidentes e suporte"}),m.jsx("p",{className:"text-base opacity-70",children:"Resposta rápida a falhas e problemas técnicos com recuperação eficiente."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-fuchsia-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Evolução e escalabilidade"}),m.jsx("p",{className:"text-base opacity-70",children:"Garantimos a modernização contÃnua da infraestrutura, assegurando que esta se adapta e escala de forma proativa à s necessidades da sua organização"})]})]})]})]})]})}),m.jsx("section",{className:"w-[80%] sm:w-[80%] md:w-[65%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsx("div",{className:"md:col-span-1 flex flex-col justify-start",children:m.jsx(mn,{className:"text-4xl font-bold mb-4",children:"Tecnologias e Competências"})}),m.jsxs("div",{className:"md:col-span-2 grid grid-cols-1 sm:grid-cols-2 gap-6",children:[m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Sistemas Operativos"}),m.jsx("p",{className:"text-base opacity-70",children:"Linux (Server, Ubuntu, Debian)"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Virtualização"}),m.jsx("p",{className:"text-base opacity-70",children:"VMware, Proxmox"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Redes"}),m.jsx("p",{className:"text-base opacity-70",children:"Unify, VLANs, VPN"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Segurança"}),m.jsx("p",{className:"text-base opacity-70",children:"Firewalls, IDS/IPS, SSL/TLS"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Cloud"}),m.jsx("p",{className:"text-base opacity-70",children:"AWS, Azure, Google Cloud Platform"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Monitorização"}),m.jsx("p",{className:"text-base opacity-70",children:"Temos sistemas próprios de monitorização de sistemas"})]})]})]})}),m.jsx("section",{className:"rounded-2xl p-10 px-6 sm:px-6 md:px-10 shadow-lg w-[95%] sm:w-[95%] md:w-[100%] xl:w-[70%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsxs("div",{className:"md:col-span-1 flex flex-col justify-start",children:[m.jsx(mn,{className:"text-4xl font-bold mb-4",children:"Porquê escolher a Streamline?"}),m.jsx("p",{className:"text-lg opacity-80",children:"Monitorização proativa, resposta em 1 minuto e expertise técnica para manter a sua infraestrutura sempre operacional"})]}),m.jsxs("div",{className:"md:col-span-2 flex flex-col items-center",children:[m.jsx("div",{className:"w-full overflow-hidden mb-6",children:m.jsx("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${n*100}
4641%)`},children:t.map((a,l)=>{const c=a.icon;return m.jsx("div",{className:"min-w-full flex justify-center",children:m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-8 border border-white/10 max-w-md",children:[m.jsx("div",{className:"mb-4",children:m.jsx(c,{size:48,className:"text-purple-600"})}),m.jsx("h3",{className:"font-semibold text-2xl mb-3",children:a.title}),m.jsx("p",{className:"text-base opacity-70",children:a.description})]})},l)})})}),m.jsxs("div",{className:"flex flex-col sm:flex-col md:flex-row items-center gap-6 sm:gap-6 md:gap-60",children:[m.jsx("div",{className:"flex justify-center gap-2",children:t.map((a,l)=>m.jsx("button",{onClick:()=>e(l),className:`rounded-full transition-all !p-0 ${l===n?"bg-purple-600 w-1.5 h-1.5":"bg-gray-400 w-1.5 h-1.5"}`,"aria-label":`Ir para slide ${l+1}`},l))}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:s,className:"w-12 h-12 !p-0 flex items-center justify-center !rounded-full bg-white hover:bg-gray-100 transition-all shadow-lg","aria-label":"Anterior",children:m.jsx(Wm,{size:30,className:"w-8 h-8 text-purple-600"})}),m.jsx("button",{onClick:i,className:"w-12 h-12 !p-0 flex items-center justify-center !rounded-full bg-white hover:bg-gray-100 transition-all shadow-lg","aria-label":"Próximo",children:m.jsx(Xm,{className:"w-8 h-8 text-purple-600"})})]})]})]})]})}),m.jsxs("section",{className:"my-10 flex flex-col items-center justify-center",children:[m.jsx(mn,{className:"text-3xl font-bold mb-4",children:"Projetos em Destaque"}),m.jsx(Mu,{apiUrl:"https://api.streamline.pt/projects",imagesBaseUrl:"https://api.streamline.pt/projects/profileImages",filterByService:4}),m.jsx("a",{href:"/projetos",className:"inline-flex items-center justify-center px-5 py-2 mt-6 rounded-full bg-gradient-to-r from-violet-600 via-purple-600 to-fuchsia-600 text-white text-lg font-semibold shadow-2xl shadow-purple-500/50 hover:shadow-purple-500/70 hover:scale-105 transition-all duration-300 dark:from-violet-800 dark:via-purple-800 dark:to-fuchsia-800",children:"Ver todos os projectos"})]})]})]})}function jJ(){const[n,e]=A.useState(0),t=[{icon:$C,title:"Arquitetura de Rede",description:"Planeamento e implementação de redes eficientes e escaláveis (LAN, WAN, WLAN)."},{icon:KC,title:"Alta Performance",description:"Otimização de throughput, latência e fiabilidade em toda a infraestrutura."},{icon:n5,title:"Segurança de Rede",description:"Segmentação, VPN, firewalling e polÃticas Zero Trust para máxima proteção."},{icon:WC,title:"Monitorização",description:"Observabilidade e alertas proativos com ferramentas de mercado."},{icon:fm,title:"Equipa Especializada",description:"Engenheiros de redes com certificações Cisco, Mikrotik e Fortinet."},{icon:qm,title:"Suporte Dedicado",description:"Assistência contÃnua e SLA alinhado à s necessidades do negócio."}],i=()=>{e(a=>(a+1)%t.length)},s=()=>{e(a=>(a-1+t.length)%t.length)};return m.jsxs("main",{className:"w-full text-white",children:[m.jsx(Nu,{badge:"Ãreas",titulo:"Redes",descricao:"Desenhamos, implementamos e mantemos redes corporativas de alto desempenho, seguras e escaláveis, alinhadas aos objetivos do seu negócio."}),m.jsxs("div",{className:"w-[95vw] sm:w-[95vw] md:w-[70vw] mx-auto text-left mt-0 sm:mt-0 md:mt-20 flex flex-col gap-10 sm:gap-10 md:gap-32",children:[m.jsxs("section",{className:"rounded-2xl p-6 sm:p-6 md:p-10 shadow-lg",children:[m.jsx(mn,{className:"text-4xl font-bold mb-8",children:"O Porquê de investir em redes?"}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:[m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(qC,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Ligação confiável"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Comunicação rápida e estável entre sistemas."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(C5,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Wireless otimizado"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Fazemos a cobertura do seu espaço, para garantir que tem ligação em todos os cantos."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(cm,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsxs("h3",{className:"font-semibold text-lg mb-2",children:["Administração do seu servidor"," "]}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Redun
4641dância e balanceamento de carga para serviços crÃticos."})]})}),m.jsx(yn,{children:m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx(um,{className:"mb-3 w-10 h-10 text-violet-400"}),m.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Segurança reforçada"}),m.jsx("p",{className:"font-light text-base opacity-70",children:"Protegemos eficazmente contra ameaças e acessos não autorizados."})]})})]})]}),m.jsx("section",{className:"rounded-2xl p-10 shadow-lg w-[95%] sm:w-[95%] md:w-[70%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsx("div",{className:"mb-8 md:mb-0 md:col-span-1 flex flex-col justify-center",children:m.jsx(mn,{className:"text-5xl font-bold",children:"The Streamline Way"})}),m.jsxs("div",{className:"md:col-span-2 relative pl-4 sm:pl-8",children:[m.jsx("div",{className:"absolute left-2 sm:left-4 top-0 bottom-0 w-1 bg-gradient-to-b from-violet-500 via-purple-500 to-fuchsia-500 rounded-full"}),m.jsxs("ul",{className:"space-y-10 group/timeline",children:[m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-violet-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Levantamento e diagnóstico"}),m.jsx("p",{className:"text-base opacity-70",children:"Mapeamos requisitos, topologia atual e pontos de melhoria."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-purple-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Desenho da arquitetura"}),m.jsx("p",{className:"text-base opacity-70",children:"Solução de rede escalável e segura, orientada a objetivos."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-fuchsia-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Implementação e testes"}),m.jsx("p",{className:"text-base opacity-70",children:"Configuração de equipamentos, validação de desempenho e segurança."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-violet-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Monitorização e operação"}),m.jsx("p",{className:"text-base opacity-70",children:"Observabilidade contÃnua, alertas e melhorias de confiabilidade."})]})]}),m.jsxs("li",{className:"relative flex items-start transition-all duration-300 group-hover/timeline:opacity-40 hover:!opacity-100 cursor-pointer",children:[m.jsx("span",{className:"absolute -left-5 sm:-left-7 top-1 w-6 h-6 bg-purple-600 border-4 border-white rounded-full shadow-lg"}),m.jsxs("div",{className:"ml-6",children:[m.jsx("h3",{className:"font-semibold text-lg mb-1",children:"Suporte e evolução"}),m.jsx("p",{className:"text-base opacity-70",children:"SLA alinhado e roadmap de expansão conforme necessidades."})]})]})]})]})]})}),m.jsx("section",{className:"w-[80%] sm:w-[80%] md:w-[65%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsx("div",{className:"md:col-span-1 flex flex-col justify-start",children:m.jsx(mn,{className:"text-4xl font-bold mb-4",children:"Tecnologias de Rede"})}),m.jsxs("div",{className:"md:col-span-2 grid grid-cols-1 sm:grid-cols-2 gap-6",children:[m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Switching e Routing"}),m.jsx("p",{className:"text-base opacity-70",children:"Unify - somos revendores"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Wireless"}),m.jsx("p",{className:"text-base opacity-70",children:"Wi-Fi 6/6E, WPA3, Mesh"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Segurança"}),m.jsx("p",{className:"text-base opacity-70",children:"Firewalls, IDS/IPS, VPN, Zero Trust"})]}),m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-6 border border-white/10",children:[m.jsx("h3",{className:"font-semibold text-xl mb-2",children:"Infraestrutura"}),m.jsx("p",{className:"text-base opacity-70",children:"Cabeamento estruturado, racks, PoE"})]})]})]})}),m.jsx("section",{className:"rounded-2xl p-10 px-6 sm:px-6 md:px-10 shadow-lg w-[95%] sm:w-[95%] md:w-[100%] xl:w-[70%] mx-auto",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:[m.jsxs("div",{className:"md:col-span-1 flex flex-col justify-start",children:[m.jsx(mn,{className:"text-4xl font-bold mb-4",children:"Porquê escolher a Streamline?"}),m.jsx("p",{className:"text-lg opacity-80",children:"Somos o parceiro ideal para a gestão e evolução das suas redes"})]}),m.jsxs("div",{className:"md:col-span-2 flex flex-col items-center",children:[m.jsx("div",{className:"w-full overflow-hidden mb-6",children:m.jsx("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${n*100}
4641%)`},children:t.map((a,l)=>{const c=a.icon;return m.jsx("div",{className:"min-w-full flex justify-center",children:m.jsxs("div",{className:"bg-white/5 backdrop-blur-sm rounded-xl p-8 border border-white/10 max-w-md",children:[m.jsx("div",{className:"mb-4",children:m.jsx(c,{size:48,className:"text-purple-600"})}),m.jsx("h3",{className:"font-semibold text-2xl mb-3",children:a.title}),m.jsx("p",{className:"text-base opacity-70",children:a.description})]})},l)})})}),m.jsxs("div",{className:"flex flex-col sm:flex-col md:flex-row items-center gap-6 sm:gap-6 md:gap-60",children:[m.jsx("div",{className:"flex justify-center gap-2",children:t.map((a,l)=>m.jsx("button",{onClick:()=>e(l),className:`rounded-full transition-all !p-0 ${l===n?"bg-purple-600 w-1.5 h-1.5":"bg-gray-400 w-1.5 h-1.5"}`,"aria-label":`Ir para slide ${l+1}`},l))}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:s,className:"w-12 h-12 !p-0 flex items-center justify-center !rounded-full bg-white hover:bg-gray-100 transition-all shadow-lg","aria-label":"Anterior",children:m.jsx(Wm,{size:30,className:"w-8 h-8 text-purple-600"})}),m.jsx("button",{onClick:i,className:"w-12 h-12 !p-0 flex items-center justify-center !rounded-full bg-white hover:bg-gray-100 transition-all shadow-lg","aria-label":"Próximo",children:m.jsx(Xm,{className:"w-8 h-8 text-purple-600"})})]})]})]})]})}),m.jsxs("section",{className:"my-10 flex flex-col items-center justify-center",children:[m.jsx(mn,{className:"text-3xl font-bold mb-4",children:"Projetos em Destaque"}),m.jsx(Mu,{apiUrl:"https://api.streamline.pt/projects",imagesBaseUrl:"https://api.streamline.pt/projects/profileImages",filterByService:5}),m.jsx("a",{href:"/projetos",className:"inline-flex items-center justify-center px-5 py-2 mt-6 rounded-full bg-gradient-to-r from-violet-600 via-purple-600 to-fuchsia-600 text-white text-lg font-semibold shadow-2xl shadow-purple-500/50 hover:shadow-purple-500/70 hover:scale-105 transition-all duration-300 dark:from-violet-800 dark:via-purple-800 dark:to-fuchsia-800",children:"Ver todos os projectos"})]})]})]})}const kJ=()=>m.jsx(qR,{}),Js=m8({component:kJ}),VJ=Zs({getParentRoute:()=>Js,path:"/",beforeLoad:()=>{throw PR({to:"/main-page"})}}),HJ=Zs({getParentRoute:()=>Js,path:"/main-page",component:PX}),GJ=Zs({getParentRoute:()=>Js,path:"/projetos",component:IQ}),WJ=Zs({getParentRoute:()=>Js,path:"/contacto",component:mJ}),XJ=Zs({getParentRoute:()=>Js,path:"/sobre",component:IJ}),qJ=Zs({getParentRoute:()=>Js,path:"/areas/software",component:NJ}),YJ=Zs({getParentRoute:()=>Js,path:"/areas/sites",component:BJ}),$J=Zs({getParentRoute:()=>Js,path:"/areas/formacao",component:FJ}),KJ=Zs({getParentRoute:()=>Js,path:"/areas/administracao",component:zJ}),ZJ=Zs({getParentRoute:()=>Js,path:"/areas/redes",component:jJ}),QJ=E8({routeTree:Js.addChildren([VJ,HJ,GJ,WJ,qJ,XJ,YJ,$J,KJ,ZJ]),scrollRestoration:!0,scrollRestorationBehavior:"smooth",scrollToTopSelectors:["#app-scroll"]}),JJ=()=>{const[n,e]=A.useState(!1);return A.useEffect(()=>{const t=()=>{e(window.scrollY>10)};return window.addEventListener("scroll",t,{passive:!0}),t(),()=>window.removeEventListener("scroll",t)},[]),m.jsxs("div",{className:"header-container fixed top-0 left-0 right-0 z-50 flex items-center justify-between transition-all duration-500",style:{opacity:1,marginLeft:"auto",marginRight:"auto",marginTop:40,marginBottom:10,width:n?"80vw md:80vw lg:60vw":"90vw",maxWidth:n?1e3:"100vw",minWidth:320,padding:"0px 1.5vw",backdropFilter:n?"blur(24px)":"none",backgroundColor:n?"rgba(0,0,0,0.5)":"transparent",borderRadius:40,boxShadow:n?"rgba(255,255,255,0.2) 0px 1px 0px 0px inset, rgba(0,0,0,0.16) 0px 2px 8px 0px":"none",transform:"none",transformOrigin:"50% 0% 0px",height:"3.6rem",minHeight:44,display:"flex",alignItems:"center"},children:[m.jsx("div",{className:"Navbar_gridLeft__bbOK5 flex items-center min-w-0 ",children:m.jsx("a",{href:"/",className:"logo flex items-center gap-2 min-w-0",children:m.jsx("img",{src:"/logo.png",alt:"evolvion logo",className:"",style:{height:32,width:"auto",maxWidth:140,minWidth:40,objectFit:"contain"}})})}),m.jsxs("ul",{className:"flex gap-4 md:gap-8 items-center ml-0 p-0 list-none text-base md:text-lg absolute left-1/2 -translate-x-1/2 !mx-4",children:[m.jsx("li",{className:"Navbar_navActive__dlNPs",children:m.jsx("a",{href:"/sobre",children:m.jsx("h5",{className:"text-white text-sm m-0 font-light [letter-spacing:0.5px]",children:"Sobre nós"})})}),m.jsx("li",{className:"relative group",children:m.jsxs("div",{className:"relative",onMouseEnter:t=>{const i=t.currentTarget.querySelector("ul");i&&(i.style.opacity="1"),i&&(i.style.pointerEvents="auto")},onMouseLeave:t=>{const i=t.currentTarget.querySelector("ul");i&&(i.style.opacity="0"),i&&(i.style.pointerEvents="none")},children:[m.jsxs("button",{className:"bg-transparent border-none p-0 m-0 cursor-pointer flex items-center",style:{outline:"none"},tabIndex:0,children:[m.jsx("h5",{className:"text-white text-sm m-0 font-light [letter-spacing:0.5px]",children:"Ãreas"}),m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 20 20",fill:"none",style:{marginLeft:4},children:m.jsx("path",{d:"M6 8L10 12L14 8",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}
4641),m.jsxs("ul",{style:{transition:"opacity 0.2s",opacity:0,pointerEvents:"none"},className:"absolute left-0 top-full mt-2 min-w-[200px] bg-black bg-opacity-90 rounded-lg shadow-lg py-2 z-50",children:[m.jsx("li",{children:m.jsx("a",{href:"/areas/software",className:"block px-4 py-2 text-white text-sm hover:bg-purple-700 rounded",children:"Desenvolvimento de software à medida"})}),m.jsx("li",{children:m.jsx("a",{href:"/areas/sites",className:"block px-4 py-2 text-white text-sm hover:bg-purple-700 rounded",children:"Sites"})}),m.jsx("li",{children:m.jsx("a",{href:"/areas/formacao",className:"block px-4 py-2 text-white text-sm hover:bg-purple-700 rounded",children:"Formação"})}),m.jsx("li",{children:m.jsx("a",{href:"/areas/administracao",className:"block px-4 py-2 text-white text-sm hover:bg-purple-700 rounded",children:"Administração de Sistemas"})}),m.jsx("li",{children:m.jsx("a",{href:"/areas/redes",className:"block px-4 py-2 text-white text-sm hover:bg-purple-700 rounded",children:"Redes"})})]})]})}),m.jsx("li",{children:m.jsx("a",{href:"/projetos",children:m.jsx("h5",{className:"text-white text-sm m-0 font-light [letter-spacing:0.5px]",children:"Projetos"})})})]}),m.jsx("div",{className:"Navbar_gridRight__2NsPq flex items-center justify-end",children:m.jsx("a",{href:"/contacto",children:m.jsx(ay,{})})})]})};function eee(){const[n,e]=A.useState(!0);return A.useEffect(()=>{try{e(window.location.pathname!=="/contacto")}catch{e(!0)}},[]),m.jsxs("div",{className:"min-h-screen flex flex-col",children:[m.jsx("div",{className:"md:hidden",children:m.jsx(oU,{})}),m.jsx("div",{className:"hidden md:block",children:m.jsx(JJ,{})}),m.jsx("main",{className:"!w-full items-center justify-center mb-4",children:m.jsx(A8,{router:QJ})}),n&&m.jsx(Bk,{}),m.jsx(P5,{})]})}aU.createRoot(document.getElementById("root")).render(m.jsx(A.StrictMode,{children:m.jsx(eee,{})}));
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.